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)

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-0
SELECT DISTINCT 59 * + + COUNT( * ) + 2 * + 74 AS col0, - 41 * - 3 + - + COUNT( * ) + COUNT( - + 61 ) + 67 + + + NULLIF ( 53, - 94 ) * - + COALESCE ( - ( + + 10 ), + COUNT( * ) * - 77 * - + 38 * + 37 + - - 22 * + - 45 * + 29 - + + 62 ) DIV - 1 + 47 + ( - 83 ) * - COUNT( - 52 ) AS col0
----
207
-210

skipif mysql # not compatible
query II rowsort label-0
SELECT DISTINCT 59 * + + COUNT ( * ) + 2 * + 74 AS col0, - 41 * - 3 + - + COUNT ( * ) + COUNT ( - + 61 ) + 67 + + + NULLIF ( 53, - 94 ) * - + COALESCE ( - ( + + 10 ), + COUNT ( * ) * - 77 * - + 38 * + 37 + - - 22 * + - 45 * + 29 - + + 62 ) / - 1 + 47 + ( - 83 ) * - COUNT ( - 52 ) AS col0
----
207
-210

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1
SELECT CASE - + 55 WHEN + 44 THEN NULL ELSE + + 12 + + 10 + - - 81 END * + 9 + + 68 + + CAST( NULL AS SIGNED ), 63 - 52 col0
----
NULL
11

skipif mysql # not compatible
query II rowsort label-1
SELECT CASE - + 55 WHEN + 44 THEN NULL ELSE + + 12 + + 10 + - - 81 END * + 9 + + 68 + + CAST ( NULL AS INTEGER ), 63 - 52 col0
----
NULL
11

query II rowsort
SELECT 17 * 51 AS col0, CASE + 21 WHEN COALESCE ( ( 36 ), + + 42 + 82 + + 73 * 21 ) THEN - + 2 * - - 44 * 32 WHEN + 4 * - 15 + 42 THEN NULL END + + - ( - 56 )
----
867
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3
SELECT 91 + - MAX( + 92 ) + + COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3
SELECT 91 + - MAX ( + 92 ) + + COUNT ( * ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4
SELECT SUM( + 60 ), - 73 AS col0
----
60
-73

skipif mysql # not compatible
query II rowsort label-4
SELECT SUM ( + 60 ), - 73 AS col0
----
60
-73

onlyif mysql # aggregate syntax: 
query II rowsort label-5
SELECT ALL + 46 - - 87 * - 5 * - COUNT( * ) + - + 14 AS col2, 98 col2
----
467
98

skipif mysql # not compatible
query II rowsort label-5
SELECT ALL + 46 - - 87 * - 5 * - COUNT ( * ) + - + 14 AS col2, 98 col2
----
467
98

onlyif mysql # aggregate syntax: 
query I rowsort label-6
SELECT - 5 + COUNT( ( - + 75 ) ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-6
SELECT - 5 + COUNT ( ( - + 75 ) ) AS col2
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-7
SELECT ALL - 1 * - - 87 AS col1, 63 - MAX( - 18 )
----
-87
81

skipif mysql # not compatible
query II rowsort label-7
SELECT ALL - 1 * - - 87 AS col1, 63 - MAX ( - 18 )
----
-87
81

query II rowsort
SELECT - 76 * 17 * - 94 + - 68 col0, 58 AS col2
----
121380
58

query I rowsort
SELECT - 86 + - 93 AS col1
----
-179

onlyif mysql # aggregate syntax: 
query I rowsort label-10
SELECT ALL + AVG ( + 47 ) * 12 * CASE - 85 WHEN - 85 THEN - COUNT( * ) * - - 55 + - 51 + - COALESCE ( + - 46, + 0 ) / + + CASE - CASE - - 70 WHEN - 89 THEN - 41 + + + COALESCE ( + + 37, 61, 47 * + 79 + + 35 + - 80 ) END WHEN + - 62 THEN NULL WHEN + 62 THEN + 18 END * + 14 ELSE NULL END + - + 0
----
NULL

skipif mysql # not compatible
query I rowsort label-10
SELECT ALL + AVG ( + 47 ) * 12 * CASE - 85 WHEN - 85 THEN - COUNT ( * ) * - - 55 + - 51 + - COALESCE ( + - 46, + 0 ) / + + CASE - CASE - - 70 WHEN - 89 THEN - 41 + + + COALESCE ( + + 37, 61, 47 * + 79 + + 35 + - 80 ) END WHEN + - 62 THEN NULL WHEN + 62 THEN + 18 END * + 14 ELSE NULL END + - + 0
----
NULL

query I rowsort
SELECT - - 96 + 96
----
192

query I rowsort
SELECT NULLIF ( - - 68, - - 80 )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-13
SELECT - COUNT( * ) + CASE 75 WHEN 96 THEN - 51 WHEN ( - ( 4 ) ) * - 51 THEN COUNT( * ) * + 91 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-13
SELECT - COUNT ( * ) + CASE 75 WHEN 96 THEN - 51 WHEN ( - ( 4 ) ) * - 51 THEN COUNT ( * ) * + 91 END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-14
SELECT DISTINCT - 94 DIV + 45
----
-2

skipif mysql # not compatible
query I rowsort label-14
SELECT DISTINCT - 94 / + 45
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-15
SELECT DISTINCT + 82 + - + 66 + + - 2 - 26 + - COALESCE ( 61, - - 74 * + 23 * 31 * + MIN( DISTINCT - 42 ), - 0 + - 23 * 52 ) * - COUNT( * ) * + 30 * - - 19 * + 11 * 75 * + 37
----
1061354238

skipif mysql # not compatible
query I rowsort label-15
SELECT DISTINCT + 82 + - + 66 + + - 2 - 26 + - COALESCE ( 61, - - 74 * + 23 * 31 * + MIN ( DISTINCT - 42 ), - 0 + - 23 * 52 ) * - COUNT ( * ) * + 30 * - - 19 * + 11 * 75 * + 37
----
1061354238

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

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

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

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

query I rowsort
SELECT - + 69 + + + 52 + + 75 AS col1
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-19
SELECT - - COALESCE ( COUNT( * ), - - 48 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-19
SELECT - - COALESCE ( COUNT ( * ), - - 48 ) AS col1
----
1

query I rowsort
SELECT - - 94 + + 66
----
160

query I rowsort
SELECT ALL + 89 + - 23
----
66

query I rowsort
SELECT - + 20 + + 90 * + 76 + - + 71 AS col1
----
6749

query I rowsort
SELECT ALL - 97 * + 64 AS col1
----
-6208

query I rowsort
SELECT + 66 + - + 49
----
17

query I rowsort
SELECT ALL - + 70 * + + 42 AS col0
----
-2940

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

query I rowsort
SELECT + NULLIF ( - 89, + 3 * + 63 - - - 74 * + 59 )
----
-89

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-28
SELECT + 95 + - 76 - - 89 + - - 93 - - + 83 DIV 90 + + + COALESCE ( + 37, + CAST( + 62 AS SIGNED ) ) AS col0
----
238

skipif mysql # not compatible
query I rowsort label-28
SELECT + 95 + - 76 - - 89 + - - 93 - - + 83 / 90 + + + COALESCE ( + 37, + CAST ( + 62 AS INTEGER ) ) AS col0
----
238

query II rowsort
SELECT ALL 55 * + 23 - 28 AS col0, 69
----
1237
69

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-31
SELECT - COUNT( * ) * - CAST( + 80 AS SIGNED ) + + + 95 AS col0
----
175

skipif mysql # not compatible
query I rowsort label-31
SELECT - COUNT ( * ) * - CAST ( + 80 AS INTEGER ) + + + 95 AS col0
----
175

query I rowsort
SELECT + 88 * + 89 col0
----
7832

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-33
SELECT + 11 * + - 3 + - 36 - + + COUNT( * ) - 30 * + + CAST( - 57 AS SIGNED ) AS col0
----
1640

skipif mysql # not compatible
query I rowsort label-33
SELECT + 11 * + - 3 + - 36 - + + COUNT ( * ) - 30 * + + CAST ( - 57 AS INTEGER ) AS col0
----
1640

query I rowsort
SELECT DISTINCT + NULLIF ( - + 31, + 86 )
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-35
SELECT ALL COALESCE ( - + 8, 70 * + + 48, + CASE + - 14 WHEN - 83 THEN 43 END ) * + MIN( - 1 ) + 74
----
82

skipif mysql # not compatible
query I rowsort label-35
SELECT ALL COALESCE ( - + 8, 70 * + + 48, + CASE + - 14 WHEN - 83 THEN 43 END ) * + MIN ( - 1 ) + 74
----
82

query II rowsort
SELECT DISTINCT + 68 AS col1, 9 AS col0
----
68
9

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

query I rowsort
SELECT ALL 87 * + 41 * ( - 65 ) AS col0
----
-231855

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-39
SELECT + 93 * + + 98 * + CAST( - + 93 AS SIGNED ) AS col1
----
-847602

skipif mysql # not compatible
query I rowsort label-39
SELECT + 93 * + + 98 * + CAST ( - + 93 AS INTEGER ) AS col1
----
-847602

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

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

query I rowsort
SELECT - 72 * - + 72 - + 28 AS col2
----
5156

onlyif mysql # aggregate syntax: 
query I rowsort label-42
SELECT ALL + CASE - - 63 WHEN 3 THEN + 27 ELSE 67 + COUNT( * ) * - 98 + 32 + - - 11 * 75 * + 6 END
----
4951

skipif mysql # not compatible
query I rowsort label-42
SELECT ALL + CASE - - 63 WHEN 3 THEN + 27 ELSE 67 + COUNT ( * ) * - 98 + 32 + - - 11 * 75 * + 6 END
----
4951

onlyif mysql # aggregate syntax: 
query I rowsort label-43
SELECT ALL CASE - COUNT( * ) WHEN 93 THEN - 49 ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-43
SELECT ALL CASE - COUNT ( * ) WHEN 93 THEN - 49 ELSE NULL END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-44
SELECT ALL - 28 * SUM( - 18 * 62 ) + 20 col2
----
31268

skipif mysql # not compatible
query I rowsort label-44
SELECT ALL - 28 * SUM ( - 18 * 62 ) + 20 col2
----
31268

onlyif mysql # DIV for integer division: 
query I rowsort label-45
SELECT ALL 78 * 53 + + 95 DIV - 79
----
4133

skipif mysql # not compatible
query I rowsort label-45
SELECT ALL 78 * 53 + + 95 / - 79
----
4133

query I rowsort
SELECT DISTINCT + 53 * + 20
----
1060

onlyif mysql # aggregate syntax: 
query I rowsort label-47
SELECT SUM( DISTINCT 14 )
----
14

skipif mysql # not compatible
query I rowsort label-47
SELECT SUM ( DISTINCT 14 )
----
14

query I rowsort
SELECT - ( + CASE + ( - 40 ) WHEN - 20 THEN + NULLIF ( + 10, 44 ) / 79 - + 53 END ) * + 55 AS col1
----
NULL

query I rowsort
SELECT ALL ( - 10 ) col0
----
-10

query I rowsort
SELECT DISTINCT + 26 + - 77 * 83 AS col2
----
-6365

query I rowsort
SELECT DISTINCT 37 * + 88 AS col0
----
3256

query I rowsort
SELECT DISTINCT NULLIF ( - ( 9 ), + 61 ) AS col2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-53
SELECT ALL + COUNT( * ) + 97 col0
----
98

skipif mysql # not compatible
query I rowsort label-53
SELECT ALL + COUNT ( * ) + 97 col0
----
98

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

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

query I rowsort
SELECT DISTINCT + 35 * + 27 AS col0
----
945

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

onlyif mysql # DIV for integer division: 
query I rowsort label-57
SELECT - ( + 64 ) + 87 DIV 89 col2
----
-64

skipif mysql # not compatible
query I rowsort label-57
SELECT - ( + 64 ) + 87 / 89 col2
----
-64

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

skipif mysql # not compatible
query I rowsort label-58
SELECT - 19 / COUNT ( * ) AS col0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-59
SELECT ALL + 8 - - 25 * CASE 62 WHEN - 31 THEN NULL WHEN + 95 * - 69 + 50 THEN - 11 + + 81 WHEN 94 THEN - 86 WHEN 15 * COUNT( * ) - + 53 THEN 68 - + 83 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-59
SELECT ALL + 8 - - 25 * CASE 62 WHEN - 31 THEN NULL WHEN + 95 * - 69 + 50 THEN - 11 + + 81 WHEN 94 THEN - 86 WHEN 15 * COUNT ( * ) - + 53 THEN 68 - + 83 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT - ( ( 45 ) ) * 13
----
-585

query I rowsort
SELECT - NULLIF ( - 54, AVG ( DISTINCT + 88 ) )
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-62
SELECT DISTINCT + MIN( - 40 ) DIV CAST( 58 + 49 AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-62
SELECT DISTINCT + MIN ( - 40 ) / CAST ( 58 + 49 AS INTEGER ) AS col1
----
0

query I rowsort
SELECT - 83 - - 22 AS col1
----
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-64
SELECT + 89 DIV 66
----
1

skipif mysql # not compatible
query I rowsort label-64
SELECT + 89 / 66
----
1

query I rowsort
SELECT - 0 * 53
----
0

query I rowsort
SELECT ALL + 46 - 26
----
20

query I rowsort
SELECT ALL 47 - 61
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-68
SELECT DISTINCT COALESCE ( - 61, - COUNT( * ) * - 13 ) * 34
----
-2074

skipif mysql # not compatible
query I rowsort label-68
SELECT DISTINCT COALESCE ( - 61, - COUNT ( * ) * - 13 ) * 34
----
-2074

query I rowsort
SELECT ALL + 19 * 41 AS col0
----
779

onlyif mysql # DIV for integer division: 
query I rowsort label-70
SELECT 19 DIV - 12 + 90
----
89

skipif mysql # not compatible
query I rowsort label-70
SELECT 19 / - 12 + 90
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-71
SELECT 83 * - COUNT( * ) - + COUNT( * ) * 94 AS col0
----
-177

skipif mysql # not compatible
query I rowsort label-71
SELECT 83 * - COUNT ( * ) - + COUNT ( * ) * 94 AS col0
----
-177

query I rowsort
SELECT - 68 * + 59 + 39
----
-3973

query I rowsort
SELECT ( 34 ) * 42
----
1428

onlyif mysql # aggregate syntax: 
query I rowsort label-74
SELECT 25 + 54 * + ( MIN( - 24 ) ) AS col0
----
-1271

skipif mysql # not compatible
query I rowsort label-74
SELECT 25 + 54 * + ( MIN ( - 24 ) ) AS col0
----
-1271

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-75
SELECT DISTINCT CAST( NULL AS DECIMAL ) + ( 90 - 27 * + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-75
SELECT DISTINCT CAST ( NULL AS REAL ) + ( 90 - 27 * + COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-76
SELECT - 6 * + CASE 47 WHEN COUNT( DISTINCT 82 ) THEN COUNT( ALL + 49 ) + 62 END + COUNT( * ) / + 34
----
NULL

skipif mysql # not compatible
query I rowsort label-76
SELECT - 6 * + CASE 47 WHEN COUNT ( DISTINCT 82 ) THEN COUNT ( ALL + 49 ) + 62 END + COUNT ( * ) / + 34
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-77
SELECT ALL - CAST( SUM( 80 ) AS SIGNED )
----
-80

skipif mysql # not compatible
query I rowsort label-77
SELECT ALL - CAST ( SUM ( 80 ) AS INTEGER )
----
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-78
SELECT COALESCE ( - CASE 35 WHEN 41 * SUM( ALL 37 ) THEN 39 WHEN + AVG ( ALL 58 ) THEN NULL END, + 80 - + 52 ) DIV - 17 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-78
SELECT COALESCE ( - CASE 35 WHEN 41 * SUM ( ALL 37 ) THEN 39 WHEN + AVG ( ALL 58 ) THEN NULL END, + 80 - + 52 ) / - 17 AS col0
----
-1

query I rowsort
SELECT ALL + CASE 52 WHEN 55 THEN - 79 END + + 23
----
NULL

query I rowsort
SELECT DISTINCT 92 * 12
----
1104

query I rowsort
SELECT - COALESCE ( - 77, 66 )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-82
SELECT MIN( DISTINCT - 1 ) + - 77 * + 8 AS col0
----
-617

skipif mysql # not compatible
query I rowsort label-82
SELECT MIN ( DISTINCT - 1 ) + - 77 * + 8 AS col0
----
-617

query I rowsort
SELECT + 19 * - 76
----
-1444

onlyif mysql # aggregate syntax: 
query I rowsort label-84
SELECT ALL COUNT( + 71 ) + ( + 96 ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-84
SELECT ALL COUNT ( + 71 ) + ( + 96 ) AS col0
----
97

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

query I rowsort
SELECT 63 * 90
----
5670

query I rowsort
SELECT 50 + 14 AS col1
----
64

query I rowsort
SELECT DISTINCT 11 * - NULLIF ( 55, - 97 ) AS col1
----
-605

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

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

query I rowsort
SELECT + 50 * - 64 + 28 AS col2
----
-3172

onlyif mysql # aggregate syntax: 
query I rowsort label-91
SELECT COUNT( * ) - 86 AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-91
SELECT COUNT ( * ) - 86 AS col1
----
-85

query I rowsort
SELECT - + 56 col2
----
-56

query I rowsort
SELECT 43 + 17 * + NULLIF ( + 25 * - 11 - - 33, - 96 )
----
-4071

query I rowsort
SELECT ALL + 42 + + 93
----
135

query I rowsort
SELECT DISTINCT + 31 * 92 AS col2
----
2852

onlyif mysql # aggregate syntax: 
query I rowsort label-96
SELECT ALL + 72 + + 92 * + ( COUNT( ALL - 90 ) )
----
164

skipif mysql # not compatible
query I rowsort label-96
SELECT ALL + 72 + + 92 * + ( COUNT ( ALL - 90 ) )
----
164

query I rowsort
SELECT DISTINCT NULLIF ( + 33, 14 ) - 43 * 41
----
-1730

query I rowsort
SELECT 12 + + 96 AS col2
----
108

query I rowsort
SELECT ALL 18 - 26 AS col0
----
-8

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

skipif mysql # not compatible
query I rowsort label-100
SELECT DISTINCT - MAX ( 40 )
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-101
SELECT - + COALESCE ( - ( 55 ), COUNT( * ) * 68 + COALESCE ( - SUM( + 12 ), 34 - 70, 20 + - 55, 90 ), + 26, 53 + SUM( + 56 ) )
----
55

skipif mysql # not compatible
query I rowsort label-101
SELECT - + COALESCE ( - ( 55 ), COUNT ( * ) * 68 + COALESCE ( - SUM ( + 12 ), 34 - 70, 20 + - 55, 90 ), + 26, 53 + SUM ( + 56 ) )
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-102
SELECT ( - 51 ) + 43 DIV 66 AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-102
SELECT ( - 51 ) + 43 / 66 AS col2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-103
SELECT - COUNT( * ) * SUM( - 68 ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-103
SELECT - COUNT ( * ) * SUM ( - 68 ) AS col1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-104
SELECT SUM( 31 ) * 70
----
2170

skipif mysql # not compatible
query I rowsort label-104
SELECT SUM ( 31 ) * 70
----
2170

query I rowsort
SELECT DISTINCT + 15 * - 1
----
-15

query I rowsort
SELECT 7 * - + 84
----
-588

query I rowsort
SELECT DISTINCT 83 * + 52
----
4316

query I rowsort
SELECT ALL - 87 * + - 40
----
3480

query I rowsort
SELECT 26 + - + 53 + 43
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-110
SELECT SUM( 68 ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-110
SELECT SUM ( 68 ) AS col1
----
68

query I rowsort
SELECT ( - 51 ) * - ( 88 + 86 ) AS col0
----
8874

onlyif mysql # DIV for integer division: 
query I rowsort label-112
SELECT 45 + + - 73 DIV + 8 AS col2
----
36

skipif mysql # not compatible
query I rowsort label-112
SELECT 45 + + - 73 / + 8 AS col2
----
36

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

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

query I rowsort
SELECT DISTINCT - 61 + 51 AS col1
----
-10

query I rowsort
SELECT 35 * - 10
----
-350

query I rowsort
SELECT ALL - 15 * + + 53 AS col1
----
-795

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-117
SELECT ALL - COALESCE ( + 86, - 19 DIV ( - 60 ), 82 * COUNT( * ) ) + 61
----
-25

skipif mysql # not compatible
query I rowsort label-117
SELECT ALL - COALESCE ( + 86, - 19 / ( - 60 ), 82 * COUNT ( * ) ) + 61
----
-25

query I rowsort
SELECT ALL + 88 + 5
----
93

query I rowsort
SELECT ALL 51 + + + 53
----
104

query I rowsort
SELECT 43 * 54 + - 22
----
2300

onlyif mysql # aggregate syntax: 
query I rowsort label-121
SELECT ALL + MAX( DISTINCT + ( ( + NULLIF ( CASE - 26 WHEN 21 THEN NULL WHEN 61 THEN 32 ELSE 6 END, 81 ) ) ) ) * + 26 AS col2
----
156

skipif mysql # not compatible
query I rowsort label-121
SELECT ALL + MAX ( DISTINCT + ( ( + NULLIF ( CASE - 26 WHEN 21 THEN NULL WHEN 61 THEN 32 ELSE 6 END, 81 ) ) ) ) * + 26 AS col2
----
156

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

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

query I rowsort
SELECT DISTINCT 4 + - 99
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-124
SELECT + CAST( NULL AS SIGNED ) * + + 12 * + 5 - 38
----
NULL

skipif mysql # not compatible
query I rowsort label-124
SELECT + CAST ( NULL AS INTEGER ) * + + 12 * + 5 - 38
----
NULL

query I rowsort
SELECT ALL - 71 - + 83
----
-154

onlyif mysql # aggregate syntax: 
query I rowsort label-126
SELECT + 10 * + 5 + COALESCE ( NULLIF ( - 38, + 54 * ( AVG ( 34 ) ) ), ( + 93 ) - 66 ) * COUNT( * )
----
12

skipif mysql # not compatible
query I rowsort label-126
SELECT + 10 * + 5 + COALESCE ( NULLIF ( - 38, + 54 * ( AVG ( 34 ) ) ), ( + 93 ) - 66 ) * COUNT ( * )
----
12

query I rowsort
SELECT ALL 49 * - 24 col2
----
-1176

onlyif mysql # DIV for integer division: 
query I rowsort label-128
SELECT 34 DIV 66
----
0

skipif mysql # not compatible
query I rowsort label-128
SELECT 34 / 66
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-129
SELECT ALL 89 DIV COUNT( * ) DIV 29
----
3

skipif mysql # not compatible
query I rowsort label-129
SELECT ALL 89 / COUNT ( * ) / 29
----
3

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

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

query I rowsort
SELECT - 76 * + 89
----
-6764

query I rowsort
SELECT 14 - + 79 * - CASE 87 - 95 WHEN - 10 * - 34 THEN 99 WHEN 9 * 69 + 98 THEN NULL END AS col1
----
NULL

query I rowsort
SELECT ALL 29 * + + 20 * + 60 + + 98 * - 21 AS col1
----
32742

query I rowsort
SELECT ALL - 16 * + + 90 AS col1
----
-1440

query I rowsort
SELECT DISTINCT 78 * - + 5
----
-390

query I rowsort
SELECT ALL NULLIF ( - 79, + - ( 39 ) ) * 39
----
-3081

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-137
SELECT - CASE + 46 WHEN - + 84 * MIN( DISTINCT CAST( NULL AS SIGNED ) * + 55 ) THEN 15 - + 9 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-137
SELECT - CASE + 46 WHEN - + 84 * MIN ( DISTINCT CAST ( NULL AS INTEGER ) * + 55 ) THEN 15 - + 9 ELSE NULL END
----
NULL

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

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

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

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

query II rowsort
SELECT ALL 55 AS col0, - 47
----
55
-47

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

query I rowsort
SELECT - 23 * 18 AS col2
----
-414

query I rowsort
SELECT DISTINCT 29 + ( 75 ) * - 31
----
-2296

query I rowsort
SELECT - 58 * - + NULLIF ( - 49, + 21 ) col2
----
-2842

query I rowsort
SELECT ALL 64 + 48
----
112

query I rowsort
SELECT + 70 + + 3 AS col0
----
73

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

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

query I rowsort
SELECT DISTINCT + 95 * + 7 + + 73
----
738

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-151
SELECT ALL + 46 * - + CASE NULLIF ( 64, 13 ) WHEN + 12 - - 65 * - ( - 94 ) THEN AVG ( DISTINCT - 89 ) * - 35 WHEN 67 THEN NULL END + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-151
SELECT ALL + 46 * - + CASE NULLIF ( 64, 13 ) WHEN + 12 - - 65 * - ( - 94 ) THEN AVG ( DISTINCT - 89 ) * - 35 WHEN 67 THEN NULL END + COUNT ( * )
----
NULL

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

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

query I rowsort
SELECT ALL 29 * + ( - - 52 ) + - 73
----
1435

onlyif mysql # aggregate syntax: 
query I rowsort label-154
SELECT ALL 97 * + 68 * - 90 + - COUNT( * )
----
-593641

skipif mysql # not compatible
query I rowsort label-154
SELECT ALL 97 * + 68 * - 90 + - COUNT ( * )
----
-593641

onlyif mysql # aggregate syntax: 
query I rowsort label-155
SELECT - NULLIF ( + + 2, - + COUNT( * ) ) - 6
----
-8

skipif mysql # not compatible
query I rowsort label-155
SELECT - NULLIF ( + + 2, - + COUNT ( * ) ) - 6
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-156
SELECT NULLIF ( - 27, + MAX( 7 ) ) AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-156
SELECT NULLIF ( - 27, + MAX ( 7 ) ) AS col0
----
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-157
SELECT + + COUNT( * ), - 23 + - + COUNT( * ) col0
----
1
-24

skipif mysql # not compatible
query II rowsort label-157
SELECT + + COUNT ( * ), - 23 + - + COUNT ( * ) col0
----
1
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-158
SELECT DISTINCT COUNT( * ) * + + 75 - 44
----
31

skipif mysql # not compatible
query I rowsort label-158
SELECT DISTINCT COUNT ( * ) * + + 75 - 44
----
31

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

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

query I rowsort
SELECT - - 22 * + - 5 AS col0
----
-110

query I rowsort
SELECT + COALESCE ( - 25, + 98 + - 33, - 58 ) col2
----
-25

query I rowsort
SELECT ALL - + 3 * ( + 31 ) * - ( 56 * 32 )
----
166656

query I rowsort
SELECT DISTINCT + 53 * + - 83 - 32 + - 29
----
-4460

onlyif mysql # aggregate syntax: 
query I rowsort label-164
SELECT + 82 * - - 56 * + 19 * 8 - 31 * NULLIF ( 58 - COUNT( * ) * 71, 75 + 78 ) - 51 * - 14 AS col2
----
699101

skipif mysql # not compatible
query I rowsort label-164
SELECT + 82 * - - 56 * + 19 * 8 - 31 * NULLIF ( 58 - COUNT ( * ) * 71, 75 + 78 ) - 51 * - 14 AS col2
----
699101

query I rowsort
SELECT - 47 + 32 AS col1
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-166
SELECT DISTINCT - - CASE 51 WHEN 1 * COALESCE ( - COUNT( * ) - 26, + 61, 64 ) THEN - 92 WHEN MAX( 21 ) THEN NULL END * - 70
----
NULL

skipif mysql # not compatible
query I rowsort label-166
SELECT DISTINCT - - CASE 51 WHEN 1 * COALESCE ( - COUNT ( * ) - 26, + 61, 64 ) THEN - 92 WHEN MAX ( 21 ) THEN NULL END * - 70
----
NULL

query I rowsort
SELECT + - 20 * + 22
----
-440

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-168
SELECT + + COUNT( * ) - CAST( NULL AS SIGNED ) / + COALESCE ( - CASE CASE 85 WHEN + 59 THEN 50 END WHEN + 74 THEN 16 END, 41, - SUM( - 2 ) + 3 ) * 20 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-168
SELECT + + COUNT ( * ) - CAST ( NULL AS INTEGER ) / + COALESCE ( - CASE CASE 85 WHEN + 59 THEN 50 END WHEN + 74 THEN 16 END, 41, - SUM ( - 2 ) + 3 ) * 20 AS col2
----
NULL

query II rowsort
SELECT DISTINCT + 16, 21 * + 64 * 94 + - 79 AS col0
----
16
126257

query II rowsort
SELECT DISTINCT 94, 96 AS col0
----
94
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-171
SELECT ALL - MAX( ALL + 20 ) DIV 21 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-171
SELECT ALL - MAX ( ALL + 20 ) / 21 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-172
SELECT - + 60 + 75 + 18 - + 49 * - CASE - COALESCE ( COUNT( * ), ( + SUM( DISTINCT - 26 ) ) + - 12 * 64 ) WHEN NULLIF ( 35, + 78 ) THEN + 29 END
----
NULL

skipif mysql # not compatible
query I rowsort label-172
SELECT - + 60 + 75 + 18 - + 49 * - CASE - COALESCE ( COUNT ( * ), ( + SUM ( DISTINCT - 26 ) ) + - 12 * 64 ) WHEN NULLIF ( 35, + 78 ) THEN + 29 END
----
NULL

query I rowsort
SELECT DISTINCT + CASE + - 36 WHEN + 61 * 11 THEN NULL WHEN - 10 + + ( 4 ) THEN NULL ELSE 67 END AS col2
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-174
SELECT ALL + ( + 5 ) DIV - 29 * ( 61 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-174
SELECT ALL + ( + 5 ) / - 29 * ( 61 ) AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-175
SELECT - 0 * - CAST( - 75 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-175
SELECT - 0 * - CAST ( - 75 AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-176
SELECT + 6 + - NULLIF ( - + COUNT( * ), + - 55 ) * 31
----
37

skipif mysql # not compatible
query I rowsort label-176
SELECT + 6 + - NULLIF ( - + COUNT ( * ), + - 55 ) * 31
----
37

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

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

query I rowsort
SELECT + 70 * + 95 AS col2
----
6650

onlyif mysql # aggregate syntax: 
query I rowsort label-179
SELECT + MIN( ALL 19 ) + - + 73 col0
----
-54

skipif mysql # not compatible
query I rowsort label-179
SELECT + MIN ( ALL 19 ) + - + 73 col0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-180
SELECT - CASE - 98 WHEN + 75 + - COALESCE ( 73, COUNT( * ), 72 + 50 ) THEN NULL WHEN SUM( ALL 84 ) THEN + 75 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-180
SELECT - CASE - 98 WHEN + 75 + - COALESCE ( 73, COUNT ( * ), 72 + 50 ) THEN NULL WHEN SUM ( ALL 84 ) THEN + 75 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT DISTINCT + ( - ( - + 82 ) ) + - 9 AS col1
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-182
SELECT + COUNT( * ) DIV + - 76 * ( + + 96 ) * - MAX( - 79 * - 16 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-182
SELECT + COUNT ( * ) / + - 76 * ( + + 96 ) * - MAX ( - 79 * - 16 ) col2
----
0

query I rowsort
SELECT ALL ( + 41 ) + - ( + CASE 70 WHEN 66 THEN - CASE AVG ( ALL + 10 ) WHEN AVG ( DISTINCT 42 ) THEN 67 * 69 WHEN - 48 THEN - 52 END * - 45 END )
----
NULL

query I rowsort
SELECT ALL 10 + - + 27 - - + 65 + 2 AS col1
----
50

query I rowsort
SELECT + 16 * - 65 * 5
----
-5200

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-186
SELECT DISTINCT 87 DIV + 67 + + 84 * + SUM( DISTINCT 54 )
----
4537

skipif mysql # not compatible
query I rowsort label-186
SELECT DISTINCT 87 / + 67 + + 84 * + SUM ( DISTINCT 54 )
----
4537

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-187
SELECT ALL 62 DIV 15 - - - COUNT( * ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-187
SELECT ALL 62 / 15 - - - COUNT ( * ) AS col1
----
3

query II rowsort
SELECT + 80 * + + 45 AS col1, + 20
----
3600
20

query I rowsort
SELECT CASE + 31 WHEN + 21 + - NULLIF ( - NULLIF ( - 31, 44 ), 7 ) THEN 79 END * - 97 + 0 AS col0
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-191
SELECT ALL 72 DIV 30 * ( 34 ) * 72 - 34 AS col0
----
4862

skipif mysql # not compatible
query I rowsort label-191
SELECT ALL 72 / 30 * ( 34 ) * 72 - 34 AS col0
----
4862

onlyif mysql # aggregate syntax: 
query II rowsort label-192
SELECT DISTINCT + COUNT( * ) * + 20, 24 * 20 AS col2
----
20
480

skipif mysql # not compatible
query II rowsort label-192
SELECT DISTINCT + COUNT ( * ) * + 20, 24 * 20 AS col2
----
20
480

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

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

query I rowsort
SELECT + + 5 * + NULLIF ( - + 22, + + ( 83 ) ) AS col0
----
-110

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-196
SELECT + + COUNT( 91 ) DIV + 35 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-196
SELECT + + COUNT ( 91 ) / + 35 AS col1
----
0

query I rowsort
SELECT - 37 + 1
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-198
SELECT DISTINCT + 27 DIV + 30
----
0

skipif mysql # not compatible
query I rowsort label-198
SELECT DISTINCT + 27 / + 30
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-199
SELECT - 94 DIV + + NULLIF ( + 22, - ( 16 ) )
----
-4

skipif mysql # not compatible
query I rowsort label-199
SELECT - 94 / + + NULLIF ( + 22, - ( 16 ) )
----
-4

query I rowsort
SELECT ALL + 78 + + 95 * 24 * - 53 + 15
----
-120747

query I rowsort
SELECT ALL - + 92 + + 97 AS col2
----
5

query I rowsort
SELECT DISTINCT + - 21 + - + 47 AS col0
----
-68

query II rowsort
SELECT ALL + 19 + - 91 * + 87 AS col2, 84 AS col0
----
-7898
84

query I rowsort
SELECT 45 * + 97
----
4365

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-205
SELECT ALL + CAST( - + ( - + 22 ) AS SIGNED ) + - + COUNT( DISTINCT 22 ) + 79 * 75
----
5946

skipif mysql # not compatible
query I rowsort label-205
SELECT ALL + CAST ( - + ( - + 22 ) AS INTEGER ) + - + COUNT ( DISTINCT 22 ) + 79 * 75
----
5946

query II rowsort
SELECT ALL 8 col1, 4
----
8
4

query I rowsort
SELECT DISTINCT - ( - 48 ) + + 39
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-208
SELECT ALL + MAX( - - 86 ) + - - COUNT( * ) * 29
----
115

skipif mysql # not compatible
query I rowsort label-208
SELECT ALL + MAX ( - - 86 ) + - - COUNT ( * ) * 29
----
115

query I rowsort
SELECT ALL 34 + + - 62
----
-28

query I rowsort
SELECT 34 + + 11 + + - 98
----
-53

query I rowsort
SELECT ALL - 57 - - - 92 AS col0
----
-149

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-212
SELECT ( + + 1 ) * + + 95 * + 69 + + COALESCE ( 39, + CAST( NULL AS SIGNED ) * COUNT( * ) + 7 * + 61, + 22, + 16 + - 42 * CAST( NULL AS SIGNED ) )
----
6594

skipif mysql # not compatible
query I rowsort label-212
SELECT ( + + 1 ) * + + 95 * + 69 + + COALESCE ( 39, + CAST ( NULL AS INTEGER ) * COUNT ( * ) + 7 * + 61, + 22, + 16 + - 42 * CAST ( NULL AS INTEGER ) )
----
6594

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-213
SELECT 60 + - 43 * + CAST( + 54 AS SIGNED ) AS col0
----
-2262

skipif mysql # not compatible
query I rowsort label-213
SELECT 60 + - 43 * + CAST ( + 54 AS INTEGER ) AS col0
----
-2262

query I rowsort
SELECT DISTINCT - 48 * + 87 * - 88
----
367488

onlyif mysql # aggregate syntax: 
query I rowsort label-215
SELECT ALL + 94 - - MAX( ALL + 6 ) AS col1
----
100

skipif mysql # not compatible
query I rowsort label-215
SELECT ALL + 94 - - MAX ( ALL + 6 ) AS col1
----
100

query I rowsort
SELECT DISTINCT - + 70 * - 85
----
5950

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-217
SELECT DISTINCT - CASE + 42 WHEN - 76 * - ( + MAX( ALL - 9 ) ) + - SUM( + 93 ) THEN 32 WHEN MIN( DISTINCT ( COALESCE ( + 93, ( 40 ) ) ) ) * - 76 THEN + 81 + - 12 ELSE COUNT( * ) END DIV 66
----
0

skipif mysql # not compatible
query I rowsort label-217
SELECT DISTINCT - CASE + 42 WHEN - 76 * - ( + MAX ( ALL - 9 ) ) + - SUM ( + 93 ) THEN 32 WHEN MIN ( DISTINCT ( COALESCE ( + 93, ( 40 ) ) ) ) * - 76 THEN + 81 + - 12 ELSE COUNT ( * ) END / 66
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-218
SELECT + 63 * - ( - + 52 ) * 50 * + - ( + COALESCE ( 54, - 35, 96 * - COUNT( * ) ) ) * - COUNT( 5 ) AS col2
----
8845200

skipif mysql # not compatible
query I rowsort label-218
SELECT + 63 * - ( - + 52 ) * 50 * + - ( + COALESCE ( 54, - 35, 96 * - COUNT ( * ) ) ) * - COUNT ( 5 ) AS col2
----
8845200

query II rowsort
SELECT 0, - 62 + - 84 col2
----
0
-146

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-221
SELECT 32 * + 24 * 22 * + + MAX( + 52 )
----
878592

skipif mysql # not compatible
query I rowsort label-221
SELECT 32 * + 24 * 22 * + + MAX ( + 52 )
----
878592

onlyif mysql # aggregate syntax: 
query I rowsort label-222
SELECT + SUM( DISTINCT - + 32 )
----
-32

skipif mysql # not compatible
query I rowsort label-222
SELECT + SUM ( DISTINCT - + 32 )
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-223
SELECT + + 87 * + 8 + + MIN( 65 ) + + 0 * - MAX( + 36 ) + + ( 75 ) col0
----
836

skipif mysql # not compatible
query I rowsort label-223
SELECT + + 87 * + 8 + + MIN ( 65 ) + + 0 * - MAX ( + 36 ) + + ( 75 ) col0
----
836

query I rowsort
SELECT ALL 95 * - + 38 + - 75
----
-3685

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-225
SELECT 12 * + + 66 * - NULLIF ( CAST( - - 95 AS SIGNED ), 12 ) col1
----
-75240

skipif mysql # not compatible
query I rowsort label-225
SELECT 12 * + + 66 * - NULLIF ( CAST ( - - 95 AS INTEGER ), 12 ) col1
----
-75240

query I rowsort
SELECT ALL - 87 + 51 AS col1
----
-36

query I rowsort
SELECT ALL - - 31 + 15
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-228
SELECT ALL - COUNT( * ) + 23 + NULLIF ( - 93, + - 38 ) AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-228
SELECT ALL - COUNT ( * ) + 23 + NULLIF ( - 93, + - 38 ) AS col2
----
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-229
SELECT DISTINCT 66 + + 85 DIV + - 25 + + 91 DIV + 62 col0
----
64

skipif mysql # not compatible
query I rowsort label-229
SELECT DISTINCT 66 + + 85 / + - 25 + + 91 / + 62 col0
----
64

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-231
SELECT + COUNT( * ) + - 18 + 54 - 88 * - 11
----
1005

skipif mysql # not compatible
query I rowsort label-231
SELECT + COUNT ( * ) + - 18 + 54 - 88 * - 11
----
1005

onlyif mysql # aggregate syntax: 
query II rowsort label-232
SELECT ALL 84 + - 35 + - 47 AS col2, + COUNT( * ) * + 9 * + 94
----
2
846

skipif mysql # not compatible
query II rowsort label-232
SELECT ALL 84 + - 35 + - 47 AS col2, + COUNT ( * ) * + 9 * + 94
----
2
846

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-234
SELECT - 28 DIV + + 53 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-234
SELECT - 28 / + + 53 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-235
SELECT - CAST( NULL AS SIGNED ) * + + 22 * - 66 + + 83 + - COALESCE ( - 11, + ( + COALESCE ( + 94, + CAST( NULL AS SIGNED ) * 64, + 24 ) ) + 81 / COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-235
SELECT - CAST ( NULL AS INTEGER ) * + + 22 * - 66 + + 83 + - COALESCE ( - 11, + ( + COALESCE ( + 94, + CAST ( NULL AS INTEGER ) * 64, + 24 ) ) + 81 / COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-236
SELECT 51 * COUNT( * ) * + 90
----
4590

skipif mysql # not compatible
query I rowsort label-236
SELECT 51 * COUNT ( * ) * + 90
----
4590

onlyif mysql # DIV for integer division: 
query I rowsort label-237
SELECT DISTINCT + 15 DIV + + 60
----
0

skipif mysql # not compatible
query I rowsort label-237
SELECT DISTINCT + 15 / + + 60
----
0

query I rowsort
SELECT COALESCE ( + 5, + 40, + 54 ) + - 33 - - 73
----
45

onlyif mysql # aggregate syntax: 
query II rowsort label-239
SELECT ALL COUNT( 20 ) + + + 43 * - 62, - 71 AS col1
----
-2665
-71

skipif mysql # not compatible
query II rowsort label-239
SELECT ALL COUNT ( 20 ) + + + 43 * - 62, - 71 AS col1
----
-2665
-71

query I rowsort
SELECT ALL - 97 * - 5 AS col2
----
485

onlyif mysql # aggregate syntax: 
query I rowsort label-241
SELECT ALL 53 + + - COUNT( + 71 )
----
52

skipif mysql # not compatible
query I rowsort label-241
SELECT ALL 53 + + - COUNT ( + 71 )
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-242
SELECT DISTINCT 70 / + 66 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-242
SELECT DISTINCT 70 / + 66 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 24 - + 26 AS col1
----
-2

query I rowsort
SELECT 51 + - - 5 * - 17 AS col0
----
-34

query II rowsort
SELECT 54 * - + 63, - 0 AS col0
----
-3402
0

query II rowsort
SELECT ALL 14 AS col2, 17 AS col2
----
14
17

onlyif mysql # aggregate syntax: 
query I rowsort label-247
SELECT 70 + - 90 + + COUNT( * ) - + 46 + + COUNT( * ) * + - 51 * - 70 AS col2
----
3505

skipif mysql # not compatible
query I rowsort label-247
SELECT 70 + - 90 + + COUNT ( * ) - + 46 + + COUNT ( * ) * + - 51 * - 70 AS col2
----
3505

query II rowsort
SELECT ALL + 25 - - 96 AS col2, + 68
----
121
68

query I rowsort
SELECT 41 * + 41 * - 58
----
-97498

query II rowsort
SELECT 36 AS col1, + 99
----
36
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-251
SELECT 79 + + COALESCE ( + 19, - 30 * + 68, - COALESCE ( + 74, + 66 * 50, COUNT( * ) ) * ( 27 ), 73 ) DIV + 37
----
79

skipif mysql # not compatible
query I rowsort label-251
SELECT 79 + + COALESCE ( + 19, - 30 * + 68, - COALESCE ( + 74, + 66 * 50, COUNT ( * ) ) * ( 27 ), 73 ) / + 37
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-252
SELECT DISTINCT AVG ( - ( CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-252
SELECT DISTINCT AVG ( - ( CAST ( NULL AS INTEGER ) ) )
----
NULL

query II rowsort
SELECT 17 AS col1, 6 AS col0
----
17
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-254
SELECT ALL + ( 18 ) - + 96 - - - SUM( + 87 ) - 7 + 11 DIV ( + 88 + 58 ) DIV + 56 AS col0
----
-172

skipif mysql # not compatible
query I rowsort label-254
SELECT ALL + ( 18 ) - + 96 - - - SUM ( + 87 ) - 7 + 11 / ( + 88 + 58 ) / + 56 AS col0
----
-172

query I rowsort
SELECT 66 * + + 14
----
924

onlyif mysql # aggregate syntax: 
query I rowsort label-256
SELECT DISTINCT MAX( DISTINCT 83 ) AS col0
----
83

skipif mysql # not compatible
query I rowsort label-256
SELECT DISTINCT MAX ( DISTINCT 83 ) AS col0
----
83

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

onlyif mysql # aggregate syntax: 
query I rowsort label-258
SELECT ALL COALESCE ( - + SUM( ALL + 79 ), 43 ) * + 8 - + 68 * + 64 AS col0
----
-4984

skipif mysql # not compatible
query I rowsort label-258
SELECT ALL COALESCE ( - + SUM ( ALL + 79 ), 43 ) * + 8 - + 68 * + 64 AS col0
----
-4984

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

skipif mysql # not compatible
query I rowsort label-259
SELECT MAX ( + 67 ) / + COUNT ( * ) AS col0
----
67

query I rowsort
SELECT - ( - NULLIF ( + 19, 30 / - + 39 * - + 85 * 82 ) )
----
19

query II rowsort
SELECT + 94 AS col2, + 5 - + 96 * + 47 * + 86
----
94
-388027

onlyif mysql # DIV for integer division: 
query I rowsort label-262
SELECT - 83 DIV + - 3 - + 42 + COALESCE ( - 93, - 36 + 58 )
----
-108

skipif mysql # not compatible
query I rowsort label-262
SELECT - 83 / + - 3 - + 42 + COALESCE ( - 93, - 36 + 58 )
----
-108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-263
SELECT DISTINCT + CASE - - 62 WHEN - CASE - 1 WHEN - - 49 THEN - + CAST( + 57 AS SIGNED ) / 59 WHEN COUNT( * ) * 86 + + 58 THEN NULL ELSE CAST( NULL AS SIGNED ) END * + 56 + - MAX( DISTINCT 20 ) * - ( 14 * - 55 ) THEN 10 END * - 41
----
NULL

skipif mysql # not compatible
query I rowsort label-263
SELECT DISTINCT + CASE - - 62 WHEN - CASE - 1 WHEN - - 49 THEN - + CAST ( + 57 AS INTEGER ) / 59 WHEN COUNT ( * ) * 86 + + 58 THEN NULL ELSE CAST ( NULL AS INTEGER ) END * + 56 + - MAX ( DISTINCT 20 ) * - ( 14 * - 55 ) THEN 10 END * - 41
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-265
SELECT DISTINCT - ( + COUNT( * ) ) * + - NULLIF ( + 74, - COALESCE ( - 11, - 63 ) ) + - 77
----
-3

skipif mysql # not compatible
query I rowsort label-265
SELECT DISTINCT - ( + COUNT ( * ) ) * + - NULLIF ( + 74, - COALESCE ( - 11, - 63 ) ) + - 77
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-266
SELECT - + COUNT( * ) DIV + 29 + + 71 - - 9 AS col0
----
80

skipif mysql # not compatible
query I rowsort label-266
SELECT - + COUNT ( * ) / + 29 + + 71 - - 9 AS col0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-267
SELECT DISTINCT + - COUNT( * ) * - 35 * + 59 + - ( - 76 )
----
2141

skipif mysql # not compatible
query I rowsort label-267
SELECT DISTINCT + - COUNT ( * ) * - 35 * + 59 + - ( - 76 )
----
2141

onlyif mysql # aggregate syntax: 
query I rowsort label-268
SELECT DISTINCT - 0 * - 57 * + MIN( + 24 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-268
SELECT DISTINCT - 0 * - 57 * + MIN ( + 24 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-269
SELECT ALL - 96 * - SUM( DISTINCT - 70 ) + - - 89 + - - 94 * - + 82
----
-14339

skipif mysql # not compatible
query I rowsort label-269
SELECT ALL - 96 * - SUM ( DISTINCT - 70 ) + - - 89 + - - 94 * - + 82
----
-14339

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-270
SELECT ALL - 3 * - + ( + 62 ) + COUNT( * ) AS col1, - CASE - - 22 WHEN CAST( NULL AS SIGNED ) + 60 THEN 34 WHEN - COUNT( * ) + 7 THEN NULL WHEN - 35 * 47 THEN CASE 45 WHEN + 6 * + COUNT( * ) + - 35 THEN + 78 + + 34 ELSE - 12 END * - 52 ELSE 68 END * 75 + 48 * - 54 AS col2
----
187
-7692

skipif mysql # not compatible
query II rowsort label-270
SELECT ALL - 3 * - + ( + 62 ) + COUNT ( * ) AS col1, - CASE - - 22 WHEN CAST ( NULL AS INTEGER ) + 60 THEN 34 WHEN - COUNT ( * ) + 7 THEN NULL WHEN - 35 * 47 THEN CASE 45 WHEN + 6 * + COUNT ( * ) + - 35 THEN + 78 + + 34 ELSE - 12 END * - 52 ELSE 68 END * 75 + 48 * - 54 AS col2
----
187
-7692

query I rowsort
SELECT DISTINCT + - 96 * + 54 * - - 28 + - - 76 AS col0
----
-145076

onlyif mysql # aggregate syntax: 
query I rowsort label-272
SELECT DISTINCT - + 30 * + + 85 * + - 26 * + - MIN( ALL + 51 ) + 76 + 26 * COUNT( * )
----
-3381198

skipif mysql # not compatible
query I rowsort label-272
SELECT DISTINCT - + 30 * + + 85 * + - 26 * + - MIN ( ALL + 51 ) + 76 + 26 * COUNT ( * )
----
-3381198

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-273
SELECT - + 67 * 4 + - CAST( NULL AS SIGNED ) + - 77, - 25 * + COUNT( * ) AS col0
----
NULL
-25

skipif mysql # not compatible
query II rowsort label-273
SELECT - + 67 * 4 + - CAST ( NULL AS INTEGER ) + - 77, - 25 * + COUNT ( * ) AS col0
----
NULL
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-274
SELECT ALL + 8 AS col2, MAX( ALL + 30 ) DIV + - 28
----
8
-1

skipif mysql # not compatible
query II rowsort label-274
SELECT ALL + 8 AS col2, MAX ( ALL + 30 ) / + - 28
----
8
-1

query I rowsort
SELECT COALESCE ( - - 32, + + 64 )
----
32

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

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

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

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

query I rowsort
SELECT + 71 * + 30
----
2130

onlyif mysql # aggregate syntax: 
query I rowsort label-279
SELECT ALL MIN( ALL + + 37 ) * + 31 - 88 AS col1
----
1059

skipif mysql # not compatible
query I rowsort label-279
SELECT ALL MIN ( ALL + + 37 ) * + 31 - 88 AS col1
----
1059

onlyif mysql # aggregate syntax: 
query I rowsort label-280
SELECT ALL 29 * - 20 * 44 * COALESCE ( - 87, - COUNT( * ), + 55 )
----
2220240

skipif mysql # not compatible
query I rowsort label-280
SELECT ALL 29 * - 20 * 44 * COALESCE ( - 87, - COUNT ( * ), + 55 )
----
2220240

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-281
SELECT + 41 * - NULLIF ( - 5, - CAST( NULL AS DECIMAL ) ) AS col2
----
205

skipif mysql # not compatible
query I rowsort label-281
SELECT + 41 * - NULLIF ( - 5, - CAST ( NULL AS REAL ) ) AS col2
----
205

query I rowsort
SELECT DISTINCT 64 * 48
----
3072

query I rowsort
SELECT ALL ( + ( ( + 19 ) ) ) - + 60 AS col0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-284
SELECT - ( CASE 36 WHEN COUNT( - 63 ) + + 20 - COUNT( DISTINCT 66 ) THEN NULL ELSE COALESCE ( MIN( ALL + 1 ), 98, 14, 72 ) * - 13 + - 6 * - 37 END )
----
-209

skipif mysql # not compatible
query I rowsort label-284
SELECT - ( CASE 36 WHEN COUNT ( - 63 ) + + 20 - COUNT ( DISTINCT 66 ) THEN NULL ELSE COALESCE ( MIN ( ALL + 1 ), 98, 14, 72 ) * - 13 + - 6 * - 37 END )
----
-209

query I rowsort
SELECT + 5 * + + 21 * 30 * - 85
----
-267750

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

skipif mysql # not compatible
query I rowsort label-286
SELECT + COUNT ( DISTINCT + 63 ) - COUNT ( * ) AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-287
SELECT ALL - 66 DIV - + 32
----
2

skipif mysql # not compatible
query I rowsort label-287
SELECT ALL - 66 / - + 32
----
2

query I rowsort
SELECT + 57 - ( + 17 ) AS col1
----
40

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-290
SELECT ALL CASE - + 49 WHEN + 86 / 47 * + 78 + + + ( - 32 ) + + 43 THEN - ( 4 ) WHEN + 22 THEN - NULLIF ( + COUNT( * ), 68 + + COUNT( * ) * 95 ) WHEN 11 * + 92 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-290
SELECT ALL CASE - + 49 WHEN + 86 / 47 * + 78 + + + ( - 32 ) + + 43 THEN - ( 4 ) WHEN + 22 THEN - NULLIF ( + COUNT ( * ), 68 + + COUNT ( * ) * 95 ) WHEN 11 * + 92 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-291
SELECT - 10 * + CAST( - 72 AS SIGNED ) AS col1, CASE - 17 WHEN - + 40 THEN NULL ELSE + + 96 END - - COUNT( * ) * + 86 AS col1
----
720
182

skipif mysql # not compatible
query II rowsort label-291
SELECT - 10 * + CAST ( - 72 AS INTEGER ) AS col1, CASE - 17 WHEN - + 40 THEN NULL ELSE + + 96 END - - COUNT ( * ) * + 86 AS col1
----
720
182

onlyif mysql # aggregate syntax: 
query I rowsort label-292
SELECT ALL COALESCE ( + 94, MAX( ALL - + 34 ) )
----
94

skipif mysql # not compatible
query I rowsort label-292
SELECT ALL COALESCE ( + 94, MAX ( ALL - + 34 ) )
----
94

query II rowsort
SELECT ALL + 94 * + 78 AS col1, + 13 - - + 63
----
7332
76

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-296
SELECT ALL - MAX ( 61 )
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-297
SELECT - + COALESCE ( - CAST( + ( + - NULLIF ( - 45, + COALESCE ( - 43, MIN( ALL + 27 ), COUNT( * ) ) * - 22 ) ) AS SIGNED ), 66 * 43 )
----
45

skipif mysql # not compatible
query I rowsort label-297
SELECT - + COALESCE ( - CAST ( + ( + - NULLIF ( - 45, + COALESCE ( - 43, MIN ( ALL + 27 ), COUNT ( * ) ) * - 22 ) ) AS INTEGER ), 66 * 43 )
----
45

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-299
SELECT - + 26 * MIN( - 26 ) * + CASE + - 57 WHEN 58 / - COUNT( DISTINCT - 89 ) THEN NULL WHEN COUNT( * ) THEN NULL ELSE + 70 END + - CASE WHEN NOT 22 IS NULL THEN + 74 END AS col2
----
47246

skipif mysql # not compatible
query I rowsort label-299
SELECT - + 26 * MIN ( - 26 ) * + CASE + - 57 WHEN 58 / - COUNT ( DISTINCT - 89 ) THEN NULL WHEN COUNT ( * ) THEN NULL ELSE + 70 END + - CASE WHEN NOT 22 IS NULL THEN + 74 END AS col2
----
47246

query I rowsort
SELECT DISTINCT - + 27 + - 23 col2
----
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-301
SELECT DISTINCT 99 * - SUM( DISTINCT 46 ), COUNT( * ) * 5 AS col2
----
-4554
5

skipif mysql # not compatible
query II rowsort label-301
SELECT DISTINCT 99 * - SUM ( DISTINCT 46 ), COUNT ( * ) * 5 AS col2
----
-4554
5

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-302
SELECT ALL 60 / ( - CAST( - 83 AS SIGNED ) ) + - + 74 + CAST( NULL AS DECIMAL ) - - 10 + - 71 * ( 57 ) * 49 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-302
SELECT ALL 60 / ( - CAST ( - 83 AS INTEGER ) ) + - + 74 + CAST ( NULL AS REAL ) - - 10 + - 71 * ( 57 ) * 49 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-303
SELECT ALL - 6 DIV + 62 + + ( COUNT( * ) ) col2
----
1

skipif mysql # not compatible
query I rowsort label-303
SELECT ALL - 6 / + 62 + + ( COUNT ( * ) ) col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-304
SELECT ALL - ( + + 44 ) DIV + 66 + - 54
----
-54

skipif mysql # not compatible
query I rowsort label-304
SELECT ALL - ( + + 44 ) / + 66 + - 54
----
-54

query I rowsort
SELECT - ( - + COALESCE ( + - 12, 15, - 40 ) ) + + 54
----
42

onlyif mysql # DIV for integer division: 
query II rowsort label-306
SELECT ALL - - 85 DIV - 69, 3 * - 62 AS col2
----
-1
-186

skipif mysql # not compatible
query II rowsort label-306
SELECT ALL - - 85 / - 69, 3 * - 62 AS col2
----
-1
-186

onlyif mysql # aggregate syntax: 
query I rowsort label-307
SELECT + SUM( - + 90 ) AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-307
SELECT + SUM ( - + 90 ) AS col1
----
-90

query I rowsort
SELECT - COALESCE ( 93, - ( 23 ), - 92 * - 96 ) * + + 58 + + ( 1 + - 46 * 93 ) + + 67 * ( - 47 ) AS col0
----
-12820

query I rowsort
SELECT - + 66 * - 10 + 79
----
739

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-310
SELECT + - 60 * + AVG ( + - 70 ) * + + 99 * - + CAST( NULL AS SIGNED ) * - COUNT( * ) + 47 * + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-310
SELECT + - 60 * + AVG ( + - 70 ) * + + 99 * - + CAST ( NULL AS INTEGER ) * - COUNT ( * ) + 47 * + COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-311
SELECT DISTINCT + - COUNT( * ) * 94 - + - 0 + - + 65
----
-159

skipif mysql # not compatible
query I rowsort label-311
SELECT DISTINCT + - COUNT ( * ) * 94 - + - 0 + - + 65
----
-159

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-312
SELECT ALL 22 * CASE 72 WHEN + - COALESCE ( - - CASE + 9 WHEN + 19 THEN - 98 + - 44 * 10 END, - 31 + + COALESCE ( + MAX( ALL - 89 ), 75 ) * - 43, - ( CAST( 68 AS SIGNED ) ) + + 35 * 6 ) THEN 9 * + 37 END * 79 - - 32 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-312
SELECT ALL 22 * CASE 72 WHEN + - COALESCE ( - - CASE + 9 WHEN + 19 THEN - 98 + - 44 * 10 END, - 31 + + COALESCE ( + MAX ( ALL - 89 ), 75 ) * - 43, - ( CAST ( 68 AS INTEGER ) ) + + 35 * 6 ) THEN 9 * + 37 END * 79 - - 32 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-313
SELECT - 24 * - 22 DIV - COUNT( * ) AS col1, + COUNT( * ) + MAX( ALL - - 36 )
----
-528
37

skipif mysql # not compatible
query II rowsort label-313
SELECT - 24 * - 22 / - COUNT ( * ) AS col1, + COUNT ( * ) + MAX ( ALL - - 36 )
----
-528
37

onlyif mysql # aggregate syntax: 
query I rowsort label-314
SELECT - 12 + - 56 * + COUNT( * )
----
-68

skipif mysql # not compatible
query I rowsort label-314
SELECT - 12 + - 56 * + COUNT ( * )
----
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-315
SELECT 61 * + 76 - + 39 + - 58 DIV + 58 AS col1
----
4596

skipif mysql # not compatible
query I rowsort label-315
SELECT 61 * + 76 - + 39 + - 58 / + 58 AS col1
----
4596

onlyif mysql # aggregate syntax: 
query I rowsort label-316
SELECT + MAX( ALL 33 ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-316
SELECT + MAX ( ALL 33 ) AS col1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-317
SELECT CASE 63 WHEN - 47 + - 78 + - 0 * - - 47 * - ( - - 9 ) / - ( + 19 ) + - COUNT( * ) THEN NULL WHEN + ( 71 ) THEN MAX( DISTINCT 18 ) ELSE NULLIF ( - 79, - 94 ) + 49 END AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-317
SELECT CASE 63 WHEN - 47 + - 78 + - 0 * - - 47 * - ( - - 9 ) / - ( + 19 ) + - COUNT ( * ) THEN NULL WHEN + ( 71 ) THEN MAX ( DISTINCT 18 ) ELSE NULLIF ( - 79, - 94 ) + 49 END AS col1
----
-30

query I rowsort
SELECT - 5 + - + 85 AS col0
----
-90

query I rowsort
SELECT - 64 * - 81 * + 32 AS col1
----
165888

onlyif mysql # aggregate syntax: 
query II rowsort label-320
SELECT COUNT( + - 46 ) * + 18 * + 13 - COUNT( * ) + - - 50, 86 AS col2
----
283
86

skipif mysql # not compatible
query II rowsort label-320
SELECT COUNT ( + - 46 ) * + 18 * + 13 - COUNT ( * ) + - - 50, 86 AS col2
----
283
86

query I rowsort
SELECT + 87 * 85
----
7395

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

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

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

skipif mysql # not compatible
query I rowsort label-323
SELECT + COUNT ( DISTINCT + - 32 ) + - - 76 AS col2
----
77

query I rowsort
SELECT + 34 + + + 35 * + - 20 * - 94
----
65834

query I rowsort
SELECT ALL 45 * - 8
----
-360

onlyif mysql # aggregate syntax: 
query I rowsort label-326
SELECT DISTINCT 75 * + MAX( + 28 ) * COUNT( * )
----
2100

skipif mysql # not compatible
query I rowsort label-326
SELECT DISTINCT 75 * + MAX ( + 28 ) * COUNT ( * )
----
2100

query I rowsort
SELECT DISTINCT CASE + NULLIF ( - 27, - ( 61 ) + - - AVG ( ALL + 2 ) * - ( - 30 ) ) WHEN 32 THEN NULL ELSE COALESCE ( 60, 16 * 28 ) END AS col1
----
60

query I rowsort
SELECT + 98 * 79
----
7742

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

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

query I rowsort
SELECT ALL 10 * + 50 AS col2
----
500

onlyif mysql # aggregate syntax: 
query I rowsort label-331
SELECT MAX( ALL + 92 ) AS col1
----
92

skipif mysql # not compatible
query I rowsort label-331
SELECT MAX ( ALL + 92 ) AS col1
----
92

query I rowsort
SELECT + 80 + + 47
----
127

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

skipif mysql # not compatible
query II rowsort label-333
SELECT 63 col1, COUNT ( * ) col1
----
63
1

query I rowsort
SELECT DISTINCT NULLIF ( 73, + + 3 + + - 90 ) + + 73
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-335
SELECT ALL + 77 + COUNT( * ) * + - CASE - 14 WHEN + 43 * - 42 + 63 THEN - - COUNT( * ) ELSE - 21 + 88 * 1 END AS col0
----
10

skipif mysql # not compatible
query I rowsort label-335
SELECT ALL + 77 + COUNT ( * ) * + - CASE - 14 WHEN + 43 * - 42 + 63 THEN - - COUNT ( * ) ELSE - 21 + 88 * 1 END AS col0
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-336
SELECT + SUM( 87 ) * + + 31 * + COUNT( * ), 54 col2
----
2697
54

skipif mysql # not compatible
query II rowsort label-336
SELECT + SUM ( 87 ) * + + 31 * + COUNT ( * ), 54 col2
----
2697
54

onlyif mysql # aggregate syntax: 
query I rowsort label-337
SELECT CASE + - 45 WHEN + + 37 * - - 63 THEN NULL WHEN - 17 THEN NULL ELSE 59 + + 90 * - 66 * COUNT( * ) END AS col0
----
-5881

skipif mysql # not compatible
query I rowsort label-337
SELECT CASE + - 45 WHEN + + 37 * - - 63 THEN NULL WHEN - 17 THEN NULL ELSE 59 + + 90 * - 66 * COUNT ( * ) END AS col0
----
-5881

query I rowsort
SELECT ALL - 2 + 87 * - 70
----
-6092

onlyif mysql # aggregate syntax: 
query I rowsort label-339
SELECT DISTINCT MIN( ALL 96 ) AS col1
----
96

skipif mysql # not compatible
query I rowsort label-339
SELECT DISTINCT MIN ( ALL 96 ) AS col1
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-340
SELECT DISTINCT CASE - CAST( 89 AS SIGNED ) WHEN - + 11 THEN NULL WHEN + CASE + 25 WHEN + COALESCE ( - COUNT( * ), - 79, + AVG ( 45 ) ) THEN 90 + CAST( 38 AS SIGNED ) WHEN CASE - COUNT( * ) WHEN - 49 THEN 28 WHEN - NULLIF ( 29, - 33 * - 47 ) / - 88 + - 23 THEN NULL END THEN NULL END THEN 95 WHEN ( - 58 ) THEN NULL END + + 25 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-340
SELECT DISTINCT CASE - CAST ( 89 AS INTEGER ) WHEN - + 11 THEN NULL WHEN + CASE + 25 WHEN + COALESCE ( - COUNT ( * ), - 79, + AVG ( 45 ) ) THEN 90 + CAST ( 38 AS INTEGER ) WHEN CASE - COUNT ( * ) WHEN - 49 THEN 28 WHEN - NULLIF ( 29, - 33 * - 47 ) / - 88 + - 23 THEN NULL END THEN NULL END THEN 95 WHEN ( - 58 ) THEN NULL END + + 25 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-341
SELECT ALL + 11 * MIN( DISTINCT + 56 ) DIV - - COALESCE ( + 37, 75 * - 44 * - - 81 * COUNT( * ) + - ( - 8 ) * + 58 ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-341
SELECT ALL + 11 * MIN ( DISTINCT + 56 ) / - - COALESCE ( + 37, 75 * - 44 * - - 81 * COUNT ( * ) + - ( - 8 ) * + 58 ) AS col1
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-342
SELECT DISTINCT - COUNT( * ) AS col2, 36 DIV ( + 24 ) + + 93
----
-1
94

skipif mysql # not compatible
query II rowsort label-342
SELECT DISTINCT - COUNT ( * ) AS col2, 36 / ( + 24 ) + + 93
----
-1
94

query I rowsort
SELECT ALL 6 + - 67 AS col2
----
-61

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

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

query I rowsort
SELECT 56 * + 44
----
2464

onlyif mysql # aggregate syntax: 
query II rowsort label-346
SELECT ALL - 50 * COUNT( + - 32 ) AS col2, NULLIF ( - 92, - 17 / 58 * 74 / + 19 ) * COUNT( * ) col1
----
-50
-92

skipif mysql # not compatible
query II rowsort label-346
SELECT ALL - 50 * COUNT ( + - 32 ) AS col2, NULLIF ( - 92, - 17 / 58 * 74 / + 19 ) * COUNT ( * ) col1
----
-50
-92

query I rowsort
SELECT + 72 * + 2 * + 35
----
5040

onlyif mysql # aggregate syntax: 
query I rowsort label-348
SELECT ALL - MAX( DISTINCT + - ( + - 48 ) ) * + 54
----
-2592

skipif mysql # not compatible
query I rowsort label-348
SELECT ALL - MAX ( DISTINCT + - ( + - 48 ) ) * + 54
----
-2592

query I rowsort
SELECT ALL + COALESCE ( + 43, 39, + - 65 ) - + - 12 col0
----
55

query II rowsort
SELECT + 64 col1, 80 AS col2
----
64
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-351
SELECT - - COUNT( * ) * + 70 * - 58 + - 81 * 48 / - + COUNT( * ) * + + NULLIF ( - - COUNT( * ), 30 * + 17 ) - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-351
SELECT - - COUNT ( * ) * + 70 * - 58 + - 81 * 48 / - + COUNT ( * ) * + + NULLIF ( - - COUNT ( * ), 30 * + 17 ) - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-353
SELECT ALL 17 * - + CAST( NULL AS SIGNED ) * 93 + + 14 + 14 + - + 12 * - 63 * + + 27 * - CASE + 79 WHEN - 51 THEN NULL WHEN - 22 * 46 + + 15 THEN NULL ELSE 56 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-353
SELECT ALL 17 * - + CAST ( NULL AS INTEGER ) * 93 + + 14 + 14 + - + 12 * - 63 * + + 27 * - CASE + 79 WHEN - 51 THEN NULL WHEN - 22 * 46 + + 15 THEN NULL ELSE 56 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-354
SELECT DISTINCT - CASE 36 WHEN - 43 * + 14 THEN NULL ELSE + COUNT( * ) * - 22 END
----
22

skipif mysql # not compatible
query I rowsort label-354
SELECT DISTINCT - CASE 36 WHEN - 43 * + 14 THEN NULL ELSE + COUNT ( * ) * - 22 END
----
22

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-356
SELECT DISTINCT + 84 DIV 71 col1
----
1

skipif mysql # not compatible
query I rowsort label-356
SELECT DISTINCT + 84 / 71 col1
----
1

query I rowsort
SELECT 44 * - + 84 * - 23
----
85008

query I rowsort
SELECT 80 * - + 9
----
-720

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

skipif mysql # not compatible
query I rowsort label-359
SELECT + CAST ( NULL AS INTEGER ) * 84 + + 78
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-360
SELECT DISTINCT + 48 * - COALESCE ( + COUNT( * ), 16 ) AS col1, + 22 AS col2
----
-48
22

skipif mysql # not compatible
query II rowsort label-360
SELECT DISTINCT + 48 * - COALESCE ( + COUNT ( * ), 16 ) AS col1, + 22 AS col2
----
-48
22

query I rowsort
SELECT ALL + 75 * + 50 * - + 77
----
-288750

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

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

query I rowsort
SELECT ALL + 66 * - 98 AS col2
----
-6468

onlyif mysql # DIV for integer division: 
query I rowsort label-364
SELECT ALL - 3 + + 67 + 77 + - 42 + + - 21 DIV 53 + + 27
----
126

skipif mysql # not compatible
query I rowsort label-364
SELECT ALL - 3 + + 67 + 77 + - 42 + + - 21 / 53 + + 27
----
126

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

query I rowsort
SELECT ALL - 94 * + + 45 AS col2
----
-4230

query II rowsort
SELECT CASE - 22 WHEN - 92 THEN NULL WHEN - 11 * 86 THEN NULL ELSE + 36 END * 9 col2, + 71 AS col0
----
324
71

query II rowsort
SELECT 69 * - - 97 AS col1, 71 col0
----
6693
71

query I rowsort
SELECT DISTINCT 4 + - 52
----
-48

query I rowsort
SELECT 55 - 52 + - 54
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-371
SELECT ALL - - COUNT( * ) + + 17, 26 + CASE - + COUNT( * ) WHEN - + 48 THEN + 83 WHEN + CAST( - SUM( ALL CAST( 55 AS SIGNED ) ) AS SIGNED ) + + 96 * COUNT( * ) THEN NULL ELSE 26 END * 56 AS col1
----
18
1482

skipif mysql # not compatible
query II rowsort label-371
SELECT ALL - - COUNT ( * ) + + 17, 26 + CASE - + COUNT ( * ) WHEN - + 48 THEN + 83 WHEN + CAST ( - SUM ( ALL CAST ( 55 AS INTEGER ) ) AS INTEGER ) + + 96 * COUNT ( * ) THEN NULL ELSE 26 END * 56 AS col1
----
18
1482

query I rowsort
SELECT DISTINCT 51 * - 32 * - 77 AS col2
----
125664

onlyif mysql # aggregate syntax: 
query II rowsort label-373
SELECT ALL 90 + + 4 + - - 46 * - 31 AS col0, + 26 + - - 73 * + CASE - + COUNT( * ) WHEN 97 + - ( + 62 ) THEN NULL WHEN + 64 THEN NULL WHEN - 31 THEN 90 * 57 + + 57 * + 22 END AS col2
----
-1332
NULL

skipif mysql # not compatible
query II rowsort label-373
SELECT ALL 90 + + 4 + - - 46 * - 31 AS col0, + 26 + - - 73 * + CASE - + COUNT ( * ) WHEN 97 + - ( + 62 ) THEN NULL WHEN + 64 THEN NULL WHEN - 31 THEN 90 * 57 + + 57 * + 22 END AS col2
----
-1332
NULL

query I rowsort
SELECT ALL - 54 * - 99 AS col1
----
5346

onlyif mysql # aggregate syntax: 
query I rowsort label-375
SELECT ( MIN( 30 ) ) - - 90 + 13 * - 14 * + 34 * CASE 10 WHEN + 87 * - 67 THEN + 16 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-375
SELECT ( MIN ( 30 ) ) - - 90 + 13 * - 14 * + 34 * CASE 10 WHEN + 87 * - 67 THEN + 16 ELSE NULL END
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-377
SELECT 71 - - COUNT( * ), + 10 * + + CAST( NULL AS SIGNED ) / - 62 AS col1
----
72
NULL

skipif mysql # not compatible
query II rowsort label-377
SELECT 71 - - COUNT ( * ), + 10 * + + CAST ( NULL AS INTEGER ) / - 62 AS col1
----
72
NULL

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

skipif mysql # not compatible
query I rowsort label-378
SELECT - COUNT ( - 42 ) * + - 96 - + 57 AS col2
----
39

query I rowsort
SELECT 1 * + + 10
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-380
SELECT ALL + 30 - 90 - 24 + - + 3 AS col2, 80 * + ( + + 55 ) + + - COUNT( * )
----
-87
4399

skipif mysql # not compatible
query II rowsort label-380
SELECT ALL + 30 - 90 - 24 + - + 3 AS col2, 80 * + ( + + 55 ) + + - COUNT ( * )
----
-87
4399

query I rowsort
SELECT 4 + 74 col2
----
78

query I rowsort
SELECT 50 + - 50 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-383
SELECT CASE + - NULLIF ( - 42, - - COUNT( * ) * - 17 / 66 ) WHEN 43 THEN + COUNT( * ) WHEN 7 THEN NULL ELSE 77 END * + 41 col0
----
3157

skipif mysql # not compatible
query I rowsort label-383
SELECT CASE + - NULLIF ( - 42, - - COUNT ( * ) * - 17 / 66 ) WHEN 43 THEN + COUNT ( * ) WHEN 7 THEN NULL ELSE 77 END * + 41 col0
----
3157

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-384
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * + 29 / 55 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-384
SELECT DISTINCT + CAST ( NULL AS REAL ) * + 29 / 55 col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-385
SELECT DISTINCT ( 54 ) DIV - + 85 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-385
SELECT DISTINCT ( 54 ) / - + 85 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-386
SELECT DISTINCT - COUNT( * ) * + 90 - + - 37 + + 64 + 46 * 9
----
425

skipif mysql # not compatible
query I rowsort label-386
SELECT DISTINCT - COUNT ( * ) * + 90 - + - 37 + + 64 + 46 * 9
----
425

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-387
SELECT - + 40 * - + 7 * - + 5 * 35 + 35 - + 94 + - 24 * 46 DIV + 67 * - COUNT( * )
----
-49043

skipif mysql # not compatible
query I rowsort label-387
SELECT - + 40 * - + 7 * - + 5 * 35 + 35 - + 94 + - 24 * 46 / + 67 * - COUNT ( * )
----
-49043

query I rowsort
SELECT DISTINCT 41 * + + 77 col0
----
3157

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-390
SELECT MAX( - 66 ) / + 4 + + CASE 35 WHEN - SUM( DISTINCT - 95 ) THEN 0 * COUNT( * ) * AVG ( DISTINCT CAST( + 5 AS DECIMAL ) ) * + 74 + + 63 END + + 20
----
NULL

skipif mysql # not compatible
query I rowsort label-390
SELECT MAX ( - 66 ) / + 4 + + CASE 35 WHEN - SUM ( DISTINCT - 95 ) THEN 0 * COUNT ( * ) * AVG ( DISTINCT CAST ( + 5 AS REAL ) ) * + 74 + + 63 END + + 20
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-391
SELECT ALL NULLIF ( MAX( DISTINCT 68 ), + SUM( ALL + CAST( - 25 AS SIGNED ) ) / + NULLIF ( - 47, + - 43 * 92 - - 84 ) + + 20 / 48 ) * - 7 AS col2
----
-476

skipif mysql # not compatible
query I rowsort label-391
SELECT ALL NULLIF ( MAX ( DISTINCT 68 ), + SUM ( ALL + CAST ( - 25 AS INTEGER ) ) / + NULLIF ( - 47, + - 43 * 92 - - 84 ) + + 20 / 48 ) * - 7 AS col2
----
-476

query I rowsort
SELECT ALL + 35 + 47
----
82

query I rowsort
SELECT + 94 * - 47 - + 7
----
-4425

onlyif mysql # aggregate syntax: 
query II rowsort label-394
SELECT COUNT( * ), 98 + - + COALESCE ( - + 38, + 29 ) AS col2
----
1
136

skipif mysql # not compatible
query II rowsort label-394
SELECT COUNT ( * ), 98 + - + COALESCE ( - + 38, + 29 ) AS col2
----
1
136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-395
SELECT ALL - 8 + 55 + + 12 + + ( CAST( - 12 AS SIGNED ) ) * + 96 * - COUNT( * ) * + + 54 AS col0
----
62267

skipif mysql # not compatible
query I rowsort label-395
SELECT ALL - 8 + 55 + + 12 + + ( CAST ( - 12 AS INTEGER ) ) * + 96 * - COUNT ( * ) * + + 54 AS col0
----
62267

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-396
SELECT 35 * 0 DIV + 55 * + - 20 + - 41 + - COUNT( * ) - + + 87 AS col2
----
-129

skipif mysql # not compatible
query I rowsort label-396
SELECT 35 * 0 / + 55 * + - 20 + - 41 + - COUNT ( * ) - + + 87 AS col2
----
-129

query I rowsort
SELECT ALL + COALESCE ( 89, + ( + 65 ) * - - 4 ) col1
----
89

query I rowsort
SELECT - 81 + 4 AS col2
----
-77

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

skipif mysql # not compatible
query I rowsort label-399
SELECT ALL + COUNT ( * ) + + 3 AS col1
----
4

query I rowsort
SELECT - ( - + COALESCE ( - + 98, + + ( + + 45 ) ) ) + - - ( 82 ) - - 36 * + + 40
----
1424

onlyif mysql # aggregate syntax: 
query I rowsort label-401
SELECT ALL - MAX( ALL 32 ) + 91 AS col2
----
59

skipif mysql # not compatible
query I rowsort label-401
SELECT ALL - MAX ( ALL 32 ) + 91 AS col2
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-402
SELECT ( - 19 ) * - COUNT( * ) + 50 AS col0
----
69

skipif mysql # not compatible
query I rowsort label-402
SELECT ( - 19 ) * - COUNT ( * ) + 50 AS col0
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-403
SELECT ALL 33 DIV + 51 col1
----
0

skipif mysql # not compatible
query I rowsort label-403
SELECT ALL 33 / + 51 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-404
SELECT DISTINCT - 90 + - MIN( + - 10 ) * - 65 * - - 38 AS col1
----
-24790

skipif mysql # not compatible
query I rowsort label-404
SELECT DISTINCT - 90 + - MIN ( + - 10 ) * - 65 * - - 38 AS col1
----
-24790

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-406
SELECT DISTINCT + NULLIF ( - + MAX( - 89 ), 29 * + + 25 + + 99 ) * - ( + ( - 84 ) ) + - 10 AS col1
----
7466

skipif mysql # not compatible
query I rowsort label-406
SELECT DISTINCT + NULLIF ( - + MAX ( - 89 ), 29 * + + 25 + + 99 ) * - ( + ( - 84 ) ) + - 10 AS col1
----
7466

query I rowsort
SELECT DISTINCT + 27 + COALESCE ( + - 75, - 3 * 1, + 53 )
----
-48

query I rowsort
SELECT DISTINCT + 16 * - 16 AS col0
----
-256

onlyif mysql # aggregate syntax: 
query I rowsort label-409
SELECT - + 89 + + SUM( - 22 ) + 65 AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-409
SELECT - + 89 + + SUM ( - 22 ) + 65 AS col1
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-410
SELECT ALL - 6 AS col1, ( + 46 ) * + CASE 31 WHEN + NULLIF ( 70, - 32 ) * - COUNT( * ) + - + 87 + - AVG ( ALL 53 ) * - 26 THEN NULL WHEN COALESCE ( + 83, ( 19 ) ) / - MIN( ALL + ( - 18 ) ) THEN 59 * ( CAST( NULL AS SIGNED ) / 76 ) END + CAST( COUNT( ALL - 30 ) AS SIGNED )
----
-6
NULL

skipif mysql # not compatible
query II rowsort label-410
SELECT ALL - 6 AS col1, ( + 46 ) * + CASE 31 WHEN + NULLIF ( 70, - 32 ) * - COUNT ( * ) + - + 87 + - AVG ( ALL 53 ) * - 26 THEN NULL WHEN COALESCE ( + 83, ( 19 ) ) / - MIN ( ALL + ( - 18 ) ) THEN 59 * ( CAST ( NULL AS INTEGER ) / 76 ) END + CAST ( COUNT ( ALL - 30 ) AS INTEGER )
----
-6
NULL

query II rowsort
SELECT + 30 AS col2, 26 AS col0
----
30
26

onlyif mysql # aggregate syntax: 
query II rowsort label-412
SELECT - - 14 + - MAX( ALL + 24 ) AS col2, + 62 AS col0
----
-10
62

skipif mysql # not compatible
query II rowsort label-412
SELECT - - 14 + - MAX ( ALL + 24 ) AS col2, + 62 AS col0
----
-10
62

query I rowsort
SELECT DISTINCT + CASE + - 99 WHEN + ( + - 48 ) THEN NULL WHEN - 12 THEN 59 WHEN - - NULLIF ( + ( - - 50 ), + 64 * - 46 ) * 94 THEN NULL END AS col0
----
NULL

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

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

query II rowsort
SELECT ALL - 34 - + - 91 * + 22 AS col0, + 91 * + ( 63 ) AS col1
----
1968
5733

onlyif mysql # aggregate syntax: 
query II rowsort label-416
SELECT - + 37 + COUNT( - + 51 ) AS col2, 43 AS col2
----
-36
43

skipif mysql # not compatible
query II rowsort label-416
SELECT - + 37 + COUNT ( - + 51 ) AS col2, 43 AS col2
----
-36
43

onlyif mysql # DIV for integer division: 
query III rowsort label-417
SELECT DISTINCT - 37 AS col0, + 10 DIV + 42 AS col0, - 16 AS col0
----
-37
0
-16

skipif mysql # not compatible
query III rowsort label-417
SELECT DISTINCT - 37 AS col0, + 10 / + 42 AS col0, - 16 AS col0
----
-37
0
-16

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

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

query I rowsort
SELECT ALL 69 * + + 10 - + 25 AS col0
----
665

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

skipif mysql # not compatible
query I rowsort label-420
SELECT ALL - SUM ( - 55 )
----
55

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

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

query I rowsort
SELECT - 96 * + 81 - - + 50
----
-7726

onlyif mysql # aggregate syntax: 
query I rowsort label-423
SELECT + 66 + MAX( DISTINCT + + 36 ) + + 4 col2
----
106

skipif mysql # not compatible
query I rowsort label-423
SELECT + 66 + MAX ( DISTINCT + + 36 ) + + 4 col2
----
106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-424
SELECT ALL 35 * 86 + 62 + - 69 * + + 64 * - + COALESCE ( - - 62, + COUNT( * ) * - + ( 54 ) DIV - NULLIF ( 96 + + CAST( - 99 AS SIGNED ) * + COUNT( * ), 73 DIV 64 ), - 44 DIV - 13 + - 47 ) * 28 AS col0
----
7669248

skipif mysql # not compatible
query I rowsort label-424
SELECT ALL 35 * 86 + 62 + - 69 * + + 64 * - + COALESCE ( - - 62, + COUNT ( * ) * - + ( 54 ) / - NULLIF ( 96 + + CAST ( - 99 AS INTEGER ) * + COUNT ( * ), 73 / 64 ), - 44 / - 13 + - 47 ) * 28 AS col0
----
7669248

query II rowsort
SELECT ALL + 9 AS col1, - 79 col1
----
9
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-426
SELECT SUM( - + 25 ) * 74 + - CAST( NULL AS SIGNED ) - 57 + + 22 / + - 15 - - + 2 * - 93 + + AVG ( ALL - - 73 )
----
NULL

skipif mysql # not compatible
query I rowsort label-426
SELECT SUM ( - + 25 ) * 74 + - CAST ( NULL AS INTEGER ) - 57 + + 22 / + - 15 - - + 2 * - 93 + + AVG ( ALL - - 73 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-427
SELECT + 34 DIV + 42 - + + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-427
SELECT + 34 / + 42 - + + COUNT ( * )
----
-1

query II rowsort
SELECT ALL + 25 AS col1, - 50 + - + 33 - + COALESCE ( - COALESCE ( + - 59, - 33 + + - 95 ), + 25 ) + - 86
----
25
-228

query I rowsort
SELECT + 59 * + ( + 52 )
----
3068

onlyif mysql # aggregate syntax: 
query I rowsort label-430
SELECT ALL COUNT( * ) * 22 * + ( + COUNT( * ) ) + - + 17
----
5

skipif mysql # not compatible
query I rowsort label-430
SELECT ALL COUNT ( * ) * 22 * + ( + COUNT ( * ) ) + - + 17
----
5

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

onlyif mysql # aggregate syntax: 
query I rowsort label-432
SELECT + 28 + - SUM( 18 ) + - + 35 - + ( + 58 ) * - + 88
----
5079

skipif mysql # not compatible
query I rowsort label-432
SELECT + 28 + - SUM ( 18 ) + - + 35 - + ( + 58 ) * - + 88
----
5079

onlyif mysql # DIV for integer division: 
query I rowsort label-433
SELECT DISTINCT 34 DIV + 82 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-433
SELECT DISTINCT 34 / + 82 AS col0
----
0

query II rowsort
SELECT ALL + 24 AS col0, - 83 * + 17 AS col0
----
24
-1411

query I rowsort
SELECT + 27 * - 3 + - 61
----
-142

onlyif mysql # DIV for integer division: 
query I rowsort label-436
SELECT ( - - 98 ) DIV 13 - 92 * NULLIF ( + 60, + 42 + + 83 + - 53 ) + + + 23 AS col0
----
-5490

skipif mysql # not compatible
query I rowsort label-436
SELECT ( - - 98 ) / 13 - 92 * NULLIF ( + 60, + 42 + + 83 + - 53 ) + + + 23 AS col0
----
-5490

onlyif mysql # aggregate syntax: 
query I rowsort label-437
SELECT CASE + 71 WHEN - 83 + 89 THEN NULL ELSE + COUNT( * ) - + + 82 END
----
-81

skipif mysql # not compatible
query I rowsort label-437
SELECT CASE + 71 WHEN - 83 + 89 THEN NULL ELSE + COUNT ( * ) - + + 82 END
----
-81

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-438
SELECT 40 * 55 * NULLIF ( 45, - CAST( 81 AS SIGNED ) ) / - COALESCE ( + ( 25 ), + 41 ) * - 24 * + NULLIF ( 86 * 78, 74 ) + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-438
SELECT 40 * 55 * NULLIF ( 45, - CAST ( 81 AS INTEGER ) ) / - COALESCE ( + ( 25 ), + 41 ) * - 24 * + NULLIF ( 86 * 78, 74 ) + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-439
SELECT ALL 46 * 25 + ( - 83 ) + - CAST( NULL AS SIGNED ) + - + 72 * - 12 * 52
----
NULL

skipif mysql # not compatible
query I rowsort label-439
SELECT ALL 46 * 25 + ( - 83 ) + - CAST ( NULL AS INTEGER ) + - + 72 * - 12 * 52
----
NULL

query I rowsort
SELECT + 92 * + + 55 AS col2
----
5060

onlyif mysql # aggregate syntax: 
query I rowsort label-441
SELECT + CASE - 94 WHEN + + COUNT( * ) + - 68 + + - 83 + CASE 21 WHEN + 18 + + ( - + AVG ( + - 90 ) ) + 0 THEN NULL ELSE - 16 END * - NULLIF ( NULLIF ( + 27, 7 + 98 ), 26 ) THEN - 16 * + 37 WHEN + 27 THEN 88 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-441
SELECT + CASE - 94 WHEN + + COUNT ( * ) + - 68 + + - 83 + CASE 21 WHEN + 18 + + ( - + AVG ( + - 90 ) ) + 0 THEN NULL ELSE - 16 END * - NULLIF ( NULLIF ( + 27, 7 + 98 ), 26 ) THEN - 16 * + 37 WHEN + 27 THEN 88 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT COALESCE ( - 81, - 44 * - 68 * + + 71 ) AS col1
----
-81

query I rowsort
SELECT + ( - 4 ) * - 67 AS col0
----
268

onlyif mysql # aggregate syntax: 
query I rowsort label-444
SELECT DISTINCT CASE + + 38 WHEN - COUNT( * ) * 26 + 33 + + 23 THEN - 51 WHEN - + 4 * + 48 THEN NULL END * - + 40 + + + 52 + - 28 / + 83 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-444
SELECT DISTINCT CASE + + 38 WHEN - COUNT ( * ) * 26 + 33 + + 23 THEN - 51 WHEN - + 4 * + 48 THEN NULL END * - + 40 + + + 52 + - 28 / + 83 AS col2
----
NULL

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

query I rowsort
SELECT ALL 83 * 55 + + 45 AS col0
----
4610

onlyif mysql # aggregate syntax: 
query II rowsort label-447
SELECT ALL 89 * + 15 + + NULLIF ( ( - COUNT( * ) ), - 61 ) col1, 60 * + ( + - 97 ) * - + 19 * + - 40 + - ( - 2 + + ( - 37 + + 97 ) ) col0
----
1334
-4423258

skipif mysql # not compatible
query II rowsort label-447
SELECT ALL 89 * + 15 + + NULLIF ( ( - COUNT ( * ) ), - 61 ) col1, 60 * + ( + - 97 ) * - + 19 * + - 40 + - ( - 2 + + ( - 37 + + 97 ) ) col0
----
1334
-4423258

query I rowsort
SELECT ALL - 86 * - 73 - + 40 + - 35 * + 61 AS col0
----
4103

query I rowsort
SELECT NULLIF ( + + 84, + 79 + 48 )
----
84

onlyif mysql # aggregate syntax: 
query II rowsort label-450
SELECT - + 8, 47 + - 47 * - COUNT( * ) + COUNT( - ( - 67 ) ) + + 50 * - 81 - + NULLIF ( 77, COUNT( * ) - - 70 ) AS col0
----
-8
-4032

skipif mysql # not compatible
query II rowsort label-450
SELECT - + 8, 47 + - 47 * - COUNT ( * ) + COUNT ( - ( - 67 ) ) + + 50 * - 81 - + NULLIF ( 77, COUNT ( * ) - - 70 ) AS col0
----
-8
-4032

query II rowsort
SELECT ALL - 52 AS col0, + 77
----
-52
77

query I rowsort
SELECT + + ( + 39 ) - + 31
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-453
SELECT - + NULLIF ( ( - COUNT( * ) ), + - NULLIF ( - - 60, + - ( + + CASE + COUNT( ALL + 4 ) WHEN - 88 THEN + + 60 + 77 * - 55 END ) ) * 37 )
----
1

skipif mysql # not compatible
query I rowsort label-453
SELECT - + NULLIF ( ( - COUNT ( * ) ), + - NULLIF ( - - 60, + - ( + + CASE + COUNT ( ALL + 4 ) WHEN - 88 THEN + + 60 + 77 * - 55 END ) ) * 37 )
----
1

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-455
SELECT DISTINCT 56 / - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-455
SELECT DISTINCT 56 / - CAST ( NULL AS INTEGER ) col2
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-457
SELECT DISTINCT COUNT( * ) AS col2, 46 DIV - 53
----
1
0

skipif mysql # not compatible
query II rowsort label-457
SELECT DISTINCT COUNT ( * ) AS col2, 46 / - 53
----
1
0

query I rowsort
SELECT - - 33 * - 13
----
-429

onlyif mysql # aggregate syntax: 
query III rowsort label-459
SELECT DISTINCT - 92 col0, COALESCE ( 16, 27 ) AS col0, - COUNT( * )
----
-92
16
-1

skipif mysql # not compatible
query III rowsort label-459
SELECT DISTINCT - 92 col0, COALESCE ( 16, 27 ) AS col0, - COUNT ( * )
----
-92
16
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-460
SELECT ALL - - 34 * - ( - 8 ) - + 16 + + COUNT( * ) * - 86 DIV - + 59 AS col1
----
257

skipif mysql # not compatible
query I rowsort label-460
SELECT ALL - - 34 * - ( - 8 ) - + 16 + + COUNT ( * ) * - 86 / - + 59 AS col1
----
257

query II rowsort
SELECT ALL + 67 AS col0, + 40 AS col0
----
67
40

onlyif mysql # aggregate syntax: 
query I rowsort label-462
SELECT - 27 - - MAX( - 66 ) AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-462
SELECT - 27 - - MAX ( - 66 ) AS col0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-463
SELECT - 71 + - NULLIF ( - COALESCE ( - - COUNT( * ), + 31 * - CASE - 8 WHEN - - 80 THEN + + 91 ELSE NULL END ), + 40 ) * + + 8 AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-463
SELECT - 71 + - NULLIF ( - COALESCE ( - - COUNT ( * ), + 31 * - CASE - 8 WHEN - - 80 THEN + + 91 ELSE NULL END ), + 40 ) * + + 8 AS col1
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-464
SELECT - MIN( ALL 21 ) DIV - 61 - + - 96 AS col1, CAST( + - 82 AS SIGNED ) AS col2
----
96
-82

skipif mysql # not compatible
query II rowsort label-464
SELECT - MIN ( ALL 21 ) / - 61 - + - 96 AS col1, CAST ( + - 82 AS INTEGER ) AS col2
----
96
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-465
SELECT - + CASE + 57 WHEN + 14 + + 9 + - CASE + + 36 WHEN + + ( - 13 ) * + 61 THEN NULL WHEN - 69 THEN - - COUNT( + 18 ) END THEN - ( + 35 ) * 55 ELSE NULL END / 36 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-465
SELECT - + CASE + 57 WHEN + 14 + + 9 + - CASE + + 36 WHEN + + ( - 13 ) * + 61 THEN NULL WHEN - 69 THEN - - COUNT ( + 18 ) END THEN - ( + 35 ) * 55 ELSE NULL END / 36 AS col0
----
NULL

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

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

query II rowsort
SELECT ALL + 46, - 88 * - 28 AS col1
----
46
2464

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

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

query I rowsort
SELECT + - 75 * + - 84
----
6300

onlyif mysql # aggregate syntax: 
query I rowsort label-470
SELECT - 41 + + 67 * + MAX( ALL - - 25 ) + NULLIF ( + 47, + 33 )
----
1681

skipif mysql # not compatible
query I rowsort label-470
SELECT - 41 + + 67 * + MAX ( ALL - - 25 ) + NULLIF ( + 47, + 33 )
----
1681

query I rowsort
SELECT DISTINCT 12 + - 97
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-472
SELECT - ( - CAST( NULL AS SIGNED ) ) + - 56 * + - 71 * + 7
----
NULL

skipif mysql # not compatible
query I rowsort label-472
SELECT - ( - CAST ( NULL AS INTEGER ) ) + - 56 * + - 71 * + 7
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-473
SELECT ALL + 80 + MIN( ALL - ( + 1 ) ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-473
SELECT ALL + 80 + MIN ( ALL - ( + 1 ) ) AS col0
----
79

query I rowsort
SELECT - ( - ( 69 ) ) * + 89 + - - COALESCE ( - 59, - + 20 ) + + 90 col0
----
6172

onlyif mysql # DIV for integer division: 
query I rowsort label-475
SELECT DISTINCT 30 DIV - - 85 + - - 70 + 60 * - 24 * - + 85 AS col2
----
122470

skipif mysql # not compatible
query I rowsort label-475
SELECT DISTINCT 30 / - - 85 + - - 70 + 60 * - 24 * - + 85 AS col2
----
122470

query I rowsort
SELECT + CASE 60 WHEN + 20 * + - 67 THEN NULL ELSE + 50 + 11 END col0
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-477
SELECT ALL + NULLIF ( + CAST( COUNT( * ) AS SIGNED ), - 65 + 45 * + 61 )
----
1

skipif mysql # not compatible
query I rowsort label-477
SELECT ALL + NULLIF ( + CAST ( COUNT ( * ) AS INTEGER ), - 65 + 45 * + 61 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-478
SELECT ALL + 51 DIV + 51 + + - MAX( - 63 ) col2
----
64

skipif mysql # not compatible
query I rowsort label-478
SELECT ALL + 51 / + 51 + + - MAX ( - 63 ) col2
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-479
SELECT ALL - 44 * + NULLIF ( + 58, + - MAX( + - CAST( NULL AS SIGNED ) ) + 80 * - + ( 15 ) * - ( + 65 ) ) AS col2
----
-2552

skipif mysql # not compatible
query I rowsort label-479
SELECT ALL - 44 * + NULLIF ( + 58, + - MAX ( + - CAST ( NULL AS INTEGER ) ) + 80 * - + ( 15 ) * - ( + 65 ) ) AS col2
----
-2552

onlyif mysql # aggregate syntax: 
query I rowsort label-480
SELECT 95 * - ( - 42 ) * + COUNT( * ) + - ( 33 ) AS col2
----
3957

skipif mysql # not compatible
query I rowsort label-480
SELECT 95 * - ( - 42 ) * + COUNT ( * ) + - ( 33 ) AS col2
----
3957

onlyif mysql # aggregate syntax: 
query I rowsort label-481
SELECT ALL 87 + - ( + 64 ) + - 0 - - ( 2 ) * - ( + COUNT( * ) ) AS col2
----
21

skipif mysql # not compatible
query I rowsort label-481
SELECT ALL 87 + - ( + 64 ) + - 0 - - ( 2 ) * - ( + COUNT ( * ) ) AS col2
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-482
SELECT ALL + 72 - 65, + 2 * + + COUNT( * ) AS col0
----
7
2

skipif mysql # not compatible
query II rowsort label-482
SELECT ALL + 72 - 65, + 2 * + + COUNT ( * ) AS col0
----
7
2

onlyif mysql # aggregate syntax: 
query I rowsort label-483
SELECT 45 * - 1 + - SUM( + 88 )
----
-133

skipif mysql # not compatible
query I rowsort label-483
SELECT 45 * - 1 + - SUM ( + 88 )
----
-133

onlyif mysql # aggregate syntax: 
query I rowsort label-484
SELECT ALL 33 - + 31 - COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-484
SELECT ALL 33 - + 31 - COUNT ( * ) AS col0
----
1

query I rowsort
SELECT 10 * - 9
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-486
SELECT - 47 * + COALESCE ( - 26, COUNT( * ) - - 35, + 94 * + 65 ) * + 47 - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-486
SELECT - 47 * + COALESCE ( - 26, COUNT ( * ) - - 35, + 94 * + 65 ) * + 47 - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-488
SELECT DISTINCT - CASE - - 31 WHEN COUNT( * ) * 85 + - 6 + - + 95 + 64 THEN COALESCE ( 35, 65 - - - 0 ) * NULLIF ( 23, 13 + 26 ) + - COUNT( * ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-488
SELECT DISTINCT - CASE - - 31 WHEN COUNT ( * ) * 85 + - 6 + - + 95 + 64 THEN COALESCE ( 35, 65 - - - 0 ) * NULLIF ( 23, 13 + 26 ) + - COUNT ( * ) ELSE NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-489
SELECT ( + 68 ) DIV 39, + ( - 83 ) + - 95 DIV - 44 AS col0
----
1
-81

skipif mysql # not compatible
query II rowsort label-489
SELECT ( + 68 ) / 39, + ( - 83 ) + - 95 / - 44 AS col0
----
1
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-490
SELECT + + NULLIF ( + 99, + - ( - SUM( ALL - - CAST( - - 45 AS SIGNED ) ) ) ) AS col2
----
99

skipif mysql # not compatible
query I rowsort label-490
SELECT + + NULLIF ( + 99, + - ( - SUM ( ALL - - CAST ( - - 45 AS INTEGER ) ) ) ) AS col2
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-491
SELECT - 3 * + CAST( 92 AS SIGNED ) - + - CAST( + 13 AS SIGNED ) * 28 + - + COUNT( * )
----
87

skipif mysql # not compatible
query I rowsort label-491
SELECT - 3 * + CAST ( 92 AS INTEGER ) - + - CAST ( + 13 AS INTEGER ) * 28 + - + COUNT ( * )
----
87

query I rowsort
SELECT 56 + 78 - + - ( + 84 ) * - 57
----
-4654

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-493
SELECT ALL 45 * - MIN( DISTINCT - ( + 72 ) ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-493
SELECT ALL 45 * - MIN ( DISTINCT - ( + 72 ) ) * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-494
SELECT DISTINCT + COALESCE ( CAST( NULL AS SIGNED ), COUNT( * ) - + 28 + + 40, - + CASE 15 WHEN 67 * 63 + + - COUNT( + 88 ) THEN - - 80 + 87 END, 35 + - 79 ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-494
SELECT DISTINCT + COALESCE ( CAST ( NULL AS INTEGER ), COUNT ( * ) - + 28 + + 40, - + CASE 15 WHEN 67 * 63 + + - COUNT ( + 88 ) THEN - - 80 + 87 END, 35 + - 79 ) AS col2
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-495
SELECT 48 * - 85 + + COUNT( * ) AS col1, - ( + 59 ) * COUNT( + 90 )
----
-4079
-59

skipif mysql # not compatible
query II rowsort label-495
SELECT 48 * - 85 + + COUNT ( * ) AS col1, - ( + 59 ) * COUNT ( + 90 )
----
-4079
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-496
SELECT DISTINCT - COALESCE ( + + 0, 44 * + + COUNT( * ) - - 54, 69 - + - 50 ) + ( + 4 ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-496
SELECT DISTINCT - COALESCE ( + + 0, 44 * + + COUNT ( * ) - - 54, 69 - + - 50 ) + ( + 4 ) AS col0
----
4

query III rowsort
SELECT ( 88 ), 62 AS col0, + + 30 col0
----
88
62
30

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-499
SELECT + CAST( + 55 AS SIGNED ) AS col0, - 9
----
55
-9

skipif mysql # not compatible
query II rowsort label-499
SELECT + CAST ( + 55 AS INTEGER ) AS col0, - 9
----
55
-9

query I rowsort
SELECT ALL - 99 + 4
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-501
SELECT DISTINCT 57 + - CAST( NULL AS SIGNED ) - + 83 * + 17 / 15 * CAST( - ( - - COUNT( * ) ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-501
SELECT DISTINCT 57 + - CAST ( NULL AS INTEGER ) - + 83 * + 17 / 15 * CAST ( - ( - - COUNT ( * ) ) AS INTEGER )
----
NULL

query I rowsort
SELECT 35 + COALESCE ( + 25, - - 25 ) AS col2
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-503
SELECT DISTINCT 91, COUNT( DISTINCT 31 ) DIV - - 89 * + 98 AS col2
----
91
0

skipif mysql # not compatible
query II rowsort label-503
SELECT DISTINCT 91, COUNT ( DISTINCT 31 ) / - - 89 * + 98 AS col2
----
91
0

query I rowsort
SELECT DISTINCT - 3 + + 49
----
46

query I rowsort
SELECT ALL + 48 + + COALESCE ( + - ( - 17 ), - ( - 23 ) - + + 96 - - + 3 * + ( + + COALESCE ( - ( - + ( - 61 ) ), - 98, - 62 ) ) - + 90 ) AS col0
----
65

query I rowsort
SELECT DISTINCT - 21 + - 54
----
-75

query I rowsort
SELECT 89 * - - 73
----
6497

query I rowsort
SELECT DISTINCT + 3 + - 28 * + 59 AS col1
----
-1649

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-509
SELECT 5 + + + 11 * + - 69 + + - CASE - - 77 WHEN CAST( NULL AS SIGNED ) THEN - + ( + - 28 ) WHEN 31 THEN NULL END * + + COUNT( + - 6 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-509
SELECT 5 + + + 11 * + - 69 + + - CASE - - 77 WHEN CAST ( NULL AS INTEGER ) THEN - + ( + - 28 ) WHEN 31 THEN NULL END * + + COUNT ( + - 6 ) AS col2
----
NULL

query I rowsort
SELECT ALL + 85 + 13 AS col2
----
98

query I rowsort
SELECT 79 * - 94
----
-7426

query I rowsort
SELECT DISTINCT + 4 - + 91
----
-87

query I rowsort
SELECT 14 * + + 29 AS col2
----
406

query I rowsort
SELECT DISTINCT - ( - - 10 )
----
-10

query II rowsort
SELECT + 84 AS col2, 8 AS col0
----
84
8

onlyif mysql # aggregate syntax: 
query II rowsort label-516
SELECT ALL - SUM( - 81 ) * - - 16 AS col1, - 76 + + COUNT( * ) + + 26 * + + 15
----
1296
315

skipif mysql # not compatible
query II rowsort label-516
SELECT ALL - SUM ( - 81 ) * - - 16 AS col1, - 76 + + COUNT ( * ) + + 26 * + + 15
----
1296
315

query I rowsort
SELECT 4 * + 46 AS col0
----
184

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-518
SELECT + - COALESCE ( + 27, + 92 - - - 68, 39 DIV - + 3 * + COUNT( DISTINCT + 68 ) ), 81 * ( + 80 ) + + 86 + - 82 * COALESCE ( 25 * 95 + 35, + 54 ) AS col2
----
-27
-191054

skipif mysql # not compatible
query II rowsort label-518
SELECT + - COALESCE ( + 27, + 92 - - - 68, 39 / - + 3 * + COUNT ( DISTINCT + 68 ) ), 81 * ( + 80 ) + + 86 + - 82 * COALESCE ( 25 * 95 + 35, + 54 ) AS col2
----
-27
-191054

onlyif mysql # aggregate syntax: 
query I rowsort label-519
SELECT DISTINCT + 63 - - + 67 * COUNT( * )
----
130

skipif mysql # not compatible
query I rowsort label-519
SELECT DISTINCT + 63 - - + 67 * COUNT ( * )
----
130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-520
SELECT NULLIF ( COUNT( * ), - - CAST( NULL AS SIGNED ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-520
SELECT NULLIF ( COUNT ( * ), - - CAST ( NULL AS INTEGER ) ) AS col0
----
1

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

onlyif mysql # DIV for integer division: 
query I rowsort label-522
SELECT - 87 DIV 81
----
-1

skipif mysql # not compatible
query I rowsort label-522
SELECT - 87 / 81
----
-1

query I rowsort
SELECT - - CASE 5 WHEN + 61 / + 28 THEN 46 - - - 46 ELSE NULL END
----
NULL

query I rowsort
SELECT - 62 - - 69
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-525
SELECT ALL 2 * + 39 + + 39 + + ( + COUNT( * ) ) * 21 * - - NULLIF ( 56, - COALESCE ( - 50, + + 32 * - - 34, - 59 ) ) AS col2
----
1293

skipif mysql # not compatible
query I rowsort label-525
SELECT ALL 2 * + 39 + + 39 + + ( + COUNT ( * ) ) * 21 * - - NULLIF ( 56, - COALESCE ( - 50, + + 32 * - - 34, - 59 ) ) AS col2
----
1293

query I rowsort
SELECT ALL 6 + + + 82 AS col2
----
88

query I rowsort
SELECT 73 - - + 66 * - 74
----
-4811

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

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

query II rowsort
SELECT - ( 52 ) + + 54, - 80 AS col0
----
2
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-530
SELECT ALL - 4 + + COUNT( * ) + + 52 * + COUNT( * ) * + 62 - - 30 - - 3 * + 90 + COUNT( * ) + - + 98
----
3424

skipif mysql # not compatible
query I rowsort label-530
SELECT ALL - 4 + + COUNT ( * ) + + 52 * + COUNT ( * ) * + 62 - - 30 - - 3 * + 90 + COUNT ( * ) + - + 98
----
3424

query I rowsort
SELECT - COALESCE ( 65, + 62 ) AS col2
----
-65

query I rowsort
SELECT ALL 18 * + 15
----
270

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-533
SELECT CASE 67 WHEN - 50 * ( CAST( + NULLIF ( + + 25, - - 63 + + + 49 ) AS SIGNED ) ) + - ( - + CAST( - + 20 AS SIGNED ) ) + - + 16 + - 19 + - COUNT( * ) THEN + 81 + 57 * 97 END + - 9
----
NULL

skipif mysql # not compatible
query I rowsort label-533
SELECT CASE 67 WHEN - 50 * ( CAST ( + NULLIF ( + + 25, - - 63 + + + 49 ) AS INTEGER ) ) + - ( - + CAST ( - + 20 AS INTEGER ) ) + - + 16 + - 19 + - COUNT ( * ) THEN + 81 + 57 * 97 END + - 9
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-535
SELECT DISTINCT 5 DIV + - 86 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-535
SELECT DISTINCT 5 / + - 86 AS col2
----
0

query I rowsort
SELECT ALL + 90 * 68 * - 15 * 67
----
-6150600

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

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

query I rowsort
SELECT + COALESCE ( + 93, 13 )
----
93

query I rowsort
SELECT - 74 * + ( - 79 )
----
5846

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-540
SELECT CAST( 8 AS SIGNED ) * - MAX( ALL - - 87 ) * + 57 + - COALESCE ( - + 88, - ( + + COUNT( * ) ) + + + 31 + + 10 + - 23 * - COUNT( * ) ) + + 28
----
-39556

skipif mysql # not compatible
query I rowsort label-540
SELECT CAST ( 8 AS INTEGER ) * - MAX ( ALL - - 87 ) * + 57 + - COALESCE ( - + 88, - ( + + COUNT ( * ) ) + + + 31 + + 10 + - 23 * - COUNT ( * ) ) + + 28
----
-39556

query I rowsort
SELECT NULLIF ( + 75, 77 )
----
75

query I rowsort
SELECT ALL + CASE - 29 WHEN 76 - 92 THEN - 54 ELSE + 75 END AS col2
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-543
SELECT + 62 DIV - COUNT( DISTINCT 43 )
----
-62

skipif mysql # not compatible
query I rowsort label-543
SELECT + 62 / - COUNT ( DISTINCT 43 )
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-544
SELECT - COUNT( + - 29 ) * - 79
----
79

skipif mysql # not compatible
query I rowsort label-544
SELECT - COUNT ( + - 29 ) * - 79
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-545
SELECT - 39 * - CASE WHEN NOT ( - MAX( - 39 ) ) >= NULL THEN + 92 ELSE NULL END + 64 + + 84 / + + CASE - - 76 WHEN + + 67 * + NULLIF ( - 88, NULLIF ( MIN( DISTINCT + CAST( 28 AS SIGNED ) ), - 79 ) ) THEN NULL ELSE + 17 + + COUNT( * ) / AVG ( DISTINCT + 15 ) END - COALESCE ( - CAST( - 91 AS SIGNED ), + ( - COUNT( * ) ) + 2, + 43 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-545
SELECT - 39 * - CASE WHEN NOT ( - MAX ( - 39 ) ) >= NULL THEN + 92 ELSE NULL END + 64 + + 84 / + + CASE - - 76 WHEN + + 67 * + NULLIF ( - 88, NULLIF ( MIN ( DISTINCT + CAST ( 28 AS INTEGER ) ), - 79 ) ) THEN NULL ELSE + 17 + + COUNT ( * ) / AVG ( DISTINCT + 15 ) END - COALESCE ( - CAST ( - 91 AS INTEGER ), + ( - COUNT ( * ) ) + 2, + 43 ) AS col2
----
NULL

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

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

query I rowsort
SELECT - 44 * + 34 * 53 * 84 AS col2
----
-6660192

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-548
SELECT ALL + MIN( ALL - 81 ) AS col2, 53 + - - COALESCE ( - NULLIF ( + 21, + + 3 + 66 ), + 34, + CAST( NULL AS SIGNED ), - COUNT( - COALESCE ( + - 66, - 20, 80 ) ) + 53 ) AS col2
----
-81
32

skipif mysql # not compatible
query II rowsort label-548
SELECT ALL + MIN ( ALL - 81 ) AS col2, 53 + - - COALESCE ( - NULLIF ( + 21, + + 3 + 66 ), + 34, + CAST ( NULL AS INTEGER ), - COUNT ( - COALESCE ( + - 66, - 20, 80 ) ) + 53 ) AS col2
----
-81
32

onlyif mysql # aggregate syntax: 
query I rowsort label-549
SELECT - COUNT( * ) + - COUNT( * ) + - + COUNT( * ) + + - ( 96 ) AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-549
SELECT - COUNT ( * ) + - COUNT ( * ) + - + COUNT ( * ) + + - ( 96 ) AS col0
----
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-550
SELECT - - MAX( ALL + 98 ) + - MAX( + 85 ) AS col1, - 68 col2
----
13
-68

skipif mysql # not compatible
query II rowsort label-550
SELECT - - MAX ( ALL + 98 ) + - MAX ( + 85 ) AS col1, - 68 col2
----
13
-68

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-552
SELECT - 48 * - - 38 * COUNT( - 73 ) + + 64 + - 66 AS col2
----
-1826

skipif mysql # not compatible
query I rowsort label-552
SELECT - 48 * - - 38 * COUNT ( - 73 ) + + 64 + - 66 AS col2
----
-1826

query I rowsort
SELECT ALL - 5 * 16 + 33
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-554
SELECT - + 91 * + 14 * + COUNT( DISTINCT - + 80 ) - CAST( + + 79 AS SIGNED ) AS col2
----
-1353

skipif mysql # not compatible
query I rowsort label-554
SELECT - + 91 * + 14 * + COUNT ( DISTINCT - + 80 ) - CAST ( + + 79 AS INTEGER ) AS col2
----
-1353

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-555
SELECT DISTINCT 6 * - 45 * + 73 + - - 64 - - + CAST( + - 26 AS SIGNED )
----
-19672

skipif mysql # not compatible
query I rowsort label-555
SELECT DISTINCT 6 * - 45 * + 73 + - - 64 - - + CAST ( + - 26 AS INTEGER )
----
-19672

onlyif mysql # aggregate syntax: 
query I rowsort label-556
SELECT - 36 * - + 78 * MIN( + + 93 ) * + + 37 + + - 93 AS col1
----
9662235

skipif mysql # not compatible
query I rowsort label-556
SELECT - 36 * - + 78 * MIN ( + + 93 ) * + + 37 + + - 93 AS col1
----
9662235

query I rowsort
SELECT - 94 + - - 46
----
-48

query I rowsort
SELECT DISTINCT + + 68 col0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-559
SELECT + COUNT( * ) * + - 67 + - ( - - 67 ) + 97 * - 43 AS col0
----
-4305

skipif mysql # not compatible
query I rowsort label-559
SELECT + COUNT ( * ) * + - 67 + - ( - - 67 ) + 97 * - 43 AS col0
----
-4305

onlyif mysql # aggregate syntax: 
query I rowsort label-560
SELECT + CASE - 13 WHEN - COALESCE ( + 16, - 70 ) THEN - - COUNT( * ) + - - 91 + - COUNT( * ) WHEN - 73 + + 88 + + + 50 / - - 56 + + 36 + - + COUNT( * ) * - ( COUNT( * ) + - 77 ) THEN NULL END * - 56 + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-560
SELECT + CASE - 13 WHEN - COALESCE ( + 16, - 70 ) THEN - - COUNT ( * ) + - - 91 + - COUNT ( * ) WHEN - 73 + + 88 + + + 50 / - - 56 + + 36 + - + COUNT ( * ) * - ( COUNT ( * ) + - 77 ) THEN NULL END * - 56 + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-561
SELECT ALL - SUM( DISTINCT - 97 ) * + CAST( SUM( + 30 ) AS SIGNED ) + + + 33 + + ( ( 66 ) ) col2
----
3009

skipif mysql # not compatible
query I rowsort label-561
SELECT ALL - SUM ( DISTINCT - 97 ) * + CAST ( SUM ( + 30 ) AS INTEGER ) + + + 33 + + ( ( 66 ) ) col2
----
3009

query I rowsort
SELECT ALL + + 72 + - - ( + + 94 ) - 52 * - 63 * - 24 AS col0
----
-78458

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-563
SELECT + + ( + CASE - CASE - 67 WHEN + 89 THEN + + 7 ELSE + 35 + - + 76 END WHEN + - 85 * + + 77 THEN NULL WHEN + 52 THEN + 1 WHEN - SUM( DISTINCT - 63 ) THEN NULL END ) * ( CAST( NULL AS DECIMAL ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-563
SELECT + + ( + CASE - CASE - 67 WHEN + 89 THEN + + 7 ELSE + 35 + - + 76 END WHEN + - 85 * + + 77 THEN NULL WHEN + 52 THEN + 1 WHEN - SUM ( DISTINCT - 63 ) THEN NULL END ) * ( CAST ( NULL AS REAL ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-564
SELECT DISTINCT 36 * + SUM( DISTINCT - - 84 ) AS col2
----
3024

skipif mysql # not compatible
query I rowsort label-564
SELECT DISTINCT 36 * + SUM ( DISTINCT - - 84 ) AS col2
----
3024

onlyif mysql # aggregate syntax: 
query II rowsort label-565
SELECT DISTINCT + COUNT( * ) - 47 AS col0, - 21 * 75 + - 82 * 34 * - + 83 col2
----
-46
229829

skipif mysql # not compatible
query II rowsort label-565
SELECT DISTINCT + COUNT ( * ) - 47 AS col0, - 21 * 75 + - 82 * 34 * - + 83 col2
----
-46
229829

onlyif mysql # aggregate syntax: 
query II rowsort label-566
SELECT 37 AS col1, - 34 - + COUNT( * )
----
37
-35

skipif mysql # not compatible
query II rowsort label-566
SELECT 37 AS col1, - 34 - + COUNT ( * )
----
37
-35

query I rowsort
SELECT + 82 * + 36 AS col0
----
2952

onlyif mysql # aggregate syntax: 
query II rowsort label-568
SELECT DISTINCT SUM( ALL + 97 ) * + + 19, + 74 * 98 AS col1
----
1843
7252

skipif mysql # not compatible
query II rowsort label-568
SELECT DISTINCT SUM ( ALL + 97 ) * + + 19, + 74 * 98 AS col1
----
1843
7252

onlyif mysql # aggregate syntax: 
query I rowsort label-569
SELECT + COUNT( + 25 ) * + 11 AS col1
----
11

skipif mysql # not compatible
query I rowsort label-569
SELECT + COUNT ( + 25 ) * + 11 AS col1
----
11

query I rowsort
SELECT ALL 64 * + 7 AS col0
----
448

query I rowsort
SELECT ALL 23 * - + 67 col2
----
-1541

onlyif mysql # DIV for integer division: 
query I rowsort label-572
SELECT + 29 DIV 41 col1
----
0

skipif mysql # not compatible
query I rowsort label-572
SELECT + 29 / 41 col1
----
0

query I rowsort
SELECT ALL - 86 * - - 72
----
-6192

query I rowsort
SELECT + 22 * + - 72
----
-1584

query I rowsort
SELECT ALL 28 * + 26 * + - 35
----
-25480

onlyif mysql # aggregate syntax: 
query I rowsort label-576
SELECT DISTINCT COUNT( DISTINCT 29 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-576
SELECT DISTINCT COUNT ( DISTINCT 29 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-577
SELECT + ( + COUNT( ALL 1 ) ) - + ( 87 ) + - 72 col0
----
-158

skipif mysql # not compatible
query I rowsort label-577
SELECT + ( + COUNT ( ALL 1 ) ) - + ( 87 ) + - 72 col0
----
-158

onlyif mysql # aggregate syntax: 
query I rowsort label-578
SELECT + 92 + + COUNT( * )
----
93

skipif mysql # not compatible
query I rowsort label-578
SELECT + 92 + + COUNT ( * )
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-579
SELECT - 68 + + 8 + - COUNT( + 20 ) + + 46 AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-579
SELECT - 68 + + 8 + - COUNT ( + 20 ) + + 46 AS col2
----
-15

query I rowsort
SELECT ALL ( - 92 ) * + 2 AS col2
----
-184

query I rowsort
SELECT + 56 * + 35 AS col0
----
1960

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-582
SELECT 60 / CAST( NULL AS DECIMAL ) - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-582
SELECT 60 / CAST ( NULL AS REAL ) - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-583
SELECT ALL + CASE CAST( NULL AS DECIMAL ) WHEN + 79 THEN + COUNT( * ) + - SUM( - - 39 ) END * - 70 * + + 52
----
NULL

skipif mysql # not compatible
query I rowsort label-583
SELECT ALL + CASE CAST ( NULL AS REAL ) WHEN + 79 THEN + COUNT ( * ) + - SUM ( - - 39 ) END * - 70 * + + 52
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-584
SELECT + - 49 DIV 24 col0
----
-2

skipif mysql # not compatible
query I rowsort label-584
SELECT + - 49 / 24 col0
----
-2

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-586
SELECT DISTINCT + COUNT( * ) DIV - + 33 + - - 7 + - 20 + - 18 + 51 AS col1
----
20

skipif mysql # not compatible
query I rowsort label-586
SELECT DISTINCT + COUNT ( * ) / - + 33 + - - 7 + - 20 + - 18 + 51 AS col1
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-587
SELECT ALL - CASE + 1 WHEN + ( + COALESCE ( + + 50, - - 36 + - - 61 + + CAST( NULL AS SIGNED ) ) ) THEN + + 65 WHEN MIN( + 7 ) - COALESCE ( - - 7, 63 ) + - 80 THEN NULL END / 6 + - 22 / - 8 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-587
SELECT ALL - CASE + 1 WHEN + ( + COALESCE ( + + 50, - - 36 + - - 61 + + CAST ( NULL AS INTEGER ) ) ) THEN + + 65 WHEN MIN ( + 7 ) - COALESCE ( - - 7, 63 ) + - 80 THEN NULL END / 6 + - 22 / - 8 col0
----
NULL

query I rowsort
SELECT ALL 39 * - COALESCE ( + - 88, - + 23 ) col0
----
3432

onlyif mysql # DIV for integer division: 
query I rowsort label-589
SELECT - 78 DIV - 87 * - 71
----
0

skipif mysql # not compatible
query I rowsort label-589
SELECT - 78 / - 87 * - 71
----
0

query I rowsort
SELECT + - 72 * - ( + 38 ) AS col1
----
2736

onlyif mysql # aggregate syntax: 
query I rowsort label-591
SELECT - 92 * - ( + CASE - 52 WHEN - + 45 THEN + - 44 * + COUNT( * ) + + 98 / + - 96 - + 21 WHEN - + 90 THEN - 16 * - COUNT( * ) + + + 34 WHEN - 65 * + MIN( COALESCE ( 37, COALESCE ( - 22, + 71 * 34 ) ) ) + 61 THEN NULL END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-591
SELECT - 92 * - ( + CASE - 52 WHEN - + 45 THEN + - 44 * + COUNT ( * ) + + 98 / + - 96 - + 21 WHEN - + 90 THEN - 16 * - COUNT ( * ) + + + 34 WHEN - 65 * + MIN ( COALESCE ( 37, COALESCE ( - 22, + 71 * 34 ) ) ) + 61 THEN NULL END ) AS col0
----
NULL

query I rowsort
SELECT + + NULLIF ( - 17, - ( - 6 ) ) AS col2
----
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-593
SELECT - - 23 DIV + NULLIF ( - 31, + 49 - 85 + - COUNT( * ) + 77 * + 97 )
----
0

skipif mysql # not compatible
query I rowsort label-593
SELECT - - 23 / + NULLIF ( - 31, + 49 - 85 + - COUNT ( * ) + 77 * + 97 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-594
SELECT ALL - CAST( NULL AS SIGNED ) / - - 15 + COALESCE ( - + 88, 42 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-594
SELECT ALL - CAST ( NULL AS INTEGER ) / - - 15 + COALESCE ( - + 88, 42 ) AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-596
SELECT + 2, 20 * - + COUNT( * ) AS col1
----
2
-20

skipif mysql # not compatible
query II rowsort label-596
SELECT + 2, 20 * - + COUNT ( * ) AS col1
----
2
-20

query I rowsort
SELECT DISTINCT - 85 * 0 - - - 88 + + + 72 + - 80 AS col1
----
-96

query II rowsort
SELECT + 37 * + 40 + + 60 + 22 * + + 40 + - 48 col1, 23 * 33
----
2372
759

query I rowsort
SELECT - ( 98 ) * + 60 + - 17 AS col2
----
-5897

query I rowsort
SELECT DISTINCT + 99 * ( - 88 ) * 39 * 19
----
-6455592

onlyif mysql # aggregate syntax: 
query I rowsort label-601
SELECT 73 + - NULLIF ( + - COUNT( * ), - 96 * 34 + - + 1 + - + 37 * - 50 )
----
74

skipif mysql # not compatible
query I rowsort label-601
SELECT 73 + - NULLIF ( + - COUNT ( * ), - 96 * 34 + - + 1 + - + 37 * - 50 )
----
74

query I rowsort
SELECT ALL + 90 * + ( + ( - 46 ) ) col2
----
-4140

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-603
SELECT 79 - - - 20 + + - CAST( - SUM( + 13 ) AS SIGNED ) * 85
----
1164

skipif mysql # not compatible
query I rowsort label-603
SELECT 79 - - - 20 + + - CAST ( - SUM ( + 13 ) AS INTEGER ) * 85
----
1164

onlyif mysql # aggregate syntax: 
query II rowsort label-604
SELECT ALL 46 AS col1, + 58 * + CASE + - ( - - 27 ) WHEN ( + 45 ) / + + AVG ( 91 ) THEN - + 89 ELSE + COUNT( * ) END AS col1
----
46
58

skipif mysql # not compatible
query II rowsort label-604
SELECT ALL 46 AS col1, + 58 * + CASE + - ( - - 27 ) WHEN ( + 45 ) / + + AVG ( 91 ) THEN - + 89 ELSE + COUNT ( * ) END AS col1
----
46
58

query III rowsort
SELECT ALL 49 AS col2, 32 * + CASE - 43 WHEN - 16 THEN NULL WHEN + 75 THEN NULL WHEN ( + 51 ) THEN - 39 END AS col1, - - 80 * 3
----
49
NULL
240

query I rowsort
SELECT 98 + - + 39 + + 32 AS col0
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-607
SELECT 4 * 61 * - - ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-607
SELECT 4 * 61 * - - ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-608
SELECT DISTINCT 34 DIV 11 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-608
SELECT DISTINCT 34 / 11 AS col2
----
3

query II rowsort
SELECT DISTINCT 8, 42 * - + 55 + + 56 AS col1
----
8
-2254

query I rowsort
SELECT 88 + - 3
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-611
SELECT 23 - - - 32 DIV + 92 col2
----
23

skipif mysql # not compatible
query I rowsort label-611
SELECT 23 - - - 32 / + 92 col2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-612
SELECT ALL - CASE + 78 WHEN + 73 * - 0 * + + 4 * + 36 / AVG ( - - 90 ) + 85 THEN - - 96 * COUNT( * ) + - 29 END / 85 - + 55 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-612
SELECT ALL - CASE + 78 WHEN + 73 * - 0 * + + 4 * + 36 / AVG ( - - 90 ) + 85 THEN - - 96 * COUNT ( * ) + - 29 END / 85 - + 55 AS col2
----
NULL

query I rowsort
SELECT 30 * + - 71
----
-2130

query I rowsort
SELECT ALL 33 * + 43
----
1419

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

skipif mysql # not compatible
query I rowsort label-615
SELECT 49 / + 94 / - ( COUNT ( * ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-616
SELECT COUNT( * ) + - 49 AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-616
SELECT COUNT ( * ) + - 49 AS col0
----
-48

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-617
SELECT ALL CAST( NULL AS DECIMAL ) * 87 * + 89 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-617
SELECT ALL CAST ( NULL AS REAL ) * 87 * + 89 col0
----
NULL

query I rowsort
SELECT ALL + 83 + + + 59 AS col2
----
142

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-619
SELECT COUNT( * ) + + - 60 DIV + 84 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-619
SELECT COUNT ( * ) + + - 60 / + 84 AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-620
SELECT + COALESCE ( 50, + - 27, - + ( - 8 ) + - 17 * + ( CASE - 66 WHEN + - ( - 37 ) THEN - + 25 * 27 - + 2 END ) DIV + 74 + COUNT( * ) + - COUNT( * ) * + NULLIF ( 17, COUNT( * ) * 47 + - 6 ) ) * 12 AS col2
----
600

skipif mysql # not compatible
query I rowsort label-620
SELECT + COALESCE ( 50, + - 27, - + ( - 8 ) + - 17 * + ( CASE - 66 WHEN + - ( - 37 ) THEN - + 25 * 27 - + 2 END ) / + 74 + COUNT ( * ) + - COUNT ( * ) * + NULLIF ( 17, COUNT ( * ) * 47 + - 6 ) ) * 12 AS col2
----
600

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-621
SELECT + 1 AS col2, 0 + - - 4 - - - 76 - + CASE WHEN NOT + 40 IS NOT NULL THEN + ( - 0 ) ELSE + ( - + COUNT( DISTINCT 89 ) ) END * 26 + - COALESCE ( 7, - + COALESCE ( 37, 18, - ( + COUNT( DISTINCT 37 ) ) DIV 98 + 26 ) * - 52 + ( 43 ), COUNT( * ) * + COUNT( * ) ) * 32 col0
----
1
-270

skipif mysql # not compatible
query II rowsort label-621
SELECT + 1 AS col2, 0 + - - 4 - - - 76 - + CASE WHEN NOT + 40 IS NOT NULL THEN + ( - 0 ) ELSE + ( - + COUNT ( DISTINCT 89 ) ) END * 26 + - COALESCE ( 7, - + COALESCE ( 37, 18, - ( + COUNT ( DISTINCT 37 ) ) / 98 + 26 ) * - 52 + ( 43 ), COUNT ( * ) * + COUNT ( * ) ) * 32 col0
----
1
-270

onlyif mysql # aggregate syntax: 
query I rowsort label-622
SELECT COALESCE ( + 26, - ( COUNT( * ) ) + + 12 * 71 ) * - COUNT( * ) + + 81
----
55

skipif mysql # not compatible
query I rowsort label-622
SELECT COALESCE ( + 26, - ( COUNT ( * ) ) + + 12 * 71 ) * - COUNT ( * ) + + 81
----
55

query II rowsort
SELECT + + ( - + 42 ) col0, - 41 AS col1
----
-42
-41

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

skipif mysql # not compatible
query I rowsort label-624
SELECT ALL + COUNT ( * ) + + 78 AS col2
----
79

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

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

query I rowsort
SELECT ( + 42 ) + - + ( + 66 )
----
-24

query I rowsort
SELECT ALL + ( - + 20 ) * 41 AS col2
----
-820

onlyif mysql # DIV for integer division: 
query I rowsort label-628
SELECT - 42 + - 32 DIV - + 44
----
-42

skipif mysql # not compatible
query I rowsort label-628
SELECT - 42 + - 32 / - + 44
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-629
SELECT ALL 12 - - 41 * - 23 / - CAST( NULL AS SIGNED ) * - 20 + - - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-629
SELECT ALL 12 - - 41 * - 23 / - CAST ( NULL AS INTEGER ) * - 20 + - - COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-630
SELECT ALL - COALESCE ( + 60, - - ( - - COUNT( * ) ), - + 40 - + - 7 * - 35 * - 74, 99 ) col2
----
-60

skipif mysql # not compatible
query I rowsort label-630
SELECT ALL - COALESCE ( + 60, - - ( - - COUNT ( * ) ), - + 40 - + - 7 * - 35 * - 74, 99 ) col2
----
-60

query II rowsort
SELECT DISTINCT - 46, - 82 AS col0
----
-46
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-632
SELECT COUNT( * ) * - 65 + 79 - - - 97 AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-632
SELECT COUNT ( * ) * - 65 + 79 - - - 97 AS col2
----
-83

query I rowsort
SELECT ALL 52 * + 24 AS col0
----
1248

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

skipif mysql # not compatible
query I rowsort label-634
SELECT + + MAX ( - - 98 )
----
98

query I rowsort
SELECT 97 * 19
----
1843

query I rowsort
SELECT + 5 + - 25
----
-20

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-637
SELECT ( - + NULLIF ( + CAST( NULL AS DECIMAL ), 37 * + 7 + + 63 * + - 42 ) ) / - + 17 + 25
----
NULL

skipif mysql # not compatible
query I rowsort label-637
SELECT ( - + NULLIF ( + CAST ( NULL AS REAL ), 37 * + 7 + + 63 * + - 42 ) ) / - + 17 + 25
----
NULL

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

skipif mysql # not compatible
query I rowsort label-638
SELECT ALL - ( + - CAST ( - 92 AS INTEGER ) ) AS col1
----
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-639
SELECT ALL - 31 DIV + + 29 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-639
SELECT ALL - 31 / + + 29 AS col0
----
-1

query I rowsort
SELECT 98 * - 88
----
-8624

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-641
SELECT ALL - CAST( - 84 AS SIGNED ) * + - 0 DIV + 25
----
0

skipif mysql # not compatible
query I rowsort label-641
SELECT ALL - CAST ( - 84 AS INTEGER ) * + - 0 / + 25
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-642
SELECT 85 + + 98 AS col0, - COUNT( * ) * + 59 * - ( - 56 ) * - 15 * 53 AS col2
----
183
2626680

skipif mysql # not compatible
query II rowsort label-642
SELECT 85 + + 98 AS col0, - COUNT ( * ) * + 59 * - ( - 56 ) * - 15 * 53 AS col2
----
183
2626680

onlyif mysql # aggregate syntax: 
query I rowsort label-643
SELECT 23 + - 83 * + - 39 - - - 6 + - 61 + + 58 * 31 + + COUNT( * ) * 77
----
5068

skipif mysql # not compatible
query I rowsort label-643
SELECT 23 + - 83 * + - 39 - - - 6 + - 61 + + 58 * 31 + + COUNT ( * ) * 77
----
5068

query I rowsort
SELECT DISTINCT - 68 * - NULLIF ( + 47, - AVG ( DISTINCT - 93 ) ) * 98 AS col0
----
313208

query I rowsort
SELECT 97 * + 69 col2
----
6693

onlyif mysql # aggregate syntax: 
query I rowsort label-646
SELECT 33 + - - CASE + + 64 WHEN - COUNT( * ) THEN - 66 / - 82 * - + 74 * 15 * - ( 27 ) + - COUNT( * ) + 51 END * COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-646
SELECT 33 + - - CASE + + 64 WHEN - COUNT ( * ) THEN - 66 / - 82 * - + 74 * 15 * - ( 27 ) + - COUNT ( * ) + 51 END * COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT 39 * + 26 col1
----
1014

onlyif mysql # aggregate syntax: 
query I rowsort label-648
SELECT ALL - CASE 4 WHEN - SUM( + 98 ) - - 39 THEN + 69 * + + 91 END + + 55 + COUNT( * ) / ( 89 ) * ( - COUNT( * ) ) + - 70 + - + 67 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-648
SELECT ALL - CASE 4 WHEN - SUM ( + 98 ) - - 39 THEN + 69 * + + 91 END + + 55 + COUNT ( * ) / ( 89 ) * ( - COUNT ( * ) ) + - 70 + - + 67 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-649
SELECT DISTINCT - 69 + 35 + - 73 * MIN( - ( - - ( + - ( - ( + 71 ) ) ) ) ) * + 71 AS col2
----
367959

skipif mysql # not compatible
query I rowsort label-649
SELECT DISTINCT - 69 + 35 + - 73 * MIN ( - ( - - ( + - ( - ( + 71 ) ) ) ) ) * + 71 AS col2
----
367959

query I rowsort
SELECT 29 + 95
----
124

query I rowsort
SELECT ALL - 51 + + 22 + + 53
----
24

onlyif mysql # DIV for integer division: 
query II rowsort label-652
SELECT ALL + ( - 49 ) + + + 42 AS col0, 0 DIV + 64 AS col1
----
-7
0

skipif mysql # not compatible
query II rowsort label-652
SELECT ALL + ( - 49 ) + + + 42 AS col0, 0 / + 64 AS col1
----
-7
0

query I rowsort
SELECT ALL 21 + - + 22 + + + 46
----
45

query I rowsort
SELECT ALL 80 + - 1 AS col0
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-655
SELECT DISTINCT - + 83 DIV - + 71
----
1

skipif mysql # not compatible
query I rowsort label-655
SELECT DISTINCT - + 83 / - + 71
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-657
SELECT COUNT( * ) + - + 68 * 30 + - 16 AS col1
----
-2055

skipif mysql # not compatible
query I rowsort label-657
SELECT COUNT ( * ) + - + 68 * 30 + - 16 AS col1
----
-2055

onlyif mysql # aggregate syntax: 
query I rowsort label-658
SELECT ALL COUNT( * ) * - 25 + - 22 + + 35 AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-658
SELECT ALL COUNT ( * ) * - 25 + - 22 + + 35 AS col2
----
-12

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-659
SELECT DISTINCT CAST( NULL AS SIGNED ) * - ( + CAST( NULL AS DECIMAL ) ) - + COALESCE ( - - 16, - 78 + - 99 + 64 / 66 + + + 54 )
----
NULL

skipif mysql # not compatible
query I rowsort label-659
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - ( + CAST ( NULL AS REAL ) ) - + COALESCE ( - - 16, - 78 + - 99 + 64 / 66 + + + 54 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-660
SELECT DISTINCT + ( + 65 ) DIV + 47
----
1

skipif mysql # not compatible
query I rowsort label-660
SELECT DISTINCT + ( + 65 ) / + 47
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-661
SELECT DISTINCT + COUNT( ALL + 9 ) * 84 AS col1
----
84

skipif mysql # not compatible
query I rowsort label-661
SELECT DISTINCT + COUNT ( ALL + 9 ) * 84 AS col1
----
84

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-664
SELECT + NULLIF ( - 36, + + CASE + - 94 WHEN - 1 * 97 THEN - 43 + + 35 + - ( + 51 ) * 96 * CAST( - 54 AS SIGNED ) + - 91 * CAST( NULL AS SIGNED ) WHEN - - 84 THEN NULL END )
----
-36

skipif mysql # not compatible
query I rowsort label-664
SELECT + NULLIF ( - 36, + + CASE + - 94 WHEN - 1 * 97 THEN - 43 + + 35 + - ( + 51 ) * 96 * CAST ( - 54 AS INTEGER ) + - 91 * CAST ( NULL AS INTEGER ) WHEN - - 84 THEN NULL END )
----
-36

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

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

query I rowsort
SELECT DISTINCT + CASE - 57 WHEN - 54 THEN - 39 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-667
SELECT ALL 82 * + 51 * + 61 + - 10 - COUNT( * )
----
255091

skipif mysql # not compatible
query I rowsort label-667
SELECT ALL 82 * + 51 * + 61 + - 10 - COUNT ( * )
----
255091

onlyif mysql # DIV for integer division: 
query I rowsort label-668
SELECT DISTINCT 70 DIV - 84 col1
----
0

skipif mysql # not compatible
query I rowsort label-668
SELECT DISTINCT 70 / - 84 col1
----
0

query I rowsort
SELECT + 82 * - 85 * - 42 col0
----
292740

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

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

query I rowsort
SELECT ALL 5 * + - ( ( ( 41 ) ) ) col1
----
-205

onlyif mysql # aggregate syntax: 
query II rowsort label-672
SELECT + COUNT( * ) AS col0, + 86 * 78 * + - 90 AS col1
----
1
-603720

skipif mysql # not compatible
query II rowsort label-672
SELECT + COUNT ( * ) AS col0, + 86 * 78 * + - 90 AS col1
----
1
-603720

onlyif mysql # aggregate syntax: 
query I rowsort label-673
SELECT + NULLIF ( + NULLIF ( + 11, - - 68 + + + 54 + + 23 + - COALESCE ( + 49, - COUNT( * ) ) - - 41 * - - COUNT( * ) ), + COUNT( * ) ) + - - CASE - - 86 WHEN - 57 THEN - 79 + + + 50 * - 73 WHEN 8 + + COUNT( ALL NULLIF ( 23, 19 ) + 34 / + 92 ) THEN ( ( - 18 ) ) + 55 WHEN 34 THEN - 81 * 19 + + 82 END + - 0 * + 91
----
NULL

skipif mysql # not compatible
query I rowsort label-673
SELECT + NULLIF ( + NULLIF ( + 11, - - 68 + + + 54 + + 23 + - COALESCE ( + 49, - COUNT ( * ) ) - - 41 * - - COUNT ( * ) ), + COUNT ( * ) ) + - - CASE - - 86 WHEN - 57 THEN - 79 + + + 50 * - 73 WHEN 8 + + COUNT ( ALL NULLIF ( 23, 19 ) + 34 / + 92 ) THEN ( ( - 18 ) ) + 55 WHEN 34 THEN - 81 * 19 + + 82 END + - 0 * + 91
----
NULL

query I rowsort
SELECT - 52 * + + 99 AS col2
----
-5148

query I rowsort
SELECT + 40 + + + 18
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-676
SELECT DISTINCT COUNT( * ) + ( - 27 ) * + - COUNT( * ) * 20 AS col2
----
541

skipif mysql # not compatible
query I rowsort label-676
SELECT DISTINCT COUNT ( * ) + ( - 27 ) * + - COUNT ( * ) * 20 AS col2
----
541

query I rowsort
SELECT DISTINCT 63 + 70 + 55 * + 14 * - 53
----
-40677

onlyif mysql # DIV for integer division: 
query I rowsort label-678
SELECT ALL + 92 DIV - 90 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-678
SELECT ALL + 92 / - 90 AS col0
----
-1

query II rowsort
SELECT 96 AS col1, - 50
----
96
-50

query I rowsort
SELECT ALL 98 + - - 28 col0
----
126

query I rowsort
SELECT DISTINCT - 19 + 53 AS col0
----
34

query I rowsort
SELECT ALL + 65 + 4 AS col0
----
69

query II rowsort
SELECT 12 AS col0, + 70 AS col0
----
12
70

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

skipif mysql # not compatible
query I rowsort label-684
SELECT ALL COUNT ( DISTINCT + + 39 ) AS col0
----
1

query II rowsort
SELECT 83 AS col1, 36 + 54
----
83
90

query I rowsort
SELECT + 56 + - 57
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-687
SELECT - 62 + + COALESCE ( - + 60, + 93 DIV 21 + + - 57 ) * - NULLIF ( - 57, - 1 ) + - 25
----
-3507

skipif mysql # not compatible
query I rowsort label-687
SELECT - 62 + + COALESCE ( - + 60, + 93 / 21 + + - 57 ) * - NULLIF ( - 57, - 1 ) + - 25
----
-3507

query I rowsort
SELECT DISTINCT - 20 + - - 29 + - 61 AS col2
----
-52

query I rowsort
SELECT ALL + + 18 + + 78 AS col0
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-690
SELECT - MAX( + - 84 ) * - + 74 + CAST( + 22 AS SIGNED ) + + + CAST( + + 0 AS SIGNED ) - 79 col1
----
-6273

skipif mysql # not compatible
query I rowsort label-690
SELECT - MAX ( + - 84 ) * - + 74 + CAST ( + 22 AS INTEGER ) + + + CAST ( + + 0 AS INTEGER ) - 79 col1
----
-6273

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-691
SELECT ALL - + 6 * + - NULLIF ( + CAST( + - MAX( 79 ) AS SIGNED ), 49 ) + + - CAST( NULL AS SIGNED ) * - 27 + 94 + 1 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-691
SELECT ALL - + 6 * + - NULLIF ( + CAST ( + - MAX ( 79 ) AS INTEGER ), 49 ) + + - CAST ( NULL AS INTEGER ) * - 27 + 94 + 1 AS col2
----
NULL

query I rowsort
SELECT ALL - 24 - + + 2
----
-26

query I rowsort
SELECT - + 60 * - 80 AS col0
----
4800

onlyif mysql # DIV for integer division: 
query I rowsort label-694
SELECT - + 11 DIV + 41 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-694
SELECT - + 11 / + 41 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-695
SELECT + + 87 * + COUNT( * ) - - + 89 DIV - 66 + + - 42 + + + 59 * + + 86
----
5118

skipif mysql # not compatible
query I rowsort label-695
SELECT + + 87 * + COUNT ( * ) - - + 89 / - 66 + + - 42 + + + 59 * + + 86
----
5118

onlyif mysql # DIV for integer division: 
query I rowsort label-696
SELECT ALL + 89 DIV + 57 col0
----
1

skipif mysql # not compatible
query I rowsort label-696
SELECT ALL + 89 / + 57 col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-697
SELECT + 5 * + 87 / - CASE + CAST( NULL AS SIGNED ) WHEN - - 25 THEN NULL WHEN + CAST( - - 50 AS DECIMAL ) THEN + - 35 ELSE NULL END + + 49 * 39 - - ( + 85 ) - + MIN( DISTINCT + 21 )
----
NULL

skipif mysql # not compatible
query I rowsort label-697
SELECT + 5 * + 87 / - CASE + CAST ( NULL AS INTEGER ) WHEN - - 25 THEN NULL WHEN + CAST ( - - 50 AS REAL ) THEN + - 35 ELSE NULL END + + 49 * 39 - - ( + 85 ) - + MIN ( DISTINCT + 21 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-698
SELECT + 17 DIV SUM( + 48 ) + 80
----
80

skipif mysql # not compatible
query I rowsort label-698
SELECT + 17 / SUM ( + 48 ) + 80
----
80

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

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

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

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

query I rowsort
SELECT - - 34 + 61 + + - 70
----
25

query I rowsort
SELECT ALL 71 * + 88 AS col1
----
6248

onlyif mysql # aggregate syntax: 
query II rowsort label-703
SELECT + 42 * - 48 + + - COALESCE ( + - COUNT( * ), - COUNT( * ) ) + - 17 col2, ( 36 ) col2
----
-2032
36

skipif mysql # not compatible
query II rowsort label-703
SELECT + 42 * - 48 + + - COALESCE ( + - COUNT ( * ), - COUNT ( * ) ) + - 17 col2, ( 36 ) col2
----
-2032
36

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

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

query I rowsort
SELECT - 1 * - 90 + + COALESCE ( 44, - 88, 11 ) + + 77
----
211

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

skipif mysql # not compatible
query I rowsort label-706
SELECT NULLIF ( - 32, + CAST ( - - CAST ( - - 32 AS INTEGER ) AS INTEGER ) )
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-707
SELECT + MAX( + 34 ) + - 16 AS col1
----
18

skipif mysql # not compatible
query I rowsort label-707
SELECT + MAX ( + 34 ) + - 16 AS col1
----
18

query I rowsort
SELECT - 19 * - 47 + - - 1
----
894

query I rowsort
SELECT + 92 * + + 30 * + 82
----
226320

onlyif mysql # aggregate syntax: 
query I rowsort label-710
SELECT ALL 81 * - + MIN( ( 2 ) ) + 89
----
-73

skipif mysql # not compatible
query I rowsort label-710
SELECT ALL 81 * - + MIN ( ( 2 ) ) + 89
----
-73

query I rowsort
SELECT CASE + + 48 WHEN + 77 * 86 + - 82 + + 64 THEN + - 88 WHEN + 13 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-712
SELECT - NULLIF ( - 76, NULLIF ( - CAST( NULL AS SIGNED ), 5 ) + ( 50 ) + + - 91 / + - 6 ) AS col0, 18 - + 26 - + - 6 - + CASE + 49 WHEN - CASE 74 WHEN 13 THEN - - 6 END THEN NULL ELSE + COUNT( * ) END * 27
----
76
-29

skipif mysql # not compatible
query II rowsort label-712
SELECT - NULLIF ( - 76, NULLIF ( - CAST ( NULL AS INTEGER ), 5 ) + ( 50 ) + + - 91 / + - 6 ) AS col0, 18 - + 26 - + - 6 - + CASE + 49 WHEN - CASE 74 WHEN 13 THEN - - 6 END THEN NULL ELSE + COUNT ( * ) END * 27
----
76
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-713
SELECT + 56 DIV + - ( + 90 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-713
SELECT + 56 / + - ( + 90 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-714
SELECT MAX( ALL - 95 ) AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-714
SELECT MAX ( ALL - 95 ) AS col2
----
-95

query I rowsort
SELECT ALL 44 - 98 + ( - 62 )
----
-116

query I rowsort
SELECT + - ( + - 33 ) + - 3
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-717
SELECT ALL + 95 DIV - 43
----
-2

skipif mysql # not compatible
query I rowsort label-717
SELECT ALL + 95 / - 43
----
-2

query II rowsort
SELECT + 9 * + + 72, - 59 AS col2
----
648
-59

query I rowsort
SELECT 54 + + ( 87 )
----
141

query II rowsort
SELECT - 45 + + 48, 93 AS col1
----
3
93

query II rowsort
SELECT - 58 * - 31 + 56 * - 68 col1, 47 AS col2
----
-2010
47

query I rowsort
SELECT DISTINCT + - 69 * + 6
----
-414

query I rowsort
SELECT 88 * - 36
----
-3168

query I rowsort
SELECT ALL + NULLIF ( - + ( + - ( + 42 ) ), 43 ) + - 77 AS col2
----
-35

query I rowsort
SELECT 4 - - 40 col2
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-726
SELECT DISTINCT - SUM( DISTINCT - 9 ) col1
----
9

skipif mysql # not compatible
query I rowsort label-726
SELECT DISTINCT - SUM ( DISTINCT - 9 ) col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-727
SELECT ALL - CASE COUNT( * ) WHEN - 46 THEN 45 * - + 13 + - + ( - 46 ) WHEN + 18 THEN - 5 + - - COUNT( * ) ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-727
SELECT ALL - CASE COUNT ( * ) WHEN - 46 THEN 45 * - + 13 + - + ( - 46 ) WHEN + 18 THEN - 5 + - - COUNT ( * ) ELSE NULL END col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-728
SELECT DISTINCT - COALESCE ( - CAST( NULL AS SIGNED ), 15 DIV - + 23 + + 92 ) DIV 8
----
-11

skipif mysql # not compatible
query I rowsort label-728
SELECT DISTINCT - COALESCE ( - CAST ( NULL AS INTEGER ), 15 / - + 23 + + 92 ) / 8
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-729
SELECT DISTINCT 46 + + - 33 + + - 29 - - COUNT( * ) + - + 98 + 51 col1
----
-62

skipif mysql # not compatible
query I rowsort label-729
SELECT DISTINCT 46 + + - 33 + + - 29 - - COUNT ( * ) + - + 98 + 51 col1
----
-62

query I rowsort
SELECT 39 * + 75
----
2925

onlyif mysql # aggregate syntax: 
query I rowsort label-731
SELECT ALL - 92 * NULLIF ( - 18, - 99 / + 50 + COUNT( * ) / 2 )
----
1656

skipif mysql # not compatible
query I rowsort label-731
SELECT ALL - 92 * NULLIF ( - 18, - 99 / + 50 + COUNT ( * ) / 2 )
----
1656

query I rowsort
SELECT 13 + + 91 + - - 77
----
181

onlyif mysql # aggregate syntax: 
query I rowsort label-733
SELECT COUNT( * ) - + 52 * + 29 * + + 10 col1
----
-15079

skipif mysql # not compatible
query I rowsort label-733
SELECT COUNT ( * ) - + 52 * + 29 * + + 10 col1
----
-15079

query II rowsort
SELECT 21 AS col2, - 34 col2
----
21
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-735
SELECT 38 * CAST( - 12 AS SIGNED ) + 2
----
-454

skipif mysql # not compatible
query I rowsort label-735
SELECT 38 * CAST ( - 12 AS INTEGER ) + 2
----
-454

query II rowsort
SELECT 64, 65 + + + 92 AS col2
----
64
157

query II rowsort
SELECT - 74 AS col1, 76 * + - 38 AS col0
----
-74
-2888

onlyif mysql # aggregate syntax: 
query I rowsort label-738
SELECT COUNT( * ) * + NULLIF ( COUNT( * ), 40 * 7 ) * - ( + 21 )
----
-21

skipif mysql # not compatible
query I rowsort label-738
SELECT COUNT ( * ) * + NULLIF ( COUNT ( * ), 40 * 7 ) * - ( + 21 )
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-739
SELECT DISTINCT + ( 51 ) - MAX( ALL + - 53 ) AS col0
----
104

skipif mysql # not compatible
query I rowsort label-739
SELECT DISTINCT + ( 51 ) - MAX ( ALL + - 53 ) AS col0
----
104

query I rowsort
SELECT ALL + 4 - - 71
----
75

query I rowsort
SELECT 0 * + - 82 col1
----
0

query I rowsort
SELECT DISTINCT + 66 * - + 5 col1
----
-330

onlyif mysql # DIV for integer division: 
query I rowsort label-743
SELECT 92 DIV - 66
----
-1

skipif mysql # not compatible
query I rowsort label-743
SELECT 92 / - 66
----
-1

query I rowsort
SELECT 79 * 25
----
1975

query I rowsort
SELECT + 15 * 40
----
600

onlyif mysql # aggregate syntax: 
query I rowsort label-746
SELECT ALL - COUNT( DISTINCT - 79 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-746
SELECT ALL - COUNT ( DISTINCT - 79 ) AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-747
SELECT + 42 DIV + 67 col0
----
0

skipif mysql # not compatible
query I rowsort label-747
SELECT + 42 / + 67 col0
----
0

query I rowsort
SELECT ALL + 72 + + - 19 AS col2
----
53

query I rowsort
SELECT - 82 - 96 + + 79 AS col1
----
-99

query III rowsort
SELECT - 39, - 14 + - 62 AS col2, + 42 AS col2
----
-39
-76
42

onlyif mysql # aggregate syntax: 
query I rowsort label-751
SELECT + COUNT( * ) + - - 38 AS col2
----
39

skipif mysql # not compatible
query I rowsort label-751
SELECT + COUNT ( * ) + - - 38 AS col2
----
39

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-753
SELECT DISTINCT + COALESCE ( + - COUNT( ALL - CAST( NULL AS SIGNED ) ), 62 )
----
0

skipif mysql # not compatible
query I rowsort label-753
SELECT DISTINCT + COALESCE ( + - COUNT ( ALL - CAST ( NULL AS INTEGER ) ), 62 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-754
SELECT ALL - COUNT( * ) + + - 2 + - ( - - 32 ) + + - 25 - 49 AS col1
----
-109

skipif mysql # not compatible
query I rowsort label-754
SELECT ALL - COUNT ( * ) + + - 2 + - ( - - 32 ) + + - 25 - 49 AS col1
----
-109

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-756
SELECT DISTINCT - 89 + - COUNT( * ) + 32, 75 AS col1
----
-58
75

skipif mysql # not compatible
query II rowsort label-756
SELECT DISTINCT - 89 + - COUNT ( * ) + 32, 75 AS col1
----
-58
75

query II rowsort
SELECT 24 AS col2, - 90 + - 48 - - 25 AS col1
----
24
-113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-758
SELECT CASE + - CASE - 8 WHEN + SUM( 56 ) * - - CASE - 1 WHEN 15 + + 49 * + 50 - + 80 * COUNT( * ) THEN - + 0 * - 56 + + 2 * + 49 END + + 51 + - + CAST( NULL AS SIGNED ) + COUNT( * ) THEN 8 ELSE NULL END WHEN + COALESCE ( + 60, - MAX( 21 ), + COUNT( * ) * 74 ) THEN 95 * - 96 END * COALESCE ( CAST( NULL AS SIGNED ) / + 14, + 25 ) + + ( 37 + - 37 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-758
SELECT CASE + - CASE - 8 WHEN + SUM ( 56 ) * - - CASE - 1 WHEN 15 + + 49 * + 50 - + 80 * COUNT ( * ) THEN - + 0 * - 56 + + 2 * + 49 END + + 51 + - + CAST ( NULL AS INTEGER ) + COUNT ( * ) THEN 8 ELSE NULL END WHEN + COALESCE ( + 60, - MAX ( 21 ), + COUNT ( * ) * 74 ) THEN 95 * - 96 END * COALESCE ( CAST ( NULL AS INTEGER ) / + 14, + 25 ) + + ( 37 + - 37 ) AS col2
----
NULL

query I rowsort
SELECT 17 - + 59
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-760
SELECT 33 * + - NULLIF ( - + 54, - + 89 ) * - CAST( - - 14 AS SIGNED ), + 91 AS col0
----
-24948
91

skipif mysql # not compatible
query II rowsort label-760
SELECT 33 * + - NULLIF ( - + 54, - + 89 ) * - CAST ( - - 14 AS INTEGER ), + 91 AS col0
----
-24948
91

onlyif mysql # aggregate syntax: 
query I rowsort label-761
SELECT - ( + 97 ) * - + CASE - 52 WHEN - 60 + COUNT( * ) THEN + 45 ELSE NULL END + 16
----
NULL

skipif mysql # not compatible
query I rowsort label-761
SELECT - ( + 97 ) * - + CASE - 52 WHEN - 60 + COUNT ( * ) THEN + 45 ELSE NULL END + 16
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-762
SELECT DISTINCT + ( - COALESCE ( - 9, + - 85 * - 5 DIV + 67 ) ) * + 44
----
396

skipif mysql # not compatible
query I rowsort label-762
SELECT DISTINCT + ( - COALESCE ( - 9, + - 85 * - 5 / + 67 ) ) * + 44
----
396

onlyif mysql # aggregate syntax: 
query I rowsort label-763
SELECT ALL - ( COALESCE ( + + COUNT( * ), + 81 ) ) * - - CASE - 75 WHEN - 32 + + + 24 * - COUNT( DISTINCT - 84 ) THEN NULL ELSE + + 87 + 51 END + - SUM( DISTINCT - - 36 ) AS col1
----
-174

skipif mysql # not compatible
query I rowsort label-763
SELECT ALL - ( COALESCE ( + + COUNT ( * ), + 81 ) ) * - - CASE - 75 WHEN - 32 + + + 24 * - COUNT ( DISTINCT - 84 ) THEN NULL ELSE + + 87 + 51 END + - SUM ( DISTINCT - - 36 ) AS col1
----
-174

onlyif mysql # aggregate syntax: 
query I rowsort label-764
SELECT DISTINCT 40 * - MAX( - 5 )
----
200

skipif mysql # not compatible
query I rowsort label-764
SELECT DISTINCT 40 * - MAX ( - 5 )
----
200

query I rowsort
SELECT ALL + 33 - + 80 col2
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-766
SELECT COUNT( * ) AS col2, - 26 DIV - ( - + 80 ) col2
----
1
0

skipif mysql # not compatible
query II rowsort label-766
SELECT COUNT ( * ) AS col2, - 26 / - ( - + 80 ) col2
----
1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-767
SELECT 13 DIV + + 49
----
0

skipif mysql # not compatible
query I rowsort label-767
SELECT 13 / + + 49
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-768
SELECT COUNT( * ) * - 15 * + 74 + 33 col2, 86 * + CASE + COUNT( * ) WHEN - - 89 THEN - + 8 + + COUNT( * ) END + - COUNT( ALL 7 ) AS col0
----
-1077
NULL

skipif mysql # not compatible
query II rowsort label-768
SELECT COUNT ( * ) * - 15 * + 74 + 33 col2, 86 * + CASE + COUNT ( * ) WHEN - - 89 THEN - + 8 + + COUNT ( * ) END + - COUNT ( ALL 7 ) AS col0
----
-1077
NULL

query I rowsort
SELECT ALL + ( + + 16 ) - - + 47 + + + 62 col0
----
125

query II rowsort
SELECT DISTINCT - 97, ( - - 89 ) AS col2
----
-97
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-771
SELECT 67 + - 64 + 36 + + 6 * + + SUM( ALL - 36 ) + + COALESCE ( - 87, + + 46 DIV 21 * - CAST( NULL AS SIGNED ) DIV + - 63 ) - + + 50 DIV + COUNT( * ) + + 33
----
-281

skipif mysql # not compatible
query I rowsort label-771
SELECT 67 + - 64 + 36 + + 6 * + + SUM ( ALL - 36 ) + + COALESCE ( - 87, + + 46 / 21 * - CAST ( NULL AS INTEGER ) / + - 63 ) - + + 50 / + COUNT ( * ) + + 33
----
-281

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-772
SELECT 38 DIV - + COUNT( - CAST( + 20 AS SIGNED ) ) AS col1, + 19
----
-38
19

skipif mysql # not compatible
query II rowsort label-772
SELECT 38 / - + COUNT ( - CAST ( + 20 AS INTEGER ) ) AS col1, + 19
----
-38
19

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-773
SELECT DISTINCT - CAST( NULL AS DECIMAL ) AS col2, - 89 * COALESCE ( ( - ( + - COALESCE ( NULLIF ( + 5, 48 * + 46 * + ( - - 99 ) ), - 3 + + 34 ) ) ), 64 * COUNT( * ) * COUNT( * ) + + MAX( 63 ) + + - 64, + + 17 ) * 91 AS col1
----
NULL
-40495

skipif mysql # not compatible
query II rowsort label-773
SELECT DISTINCT - CAST ( NULL AS REAL ) AS col2, - 89 * COALESCE ( ( - ( + - COALESCE ( NULLIF ( + 5, 48 * + 46 * + ( - - 99 ) ), - 3 + + 34 ) ) ), 64 * COUNT ( * ) * COUNT ( * ) + + MAX ( 63 ) + + - 64, + + 17 ) * 91 AS col1
----
NULL
-40495

query I rowsort
SELECT DISTINCT - 61 * + 83
----
-5063

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-775
SELECT ALL - + COALESCE ( - 13, - - NULLIF ( CAST( + CAST( NULL AS SIGNED ) AS SIGNED ), + - 64 / + - 69 + + 20 ) ) * MIN( - + 58 ) * - + CASE + - 27 WHEN 11 THEN NULL WHEN - COUNT( * ) THEN - CASE + + MIN( ALL 93 ) WHEN + COUNT( * ) THEN - 73 * - + 26 WHEN + + MIN( 96 ) THEN 90 * ( ( + 47 ) ) END ELSE NULL END + - 14 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-775
SELECT ALL - + COALESCE ( - 13, - - NULLIF ( CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ), + - 64 / + - 69 + + 20 ) ) * MIN ( - + 58 ) * - + CASE + - 27 WHEN 11 THEN NULL WHEN - COUNT ( * ) THEN - CASE + + MIN ( ALL 93 ) WHEN + COUNT ( * ) THEN - 73 * - + 26 WHEN + + MIN ( 96 ) THEN 90 * ( ( + 47 ) ) END ELSE NULL END + - 14 col2
----
NULL

query I rowsort
SELECT DISTINCT + + 69 * + 84 * - 12 * + + 28 * + 78
----
-151901568

onlyif mysql # DIV for integer division: 
query II rowsort label-777
SELECT - 27 AS col1, - 96 DIV - - 66 - - + 49 AS col2
----
-27
48

skipif mysql # not compatible
query II rowsort label-777
SELECT - 27 AS col1, - 96 / - - 66 - - + 49 AS col2
----
-27
48

query I rowsort
SELECT ALL + + ( - - 70 ) * 19
----
1330

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-779
SELECT - + AVG ( 53 ) * + CAST( NULL AS DECIMAL ) * + 38
----
NULL

skipif mysql # not compatible
query I rowsort label-779
SELECT - + AVG ( 53 ) * + CAST ( NULL AS REAL ) * + 38
----
NULL

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

skipif mysql # not compatible
query I rowsort label-780
SELECT - ( CAST ( - COUNT ( * ) AS INTEGER ) ) AS col0
----
1

query I rowsort
SELECT ALL 96 + - 86 AS col1
----
10

query I rowsort
SELECT ALL + 43 + 14
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-783
SELECT - + ( ( - + 76 ) ) - 69 DIV + 47
----
75

skipif mysql # not compatible
query I rowsort label-783
SELECT - + ( ( - + 76 ) ) - 69 / + 47
----
75

query I rowsort
SELECT - 80 + - 54
----
-134

query II rowsort
SELECT + 12, - 81 AS col0
----
12
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-786
SELECT DISTINCT + MIN( DISTINCT + 89 ) AS col2, COUNT( * ) * - - 23 AS col2
----
89
23

skipif mysql # not compatible
query II rowsort label-786
SELECT DISTINCT + MIN ( DISTINCT + 89 ) AS col2, COUNT ( * ) * - - 23 AS col2
----
89
23

onlyif mysql # DIV for integer division: 
query I rowsort label-787
SELECT ALL + - 15 + 2 DIV - 25 col1
----
-15

skipif mysql # not compatible
query I rowsort label-787
SELECT ALL + - 15 + 2 / - 25 col1
----
-15

query I rowsort
SELECT - - CASE - - ( + 21 ) WHEN + - AVG ( DISTINCT - 52 ) THEN NULL ELSE + - 78 * + 14 * 43 END * - - 70
----
-3286920

query I rowsort
SELECT + - 55 + - - 57 - - + 42
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-790
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - + 69 * + 84
----
NULL

skipif mysql # not compatible
query I rowsort label-790
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - + 69 * + 84
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-791
SELECT - - COALESCE ( NULLIF ( - - 86, - - 66 ), - COALESCE ( 69, ( + 45 ), - 73 * + 34 + + + 90 + + 59 + + 1 DIV + - ( - 95 ) * + 59 + - 21 * - 68 DIV AVG ( NULLIF ( - 55, - 91 ) ) + 75 ) )
----
86

skipif mysql # not compatible
query I rowsort label-791
SELECT - - COALESCE ( NULLIF ( - - 86, - - 66 ), - COALESCE ( 69, ( + 45 ), - 73 * + 34 + + + 90 + + 59 + + 1 / + - ( - 95 ) * + 59 + - 21 * - 68 / AVG ( NULLIF ( - 55, - 91 ) ) + 75 ) )
----
86

query I rowsort
SELECT + + 80 + - - 13 + 24 AS col2
----
117

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-794
SELECT + - 5 + - 33, 40 - - 75 + - CAST( NULL AS SIGNED ) AS col2
----
-38
NULL

skipif mysql # not compatible
query II rowsort label-794
SELECT + - 5 + - 33, 40 - - 75 + - CAST ( NULL AS INTEGER ) AS col2
----
-38
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-795
SELECT DISTINCT COUNT( ALL - 32 ) + + 81 + + + 18
----
100

skipif mysql # not compatible
query I rowsort label-795
SELECT DISTINCT COUNT ( ALL - 32 ) + + 81 + + + 18
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-796
SELECT ALL - 9 * + 25 * + - SUM( DISTINCT - 0 ) * + + 93
----
0

skipif mysql # not compatible
query I rowsort label-796
SELECT ALL - 9 * + 25 * + - SUM ( DISTINCT - 0 ) * + + 93
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-797
SELECT + NULLIF ( + 7, 50 + + COUNT( * ) ) col1
----
7

skipif mysql # not compatible
query I rowsort label-797
SELECT + NULLIF ( + 7, 50 + + COUNT ( * ) ) col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-798
SELECT ( - CASE + 62 WHEN + - ( 8 ) * MAX( 99 ) + - - 99 + 34 THEN - SUM( DISTINCT + - 75 ) END ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-798
SELECT ( - CASE + 62 WHEN + - ( 8 ) * MAX ( 99 ) + - - 99 + 34 THEN - SUM ( DISTINCT + - 75 ) END ) col0
----
NULL

query I rowsort
SELECT + 70 * + CASE + + 4 WHEN 47 * - 35 THEN - 84 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-800
SELECT - SUM( DISTINCT - CAST( 13 AS SIGNED ) ) * + - 39 - + + 19 AS col0
----
-526

skipif mysql # not compatible
query I rowsort label-800
SELECT - SUM ( DISTINCT - CAST ( 13 AS INTEGER ) ) * + - 39 - + + 19 AS col0
----
-526

onlyif mysql # DIV for integer division: 
query I rowsort label-801
SELECT + 87 DIV - 95 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-801
SELECT + 87 / - 95 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-802
SELECT + NULLIF ( - ( + + 71 ), - COUNT( * ) ) AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-802
SELECT + NULLIF ( - ( + + 71 ), - COUNT ( * ) ) AS col0
----
-71

query II rowsort
SELECT + ( 37 ) AS col0, + 74 AS col1
----
37
74

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

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

query I rowsort
SELECT + 10 * + 39 AS col1
----
390

query I rowsort
SELECT ALL 21 * - - 38 AS col2
----
798

onlyif mysql # aggregate syntax: 
query I rowsort label-807
SELECT + 27 - + MAX( + 51 ) AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-807
SELECT + 27 - + MAX ( + 51 ) AS col2
----
-24

onlyif mysql # aggregate syntax: 
query II rowsort label-808
SELECT + ( - 27 ) col2, COUNT( * ) * - - MIN( DISTINCT - 9 )
----
-27
-9

skipif mysql # not compatible
query II rowsort label-808
SELECT + ( - 27 ) col2, COUNT ( * ) * - - MIN ( DISTINCT - 9 )
----
-27
-9

query I rowsort
SELECT ALL + NULLIF ( + 26, COALESCE ( + 73, 2 ) + + 69 )
----
26

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

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

query II rowsort
SELECT ALL 85 * + - 68 AS col2, 1 - + + 27
----
-5780
-26

query I rowsort
SELECT - ( - 82 ) - 49 + - COALESCE ( + + 98, - ( + ( 95 ) ) ) AS col2
----
-65

query I rowsort
SELECT - 96 * + 43 - - 73 + 83 AS col1
----
-3972

onlyif mysql # DIV for integer division: 
query II rowsort label-814
SELECT - 97 DIV + 46 AS col2, 26 DIV - 79 col2
----
-2
0

skipif mysql # not compatible
query II rowsort label-814
SELECT - 97 / + 46 AS col2, 26 / - 79 col2
----
-2
0

onlyif mysql # aggregate syntax: 
query I rowsort label-815
SELECT DISTINCT 54 * - 85 * + 62 * ( - 36 ) + ( COUNT( - - 50 ) ) AS col0
----
10244881

skipif mysql # not compatible
query I rowsort label-815
SELECT DISTINCT 54 * - 85 * + 62 * ( - 36 ) + ( COUNT ( - - 50 ) ) AS col0
----
10244881

onlyif mysql # aggregate syntax: 
query II rowsort label-816
SELECT - 55 + - 42 * 68 + - CASE 89 WHEN - 80 THEN - 95 END, 94 + - + COUNT( DISTINCT 65 ) AS col1
----
NULL
93

skipif mysql # not compatible
query II rowsort label-816
SELECT - 55 + - 42 * 68 + - CASE 89 WHEN - 80 THEN - 95 END, 94 + - + COUNT ( DISTINCT 65 ) AS col1
----
NULL
93

query I rowsort
SELECT - 68 + + 16
----
-52

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

skipif mysql # not compatible
query I rowsort label-818
SELECT ALL + NULLIF ( + 31, + 64 ) + - COUNT ( * )
----
30

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

skipif mysql # not compatible
query II rowsort label-819
SELECT - - COUNT ( - - 98 ) AS col1, 90 col1
----
1
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-820
SELECT - + 89 + - CASE 19 WHEN + - 37 DIV COUNT( * ) + + - 92 + + NULLIF ( - COUNT( * ), - 75 ) * - 36 + + - 55 + - + 92 + - - 90 DIV + 90 - + 73 + - 25 + - 82 THEN NULL WHEN ( 13 ) + + 26 THEN - 27 * + - 61 DIV - SUM( 57 ) + - CAST( NULL AS SIGNED ) ELSE NULLIF ( - 87, 97 ) END * 90 col1
----
7741

skipif mysql # not compatible
query I rowsort label-820
SELECT - + 89 + - CASE 19 WHEN + - 37 / COUNT ( * ) + + - 92 + + NULLIF ( - COUNT ( * ), - 75 ) * - 36 + + - 55 + - + 92 + - - 90 / + 90 - + 73 + - 25 + - 82 THEN NULL WHEN ( 13 ) + + 26 THEN - 27 * + - 61 / - SUM ( 57 ) + - CAST ( NULL AS INTEGER ) ELSE NULLIF ( - 87, 97 ) END * 90 col1
----
7741

query I rowsort
SELECT - - ( 52 )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-822
SELECT CASE + COUNT( * ) WHEN + 92 THEN COALESCE ( + + ( - - 36 ), 40, + 96 / - 38 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-822
SELECT CASE + COUNT ( * ) WHEN + 92 THEN COALESCE ( + + ( - - 36 ), 40, + 96 / - 38 ) ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - NULLIF ( 74, + 82 ) * - ( 11 ) AS col0
----
814

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-824
SELECT - 13 * - CASE CAST( NULL AS SIGNED ) WHEN - COUNT( ALL - 73 ) THEN - - 9 * - 90 + - - 24 END * - - CAST( NULL AS SIGNED ) - + + 67 * - 55
----
NULL

skipif mysql # not compatible
query I rowsort label-824
SELECT - 13 * - CASE CAST ( NULL AS INTEGER ) WHEN - COUNT ( ALL - 73 ) THEN - - 9 * - 90 + - - 24 END * - - CAST ( NULL AS INTEGER ) - + + 67 * - 55
----
NULL

query I rowsort
SELECT - + 51 + 19 AS col0
----
-32

query I rowsort
SELECT ALL + - 87 + + + 5 AS col1
----
-82

query I rowsort
SELECT ALL - 60 * - 74 - + 99 AS col0
----
4341

onlyif mysql # aggregate syntax: 
query I rowsort label-828
SELECT - + 49 + + MAX( - - 64 ) * ( - 3 ) AS col0
----
-241

skipif mysql # not compatible
query I rowsort label-828
SELECT - + 49 + + MAX ( - - 64 ) * ( - 3 ) AS col0
----
-241

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-829
SELECT - - CAST( 24 AS SIGNED ) + - 16, - COUNT( * ) + + COUNT( 69 ) * 48 AS col2
----
8
47

skipif mysql # not compatible
query II rowsort label-829
SELECT - - CAST ( 24 AS INTEGER ) + - 16, - COUNT ( * ) + + COUNT ( 69 ) * 48 AS col2
----
8
47

onlyif mysql # aggregate syntax: 
query I rowsort label-830
SELECT DISTINCT + MIN( DISTINCT - 87 ) - - - 80 * - 21
----
1593

skipif mysql # not compatible
query I rowsort label-830
SELECT DISTINCT + MIN ( DISTINCT - 87 ) - - - 80 * - 21
----
1593

query I rowsort
SELECT - 81 + 82 + - 0 AS col0
----
1

query I rowsort
SELECT DISTINCT 87 * + - 48 AS col0
----
-4176

query II rowsort
SELECT 70 * 25 * 82 + - 55 AS col1, + CASE + 88 WHEN 60 THEN NULL ELSE + 49 END AS col0
----
143445
49

query I rowsort
SELECT - 10 * - 18 AS col0
----
180

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-835
SELECT ALL + 79 * CAST( + - ( - 19 ) AS SIGNED ) * 3 AS col1
----
4503

skipif mysql # not compatible
query I rowsort label-835
SELECT ALL + 79 * CAST ( + - ( - 19 ) AS INTEGER ) * 3 AS col1
----
4503

onlyif mysql # DIV for integer division: 
query I rowsort label-836
SELECT - 52 DIV 58 + - 16 DIV - - 98 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-836
SELECT - 52 / 58 + - 16 / - - 98 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-837
SELECT 77 * - 14 * - ( + - 53 ) AS col1, - ( - COUNT( * ) ) + 0 DIV - 9 AS col0
----
-57134
1

skipif mysql # not compatible
query II rowsort label-837
SELECT 77 * - 14 * - ( + - 53 ) AS col1, - ( - COUNT ( * ) ) + 0 / - 9 AS col0
----
-57134
1

onlyif mysql # aggregate syntax: 
query I rowsort label-838
SELECT ( COUNT( * ) ) * - NULLIF ( COUNT( * ), + + 40 ) + - + COALESCE ( + 79, 44 )
----
-80

skipif mysql # not compatible
query I rowsort label-838
SELECT ( COUNT ( * ) ) * - NULLIF ( COUNT ( * ), + + 40 ) + - + COALESCE ( + 79, 44 )
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-839
SELECT CASE + 69 WHEN - 36 + - 51 + - ( + 43 ) / + 94 THEN COUNT( * ) WHEN + 32 + + 89 * - 25 * - - 79 THEN NULL ELSE - 57 END / - + CASE - CAST( NULL AS SIGNED ) WHEN + - 76 THEN - 90 * - CAST( NULL AS SIGNED ) * 32 * - 21 * + - 94 + + - 6 + - 3 END * - COALESCE ( 8 * - 69 + 67, + 52 )
----
NULL

skipif mysql # not compatible
query I rowsort label-839
SELECT CASE + 69 WHEN - 36 + - 51 + - ( + 43 ) / + 94 THEN COUNT ( * ) WHEN + 32 + + 89 * - 25 * - - 79 THEN NULL ELSE - 57 END / - + CASE - CAST ( NULL AS INTEGER ) WHEN + - 76 THEN - 90 * - CAST ( NULL AS INTEGER ) * 32 * - 21 * + - 94 + + - 6 + - 3 END * - COALESCE ( 8 * - 69 + 67, + 52 )
----
NULL

query I rowsort
SELECT DISTINCT + 34 + - - 11 AS col2
----
45

query I rowsort
SELECT ALL 56 + 71 * + - 68
----
-4772

query I rowsort
SELECT ALL 0 + 59 AS col1
----
59

query II rowsort
SELECT + 73, 34 + 77 - ( - 9 ) AS col0
----
73
120

query I rowsort
SELECT DISTINCT 18 + - + 62
----
-44

query I rowsort
SELECT - ( - NULLIF ( - - 45, 91 ) )
----
45

query I rowsort
SELECT ALL + 41 + + 4 AS col0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-847
SELECT DISTINCT 40 * - - COUNT( * )
----
40

skipif mysql # not compatible
query I rowsort label-847
SELECT DISTINCT 40 * - - COUNT ( * )
----
40

query I rowsort
SELECT + 19 - 67 * ( 0 )
----
19

query I rowsort
SELECT 92 * + 46 * - CASE + 81 WHEN + 43 THEN NULL ELSE - ( 64 ) END AS col2
----
270848

query I rowsort
SELECT DISTINCT CASE - - 78 WHEN - 26 * - 90 + - 84 + - + 66 * + + 45 * - + 22 THEN NULL ELSE + 88 + + + 68 END AS col0
----
156

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-851
SELECT - 97 AS col2, - CAST( + 65 AS SIGNED ) * + 81 AS col0
----
-97
-5265

skipif mysql # not compatible
query II rowsort label-851
SELECT - 97 AS col2, - CAST ( + 65 AS INTEGER ) * + 81 AS col0
----
-97
-5265

query II rowsort
SELECT - + 69, + 2 AS col2
----
-69
2

query I rowsort
SELECT ALL + - 85 - + - 0 + 4 AS col2
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-854
SELECT MIN( DISTINCT - 83 ) * + - ( + 8 ) AS col1
----
664

skipif mysql # not compatible
query I rowsort label-854
SELECT MIN ( DISTINCT - 83 ) * + - ( + 8 ) AS col1
----
664

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-855
SELECT 2 + - - ( 14 ) + + 56 * CAST( - + COUNT( * ) AS SIGNED ) * + 94 AS col1
----
-5248

skipif mysql # not compatible
query I rowsort label-855
SELECT 2 + - - ( 14 ) + + 56 * CAST ( - + COUNT ( * ) AS INTEGER ) * + 94 AS col1
----
-5248

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-856
SELECT 95 * - 35 * + 48 DIV + - COUNT( * ) - 24
----
159576

skipif mysql # not compatible
query I rowsort label-856
SELECT 95 * - 35 * + 48 / + - COUNT ( * ) - 24
----
159576

query I rowsort
SELECT ALL + 37 * + ( + - 78 )
----
-2886

onlyif mysql # aggregate syntax: 
query I rowsort label-858
SELECT DISTINCT + 64 * COUNT( * ) col2
----
64

skipif mysql # not compatible
query I rowsort label-858
SELECT DISTINCT + 64 * COUNT ( * ) col2
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-859
SELECT MIN( ALL - 93 ) DIV 1
----
-93

skipif mysql # not compatible
query I rowsort label-859
SELECT MIN ( ALL - 93 ) / 1
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-860
SELECT ALL + NULLIF ( - 78, + + COUNT( * ) ) * + 56
----
-4368

skipif mysql # not compatible
query I rowsort label-860
SELECT ALL + NULLIF ( - 78, + + COUNT ( * ) ) * + 56
----
-4368

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-861
SELECT 23 * - + CAST( - + 56 AS SIGNED ) * - - MIN( - 62 )
----
-79856

skipif mysql # not compatible
query I rowsort label-861
SELECT 23 * - + CAST ( - + 56 AS INTEGER ) * - - MIN ( - 62 )
----
-79856

query I rowsort
SELECT 61 - 57
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-863
SELECT 68 + + 55 + SUM( DISTINCT - COALESCE ( - - 7, + 37 + - 98 + + 35 ) )
----
116

skipif mysql # not compatible
query I rowsort label-863
SELECT 68 + + 55 + SUM ( DISTINCT - COALESCE ( - - 7, + 37 + - 98 + + 35 ) )
----
116

query I rowsort
SELECT DISTINCT + ( - 59 ) * 87
----
-5133

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-865
SELECT ALL - COALESCE ( 80, - ( CAST( + + 64 AS SIGNED ) ) ) AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-865
SELECT ALL - COALESCE ( 80, - ( CAST ( + + 64 AS INTEGER ) ) ) AS col1
----
-80

query I rowsort
SELECT 58 * 70 AS col1
----
4060

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-868
SELECT DISTINCT 33 + + - 42 + - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) + - - COALESCE ( 33, + - 9 * 65 )
----
NULL

skipif mysql # not compatible
query I rowsort label-868
SELECT DISTINCT 33 + + - 42 + - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) + - - COALESCE ( 33, + - 9 * 65 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-869
SELECT ALL 92 + + MAX( + 54 )
----
146

skipif mysql # not compatible
query I rowsort label-869
SELECT ALL 92 + + MAX ( + 54 )
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-870
SELECT MIN( DISTINCT + 31 ) * + + MIN( 23 )
----
713

skipif mysql # not compatible
query I rowsort label-870
SELECT MIN ( DISTINCT + 31 ) * + + MIN ( 23 )
----
713

query I rowsort
SELECT ALL - 84 + 91
----
7

query I rowsort
SELECT DISTINCT + 30 + + 2 AS col0
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-873
SELECT 67 DIV 26
----
2

skipif mysql # not compatible
query I rowsort label-873
SELECT 67 / 26
----
2

query I rowsort
SELECT NULLIF ( - 35, + 35 ) * - 36
----
1260

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-876
SELECT MAX( DISTINCT - + 62 ) - - COUNT( * ) AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-876
SELECT MAX ( DISTINCT - + 62 ) - - COUNT ( * ) AS col0
----
-61

query I rowsort
SELECT DISTINCT + 78 + - 90
----
-12

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-879
SELECT ALL + + 21 + - MAX( DISTINCT + - 24 ) DIV - + MAX( DISTINCT 14 ) * - COUNT( * )
----
22

skipif mysql # not compatible
query I rowsort label-879
SELECT ALL + + 21 + - MAX ( DISTINCT + - 24 ) / - + MAX ( DISTINCT 14 ) * - COUNT ( * )
----
22

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

onlyif mysql # aggregate syntax: 
query II rowsort label-881
SELECT ALL SUM( + + ( - 2 ) ) + + + 0 AS col1, 84
----
-2
84

skipif mysql # not compatible
query II rowsort label-881
SELECT ALL SUM ( + + ( - 2 ) ) + + + 0 AS col1, 84
----
-2
84

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

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

query I rowsort
SELECT 89 * - 8 + + + 53 AS col1
----
-659

query I rowsort
SELECT + - 4 * - 8 + - + 9 - + 92 * + 60 + + 0 * - + 61 + + 44 AS col0
----
-5453

onlyif mysql # aggregate syntax: 
query I rowsort label-885
SELECT ALL - ( + - COUNT( ALL + 90 ) ) - 53
----
-52

skipif mysql # not compatible
query I rowsort label-885
SELECT ALL - ( + - COUNT ( ALL + 90 ) ) - 53
----
-52

query I rowsort
SELECT DISTINCT 74 * + 85 + + 90 AS col0
----
6380

query I rowsort
SELECT ALL 92 * 56 col0
----
5152

query I rowsort
SELECT - 19 * + 42 AS col1
----
-798

query I rowsort
SELECT 9 * + 0 AS col2
----
0

query I rowsort
SELECT ALL 59 * - 30 * + 70
----
-123900

query I rowsort
SELECT 97 + 97
----
194

query I rowsort
SELECT 61 + - 3
----
58

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

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

query I rowsort
SELECT 68 * 45 AS col0
----
3060

onlyif mysql # DIV for integer division: 
query I rowsort label-895
SELECT DISTINCT + 33 DIV 8
----
4

skipif mysql # not compatible
query I rowsort label-895
SELECT DISTINCT + 33 / 8
----
4

query I rowsort
SELECT ALL - 15 * + 94
----
-1410

query I rowsort
SELECT ALL 10 + + - 51 AS col2
----
-41

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-899
SELECT + 68 + + - ( - 62 ) + - + COUNT( * ) * - CASE + 61 WHEN + 85 THEN - 35 ELSE - 40 END DIV - + 76 AS col1
----
130

skipif mysql # not compatible
query I rowsort label-899
SELECT + 68 + + - ( - 62 ) + - + COUNT ( * ) * - CASE + 61 WHEN + 85 THEN - 35 ELSE - 40 END / - + 76 AS col1
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-900
SELECT - 74 - MIN( 13 )
----
-87

skipif mysql # not compatible
query I rowsort label-900
SELECT - 74 - MIN ( 13 )
----
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-901
SELECT + COUNT( * ) * ( + COUNT( * ) ), + 82 DIV + 5 + 60 col0
----
1
76

skipif mysql # not compatible
query II rowsort label-901
SELECT + COUNT ( * ) * ( + COUNT ( * ) ), + 82 / + 5 + 60 col0
----
1
76

query I rowsort
SELECT COALESCE ( - 84, - - 31 * 20 * 98 * 38 + 43 )
----
-84

query I rowsort
SELECT ALL 3 * + 0 * - 2
----
0

query I rowsort
SELECT ALL 18 * - 2 + 94
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-905
SELECT ALL + ( - ( 20 ) ) * + + 44 + + 0 + 26 + 80 * - + COUNT( ALL - 51 ) * + + 82
----
-7414

skipif mysql # not compatible
query I rowsort label-905
SELECT ALL + ( - ( 20 ) ) * + + 44 + + 0 + 26 + 80 * - + COUNT ( ALL - 51 ) * + + 82
----
-7414

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-908
SELECT ALL + + COALESCE ( ( - 84 ), - - 38, - 79 * - 90 * COUNT( + 19 ) + 47 + + COUNT( * ) ) * - 36 - - + CAST( - ( 80 ) AS SIGNED ) DIV 39 AS col1
----
3022

skipif mysql # not compatible
query I rowsort label-908
SELECT ALL + + COALESCE ( ( - 84 ), - - 38, - 79 * - 90 * COUNT ( + 19 ) + 47 + + COUNT ( * ) ) * - 36 - - + CAST ( - ( 80 ) AS INTEGER ) / 39 AS col1
----
3022

onlyif mysql # aggregate syntax: 
query I rowsort label-909
SELECT - - SUM( - NULLIF ( + + 70, + 24 + - 92 / + 78 ) ) * + 98
----
-6860

skipif mysql # not compatible
query I rowsort label-909
SELECT - - SUM ( - NULLIF ( + + 70, + 24 + - 92 / + 78 ) ) * + 98
----
-6860

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-910
SELECT ALL - COUNT( * ) * - - 2 - + SUM( 76 ) - COUNT( * ) + 87 * - CAST( + + 75 AS SIGNED ) + + 56
----
-6548

skipif mysql # not compatible
query I rowsort label-910
SELECT ALL - COUNT ( * ) * - - 2 - + SUM ( 76 ) - COUNT ( * ) + 87 * - CAST ( + + 75 AS INTEGER ) + + 56
----
-6548

query I rowsort
SELECT + + 63 + + + 81
----
144

query II rowsort
SELECT DISTINCT - ( + 72 ) * + + 93, + 71 AS col0
----
-6696
71

query I rowsort
SELECT DISTINCT - 39 * + 31 AS col0
----
-1209

onlyif mysql # aggregate syntax: 
query I rowsort label-914
SELECT - 17 * - MIN( DISTINCT - - 62 ) - 37 - + 81 * 31 + + 22 + + 22 + - 40 + - 13 * + ( - 6 )
----
-1412

skipif mysql # not compatible
query I rowsort label-914
SELECT - 17 * - MIN ( DISTINCT - - 62 ) - 37 - + 81 * 31 + + 22 + + 22 + - 40 + - 13 * + ( - 6 )
----
-1412

query I rowsort
SELECT ALL - ( - 67 ) AS col0
----
67

query I rowsort
SELECT - + 0 * + - 51
----
0

query I rowsort
SELECT - 17 - + 78 AS col0
----
-95

query I rowsort
SELECT - - 26 * - 14
----
-364

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

skipif mysql # not compatible
query I rowsort label-919
SELECT MAX ( ALL - 56 )
----
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-920
SELECT - 35 DIV + 49 AS col0, 56 + - 72 * + + ( + COUNT( - 63 ) ) * + 7 - - 98
----
0
-350

skipif mysql # not compatible
query II rowsort label-920
SELECT - 35 / + 49 AS col0, 56 + - 72 * + + ( + COUNT ( - 63 ) ) * + 7 - - 98
----
0
-350

query I rowsort
SELECT + 41 + - 33 AS col0
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-922
SELECT - MIN( - + ( - CAST( NULL AS SIGNED ) ) )
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-923
SELECT ALL 23 + + + 12 + + + CASE - + MIN( ALL - 7 ) WHEN 6 THEN - + COALESCE ( + 12, 74 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-923
SELECT ALL 23 + + + 12 + + + CASE - + MIN ( ALL - 7 ) WHEN 6 THEN - + COALESCE ( + 12, 74 ) END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-924
SELECT + NULLIF ( + 63, - 74 ) + + - 82 DIV + COALESCE ( + 32, - ( + 91 ) ) - + 13 AS col2
----
48

skipif mysql # not compatible
query I rowsort label-924
SELECT + NULLIF ( + 63, - 74 ) + + - 82 / + COALESCE ( + 32, - ( + 91 ) ) - + 13 AS col2
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-925
SELECT - COALESCE ( + 20, + SUM( - 35 ) * + 78, 30 DIV + - 51 * + 69 * - CASE + 83 WHEN CAST( + - 29 AS SIGNED ) THEN 64 * 35 END + - MAX( ALL + 5 ) DIV - - 87 - - NULLIF ( - - 46, + 4 ) + 67 + - + 39 + + - 34 * - + 25 + + - 79 )
----
-20

skipif mysql # not compatible
query I rowsort label-925
SELECT - COALESCE ( + 20, + SUM ( - 35 ) * + 78, 30 / + - 51 * + 69 * - CASE + 83 WHEN CAST ( + - 29 AS INTEGER ) THEN 64 * 35 END + - MAX ( ALL + 5 ) / - - 87 - - NULLIF ( - - 46, + 4 ) + 67 + - + 39 + + - 34 * - + 25 + + - 79 )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-926
SELECT DISTINCT 16 + + MIN( 16 ) * + + 23 * - 59 AS col0
----
-21696

skipif mysql # not compatible
query I rowsort label-926
SELECT DISTINCT 16 + + MIN ( 16 ) * + + 23 * - 59 AS col0
----
-21696

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

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

query I rowsort
SELECT ALL 87 + + - 89
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-929
SELECT - MIN( DISTINCT - 75 )
----
75

skipif mysql # not compatible
query I rowsort label-929
SELECT - MIN ( DISTINCT - 75 )
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-930
SELECT - ( ( - ( 22 ) ) ) AS col0, + MIN( - - 19 )
----
22
19

skipif mysql # not compatible
query II rowsort label-930
SELECT - ( ( - ( 22 ) ) ) AS col0, + MIN ( - - 19 )
----
22
19

query II rowsort
SELECT + 51 + + ( - + 43 ) * - ( - ( - 10 ) ) + - 39 AS col1, 79
----
442
79

query II rowsort
SELECT 72 AS col0, + 23 + + 87
----
72
110

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-934
SELECT DISTINCT MIN( ALL + 68 ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-934
SELECT DISTINCT MIN ( ALL + 68 ) AS col2
----
68

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-935
SELECT ALL - 85 DIV COALESCE ( + - 75, + ( - CAST( NULL AS SIGNED ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-935
SELECT ALL - 85 / COALESCE ( + - 75, + ( - CAST ( NULL AS INTEGER ) ) )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-936
SELECT + 15 DIV - 16 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-936
SELECT + 15 / - 16 AS col1
----
0

query I rowsort
SELECT ALL 21 + + 66 + + 91
----
178

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

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

query I rowsort
SELECT - 45 * 10 - + 93 AS col1
----
-543

query I rowsort
SELECT - + 17 * 36
----
-612

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-941
SELECT + + 3 DIV + 26 * + - 90 * + COUNT( * ) + - 28 * - NULLIF ( + 58, - + COALESCE ( - 53, 7, 96 ) DIV - 37 ) AS col1
----
1624

skipif mysql # not compatible
query I rowsort label-941
SELECT + + 3 / + 26 * + - 90 * + COUNT ( * ) + - 28 * - NULLIF ( + 58, - + COALESCE ( - 53, 7, 96 ) / - 37 ) AS col1
----
1624

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-943
SELECT + + 73 + - + 48 DIV COUNT( * ) * 20 + - NULLIF ( 21, + MIN( + 63 ) + COUNT( * ) )
----
-908

skipif mysql # not compatible
query I rowsort label-943
SELECT + + 73 + - + 48 / COUNT ( * ) * 20 + - NULLIF ( 21, + MIN ( + 63 ) + COUNT ( * ) )
----
-908

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-944
SELECT + CAST( - 34 AS SIGNED ) AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-944
SELECT + CAST ( - 34 AS INTEGER ) AS col1
----
-34

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-946
SELECT - 64 * - NULLIF ( - CAST( ( + CAST( NULL AS SIGNED ) ) AS SIGNED ), - 42 ) + - 61 * 68 * + 41 + - 76
----
NULL

skipif mysql # not compatible
query I rowsort label-946
SELECT - 64 * - NULLIF ( - CAST ( ( + CAST ( NULL AS INTEGER ) ) AS INTEGER ), - 42 ) + - 61 * 68 * + 41 + - 76
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-947
SELECT - COUNT( * ) - + 24 * - 71 AS col0
----
1703

skipif mysql # not compatible
query I rowsort label-947
SELECT - COUNT ( * ) - + 24 * - 71 AS col0
----
1703

query I rowsort
SELECT ALL + + COALESCE ( - - 23, + - ( - 63 ) ) col2
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-949
SELECT DISTINCT + CASE + + CAST( NULL AS SIGNED ) WHEN 84 THEN - 64 / + ( - 64 ) * + + 94 / + + 45 WHEN - NULLIF ( + 9, + 52 ) * + + 26 + + ( 82 ) + 70 + + + 87 * + 20 + - 75 THEN ( + 72 ) WHEN - SUM( ALL + 28 ) THEN NULL END * + - CAST( - 56 AS SIGNED ) + + 17 * 79 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-949
SELECT DISTINCT + CASE + + CAST ( NULL AS INTEGER ) WHEN 84 THEN - 64 / + ( - 64 ) * + + 94 / + + 45 WHEN - NULLIF ( + 9, + 52 ) * + + 26 + + ( 82 ) + 70 + + + 87 * + 20 + - 75 THEN ( + 72 ) WHEN - SUM ( ALL + 28 ) THEN NULL END * + - CAST ( - 56 AS INTEGER ) + + 17 * 79 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 96 * + 48
----
4608

onlyif mysql # aggregate syntax: 
query I rowsort label-951
SELECT - + 15 * - COUNT( * ) + + COUNT( * ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-951
SELECT - + 15 * - COUNT ( * ) + + COUNT ( * ) AS col0
----
16

query II rowsort
SELECT ALL + 60, + 30 AS col2
----
60
30

onlyif mysql # aggregate syntax: 
query I rowsort label-953
SELECT + - 46 + - 51 + - CASE + 47 WHEN AVG ( - 25 ) THEN - - 44 WHEN - - COALESCE ( + 8, 4, + 8 ) * + + 62 * + 20 * + 71 * + 4 * + + 91 THEN - 42 * - COUNT( * ) * - + 14 END * + 28
----
NULL

skipif mysql # not compatible
query I rowsort label-953
SELECT + - 46 + - 51 + - CASE + 47 WHEN AVG ( - 25 ) THEN - - 44 WHEN - - COALESCE ( + 8, 4, + 8 ) * + + 62 * + 20 * + 71 * + 4 * + + 91 THEN - 42 * - COUNT ( * ) * - + 14 END * + 28
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-954
SELECT MAX( - - 95 )
----
95

skipif mysql # not compatible
query I rowsort label-954
SELECT MAX ( - - 95 )
----
95

onlyif mysql # aggregate syntax: 
query II rowsort label-955
SELECT - 90 * + + 94 + + 41 * MIN( DISTINCT - + 62 ) * - 46, + 8 AS col0
----
108472
8

skipif mysql # not compatible
query II rowsort label-955
SELECT - 90 * + + 94 + + 41 * MIN ( DISTINCT - + 62 ) * - 46, + 8 AS col0
----
108472
8

query I rowsort
SELECT - 10 * + - 6 AS col1
----
60

query I rowsort
SELECT - 80 * - 53 * 11 AS col1
----
46640

onlyif mysql # aggregate syntax: 
query I rowsort label-958
SELECT ALL + - COUNT( DISTINCT - COALESCE ( - 41, - 89 * + + ( 73 ), + - 11 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-958
SELECT ALL + - COUNT ( DISTINCT - COALESCE ( - 41, - 89 * + + ( 73 ), + - 11 ) ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-959
SELECT DISTINCT - + 23 * COALESCE ( COUNT( * ), - CAST( NULL AS SIGNED ) ) + + + COALESCE ( + 89, - CAST( NULL AS SIGNED ) * 51 * + - 17 + 45 ) + + - 77
----
-11

skipif mysql # not compatible
query I rowsort label-959
SELECT DISTINCT - + 23 * COALESCE ( COUNT ( * ), - CAST ( NULL AS INTEGER ) ) + + + COALESCE ( + 89, - CAST ( NULL AS INTEGER ) * 51 * + - 17 + 45 ) + + - 77
----
-11

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

query I rowsort
SELECT 48 * ( 81 ) AS col0
----
3888

onlyif mysql # aggregate syntax: 
query I rowsort label-962
SELECT ALL - 16 + + 39 + - + MIN( DISTINCT 8 ) * + 89 - 56 - - 94 AS col2
----
-651

skipif mysql # not compatible
query I rowsort label-962
SELECT ALL - 16 + + 39 + - + MIN ( DISTINCT 8 ) * + 89 - 56 - - 94 AS col2
----
-651

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-963
SELECT 38 + - + 86 DIV + ( + - COUNT( * ) )
----
124

skipif mysql # not compatible
query I rowsort label-963
SELECT 38 + - + 86 / + ( + - COUNT ( * ) )
----
124

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

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

query II rowsort
SELECT 51 * 43, 95 AS col0
----
2193
95

query I rowsort
SELECT 57 + 0 + - 36
----
21

query I rowsort
SELECT 96 + + - 52
----
44

query I rowsort
SELECT DISTINCT + 98 + 77 * - 38 - 98 * 33 + + 17
----
-6045

query I rowsort
SELECT ALL + 80 - + 56
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-970
SELECT 92 + + COUNT( * ) + - CASE - - 42 WHEN - 61 THEN + - 42 ELSE 29 END * + + 89 * - 25
----
64618

skipif mysql # not compatible
query I rowsort label-970
SELECT 92 + + COUNT ( * ) + - CASE - - 42 WHEN - 61 THEN + - 42 ELSE 29 END * + + 89 * - 25
----
64618

onlyif mysql # aggregate syntax: 
query I rowsort label-971
SELECT DISTINCT 15 * COUNT( * ) col0
----
15

skipif mysql # not compatible
query I rowsort label-971
SELECT DISTINCT 15 * COUNT ( * ) col0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-972
SELECT 11 * SUM( + 72 ) AS col0
----
792

skipif mysql # not compatible
query I rowsort label-972
SELECT 11 * SUM ( + 72 ) AS col0
----
792

query I rowsort
SELECT - 56 + 82
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-974
SELECT 67 + - 62 + - + COUNT( * ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-974
SELECT 67 + - 62 + - + COUNT ( * ) AS col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-975
SELECT - 39 + - SUM( 9 ) col0
----
-48

skipif mysql # not compatible
query I rowsort label-975
SELECT - 39 + - SUM ( 9 ) col0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-976
SELECT ALL - COALESCE ( - 20, COUNT( * ) ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-976
SELECT ALL - COALESCE ( - 20, COUNT ( * ) ) AS col2
----
20

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-978
SELECT - 28 DIV 78 * + 37 * - 69 * + 87 * - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-978
SELECT - 28 / 78 * + 37 * - 69 * + 87 * - COUNT ( * )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-979
SELECT DISTINCT 98 DIV COALESCE ( - 21, + - 46 ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-979
SELECT DISTINCT 98 / COALESCE ( - 21, + - 46 ) AS col2
----
-4

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

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

query I rowsort
SELECT - 86 * + 17
----
-1462

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

skipif mysql # not compatible
query I rowsort label-982
SELECT - COUNT ( + 68 ) / + 52 * - 89 + - 50
----
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-983
SELECT - 69 + + 9 + - + 59, + 3 * - SUM( ( - 37 ) ) col0
----
-119
111

skipif mysql # not compatible
query II rowsort label-983
SELECT - 69 + + 9 + - + 59, + 3 * - SUM ( ( - 37 ) ) col0
----
-119
111

query I rowsort
SELECT DISTINCT + ( - 10 ) + - - 4
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-985
SELECT + COALESCE ( 18, - 65 * + - SUM( ALL - 12 ) + CASE ( 53 ) WHEN - 1 THEN NULL ELSE + + CASE - 71 WHEN - + CAST( NULL AS SIGNED ) THEN NULL ELSE 43 * + + 92 END DIV + - 95 END * - - SUM( - 73 ) ) AS col0, 2 + + ( + CASE - + COUNT( * ) WHEN - - 68 THEN + - CASE 11 WHEN 88 THEN - 87 WHEN + 61 + + 51 THEN NULL ELSE COUNT( * ) + 94 END + - 18 WHEN - 63 THEN - ( - 63 ) WHEN CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END )
----
18
NULL

skipif mysql # not compatible
query II rowsort label-985
SELECT + COALESCE ( 18, - 65 * + - SUM ( ALL - 12 ) + CASE ( 53 ) WHEN - 1 THEN NULL ELSE + + CASE - 71 WHEN - + CAST ( NULL AS INTEGER ) THEN NULL ELSE 43 * + + 92 END / + - 95 END * - - SUM ( - 73 ) ) AS col0, 2 + + ( + CASE - + COUNT ( * ) WHEN - - 68 THEN + - CASE 11 WHEN 88 THEN - 87 WHEN + 61 + + 51 THEN NULL ELSE COUNT ( * ) + 94 END + - 18 WHEN - 63 THEN - ( - 63 ) WHEN CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END )
----
18
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-986
SELECT ALL 94 * + + NULLIF ( - - 74, - 92 * - NULLIF ( + 5, + + 84 ) * + + 40 / 68 + CAST( + + 91 AS SIGNED ) - + ( - COALESCE ( - - 39, - - AVG ( ALL - 41 ) ) ) + - CAST( + 64 AS SIGNED ) * + 89 )
----
6956

skipif mysql # not compatible
query I rowsort label-986
SELECT ALL 94 * + + NULLIF ( - - 74, - 92 * - NULLIF ( + 5, + + 84 ) * + + 40 / 68 + CAST ( + + 91 AS INTEGER ) - + ( - COALESCE ( - - 39, - - AVG ( ALL - 41 ) ) ) + - CAST ( + 64 AS INTEGER ) * + 89 )
----
6956

query I rowsort
SELECT ALL - COALESCE ( - - 35, + 7 )
----
-35

query I rowsort
SELECT ALL - 29 + + 8
----
-21

query II rowsort
SELECT - 97 AS col0, - 22 AS col2
----
-97
-22

query II rowsort
SELECT 93 + + 88 * + 82 AS col1, + 94
----
7309
94

query I rowsort
SELECT 96 * - 45
----
-4320

query I rowsort
SELECT 2 + + - 56 AS col1
----
-54

query I rowsort
SELECT ALL + 85 * + - 57
----
-4845

onlyif mysql # DIV for integer division: 
query I rowsort label-994
SELECT 73 DIV 38 col1
----
1

skipif mysql # not compatible
query I rowsort label-994
SELECT 73 / 38 col1
----
1

query I rowsort
SELECT DISTINCT + 12 - - 45
----
57

onlyif mysql # aggregate syntax: 
query II rowsort label-996
SELECT ALL + 85 * + SUM( ALL - + 39 ), 58 AS col2
----
-3315
58

skipif mysql # not compatible
query II rowsort label-996
SELECT ALL + 85 * + SUM ( ALL - + 39 ), 58 AS col2
----
-3315
58

query II rowsort
SELECT - 22 col0, 26 col0
----
-22
26

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1000
SELECT ALL COUNT( * ) AS col0, 25 + - 27 * - 16 AS col1
----
1
457

skipif mysql # not compatible
query II rowsort label-1000
SELECT ALL COUNT ( * ) AS col0, 25 + - 27 * - 16 AS col1
----
1
457

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1001
SELECT ALL + CASE - COUNT( * ) WHEN - - ( + + 94 ) * - 1 / 69 THEN - + 50 + + CAST( NULL AS DECIMAL ) + 73 / CASE + 51 WHEN - COALESCE ( + - 85, - 60 * NULLIF ( ( + 26 ), - + 46 ) * - COUNT( * ) + - AVG ( DISTINCT - - 95 ) / + 11 * COUNT( * ) ) * - 89 * + 10 + - + SUM( + 29 ) THEN NULL ELSE 25 END + + 31 * 23 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1001
SELECT ALL + CASE - COUNT ( * ) WHEN - - ( + + 94 ) * - 1 / 69 THEN - + 50 + + CAST ( NULL AS REAL ) + 73 / CASE + 51 WHEN - COALESCE ( + - 85, - 60 * NULLIF ( ( + 26 ), - + 46 ) * - COUNT ( * ) + - AVG ( DISTINCT - - 95 ) / + 11 * COUNT ( * ) ) * - 89 * + 10 + - + SUM ( + 29 ) THEN NULL ELSE 25 END + + 31 * 23 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1002
SELECT ALL 29 * + - 43 * - - 57 AS col2, 44 * 72 * + 5 + + COUNT( * ) AS col0
----
-71079
15841

skipif mysql # not compatible
query II rowsort label-1002
SELECT ALL 29 * + - 43 * - - 57 AS col2, 44 * 72 * + 5 + + COUNT ( * ) AS col0
----
-71079
15841

query II rowsort
SELECT DISTINCT - - 69, 57 AS col1
----
69
57

query I rowsort
SELECT + 17 * 58
----
986

query I rowsort
SELECT ALL + - 35 * 99 + - + 83 * - + 46 AS col2
----
353

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

query I rowsort
SELECT ALL 96 * + 2 col2
----
192

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1008
SELECT + 11 / - NULLIF ( - COUNT( * ), 81 + + 10 ) + CAST( NULL AS SIGNED ) + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-1008
SELECT + 11 / - NULLIF ( - COUNT ( * ), 81 + + 10 ) + CAST ( NULL AS INTEGER ) + 89
----
NULL

query II rowsort
SELECT + + 17 AS col2, 15
----
17
15

query I rowsort
SELECT - 83 + - 66 AS col0
----
-149

onlyif mysql # aggregate syntax: 
query I rowsort label-1011
SELECT SUM( DISTINCT - 79 ) AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-1011
SELECT SUM ( DISTINCT - 79 ) AS col1
----
-79

query I rowsort
SELECT + - 63 - + - 39
----
-24

query II rowsort
SELECT ALL + 7 * + - 21 + + 68, - 53 AS col0
----
-79
-53

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1015
SELECT + SUM( NULLIF ( - + 48, - 29 ) ) + 58 * + 65 AS col0
----
3722

skipif mysql # not compatible
query I rowsort label-1015
SELECT + SUM ( NULLIF ( - + 48, - 29 ) ) + 58 * + 65 AS col0
----
3722

query I rowsort
SELECT ALL 64 * - 70 AS col1
----
-4480

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

skipif mysql # not compatible
query I rowsort label-1017
SELECT COUNT ( - 62 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1018
SELECT - COUNT( * ) - - 73 + - 41 AS col1
----
31

skipif mysql # not compatible
query I rowsort label-1018
SELECT - COUNT ( * ) - - 73 + - 41 AS col1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-1019
SELECT DISTINCT 99 * - + COUNT( * ) * + - 77
----
7623

skipif mysql # not compatible
query I rowsort label-1019
SELECT DISTINCT 99 * - + COUNT ( * ) * + - 77
----
7623

onlyif mysql # aggregate syntax: 
query I rowsort label-1020
SELECT DISTINCT 57 * 62 * COUNT( * )
----
3534

skipif mysql # not compatible
query I rowsort label-1020
SELECT DISTINCT 57 * 62 * COUNT ( * )
----
3534

query I rowsort
SELECT - 28 * + 59 * 73 AS col0
----
-120596

query I rowsort
SELECT ALL + NULLIF ( - + 55, + + 20 )
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-1023
SELECT ALL + SUM( DISTINCT - 94 ) - - + COUNT( * )
----
-93

skipif mysql # not compatible
query I rowsort label-1023
SELECT ALL + SUM ( DISTINCT - 94 ) - - + COUNT ( * )
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-1024
SELECT DISTINCT 39 * MAX( ALL + 34 ) AS col2
----
1326

skipif mysql # not compatible
query I rowsort label-1024
SELECT DISTINCT 39 * MAX ( ALL + 34 ) AS col2
----
1326

query I rowsort
SELECT ALL 56 - - 17
----
73

query I rowsort
SELECT - 68 * 17 AS col2
----
-1156

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1028
SELECT - 21 + + 54 * 93 * - 56 * CAST( - 64 AS SIGNED ) AS col0
----
17998827

skipif mysql # not compatible
query I rowsort label-1028
SELECT - 21 + + 54 * 93 * - 56 * CAST ( - 64 AS INTEGER ) AS col0
----
17998827

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

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

query I rowsort
SELECT + ( 42 ) + - NULLIF ( - 21, 28 ) + - + ( - 6 ) - + 96
----
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-1031
SELECT ALL + 54 * + 24, 61 + + 75 - COUNT( DISTINCT 60 ) * 71 - + 97 AS col0
----
1296
-32

skipif mysql # not compatible
query II rowsort label-1031
SELECT ALL + 54 * + 24, 61 + + 75 - COUNT ( DISTINCT 60 ) * 71 - + 97 AS col0
----
1296
-32

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1033
SELECT ALL - 5 DIV + - 73 - + 94 + 37 AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-1033
SELECT ALL - 5 / + - 73 - + 94 + 37 AS col1
----
-57

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1034
SELECT DISTINCT + - 34 * - 71 AS col2, - CAST( NULL AS DECIMAL )
----
2414
NULL

skipif mysql # not compatible
query II rowsort label-1034
SELECT DISTINCT + - 34 * - 71 AS col2, - CAST ( NULL AS REAL )
----
2414
NULL

query I rowsort
SELECT - + 34 + + 90 AS col0
----
56

query I rowsort
SELECT - - 28 + - 47 AS col0
----
-19

onlyif mysql # DIV for integer division: 
query II rowsort label-1037
SELECT - + 84 DIV - + NULLIF ( - 70, + 52 ) AS col0, 94
----
-1
94

skipif mysql # not compatible
query II rowsort label-1037
SELECT - + 84 / - + NULLIF ( - 70, + 52 ) AS col0, 94
----
-1
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1038
SELECT - + ( - + 93 ) DIV + COUNT( * ) + + 99 col2
----
192

skipif mysql # not compatible
query I rowsort label-1038
SELECT - + ( - + 93 ) / + COUNT ( * ) + + 99 col2
----
192

onlyif mysql # DIV for integer division: 
query I rowsort label-1039
SELECT ALL - 29 DIV 44 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1039
SELECT ALL - 29 / 44 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1040
SELECT DISTINCT - + MAX( - 50 ) / - 69 * - - 75 + - CASE - + SUM( ALL 71 ) WHEN + + 12 THEN + 75 + - - 55 WHEN + - CAST( + COALESCE ( - ( + NULLIF ( + + 26, + 80 ) ), + MAX( 75 ), - + 98, - 63 * - 81 + SUM( 47 ) ) AS SIGNED ) * MIN( DISTINCT + 87 ) * + - 28 + + - 16 THEN NULL END + 32 * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1040
SELECT DISTINCT - + MAX ( - 50 ) / - 69 * - - 75 + - CASE - + SUM ( ALL 71 ) WHEN + + 12 THEN + 75 + - - 55 WHEN + - CAST ( + COALESCE ( - ( + NULLIF ( + + 26, + 80 ) ), + MAX ( 75 ), - + 98, - 63 * - 81 + SUM ( 47 ) ) AS INTEGER ) * MIN ( DISTINCT + 87 ) * + - 28 + + - 16 THEN NULL END + 32 * - COUNT ( * )
----
NULL

query I rowsort
SELECT ALL 48 * 13
----
624

onlyif mysql # aggregate syntax: 
query I rowsort label-1042
SELECT + - COUNT( * ) * 40 + - + 51 + + 93 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-1042
SELECT + - COUNT ( * ) * 40 + - + 51 + + 93 AS col0
----
2

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1044
SELECT + COUNT( * ) + - 90 * - 94 AS col1
----
8461

skipif mysql # not compatible
query I rowsort label-1044
SELECT + COUNT ( * ) + - 90 * - 94 AS col1
----
8461

onlyif mysql # aggregate syntax: 
query I rowsort label-1045
SELECT ALL 86 * + COUNT( * ) * + 49 - + 13 * - 5
----
4279

skipif mysql # not compatible
query I rowsort label-1045
SELECT ALL 86 * + COUNT ( * ) * + 49 - + 13 * - 5
----
4279

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1046
SELECT + CAST( - 85 AS SIGNED ) * + 89
----
-7565

skipif mysql # not compatible
query I rowsort label-1046
SELECT + CAST ( - 85 AS INTEGER ) * + 89
----
-7565

onlyif mysql # aggregate syntax: 
query I rowsort label-1047
SELECT ALL + 94 * - CASE 8 WHEN + 37 * - SUM( 8 ) * + SUM( ALL - 64 ) THEN NULL WHEN - COALESCE ( + ( - 57 ), - 54 ) THEN - - 58 + - 86 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1047
SELECT ALL + 94 * - CASE 8 WHEN + 37 * - SUM ( 8 ) * + SUM ( ALL - 64 ) THEN NULL WHEN - COALESCE ( + ( - 57 ), - 54 ) THEN - - 58 + - 86 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1048
SELECT CASE MIN( DISTINCT - + 24 ) WHEN 46 / - NULLIF ( - COUNT( * ), + AVG ( DISTINCT + 74 ) * - 37 ) THEN + 63 * CASE - COUNT( * ) WHEN + COALESCE ( + + 71, - NULLIF ( + - COUNT( * ), + 40 ) + 45 * - 64 + + 47 - + 8, + 9 ) - 37 THEN + ( + 61 ) / MIN( - NULLIF ( + 62, 67 ) ) END * + + ( - 20 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1048
SELECT CASE MIN ( DISTINCT - + 24 ) WHEN 46 / - NULLIF ( - COUNT ( * ), + AVG ( DISTINCT + 74 ) * - 37 ) THEN + 63 * CASE - COUNT ( * ) WHEN + COALESCE ( + + 71, - NULLIF ( + - COUNT ( * ), + 40 ) + 45 * - 64 + + 47 - + 8, + 9 ) - 37 THEN + ( + 61 ) / MIN ( - NULLIF ( + 62, 67 ) ) END * + + ( - 20 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1049
SELECT + CASE - 98 WHEN - NULLIF ( + 0, - + CASE - 76 WHEN 69 THEN - + COUNT( * ) - - COUNT( * ) WHEN - - 72 + - - 46 - - 84 THEN 34 ELSE NULL END + ( 96 ) ) * + - ( + + 75 ) + 97 THEN NULL ELSE - + 39 END + 32 col0, + COUNT( * ) * - + 17 * - 84
----
-7
1428

skipif mysql # not compatible
query II rowsort label-1049
SELECT + CASE - 98 WHEN - NULLIF ( + 0, - + CASE - 76 WHEN 69 THEN - + COUNT ( * ) - - COUNT ( * ) WHEN - - 72 + - - 46 - - 84 THEN 34 ELSE NULL END + ( 96 ) ) * + - ( + + 75 ) + 97 THEN NULL ELSE - + 39 END + 32 col0, + COUNT ( * ) * - + 17 * - 84
----
-7
1428

query I rowsort
SELECT + 68 * + 37
----
2516

query I rowsort
SELECT + COALESCE ( - 69, 60 - 58 ) - ( + 9 )
----
-78

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

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

query I rowsort
SELECT - CASE + - 56 WHEN - 89 THEN + - 0 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1054
SELECT + 32 DIV + 79 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1054
SELECT + 32 / + 79 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1055
SELECT 58 * COUNT( * ) / + 78 + 89 * CASE - COUNT( ALL - + 81 ) WHEN 29 THEN + 25 END - 92 / - 84
----
NULL

skipif mysql # not compatible
query I rowsort label-1055
SELECT 58 * COUNT ( * ) / + 78 + 89 * CASE - COUNT ( ALL - + 81 ) WHEN 29 THEN + 25 END - 92 / - 84
----
NULL

query I rowsort
SELECT + 9 * 21 AS col2
----
189

onlyif mysql # aggregate syntax: 
query I rowsort label-1057
SELECT DISTINCT COUNT( * ) + - 20 + - 67 * - 13
----
852

skipif mysql # not compatible
query I rowsort label-1057
SELECT DISTINCT COUNT ( * ) + - 20 + - 67 * - 13
----
852

query I rowsort
SELECT ALL - 18 + + 55
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-1059
SELECT + MIN( 98 ) * + CASE - 8 WHEN 35 * + MAX( + 70 ) + + - COUNT( * ) - 65 THEN + 47 WHEN - 91 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1059
SELECT + MIN ( 98 ) * + CASE - 8 WHEN 35 * + MAX ( + 70 ) + + - COUNT ( * ) - 65 THEN + 47 WHEN - 91 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1060
SELECT DISTINCT 46 + - - CAST( + + 30 AS SIGNED ) * 29 * 64 DIV - + 13 + + 73 + + + 51 - 97
----
-4210

skipif mysql # not compatible
query I rowsort label-1060
SELECT DISTINCT 46 + - - CAST ( + + 30 AS INTEGER ) * 29 * 64 / - + 13 + + 73 + + + 51 - 97
----
-4210

query I rowsort
SELECT DISTINCT NULLIF ( - + 68, 17 )
----
-68

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1064
SELECT ALL + + 27 + + + 34 + + + COALESCE ( 45, + + 67 + - - 36, - + CASE + ( + CAST( 79 AS SIGNED ) ) WHEN + 11 THEN NULL WHEN + 58 THEN + 21 * 99 ELSE NULL END ) + ( + 62 ) DIV - 33 col1
----
105

skipif mysql # not compatible
query I rowsort label-1064
SELECT ALL + + 27 + + + 34 + + + COALESCE ( 45, + + 67 + - - 36, - + CASE + ( + CAST ( 79 AS INTEGER ) ) WHEN + 11 THEN NULL WHEN + 58 THEN + 21 * 99 ELSE NULL END ) + ( + 62 ) / - 33 col1
----
105

query II rowsort
SELECT 1 - 92 * 38 AS col1, + 38 AS col2
----
-3495
38

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1067
SELECT ALL 7 AS col1, 61 - - CASE 2 WHEN + 33 - 65 THEN + COUNT( * ) WHEN + - 43 - - + 70 - 15 * + 96 * 65 * - + 80 / - 25 * - - COUNT( * ) THEN NULL ELSE NULL END + + 64 + + 71 * + + ( - COUNT( * ) ) / - CASE - 36 WHEN 30 THEN NULL ELSE 57 + - ( - 61 ) * - + 51 END * + 66 * - 71 - + NULLIF ( + NULLIF ( + 66, - 1 ), + 86 * 82 ) AS col1
----
7
NULL

skipif mysql # not compatible
query II rowsort label-1067
SELECT ALL 7 AS col1, 61 - - CASE 2 WHEN + 33 - 65 THEN + COUNT ( * ) WHEN + - 43 - - + 70 - 15 * + 96 * 65 * - + 80 / - 25 * - - COUNT ( * ) THEN NULL ELSE NULL END + + 64 + + 71 * + + ( - COUNT ( * ) ) / - CASE - 36 WHEN 30 THEN NULL ELSE 57 + - ( - 61 ) * - + 51 END * + 66 * - 71 - + NULLIF ( + NULLIF ( + 66, - 1 ), + 86 * 82 ) AS col1
----
7
NULL

query I rowsort
SELECT - 75 * + 30
----
-2250

query I rowsort
SELECT DISTINCT - - 14 * - - 98 + - - 93
----
1465

onlyif mysql # DIV for integer division: 
query I rowsort label-1070
SELECT DISTINCT + 0 DIV - + 15
----
0

skipif mysql # not compatible
query I rowsort label-1070
SELECT DISTINCT + 0 / - + 15
----
0

query I rowsort
SELECT ALL + 41 + - 78 AS col1
----
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-1072
SELECT ALL + 95, + MIN( DISTINCT + 24 ) AS col2
----
95
24

skipif mysql # not compatible
query II rowsort label-1072
SELECT ALL + 95, + MIN ( DISTINCT + 24 ) AS col2
----
95
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1073
SELECT DISTINCT - - COUNT( * ) * ( + 64 ), 70 + - + 50 DIV ( - + 55 ) AS col2
----
64
70

skipif mysql # not compatible
query II rowsort label-1073
SELECT DISTINCT - - COUNT ( * ) * ( + 64 ), 70 + - + 50 / ( - + 55 ) AS col2
----
64
70

onlyif mysql # aggregate syntax: 
query I rowsort label-1074
SELECT + NULLIF ( - + 81, 32 - + MAX( - 75 ) )
----
-81

skipif mysql # not compatible
query I rowsort label-1074
SELECT + NULLIF ( - + 81, 32 - + MAX ( - 75 ) )
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1075
SELECT - 64 DIV ( + 84 ) + + + 51 - - 98 + + COUNT( * ) AS col2, + 72 + CAST( - 21 AS SIGNED )
----
150
51

skipif mysql # not compatible
query II rowsort label-1075
SELECT - 64 / ( + 84 ) + + + 51 - - 98 + + COUNT ( * ) AS col2, + 72 + CAST ( - 21 AS INTEGER )
----
150
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1076
SELECT 61 + - + 24 + COUNT( * ) DIV - COUNT( * ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-1076
SELECT 61 + - + 24 + COUNT ( * ) / - COUNT ( * ) AS col2
----
36

query I rowsort
SELECT ALL + 98 - - 32 AS col0
----
130

query II rowsort
SELECT 67 * - 68 * + ( - 8 ), 36 AS col2
----
36448
36

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

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

query I rowsort
SELECT 95 + - 16 * + - 54 AS col0
----
959

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1081
SELECT COUNT( * ) * + SUM( 70 ) + + CAST( COALESCE ( 37, COUNT( * ) ) AS SIGNED ) AS col1
----
107

skipif mysql # not compatible
query I rowsort label-1081
SELECT COUNT ( * ) * + SUM ( 70 ) + + CAST ( COALESCE ( 37, COUNT ( * ) ) AS INTEGER ) AS col1
----
107

query I rowsort
SELECT ALL - 63 * + COALESCE ( - 8, 87 + 19 )
----
504

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1083
SELECT + 81 * + 45 * - MIN( DISTINCT CAST( 83 AS SIGNED ) ) + - COUNT( * ) * - + 38 + - + 89 + - - COALESCE ( + 35, 33 ) + - 91 AS col1, 36 + - 9 AS col0
----
-302642
27

skipif mysql # not compatible
query II rowsort label-1083
SELECT + 81 * + 45 * - MIN ( DISTINCT CAST ( 83 AS INTEGER ) ) + - COUNT ( * ) * - + 38 + - + 89 + - - COALESCE ( + 35, 33 ) + - 91 AS col1, 36 + - 9 AS col0
----
-302642
27

onlyif mysql # aggregate syntax: 
query I rowsort label-1084
SELECT COUNT( * ) - - 48 + + 36 AS col0
----
85

skipif mysql # not compatible
query I rowsort label-1084
SELECT COUNT ( * ) - - 48 + + 36 AS col0
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1085
SELECT DISTINCT COUNT( * ) + - SUM( ALL CAST( - - 4 AS SIGNED ) ) * + ( - - 61 ) AS col0
----
-243

skipif mysql # not compatible
query I rowsort label-1085
SELECT DISTINCT COUNT ( * ) + - SUM ( ALL CAST ( - - 4 AS INTEGER ) ) * + ( - - 61 ) AS col0
----
-243

onlyif mysql # aggregate syntax: 
query I rowsort label-1086
SELECT DISTINCT - COALESCE ( - 10, - 14, COUNT( + 42 ) ) col1
----
10

skipif mysql # not compatible
query I rowsort label-1086
SELECT DISTINCT - COALESCE ( - 10, - 14, COUNT ( + 42 ) ) col1
----
10

query II rowsort
SELECT DISTINCT - 69 col0, 76 + 52
----
-69
128

onlyif mysql # aggregate syntax: 
query II rowsort label-1088
SELECT ALL ( + - COUNT( * ) ) + - 19 * 58, + 18 * + 71 AS col1
----
-1103
1278

skipif mysql # not compatible
query II rowsort label-1088
SELECT ALL ( + - COUNT ( * ) ) + - 19 * 58, + 18 * + 71 AS col1
----
-1103
1278

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1089
SELECT 56 AS col0, 57 + - COUNT( * ) * ( 68 ) + + + CAST( NULL AS SIGNED ) AS col0
----
56
NULL

skipif mysql # not compatible
query II rowsort label-1089
SELECT 56 AS col0, 57 + - COUNT ( * ) * ( 68 ) + + + CAST ( NULL AS INTEGER ) AS col0
----
56
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1090
SELECT ALL + 91 + - 56 + - - 28 * + 7 / + - CASE + - COUNT( * ) WHEN - + 81 THEN + CAST( + 46 AS SIGNED ) WHEN + + 88 THEN NULL WHEN + 67 THEN NULL WHEN + 56 THEN + 61 + - 1 / 28 * ( - 6 ) * - - 68 END + + + COUNT( * ) AS col0, 82
----
NULL
82

skipif mysql # not compatible
query II rowsort label-1090
SELECT ALL + 91 + - 56 + - - 28 * + 7 / + - CASE + - COUNT ( * ) WHEN - + 81 THEN + CAST ( + 46 AS INTEGER ) WHEN + + 88 THEN NULL WHEN + 67 THEN NULL WHEN + 56 THEN + 61 + - 1 / 28 * ( - 6 ) * - - 68 END + + + COUNT ( * ) AS col0, 82
----
NULL
82

onlyif mysql # DIV for integer division: 
query I rowsort label-1091
SELECT 27 DIV + + 72 col2
----
0

skipif mysql # not compatible
query I rowsort label-1091
SELECT 27 / + + 72 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1092
SELECT ALL + 67 + - 20 + - + COUNT( * ) AS col0
----
46

skipif mysql # not compatible
query I rowsort label-1092
SELECT ALL + 67 + - 20 + - + COUNT ( * ) AS col0
----
46

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

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

query I rowsort
SELECT - 79 - + 41 * + + 17 * + 17 * + - 97 + 54
----
1149328

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1095
SELECT ALL - 23 / 4 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1095
SELECT ALL - 23 / 4 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - NULLIF ( - - 82, 97 + - + 12 ) + 15 + + - 80 AS col1
----
-147

onlyif mysql # aggregate syntax: 
query I rowsort label-1097
SELECT ALL ( - NULLIF ( + 41, + NULLIF ( + 49, COUNT( * ) * 10 ) ) ) + + COUNT( * ) AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-1097
SELECT ALL ( - NULLIF ( + 41, + NULLIF ( + 49, COUNT ( * ) * 10 ) ) ) + + COUNT ( * ) AS col2
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1098
SELECT ALL 76 + + COUNT( * ) + + CASE + COUNT( * ) WHEN + + COUNT( * ) THEN - - ( 67 ) + + - COUNT( * ) * - 91 DIV COUNT( * ) WHEN + + 84 DIV 49 + - 93 + - + CASE WHEN NOT + 21 > ( 77 + - CAST( NULL AS SIGNED ) + - ( + NULLIF ( - CASE 35 WHEN - 92 + CAST( - - 97 AS SIGNED ) + ( + + 53 ) THEN + 25 * - 30 WHEN - 78 THEN - 10 ELSE + NULLIF ( 92, - ( + CASE - 52 WHEN - COUNT( * ) THEN NULL WHEN - 25 THEN 86 * COUNT( * ) + + 47 * 30 ELSE ( AVG ( 79 ) ) END ) ) + 35 END, - 96 ) ) + 70 ) THEN - CAST( 86 AS SIGNED ) WHEN 22 DIV 74 + COUNT( * ) IS NULL THEN NULL END THEN 18 + - CAST( + 38 AS SIGNED ) DIV - 84 END AS col1
----
235

skipif mysql # not compatible
query I rowsort label-1098
SELECT ALL 76 + + COUNT ( * ) + + CASE + COUNT ( * ) WHEN + + COUNT ( * ) THEN - - ( 67 ) + + - COUNT ( * ) * - 91 / COUNT ( * ) WHEN + + 84 / 49 + - 93 + - + CASE WHEN NOT + 21 > ( 77 + - CAST ( NULL AS INTEGER ) + - ( + NULLIF ( - CASE 35 WHEN - 92 + CAST ( - - 97 AS INTEGER ) + ( + + 53 ) THEN + 25 * - 30 WHEN - 78 THEN - 10 ELSE + NULLIF ( 92, - ( + CASE - 52 WHEN - COUNT ( * ) THEN NULL WHEN - 25 THEN 86 * COUNT ( * ) + + 47 * 30 ELSE ( AVG ( 79 ) ) END ) ) + 35 END, - 96 ) ) + 70 ) THEN - CAST ( 86 AS INTEGER ) WHEN 22 / 74 + COUNT ( * ) IS NULL THEN NULL END THEN 18 + - CAST ( + 38 AS INTEGER ) / - 84 END AS col1
----
235

query I rowsort
SELECT + 45 + ( 79 ) col2
----
124

query I rowsort
SELECT 85 * + - ( - - 36 )
----
-3060

onlyif mysql # aggregate syntax: 
query I rowsort label-1101
SELECT DISTINCT COUNT( * ) + - + SUM( DISTINCT - ( 17 ) ) AS col0
----
18

skipif mysql # not compatible
query I rowsort label-1101
SELECT DISTINCT COUNT ( * ) + - + SUM ( DISTINCT - ( 17 ) ) AS col0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-1102
SELECT NULLIF ( - - MAX( ALL + + 83 ), + + 25 * + - 81 ) AS col0
----
83

skipif mysql # not compatible
query I rowsort label-1102
SELECT NULLIF ( - - MAX ( ALL + + 83 ), + + 25 * + - 81 ) AS col0
----
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1103
SELECT ALL - 71 - + - 41 * 58 * - 8, + MIN( + 23 ) * - - 59 * + CASE - COUNT( DISTINCT - + 45 ) WHEN - COUNT( * ) THEN + 11 * + 82 DIV 79 END + + 0 AS col0
----
-19095
14927

skipif mysql # not compatible
query II rowsort label-1103
SELECT ALL - 71 - + - 41 * 58 * - 8, + MIN ( + 23 ) * - - 59 * + CASE - COUNT ( DISTINCT - + 45 ) WHEN - COUNT ( * ) THEN + 11 * + 82 / 79 END + + 0 AS col0
----
-19095
14927

onlyif mysql # aggregate syntax: 
query II rowsort label-1104
SELECT ( - ( - 58 ) ) + - SUM( DISTINCT - + NULLIF ( + 42, - - 23 / - 89 / - 65 + + + 51 ) ) + 10 AS col2, ( + 88 )
----
110
88

skipif mysql # not compatible
query II rowsort label-1104
SELECT ( - ( - 58 ) ) + - SUM ( DISTINCT - + NULLIF ( + 42, - - 23 / - 89 / - 65 + + + 51 ) ) + 10 AS col2, ( + 88 )
----
110
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1105
SELECT ALL + 90 - COUNT( * ) DIV - 62 AS col1
----
90

skipif mysql # not compatible
query I rowsort label-1105
SELECT ALL + 90 - COUNT ( * ) / - 62 AS col1
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-1106
SELECT 84 + + CASE - NULLIF ( 13, + 83 ) WHEN COUNT( * ) THEN 18 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1106
SELECT 84 + + CASE - NULLIF ( 13, + 83 ) WHEN COUNT ( * ) THEN 18 END
----
NULL

query II rowsort
SELECT - ( + + 75 ) AS col2, 1 * - 47 AS col0
----
-75
-47

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

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

query II rowsort
SELECT - 9 AS col0, 83 AS col1
----
-9
83

query I rowsort
SELECT - NULLIF ( + + 65, + 50 )
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1111
SELECT CASE + + 80 WHEN - 27 * + + CAST( NULL AS SIGNED ) * + - 85 + - 51 + 92 THEN - 27 ELSE NULL END * + CASE ( - COUNT( * ) ) WHEN - COUNT( * ) THEN + - 52 * + 66 + + 65 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1111
SELECT CASE + + 80 WHEN - 27 * + + CAST ( NULL AS INTEGER ) * + - 85 + - 51 + 92 THEN - 27 ELSE NULL END * + CASE ( - COUNT ( * ) ) WHEN - COUNT ( * ) THEN + - 52 * + 66 + + 65 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1112
SELECT SUM( DISTINCT - 92 ) AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-1112
SELECT SUM ( DISTINCT - 92 ) AS col1
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-1113
SELECT ALL - COUNT( * ) * + 98 AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-1113
SELECT ALL - COUNT ( * ) * + 98 AS col0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-1114
SELECT + SUM( DISTINCT 48 ) col2
----
48

skipif mysql # not compatible
query I rowsort label-1114
SELECT + SUM ( DISTINCT 48 ) col2
----
48

query I rowsort
SELECT ALL - COALESCE ( 32, ( - 6 ) )
----
-32

query I rowsort
SELECT ALL - 40 * - 29 AS col0
----
1160

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1119
SELECT ALL + 95 + - - CAST( MIN( ALL 41 ) AS SIGNED ) * + 12 + + + 48 * 44 * + + ( + 15 ) + 59 col0
----
32326

skipif mysql # not compatible
query I rowsort label-1119
SELECT ALL + 95 + - - CAST ( MIN ( ALL 41 ) AS INTEGER ) * + 12 + + + 48 * 44 * + + ( + 15 ) + 59 col0
----
32326

query II rowsort
SELECT DISTINCT + 22 + NULLIF ( + + 94, 97 ) + + 72 * 8 * - 71 AS col1, 86
----
-40780
86

onlyif mysql # aggregate syntax: 
query I rowsort label-1121
SELECT 95 * - - COALESCE ( - + 3, - - COUNT( * ) * 14 * - ( - 56 ) * 54 ) + - 85
----
-370

skipif mysql # not compatible
query I rowsort label-1121
SELECT 95 * - - COALESCE ( - + 3, - - COUNT ( * ) * 14 * - ( - 56 ) * 54 ) + - 85
----
-370

query I rowsort
SELECT DISTINCT - 59 + + 27 AS col2
----
-32

query I rowsort
SELECT 30 - 69 * + 64
----
-4386

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1124
SELECT ALL - SUM( ALL + COALESCE ( + 44, + 24 + + 94 + 49 ) ) * - NULLIF ( CAST( 34 AS SIGNED ), + MIN( ALL - 8 ) ) * + 48 AS col1
----
71808

skipif mysql # not compatible
query I rowsort label-1124
SELECT ALL - SUM ( ALL + COALESCE ( + 44, + 24 + + 94 + 49 ) ) * - NULLIF ( CAST ( 34 AS INTEGER ), + MIN ( ALL - 8 ) ) * + 48 AS col1
----
71808

query I rowsort
SELECT ALL 64 + - - 55
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-1126
SELECT ALL COALESCE ( - + 3, - COUNT( DISTINCT + 85 ) + - - 34 + - SUM( DISTINCT - 64 ) * - 71 - - + 97 ) AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-1126
SELECT ALL COALESCE ( - + 3, - COUNT ( DISTINCT + 85 ) + - - 34 + - SUM ( DISTINCT - 64 ) * - 71 - - + 97 ) AS col0
----
-3

query I rowsort
SELECT DISTINCT - 33 * - 50
----
1650

onlyif mysql # aggregate syntax: 
query II rowsort label-1128
SELECT DISTINCT + - 43 - - 53 AS col1, NULLIF ( + 27, + COUNT( * ) / - 51 ) * - 3 * + SUM( ALL + 68 )
----
10
-5508

skipif mysql # not compatible
query II rowsort label-1128
SELECT DISTINCT + - 43 - - 53 AS col1, NULLIF ( + 27, + COUNT ( * ) / - 51 ) * - 3 * + SUM ( ALL + 68 )
----
10
-5508

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1130
SELECT - COUNT( * ) - COALESCE ( - SUM( DISTINCT 95 ), 0 * + 94 + 60 + 80 )
----
94

skipif mysql # not compatible
query I rowsort label-1130
SELECT - COUNT ( * ) - COALESCE ( - SUM ( DISTINCT 95 ), 0 * + 94 + 60 + 80 )
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1131
SELECT - + 61 * + 46 * + - 72 * + - CAST( + SUM( DISTINCT 48 ) AS SIGNED )
----
-9697536

skipif mysql # not compatible
query I rowsort label-1131
SELECT - + 61 * + 46 * + - 72 * + - CAST ( + SUM ( DISTINCT 48 ) AS INTEGER )
----
-9697536

query I rowsort
SELECT DISTINCT 20 col0
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1133
SELECT DISTINCT + 17 * AVG ( ALL - CAST( NULL AS SIGNED ) ) * CAST( - 91 AS SIGNED ) + AVG ( DISTINCT - 30 ) * + 68 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1133
SELECT DISTINCT + 17 * AVG ( ALL - CAST ( NULL AS INTEGER ) ) * CAST ( - 91 AS INTEGER ) + AVG ( DISTINCT - 30 ) * + 68 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1134
SELECT + 50 * + COUNT( * ) * 68
----
3400

skipif mysql # not compatible
query I rowsort label-1134
SELECT + 50 * + COUNT ( * ) * 68
----
3400

query I rowsort
SELECT + - 78 - ( + 40 )
----
-118

query I rowsort
SELECT DISTINCT 98 * + - 20 AS col1
----
-1960

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

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

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

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

query I rowsort
SELECT ALL 81 * - 76 * - 6 AS col0
----
36936

query I rowsort
SELECT DISTINCT 40 * + - 22 * + 7 AS col2
----
-6160

onlyif mysql # aggregate syntax: 
query I rowsort label-1141
SELECT COUNT( * ) * - 64 + + 30 + - 95 * + 22 AS col0
----
-2124

skipif mysql # not compatible
query I rowsort label-1141
SELECT COUNT ( * ) * - 64 + + 30 + - 95 * + 22 AS col0
----
-2124

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1142
SELECT + NULLIF ( + 65, + 35 - - CAST( + 58 AS SIGNED ) ) AS col1
----
65

skipif mysql # not compatible
query I rowsort label-1142
SELECT + NULLIF ( + 65, + 35 - - CAST ( + 58 AS INTEGER ) ) AS col1
----
65

onlyif mysql # aggregate syntax: 
query II rowsort label-1143
SELECT ALL + 37 AS col1, - 47 - + MIN( - 86 ) AS col2
----
37
39

skipif mysql # not compatible
query II rowsort label-1143
SELECT ALL + 37 AS col1, - 47 - + MIN ( - 86 ) AS col2
----
37
39

onlyif mysql # aggregate syntax: 
query I rowsort label-1144
SELECT ALL 18 * + 81 + + 42 * + ( + 64 ) * COUNT( ALL - 64 ) AS col1
----
4146

skipif mysql # not compatible
query I rowsort label-1144
SELECT ALL 18 * + 81 + + 42 * + ( + 64 ) * COUNT ( ALL - 64 ) AS col1
----
4146

onlyif mysql # aggregate syntax: 
query I rowsort label-1145
SELECT + COUNT( * ) * - 81 + - 45 + + ( - 7 ) + - - 99
----
-34

skipif mysql # not compatible
query I rowsort label-1145
SELECT + COUNT ( * ) * - 81 + - 45 + + ( - 7 ) + - - 99
----
-34

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1147
SELECT 8 DIV 34 * NULLIF ( - 59, - - CAST( COUNT( * ) AS SIGNED ) * - + 17 * - 37 + + - 29 DIV - + 95 * + 78 * CAST( + - 34 AS SIGNED ) * - + 90 + + - 83 + COUNT( * ) DIV - - COUNT( DISTINCT - 46 ) ) + 57 * - - 51 * + 26, + 79 col0
----
75582
79

skipif mysql # not compatible
query II rowsort label-1147
SELECT 8 / 34 * NULLIF ( - 59, - - CAST ( COUNT ( * ) AS INTEGER ) * - + 17 * - 37 + + - 29 / - + 95 * + 78 * CAST ( + - 34 AS INTEGER ) * - + 90 + + - 83 + COUNT ( * ) / - - COUNT ( DISTINCT - 46 ) ) + 57 * - - 51 * + 26, + 79 col0
----
75582
79

onlyif mysql # aggregate syntax: 
query I rowsort label-1148
SELECT + COALESCE ( + COUNT( * ), + 32, 58 - - + 79 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1148
SELECT + COALESCE ( + COUNT ( * ), + 32, 58 - - + 79 ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1149
SELECT - 39 * + + ( + CAST( - + 20 AS SIGNED ) ), 57 AS col0
----
780
57

skipif mysql # not compatible
query II rowsort label-1149
SELECT - 39 * + + ( + CAST ( - + 20 AS INTEGER ) ), 57 AS col0
----
780
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1150
SELECT CASE - ( - ( + - 48 ) ) WHEN + 99 THEN NULL WHEN - 57 / + COUNT( * ) + - ( SUM( - + 15 ) ) + 21 - - - 37 + + CASE 1 WHEN - + 71 / + 16 + + 92 + - - 38 * - + 53 THEN + 62 WHEN + + ( - 92 ) * 64 * 36 THEN NULL ELSE NULL END / - 54 + + - 84 + + COUNT( * ) - - 31 * - 60 + + 16 THEN CAST( + 39 AS SIGNED ) + + 76 ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1150
SELECT CASE - ( - ( + - 48 ) ) WHEN + 99 THEN NULL WHEN - 57 / + COUNT ( * ) + - ( SUM ( - + 15 ) ) + 21 - - - 37 + + CASE 1 WHEN - + 71 / + 16 + + 92 + - - 38 * - + 53 THEN + 62 WHEN + + ( - 92 ) * 64 * 36 THEN NULL ELSE NULL END / - 54 + + - 84 + + COUNT ( * ) - - 31 * - 60 + + 16 THEN CAST ( + 39 AS INTEGER ) + + 76 ELSE NULL END col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1151
SELECT ALL - 29 * + COUNT( * ) / 97 + 4 + + 74 * CAST( NULL AS DECIMAL ) * - + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-1151
SELECT ALL - 29 * + COUNT ( * ) / 97 + 4 + + 74 * CAST ( NULL AS REAL ) * - + 26
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1152
SELECT ALL + 45 * COUNT( * ) + - 80
----
-35

skipif mysql # not compatible
query I rowsort label-1152
SELECT ALL + 45 * COUNT ( * ) + - 80
----
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-1153
SELECT + 3 DIV - - 86
----
0

skipif mysql # not compatible
query I rowsort label-1153
SELECT + 3 / - - 86
----
0

query I rowsort
SELECT 9 * - + 93 + - 16 + 12 AS col1
----
-841

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1155
SELECT ALL + 18 * + - CAST( NULL AS DECIMAL ) + 91 + - 86 * + 75 * + 46 + + 94
----
NULL

skipif mysql # not compatible
query I rowsort label-1155
SELECT ALL + 18 * + - CAST ( NULL AS REAL ) + 91 + - 86 * + 75 * + 46 + + 94
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1156
SELECT DISTINCT COUNT( * ) * 6 DIV 4 DIV - 51 DIV 17
----
0

skipif mysql # not compatible
query I rowsort label-1156
SELECT DISTINCT COUNT ( * ) * 6 / 4 / - 51 / 17
----
0

query II rowsort
SELECT ALL + 62 AS col1, + 68
----
62
68

query I rowsort
SELECT NULLIF ( + 36, - ( 39 ) * - ( - + 61 ) ) AS col1
----
36

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1160
SELECT CAST( - + 47 AS SIGNED )
----
-47

skipif mysql # not compatible
query I rowsort label-1160
SELECT CAST ( - + 47 AS INTEGER )
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1161
SELECT DISTINCT + + CAST( + 27 AS SIGNED )
----
27

skipif mysql # not compatible
query I rowsort label-1161
SELECT DISTINCT + + CAST ( + 27 AS INTEGER )
----
27

query I rowsort
SELECT - - 51 + + 91 + + - 69 * 89
----
-5999

onlyif mysql # aggregate syntax: 
query I rowsort label-1163
SELECT - SUM( - 46 ) * - ( - NULLIF ( - 51, + COUNT( * ) ) ) + 87
----
-2259

skipif mysql # not compatible
query I rowsort label-1163
SELECT - SUM ( - 46 ) * - ( - NULLIF ( - 51, + COUNT ( * ) ) ) + 87
----
-2259

query II rowsort
SELECT ALL - 58, 29 + + - 50 AS col2
----
-58
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-1165
SELECT DISTINCT + + 91 DIV + 91 + + - COALESCE ( + 31, + - 44 ) AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-1165
SELECT DISTINCT + + 91 / + 91 + + - COALESCE ( + 31, + - 44 ) AS col2
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-1166
SELECT COUNT( * ) * 15 - 11 - COUNT( * ) + - 44 AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-1166
SELECT COUNT ( * ) * 15 - 11 - COUNT ( * ) + - 44 AS col1
----
-41

query I rowsort
SELECT - + 74 + - + COALESCE ( - 75, - - 8 ) + - ( + - 33 )
----
34

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

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

query I rowsort
SELECT ALL + 88 * - 71 + + 42
----
-6206

query I rowsort
SELECT DISTINCT + - 86 * - 76 AS col2
----
6536

query II rowsort
SELECT ALL - 4 AS col1, 72
----
-4
72

query I rowsort
SELECT - 57 + + 1
----
-56

query I rowsort
SELECT ALL + + 36 * 63 AS col1
----
2268

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1175
SELECT ALL + 39 + + CASE ( COUNT( * ) ) WHEN - 95 THEN NULL ELSE - 36 END + - CAST( - 67 AS SIGNED )
----
70

skipif mysql # not compatible
query I rowsort label-1175
SELECT ALL + 39 + + CASE ( COUNT ( * ) ) WHEN - 95 THEN NULL ELSE - 36 END + - CAST ( - 67 AS INTEGER )
----
70

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1176
SELECT - NULLIF ( - + 56, + MIN( DISTINCT + CAST( NULL AS DECIMAL ) ) * 25 / - + 78 )
----
56

skipif mysql # not compatible
query I rowsort label-1176
SELECT - NULLIF ( - + 56, + MIN ( DISTINCT + CAST ( NULL AS REAL ) ) * 25 / - + 78 )
----
56

query I rowsort
SELECT ALL - 76 + - 43
----
-119

onlyif mysql # aggregate syntax: 
query I rowsort label-1178
SELECT DISTINCT + COUNT( * ) + - 34
----
-33

skipif mysql # not compatible
query I rowsort label-1178
SELECT DISTINCT + COUNT ( * ) + - 34
----
-33

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

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

query I rowsort
SELECT ALL NULLIF ( - 72, + 4 ) + - 36 AS col2
----
-108

onlyif mysql # aggregate syntax: 
query II rowsort label-1181
SELECT DISTINCT COUNT( * ) * 90, 2 AS col1
----
90
2

skipif mysql # not compatible
query II rowsort label-1181
SELECT DISTINCT COUNT ( * ) * 90, 2 AS col1
----
90
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1182
SELECT ALL + 1 DIV - 49 + NULLIF ( + + ( + + 48 ), - 46 ) DIV - + 73 + + 52 + - COUNT( * )
----
51

skipif mysql # not compatible
query I rowsort label-1182
SELECT ALL + 1 / - 49 + NULLIF ( + + ( + + 48 ), - 46 ) / - + 73 + + 52 + - COUNT ( * )
----
51

query I rowsort
SELECT + 62 * - - 71 col2
----
4402

query I rowsort
SELECT DISTINCT 27 * - 73 AS col2
----
-1971

onlyif mysql # aggregate syntax: 
query II rowsort label-1185
SELECT + 26 * + - NULLIF ( + + 71, 88 * COUNT( * ) + COUNT( * ) + 53 ) col0, MAX( DISTINCT + ( 2 ) ) + - 35
----
-1846
-33

skipif mysql # not compatible
query II rowsort label-1185
SELECT + 26 * + - NULLIF ( + + 71, 88 * COUNT ( * ) + COUNT ( * ) + 53 ) col0, MAX ( DISTINCT + ( 2 ) ) + - 35
----
-1846
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-1186
SELECT + COUNT( * ) * CASE - COUNT( * ) WHEN 75 + 3 THEN - 11 * - COALESCE ( 55, + CASE - 43 WHEN - COUNT( * ) THEN - 22 * SUM( + ( + + 81 ) ) + + 97 * + + 96 - 33 END ) / 32 * - - COUNT( * ) + + 96 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1186
SELECT + COUNT ( * ) * CASE - COUNT ( * ) WHEN 75 + 3 THEN - 11 * - COALESCE ( 55, + CASE - 43 WHEN - COUNT ( * ) THEN - 22 * SUM ( + ( + + 81 ) ) + + 97 * + + 96 - 33 END ) / 32 * - - COUNT ( * ) + + 96 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1187
SELECT DISTINCT 68 - + COUNT( * )
----
67

skipif mysql # not compatible
query I rowsort label-1187
SELECT DISTINCT 68 - + COUNT ( * )
----
67

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1188
SELECT ALL - ( + + 52 ) AS col0, - CAST( NULL AS DECIMAL )
----
-52
NULL

skipif mysql # not compatible
query II rowsort label-1188
SELECT ALL - ( + + 52 ) AS col0, - CAST ( NULL AS REAL )
----
-52
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1189
SELECT ALL + 83 * + + MAX( DISTINCT 84 )
----
6972

skipif mysql # not compatible
query I rowsort label-1189
SELECT ALL + 83 * + + MAX ( DISTINCT 84 )
----
6972

query I rowsort
SELECT 62 + ( + 32 ) * - 79 + 52
----
-2414

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1192
SELECT ALL - CASE - 65 WHEN + - 32 * + 94 THEN 34 + - 24 + + - 92 * 53 ELSE + 74 END + + COUNT( * ) + - 57 + MAX( ALL + 4 ) * + 68 * 90 AS col0
----
24350

skipif mysql # not compatible
query I rowsort label-1192
SELECT ALL - CASE - 65 WHEN + - 32 * + 94 THEN 34 + - 24 + + - 92 * 53 ELSE + 74 END + + COUNT ( * ) + - 57 + MAX ( ALL + 4 ) * + 68 * 90 AS col0
----
24350

query I rowsort
SELECT - 41 * - 39
----
1599

onlyif mysql # DIV for integer division: 
query I rowsort label-1194
SELECT DISTINCT + 40 + 93 DIV + - 99 AS col1
----
40

skipif mysql # not compatible
query I rowsort label-1194
SELECT DISTINCT + 40 + 93 / + - 99 AS col1
----
40

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1196
SELECT 8 DIV - - 4 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-1196
SELECT 8 / - - 4 AS col1
----
2

query I rowsort
SELECT ALL - 7 + + 45
----
38

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1200
SELECT 33 AS col2, NULLIF ( - - CAST( 23 AS SIGNED ), + 52 )
----
33
23

skipif mysql # not compatible
query II rowsort label-1200
SELECT 33 AS col2, NULLIF ( - - CAST ( 23 AS INTEGER ), + 52 )
----
33
23

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1202
SELECT ALL + COALESCE ( - COUNT( * ), - 53 * 20 ) * - + 52 AS col2, 52 * - + 43 + - - 27 + CAST( NULL AS SIGNED ) AS col2
----
52
NULL

skipif mysql # not compatible
query II rowsort label-1202
SELECT ALL + COALESCE ( - COUNT ( * ), - 53 * 20 ) * - + 52 AS col2, 52 * - + 43 + - - 27 + CAST ( NULL AS INTEGER ) AS col2
----
52
NULL

query I rowsort
SELECT 1 - 76 col0
----
-75

query I rowsort
SELECT ALL + 36 * 43
----
1548

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1206
SELECT 11 - SUM( - COALESCE ( ( - 92 ), + + 94 ) ) AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-1206
SELECT 11 - SUM ( - COALESCE ( ( - 92 ), + + 94 ) ) AS col0
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1207
SELECT ALL 47 AS col1, COALESCE ( + - CAST( NULL AS SIGNED ), COUNT( + - 75 ) * - - 17 * - ( 64 ) + + COUNT( * ) )
----
47
-1087

skipif mysql # not compatible
query II rowsort label-1207
SELECT ALL 47 AS col1, COALESCE ( + - CAST ( NULL AS INTEGER ), COUNT ( + - 75 ) * - - 17 * - ( 64 ) + + COUNT ( * ) )
----
47
-1087

onlyif mysql # aggregate syntax: 
query I rowsort label-1208
SELECT ALL + COUNT( * ) - + 9 * - ( 14 ) AS col0
----
127

skipif mysql # not compatible
query I rowsort label-1208
SELECT ALL + COUNT ( * ) - + 9 * - ( 14 ) AS col0
----
127

onlyif mysql # DIV for integer division: 
query I rowsort label-1209
SELECT 46 DIV - - 5 + - 85 + + 89 + - 42 + + 11
----
-18

skipif mysql # not compatible
query I rowsort label-1209
SELECT 46 / - - 5 + - 85 + + 89 + - 42 + + 11
----
-18

query II rowsort
SELECT 9 * + 22 - 79, - 77 * + 82 AS col0
----
119
-6314

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1211
SELECT 17 * CAST( NULL AS SIGNED ) * 65
----
NULL

skipif mysql # not compatible
query I rowsort label-1211
SELECT 17 * CAST ( NULL AS INTEGER ) * 65
----
NULL

query I rowsort
SELECT DISTINCT 73 * + - 33
----
-2409

query I rowsort
SELECT ALL 91 * + 68
----
6188

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1215
SELECT + MAX( - 59 ) AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-1215
SELECT + MAX ( - 59 ) AS col2
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1216
SELECT DISTINCT - ( CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1216
SELECT DISTINCT - ( CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

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

query I rowsort
SELECT ALL - 12 * 67 AS col0
----
-804

onlyif mysql # DIV for integer division: 
query II rowsort label-1219
SELECT 76, 13 * 39 DIV 15 col1
----
76
33

skipif mysql # not compatible
query II rowsort label-1219
SELECT 76, 13 * 39 / 15 col1
----
76
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1220
SELECT NULLIF ( + - CAST( - + NULLIF ( 46, - 77 ) AS SIGNED ), + 61 * 12 + + + 17 ) * - COUNT( * )
----
-46

skipif mysql # not compatible
query I rowsort label-1220
SELECT NULLIF ( + - CAST ( - + NULLIF ( 46, - 77 ) AS INTEGER ), + 61 * 12 + + + 17 ) * - COUNT ( * )
----
-46

query I rowsort
SELECT - COALESCE ( + 72, + 41, 26 )
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-1222
SELECT 7 * - 49 + + + MAX( DISTINCT + 80 ) AS col0
----
-263

skipif mysql # not compatible
query I rowsort label-1222
SELECT 7 * - 49 + + + MAX ( DISTINCT + 80 ) AS col0
----
-263

query II rowsort
SELECT ALL - - 47, - 54 col0
----
47
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-1224
SELECT CASE - COUNT( * ) WHEN - + MAX( + - 2 ) THEN NULL WHEN + 48 * + 13 - - + 55 + 21 * 6 THEN 21 WHEN - - 6 THEN NULL END + + 95
----
NULL

skipif mysql # not compatible
query I rowsort label-1224
SELECT CASE - COUNT ( * ) WHEN - + MAX ( + - 2 ) THEN NULL WHEN + 48 * + 13 - - + 55 + 21 * 6 THEN 21 WHEN - - 6 THEN NULL END + + 95
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1225
SELECT ALL - ( + + 61 ) * + COUNT( + + 33 )
----
-61

skipif mysql # not compatible
query I rowsort label-1225
SELECT ALL - ( + + 61 ) * + COUNT ( + + 33 )
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-1226
SELECT ALL - 11 + + - COUNT( DISTINCT + 25 )
----
-12

skipif mysql # not compatible
query I rowsort label-1226
SELECT ALL - 11 + + - COUNT ( DISTINCT + 25 )
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-1227
SELECT + + 41 * - - 77 + COUNT( * ) + - 40 + - - 28 - + - 26 + 89 * + 80 + 25 AS col0
----
10317

skipif mysql # not compatible
query I rowsort label-1227
SELECT + + 41 * - - 77 + COUNT ( * ) + - 40 + - - 28 - + - 26 + 89 * + 80 + 25 AS col0
----
10317

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1228
SELECT ( - 6 ) + + + COALESCE ( 70, 53 DIV - 96 * - MIN( 28 ) + - + 43 - + 94 )
----
64

skipif mysql # not compatible
query I rowsort label-1228
SELECT ( - 6 ) + + + COALESCE ( 70, 53 / - 96 * - MIN ( 28 ) + - + 43 - + 94 )
----
64

query II rowsort
SELECT DISTINCT 82 AS col2, - 28
----
82
-28

query I rowsort
SELECT ALL - 77 + + - 36 - - 34
----
-79

query II rowsort
SELECT 92 AS col2, + 54
----
92
54

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

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

query I rowsort
SELECT 27 * - - 4 * + - 38 AS col1
----
-4104

query I rowsort
SELECT 30 + - - NULLIF ( + 22, 9 * + + 20 + 11 ) + + + 56
----
108

query I rowsort
SELECT 1 * + - 0 AS col2
----
0

query I rowsort
SELECT 36 * - COALESCE ( - + 90, + - 58 ) AS col2
----
3240

query I rowsort
SELECT - 33 + 13
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-1238
SELECT - 21 * 58 * - COUNT( * )
----
1218

skipif mysql # not compatible
query I rowsort label-1238
SELECT - 21 * 58 * - COUNT ( * )
----
1218

query I rowsort
SELECT NULLIF ( + 89, 28 ) AS col1
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-1240
SELECT ALL + CASE 43 WHEN - 60 THEN - - 24 + 46 + - COUNT( * ) * + 95 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1240
SELECT ALL + CASE 43 WHEN - 60 THEN - - 24 + 46 + - COUNT ( * ) * + 95 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1241
SELECT + 66 AS col0, 14 * - + MAX( DISTINCT 66 )
----
66
-924

skipif mysql # not compatible
query II rowsort label-1241
SELECT + 66 AS col0, 14 * - + MAX ( DISTINCT 66 )
----
66
-924

query II rowsort
SELECT ALL + + 81 AS col0, 2 * + 40
----
81
80

query II rowsort
SELECT ALL + 40 AS col2, 50 * - + 95 * - 69 AS col1
----
40
327750

query II rowsort
SELECT 9 col0, 89 AS col1
----
9
89

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1246
SELECT + - 45 * 71 + + + CAST( - 49 AS SIGNED ) + - ( - 32 ) AS col2, 34
----
-3212
34

skipif mysql # not compatible
query II rowsort label-1246
SELECT + - 45 * 71 + + + CAST ( - 49 AS INTEGER ) + - ( - 32 ) AS col2, 34
----
-3212
34

query I rowsort
SELECT ALL - 80 * 39 + 82 AS col2
----
-3038

onlyif mysql # aggregate syntax: 
query II rowsort label-1248
SELECT ALL - 44 * - ( + - 22 ) + 11 AS col2, - SUM( DISTINCT - 1 ) AS col1
----
-957
1

skipif mysql # not compatible
query II rowsort label-1248
SELECT ALL - 44 * - ( + - 22 ) + 11 AS col2, - SUM ( DISTINCT - 1 ) AS col1
----
-957
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1249
SELECT + - NULLIF ( COUNT( DISTINCT + 24 ), + NULLIF ( 54, - 60 ) / - - 7 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1249
SELECT + - NULLIF ( COUNT ( DISTINCT + 24 ), + NULLIF ( 54, - 60 ) / - - 7 ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1250
SELECT DISTINCT + ( + CAST( + + COUNT( * ) AS SIGNED ) ) * 33 + - 22
----
11

skipif mysql # not compatible
query I rowsort label-1250
SELECT DISTINCT + ( + CAST ( + + COUNT ( * ) AS INTEGER ) ) * 33 + - 22
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-1251
SELECT ALL + + MIN( - - 73 ) AS col2
----
73

skipif mysql # not compatible
query I rowsort label-1251
SELECT ALL + + MIN ( - - 73 ) AS col2
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1252
SELECT ALL COUNT( * ) * - 8 DIV 17 + 9 * - 76 AS col2
----
-684

skipif mysql # not compatible
query I rowsort label-1252
SELECT ALL COUNT ( * ) * - 8 / 17 + 9 * - 76 AS col2
----
-684

query I rowsort
SELECT - 76 * - 3
----
228

onlyif mysql # aggregate syntax: 
query II rowsort label-1254
SELECT ALL + - COUNT( * ) AS col0, CASE - - 64 WHEN 31 THEN - + 14 * + 47 * 89 + - 94 * + CASE - 14 WHEN 99 THEN NULL ELSE + + 38 / AVG ( DISTINCT NULLIF ( - 60, - 7 ) ) END END
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-1254
SELECT ALL + - COUNT ( * ) AS col0, CASE - - 64 WHEN 31 THEN - + 14 * + 47 * 89 + - 94 * + CASE - 14 WHEN 99 THEN NULL ELSE + + 38 / AVG ( DISTINCT NULLIF ( - 60, - 7 ) ) END END
----
-1
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1255
SELECT - CAST( 91 AS SIGNED ) DIV + 57 col0
----
-1

skipif mysql # not compatible
query I rowsort label-1255
SELECT - CAST ( 91 AS INTEGER ) / + 57 col0
----
-1

query I rowsort
SELECT + - 79 + 99 + - - 33
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-1257
SELECT + 50 * 17 + + CASE + - 53 WHEN + + 31 THEN NULLIF ( 33, + 57 + - ( - - CASE 2 WHEN - - 32 THEN - 33 ELSE NULL END ) ) END + + 83 + 7 * 19 * - COUNT( * ) * - 87 * + - ( 79 ) * - CASE - CASE WHEN + 24 IS NULL THEN - + 16 END WHEN 48 + - - 96 THEN NULL WHEN - 67 THEN NULL ELSE - - 79 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1257
SELECT + 50 * 17 + + CASE + - 53 WHEN + + 31 THEN NULLIF ( 33, + 57 + - ( - - CASE 2 WHEN - - 32 THEN - 33 ELSE NULL END ) ) END + + 83 + 7 * 19 * - COUNT ( * ) * - 87 * + - ( 79 ) * - CASE - CASE WHEN + 24 IS NULL THEN - + 16 END WHEN 48 + - - 96 THEN NULL WHEN - 67 THEN NULL ELSE - - 79 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1258
SELECT ALL + 99 + + COUNT( DISTINCT 15 )
----
100

skipif mysql # not compatible
query I rowsort label-1258
SELECT ALL + 99 + + COUNT ( DISTINCT 15 )
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-1259
SELECT SUM( 27 )
----
27

skipif mysql # not compatible
query I rowsort label-1259
SELECT SUM ( 27 )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-1260
SELECT - NULLIF ( COUNT( * ), - - 98 / - ( - 50 ) + 58 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1260
SELECT - NULLIF ( COUNT ( * ), - - 98 / - ( - 50 ) + 58 ) AS col2
----
-1

query II rowsort
SELECT ALL ( + 51 ) AS col2, 79 AS col0
----
51
79

onlyif mysql # aggregate syntax: 
query I rowsort label-1262
SELECT DISTINCT SUM( + 97 ) * + - 83
----
-8051

skipif mysql # not compatible
query I rowsort label-1262
SELECT DISTINCT SUM ( + 97 ) * + - 83
----
-8051

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1265
SELECT + 51 - + ( + + COUNT( * ) ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-1265
SELECT + 51 - + ( + + COUNT ( * ) ) AS col1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-1266
SELECT ALL CASE + COUNT( * ) WHEN + 76 THEN - 14 + + - 54 * + + 25 * ( 91 ) END * + 29
----
NULL

skipif mysql # not compatible
query I rowsort label-1266
SELECT ALL CASE + COUNT ( * ) WHEN + 76 THEN - 14 + + - 54 * + + 25 * ( 91 ) END * + 29
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1267
SELECT ALL COUNT( 22 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-1267
SELECT ALL COUNT ( 22 ) col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1268
SELECT + 21 DIV COALESCE ( - 94, 12 + - - 28 + - ( ( + AVG ( DISTINCT - 12 ) ) ) + - 92 * + 29, + 10 DIV - - 65 * - NULLIF ( - COALESCE ( + ( - - 55 ), 65 ), - 51 ) DIV - 66 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1268
SELECT + 21 / COALESCE ( - 94, 12 + - - 28 + - ( ( + AVG ( DISTINCT - 12 ) ) ) + - 92 * + 29, + 10 / - - 65 * - NULLIF ( - COALESCE ( + ( - - 55 ), 65 ), - 51 ) / - 66 ) AS col2
----
0

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

skipif mysql # not compatible
query I rowsort label-1269
SELECT DISTINCT COUNT ( * ) * + - 78 AS col0
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1270
SELECT + 97 - - - CAST( 43 AS SIGNED ) + 46 * + 36 AS col1
----
1710

skipif mysql # not compatible
query I rowsort label-1270
SELECT + 97 - - - CAST ( 43 AS INTEGER ) + 46 * + 36 AS col1
----
1710

onlyif mysql # DIV for integer division: 
query I rowsort label-1271
SELECT ALL + 10 DIV - 79 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1271
SELECT ALL + 10 / - 79 AS col0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-1272
SELECT DISTINCT + 1 DIV + + 73 col0, 18 + - 2 col0
----
0
16

skipif mysql # not compatible
query II rowsort label-1272
SELECT DISTINCT + 1 / + + 73 col0, 18 + - 2 col0
----
0
16

onlyif mysql # DIV for integer division: 
query I rowsort label-1273
SELECT DISTINCT ( - ( + 93 ) ) DIV - - 63 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1273
SELECT DISTINCT ( - ( + 93 ) ) / - - 63 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1274
SELECT - COALESCE ( - COUNT( * ), 63 ) * + - 19 + - COUNT( * ) + 93
----
73

skipif mysql # not compatible
query I rowsort label-1274
SELECT - COALESCE ( - COUNT ( * ), 63 ) * + - 19 + - COUNT ( * ) + 93
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1275
SELECT - COUNT( * ) * - 76 + + COALESCE ( - ( MAX( DISTINCT + + 30 ) ), + 4 + + CAST( - 21 AS SIGNED ), 40 )
----
46

skipif mysql # not compatible
query I rowsort label-1275
SELECT - COUNT ( * ) * - 76 + + COALESCE ( - ( MAX ( DISTINCT + + 30 ) ), + 4 + + CAST ( - 21 AS INTEGER ), 40 )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-1276
SELECT + - ( - COUNT( * ) ) * NULLIF ( + 88, + 64 / + - 83 + - + SUM( DISTINCT + 84 ) * - 74 ) col0
----
88

skipif mysql # not compatible
query I rowsort label-1276
SELECT + - ( - COUNT ( * ) ) * NULLIF ( + 88, + 64 / + - 83 + - + SUM ( DISTINCT + 84 ) * - 74 ) col0
----
88

query I rowsort
SELECT + 62 + + 49
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-1278
SELECT + MIN( ALL + 94 ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-1278
SELECT + MIN ( ALL + 94 ) AS col0
----
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1279
SELECT ALL - SUM( + - 4 ) DIV + 30 + 93 - - 41 + - + 63 * 64
----
-3898

skipif mysql # not compatible
query I rowsort label-1279
SELECT ALL - SUM ( + - 4 ) / + 30 + 93 - - 41 + - + 63 * 64
----
-3898

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1280
SELECT ALL 19 DIV + - 68 * - MIN( 25 ) + - 9 * + 91 + + MIN( DISTINCT - 16 )
----
-835

skipif mysql # not compatible
query I rowsort label-1280
SELECT ALL 19 / + - 68 * - MIN ( 25 ) + - 9 * + 91 + + MIN ( DISTINCT - 16 )
----
-835

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1281
SELECT ALL - COALESCE ( 88, - COALESCE ( COUNT( DISTINCT + + CAST( NULL AS SIGNED ) ), - 53 * 0 + - + CAST( NULL AS SIGNED ) ) ) DIV 26 + + + 37 + + 19 * 62 + COUNT( * ) col0
----
1213

skipif mysql # not compatible
query I rowsort label-1281
SELECT ALL - COALESCE ( 88, - COALESCE ( COUNT ( DISTINCT + + CAST ( NULL AS INTEGER ) ), - 53 * 0 + - + CAST ( NULL AS INTEGER ) ) ) / 26 + + + 37 + + 19 * 62 + COUNT ( * ) col0
----
1213

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1282
SELECT DISTINCT + COUNT( * ) DIV + 35 + - SUM( 48 ) + + + 5
----
-43

skipif mysql # not compatible
query I rowsort label-1282
SELECT DISTINCT + COUNT ( * ) / + 35 + - SUM ( 48 ) + + + 5
----
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1283
SELECT DISTINCT - 76 DIV + COUNT( DISTINCT + + 76 ) + - + 15 + + 64 AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-1283
SELECT DISTINCT - 76 / + COUNT ( DISTINCT + + 76 ) + - + 15 + + 64 AS col0
----
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1284
SELECT + - 19 DIV + COUNT( * ) + - - 0 + + 24 * + 41 col2, ( - COUNT( * ) )
----
965
-1

skipif mysql # not compatible
query II rowsort label-1284
SELECT + - 19 / + COUNT ( * ) + - - 0 + + 24 * + 41 col2, ( - COUNT ( * ) )
----
965
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1285
SELECT DISTINCT + + MIN( ALL - 54 ) AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-1285
SELECT DISTINCT + + MIN ( ALL - 54 ) AS col1
----
-54

query I rowsort
SELECT + - 89 + 77
----
-12

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

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

query II rowsort
SELECT + ( - 44 ) AS col2, 33
----
-44
33

onlyif mysql # aggregate syntax: 
query I rowsort label-1289
SELECT - 48 + - 88 + COUNT( + ( - 77 ) )
----
-135

skipif mysql # not compatible
query I rowsort label-1289
SELECT - 48 + - 88 + COUNT ( + ( - 77 ) )
----
-135

query I rowsort
SELECT ALL - 4 * - 32 - - 3 AS col0
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-1291
SELECT + 6 * + 80 - - + MAX( DISTINCT 59 ) - COUNT( + 20 )
----
538

skipif mysql # not compatible
query I rowsort label-1291
SELECT + 6 * + 80 - - + MAX ( DISTINCT 59 ) - COUNT ( + 20 )
----
538

query I rowsort
SELECT - - 89 * + NULLIF ( - 51, + 59 ) AS col1
----
-4539

query II rowsort
SELECT ALL 54 * - - 99 AS col1, - 63
----
5346
-63

query I rowsort
SELECT - 87 + 47 AS col0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-1295
SELECT NULLIF ( - 40, - COUNT( ALL + ( + 59 ) ) ) AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-1295
SELECT NULLIF ( - 40, - COUNT ( ALL + ( + 59 ) ) ) AS col2
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-1296
SELECT ALL + COUNT( * ) * + + 51 - 99 AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-1296
SELECT ALL + COUNT ( * ) * + + 51 - 99 AS col0
----
-48

query I rowsort
SELECT + 40 * - 23
----
-920

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1300
SELECT ( 65 ) DIV + - 14 AS col1, NULLIF ( + COUNT( * ), + SUM( ALL + - 46 ) + - CAST( NULL AS SIGNED ) )
----
-4
1

skipif mysql # not compatible
query II rowsort label-1300
SELECT ( 65 ) / + - 14 AS col1, NULLIF ( + COUNT ( * ), + SUM ( ALL + - 46 ) + - CAST ( NULL AS INTEGER ) )
----
-4
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1301
SELECT COUNT( * ) + + + COUNT( - + 88 ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-1301
SELECT COUNT ( * ) + + + COUNT ( - + 88 ) AS col0
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1302
SELECT CAST( + + 3 AS SIGNED ) + - CAST( NULL AS SIGNED ) / - 0 + + CASE + + SUM( DISTINCT - 63 ) WHEN + + COALESCE ( COUNT( * ), - - ( - - ( SUM( DISTINCT + + 98 ) ) ) ) THEN + - 44 WHEN + 97 THEN NULL ELSE NULL END * + NULLIF ( + 28, - 81 + - + CAST( NULL AS SIGNED ) ) * 74
----
NULL

skipif mysql # not compatible
query I rowsort label-1302
SELECT CAST ( + + 3 AS INTEGER ) + - CAST ( NULL AS INTEGER ) / - 0 + + CASE + + SUM ( DISTINCT - 63 ) WHEN + + COALESCE ( COUNT ( * ), - - ( - - ( SUM ( DISTINCT + + 98 ) ) ) ) THEN + - 44 WHEN + 97 THEN NULL ELSE NULL END * + NULLIF ( + 28, - 81 + - + CAST ( NULL AS INTEGER ) ) * 74
----
NULL

query II rowsort
SELECT ALL 98 AS col2, 80
----
98
80

query II rowsort
SELECT ALL 49 AS col1, 66
----
49
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1305
SELECT 30 * - + CAST( - 8 AS SIGNED ) AS col2
----
240

skipif mysql # not compatible
query I rowsort label-1305
SELECT 30 * - + CAST ( - 8 AS INTEGER ) AS col2
----
240

query I rowsort
SELECT 36 + 71
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-1307
SELECT MIN( ALL + + 31 ) + + ( COUNT( * ) ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-1307
SELECT MIN ( ALL + + 31 ) + + ( COUNT ( * ) ) AS col0
----
32

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

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

query II rowsort
SELECT 73 AS col2, + 57
----
73
57

onlyif mysql # aggregate syntax: 
query I rowsort label-1310
SELECT DISTINCT ( 35 ) * + - 69 * + SUM( + 72 )
----
-173880

skipif mysql # not compatible
query I rowsort label-1310
SELECT DISTINCT ( 35 ) * + - 69 * + SUM ( + 72 )
----
-173880

onlyif mysql # aggregate syntax: 
query II rowsort label-1311
SELECT ALL 20, - 41 + + 28 + 56 + - COUNT( * ) + - 74 AS col0
----
20
-32

skipif mysql # not compatible
query II rowsort label-1311
SELECT ALL 20, - 41 + + 28 + 56 + - COUNT ( * ) + - 74 AS col0
----
20
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-1312
SELECT ALL 8 + + - 70 + SUM( - 60 )
----
-122

skipif mysql # not compatible
query I rowsort label-1312
SELECT ALL 8 + + - 70 + SUM ( - 60 )
----
-122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-1313
SELECT COUNT( * ) * CASE - COUNT( ALL 47 ) WHEN + 79 - - 40 THEN - 23 WHEN + CAST( - 19 AS SIGNED ) THEN + 15 + ( - - 27 ) * - CAST( NULL AS SIGNED ) DIV + 97 * - 32 * 90 WHEN - 54 + - 79 THEN - 23 DIV + 91 - - - 33 + COALESCE ( 7, + CASE + 78 WHEN 5 THEN - 34 WHEN CAST( - 92 AS SIGNED ) THEN 71 * - 38 END DIV 94 - + 89 ) * + COUNT( * ) WHEN 48 DIV + + COALESCE ( - + COUNT( * ), + CASE 39 WHEN CAST( NULL AS DECIMAL ) * 51 THEN NULL WHEN 83 THEN ( + 82 ) ELSE - 86 * 78 END ) + 28 THEN - ( - 59 ) - - 78 ELSE + COUNT( * ) END AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1313
SELECT COUNT ( * ) * CASE - COUNT ( ALL 47 ) WHEN + 79 - - 40 THEN - 23 WHEN + CAST ( - 19 AS INTEGER ) THEN + 15 + ( - - 27 ) * - CAST ( NULL AS INTEGER ) / + 97 * - 32 * 90 WHEN - 54 + - 79 THEN - 23 / + 91 - - - 33 + COALESCE ( 7, + CASE + 78 WHEN 5 THEN - 34 WHEN CAST ( - 92 AS INTEGER ) THEN 71 * - 38 END / 94 - + 89 ) * + COUNT ( * ) WHEN 48 / + + COALESCE ( - + COUNT ( * ), + CASE 39 WHEN CAST ( NULL AS REAL ) * 51 THEN NULL WHEN 83 THEN ( + 82 ) ELSE - 86 * 78 END ) + 28 THEN - ( - 59 ) - - 78 ELSE + COUNT ( * ) END AS col2
----
1

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

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

query II rowsort
SELECT - - 83, 84 AS col1
----
83
84

onlyif mysql # aggregate syntax: 
query I rowsort label-1316
SELECT + 16 + - 55 - + + MIN( 47 ) * ( + - 16 ) * - 12 * - 13 AS col0
----
117273

skipif mysql # not compatible
query I rowsort label-1316
SELECT + 16 + - 55 - + + MIN ( 47 ) * ( + - 16 ) * - 12 * - 13 AS col0
----
117273

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1317
SELECT ALL - ( + + 67 ) + 16 + + 32 + - CASE CAST( NULL AS SIGNED ) WHEN - 56 THEN + MAX( + 61 ) ELSE NULL END + 62 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1317
SELECT ALL - ( + + 67 ) + 16 + + 32 + - CASE CAST ( NULL AS INTEGER ) WHEN - 56 THEN + MAX ( + 61 ) ELSE NULL END + 62 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1318
SELECT ALL + 6 + 25 DIV - ( - + 99 )
----
6

skipif mysql # not compatible
query I rowsort label-1318
SELECT ALL + 6 + 25 / - ( - + 99 )
----
6

query I rowsort
SELECT ALL 13 + ( - + 68 )
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-1320
SELECT + 36 * - 57 + + + 53 + 40 DIV + 41 * + - ( - 2 ) col2
----
-1999

skipif mysql # not compatible
query I rowsort label-1320
SELECT + 36 * - 57 + + + 53 + 40 / + 41 * + - ( - 2 ) col2
----
-1999

query II rowsort
SELECT + 35 AS col2, - 72 AS col0
----
35
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1322
SELECT ALL - 23 DIV - 82 * + NULLIF ( - - 20, CASE 31 WHEN + 90 + + + MAX( DISTINCT - 21 ) + COUNT( * ) * + 3 THEN 86 ELSE + + 61 * - 84 + + - COUNT( * ) END )
----
0

skipif mysql # not compatible
query I rowsort label-1322
SELECT ALL - 23 / - 82 * + NULLIF ( - - 20, CASE 31 WHEN + 90 + + + MAX ( DISTINCT - 21 ) + COUNT ( * ) * + 3 THEN 86 ELSE + + 61 * - 84 + + - COUNT ( * ) END )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1323
SELECT + ( - COUNT( * ) ) - 44 AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-1323
SELECT + ( - COUNT ( * ) ) - 44 AS col0
----
-45

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

skipif mysql # not compatible
query I rowsort label-1324
SELECT + MAX ( 27 )
----
27

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1326
SELECT + CAST( NULL AS SIGNED ), 88 * + 82 - + 86 AS col1
----
NULL
7130

skipif mysql # not compatible
query II rowsort label-1326
SELECT + CAST ( NULL AS INTEGER ), 88 * + 82 - + 86 AS col1
----
NULL
7130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1327
SELECT 31 - + 7 + 63 * - + NULLIF ( 57, CAST( + 86 AS SIGNED ) + + - MAX( DISTINCT - + 65 ) ) AS col0, 45 - + 75 DIV - 79 AS col2
----
-3567
45

skipif mysql # not compatible
query II rowsort label-1327
SELECT 31 - + 7 + 63 * - + NULLIF ( 57, CAST ( + 86 AS INTEGER ) + + - MAX ( DISTINCT - + 65 ) ) AS col0, 45 - + 75 / - 79 AS col2
----
-3567
45

query I rowsort
SELECT ALL + + 0 - - 9 AS col0
----
9

query II rowsort
SELECT + + 54 AS col1, 10
----
54
10

onlyif mysql # aggregate syntax: 
query I rowsort label-1330
SELECT + 78 * - COUNT( * ) + + 79 + + 50 + + SUM( - 59 ) * 55 * + 22 + + - 49
----
-71388

skipif mysql # not compatible
query I rowsort label-1330
SELECT + 78 * - COUNT ( * ) + + 79 + + 50 + + SUM ( - 59 ) * 55 * + 22 + + - 49
----
-71388

query I rowsort
SELECT 0 - 76
----
-76

query I rowsort
SELECT ALL 82 * - 95
----
-7790

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1333
SELECT CAST( NULL AS SIGNED ) + + 91 AS col1, 54 * 59 col0
----
NULL
3186

skipif mysql # not compatible
query II rowsort label-1333
SELECT CAST ( NULL AS INTEGER ) + + 91 AS col1, 54 * 59 col0
----
NULL
3186

query I rowsort
SELECT 40 * 56
----
2240

onlyif mysql # aggregate syntax: 
query I rowsort label-1335
SELECT COUNT( * ) + - 35 + - 70 AS col1
----
-104

skipif mysql # not compatible
query I rowsort label-1335
SELECT COUNT ( * ) + - 35 + - 70 AS col1
----
-104

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1337
SELECT 19 * - NULLIF ( 84, + 72 ) * - ( CASE + + COUNT( * ) WHEN 62 THEN NULL ELSE - 57 END ) + + + 40 + + + 13 + - 45
----
-90964

skipif mysql # not compatible
query I rowsort label-1337
SELECT 19 * - NULLIF ( 84, + 72 ) * - ( CASE + + COUNT ( * ) WHEN 62 THEN NULL ELSE - 57 END ) + + + 40 + + + 13 + - 45
----
-90964

query I rowsort
SELECT 30 * + 10
----
300

query I rowsort
SELECT DISTINCT - 1 * ( - + 1 ) * + - 73
----
-73

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1341
SELECT 55 * + - COUNT( + + 62 )
----
-55

skipif mysql # not compatible
query I rowsort label-1341
SELECT 55 * + - COUNT ( + + 62 )
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1342
SELECT DISTINCT - CAST( NULL AS SIGNED ) * 31 AS col1, + 55 + - + 54 AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-1342
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 31 AS col1, + 55 + - + 54 AS col2
----
NULL
1

query I rowsort
SELECT 36 - + ( + + 93 )
----
-57

query I rowsort
SELECT ALL - 93 + - NULLIF ( - 62, - + 95 ) + 92 col1
----
61

query I rowsort
SELECT 45 + - 16
----
29

query I rowsort
SELECT 81 * + 50 AS col2
----
4050

query I rowsort
SELECT 55 * + 62
----
3410

query I rowsort
SELECT ALL 2 + - 88
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-1349
SELECT ALL - 35 + + MIN( + 67 ) AS col1
----
32

skipif mysql # not compatible
query I rowsort label-1349
SELECT ALL - 35 + + MIN ( + 67 ) AS col1
----
32

query I rowsort
SELECT DISTINCT + + 85 + - 14
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1351
SELECT ALL - COALESCE ( - CAST( AVG ( + 15 ) AS SIGNED ), - - 1 DIV + 88 - - + CASE - 89 WHEN + - COALESCE ( + 11, - ( - 13 ) * + + COALESCE ( - + 68, AVG ( + + 82 ) * + + COUNT( * ) * - NULLIF ( ( 51 ), - - 88 + + 22 ), + 10 ) * - 28 + + 14 - - - 83 - + + CAST( NULL AS SIGNED ) * - 5 ) THEN NULL WHEN - NULLIF ( MIN( 70 ), 4 ) - - + AVG ( ALL + 93 ) THEN + 37 * 46 + 6 WHEN + 52 THEN - NULLIF ( + ( + CAST( - 35 AS SIGNED ) ), + NULLIF ( CAST( 55 AS SIGNED ), - 43 + 28 ) * - 19 ) * - 48 END )
----
15

skipif mysql # not compatible
query I rowsort label-1351
SELECT ALL - COALESCE ( - CAST ( AVG ( + 15 ) AS INTEGER ), - - 1 / + 88 - - + CASE - 89 WHEN + - COALESCE ( + 11, - ( - 13 ) * + + COALESCE ( - + 68, AVG ( + + 82 ) * + + COUNT ( * ) * - NULLIF ( ( 51 ), - - 88 + + 22 ), + 10 ) * - 28 + + 14 - - - 83 - + + CAST ( NULL AS INTEGER ) * - 5 ) THEN NULL WHEN - NULLIF ( MIN ( 70 ), 4 ) - - + AVG ( ALL + 93 ) THEN + 37 * 46 + 6 WHEN + 52 THEN - NULLIF ( + ( + CAST ( - 35 AS INTEGER ) ), + NULLIF ( CAST ( 55 AS INTEGER ), - 43 + 28 ) * - 19 ) * - 48 END )
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1352
SELECT ALL MIN( DISTINCT NULLIF ( - - 7, 89 + + - 32 ) ) + + + ( - 88 ) + - 66 DIV + COALESCE ( + 28, 93 ) AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-1352
SELECT ALL MIN ( DISTINCT NULLIF ( - - 7, 89 + + - 32 ) ) + + + ( - 88 ) + - 66 / + COALESCE ( + 28, 93 ) AS col1
----
-83

query II rowsort
SELECT - 67 - 75, + 30 col0
----
-142
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1354
SELECT ALL + 44 + 63 - - COUNT( * ) * 90 / + CAST( NULL AS SIGNED ), COUNT( * ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-1354
SELECT ALL + 44 + 63 - - COUNT ( * ) * 90 / + CAST ( NULL AS INTEGER ), COUNT ( * ) AS col2
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1355
SELECT ALL - 94 + + 88 + + SUM( - 48 ) + + - NULLIF ( + COUNT( * ), - ( + COUNT( DISTINCT 84 ) ) )
----
-55

skipif mysql # not compatible
query I rowsort label-1355
SELECT ALL - 94 + + 88 + + SUM ( - 48 ) + + - NULLIF ( + COUNT ( * ), - ( + COUNT ( DISTINCT 84 ) ) )
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-1356
SELECT - 56 * 4 - COUNT( * )
----
-225

skipif mysql # not compatible
query I rowsort label-1356
SELECT - 56 * 4 - COUNT ( * )
----
-225

onlyif mysql # aggregate syntax: 
query I rowsort label-1357
SELECT COUNT( * ) + + + NULLIF ( COUNT( * ), - 97 + + 81 ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-1357
SELECT COUNT ( * ) + + + NULLIF ( COUNT ( * ), - 97 + + 81 ) AS col2
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1358
SELECT 34 DIV - 85 - COALESCE ( + 21, - 10, - 40 + 47 + - 96 * + + CAST( NULL AS SIGNED ) * - - 95 ) + COALESCE ( - 28, + 90 + 35 * - NULLIF ( + MAX( DISTINCT - 93 ), + 59 DIV 67 ) ) + COALESCE ( - 23, - MIN( 94 ) + CASE 98 WHEN - SUM( DISTINCT + + 81 ) * 58 + - 63 THEN + - 53 WHEN + + MAX( DISTINCT + 37 ) THEN NULL END ) * + 83
----
-1958

skipif mysql # not compatible
query I rowsort label-1358
SELECT 34 / - 85 - COALESCE ( + 21, - 10, - 40 + 47 + - 96 * + + CAST ( NULL AS INTEGER ) * - - 95 ) + COALESCE ( - 28, + 90 + 35 * - NULLIF ( + MAX ( DISTINCT - 93 ), + 59 / 67 ) ) + COALESCE ( - 23, - MIN ( 94 ) + CASE 98 WHEN - SUM ( DISTINCT + + 81 ) * 58 + - 63 THEN + - 53 WHEN + + MAX ( DISTINCT + 37 ) THEN NULL END ) * + 83
----
-1958

query I rowsort
SELECT ALL + 60 * + 36 - - 92 AS col1
----
2252

query I rowsort
SELECT 77 * - 43 * + + 32 AS col2
----
-105952

query I rowsort
SELECT DISTINCT - 74 * 35 - - 58 + - 38 AS col0
----
-2570

query I rowsort
SELECT + 6 * + 62 AS col1
----
372

onlyif mysql # DIV for integer division: 
query I rowsort label-1363
SELECT - 89 DIV + - 74 * 1 + + - 56 col0
----
-55

skipif mysql # not compatible
query I rowsort label-1363
SELECT - 89 / + - 74 * 1 + + - 56 col0
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1364
SELECT ALL + - CASE 87 WHEN + CAST( NULL AS SIGNED ) THEN CAST( 79 AS SIGNED ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1364
SELECT ALL + - CASE 87 WHEN + CAST ( NULL AS INTEGER ) THEN CAST ( 79 AS INTEGER ) END AS col2
----
NULL

query I rowsort
SELECT + 52 + - + 81 + - + 97 + + 35 AS col1
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-1366
SELECT - 34 * - ( CASE - 21 WHEN 65 THEN + + 52 * + 55 * - ( 65 ) * + 92 * - COUNT( * ) ELSE 94 END ) * 32
----
102272

skipif mysql # not compatible
query I rowsort label-1366
SELECT - 34 * - ( CASE - 21 WHEN 65 THEN + + 52 * + 55 * - ( 65 ) * + 92 * - COUNT ( * ) ELSE 94 END ) * 32
----
102272

query I rowsort
SELECT DISTINCT 40 * - 53
----
-2120

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

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

onlyif mysql # aggregate syntax: 
query III rowsort label-1369
SELECT + 4 * ( 27 ) col2, 12 + + + 85 * + COUNT( * ) AS col0, - 66
----
108
97
-66

skipif mysql # not compatible
query III rowsort label-1369
SELECT + 4 * ( 27 ) col2, 12 + + + 85 * + COUNT ( * ) AS col0, - 66
----
108
97
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-1370
SELECT MAX( - 6 )
----
-6

skipif mysql # not compatible
query I rowsort label-1370
SELECT MAX ( - 6 )
----
-6

query I rowsort
SELECT ALL - 87 + - + 55 AS col0
----
-142

onlyif mysql # aggregate syntax: 
query I rowsort label-1372
SELECT COUNT( 61 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1372
SELECT COUNT ( 61 ) AS col2
----
1

query II rowsort
SELECT ALL + 24 + + + 10 * - + 60, 48 + - 16 AS col2
----
-576
32

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1375
SELECT - COUNT( * ) * + 48 * + COALESCE ( - COUNT( * ), - 81 DIV - - 49 ) + 15
----
63

skipif mysql # not compatible
query I rowsort label-1375
SELECT - COUNT ( * ) * + 48 * + COALESCE ( - COUNT ( * ), - 81 / - - 49 ) + 15
----
63

query I rowsort
SELECT ALL 32 + 91 AS col1
----
123

query I rowsort
SELECT + 38 + + 85
----
123

query II rowsort
SELECT 22 AS col2, 68
----
22
68

query I rowsort
SELECT + 15 + + + 90 AS col2
----
105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1380
SELECT - COALESCE ( - + CASE + 94 WHEN + - 89 + - - 85 THEN - 32 WHEN + - AVG ( ALL - CAST( + 5 AS SIGNED ) ) + - CAST( NULL AS SIGNED ) + 23 + ( - CASE - NULLIF ( + + 3, - + COUNT( * ) ) WHEN - 53 * - + 54 THEN NULL ELSE + 61 END ) + NULLIF ( - COUNT( * ), + COUNT( * ) + - COUNT( * ) + 93 ) * - 62 THEN 43 + + + 85 ELSE NULL END, 47 * - 26 + - 65 + 43 ) + - 46
----
1198

skipif mysql # not compatible
query I rowsort label-1380
SELECT - COALESCE ( - + CASE + 94 WHEN + - 89 + - - 85 THEN - 32 WHEN + - AVG ( ALL - CAST ( + 5 AS INTEGER ) ) + - CAST ( NULL AS INTEGER ) + 23 + ( - CASE - NULLIF ( + + 3, - + COUNT ( * ) ) WHEN - 53 * - + 54 THEN NULL ELSE + 61 END ) + NULLIF ( - COUNT ( * ), + COUNT ( * ) + - COUNT ( * ) + 93 ) * - 62 THEN 43 + + + 85 ELSE NULL END, 47 * - 26 + - 65 + 43 ) + - 46
----
1198

query I rowsort
SELECT ALL + 52 + - 12
----
40

query I rowsort
SELECT DISTINCT - 79 * + - 93 AS col1
----
7347

query I rowsort
SELECT ALL + 25 + + 61
----
86

query I rowsort
SELECT - + 78 + + - 64 + - ( + 56 )
----
-198

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

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

query I rowsort
SELECT ALL - + 20 * - - COALESCE ( + - 55, - 58 ) + - 46
----
1054

onlyif mysql # DIV for integer division: 
query I rowsort label-1387
SELECT - 18 DIV - ( + ( - 11 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1387
SELECT - 18 / - ( + ( - 11 ) ) AS col1
----
-1

query I rowsort
SELECT - ( - 80 ) + 81 AS col2
----
161

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

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

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

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

query I rowsort
SELECT ALL - + 28 * - 60
----
1680

query I rowsort
SELECT - + ( 57 ) * - 57 + + 80 * - 6 + - 90
----
2679

onlyif mysql # aggregate syntax: 
query I rowsort label-1393
SELECT + 3 * 63 * + 31 * - 29 * 70 * ( + COUNT( * ) )
----
-11893770

skipif mysql # not compatible
query I rowsort label-1393
SELECT + 3 * 63 * + 31 * - 29 * 70 * ( + COUNT ( * ) )
----
-11893770

onlyif mysql # aggregate syntax: 
query I rowsort label-1394
SELECT ALL + SUM( 65 ) AS col0
----
65

skipif mysql # not compatible
query I rowsort label-1394
SELECT ALL + SUM ( 65 ) AS col0
----
65

query I rowsort
SELECT - 47 - 67 - - 47 - - 88 AS col0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-1396
SELECT - - 76 * ( - - COUNT( * ) ) + + 65 + - + 79 * + COUNT( * ) * + 86 * - - 88 + 29 col0
----
-597702

skipif mysql # not compatible
query I rowsort label-1396
SELECT - - 76 * ( - - COUNT ( * ) ) + + 65 + - + 79 * + COUNT ( * ) * + 86 * - - 88 + 29 col0
----
-597702

onlyif mysql # aggregate syntax: 
query I rowsort label-1397
SELECT ( SUM( DISTINCT - 15 ) ) AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-1397
SELECT ( SUM ( DISTINCT - 15 ) ) AS col1
----
-15

query I rowsort
SELECT ALL + 55 * - - 15 + - - 88 col0
----
913

onlyif mysql # aggregate syntax: 
query I rowsort label-1399
SELECT - 97 * 95 + - COUNT( * )
----
-9216

skipif mysql # not compatible
query I rowsort label-1399
SELECT - 97 * 95 + - COUNT ( * )
----
-9216

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1401
SELECT ALL - COALESCE ( - NULLIF ( COUNT( * ), + 6 ), + + 23 ) * - 12 * + 49 + COUNT( 93 ) + + 7
----
-580

skipif mysql # not compatible
query I rowsort label-1401
SELECT ALL - COALESCE ( - NULLIF ( COUNT ( * ), + 6 ), + + 23 ) * - 12 * + 49 + COUNT ( 93 ) + + 7
----
-580

query I rowsort
SELECT + 75 * - 10 AS col2
----
-750

query II rowsort
SELECT + NULLIF ( - 23, 48 * - + 97 / - 84 ) - + 36 AS col0, - 73 AS col0
----
-59
-73

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1405
SELECT + 39 DIV - 53, COUNT( * ) AS col2
----
0
1

skipif mysql # not compatible
query II rowsort label-1405
SELECT + 39 / - 53, COUNT ( * ) AS col2
----
0
1

query I rowsort
SELECT + 97 + - 39 AS col1
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1407
SELECT + CAST( NULL AS SIGNED ) AS col1, MAX( + - 99 )
----
NULL
-99

skipif mysql # not compatible
query II rowsort label-1407
SELECT + CAST ( NULL AS INTEGER ) AS col1, MAX ( + - 99 )
----
NULL
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-1408
SELECT + 15 * - COALESCE ( CASE NULLIF ( + 36, + 59 + + - COALESCE ( + + 30, 64 ) - - 58 * - 8 ) WHEN + - ( - CASE - 82 WHEN - 39 THEN 3 / - 63 / 86 * - 77 END ) + - 73 THEN NULL WHEN + NULLIF ( - - 58, + COALESCE ( 9, + - AVG ( DISTINCT - 66 ) * - 80 ) ) / + 32 THEN NULL ELSE COUNT( * ) END, + 67, - + 27 ) * + 36
----
-540

skipif mysql # not compatible
query I rowsort label-1408
SELECT + 15 * - COALESCE ( CASE NULLIF ( + 36, + 59 + + - COALESCE ( + + 30, 64 ) - - 58 * - 8 ) WHEN + - ( - CASE - 82 WHEN - 39 THEN 3 / - 63 / 86 * - 77 END ) + - 73 THEN NULL WHEN + NULLIF ( - - 58, + COALESCE ( 9, + - AVG ( DISTINCT - 66 ) * - 80 ) ) / + 32 THEN NULL ELSE COUNT ( * ) END, + 67, - + 27 ) * + 36
----
-540

query I rowsort
SELECT ALL 85 * - + 52 AS col1
----
-4420

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1410
SELECT - ( - NULLIF ( - 40, - 22 * - COUNT( DISTINCT - 13 ) ) ) AS col0, + MAX( DISTINCT 57 ) DIV + - 87
----
-40
0

skipif mysql # not compatible
query II rowsort label-1410
SELECT - ( - NULLIF ( - 40, - 22 * - COUNT ( DISTINCT - 13 ) ) ) AS col0, + MAX ( DISTINCT 57 ) / + - 87
----
-40
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1411
SELECT ALL CAST( + + 88 AS SIGNED ) * - + 56 + 98 * 21
----
-2870

skipif mysql # not compatible
query I rowsort label-1411
SELECT ALL CAST ( + + 88 AS INTEGER ) * - + 56 + 98 * 21
----
-2870

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1413
SELECT ALL 68, COUNT( + + 11 ) AS col2
----
68
1

skipif mysql # not compatible
query II rowsort label-1413
SELECT ALL 68, COUNT ( + + 11 ) AS col2
----
68
1

query I rowsort
SELECT ALL CASE - 20 WHEN - - 67 * - + 31 THEN + 76 ELSE NULL END col1
----
NULL

query I rowsort
SELECT ALL 19 * + ( - + 31 ) AS col0
----
-589

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

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

query I rowsort
SELECT - 58 * 26 * 15 * - + 64 AS col1
----
1447680

onlyif mysql # aggregate syntax: 
query II rowsort label-1418
SELECT - 20, 64 + - + 75 * - - 57 - - COUNT( 78 ) * + + 10 col2
----
-20
-4201

skipif mysql # not compatible
query II rowsort label-1418
SELECT - 20, 64 + - + 75 * - - 57 - - COUNT ( 78 ) * + + 10 col2
----
-20
-4201

onlyif mysql # aggregate syntax: 
query I rowsort label-1419
SELECT - COUNT( + - 0 ) * - - 39 * - MAX( + - 30 ) AS col0
----
-1170

skipif mysql # not compatible
query I rowsort label-1419
SELECT - COUNT ( + - 0 ) * - - 39 * - MAX ( + - 30 ) AS col0
----
-1170

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1420
SELECT + COUNT( * ) + CAST( NULL AS SIGNED ) + + + 96 * 27 * - 64 / + + 22 * - 93
----
NULL

skipif mysql # not compatible
query I rowsort label-1420
SELECT + COUNT ( * ) + CAST ( NULL AS INTEGER ) + + + 96 * 27 * - 64 / + + 22 * - 93
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1421
SELECT - COALESCE ( + - COUNT( * ), - 21 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1421
SELECT - COALESCE ( + - COUNT ( * ), - 21 ) AS col2
----
1

query I rowsort
SELECT + - 56 * - + 83 AS col2
----
4648

onlyif mysql # aggregate syntax: 
query II rowsort label-1423
SELECT + COUNT( * ) AS col2, + 62 * - 35 AS col2
----
1
-2170

skipif mysql # not compatible
query II rowsort label-1423
SELECT + COUNT ( * ) AS col2, + 62 * - 35 AS col2
----
1
-2170

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1424
SELECT ALL - COUNT( * ) col0, 71 * + CAST( NULL AS SIGNED ) + - MAX( DISTINCT - + 94 ) + - - 39 * 44 col2
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-1424
SELECT ALL - COUNT ( * ) col0, 71 * + CAST ( NULL AS INTEGER ) + - MAX ( DISTINCT - + 94 ) + - - 39 * 44 col2
----
-1
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1425
SELECT ALL - 11 * - + 75 * - CAST( NULL AS SIGNED ) * - - CAST( 24 AS SIGNED ) * + + 77 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1425
SELECT ALL - 11 * - + 75 * - CAST ( NULL AS INTEGER ) * - - CAST ( 24 AS INTEGER ) * + + 77 AS col0
----
NULL

query I rowsort
SELECT - 65 - - + 74 AS col1
----
9

query II rowsort
SELECT - - 37 AS col0, - CASE + - 32 WHEN + AVG ( ALL 39 ) / 56 THEN - - 8 END
----
37
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1428
SELECT - 79 + - COUNT( * ) AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-1428
SELECT - 79 + - COUNT ( * ) AS col0
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1429
SELECT MAX( ALL - + CAST( NULL AS SIGNED ) ) + - 19 * + + 52
----
NULL

skipif mysql # not compatible
query I rowsort label-1429
SELECT MAX ( ALL - + CAST ( NULL AS INTEGER ) ) + - 19 * + + 52
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1430
SELECT ALL - CASE - - MIN( - + 49 ) WHEN - + CASE - 36 WHEN + 21 * - - COUNT( * ) + + COUNT( * ) THEN 97 END * + 44 THEN - 78 * + - 18 * 78 + + 80 * COUNT( * ) WHEN - CAST( NULL AS SIGNED ) + - 33 + + - 38 * 34 THEN NULL END * - 26 + 61 AS col2, - 9 AS col2
----
NULL
-9

skipif mysql # not compatible
query II rowsort label-1430
SELECT ALL - CASE - - MIN ( - + 49 ) WHEN - + CASE - 36 WHEN + 21 * - - COUNT ( * ) + + COUNT ( * ) THEN 97 END * + 44 THEN - 78 * + - 18 * 78 + + 80 * COUNT ( * ) WHEN - CAST ( NULL AS INTEGER ) + - 33 + + - 38 * 34 THEN NULL END * - 26 + 61 AS col2, - 9 AS col2
----
NULL
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-1431
SELECT - - 86 * - COUNT( * ) + + 65 - + 5 AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-1431
SELECT - - 86 * - COUNT ( * ) + + 65 - + 5 AS col2
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1432
SELECT DISTINCT + CASE - 90 WHEN - 54 / 59 + + 50 * + 69 THEN + - ( - + CAST( NULL AS SIGNED ) ) WHEN - 83 THEN NULL ELSE NULL END + 9
----
NULL

skipif mysql # not compatible
query I rowsort label-1432
SELECT DISTINCT + CASE - 90 WHEN - 54 / 59 + + 50 * + 69 THEN + - ( - + CAST ( NULL AS INTEGER ) ) WHEN - 83 THEN NULL ELSE NULL END + 9
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1434
SELECT ALL - 23 + - 27 - + + COUNT( * ) + + COUNT( * ) + 88 * - + CAST( + 2 AS SIGNED ) AS col1, + 36 AS col1
----
-226
36

skipif mysql # not compatible
query II rowsort label-1434
SELECT ALL - 23 + - 27 - + + COUNT ( * ) + + COUNT ( * ) + 88 * - + CAST ( + 2 AS INTEGER ) AS col1, + 36 AS col1
----
-226
36

query I rowsort
SELECT ALL + 69 + + 54 * + 77
----
4227

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1436
SELECT - 93 * + + ( - + COALESCE ( - + 15, + 83, MAX( + CAST( NULL AS SIGNED ) ), + + COUNT( * ) ) ) + + + 26
----
-1369

skipif mysql # not compatible
query I rowsort label-1436
SELECT - 93 * + + ( - + COALESCE ( - + 15, + 83, MAX ( + CAST ( NULL AS INTEGER ) ), + + COUNT ( * ) ) ) + + + 26
----
-1369

query I rowsort
SELECT DISTINCT - 42 + 93 + + - 46
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1438
SELECT 69 * - + ( + 11 ) + + 8 * - + 83 * COUNT( ALL + - 3 ) + + + 23 + 4
----
-1396

skipif mysql # not compatible
query I rowsort label-1438
SELECT 69 * - + ( + 11 ) + + 8 * - + 83 * COUNT ( ALL + - 3 ) + + + 23 + 4
----
-1396

query I rowsort
SELECT 39 * + 97 * - 91 AS col2
----
-344253

query I rowsort
SELECT 61 * + 87 + - 3
----
5304

onlyif mysql # aggregate syntax: 
query II rowsort label-1441
SELECT 64 * - 31, COUNT( * ) + - 49 AS col2
----
-1984
-48

skipif mysql # not compatible
query II rowsort label-1441
SELECT 64 * - 31, COUNT ( * ) + - 49 AS col2
----
-1984
-48

query I rowsort
SELECT + 23 * + 50 + + 98 * - - 65 AS col0
----
7520

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1444
SELECT + 60 * ( + MAX( DISTINCT + + 82 ) ) + 98, - 76 AS col1
----
5018
-76

skipif mysql # not compatible
query II rowsort label-1444
SELECT + 60 * ( + MAX ( DISTINCT + + 82 ) ) + 98, - 76 AS col1
----
5018
-76

query I rowsort
SELECT + ( + + 88 ) + - - 52 AS col2
----
140

query I rowsort
SELECT - 60 * + 61 AS col2
----
-3660

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1447
SELECT ALL - 7 DIV + COUNT( * ) AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-1447
SELECT ALL - 7 / + COUNT ( * ) AS col1
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1448
SELECT + COUNT( - 61 ) + 87 + + 86 DIV + + 19
----
92

skipif mysql # not compatible
query I rowsort label-1448
SELECT + COUNT ( - 61 ) + 87 + + 86 / + + 19
----
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1449
SELECT - COUNT( * ) DIV - 18 * - 11 AS col2, 15 * - 76 AS col1
----
0
-1140

skipif mysql # not compatible
query II rowsort label-1449
SELECT - COUNT ( * ) / - 18 * - 11 AS col2, 15 * - 76 AS col1
----
0
-1140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1450
SELECT - - CAST( - 98 AS SIGNED ) AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-1450
SELECT - - CAST ( - 98 AS INTEGER ) AS col2
----
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1451
SELECT + COALESCE ( - ( - + 5 ), + 6 ) DIV - ( - - CAST( + ( + 45 ) AS SIGNED ) ) + + - COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1451
SELECT + COALESCE ( - ( - + 5 ), + 6 ) / - ( - - CAST ( + ( + 45 ) AS INTEGER ) ) + + - COUNT ( * ) AS col2
----
-1

query II rowsort
SELECT - 36 + 97 AS col1, 54 * + 12 AS col0
----
61
648

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

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

query I rowsort
SELECT - 76 * - 65
----
4940

onlyif mysql # aggregate syntax: 
query I rowsort label-1455
SELECT + ( 92 ) + + - 16 + + + 82 + CASE - 9 WHEN - 83 * - + ( + 34 ) * + 62 THEN + COUNT( DISTINCT 0 ) / ( - 1 ) + ( - COUNT( * ) ) + + - 67 - - COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1455
SELECT + ( 92 ) + + - 16 + + + 82 + CASE - 9 WHEN - 83 * - + ( + 34 ) * + 62 THEN + COUNT ( DISTINCT 0 ) / ( - 1 ) + ( - COUNT ( * ) ) + + - 67 - - COUNT ( * ) END AS col1
----
NULL

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

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

query I rowsort
SELECT 44 + - + 69 col1
----
-25

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1459
SELECT ALL - CAST( + + 68 AS SIGNED ) + - - 98 + - 51
----
-21

skipif mysql # not compatible
query I rowsort label-1459
SELECT ALL - CAST ( + + 68 AS INTEGER ) + - - 98 + - 51
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1460
SELECT DISTINCT + 82 * - NULLIF ( 64, - COALESCE ( - + COUNT( * ), + CAST( NULL AS SIGNED ) ) )
----
-5248

skipif mysql # not compatible
query I rowsort label-1460
SELECT DISTINCT + 82 * - NULLIF ( 64, - COALESCE ( - + COUNT ( * ), + CAST ( NULL AS INTEGER ) ) )
----
-5248

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

skipif mysql # not compatible
query I rowsort label-1461
SELECT DISTINCT - MAX ( 49 )
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1462
SELECT DISTINCT 81 + CAST( 62 AS SIGNED ) * 48 AS col0
----
3057

skipif mysql # not compatible
query I rowsort label-1462
SELECT DISTINCT 81 + CAST ( 62 AS INTEGER ) * 48 AS col0
----
3057

query I rowsort
SELECT ALL + 65 * - 49 * - ( + 36 )
----
114660

query I rowsort
SELECT ALL - 37 + + ( + - AVG ( - CASE - - ( + - 19 ) WHEN + 83 + + + 61 + - 53 / 87 THEN + 79 WHEN - - 33 THEN NULL ELSE NULL END ) ) AS col0
----
NULL

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

skipif mysql # not compatible
query II rowsort label-1465
SELECT DISTINCT + CAST ( COUNT ( * ) AS INTEGER ) * 1, 66 AS col0
----
1
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1466
SELECT COUNT( * ) * COALESCE ( - - 23, - ( - - CAST( - 89 AS SIGNED ) ) * + COALESCE ( - 95, + - 20, + COUNT( * ) + NULLIF ( - COUNT( * ), + ( 28 ) * 87 + + - AVG ( 29 ) * + 92 ), - + 75 ), - - COUNT( * ) ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-1466
SELECT COUNT ( * ) * COALESCE ( - - 23, - ( - - CAST ( - 89 AS INTEGER ) ) * + COALESCE ( - 95, + - 20, + COUNT ( * ) + NULLIF ( - COUNT ( * ), + ( 28 ) * 87 + + - AVG ( 29 ) * + 92 ), - + 75 ), - - COUNT ( * ) ) AS col0
----
23

query I rowsort
SELECT 74 * 9 AS col1
----
666

query I rowsort
SELECT ALL + 65 * - + 46
----
-2990

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1469
SELECT DISTINCT - 11 * + COALESCE ( - CAST( NULL AS SIGNED ), - 38 + - ( + 76 ) ) AS col2
----
1254

skipif mysql # not compatible
query I rowsort label-1469
SELECT DISTINCT - 11 * + COALESCE ( - CAST ( NULL AS INTEGER ), - 38 + - ( + 76 ) ) AS col2
----
1254

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

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

query I rowsort
SELECT ALL + 38 - + 69
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-1472
SELECT 64 * - + 51 * COUNT( * )
----
-3264

skipif mysql # not compatible
query I rowsort label-1472
SELECT 64 * - + 51 * COUNT ( * )
----
-3264

query I rowsort
SELECT ALL + 75 - - - 96 AS col2
----
-21

query I rowsort
SELECT ALL - COALESCE ( + 26, + + 62 ) AS col2
----
-26

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

query I rowsort
SELECT 64 * - 35 AS col2
----
-2240

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

query I rowsort
SELECT 20 * + 83
----
1660

query I rowsort
SELECT ALL 37 * - 48 AS col1
----
-1776

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

skipif mysql # not compatible
query I rowsort label-1480
SELECT + MIN ( 49 )
----
49

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

skipif mysql # not compatible
query I rowsort label-1481
SELECT DISTINCT + + 84 * + COUNT ( * ) AS col0
----
84

query II rowsort
SELECT ALL - 10 AS col2, 7
----
-10
7

query I rowsort
SELECT DISTINCT + CASE + + ( - 37 ) WHEN - - 9 + 76 THEN - 6 * + - 1 WHEN + 72 THEN NULL ELSE - 5 END AS col2
----
-5

query II rowsort
SELECT ALL 77, + 16 AS col0
----
77
16

onlyif mysql # aggregate syntax: 
query I rowsort label-1485
SELECT + COUNT( * ) * - - 43 + + 28 + - 42 AS col1
----
29

skipif mysql # not compatible
query I rowsort label-1485
SELECT + COUNT ( * ) * - - 43 + + 28 + - 42 AS col1
----
29

query I rowsort
SELECT ALL + 84 * 49 AS col0
----
4116

query II rowsort
SELECT 61, 84 + 40 AS col2
----
61
124

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1488
SELECT + + 40 DIV + 56 + + - MAX( + ( - 28 ) ) DIV + + 67 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1488
SELECT + + 40 / + 56 + + - MAX ( + ( - 28 ) ) / + + 67 AS col1
----
0

query I rowsort
SELECT - + 54 + - 76
----
-130

query I rowsort
SELECT ALL 66 + - 72 AS col2
----
-6

query I rowsort
SELECT + 36 * - 52
----
-1872

onlyif mysql # DIV for integer division: 
query I rowsort label-1492
SELECT ALL - + 17 DIV - + 10
----
1

skipif mysql # not compatible
query I rowsort label-1492
SELECT ALL - + 17 / - + 10
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1493
SELECT ALL 10 + + MIN( - 36 ) * - ( 70 ) * + 6 * + 36 * + - 6 + - 98, - 65 col2
----
-3266008
-65

skipif mysql # not compatible
query II rowsort label-1493
SELECT ALL 10 + + MIN ( - 36 ) * - ( 70 ) * + 6 * + 36 * + - 6 + - 98, - 65 col2
----
-3266008
-65

query I rowsort
SELECT ALL - ( - 16 ) * - 24
----
-384

query I rowsort
SELECT + - 13 + - 66 AS col0
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-1496
SELECT ALL 40 + COUNT( 55 ) * + + 11
----
51

skipif mysql # not compatible
query I rowsort label-1496
SELECT ALL 40 + COUNT ( 55 ) * + + 11
----
51

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1497
SELECT + NULLIF ( - - CAST( NULL AS DECIMAL ), 9 - - 76 ) + + 73 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1497
SELECT + NULLIF ( - - CAST ( NULL AS REAL ), 9 - - 76 ) + + 73 col1
----
NULL

query II rowsort
SELECT ALL 34 * - 21 AS col0, 22
----
-714
22

query I rowsort
SELECT + 98 + - ( + 81 ) AS col0
----
17

query I rowsort
SELECT + NULLIF ( + 99, - - NULLIF ( + 76, + - 2 ) ) AS col0
----
99

onlyif mysql # aggregate syntax: 
query II rowsort label-1501
SELECT + 9 * + 10 * + 49 * + 89 - + 54 * + MAX( 57 ) + COUNT( * ) - + NULLIF ( - 80, - 83 * 34 ) AS col1, + 95 col0
----
389493
95

skipif mysql # not compatible
query II rowsort label-1501
SELECT + 9 * + 10 * + 49 * + 89 - + 54 * + MAX ( 57 ) + COUNT ( * ) - + NULLIF ( - 80, - 83 * 34 ) AS col1, + 95 col0
----
389493
95

query I rowsort
SELECT ALL 28 * + 94 * 8 - 30 * + 98 + - + 2 AS col2
----
18114

query II rowsort
SELECT ( - 38 ) AS col1, 95 AS col2
----
-38
95

query I rowsort
SELECT ALL - 34 * + 83
----
-2822

onlyif mysql # DIV for integer division: 
query I rowsort label-1505
SELECT + 52 DIV 9 + 91 AS col1
----
96

skipif mysql # not compatible
query I rowsort label-1505
SELECT + 52 / 9 + 91 AS col1
----
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1506
SELECT + COUNT( * ) DIV + 62 + + 68 + + + 60 AS col1
----
128

skipif mysql # not compatible
query I rowsort label-1506
SELECT + COUNT ( * ) / + 62 + + 68 + + + 60 AS col1
----
128

query I rowsort
SELECT - 14 * + - 84
----
1176

query I rowsort
SELECT ALL - 35 * 14 * + + 25 AS col0
----
-12250

query I rowsort
SELECT + 26 + 22 + + 45 + - 40
----
53

query I rowsort
SELECT - 90 * + 17 AS col0
----
-1530

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1511
SELECT + 27 * - 67 + + COUNT( * ) + 20 + + 20 DIV - COUNT( * )
----
-1808

skipif mysql # not compatible
query I rowsort label-1511
SELECT + 27 * - 67 + + COUNT ( * ) + 20 + + 20 / - COUNT ( * )
----
-1808

query I rowsort
SELECT - 95 * 93 - - 8 AS col0
----
-8827

onlyif mysql # aggregate syntax: 
query II rowsort label-1513
SELECT DISTINCT + 3 * - - 9 + CASE - 44 WHEN + + 39 THEN NULL WHEN - 49 * - 4 THEN - COUNT( + 0 ) END AS col0, + ( - 8 ) * 87 * - + 0 - 0 AS col2
----
NULL
0

skipif mysql # not compatible
query II rowsort label-1513
SELECT DISTINCT + 3 * - - 9 + CASE - 44 WHEN + + 39 THEN NULL WHEN - 49 * - 4 THEN - COUNT ( + 0 ) END AS col0, + ( - 8 ) * 87 * - + 0 - 0 AS col2
----
NULL
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1514
SELECT ALL - 74 * 41 + 74 DIV 79 + + COALESCE ( + + 49, - + 98 ) AS col2, ( 48 ) * MIN( - + 82 )
----
-2985
-3936

skipif mysql # not compatible
query II rowsort label-1514
SELECT ALL - 74 * 41 + 74 / 79 + + COALESCE ( + + 49, - + 98 ) AS col2, ( 48 ) * MIN ( - + 82 )
----
-2985
-3936

query II rowsort
SELECT - - 19 + + + 50 AS col1, 52 AS col2
----
69
52

query I rowsort
SELECT - 98 * + + 65 * - 17 * + 28 + - ( - 43 ) AS col2
----
3032163

onlyif mysql # DIV for integer division: 
query I rowsort label-1517
SELECT + 67 + - - 57 DIV 27
----
69

skipif mysql # not compatible
query I rowsort label-1517
SELECT + 67 + - - 57 / 27
----
69

query I rowsort
SELECT ALL - 72 + + 49 * 9 * - 72 AS col1
----
-31824

query I rowsort
SELECT - - 92 + + 88
----
180

query I rowsort
SELECT ALL + 37 + 21 + + - 18
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1521
SELECT DISTINCT - 78 * 70 - + NULLIF ( + 1, - 40 * - 32 ) / 88 + - ( + CASE + + 22 WHEN CAST( NULL AS SIGNED ) - + COUNT( * ) / - - 98 * 93 THEN + CAST( NULL AS SIGNED ) / SUM( + 45 ) / - + 68 WHEN - + 95 THEN NULL END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1521
SELECT DISTINCT - 78 * 70 - + NULLIF ( + 1, - 40 * - 32 ) / 88 + - ( + CASE + + 22 WHEN CAST ( NULL AS INTEGER ) - + COUNT ( * ) / - - 98 * 93 THEN + CAST ( NULL AS INTEGER ) / SUM ( + 45 ) / - + 68 WHEN - + 95 THEN NULL END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1522
SELECT + 28 * 13 * - - 73 * + MAX( ALL + 60 ) * - + 95 * 5 AS col0
----
-757302000

skipif mysql # not compatible
query I rowsort label-1522
SELECT + 28 * 13 * - - 73 * + MAX ( ALL + 60 ) * - + 95 * 5 AS col0
----
-757302000

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1523
SELECT ALL CAST( 50 AS SIGNED )
----
50

skipif mysql # not compatible
query I rowsort label-1523
SELECT ALL CAST ( 50 AS INTEGER )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-1524
SELECT - SUM( - - 27 ) * + 44 AS col2
----
-1188

skipif mysql # not compatible
query I rowsort label-1524
SELECT - SUM ( - - 27 ) * + 44 AS col2
----
-1188

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1527
SELECT ALL 86 DIV - 7
----
-12

skipif mysql # not compatible
query I rowsort label-1527
SELECT ALL 86 / - 7
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1528
SELECT - 92 * - CAST( - + 22 AS SIGNED )
----
-2024

skipif mysql # not compatible
query I rowsort label-1528
SELECT - 92 * - CAST ( - + 22 AS INTEGER )
----
-2024

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1529
SELECT + CASE + + 11 WHEN + + ( - 32 ) THEN NULL ELSE - 69 * - - 69 + 75 DIV 77 + ( + + 36 ) END * ( - COUNT( DISTINCT 87 ) ) * - + 35
----
-165375

skipif mysql # not compatible
query I rowsort label-1529
SELECT + CASE + + 11 WHEN + + ( - 32 ) THEN NULL ELSE - 69 * - - 69 + 75 / 77 + ( + + 36 ) END * ( - COUNT ( DISTINCT 87 ) ) * - + 35
----
-165375

query I rowsort
SELECT ALL 27 * + 53
----
1431

onlyif mysql # DIV for integer division: 
query I rowsort label-1531
SELECT + 11 DIV 44 - - 11 AS col2
----
11

skipif mysql # not compatible
query I rowsort label-1531
SELECT + 11 / 44 - - 11 AS col2
----
11

query I rowsort
SELECT + 85 - + - 77 AS col0
----
162

query I rowsort
SELECT + 2 * - 31
----
-62

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1534
SELECT 67 * - - CASE - - 32 WHEN - 19 - + 9 + + CASE 89 WHEN 34 * + COUNT( ALL 21 ) THEN + - ( 61 ) WHEN 28 THEN NULL WHEN + 81 THEN 87 ELSE NULL END THEN + 80 WHEN COUNT( * ) * - - 64 + - COALESCE ( - 20, - 46 - - COALESCE ( - 19, 58 ) ) THEN - 2 + - 28 + - + ( + - 73 ) * - 54 * + CAST( NULL AS DECIMAL ) * - 39 ELSE NULL END + + 91
----
NULL

skipif mysql # not compatible
query I rowsort label-1534
SELECT 67 * - - CASE - - 32 WHEN - 19 - + 9 + + CASE 89 WHEN 34 * + COUNT ( ALL 21 ) THEN + - ( 61 ) WHEN 28 THEN NULL WHEN + 81 THEN 87 ELSE NULL END THEN + 80 WHEN COUNT ( * ) * - - 64 + - COALESCE ( - 20, - 46 - - COALESCE ( - 19, 58 ) ) THEN - 2 + - 28 + - + ( + - 73 ) * - 54 * + CAST ( NULL AS REAL ) * - 39 ELSE NULL END + + 91
----
NULL

query I rowsort
SELECT DISTINCT 26 * - - 40 AS col1
----
1040

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1536
SELECT ALL + 28 DIV 81 + - MAX( DISTINCT + 15 ) + - - NULLIF ( + 50, + + ( COUNT( * ) ) - + + 2 )
----
35

skipif mysql # not compatible
query I rowsort label-1536
SELECT ALL + 28 / 81 + - MAX ( DISTINCT + 15 ) + - - NULLIF ( + 50, + + ( COUNT ( * ) ) - + + 2 )
----
35

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1538
SELECT ALL - SUM( ALL 51 ) DIV ( 94 ) * + 92 - + 62
----
-62

skipif mysql # not compatible
query I rowsort label-1538
SELECT ALL - SUM ( ALL 51 ) / ( 94 ) * + 92 - + 62
----
-62

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1539
SELECT 27 DIV - COUNT( * ) + + - 15 col1, ( 22 ) + - 79
----
-42
-57

skipif mysql # not compatible
query II rowsort label-1539
SELECT 27 / - COUNT ( * ) + + - 15 col1, ( 22 ) + - 79
----
-42
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1540
SELECT - 55 * - - 74 * + + NULLIF ( COALESCE ( - 1, - COUNT( * ) - - + ( - - 94 ) ), - 60 * - CASE + 66 WHEN + - 65 THEN - AVG ( ALL - CAST( NULL AS SIGNED ) ) ELSE - 67 END + COUNT( 23 ) + + NULLIF ( + 49, 5 ) ) + - + 18 + - 21 AS col2
----
4031

skipif mysql # not compatible
query I rowsort label-1540
SELECT - 55 * - - 74 * + + NULLIF ( COALESCE ( - 1, - COUNT ( * ) - - + ( - - 94 ) ), - 60 * - CASE + 66 WHEN + - 65 THEN - AVG ( ALL - CAST ( NULL AS INTEGER ) ) ELSE - 67 END + COUNT ( 23 ) + + NULLIF ( + 49, 5 ) ) + - + 18 + - 21 AS col2
----
4031

query I rowsort
SELECT ALL 99 + - 58 * 54 * - 21 * + 97
----
6379983

query I rowsort
SELECT DISTINCT 3 + - 49
----
-46

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

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

query I rowsort
SELECT 37 * + + 44 * - 80 AS col0
----
-130240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1545
SELECT DISTINCT 61 * - - ( + 14 ) * COUNT( * ) + - + MAX( DISTINCT - CAST( NULL AS SIGNED ) ) + - 33 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1545
SELECT DISTINCT 61 * - - ( + 14 ) * COUNT ( * ) + - + MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) + - 33 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1546
SELECT ALL - 96 AS col1, SUM( DISTINCT - - 16 ) * - 30 + - ( - ( - COUNT( * ) ) ) + + + 16 + - - 57 * + + 20 + 4 DIV 59 + + 47 - - 85 * - 67
----
-96
-4973

skipif mysql # not compatible
query II rowsort label-1546
SELECT ALL - 96 AS col1, SUM ( DISTINCT - - 16 ) * - 30 + - ( - ( - COUNT ( * ) ) ) + + + 16 + - - 57 * + + 20 + 4 / 59 + + 47 - - 85 * - 67
----
-96
-4973

query I rowsort
SELECT + NULLIF ( 41, + 37 * + 1 ) - 60
----
-19

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

skipif mysql # not compatible
query I rowsort label-1548
SELECT 29 / COUNT ( * )
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1549
SELECT ALL 88 + + CAST( - + COUNT( * ) AS SIGNED ) + + - COUNT( * ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-1549
SELECT ALL 88 + + CAST ( - + COUNT ( * ) AS INTEGER ) + + - COUNT ( * ) AS col2
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-1550
SELECT DISTINCT + - 16 - 64 - + CASE 55 WHEN COUNT( * ) * - + 74 + + + SUM( + 70 ) - - 3 + + - COUNT( * ) THEN NULL WHEN + 98 THEN + 30 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1550
SELECT DISTINCT + - 16 - 64 - + CASE 55 WHEN COUNT ( * ) * - + 74 + + + SUM ( + 70 ) - - 3 + + - COUNT ( * ) THEN NULL WHEN + 98 THEN + 30 ELSE NULL END
----
NULL

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

skipif mysql # not compatible
query II rowsort label-1551
SELECT - 97 AS col2, CAST ( NULL AS INTEGER ) AS col0
----
-97
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1552
SELECT CASE + 46 WHEN + - 5 THEN NULLIF ( + + 37, - COUNT( * ) / + COALESCE ( ( + 48 ), 12 / - 20, - 76 * + 30 * ( + 57 ) + + ( - 71 ) ) + COALESCE ( 82, - 55 * + COUNT( * ) * - - 32 + - 58 ) + + 88 ) + NULLIF ( - + ( - 24 ), + + 66 * + + AVG ( + - 82 ) + - + ( 0 ) + - 86 ) WHEN + COUNT( * ) THEN NULL END * - 45
----
NULL

skipif mysql # not compatible
query I rowsort label-1552
SELECT CASE + 46 WHEN + - 5 THEN NULLIF ( + + 37, - COUNT ( * ) / + COALESCE ( ( + 48 ), 12 / - 20, - 76 * + 30 * ( + 57 ) + + ( - 71 ) ) + COALESCE ( 82, - 55 * + COUNT ( * ) * - - 32 + - 58 ) + + 88 ) + NULLIF ( - + ( - 24 ), + + 66 * + + AVG ( + - 82 ) + - + ( 0 ) + - 86 ) WHEN + COUNT ( * ) THEN NULL END * - 45
----
NULL

query I rowsort
SELECT 49 + + 64 * + 57 + + + ( 21 ) AS col1
----
3718

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1554
SELECT ALL + 6 - + COUNT( NULLIF ( - 43, - 79 ) ) + 48 + - 65 * COUNT( * ) - + - 72 + + 35 + + ( - COUNT( * ) ) DIV 77 * COUNT( * ) * 55 AS col0
----
95

skipif mysql # not compatible
query I rowsort label-1554
SELECT ALL + 6 - + COUNT ( NULLIF ( - 43, - 79 ) ) + 48 + - 65 * COUNT ( * ) - + - 72 + + 35 + + ( - COUNT ( * ) ) / 77 * COUNT ( * ) * 55 AS col0
----
95

query I rowsort
SELECT DISTINCT - 52 * + ( 41 ) * - - 19 + + 95 AS col0
----
-40413

query I rowsort
SELECT 58 + + + 58
----
116

query I rowsort
SELECT 64 * - 22 AS col0
----
-1408

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

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

query II rowsort
SELECT 38 col1, - 23 * 12 + - 13
----
38
-289

query I rowsort
SELECT 83 + 64 AS col1
----
147

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1561
SELECT 54 DIV CAST( 40 AS SIGNED ) col2
----
1

skipif mysql # not compatible
query I rowsort label-1561
SELECT 54 / CAST ( 40 AS INTEGER ) col2
----
1

query I rowsort
SELECT 90 * + 91 col1
----
8190

query I rowsort
SELECT 64 + + 35
----
99

query II rowsort
SELECT 54 AS col0, + 87
----
54
87

onlyif mysql # DIV for integer division: 
query I rowsort label-1565
SELECT 73 + 71 DIV + 91 AS col0
----
73

skipif mysql # not compatible
query I rowsort label-1565
SELECT 73 + 71 / + 91 AS col0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-1566
SELECT COUNT( * ) - + + 47 * + 91
----
-4276

skipif mysql # not compatible
query I rowsort label-1566
SELECT COUNT ( * ) - + + 47 * + 91
----
-4276

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

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1570
SELECT DISTINCT + MIN( COALESCE ( + 58, 69 DIV + 76 + + - 2 + 59 ) ) + - + COUNT( * ) AS col0
----
57

skipif mysql # not compatible
query I rowsort label-1570
SELECT DISTINCT + MIN ( COALESCE ( + 58, 69 / + 76 + + - 2 + 59 ) ) + - + COUNT ( * ) AS col0
----
57

query II rowsort
SELECT - 95 AS col0, + 12 + 5 - + + 50
----
-95
-33

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1573
SELECT + 53 + - - ( + + NULLIF ( COUNT( * ), 91 + - 80 ) ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1573
SELECT + 53 + - - ( + + NULLIF ( COUNT ( * ), 91 + - 80 ) ) + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - 5 + 9 * - + 80
----
-725

query II rowsort
SELECT + - ( 7 ) AS col0, - 50 * - 29 AS col0
----
-7
1450

onlyif mysql # aggregate syntax: 
query I rowsort label-1576
SELECT ALL + MAX( - - 67 ) * 50
----
3350

skipif mysql # not compatible
query I rowsort label-1576
SELECT ALL + MAX ( - - 67 ) * 50
----
3350

onlyif mysql # aggregate syntax: 
query I rowsort label-1577
SELECT - ( - - NULLIF ( 30, - + COUNT( * ) / + COUNT( * ) + + + 55 ) ) + - COUNT( DISTINCT + 48 ) * 92 col2
----
-122

skipif mysql # not compatible
query I rowsort label-1577
SELECT - ( - - NULLIF ( 30, - + COUNT ( * ) / + COUNT ( * ) + + + 55 ) ) + - COUNT ( DISTINCT + 48 ) * 92 col2
----
-122

query I rowsort
SELECT ALL - - CASE + 25 WHEN 87 THEN + - 50 * + - 27 / + + 75 ELSE NULL END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1579
SELECT 44 + 27 - - COUNT( * ) + - 86 * 7 col1
----
-530

skipif mysql # not compatible
query I rowsort label-1579
SELECT 44 + 27 - - COUNT ( * ) + - 86 * 7 col1
----
-530

onlyif mysql # DIV for integer division: 
query I rowsort label-1580
SELECT DISTINCT + 78 DIV + 87 col2
----
0

skipif mysql # not compatible
query I rowsort label-1580
SELECT DISTINCT + 78 / + 87 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1581
SELECT - 43 * + + MAX( + + 24 ) + + 13 - + - 82 AS col1
----
-937

skipif mysql # not compatible
query I rowsort label-1581
SELECT - 43 * + + MAX ( + + 24 ) + + 13 - + - 82 AS col1
----
-937

query I rowsort
SELECT ALL + 29 * + 48
----
1392

query I rowsort
SELECT - - ( - + 43 ) col1
----
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1584
SELECT DISTINCT + COUNT( + 64 ) DIV + 94 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1584
SELECT DISTINCT + COUNT ( + 64 ) / + 94 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1585
SELECT ALL MIN( DISTINCT - 77 ) AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-1585
SELECT ALL MIN ( DISTINCT - 77 ) AS col1
----
-77

query II rowsort
SELECT 83 * + + 89 AS col1, 76 * - 4 AS col2
----
7387
-304

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1587
SELECT ALL + NULLIF ( + AVG ( + + CASE COALESCE ( - + 52, + - 55 ) WHEN + 58 THEN + 59 END ), - 25 ) + CAST( 2 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1587
SELECT ALL + NULLIF ( + AVG ( + + CASE COALESCE ( - + 52, + - 55 ) WHEN + 58 THEN + 59 END ), - 25 ) + CAST ( 2 AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + 31 + - - 11
----
42

query I rowsort
SELECT 5 + + + 47 + + 73 * - 26 - + 52 AS col0
----
-1898

query I rowsort
SELECT ALL + 13 * + ( + 51 ) AS col0
----
663

onlyif mysql # DIV for integer division: 
query II rowsort label-1591
SELECT - 64 DIV + 35 + - - 6 + + ( - - 97 ) AS col1, - 23
----
102
-23

skipif mysql # not compatible
query II rowsort label-1591
SELECT - 64 / + 35 + - - 6 + + ( - - 97 ) AS col1, - 23
----
102
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-1592
SELECT NULLIF ( - COUNT( ALL 15 ), - 59 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1592
SELECT NULLIF ( - COUNT ( ALL 15 ), - 59 ) AS col1
----
-1

query I rowsort
SELECT NULLIF ( + 69, - ( + 95 ) ) col2
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1594
SELECT ALL + + 89 * + + 95 * - CAST( NULL AS SIGNED ) + + - 98 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1594
SELECT ALL + + 89 * + + 95 * - CAST ( NULL AS INTEGER ) + + - 98 AS col1
----
NULL

query I rowsort
SELECT - 58 * - ( 95 ) + - 12
----
5498

onlyif mysql # aggregate syntax: 
query I rowsort label-1596
SELECT - COUNT( ALL - 23 ) * 84
----
-84

skipif mysql # not compatible
query I rowsort label-1596
SELECT - COUNT ( ALL - 23 ) * 84
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-1597
SELECT ALL COALESCE ( 21, + + 51 ) * CASE + 68 WHEN 43 THEN NULL WHEN 20 + - 49 * + - ( + ( - 22 ) ) * - 25 + + 75 / + 72 + 20 * + 33 THEN COUNT( * ) END * - 6 + + - 69
----
NULL

skipif mysql # not compatible
query I rowsort label-1597
SELECT ALL COALESCE ( 21, + + 51 ) * CASE + 68 WHEN 43 THEN NULL WHEN 20 + - 49 * + - ( + ( - 22 ) ) * - 25 + + 75 / + 72 + 20 * + 33 THEN COUNT ( * ) END * - 6 + + - 69
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1598
SELECT - + 79 DIV - + 97 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1598
SELECT - + 79 / - + 97 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1599
SELECT DISTINCT 25 * + + 49 * 58 * COALESCE ( - + 40, COUNT( * ) ) * - COUNT( * ) - - + 58 - - 89
----
2842147

skipif mysql # not compatible
query I rowsort label-1599
SELECT DISTINCT 25 * + + 49 * 58 * COALESCE ( - + 40, COUNT ( * ) ) * - COUNT ( * ) - - + 58 - - 89
----
2842147

onlyif mysql # aggregate syntax: 
query I rowsort label-1600
SELECT + MIN( - + 74 ) - + NULLIF ( - + 85, - - 95 * 82 )
----
11

skipif mysql # not compatible
query I rowsort label-1600
SELECT + MIN ( - + 74 ) - + NULLIF ( - + 85, - - 95 * 82 )
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-1601
SELECT ALL + 41 DIV - 4 col1
----
-10

skipif mysql # not compatible
query I rowsort label-1601
SELECT ALL + 41 / - 4 col1
----
-10

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

skipif mysql # not compatible
query I rowsort label-1602
SELECT ALL + 49 * + + COUNT ( * ) col1
----
49

query I rowsort
SELECT + NULLIF ( 79, 25 * 86 ) * 85 AS col1
----
6715

query II rowsort
SELECT + + NULLIF ( + 67, + 41 ), 30 * - + 13 AS col2
----
67
-390

query I rowsort
SELECT + + 92 col2
----
92

query I rowsort
SELECT + - 5 * + 23 * - 72 AS col1
----
8280

onlyif mysql # aggregate syntax: 
query I rowsort label-1607
SELECT ALL + + NULLIF ( - COALESCE ( - 66, - COUNT( * ) * + + 63 + 86 ), 15 * - NULLIF ( + 99, - COUNT( * ) ) + COUNT( * ) + 51 ) * + 2
----
132

skipif mysql # not compatible
query I rowsort label-1607
SELECT ALL + + NULLIF ( - COALESCE ( - 66, - COUNT ( * ) * + + 63 + 86 ), 15 * - NULLIF ( + 99, - COUNT ( * ) ) + COUNT ( * ) + 51 ) * + 2
----
132

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1610
SELECT - CASE - 44 WHEN ( 78 ) THEN AVG ( ALL + 76 ) / MIN( ALL + 91 ) * + - 22 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1610
SELECT - CASE - 44 WHEN ( 78 ) THEN AVG ( ALL + 76 ) / MIN ( ALL + 91 ) * + - 22 END
----
NULL

query I rowsort
SELECT DISTINCT 69 + - 7 + 20 AS col1
----
82

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

query I rowsort
SELECT ALL 4 + + + 33 AS col1
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1614
SELECT - 92 - - 63 + + 57, NULLIF ( COALESCE ( COALESCE ( + + 65, - - 68 + - - 80 + - 84, 33 * COUNT( * ) ), - 73 ), - CAST( NULL AS SIGNED ) ) AS col0
----
28
65

skipif mysql # not compatible
query II rowsort label-1614
SELECT - 92 - - 63 + + 57, NULLIF ( COALESCE ( COALESCE ( + + 65, - - 68 + - - 80 + - 84, 33 * COUNT ( * ) ), - 73 ), - CAST ( NULL AS INTEGER ) ) AS col0
----
28
65

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

skipif mysql # not compatible
query I rowsort label-1615
SELECT - COALESCE ( + COUNT ( * ), - 60 )
----
-1

query I rowsort
SELECT ALL 68 + 4 + - 34
----
38

query I rowsort
SELECT DISTINCT ( + 20 ) + - 36
----
-16

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

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

query I rowsort
SELECT ALL 62 * 9
----
558

query I rowsort
SELECT DISTINCT 20 * - + 87
----
-1740

onlyif mysql # aggregate syntax: 
query I rowsort label-1621
SELECT + 32 + - COUNT( * ) AS col1
----
31

skipif mysql # not compatible
query I rowsort label-1621
SELECT + 32 + - COUNT ( * ) AS col1
----
31

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

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

query I rowsort
SELECT DISTINCT 55 + - - 19 AS col1
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1624
SELECT ALL 90 + COUNT( * ) + 93 * COUNT( * ) DIV + 65
----
92

skipif mysql # not compatible
query I rowsort label-1624
SELECT ALL 90 + COUNT ( * ) + 93 * COUNT ( * ) / + 65
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1625
SELECT DISTINCT SUM( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1625
SELECT DISTINCT SUM ( CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT + - 16 + 40 AS col0
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1627
SELECT - 95 + + - 26 - + - 69 + + CASE + 41 WHEN + CAST( 64 AS SIGNED ) / - 48 * + - 7 * SUM( DISTINCT + 20 ) * + + COUNT( * ) + 54 THEN + + CAST( - COUNT( * ) AS SIGNED ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1627
SELECT - 95 + + - 26 - + - 69 + + CASE + 41 WHEN + CAST ( 64 AS INTEGER ) / - 48 * + - 7 * SUM ( DISTINCT + 20 ) * + + COUNT ( * ) + 54 THEN + + CAST ( - COUNT ( * ) AS INTEGER ) END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1628
SELECT ALL + 71 DIV + 89 + + 73 - - + 47 - - 63 * + ( 79 )
----
5097

skipif mysql # not compatible
query I rowsort label-1628
SELECT ALL + 71 / + 89 + + 73 - - + 47 - - 63 * + ( 79 )
----
5097

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1629
SELECT ALL - + 82 / + + 45 - - + 62 + + CAST( - - CASE + 72 WHEN - 33 / 61 THEN - COUNT( * ) END AS SIGNED ) * + 75 * - 2 + - 56 * - 39 + - 90 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1629
SELECT ALL - + 82 / + + 45 - - + 62 + + CAST ( - - CASE + 72 WHEN - 33 / 61 THEN - COUNT ( * ) END AS INTEGER ) * + 75 * - 2 + - 56 * - 39 + - 90 AS col2
----
NULL

query I rowsort
SELECT ALL + 44 * + 15
----
660

query II rowsort
SELECT DISTINCT + 63, 73 AS col2
----
63
73

onlyif mysql # aggregate syntax: 
query II rowsort label-1632
SELECT ALL + + 15 AS col1, - SUM( - 21 ) col2
----
15
21

skipif mysql # not compatible
query II rowsort label-1632
SELECT ALL + + 15 AS col1, - SUM ( - 21 ) col2
----
15
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1633
SELECT + + 89 * - 87 + + - ( - NULLIF ( + 67, - 52 ) ) * - - 96 * - + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1633
SELECT + + 89 * - 87 + + - ( - NULLIF ( + 67, - 52 ) ) * - - 96 * - + CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT - + 84 * + - 80
----
6720

query I rowsort
SELECT - 37 + - + 24 * 33
----
-829

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1636
SELECT - COUNT( ALL CAST( + ( - - 60 ) AS SIGNED ) ) + 54 DIV + 99
----
-1

skipif mysql # not compatible
query I rowsort label-1636
SELECT - COUNT ( ALL CAST ( + ( - - 60 ) AS INTEGER ) ) + 54 / + 99
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1637
SELECT - 25 DIV 95 + + MAX( DISTINCT 75 ) AS col2
----
75

skipif mysql # not compatible
query I rowsort label-1637
SELECT - 25 / 95 + + MAX ( DISTINCT 75 ) AS col2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1638
SELECT + + 55 * + - 41 + - + 43 * - COUNT( * ) + + + 31 + - 44 AS col0
----
-2225

skipif mysql # not compatible
query I rowsort label-1638
SELECT + + 55 * + - 41 + - + 43 * - COUNT ( * ) + + + 31 + - 44 AS col0
----
-2225

onlyif mysql # DIV for integer division: 
query I rowsort label-1639
SELECT ALL - 68 DIV + - 66
----
1

skipif mysql # not compatible
query I rowsort label-1639
SELECT ALL - 68 / + - 66
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1640
SELECT DISTINCT + 27 * CAST( NULL AS DECIMAL ) * - 94 * + 84 + - 61 * 92 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1640
SELECT DISTINCT + 27 * CAST ( NULL AS REAL ) * - 94 * + 84 + - 61 * 92 AS col0
----
NULL

query I rowsort
SELECT ALL 40 * 16
----
640

query I rowsort
SELECT DISTINCT 33 * - ( + - 95 ) + 26 - + + 45 * 52 * - 7 AS col2
----
19541

onlyif mysql # aggregate syntax: 
query I rowsort label-1643
SELECT ALL 2 * - + 76 * - 34 + 8 + + NULLIF ( - + 1, - - 82 - COUNT( ALL 26 ) / + COALESCE ( - - 20, + + COUNT( * ) / - - 46 ) * + ( + 60 ) / + + 31 + + - 31 + + 59 )
----
5175

skipif mysql # not compatible
query I rowsort label-1643
SELECT ALL 2 * - + 76 * - 34 + 8 + + NULLIF ( - + 1, - - 82 - COUNT ( ALL 26 ) / + COALESCE ( - - 20, + + COUNT ( * ) / - - 46 ) * + ( + 60 ) / + + 31 + + - 31 + + 59 )
----
5175

query I rowsort
SELECT CASE WHEN NULL IS NULL THEN - 61 ELSE - ( 43 ) END AS col0
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-1645
SELECT NULLIF ( - 58, - 28 * + ( - 73 ) + - 49 + + - NULLIF ( - - 75, - COALESCE ( - COUNT( * ), + 87 ) ) + - 31 ) AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-1645
SELECT NULLIF ( - 58, - 28 * + ( - 73 ) + - 49 + + - NULLIF ( - - 75, - COALESCE ( - COUNT ( * ), + 87 ) ) + - 31 ) AS col2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-1646
SELECT 12 * - 19 * + - 59 * 12 + - 8 + + + 24 + - COUNT( * ) col1
----
161439

skipif mysql # not compatible
query I rowsort label-1646
SELECT 12 * - 19 * + - 59 * 12 + - 8 + + + 24 + - COUNT ( * ) col1
----
161439

query I rowsort
SELECT + 92 + 93 + 11 AS col2
----
196

onlyif mysql # aggregate syntax: 
query I rowsort label-1648
SELECT DISTINCT - 62 * - - COUNT( * ) + + 37
----
-25

skipif mysql # not compatible
query I rowsort label-1648
SELECT DISTINCT - 62 * - - COUNT ( * ) + + 37
----
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1649
SELECT DISTINCT 13 * + - 59 + - 37 + + COUNT( * ) - - 35 DIV 11 * 47 * + 29 + 91 * + 97
----
12113

skipif mysql # not compatible
query I rowsort label-1649
SELECT DISTINCT 13 * + - 59 + - 37 + + COUNT ( * ) - - 35 / 11 * 47 * + 29 + 91 * + 97
----
12113

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1651
SELECT ALL + NULLIF ( - 62, ( + 81 ) ) * - - 3 DIV + - COUNT( * ) + - COUNT( * )
----
185

skipif mysql # not compatible
query I rowsort label-1651
SELECT ALL + NULLIF ( - 62, ( + 81 ) ) * - - 3 / + - COUNT ( * ) + - COUNT ( * )
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-1652
SELECT DISTINCT + COUNT( * ) + + ( - 15 )
----
-14

skipif mysql # not compatible
query I rowsort label-1652
SELECT DISTINCT + COUNT ( * ) + + ( - 15 )
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-1653
SELECT 18 DIV 11
----
1

skipif mysql # not compatible
query I rowsort label-1653
SELECT 18 / 11
----
1

query I rowsort
SELECT ALL 14 + - 92 AS col1
----
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1655
SELECT 89 * 95 * + - ( 82 ) * - 30 + COUNT( * ) * + 65 * + CAST( NULL AS SIGNED ) / 50 + + ( + + 80 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1655
SELECT 89 * 95 * + - ( 82 ) * - 30 + COUNT ( * ) * + 65 * + CAST ( NULL AS INTEGER ) / 50 + + ( + + 80 )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1656
SELECT 8 DIV - 25, ( + 85 ) AS col1
----
0
85

skipif mysql # not compatible
query II rowsort label-1656
SELECT 8 / - 25, ( + 85 ) AS col1
----
0
85

query II rowsort
SELECT 14 * - 92, - 79 AS col2
----
-1288
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-1658
SELECT DISTINCT 2 * + 0 * + - COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1658
SELECT DISTINCT 2 * + 0 * + - COUNT ( * ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1659
SELECT DISTINCT 98 * COUNT( * ) + - + 17
----
81

skipif mysql # not compatible
query I rowsort label-1659
SELECT DISTINCT 98 * COUNT ( * ) + - + 17
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1660
SELECT + CAST( NULL AS SIGNED ) / + + CAST( + SUM( 14 ) AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1660
SELECT + CAST ( NULL AS INTEGER ) / + + CAST ( + SUM ( 14 ) AS REAL ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 15 * - + 8 AS col2
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-1662
SELECT DISTINCT 25 * + - COUNT( * ) + + 27 col0
----
2

skipif mysql # not compatible
query I rowsort label-1662
SELECT DISTINCT 25 * + - COUNT ( * ) + + 27 col0
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1663
SELECT 50 + - COUNT( * ) + COALESCE ( + 10, + + ( - + 9 ), - 6 DIV 0 * + 71 - - - 70 ) * MAX( 26 ) AS col0
----
309

skipif mysql # not compatible
query I rowsort label-1663
SELECT 50 + - COUNT ( * ) + COALESCE ( + 10, + + ( - + 9 ), - 6 / 0 * + 71 - - - 70 ) * MAX ( 26 ) AS col0
----
309

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1664
SELECT - NULLIF ( + COUNT( * ), 38 ) * - 22 - - 67 DIV + 37 * + COUNT( * ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-1664
SELECT - NULLIF ( + COUNT ( * ), 38 ) * - 22 - - 67 / + 37 * + COUNT ( * ) AS col1
----
23

query I rowsort
SELECT 98 + - 28 + - 9 AS col0
----
61

onlyif mysql # aggregate syntax: 
query II rowsort label-1666
SELECT + - 30 * - CASE - - 47 WHEN + ( 87 ) - - 64 THEN NULL WHEN - 38 THEN + - COUNT( * ) + - COALESCE ( ( - COUNT( * ) ), - - COUNT( * ) * 5 + + 65 ) / - ( COUNT( * ) ) END + - 98, 31 + + 9 col2
----
NULL
40

skipif mysql # not compatible
query II rowsort label-1666
SELECT + - 30 * - CASE - - 47 WHEN + ( 87 ) - - 64 THEN NULL WHEN - 38 THEN + - COUNT ( * ) + - COALESCE ( ( - COUNT ( * ) ), - - COUNT ( * ) * 5 + + 65 ) / - ( COUNT ( * ) ) END + - 98, 31 + + 9 col2
----
NULL
40

onlyif mysql # aggregate syntax: 
query I rowsort label-1667
SELECT MIN( ALL 22 ) AS col2
----
22

skipif mysql # not compatible
query I rowsort label-1667
SELECT MIN ( ALL 22 ) AS col2
----
22

query I rowsort
SELECT + 62 * - 9 * + 55 + + 16 AS col1
----
-30674

query II rowsort
SELECT ALL 54 + 22 AS col2, 34 - 26 col0
----
76
8

onlyif mysql # aggregate syntax: 
query I rowsort label-1670
SELECT - 98 * + COALESCE ( + 26, 46 * - 8 + + COUNT( * ) + + - CASE - + COUNT( * ) WHEN + ( COUNT( * ) ) THEN 57 * 0 + 92 ELSE - + 91 END ) * - - 27 * - 65 + + 18 * 85
----
4473270

skipif mysql # not compatible
query I rowsort label-1670
SELECT - 98 * + COALESCE ( + 26, 46 * - 8 + + COUNT ( * ) + + - CASE - + COUNT ( * ) WHEN + ( COUNT ( * ) ) THEN 57 * 0 + 92 ELSE - + 91 END ) * - - 27 * - 65 + + 18 * 85
----
4473270

query I rowsort
SELECT ALL - + 36 + 46 + - + 76 AS col2
----
-66

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

query I rowsort
SELECT + 47 * + 30 - 16
----
1394

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

query I rowsort
SELECT 74 * + + COALESCE ( - 87, 59 ) col1
----
-6438

query I rowsort
SELECT 9 * - 84 AS col1
----
-756

query I rowsort
SELECT DISTINCT - 71 + 85
----
14

query I rowsort
SELECT DISTINCT - COALESCE ( - 46, + 2 * - - 20 - + - 48 + + 73 ) AS col2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-1679
SELECT 99 - - COUNT( * ) + NULLIF ( - 97, - + 49 )
----
3

skipif mysql # not compatible
query I rowsort label-1679
SELECT 99 - - COUNT ( * ) + NULLIF ( - 97, - + 49 )
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1680
SELECT DISTINCT - NULLIF ( - - CAST( NULL AS SIGNED ), 60 ) * + 24
----
NULL

skipif mysql # not compatible
query I rowsort label-1680
SELECT DISTINCT - NULLIF ( - - CAST ( NULL AS INTEGER ), 60 ) * + 24
----
NULL

query I rowsort
SELECT ALL + 17 + - 64
----
-47

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

skipif mysql # not compatible
query I rowsort label-1682
SELECT ALL - 54 - + COUNT ( * ) AS col1
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-1683
SELECT 89 + - COUNT( ALL + - 74 ) AS col0
----
88

skipif mysql # not compatible
query I rowsort label-1683
SELECT 89 + - COUNT ( ALL + - 74 ) AS col0
----
88

query I rowsort
SELECT 24 * 85
----
2040

query I rowsort
SELECT 34 * - NULLIF ( - 60, + - 82 )
----
2040

query I rowsort
SELECT ALL - 81 * + 18
----
-1458

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

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

query I rowsort
SELECT 24 * - + 87
----
-2088

query I rowsort
SELECT 14 * 26 AS col2
----
364

query I rowsort
SELECT CASE 98 WHEN 43 THEN + 66 END + 43 AS col2
----
NULL

query I rowsort
SELECT 39 * ( 8 * 3 )
----
936

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1692
SELECT CAST( + 89 AS SIGNED ) + ( + COUNT( * ) )
----
90

skipif mysql # not compatible
query I rowsort label-1692
SELECT CAST ( + 89 AS INTEGER ) + ( + COUNT ( * ) )
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-1693
SELECT DISTINCT - 38 DIV 98
----
0

skipif mysql # not compatible
query I rowsort label-1693
SELECT DISTINCT - 38 / 98
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1694
SELECT ALL COUNT( * ) * 70 + NULLIF ( 64 + 4, - 39 + 65 )
----
138

skipif mysql # not compatible
query I rowsort label-1694
SELECT ALL COUNT ( * ) * 70 + NULLIF ( 64 + 4, - 39 + 65 )
----
138

query I rowsort
SELECT ALL 47 * + 77
----
3619

onlyif mysql # aggregate syntax: 
query I rowsort label-1696
SELECT MIN( DISTINCT 68 )
----
68

skipif mysql # not compatible
query I rowsort label-1696
SELECT MIN ( DISTINCT 68 )
----
68

query I rowsort
SELECT ALL 25 * 21 + 26 AS col1
----
551

onlyif mysql # aggregate syntax: 
query I rowsort label-1698
SELECT 74 + + 40 * COUNT( * )
----
114

skipif mysql # not compatible
query I rowsort label-1698
SELECT 74 + + 40 * COUNT ( * )
----
114

query I rowsort
SELECT ALL 50 * - 84 + 76
----
-4124

query I rowsort
SELECT CASE 57 WHEN - 63 * - 4 THEN 26 ELSE NULL END / + 30
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1701
SELECT + 69 DIV 30 + 80
----
82

skipif mysql # not compatible
query I rowsort label-1701
SELECT + 69 / 30 + 80
----
82

query I rowsort
SELECT + COALESCE ( + 39, - 82 )
----
39

query I rowsort
SELECT 64 + + 55
----
119

query I rowsort
SELECT 48 * + 49 - 76 * - 45
----
5772

onlyif mysql # DIV for integer division: 
query I rowsort label-1705
SELECT 9 - 4 DIV 2 AS col1
----
7

skipif mysql # not compatible
query I rowsort label-1705
SELECT 9 - 4 / 2 AS col1
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-1706
SELECT ALL + 91 * 8 + 40 DIV ( 17 * + 45 ) AS col1
----
728

skipif mysql # not compatible
query I rowsort label-1706
SELECT ALL + 91 * 8 + 40 / ( 17 * + 45 ) AS col1
----
728

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1707
SELECT CAST( NULL AS SIGNED ) * + 25 + 45 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1707
SELECT CAST ( NULL AS INTEGER ) * + 25 + 45 AS col1
----
NULL

query I rowsort
SELECT DISTINCT 4 + 67 AS col2
----
71

query I rowsort
SELECT ALL 39 - - 78 * - 89
----
-6903

onlyif mysql # aggregate syntax: 
query I rowsort label-1710
SELECT + COUNT( - 49 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-1710
SELECT + COUNT ( - 49 ) col0
----
1

query I rowsort
SELECT - 9 + - 37
----
-46

query I rowsort
SELECT + CASE - ( AVG ( 15 ) ) WHEN 99 * - 68 THEN + 77 * - 27 ELSE ( + 93 ) + - 89 END AS col1
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1713
SELECT 86 * - MAX( - 70 * 39 ) + CASE + 59 + + COALESCE ( - 24, 7 * + CAST( + 1 AS SIGNED ) + CAST( NULL AS SIGNED ) * 64 ) WHEN + 54 * 49 THEN + ( + ( 34 ) ) * 79 ELSE 50 + 0 END DIV - 50
----
234779

skipif mysql # not compatible
query I rowsort label-1713
SELECT 86 * - MAX ( - 70 * 39 ) + CASE + 59 + + COALESCE ( - 24, 7 * + CAST ( + 1 AS INTEGER ) + CAST ( NULL AS INTEGER ) * 64 ) WHEN + 54 * 49 THEN + ( + ( 34 ) ) * 79 ELSE 50 + 0 END / - 50
----
234779

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

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

query I rowsort
SELECT DISTINCT 38 * + 53
----
2014

query I rowsort
SELECT - 49 * + 92
----
-4508

query I rowsort
SELECT ALL NULLIF ( - 18, - 2 )
----
-18

query I rowsort
SELECT ALL + 96 * 59 AS col1
----
5664

onlyif mysql # DIV for integer division: 
query I rowsort label-1719
SELECT ALL + - NULLIF ( - 27, - 16 * + 78 ) DIV - 72
----
0

skipif mysql # not compatible
query I rowsort label-1719
SELECT ALL + - NULLIF ( - 27, - 16 * + 78 ) / - 72
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1721
SELECT ALL CASE - 65 WHEN MAX( DISTINCT + 76 ) + 85 THEN NULL WHEN + MAX( DISTINCT 23 ) THEN - COUNT( 51 ) + MAX( ALL 64 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1721
SELECT ALL CASE - 65 WHEN MAX ( DISTINCT + 76 ) + 85 THEN NULL WHEN + MAX ( DISTINCT 23 ) THEN - COUNT ( 51 ) + MAX ( ALL 64 ) END AS col0
----
NULL

query I rowsort
SELECT ALL + + 74 * 80 AS col2
----
5920

onlyif mysql # aggregate syntax: 
query I rowsort label-1723
SELECT - + COUNT( * ) - ( - 46 ) * 14 AS col1
----
643

skipif mysql # not compatible
query I rowsort label-1723
SELECT - + COUNT ( * ) - ( - 46 ) * 14 AS col1
----
643

onlyif mysql # aggregate syntax: 
query I rowsort label-1724
SELECT - 17 * MAX( ALL + 41 ) col2
----
-697

skipif mysql # not compatible
query I rowsort label-1724
SELECT - 17 * MAX ( ALL + 41 ) col2
----
-697

query I rowsort
SELECT ALL - + 44 + - 72 AS col0
----
-116

query I rowsort
SELECT ALL + 30 + + 82
----
112

onlyif mysql # DIV for integer division: 
query I rowsort label-1727
SELECT DISTINCT - 72 + - 76 DIV 32
----
-74

skipif mysql # not compatible
query I rowsort label-1727
SELECT DISTINCT - 72 + - 76 / 32
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-1728
SELECT DISTINCT + - 32 + + NULLIF ( NULLIF ( CASE 92 WHEN COUNT( * ) + + 50 / 51 THEN - 62 WHEN 11 THEN 58 WHEN AVG ( ALL 56 ) THEN NULL END, 86 ), 93 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1728
SELECT DISTINCT + - 32 + + NULLIF ( NULLIF ( CASE 92 WHEN COUNT ( * ) + + 50 / 51 THEN - 62 WHEN 11 THEN 58 WHEN AVG ( ALL 56 ) THEN NULL END, 86 ), 93 ) AS col2
----
NULL

query I rowsort
SELECT - - 44 + 41 * + 73 AS col2
----
3037

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

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

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

skipif mysql # not compatible
query I rowsort label-1731
SELECT + + ( + MAX ( - 86 ) )
----
-86

query I rowsort
SELECT - 20 * + 74 AS col0
----
-1480

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1734
SELECT + + CASE - 17 WHEN COUNT( * ) * 35 THEN - 22 * + 3 WHEN 7 THEN + 2 - 78 * ( 25 ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1734
SELECT + + CASE - 17 WHEN COUNT ( * ) * 35 THEN - 22 * + 3 WHEN 7 THEN + 2 - 78 * ( 25 ) ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1735
SELECT DISTINCT COUNT( * ) * + 39 + - 5
----
34

skipif mysql # not compatible
query I rowsort label-1735
SELECT DISTINCT COUNT ( * ) * + 39 + - 5
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1736
SELECT DISTINCT CAST( 33 AS SIGNED ) * - 80 + 69
----
-2571

skipif mysql # not compatible
query I rowsort label-1736
SELECT DISTINCT CAST ( 33 AS INTEGER ) * - 80 + 69
----
-2571

onlyif mysql # DIV for integer division: 
query I rowsort label-1737
SELECT ALL + 89 DIV + 78
----
1

skipif mysql # not compatible
query I rowsort label-1737
SELECT ALL + 89 / + 78
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1738
SELECT + COALESCE ( + ( SUM( ALL 7 ) ), - COUNT( * ) + + 14, - 71 + 61 )
----
7

skipif mysql # not compatible
query I rowsort label-1738
SELECT + COALESCE ( + ( SUM ( ALL 7 ) ), - COUNT ( * ) + + 14, - 71 + 61 )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1739
SELECT DISTINCT + 71 * + 25 * COUNT( * ) AS col2
----
1775

skipif mysql # not compatible
query I rowsort label-1739
SELECT DISTINCT + 71 * + 25 * COUNT ( * ) AS col2
----
1775

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1741
SELECT + CASE + 54 WHEN + 88 THEN 86 * ( - ( + MAX( ALL - 79 ) ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1741
SELECT + CASE + 54 WHEN + 88 THEN 86 * ( - ( + MAX ( ALL - 79 ) ) ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1742
SELECT - ( SUM( DISTINCT - NULLIF ( 85, CAST( NULL AS SIGNED ) ) ) ) DIV + COALESCE ( MIN( + 28 ) * + 97 - 85, 63 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1742
SELECT - ( SUM ( DISTINCT - NULLIF ( 85, CAST ( NULL AS INTEGER ) ) ) ) / + COALESCE ( MIN ( + 28 ) * + 97 - 85, 63 ) AS col0
----
0

query I rowsort
SELECT CASE + - 36 WHEN 90 THEN ( - 99 ) WHEN + 11 * AVG ( 11 ) + - 26 THEN - ( 32 ) / 46 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1744
SELECT + COUNT( * ) - 73 - 38 * + 97
----
-3758

skipif mysql # not compatible
query I rowsort label-1744
SELECT + COUNT ( * ) - 73 - 38 * + 97
----
-3758

query I rowsort
SELECT + 27 * + ( + 48 )
----
1296

query I rowsort
SELECT + 86 * + 99 AS col1
----
8514

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

skipif mysql # not compatible
query I rowsort label-1747
SELECT + COUNT ( * ) / - + 69 AS col2
----
0

query I rowsort
SELECT + NULLIF ( - 51, + 39 ) AS col1
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1749
SELECT ALL + 54 * + 97 - 76 DIV + COUNT( * )
----
5162

skipif mysql # not compatible
query I rowsort label-1749
SELECT ALL + 54 * + 97 - 76 / + COUNT ( * )
----
5162

query I rowsort
SELECT + 91 * 14 * 93 AS col1
----
118482

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1751
SELECT CASE + COUNT( * ) WHEN - CASE + CAST( + 71 AS SIGNED ) WHEN + ( 9 ) THEN 74 * - 83 WHEN + SUM( ALL 69 ) - 15 THEN NULL END THEN NULL WHEN + 60 THEN 6 * - 92 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1751
SELECT CASE + COUNT ( * ) WHEN - CASE + CAST ( + 71 AS INTEGER ) WHEN + ( 9 ) THEN 74 * - 83 WHEN + SUM ( ALL 69 ) - 15 THEN NULL END THEN NULL WHEN + 60 THEN 6 * - 92 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1752
SELECT + 26 * CASE - MAX( + 83 ) WHEN + 15 THEN - 80 WHEN 43 * + MAX( DISTINCT 14 ) THEN - COUNT( 22 ) ELSE NULL END * COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1752
SELECT + 26 * CASE - MAX ( + 83 ) WHEN + 15 THEN - 80 WHEN 43 * + MAX ( DISTINCT 14 ) THEN - COUNT ( 22 ) ELSE NULL END * COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT + 43 - + - 58 * - 81
----
-4655

onlyif mysql # aggregate syntax: 
query I rowsort label-1754
SELECT ALL NULLIF ( - 79, NULLIF ( + 73, 27 + + COALESCE ( 51 - 37, COALESCE ( - 6, 15 / 52, COUNT( 22 ) / - 79 ) + + 74 ) ) * 40 )
----
-79

skipif mysql # not compatible
query I rowsort label-1754
SELECT ALL NULLIF ( - 79, NULLIF ( + 73, 27 + + COALESCE ( 51 - 37, COALESCE ( - 6, 15 / 52, COUNT ( 22 ) / - 79 ) + + 74 ) ) * 40 )
----
-79

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

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

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

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

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

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

query I rowsort
SELECT ALL 5 * + 96
----
480

query I rowsort
SELECT ALL - 37 + - ( + ( COALESCE ( + 71, - 7 ) ) ) + + 65
----
-43

query I rowsort
SELECT + 79 + - - 31 col0
----
110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1761
SELECT + CASE 53 WHEN 84 / + 24 THEN + MIN( DISTINCT 8 ) WHEN - 10 THEN AVG ( DISTINCT 30 ) / 81 WHEN + ( + 63 ) THEN 57 - - 48 * CAST( + CAST( NULL AS SIGNED ) * + 12 AS SIGNED ) END + 62 / - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1761
SELECT + CASE 53 WHEN 84 / + 24 THEN + MIN ( DISTINCT 8 ) WHEN - 10 THEN AVG ( DISTINCT 30 ) / 81 WHEN + ( + 63 ) THEN 57 - - 48 * CAST ( + CAST ( NULL AS INTEGER ) * + 12 AS INTEGER ) END + 62 / - COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT - 62 - + 86 AS col1
----
-148

query I rowsort
SELECT ALL - 34 + COALESCE ( 63, 85 ) AS col0
----
29

query I rowsort
SELECT ALL 76 + - 69
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1765
SELECT ALL - - COUNT( * ) + - 72 DIV + 16 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-1765
SELECT ALL - - COUNT ( * ) + - 72 / + 16 AS col0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-1766
SELECT DISTINCT - 43 + + - 97 DIV 66
----
-44

skipif mysql # not compatible
query I rowsort label-1766
SELECT DISTINCT - 43 + + - 97 / 66
----
-44

query I rowsort
SELECT - + 15 + - 86 * + 41
----
-3541

onlyif mysql # DIV for integer division: 
query I rowsort label-1768
SELECT DISTINCT + 52 DIV - + ( - 98 )
----
0

skipif mysql # not compatible
query I rowsort label-1768
SELECT DISTINCT + 52 / - + ( - 98 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1769
SELECT ALL - 93 + + CASE 76 WHEN - COUNT( * ) THEN NULL ELSE - 13 * + 41 END + - NULLIF ( 5, ( + 25 ) * CAST( NULL AS SIGNED ) + 54 ) DIV 43 AS col1
----
-626

skipif mysql # not compatible
query I rowsort label-1769
SELECT ALL - 93 + + CASE 76 WHEN - COUNT ( * ) THEN NULL ELSE - 13 * + 41 END + - NULLIF ( 5, ( + 25 ) * CAST ( NULL AS INTEGER ) + 54 ) / 43 AS col1
----
-626

query I rowsort
SELECT ALL - - 29 * + COALESCE ( + 91, 61, 92 ) AS col1
----
2639

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

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

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

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

query I rowsort
SELECT 99 + + 13 AS col0
----
112

query I rowsort
SELECT ALL - ( - 46 ) AS col0
----
46

query I rowsort
SELECT 83 * 52
----
4316

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

skipif mysql # not compatible
query I rowsort label-1776
SELECT + 22 / - 89 * - 50 + - COUNT ( * ) * + 1
----
-1

query II rowsort
SELECT 23, - 39 col0
----
23
-39

query I rowsort
SELECT 99 + - 65 * + 34 AS col2
----
-2111

onlyif mysql # DIV for integer division: 
query I rowsort label-1779
SELECT 22 DIV 80 - 62 * - 74 col2
----
4588

skipif mysql # not compatible
query I rowsort label-1779
SELECT 22 / 80 - 62 * - 74 col2
----
4588

query I rowsort
SELECT ( - - 33 ) - + 97 AS col1
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1781
SELECT ALL CAST( - COUNT( * ) AS SIGNED ) * + - AVG ( DISTINCT 80 ) * + CAST( NULL AS SIGNED ) + + COUNT( DISTINCT - 98 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1781
SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) * + - AVG ( DISTINCT 80 ) * + CAST ( NULL AS INTEGER ) + + COUNT ( DISTINCT - 98 ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - ( - - 6 )
----
-6

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1785
SELECT NULLIF ( - 34, 88 + 26 DIV 85 ) DIV + 18
----
-1

skipif mysql # not compatible
query I rowsort label-1785
SELECT NULLIF ( - 34, 88 + 26 / 85 ) / + 18
----
-1

query I rowsort
SELECT 34 + - 71 + - 47
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-1787
SELECT ALL - COUNT( * ) * - - 26 * - 37 * 88 AS col2
----
84656

skipif mysql # not compatible
query I rowsort label-1787
SELECT ALL - COUNT ( * ) * - - 26 * - 37 * 88 AS col2
----
84656

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1788
SELECT ALL - CASE + 65 WHEN - 79 THEN 22 + CAST( - CASE - 69 WHEN 89 + 10 THEN + 21 * - 20 + - 40 WHEN - 24 + 61 * 97 THEN NULL WHEN 20 + 2 THEN NULL ELSE NULL END - 97 AS SIGNED ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1788
SELECT ALL - CASE + 65 WHEN - 79 THEN 22 + CAST ( - CASE - 69 WHEN 89 + 10 THEN + 21 * - 20 + - 40 WHEN - 24 + 61 * 97 THEN NULL WHEN 20 + 2 THEN NULL ELSE NULL END - 97 AS INTEGER ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1789
SELECT COUNT( * ) + + COUNT( * ) - 99 * + COUNT( * )
----
-97

skipif mysql # not compatible
query I rowsort label-1789
SELECT COUNT ( * ) + + COUNT ( * ) - 99 * + COUNT ( * )
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1790
SELECT DISTINCT 84 * - CAST( NULL AS DECIMAL ) * + CAST( COUNT( * ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1790
SELECT DISTINCT 84 * - CAST ( NULL AS REAL ) * + CAST ( COUNT ( * ) AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1791
SELECT 17 DIV + ( - - 60 ) * COALESCE ( 12 + + 39 * 17, + 10 - 48, - COALESCE ( - ( 0 ), 39 ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1791
SELECT 17 / + ( - - 60 ) * COALESCE ( 12 + + 39 * 17, + 10 - 48, - COALESCE ( - ( 0 ), 39 ) ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1792
SELECT COALESCE ( + 1, 0, 36 ) * COUNT( * ) + 27
----
28

skipif mysql # not compatible
query I rowsort label-1792
SELECT COALESCE ( + 1, 0, 36 ) * COUNT ( * ) + 27
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-1793
SELECT ALL 2 + 81 - COUNT( DISTINCT 88 )
----
82

skipif mysql # not compatible
query I rowsort label-1793
SELECT ALL 2 + 81 - COUNT ( DISTINCT 88 )
----
82

query II rowsort
SELECT + 12 AS col1, 91 + + 63
----
12
154

query I rowsort
SELECT ALL ( + + 54 ) + 32 AS col2
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1796
SELECT 19 DIV + + 36 + - + COUNT( * ) + NULLIF ( - 17, - COUNT( * ) * - 67 )
----
-18

skipif mysql # not compatible
query I rowsort label-1796
SELECT 19 / + + 36 + - + COUNT ( * ) + NULLIF ( - 17, - COUNT ( * ) * - 67 )
----
-18

query II rowsort
SELECT 70 AS col2, - 76 * 51 col0
----
70
-3876

onlyif mysql # aggregate syntax: 
query I rowsort label-1798
SELECT ALL - 5 + - COUNT( * ) - - 19 AS col0
----
13

skipif mysql # not compatible
query I rowsort label-1798
SELECT ALL - 5 + - COUNT ( * ) - - 19 AS col0
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-1799
SELECT ALL + NULLIF ( + + ( - 35 ), 2 ) + + 91 DIV 78
----
-34

skipif mysql # not compatible
query I rowsort label-1799
SELECT ALL + NULLIF ( + + ( - 35 ), 2 ) + + 91 / 78
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1800
SELECT - CAST( + AVG ( DISTINCT - 52 ) AS SIGNED ) col2
----
52

skipif mysql # not compatible
query I rowsort label-1800
SELECT - CAST ( + AVG ( DISTINCT - 52 ) AS INTEGER ) col2
----
52

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

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

query I rowsort
SELECT ALL ( - - 78 ) + - - ( 78 )
----
156

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

query I rowsort
SELECT - 62 * - - 0 AS col0
----
0

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

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

query II rowsort
SELECT + 86 AS col2, - 20 + + 53 + 78
----
86
111

onlyif mysql # aggregate syntax: 
query I rowsort label-1807
SELECT + SUM( DISTINCT 3 ) + + - MAX( ALL 9 ) + + COUNT( * ) * 73
----
67

skipif mysql # not compatible
query I rowsort label-1807
SELECT + SUM ( DISTINCT 3 ) + + - MAX ( ALL 9 ) + + COUNT ( * ) * 73
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-1808
SELECT + NULLIF ( - 90, 61 - MIN( - 46 + - 52 ) ) AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-1808
SELECT + NULLIF ( - 90, 61 - MIN ( - 46 + - 52 ) ) AS col2
----
-90

query I rowsort
SELECT ALL + 29 * + 61
----
1769

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1811
SELECT ALL - NULLIF ( + 38, - 13 + COUNT( * ) * 44 ) DIV - 21
----
1

skipif mysql # not compatible
query I rowsort label-1811
SELECT ALL - NULLIF ( + 38, - 13 + COUNT ( * ) * 44 ) / - 21
----
1

query I rowsort
SELECT - 38 + + - 43
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1813
SELECT 18 * + 58 AS col0, MAX( + CAST( - 67 AS SIGNED ) ) DIV COUNT( * ) + COUNT( - 50 ) col1
----
1044
-66

skipif mysql # not compatible
query II rowsort label-1813
SELECT 18 * + 58 AS col0, MAX ( + CAST ( - 67 AS INTEGER ) ) / COUNT ( * ) + COUNT ( - 50 ) col1
----
1044
-66

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

skipif mysql # not compatible
query I rowsort label-1814
SELECT ALL - 26 / COUNT ( * )
----
-26

query I rowsort
SELECT ( + 46 ) * - 91
----
-4186

onlyif mysql # aggregate syntax: 
query I rowsort label-1816
SELECT + COUNT( ALL - 5 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-1816
SELECT + COUNT ( ALL - 5 ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1817
SELECT DISTINCT - CASE - + COUNT( * ) WHEN MAX( - - 54 ) - - 21 / - 29 THEN 4 * COUNT( * ) WHEN 27 THEN NULL ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1817
SELECT DISTINCT - CASE - + COUNT ( * ) WHEN MAX ( - - 54 ) - - 21 / - 29 THEN 4 * COUNT ( * ) WHEN 27 THEN NULL ELSE NULL END col2
----
NULL

query I rowsort
SELECT 8 * + - 95
----
-760

onlyif mysql # DIV for integer division: 
query I rowsort label-1819
SELECT ALL 80 DIV - 62
----
-1

skipif mysql # not compatible
query I rowsort label-1819
SELECT ALL 80 / - 62
----
-1

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

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

query I rowsort
SELECT 18 * - 39 col2
----
-702

query I rowsort
SELECT ALL - CASE - 95 WHEN - 68 THEN + 50 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1823
SELECT DISTINCT + CASE + + 86 WHEN + 61 * - 43 THEN 89 + + MIN( ALL - 51 ) END * + 42
----
NULL

skipif mysql # not compatible
query I rowsort label-1823
SELECT DISTINCT + CASE + + 86 WHEN + 61 * - 43 THEN 89 + + MIN ( ALL - 51 ) END * + 42
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1824
SELECT ALL - COUNT( DISTINCT 9 ) + 62 + - CASE + 54 WHEN ( - 19 ) THEN 17 END + + 48 / 68 * - 70
----
NULL

skipif mysql # not compatible
query I rowsort label-1824
SELECT ALL - COUNT ( DISTINCT 9 ) + 62 + - CASE + 54 WHEN ( - 19 ) THEN 17 END + + 48 / 68 * - 70
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1825
SELECT ALL + 36 * - + ( + 20 ) * - COALESCE ( + CAST( NULL AS SIGNED ), 18 * 6 ) + + MAX( ALL + 33 )
----
77793

skipif mysql # not compatible
query I rowsort label-1825
SELECT ALL + 36 * - + ( + 20 ) * - COALESCE ( + CAST ( NULL AS INTEGER ), 18 * 6 ) + + MAX ( ALL + 33 )
----
77793

query I rowsort
SELECT ALL + 64 + + + 3
----
67

query I rowsort
SELECT 64 * + + ( + 8 ) * 63 + 64
----
32320

onlyif mysql # aggregate syntax: 
query II rowsort label-1828
SELECT ALL - ( COUNT( * ) ) AS col2, 57 * + 65 * COUNT( * )
----
-1
3705

skipif mysql # not compatible
query II rowsort label-1828
SELECT ALL - ( COUNT ( * ) ) AS col2, 57 * + 65 * COUNT ( * )
----
-1
3705

onlyif mysql # aggregate syntax: 
query I rowsort label-1829
SELECT ALL - 45 * - + MIN( - - 51 )
----
2295

skipif mysql # not compatible
query I rowsort label-1829
SELECT ALL - 45 * - + MIN ( - - 51 )
----
2295

query I rowsort
SELECT DISTINCT 9 + - + ( 78 ) AS col0
----
-69

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1832
SELECT ALL - - 38 DIV 40 * - 96
----
0

skipif mysql # not compatible
query I rowsort label-1832
SELECT ALL - - 38 / 40 * - 96
----
0

query I rowsort
SELECT ALL - 54 + - 3 * + + 85
----
-309

query I rowsort
SELECT - 97 - + 92 AS col2
----
-189

query I rowsort
SELECT DISTINCT - + ( - + 75 ) * - 37
----
-2775

query II rowsort
SELECT DISTINCT + + 25 + + 61 AS col1, 13 + - - 35
----
86
48

onlyif mysql # DIV for integer division: 
query I rowsort label-1837
SELECT 44 * + 10 * ( - - 70 ) + COALESCE ( 38 + 99, 90 - 15 DIV - 96 )
----
30937

skipif mysql # not compatible
query I rowsort label-1837
SELECT 44 * + 10 * ( - - 70 ) + COALESCE ( 38 + 99, 90 - 15 / - 96 )
----
30937

query I rowsort
SELECT - COALESCE ( - 39, + 14 + + 98, 92 - + 35 ) AS col2
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-1839
SELECT ALL 94 - + 10 DIV - 68
----
94

skipif mysql # not compatible
query I rowsort label-1839
SELECT ALL 94 - + 10 / - 68
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1840
SELECT - CASE WHEN NOT + 0 BETWEEN + MIN( ALL CASE 3 WHEN 84 THEN - 60 * 42 ELSE NULL END ) * 55 AND + 34 THEN + 19 + - 10 WHEN NULL <= ( NULL ) THEN COUNT( * ) ELSE CAST( NULL AS SIGNED ) END + + 1 * - 6
----
NULL

skipif mysql # not compatible
query I rowsort label-1840
SELECT - CASE WHEN NOT + 0 BETWEEN + MIN ( ALL CASE 3 WHEN 84 THEN - 60 * 42 ELSE NULL END ) * 55 AND + 34 THEN + 19 + - 10 WHEN NULL <= ( NULL ) THEN COUNT ( * ) ELSE CAST ( NULL AS INTEGER ) END + + 1 * - 6
----
NULL

query I rowsort
SELECT 36 + + ( + - 80 ) AS col2
----
-44

query II rowsort
SELECT + 47 - + 95 AS col2, + 46 AS col2
----
-48
46

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

skipif mysql # not compatible
query I rowsort label-1843
SELECT ALL - 2 / - - 80
----
0

query I rowsort
SELECT + 86 * + - 49 AS col1
----
-4214

query I rowsort
SELECT ALL + - 83 - + + 25
----
-108

query I rowsort
SELECT + 27 + 36 + + ( + ( + 79 ) ) * + ( + 19 ) AS col0
----
1564

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

query I rowsort
SELECT ALL 75 * 4 col1
----
300

query II rowsort
SELECT 62, - ( 46 ) AS col0
----
62
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-1850
SELECT + 86 * + + SUM( ALL + 79 )
----
6794

skipif mysql # not compatible
query I rowsort label-1850
SELECT + 86 * + + SUM ( ALL + 79 )
----
6794

query I rowsort
SELECT + 74 + + + 67
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-1852
SELECT + 50 * + + CASE + COUNT( * ) WHEN - - 51 * + COALESCE ( 78, + MAX( ALL 68 ) + 74, 52 ) * 48 + COALESCE ( + 56, 30, 32 ) THEN NULL WHEN + 4 THEN + 45 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1852
SELECT + 50 * + + CASE + COUNT ( * ) WHEN - - 51 * + COALESCE ( 78, + MAX ( ALL 68 ) + 74, 52 ) * 48 + COALESCE ( + 56, 30, 32 ) THEN NULL WHEN + 4 THEN + 45 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + 72 * + 63 + - 18 col2
----
4518

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1855
SELECT + COUNT( * ) + + - 6 + + 21 + - 68 + + + 35 + COUNT( * ) * - 53 * + ( 43 )
----
-2296

skipif mysql # not compatible
query I rowsort label-1855
SELECT + COUNT ( * ) + + - 6 + + 21 + - 68 + + + 35 + COUNT ( * ) * - 53 * + ( 43 )
----
-2296

onlyif mysql # aggregate syntax: 
query II rowsort label-1856
SELECT ALL - 45 * COUNT( * ) + 57 AS col1, - MAX( - 34 )
----
12
34

skipif mysql # not compatible
query II rowsort label-1856
SELECT ALL - 45 * COUNT ( * ) + 57 AS col1, - MAX ( - 34 )
----
12
34

query I rowsort
SELECT COALESCE ( 79, 9 + 90 + - + 36 )
----
79

query I rowsort
SELECT + 84 + 72 AS col1
----
156

query I rowsort
SELECT ALL - 5 * - - 32 col2
----
-160

query I rowsort
SELECT 69 * + 57 + - 36
----
3897

query I rowsort
SELECT ALL + 68 * 33 + 64 AS col2
----
2308

onlyif mysql # aggregate syntax: 
query I rowsort label-1862
SELECT DISTINCT COALESCE ( + 28, + 52, + MAX( - 73 ) ) * - 92 col0
----
-2576

skipif mysql # not compatible
query I rowsort label-1862
SELECT DISTINCT COALESCE ( + 28, + 52, + MAX ( - 73 ) ) * - 92 col0
----
-2576

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

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

query I rowsort
SELECT ALL 19 * ( + 56 ) + - 88 AS col1
----
976

onlyif mysql # aggregate syntax: 
query I rowsort label-1865
SELECT + NULLIF ( - + 67, - MAX( ALL 72 ) ) * - + 25 + 27 col2
----
1702

skipif mysql # not compatible
query I rowsort label-1865
SELECT + NULLIF ( - + 67, - MAX ( ALL 72 ) ) * - + 25 + 27 col2
----
1702

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1867
SELECT - CAST( - 31 AS SIGNED ) + - + 72 * - 7 + COUNT( * )
----
536

skipif mysql # not compatible
query I rowsort label-1867
SELECT - CAST ( - 31 AS INTEGER ) + - + 72 * - 7 + COUNT ( * )
----
536

query II rowsort
SELECT ALL + + 21 AS col1, 27 + - 34
----
21
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1869
SELECT + 30 AS col1, - 49 + + CAST( 86 AS SIGNED ) * 18 * + SUM( DISTINCT 25 )
----
30
38651

skipif mysql # not compatible
query II rowsort label-1869
SELECT + 30 AS col1, - 49 + + CAST ( 86 AS INTEGER ) * 18 * + SUM ( DISTINCT 25 )
----
30
38651

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1870
SELECT - 95 + 30 + - CASE - COUNT( * ) WHEN CAST( CAST( - 35 AS SIGNED ) AS DECIMAL ) THEN NULL ELSE - 90 END * ( 32 * + ( + ( - MAX( 41 ) ) ) )
----
-118145

skipif mysql # not compatible
query I rowsort label-1870
SELECT - 95 + 30 + - CASE - COUNT ( * ) WHEN CAST ( CAST ( - 35 AS INTEGER ) AS REAL ) THEN NULL ELSE - 90 END * ( 32 * + ( + ( - MAX ( 41 ) ) ) )
----
-118145

query I rowsort
SELECT + 43 * 37 + - 37 + - 89
----
1465

onlyif mysql # aggregate syntax: 
query I rowsort label-1872
SELECT - - 17 * - CASE - 19 WHEN + 21 + - 91 + - 41 THEN - COUNT( * ) * 92 WHEN 44 THEN NULL ELSE NULL END * + 67 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1872
SELECT - - 17 * - CASE - 19 WHEN + 21 + - 91 + - 41 THEN - COUNT ( * ) * 92 WHEN 44 THEN NULL ELSE NULL END * + 67 AS col1
----
NULL

query I rowsort
SELECT - - 11 * + 8 * - - 67
----
5896

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1874
SELECT - 31 * 14 * - CAST( - + 54 AS SIGNED ) + - ( - 19 ) AS col1
----
-23417

skipif mysql # not compatible
query I rowsort label-1874
SELECT - 31 * 14 * - CAST ( - + 54 AS INTEGER ) + - ( - 19 ) AS col1
----
-23417

onlyif mysql # aggregate syntax: 
query II rowsort label-1875
SELECT - 14 col1, - 27 + + COUNT( * )
----
-14
-26

skipif mysql # not compatible
query II rowsort label-1875
SELECT - 14 col1, - 27 + + COUNT ( * )
----
-14
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-1876
SELECT - MIN( + 78 ) * - 13 AS col2
----
1014

skipif mysql # not compatible
query I rowsort label-1876
SELECT - MIN ( + 78 ) * - 13 AS col2
----
1014

onlyif mysql # aggregate syntax: 
query I rowsort label-1877
SELECT DISTINCT - + 10 * + 60 * - NULLIF ( - + 43, 96 ) * COUNT( * ) AS col2
----
-25800

skipif mysql # not compatible
query I rowsort label-1877
SELECT DISTINCT - + 10 * + 60 * - NULLIF ( - + 43, 96 ) * COUNT ( * ) AS col2
----
-25800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1878
SELECT DISTINCT - + 93 DIV + 76 * + CAST( - ( + + COUNT( * ) ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-1878
SELECT DISTINCT - + 93 / + 76 * + CAST ( - ( + + COUNT ( * ) ) AS INTEGER )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1879
SELECT ALL - ( 1 ) DIV - - 96
----
0

skipif mysql # not compatible
query I rowsort label-1879
SELECT ALL - ( 1 ) / - - 96
----
0

query I rowsort
SELECT + + 85 + + 18
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-1881
SELECT - + COUNT( * ) - - 48 + - - 22 * - 37 * - - COUNT( * ) - COUNT( * ) * 10 * 39
----
-1157

skipif mysql # not compatible
query I rowsort label-1881
SELECT - + COUNT ( * ) - - 48 + - - 22 * - 37 * - - COUNT ( * ) - COUNT ( * ) * 10 * 39
----
-1157

onlyif mysql # DIV for integer division: 
query I rowsort label-1882
SELECT + + COALESCE ( 12, - 7 ) DIV - 50
----
0

skipif mysql # not compatible
query I rowsort label-1882
SELECT + + COALESCE ( 12, - 7 ) / - 50
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1883
SELECT - 57 - 48 - + CAST( 94 AS SIGNED ) - COUNT( * )
----
-200

skipif mysql # not compatible
query I rowsort label-1883
SELECT - 57 - 48 - + CAST ( 94 AS INTEGER ) - COUNT ( * )
----
-200

onlyif mysql # DIV for integer division: 
query III rowsort label-1884
SELECT ALL 18 AS col0, + 36 + 1 - - - 48, 61 + - ( 83 ) + NULLIF ( COALESCE ( 2, ( + 11 ), 88 DIV 71, 5 DIV 15 ), 32 * 86 ) AS col1
----
18
-11
-20

skipif mysql # not compatible
query III rowsort label-1884
SELECT ALL 18 AS col0, + 36 + 1 - - - 48, 61 + - ( 83 ) + NULLIF ( COALESCE ( 2, ( + 11 ), 88 / 71, 5 / 15 ), 32 * 86 ) AS col1
----
18
-11
-20

query I rowsort
SELECT - 75 * - 52 AS col2
----
3900

onlyif mysql # aggregate syntax: 
query I rowsort label-1886
SELECT ALL - MAX( DISTINCT + 27 ) + - - 42 AS col2
----
15

skipif mysql # not compatible
query I rowsort label-1886
SELECT ALL - MAX ( DISTINCT + 27 ) + - - 42 AS col2
----
15

query I rowsort
SELECT DISTINCT 86 + - + 53
----
33

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1888
SELECT + 51 DIV + CAST( + 50 AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-1888
SELECT + 51 / + CAST ( + 50 AS INTEGER )
----
1

query I rowsort
SELECT ALL ( + 90 ) + + - 56 AS col0
----
34

query I rowsort
SELECT ALL 21 + - 77 + 32
----
-24

query I rowsort
SELECT - NULLIF ( + 1, 30 * - + 86 + + - 68 + + 79 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1892
SELECT + COUNT( * ) - + 75 AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-1892
SELECT + COUNT ( * ) - + 75 AS col0
----
-74

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

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

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

query I rowsort
SELECT + 9 * - + 77
----
-693

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1896
SELECT + CAST( + - ( - 14 ) AS SIGNED ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-1896
SELECT + CAST ( + - ( - 14 ) AS INTEGER ) AS col1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-1897
SELECT + CASE + 65 WHEN + - CASE COUNT( * ) WHEN - - 23 THEN NULL WHEN + - 18 THEN - 61 END THEN 32 * - 3 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1897
SELECT + CASE + 65 WHEN + - CASE COUNT ( * ) WHEN - - 23 THEN NULL WHEN + - 18 THEN - 61 END THEN 32 * - 3 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1898
SELECT + ( - - COUNT( * ) ) * - 73 + + 79
----
6

skipif mysql # not compatible
query I rowsort label-1898
SELECT + ( - - COUNT ( * ) ) * - 73 + + 79
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1899
SELECT ALL 55 * - 35 * + AVG ( ALL 46 ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1899
SELECT ALL 55 * - 35 * + AVG ( ALL 46 ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1900
SELECT ALL + 24 DIV + + 87 + 6
----
6

skipif mysql # not compatible
query I rowsort label-1900
SELECT ALL + 24 / + + 87 + 6
----
6

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

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1904
SELECT + NULLIF ( + COUNT( * ), + 76 + - COUNT( * ) ) DIV - COUNT( * ) + - + 45 * - 20 AS col1
----
899

skipif mysql # not compatible
query I rowsort label-1904
SELECT + NULLIF ( + COUNT ( * ), + 76 + - COUNT ( * ) ) / - COUNT ( * ) + - + 45 * - 20 AS col1
----
899

onlyif mysql # aggregate syntax: 
query II rowsort label-1905
SELECT DISTINCT + - 44 AS col1, - MAX( + 61 ) col2
----
-44
-61

skipif mysql # not compatible
query II rowsort label-1905
SELECT DISTINCT + - 44 AS col1, - MAX ( + 61 ) col2
----
-44
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1906
SELECT ALL 83 DIV + 76 - + 70 + - - CASE + 70 WHEN + - 24 THEN + CASE WHEN CASE - COUNT( * ) WHEN 68 THEN MIN( DISTINCT CAST( CAST( + 85 AS SIGNED ) AS SIGNED ) ) * - 69 END <> AVG ( + 62 ) THEN NULL ELSE 59 * MIN( ALL 92 * 73 ) END + + 85 * CAST( + 64 AS SIGNED ) ELSE 53 END + 34 * 68 - - COUNT( * ) AS col0
----
2297

skipif mysql # not compatible
query I rowsort label-1906
SELECT ALL 83 / + 76 - + 70 + - - CASE + 70 WHEN + - 24 THEN + CASE WHEN CASE - COUNT ( * ) WHEN 68 THEN MIN ( DISTINCT CAST ( CAST ( + 85 AS INTEGER ) AS INTEGER ) ) * - 69 END <> AVG ( + 62 ) THEN NULL ELSE 59 * MIN ( ALL 92 * 73 ) END + + 85 * CAST ( + 64 AS INTEGER ) ELSE 53 END + 34 * 68 - - COUNT ( * ) AS col0
----
2297

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1907
SELECT + - 21 - + ( + ( - CAST( - + 70 AS SIGNED ) ) ) * + 50 + + 6 AS col2
----
-3515

skipif mysql # not compatible
query I rowsort label-1907
SELECT + - 21 - + ( + ( - CAST ( - + 70 AS INTEGER ) ) ) * + 50 + + 6 AS col2
----
-3515

query I rowsort
SELECT + - 63 * 14 AS col1
----
-882

query II rowsort
SELECT + ( - - 71 ) col0, 10 * + 15
----
71
150

query I rowsort
SELECT + 87 * + + ( + - 54 ) * + 45 - - + 38 * + 28
----
-210346

onlyif mysql # DIV for integer division: 
query I rowsort label-1911
SELECT DISTINCT 71 DIV 22 * + - ( 54 ) AS col2
----
-162

skipif mysql # not compatible
query I rowsort label-1911
SELECT DISTINCT 71 / 22 * + - ( 54 ) AS col2
----
-162

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1912
SELECT COUNT( DISTINCT - 44 ) * - 62 * + + 64 + - 8 DIV + 6 + 81 AS col0
----
-3888

skipif mysql # not compatible
query I rowsort label-1912
SELECT COUNT ( DISTINCT - 44 ) * - 62 * + + 64 + - 8 / + 6 + 81 AS col0
----
-3888

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1914
SELECT - 59 + 98 + - + 99 + - - ( + 31 ) + - ( ( - 16 ) ) DIV 65
----
-29

skipif mysql # not compatible
query I rowsort label-1914
SELECT - 59 + 98 + - + 99 + - - ( + 31 ) + - ( ( - 16 ) ) / 65
----
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1915
SELECT ALL COALESCE ( + + 2, + - 13, + 67 + + + ( - - NULLIF ( 49, 88 * 2 ) ) - + 98 * 22, 95 + 60 ) DIV - COUNT( * ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-1915
SELECT ALL COALESCE ( + + 2, + - 13, + 67 + + + ( - - NULLIF ( 49, 88 * 2 ) ) - + 98 * 22, 95 + 60 ) / - COUNT ( * ) AS col1
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1916
SELECT ALL + - CAST( + + 27 AS SIGNED ) * + 83 * 54 * + CASE ( CASE 50 WHEN - CAST( + 61 AS SIGNED ) THEN - 10 ELSE - 27 / - COALESCE ( 69, + NULLIF ( + 82, + 23 ) + COALESCE ( - 29 + + 27, 33 + - 4 * + 23 ) * - NULLIF ( - 8, 9 ), + 57 ) END ) WHEN + 14 * 18 THEN NULL ELSE 25 END * MIN( DISTINCT + 8 ) - COUNT( * ) * ( 68 + 74 )
----
-24202942

skipif mysql # not compatible
query I rowsort label-1916
SELECT ALL + - CAST ( + + 27 AS INTEGER ) * + 83 * 54 * + CASE ( CASE 50 WHEN - CAST ( + 61 AS INTEGER ) THEN - 10 ELSE - 27 / - COALESCE ( 69, + NULLIF ( + 82, + 23 ) + COALESCE ( - 29 + + 27, 33 + - 4 * + 23 ) * - NULLIF ( - 8, 9 ), + 57 ) END ) WHEN + 14 * 18 THEN NULL ELSE 25 END * MIN ( DISTINCT + 8 ) - COUNT ( * ) * ( 68 + 74 )
----
-24202942

onlyif mysql # aggregate syntax: 
query I rowsort label-1917
SELECT DISTINCT - SUM( + 83 ) * 73
----
-6059

skipif mysql # not compatible
query I rowsort label-1917
SELECT DISTINCT - SUM ( + 83 ) * 73
----
-6059

query I rowsort
SELECT ALL - 11 * 53 AS col1
----
-583

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

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

query I rowsort
SELECT DISTINCT ( 3 ) * - + 79 AS col1
----
-237

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

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

query I rowsort
SELECT 45 + ( + 39 ) AS col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-1924
SELECT + 24 * + - 96 * + COUNT( 21 ) + 29 + + 76
----
-2199

skipif mysql # not compatible
query I rowsort label-1924
SELECT + 24 * + - 96 * + COUNT ( 21 ) + 29 + + 76
----
-2199

query I rowsort
SELECT ALL - COALESCE ( - - 17, - - 35 * - 26 * - 84 * - ( + 23 ) ) AS col0
----
-17

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

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

query I rowsort
SELECT 35 + - 34
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1928
SELECT 22 + NULLIF ( - + 33, COUNT( * ) + + - 56 ) * + NULLIF ( 45, + COALESCE ( - 12, - 45 * - 12 ) / - 67 - NULLIF ( 86, - 6 ) ) AS col2
----
-1463

skipif mysql # not compatible
query I rowsort label-1928
SELECT 22 + NULLIF ( - + 33, COUNT ( * ) + + - 56 ) * + NULLIF ( 45, + COALESCE ( - 12, - 45 * - 12 ) / - 67 - NULLIF ( 86, - 6 ) ) AS col2
----
-1463

query I rowsort
SELECT ALL + - 40 + 91 * 5
----
415

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1930
SELECT - CASE 42 WHEN - COUNT( * ) THEN NULL ELSE - - 64 DIV - 37 + + ( - 33 ) * + COUNT( * ) END + 97 * + 80
----
7794

skipif mysql # not compatible
query I rowsort label-1930
SELECT - CASE 42 WHEN - COUNT ( * ) THEN NULL ELSE - - 64 / - 37 + + ( - 33 ) * + COUNT ( * ) END + 97 * + 80
----
7794

query I rowsort
SELECT 11 - + 72 * + 16 + + + 2 * 76 + - + 43 AS col0
----
-1032

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1932
SELECT - 84 * - SUM( DISTINCT + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1932
SELECT - 84 * - SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1933
SELECT ALL - 77 + + - MAX( DISTINCT - + 64 )
----
-13

skipif mysql # not compatible
query I rowsort label-1933
SELECT ALL - 77 + + - MAX ( DISTINCT - + 64 )
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-1934
SELECT ALL - SUM( DISTINCT + 41 ) + + 42 + 34 AS col0
----
35

skipif mysql # not compatible
query I rowsort label-1934
SELECT ALL - SUM ( DISTINCT + 41 ) + + 42 + 34 AS col0
----
35

query I rowsort
SELECT ALL + 77 + 25 AS col2
----
102

onlyif mysql # DIV for integer division: 
query II rowsort label-1936
SELECT ALL + 4 DIV - + 26, 44 AS col0
----
0
44

skipif mysql # not compatible
query II rowsort label-1936
SELECT ALL + 4 / - + 26, 44 AS col0
----
0
44

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1937
SELECT ALL CAST( NULL AS DECIMAL ) + - 8 col0, NULLIF ( 93, - COUNT( * ) + - - SUM( 59 ) ) * SUM( DISTINCT + 74 )
----
NULL
6882

skipif mysql # not compatible
query II rowsort label-1937
SELECT ALL CAST ( NULL AS REAL ) + - 8 col0, NULLIF ( 93, - COUNT ( * ) + - - SUM ( 59 ) ) * SUM ( DISTINCT + 74 )
----
NULL
6882

query I rowsort
SELECT 34 * 63 AS col0
----
2142

query I rowsort
SELECT ALL + ( - 40 ) + - 81
----
-121

query I rowsort
SELECT 24 + 83 AS col0
----
107

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

skipif mysql # not compatible
query I rowsort label-1941
SELECT COUNT ( * ) + + 46 + + 32 AS col1
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-1942
SELECT ALL 73 - + - NULLIF ( - 94, 28 DIV 3 ) + COALESCE ( 87, 20 ) DIV 7 AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-1942
SELECT ALL 73 - + - NULLIF ( - 94, 28 / 3 ) + COALESCE ( 87, 20 ) / 7 AS col1
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-1943
SELECT - 23 * + 99 + - 78 + + - 38 DIV 68 * - 73 AS col2
----
-2355

skipif mysql # not compatible
query I rowsort label-1943
SELECT - 23 * + 99 + - 78 + + - 38 / 68 * - 73 AS col2
----
-2355

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1944
SELECT + CAST( MIN( ALL 29 ) AS SIGNED ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-1944
SELECT + CAST ( MIN ( ALL 29 ) AS INTEGER ) AS col0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-1945
SELECT 86 / - + 81 * 83 + SUM( + - 54 ) + - 65 * 18 + + CASE ( ( - 23 ) ) WHEN - 30 * 66 + - 35 THEN + 39 WHEN + COUNT( * ) THEN 75 * - 35 + 96 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1945
SELECT 86 / - + 81 * 83 + SUM ( + - 54 ) + - 65 * 18 + + CASE ( ( - 23 ) ) WHEN - 30 * 66 + - 35 THEN + 39 WHEN + COUNT ( * ) THEN 75 * - 35 + 96 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1946
SELECT MAX( 41 ) * + ( + 9 ) - - CAST( + ( - 83 ) AS SIGNED ) + CAST( 39 AS SIGNED ) * 64 AS col1
----
2782

skipif mysql # not compatible
query I rowsort label-1946
SELECT MAX ( 41 ) * + ( + 9 ) - - CAST ( + ( - 83 ) AS INTEGER ) + CAST ( 39 AS INTEGER ) * 64 AS col1
----
2782

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1947
SELECT DISTINCT - CASE + NULLIF ( - - 7, + COALESCE ( + + 11, - NULLIF ( + + 82, + ( 33 ) ) + CAST( NULL AS SIGNED ) ) ) WHEN - COUNT( * ) THEN 46 / - MAX( ALL + ( 59 ) ) END * 36
----
NULL

skipif mysql # not compatible
query I rowsort label-1947
SELECT DISTINCT - CASE + NULLIF ( - - 7, + COALESCE ( + + 11, - NULLIF ( + + 82, + ( 33 ) ) + CAST ( NULL AS INTEGER ) ) ) WHEN - COUNT ( * ) THEN 46 / - MAX ( ALL + ( 59 ) ) END * 36
----
NULL

query I rowsort
SELECT DISTINCT - + NULLIF ( - - 43, 34 ) AS col0
----
-43

query I rowsort
SELECT ALL + 45 * - ( + 69 )
----
-3105

onlyif mysql # aggregate syntax: 
query I rowsort label-1950
SELECT COALESCE ( + 44, COUNT( * ) ) + - 96
----
-52

skipif mysql # not compatible
query I rowsort label-1950
SELECT COALESCE ( + 44, COUNT ( * ) ) + - 96
----
-52

query I rowsort
SELECT + 23 * + 16 + + 9 AS col2
----
377

onlyif mysql # DIV for integer division: 
query I rowsort label-1952
SELECT 57 + + - 57 DIV 91 DIV 77 - + 43 + + + 43 AS col0
----
57

skipif mysql # not compatible
query I rowsort label-1952
SELECT 57 + + - 57 / 91 / 77 - + 43 + + + 43 AS col0
----
57

onlyif mysql # DIV for integer division: 
query II rowsort label-1953
SELECT 88 DIV 22 + + + 0 AS col1, 34 AS col1
----
4
34

skipif mysql # not compatible
query II rowsort label-1953
SELECT 88 / 22 + + + 0 AS col1, 34 AS col1
----
4
34

query I rowsort
SELECT DISTINCT 72 + - - 50 AS col0
----
122

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

skipif mysql # not compatible
query I rowsort label-1955
SELECT 18 * - + 55 + - - 77 + + COUNT ( * ) AS col0
----
-912

onlyif mysql # aggregate syntax: 
query I rowsort label-1956
SELECT - COUNT( ALL + - ( + ( - 45 ) ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1956
SELECT - COUNT ( ALL + - ( + ( - 45 ) ) ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1957
SELECT ALL + 38 + + 49 + - - 24 + - + 40 + - COUNT( * ) + - + 49 * 17 * 16 * 81 * NULLIF ( - MAX( ALL - 24 ) + SUM( DISTINCT 24 ), 35 )
----
-51819194

skipif mysql # not compatible
query I rowsort label-1957
SELECT ALL + 38 + + 49 + - - 24 + - + 40 + - COUNT ( * ) + - + 49 * 17 * 16 * 81 * NULLIF ( - MAX ( ALL - 24 ) + SUM ( DISTINCT 24 ), 35 )
----
-51819194

query I rowsort
SELECT DISTINCT - 80 * 15 AS col0
----
-1200

query I rowsort
SELECT 27 * + 37 * - 78
----
-77922

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

query I rowsort
SELECT ALL + 82 + - + 52 AS col2
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1962
SELECT ALL NULLIF ( - 22, 81 * + COUNT( * ) + - 2 * ( + COUNT( DISTINCT - 78 ) ) * - COUNT( * ) + 66 / + NULLIF ( 20 - 48, + 30 + - 75 * + CAST( + MIN( - 93 ) AS SIGNED ) ) ) * - 29
----
638

skipif mysql # not compatible
query I rowsort label-1962
SELECT ALL NULLIF ( - 22, 81 * + COUNT ( * ) + - 2 * ( + COUNT ( DISTINCT - 78 ) ) * - COUNT ( * ) + 66 / + NULLIF ( 20 - 48, + 30 + - 75 * + CAST ( + MIN ( - 93 ) AS INTEGER ) ) ) * - 29
----
638

query I rowsort
SELECT 43 + - 12 AS col0
----
31

query I rowsort
SELECT ALL - ( 61 ) + 20 col0
----
-41

onlyif mysql # DIV for integer division: 
query II rowsort label-1965
SELECT ALL 82 col1, + 45 DIV - NULLIF ( 13, 27 )
----
82
-3

skipif mysql # not compatible
query II rowsort label-1965
SELECT ALL 82 col1, + 45 / - NULLIF ( 13, 27 )
----
82
-3

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1967
SELECT DISTINCT - 1 - 37 + + - 83 * COUNT( DISTINCT 3 ) DIV + CASE WHEN NOT NULL IS NOT NULL THEN - 41 END * COUNT( * ) + 2 * 96 * - CASE ( - ( + 93 ) ) WHEN - 62 THEN NULL ELSE + NULLIF ( + 25, 77 + + COUNT( * ) ) END
----
-4836

skipif mysql # not compatible
query I rowsort label-1967
SELECT DISTINCT - 1 - 37 + + - 83 * COUNT ( DISTINCT 3 ) / + CASE WHEN NOT NULL IS NOT NULL THEN - 41 END * COUNT ( * ) + 2 * 96 * - CASE ( - ( + 93 ) ) WHEN - 62 THEN NULL ELSE + NULLIF ( + 25, 77 + + COUNT ( * ) ) END
----
-4836

query I rowsort
SELECT ALL + 46 * + 83 AS col2
----
3818

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

query I rowsort
SELECT DISTINCT + 29 * + 64 col2
----
1856

onlyif mysql # DIV for integer division: 
query I rowsort label-1971
SELECT DISTINCT + 56 DIV + - 98
----
0

skipif mysql # not compatible
query I rowsort label-1971
SELECT DISTINCT + 56 / + - 98
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1973
SELECT 71 - + CAST( NULL AS SIGNED ) / CAST( NULL AS DECIMAL ) + + 65 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1973
SELECT 71 - + CAST ( NULL AS INTEGER ) / CAST ( NULL AS REAL ) + + 65 AS col1
----
NULL

query I rowsort
SELECT ALL - 47 * ( + 41 ) AS col2
----
-1927

onlyif mysql # DIV for integer division: 
query II rowsort label-1975
SELECT 42 * 15 DIV - 11 AS col2, - 78 AS col0
----
-57
-78

skipif mysql # not compatible
query II rowsort label-1975
SELECT 42 * 15 / - 11 AS col2, - 78 AS col0
----
-57
-78

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

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

query II rowsort
SELECT + 60 AS col1, 40
----
60
40

onlyif mysql # DIV for integer division: 
query I rowsort label-1978
SELECT 61 DIV + 65
----
0

skipif mysql # not compatible
query I rowsort label-1978
SELECT 61 / + 65
----
0

query I rowsort
SELECT 97 * - 54 AS col1
----
-5238

query I rowsort
SELECT + 14 * 0
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1982
SELECT ALL + CASE 98 WHEN + - 83 * 58 THEN + COUNT( * ) * COALESCE ( - 22, + 61, - 50 ) WHEN + 98 + 79 * 38 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1982
SELECT ALL + CASE 98 WHEN + - 83 * 58 THEN + COUNT ( * ) * COALESCE ( - 22, + 61, - 50 ) WHEN + 98 + 79 * 38 THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1983
SELECT ALL - CASE + 51 WHEN - + MAX( 10 ) * + COUNT( + - 5 ) + NULLIF ( - 73, COUNT( * ) * 29 ) + COUNT( * ) * - 5 THEN + 29 END / 13
----
NULL

skipif mysql # not compatible
query I rowsort label-1983
SELECT ALL - CASE + 51 WHEN - + MAX ( 10 ) * + COUNT ( + - 5 ) + NULLIF ( - 73, COUNT ( * ) * 29 ) + COUNT ( * ) * - 5 THEN + 29 END / 13
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1984
SELECT - - 80 DIV 78 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1984
SELECT - - 80 / 78 AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1985
SELECT - + 5 * - + CAST( CASE - - 76 WHEN 78 THEN - 47 - + ( + 88 ) ELSE NULL END AS SIGNED ) * - ( 33 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1985
SELECT - + 5 * - + CAST ( CASE - - 76 WHEN 78 THEN - 47 - + ( + 88 ) ELSE NULL END AS INTEGER ) * - ( 33 ) AS col0
----
NULL

query I rowsort
SELECT ALL - + 14 * - ( + 37 ) + 19 - + + 33 col0
----
504

query II rowsort
SELECT DISTINCT + + 99, 29 AS col1
----
99
29

onlyif mysql # aggregate syntax: 
query I rowsort label-1988
SELECT - NULLIF ( - COUNT( DISTINCT NULLIF ( - - 61, - 2 + - - 80 ) ), - ( - + MIN( DISTINCT 28 ) ) ) + - 47 * 96
----
-4511

skipif mysql # not compatible
query I rowsort label-1988
SELECT - NULLIF ( - COUNT ( DISTINCT NULLIF ( - - 61, - 2 + - - 80 ) ), - ( - + MIN ( DISTINCT 28 ) ) ) + - 47 * 96
----
-4511

query I rowsort
SELECT - 17 - 70 + + 23 AS col1
----
-64

query II rowsort
SELECT + 0 col0, 13 * 66 * + 6
----
0
5148

query I rowsort
SELECT DISTINCT - + 61 * + ( - 35 ) + 58 AS col2
----
2193

onlyif mysql # aggregate syntax: 
query I rowsort label-1992
SELECT MIN( 34 ) col0
----
34

skipif mysql # not compatible
query I rowsort label-1992
SELECT MIN ( 34 ) col0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-1993
SELECT ALL + + CASE - + NULLIF ( - + 81, 27 + + MIN( DISTINCT - - 48 ) + + COUNT( * ) ) WHEN + 62 + 61 THEN - 44 * + 36 + 13 * + NULLIF ( 72 - - 34, + 60 * + 41 + - 43 ) END * + 47 + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1993
SELECT ALL + + CASE - + NULLIF ( - + 81, 27 + + MIN ( DISTINCT - - 48 ) + + COUNT ( * ) ) WHEN + 62 + 61 THEN - 44 * + 36 + 13 * + NULLIF ( 72 - - 34, + 60 * + 41 + - 43 ) END * + 47 + - COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1994
SELECT DISTINCT + 89 * - ( + 66 ) DIV 1 AS col0
----
-5874

skipif mysql # not compatible
query I rowsort label-1994
SELECT DISTINCT + 89 * - ( + 66 ) / 1 AS col0
----
-5874

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1995
SELECT ALL - + CASE 20 WHEN - 33 THEN NULL WHEN - 0 THEN CAST( + 17 AS SIGNED ) / - - 38 + - + 48 END * - ( + 73 ) + - 87
----
NULL

skipif mysql # not compatible
query I rowsort label-1995
SELECT ALL - + CASE 20 WHEN - 33 THEN NULL WHEN - 0 THEN CAST ( + 17 AS INTEGER ) / - - 38 + - + 48 END * - ( + 73 ) + - 87
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1996
SELECT DISTINCT + CASE - COUNT( * ) WHEN + CASE - + 53 WHEN + + SUM( ALL + 89 ) THEN 93 ELSE NULL END / ( + 51 ) THEN NULL WHEN 53 THEN NULL ELSE + CASE 91 WHEN + 22 / + 48 THEN 55 END + MIN( 92 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1996
SELECT DISTINCT + CASE - COUNT ( * ) WHEN + CASE - + 53 WHEN + + SUM ( ALL + 89 ) THEN 93 ELSE NULL END / ( + 51 ) THEN NULL WHEN 53 THEN NULL ELSE + CASE 91 WHEN + 22 / + 48 THEN 55 END + MIN ( 92 ) END
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1998
SELECT ALL - ( + COUNT( * ) ) * 90 + + + 23 DIV + 76 AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-1998
SELECT ALL - ( + COUNT ( * ) ) * 90 + + + 23 / + 76 AS col2
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1999
SELECT DISTINCT + 5 * COALESCE ( + + COALESCE ( - ( - + ( NULLIF ( - 48, + COUNT( + 96 ) ) ) ), 27 + + 97 ), + COUNT( * ) ) + CAST( - 18 AS SIGNED ) * 78 + - 63 * + 40 AS col1
----
-4164

skipif mysql # not compatible
query I rowsort label-1999
SELECT DISTINCT + 5 * COALESCE ( + + COALESCE ( - ( - + ( NULLIF ( - 48, + COUNT ( + 96 ) ) ) ), 27 + + 97 ), + COUNT ( * ) ) + CAST ( - 18 AS INTEGER ) * 78 + - 63 * + 40 AS col1
----
-4164

query I rowsort
SELECT 14 * - COALESCE ( + ( - - 90 ), 64 + + 51 ) + 83 * + + COALESCE ( ( + ( + 95 ) ), + 45 ) AS col2
----
6625

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2001
SELECT + 57 + + - CAST( 23 AS SIGNED ) col1
----
34

skipif mysql # not compatible
query I rowsort label-2001
SELECT + 57 + + - CAST ( 23 AS INTEGER ) col1
----
34

query I rowsort
SELECT + 68 + + 90
----
158

query I rowsort
SELECT + 74 * + - 73 AS col0
----
-5402

onlyif mysql # aggregate syntax: 
query I rowsort label-2004
SELECT + COUNT( * ) + - 43 col2
----
-42

skipif mysql # not compatible
query I rowsort label-2004
SELECT + COUNT ( * ) + - 43 col2
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2005
SELECT DISTINCT 9 DIV - COALESCE ( + 48, - - CAST( 99 AS SIGNED ) DIV ( + 93 ), + 37 * CASE - 99 WHEN 77 THEN NULL ELSE 67 * + CASE - 93 WHEN + COUNT( * ) THEN NULL ELSE - 32 END - + 96 END ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2005
SELECT DISTINCT 9 / - COALESCE ( + 48, - - CAST ( 99 AS INTEGER ) / ( + 93 ), + 37 * CASE - 99 WHEN 77 THEN NULL ELSE 67 * + CASE - 93 WHEN + COUNT ( * ) THEN NULL ELSE - 32 END - + 96 END ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2006
SELECT + 21 + - - CASE + - 7 WHEN + - 69 THEN - + 46 * + 57 - ( - COUNT( * ) ) * - 74 * 23 WHEN + COALESCE ( - NULLIF ( 17, - 16 ), 91 * + 25, 15 ) THEN - 88 ELSE + 61 END - NULLIF ( - 59, + 99 ) * - 46
----
-2632

skipif mysql # not compatible
query I rowsort label-2006
SELECT + 21 + - - CASE + - 7 WHEN + - 69 THEN - + 46 * + 57 - ( - COUNT ( * ) ) * - 74 * 23 WHEN + COALESCE ( - NULLIF ( 17, - 16 ), 91 * + 25, 15 ) THEN - 88 ELSE + 61 END - NULLIF ( - 59, + 99 ) * - 46
----
-2632

query I rowsort
SELECT ALL 32 * + 83 col2
----
2656

onlyif mysql # DIV for integer division: 
query I rowsort label-2008
SELECT + 38 * - 97 DIV - 95
----
38

skipif mysql # not compatible
query I rowsort label-2008
SELECT + 38 * - 97 / - 95
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-2009
SELECT DISTINCT MAX( DISTINCT - + 81 ) - + 89
----
-170

skipif mysql # not compatible
query I rowsort label-2009
SELECT DISTINCT MAX ( DISTINCT - + 81 ) - + 89
----
-170

query I rowsort
SELECT ALL NULLIF ( - 92, - - 33 ) AS col0
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-2011
SELECT - MIN( - 95 ) + - - MAX( ALL + 90 ) + - 98 + - 18 AS col0
----
69

skipif mysql # not compatible
query I rowsort label-2011
SELECT - MIN ( - 95 ) + - - MAX ( ALL + 90 ) + - 98 + - 18 AS col0
----
69

query I rowsort
SELECT + 78 * + ( 59 ) col2
----
4602

query I rowsort
SELECT + 96 + + 57 col1
----
153

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2015
SELECT + MIN( DISTINCT - 94 ) + - 97 + + - 20 AS col2
----
-211

skipif mysql # not compatible
query I rowsort label-2015
SELECT + MIN ( DISTINCT - 94 ) + - 97 + + - 20 AS col2
----
-211

onlyif mysql # DIV for integer division: 
query I rowsort label-2016
SELECT - - 84 + + - 54 DIV + + 54 AS col1
----
83

skipif mysql # not compatible
query I rowsort label-2016
SELECT - - 84 + + - 54 / + + 54 AS col1
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-2017
SELECT DISTINCT - - COUNT( - 87 ) * - - 90 AS col2
----
90

skipif mysql # not compatible
query I rowsort label-2017
SELECT DISTINCT - - COUNT ( - 87 ) * - - 90 AS col2
----
90

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2019
SELECT - COALESCE ( - 82, + 9 DIV - NULLIF ( + + 77, 48 * + COUNT( * ) + 67 + + ( + 2 ) ) + 74 DIV 45, + 26 ) DIV 18 + + 59
----
63

skipif mysql # not compatible
query I rowsort label-2019
SELECT - COALESCE ( - 82, + 9 / - NULLIF ( + + 77, 48 * + COUNT ( * ) + 67 + + ( + 2 ) ) + 74 / 45, + 26 ) / 18 + + 59
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2020
SELECT ALL + 23 / 5 + NULLIF ( 35, + 2 ) + + - MIN( + COALESCE ( + - 97, 44 - 94 ) ) * - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2020
SELECT ALL + 23 / 5 + NULLIF ( 35, + 2 ) + + - MIN ( + COALESCE ( + - 97, 44 - 94 ) ) * - CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2021
SELECT - + 57 * - 11 * + COUNT( * )
----
627

skipif mysql # not compatible
query I rowsort label-2021
SELECT - + 57 * - 11 * + COUNT ( * )
----
627

query I rowsort
SELECT CASE + 0 WHEN 9 * - 99 THEN ( - 19 ) END
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2023
SELECT - + 7 DIV + 27 AS col1, 84
----
0
84

skipif mysql # not compatible
query II rowsort label-2023
SELECT - + 7 / + 27 AS col1, 84
----
0
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2024
SELECT ALL - 94 * - + CASE - + CAST( NULL AS SIGNED ) WHEN + 52 THEN NULL WHEN + 90 THEN + CAST( + + ( + - MIN( DISTINCT + 3 ) ) AS SIGNED ) END + 54 + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-2024
SELECT ALL - 94 * - + CASE - + CAST ( NULL AS INTEGER ) WHEN + 52 THEN NULL WHEN + 90 THEN + CAST ( + + ( + - MIN ( DISTINCT + 3 ) ) AS INTEGER ) END + 54 + 99
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2025
SELECT - 50 * - NULLIF ( COALESCE ( + MAX( ALL - 46 ), + COUNT( * ) ), COUNT( * ) / + + 13 ) * + + NULLIF ( - 24, - ( + 26 ) ) * - 81 + + COUNT( * )
----
-4471199

skipif mysql # not compatible
query I rowsort label-2025
SELECT - 50 * - NULLIF ( COALESCE ( + MAX ( ALL - 46 ), + COUNT ( * ) ), COUNT ( * ) / + + 13 ) * + + NULLIF ( - 24, - ( + 26 ) ) * - 81 + + COUNT ( * )
----
-4471199

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2026
SELECT DISTINCT + COUNT( DISTINCT 29 ) / - NULLIF ( + - CAST( NULL AS SIGNED ), - 44 * + 24 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2026
SELECT DISTINCT + COUNT ( DISTINCT 29 ) / - NULLIF ( + - CAST ( NULL AS INTEGER ), - 44 * + 24 ) AS col0
----
NULL

query I rowsort
SELECT ALL - - 88 * 44 + - 97 AS col0
----
3775

onlyif mysql # aggregate syntax: 
query I rowsort label-2028
SELECT + 13 * + NULLIF ( - 58, + + 59 ) + + SUM( DISTINCT - 12 ) AS col1
----
-766

skipif mysql # not compatible
query I rowsort label-2028
SELECT + 13 * + NULLIF ( - 58, + + 59 ) + + SUM ( DISTINCT - 12 ) AS col1
----
-766

query I rowsort
SELECT ALL + NULLIF ( 7, + + 26 + + 29 )
----
7

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

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

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

query I rowsort
SELECT DISTINCT + ( - NULLIF ( + + 92, 51 ) ) AS col0
----
-92

query I rowsort
SELECT - 92 * - 16
----
1472

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

query II rowsort
SELECT NULLIF ( + 54, - 97 ), - 12 col0
----
54
-12

query I rowsort
SELECT ALL 56 * 79 * + 26
----
115024

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2037
SELECT + 15 DIV - 52 * - - MIN( DISTINCT - 8 )
----
0

skipif mysql # not compatible
query I rowsort label-2037
SELECT + 15 / - 52 * - - MIN ( DISTINCT - 8 )
----
0

query I rowsort
SELECT ALL - 47 * 1
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2039
SELECT + 32 + COUNT( ALL 99 ) * - 47 DIV + 91, - 0 col2
----
32
0

skipif mysql # not compatible
query II rowsort label-2039
SELECT + 32 + COUNT ( ALL 99 ) * - 47 / + 91, - 0 col2
----
32
0

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2042
SELECT + MIN( DISTINCT - + 60 ) * - 68
----
4080

skipif mysql # not compatible
query I rowsort label-2042
SELECT + MIN ( DISTINCT - + 60 ) * - 68
----
4080

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2043
SELECT + ( - - 20 ) - - CAST( - - COUNT( * ) AS SIGNED ) AS col1
----
21

skipif mysql # not compatible
query I rowsort label-2043
SELECT + ( - - 20 ) - - CAST ( - - COUNT ( * ) AS INTEGER ) AS col1
----
21

query I rowsort
SELECT 97 * + + 47
----
4559

query I rowsort
SELECT 3 + + 76 * 11 * + 95 * + ( 28 ) + 31
----
2223794

query I rowsort
SELECT ALL 43 * - + 41 AS col1
----
-1763

query I rowsort
SELECT ALL 54 + + 66 AS col0
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-2048
SELECT ALL + 27 + - - COUNT( 88 ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-2048
SELECT ALL + 27 + - - COUNT ( 88 ) AS col0
----
28

query I rowsort
SELECT - CASE - 89 WHEN ( - 52 ) THEN - 90 ELSE + 15 + 17 END AS col1
----
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2050
SELECT ALL 93 * + + 69 DIV - - ( - 1 ) + - 87 * SUM( ALL 9 ) * + 78 * - 73
----
4451985

skipif mysql # not compatible
query I rowsort label-2050
SELECT ALL 93 * + + 69 / - - ( - 1 ) + - 87 * SUM ( ALL 9 ) * + 78 * - 73
----
4451985

onlyif mysql # DIV for integer division: 
query I rowsort label-2051
SELECT 17 DIV - 68 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2051
SELECT 17 / - 68 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2052
SELECT - 37 - - 11 DIV + MIN( + 43 ) AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-2052
SELECT - 37 - - 11 / + MIN ( + 43 ) AS col1
----
-37

query I rowsort
SELECT ALL + 83 * - 33 * + 47 + + + 32 * - 78
----
-131229

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2054
SELECT + CASE - 24 WHEN + + 12 + + - 88 THEN + 3 * - 77 + + + 21 + - CASE - - COALESCE ( - CASE - 45 WHEN 26 THEN - 84 WHEN 36 THEN + COUNT( * ) * - MIN( + 99 ) ELSE NULL END, + 10 ) WHEN 91 THEN 70 WHEN CAST( 9 AS SIGNED ) * - COUNT( * ) + + 21 THEN COUNT( * ) ELSE NULL END + + 81 WHEN 97 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2054
SELECT + CASE - 24 WHEN + + 12 + + - 88 THEN + 3 * - 77 + + + 21 + - CASE - - COALESCE ( - CASE - 45 WHEN 26 THEN - 84 WHEN 36 THEN + COUNT ( * ) * - MIN ( + 99 ) ELSE NULL END, + 10 ) WHEN 91 THEN 70 WHEN CAST ( 9 AS INTEGER ) * - COUNT ( * ) + + 21 THEN COUNT ( * ) ELSE NULL END + + 81 WHEN 97 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT ( + - 36 ) * + 31 AS col2
----
-1116

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2056
SELECT ALL + 66 + CAST( NULL AS SIGNED ) * 58 * - 34 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2056
SELECT ALL + 66 + CAST ( NULL AS INTEGER ) * 58 * - 34 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2057
SELECT - 85 - CAST( MAX( - + 37 ) AS SIGNED )
----
-48

skipif mysql # not compatible
query I rowsort label-2057
SELECT - 85 - CAST ( MAX ( - + 37 ) AS INTEGER )
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-2058
SELECT ( - + MAX( NULLIF ( - 49, + 75 ) ) ) AS col0
----
49

skipif mysql # not compatible
query I rowsort label-2058
SELECT ( - + MAX ( NULLIF ( - 49, + 75 ) ) ) AS col0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-2059
SELECT ALL - 92 + ( - 74 ) * + SUM( + 27 ) - + 19 * - + 60
----
-950

skipif mysql # not compatible
query I rowsort label-2059
SELECT ALL - 92 + ( - 74 ) * + SUM ( + 27 ) - + 19 * - + 60
----
-950

query I rowsort
SELECT DISTINCT + 33 + + - 94 AS col2
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-2061
SELECT ALL - 0 + - COUNT( * ) * - 44 * - 22
----
-968

skipif mysql # not compatible
query I rowsort label-2061
SELECT ALL - 0 + - COUNT ( * ) * - 44 * - 22
----
-968

onlyif mysql # aggregate syntax: 
query I rowsort label-2062
SELECT DISTINCT COUNT( * ) + + COUNT( * ) col2
----
2

skipif mysql # not compatible
query I rowsort label-2062
SELECT DISTINCT COUNT ( * ) + + COUNT ( * ) col2
----
2

query II rowsort
SELECT DISTINCT - 6 AS col0, + 70 + + 47 + + + 59
----
-6
176

query I rowsort
SELECT ALL - 51 + - + 23 * - + 59 AS col0
----
1306

query I rowsort
SELECT ALL + 7 * 9 AS col2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-2066
SELECT - 6 * - SUM( + + 54 ) + - ( + - 36 ) + 51
----
411

skipif mysql # not compatible
query I rowsort label-2066
SELECT - 6 * - SUM ( + + 54 ) + - ( + - 36 ) + 51
----
411

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2068
SELECT - ( + 24 ) * + 96 / CASE + - ( 0 ) WHEN - - 56 THEN - COUNT( * ) END - + + 67 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2068
SELECT - ( + 24 ) * + 96 / CASE + - ( 0 ) WHEN - - 56 THEN - COUNT ( * ) END - + + 67 col0
----
NULL

query I rowsort
SELECT ALL - + CASE + - 45 WHEN - + ( - 97 ) THEN + - 64 WHEN + 83 * - - 85 + - COALESCE ( - 26, - 47 ) - - 75 THEN + 0 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2070
SELECT ALL - 98 AS col0, COUNT( * ) * + + CAST( NULL AS SIGNED ) + - 96 / 41 AS col0
----
-98
NULL

skipif mysql # not compatible
query II rowsort label-2070
SELECT ALL - 98 AS col0, COUNT ( * ) * + + CAST ( NULL AS INTEGER ) + - 96 / 41 AS col0
----
-98
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2071
SELECT - COUNT( * ) * - - 18 + + 77 + + 40 - - 96 * - + 68 * + - COUNT( * ) AS col0
----
6627

skipif mysql # not compatible
query I rowsort label-2071
SELECT - COUNT ( * ) * - - 18 + + 77 + + 40 - - 96 * - + 68 * + - COUNT ( * ) AS col0
----
6627

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2072
SELECT ALL - COALESCE ( - 84, - CAST( 91 AS SIGNED ) )
----
84

skipif mysql # not compatible
query I rowsort label-2072
SELECT ALL - COALESCE ( - 84, - CAST ( 91 AS INTEGER ) )
----
84

query I rowsort
SELECT 43 * + 99 * - 24
----
-102168

query I rowsort
SELECT ALL - 87 * 73
----
-6351

onlyif mysql # DIV for integer division: 
query II rowsort label-2075
SELECT ALL + 87 DIV + 40 AS col1, NULLIF ( 64, 85 DIV - 2 - 93 DIV + - 58 )
----
2
64

skipif mysql # not compatible
query II rowsort label-2075
SELECT ALL + 87 / + 40 AS col1, NULLIF ( 64, 85 / - 2 - 93 / + - 58 )
----
2
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2076
SELECT 62 + + SUM( ALL - + 46 ) + + ( - 55 )
----
-39

skipif mysql # not compatible
query I rowsort label-2076
SELECT 62 + + SUM ( ALL - + 46 ) + + ( - 55 )
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2077
SELECT ALL - CASE - CAST( NULL AS SIGNED ) WHEN + 7 THEN - - 12 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2077
SELECT ALL - CASE - CAST ( NULL AS INTEGER ) WHEN + 7 THEN - - 12 END col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2078
SELECT ( - 49 ) * + 34 + + MIN( + CAST( + 50 AS SIGNED ) ) + - - 37 AS col1
----
-1579

skipif mysql # not compatible
query I rowsort label-2078
SELECT ( - 49 ) * + 34 + + MIN ( + CAST ( + 50 AS INTEGER ) ) + - - 37 AS col1
----
-1579

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

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

query I rowsort
SELECT ALL - 16 * 93
----
-1488

query I rowsort
SELECT DISTINCT - 43 + - 39 AS col1
----
-82

query II rowsort
SELECT - 0 AS col1, + 88 AS col2
----
0
88

query II rowsort
SELECT DISTINCT 60 + + + 75 AS col0, 32 AS col2
----
135
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2084
SELECT ALL COUNT( * ) + 49 * 83 DIV 43 AS col0
----
95

skipif mysql # not compatible
query I rowsort label-2084
SELECT ALL COUNT ( * ) + 49 * 83 / 43 AS col0
----
95

query I rowsort
SELECT ALL 95 + 2 AS col1
----
97

query I rowsort
SELECT 1 + + - 87 AS col2
----
-86

query I rowsort
SELECT + COALESCE ( + 54, - + 29 )
----
54

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

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

query I rowsort
SELECT 80 * + 81
----
6480

query I rowsort
SELECT NULLIF ( + + 36, - 67 )
----
36

query I rowsort
SELECT 11 + - - ( - 93 ) * + 43 AS col1
----
-3988

query I rowsort
SELECT ALL + + 25 + + CASE + 5 WHEN + 40 THEN NULL WHEN + + 29 THEN 13 END - - - 52 * - + 23
----
NULL

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

query I rowsort
SELECT ALL - 55 - - 11 + + 38 - - 51
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2095
SELECT ALL + ( - 75 ) * - 62 + - 54 + + 51 * - CAST( NULL AS SIGNED ) * + 13 - - COUNT( - - 60 ) * 13
----
NULL

skipif mysql # not compatible
query I rowsort label-2095
SELECT ALL + ( - 75 ) * - 62 + - 54 + + 51 * - CAST ( NULL AS INTEGER ) * + 13 - - COUNT ( - - 60 ) * 13
----
NULL

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

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

query I rowsort
SELECT DISTINCT 11 * - 85 AS col2
----
-935

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2099
SELECT COUNT( * ) * - 90 + ( ( - 40 ) ) + + CAST( 6 AS SIGNED ) * + 26 * 7, + 35 AS col0
----
962
35

skipif mysql # not compatible
query II rowsort label-2099
SELECT COUNT ( * ) * - 90 + ( ( - 40 ) ) + + CAST ( 6 AS INTEGER ) * + 26 * 7, + 35 AS col0
----
962
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2100
SELECT + + COUNT( * ) / COUNT( * ) / + + 91 * + COALESCE ( + 7, + + 61 / + 44 ) * - 65 * + + CAST( NULL AS SIGNED ) + 31 + + + ( 51 ) - + COUNT( * ) / + 67
----
NULL

skipif mysql # not compatible
query I rowsort label-2100
SELECT + + COUNT ( * ) / COUNT ( * ) / + + 91 * + COALESCE ( + 7, + + 61 / + 44 ) * - 65 * + + CAST ( NULL AS INTEGER ) + 31 + + + ( 51 ) - + COUNT ( * ) / + 67
----
NULL

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

query I rowsort
SELECT ALL - COALESCE ( - - 41, 75 * - 26 * - - 60 * 73 * + + 37, - + 59 )
----
-41

query I rowsort
SELECT ALL - - 56 col0
----
56

query I rowsort
SELECT DISTINCT + 1 * 8 * 89 * + + 73 AS col2
----
51976

onlyif mysql # aggregate syntax: 
query II rowsort label-2105
SELECT + MIN( 38 ), COUNT( ALL - + COALESCE ( - - 1, - 27 ) ) * + - 10 AS col2
----
38
-10

skipif mysql # not compatible
query II rowsort label-2105
SELECT + MIN ( 38 ), COUNT ( ALL - + COALESCE ( - - 1, - 27 ) ) * + - 10 AS col2
----
38
-10

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2107
SELECT DISTINCT 15 + - COUNT( * ), - 7 AS col0
----
14
-7

skipif mysql # not compatible
query II rowsort label-2107
SELECT DISTINCT 15 + - COUNT ( * ), - 7 AS col0
----
14
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-2108
SELECT COUNT( * ) * - 91 - + ( + 98 ) * 52
----
-5187

skipif mysql # not compatible
query I rowsort label-2108
SELECT COUNT ( * ) * - 91 - + ( + 98 ) * 52
----
-5187

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

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

query I rowsort
SELECT ALL + 84 * - - 7 * - 28
----
-16464

onlyif mysql # DIV for integer division: 
query I rowsort label-2111
SELECT - ( - - 37 ) DIV + + 41 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2111
SELECT - ( - - 37 ) / + + 41 AS col0
----
0

query I rowsort
SELECT ALL 37 + - 70 AS col0
----
-33

query I rowsort
SELECT ALL + 57 + 23
----
80

query I rowsort
SELECT ALL + ( + 66 ) + + - 22 AS col0
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2115
SELECT DISTINCT - COUNT( * ) DIV 84 AS col2, + 52
----
0
52

skipif mysql # not compatible
query II rowsort label-2115
SELECT DISTINCT - COUNT ( * ) / 84 AS col2, + 52
----
0
52

onlyif mysql # aggregate syntax: 
query II rowsort label-2116
SELECT DISTINCT + 12 + + COUNT( * ), 2 * - - MAX( + 11 ) * - 80 AS col2
----
13
-1760

skipif mysql # not compatible
query II rowsort label-2116
SELECT DISTINCT + 12 + + COUNT ( * ), 2 * - - MAX ( + 11 ) * - 80 AS col2
----
13
-1760

onlyif mysql # aggregate syntax: 
query I rowsort label-2117
SELECT ALL - COUNT( * ) + COUNT( + NULLIF ( + 43, 94 ) ) * + COALESCE ( + COUNT( * ), + 79 + + - 17 + - + 45 ) + + 65 AS col0
----
65

skipif mysql # not compatible
query I rowsort label-2117
SELECT ALL - COUNT ( * ) + COUNT ( + NULLIF ( + 43, 94 ) ) * + COALESCE ( + COUNT ( * ), + 79 + + - 17 + - + 45 ) + + 65 AS col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-2118
SELECT - + 44 * - 14 - + + 63 + COUNT( * ) + - 74 * - 12
----
1442

skipif mysql # not compatible
query I rowsort label-2118
SELECT - + 44 * - 14 - + + 63 + COUNT ( * ) + - 74 * - 12
----
1442

onlyif mysql # aggregate syntax: 
query I rowsort label-2119
SELECT - COUNT( + 11 ) - - 47
----
46

skipif mysql # not compatible
query I rowsort label-2119
SELECT - COUNT ( + 11 ) - - 47
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-2120
SELECT CASE - 79 WHEN + 46 + - + COUNT( * ) + + COUNT( * ) + + 63 * + + 66 / MIN( + 4 ) * - COUNT( * ) + + 39 - 77 * - 78 THEN 54 - + 54 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2120
SELECT CASE - 79 WHEN + 46 + - + COUNT ( * ) + + COUNT ( * ) + + 63 * + + 66 / MIN ( + 4 ) * - COUNT ( * ) + + 39 - 77 * - 78 THEN 54 - + 54 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT ALL + 6 - + 79 + - 5 * + 19 - 7 AS col2
----
-175

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2123
SELECT DISTINCT + MAX( + - 35 ) - - 14 + - 91 AS col0
----
-112

skipif mysql # not compatible
query I rowsort label-2123
SELECT DISTINCT + MAX ( + - 35 ) - - 14 + - 91 AS col0
----
-112

onlyif mysql # aggregate syntax: 
query I rowsort label-2124
SELECT - + 45 * + COUNT( * ) + + - 21 * + 53 AS col0
----
-1158

skipif mysql # not compatible
query I rowsort label-2124
SELECT - + 45 * + COUNT ( * ) + + - 21 * + 53 AS col0
----
-1158

query I rowsort
SELECT DISTINCT - ( 73 )
----
-73

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

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

query I rowsort
SELECT - + ( + 14 ) - + 29 * + 23 AS col1
----
-681

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2128
SELECT - CAST( + 2 AS SIGNED ) * + 35 * + 54 AS col1
----
-3780

skipif mysql # not compatible
query I rowsort label-2128
SELECT - CAST ( + 2 AS INTEGER ) * + 35 * + 54 AS col1
----
-3780

onlyif mysql # DIV for integer division: 
query I rowsort label-2129
SELECT DISTINCT - 57 DIV + + 21 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-2129
SELECT DISTINCT - 57 / + + 21 AS col0
----
-2

query I rowsort
SELECT + - 18 * + 50 * + 76
----
-68400

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

skipif mysql # not compatible
query I rowsort label-2131
SELECT DISTINCT - COUNT ( * ) / 32 AS col1
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2133
SELECT + 18 * + SUM( ALL - COALESCE ( - 7, CAST( 99 AS SIGNED ), - 97 * + - 58 * - 59 ) ) - 82 + - COALESCE ( - + 59, 17 * ( + COUNT( COALESCE ( - 37, 26 * - 48 ) ) + - 53 ) ) * - 20 * + COUNT( * ) AS col2
----
-1136

skipif mysql # not compatible
query I rowsort label-2133
SELECT + 18 * + SUM ( ALL - COALESCE ( - 7, CAST ( 99 AS INTEGER ), - 97 * + - 58 * - 59 ) ) - 82 + - COALESCE ( - + 59, 17 * ( + COUNT ( COALESCE ( - 37, 26 * - 48 ) ) + - 53 ) ) * - 20 * + COUNT ( * ) AS col2
----
-1136

query I rowsort
SELECT - 86 + 6
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2135
SELECT + 92 * - CAST( - 94 AS SIGNED ) AS col1
----
8648

skipif mysql # not compatible
query I rowsort label-2135
SELECT + 92 * - CAST ( - 94 AS INTEGER ) AS col1
----
8648

query I rowsort
SELECT ALL 97 * - 40 AS col2
----
-3880

query I rowsort
SELECT ( COALESCE ( + 67, 41 ) )
----
67

query I rowsort
SELECT - ( - + 34 ) * - 76 + - 68 col2
----
-2652

onlyif mysql # aggregate syntax: 
query II rowsort label-2139
SELECT + COUNT( ALL - 54 ) + 60 AS col1, 61 AS col2
----
61
61

skipif mysql # not compatible
query II rowsort label-2139
SELECT + COUNT ( ALL - 54 ) + 60 AS col1, 61 AS col2
----
61
61

query I rowsort
SELECT DISTINCT 91 * 42 * + 80 * + + 13 col1
----
3974880

onlyif mysql # aggregate syntax: 
query I rowsort label-2141
SELECT COUNT( * ) * + 23 * 25 * 25 + 57 * + 12
----
15059

skipif mysql # not compatible
query I rowsort label-2141
SELECT COUNT ( * ) * + 23 * 25 * 25 + 57 * + 12
----
15059

onlyif mysql # aggregate syntax: 
query I rowsort label-2142
SELECT + ( SUM( DISTINCT ( - 97 ) ) ) + - - 13
----
-84

skipif mysql # not compatible
query I rowsort label-2142
SELECT + ( SUM ( DISTINCT ( - 97 ) ) ) + - - 13
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2143
SELECT ALL 80 * + ( - 66 ) + 66 AS col0, CAST( - - 56 AS SIGNED )
----
-5214
56

skipif mysql # not compatible
query II rowsort label-2143
SELECT ALL 80 * + ( - 66 ) + 66 AS col0, CAST ( - - 56 AS INTEGER )
----
-5214
56

query II rowsort
SELECT ALL - 1 * + 94 + 31 AS col1, - 87 AS col1
----
-63
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2145
SELECT + CASE + 51 WHEN - 96 THEN - + ( - 99 ) * - COUNT( DISTINCT - 78 ) + + - CAST( 6 AS SIGNED ) WHEN + 56 THEN - 59 ELSE - 35 END
----
-35

skipif mysql # not compatible
query I rowsort label-2145
SELECT + CASE + 51 WHEN - 96 THEN - + ( - 99 ) * - COUNT ( DISTINCT - 78 ) + + - CAST ( 6 AS INTEGER ) WHEN + 56 THEN - 59 ELSE - 35 END
----
-35

query I rowsort
SELECT DISTINCT 67 * 33 + - 35 * 81
----
-624

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

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

query II rowsort
SELECT - 54 + + - ( + 0 ) AS col2, - 29 + + + 97 AS col0
----
-54
68

query I rowsort
SELECT + 66 * + 71
----
4686

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2151
SELECT + + COALESCE ( + 77, 5 DIV - 51 ) DIV - - 27 + + - 70 AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-2151
SELECT + + COALESCE ( + 77, 5 / - 51 ) / - - 27 + + - 70 AS col2
----
-68

query I rowsort
SELECT ALL + + 87 - 11 AS col0
----
76

query I rowsort
SELECT - 1 - + + 39 - + 32 * + 1 AS col0
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2154
SELECT - 6 / + - CASE 38 WHEN - 63 * - CAST( NULL AS SIGNED ) * + 73 THEN - - MAX( DISTINCT - 40 ) + + CAST( NULL AS SIGNED ) WHEN 10 * - - 87 + - 75 * + 99 / - COUNT( - 83 ) THEN NULL END * - 17
----
NULL

skipif mysql # not compatible
query I rowsort label-2154
SELECT - 6 / + - CASE 38 WHEN - 63 * - CAST ( NULL AS INTEGER ) * + 73 THEN - - MAX ( DISTINCT - 40 ) + + CAST ( NULL AS INTEGER ) WHEN 10 * - - 87 + - 75 * + 99 / - COUNT ( - 83 ) THEN NULL END * - 17
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2155
SELECT ALL + CASE 22 WHEN - 35 * + + COUNT( * ) + + 49 THEN 6 * 35 * - + 32 / 61 WHEN 79 * + 31 THEN NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2155
SELECT ALL + CASE 22 WHEN - 35 * + + COUNT ( * ) + + 49 THEN 6 * 35 * - + 32 / 61 WHEN 79 * + 31 THEN NULL END col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2156
SELECT - + CAST( + 87 AS SIGNED ) + - + CASE - 76 WHEN 15 THEN NULL ELSE - + 1 END + + + 72 AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-2156
SELECT - + CAST ( + 87 AS INTEGER ) + - + CASE - 76 WHEN 15 THEN NULL ELSE - + 1 END + + + 72 AS col0
----
-14

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2158
SELECT - - COUNT( * ) + - + NULLIF ( + COUNT( * ), ( - CASE 26 WHEN + 86 THEN + 53 / - - ( 39 ) * + 67 * + COUNT( * ) WHEN - 91 THEN 9 * - 62 ELSE NULL END ) ) + 75 * 37
----
2775

skipif mysql # not compatible
query I rowsort label-2158
SELECT - - COUNT ( * ) + - + NULLIF ( + COUNT ( * ), ( - CASE 26 WHEN + 86 THEN + 53 / - - ( 39 ) * + 67 * + COUNT ( * ) WHEN - 91 THEN 9 * - 62 ELSE NULL END ) ) + 75 * 37
----
2775

query I rowsort
SELECT ALL + 11 * + 98
----
1078

query I rowsort
SELECT - 17 + + 6 AS col1
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-2161
SELECT - 22 * - COUNT( * ) * + COALESCE ( - - 8, 31 ) + 80 AS col0
----
256

skipif mysql # not compatible
query I rowsort label-2161
SELECT - 22 * - COUNT ( * ) * + COALESCE ( - - 8, 31 ) + 80 AS col0
----
256

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2163
SELECT + CAST( 69 AS SIGNED ) * - 67 + + 52 col2
----
-4571

skipif mysql # not compatible
query I rowsort label-2163
SELECT + CAST ( 69 AS INTEGER ) * - 67 + + 52 col2
----
-4571

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2164
SELECT ALL CASE + 62 WHEN + 59 THEN + 65 ELSE + 71 + + + 75 / + 32 END / COUNT( * ) + - CASE + CAST( NULL AS SIGNED ) WHEN ( COUNT( * ) ) * 12 THEN + - CAST( NULL AS SIGNED ) END + CASE - 85 - + COALESCE ( + COUNT( * ) + - 50, ( - 90 ) + + ( + 51 ), - 83 ) WHEN 3 THEN 11 / + COALESCE ( - 5 * - 50, + 29 + 8 ) WHEN - 61 + - 24 THEN + COUNT( * ) ELSE COUNT( * ) / 30 END * + NULLIF ( 84 * + 59, + 95 + COALESCE ( + 51, 12 ) ) / - 58
----
NULL

skipif mysql # not compatible
query I rowsort label-2164
SELECT ALL CASE + 62 WHEN + 59 THEN + 65 ELSE + 71 + + + 75 / + 32 END / COUNT ( * ) + - CASE + CAST ( NULL AS INTEGER ) WHEN ( COUNT ( * ) ) * 12 THEN + - CAST ( NULL AS INTEGER ) END + CASE - 85 - + COALESCE ( + COUNT ( * ) + - 50, ( - 90 ) + + ( + 51 ), - 83 ) WHEN 3 THEN 11 / + COALESCE ( - 5 * - 50, + 29 + 8 ) WHEN - 61 + - 24 THEN + COUNT ( * ) ELSE COUNT ( * ) / 30 END * + NULLIF ( 84 * + 59, + 95 + COALESCE ( + 51, 12 ) ) / - 58
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2165
SELECT - 62 DIV - 87 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2165
SELECT - 62 / - 87 AS col1
----
0

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2167
SELECT + COUNT( * ) DIV CASE - + 62 WHEN + 86 THEN NULL ELSE + - 51 * - 68 * + 36 DIV 17 + - COUNT( * ) + + 83 - 84 END + 38 * + 53 col2
----
2014

skipif mysql # not compatible
query I rowsort label-2167
SELECT + COUNT ( * ) / CASE - + 62 WHEN + 86 THEN NULL ELSE + - 51 * - 68 * + 36 / 17 + - COUNT ( * ) + + 83 - 84 END + 38 * + 53 col2
----
2014

onlyif mysql # DIV for integer division: 
query I rowsort label-2168
SELECT ALL 26 DIV + 30
----
0

skipif mysql # not compatible
query I rowsort label-2168
SELECT ALL 26 / + 30
----
0

query I rowsort
SELECT ALL 44 + + 76 col0
----
120

query I rowsort
SELECT ALL COALESCE ( 45, - 71, - 42 ) + 2
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-2171
SELECT DISTINCT 79 * 83 DIV - + 64
----
-102

skipif mysql # not compatible
query I rowsort label-2171
SELECT DISTINCT 79 * 83 / - + 64
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-2172
SELECT ALL COUNT( DISTINCT + 49 ) + + ( + 60 )
----
61

skipif mysql # not compatible
query I rowsort label-2172
SELECT ALL COUNT ( DISTINCT + 49 ) + + ( + 60 )
----
61

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2174
SELECT + ( + NULLIF ( - 14, + 90 * - CASE - COUNT( * ) WHEN + 45 * + 75 THEN 26 * - + 1 / + - 90 * 97 END * + - MAX( DISTINCT 13 ) + + COUNT( * ) ) ) * 60 - + 95
----
-935

skipif mysql # not compatible
query I rowsort label-2174
SELECT + ( + NULLIF ( - 14, + 90 * - CASE - COUNT ( * ) WHEN + 45 * + 75 THEN 26 * - + 1 / + - 90 * 97 END * + - MAX ( DISTINCT 13 ) + + COUNT ( * ) ) ) * 60 - + 95
----
-935

onlyif mysql # aggregate syntax: 
query I rowsort label-2175
SELECT COALESCE ( + 65, - MIN( 55 ) ) * - 98
----
-6370

skipif mysql # not compatible
query I rowsort label-2175
SELECT COALESCE ( + 65, - MIN ( 55 ) ) * - 98
----
-6370

query I rowsort
SELECT 31 * 2
----
62

query I rowsort
SELECT DISTINCT + 6 * + - 23
----
-138

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2178
SELECT ALL 7 - - AVG ( CAST( NULL AS DECIMAL ) ) * - + 20 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2178
SELECT ALL 7 - - AVG ( CAST ( NULL AS REAL ) ) * - + 20 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2179
SELECT NULLIF ( - 15, + COUNT( + 93 ) * CASE + 25 WHEN - COUNT( * ) * + 1 + - NULLIF ( + NULLIF ( + 33, - COUNT( * ) ), - CAST( - + 11 AS SIGNED ) - + ( - 1 ) ) THEN + 16 END * 54 )
----
-15

skipif mysql # not compatible
query I rowsort label-2179
SELECT NULLIF ( - 15, + COUNT ( + 93 ) * CASE + 25 WHEN - COUNT ( * ) * + 1 + - NULLIF ( + NULLIF ( + 33, - COUNT ( * ) ), - CAST ( - + 11 AS INTEGER ) - + ( - 1 ) ) THEN + 16 END * 54 )
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2180
SELECT DISTINCT - 74 * + 15 col1, - 87 DIV + ( - 26 ) * - - COUNT( * )
----
-1110
3

skipif mysql # not compatible
query II rowsort label-2180
SELECT DISTINCT - 74 * + 15 col1, - 87 / + ( - 26 ) * - - COUNT ( * )
----
-1110
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2181
SELECT + SUM( ALL - ( - + 61 ) ) + 31
----
92

skipif mysql # not compatible
query I rowsort label-2181
SELECT + SUM ( ALL - ( - + 61 ) ) + 31
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-2182
SELECT ALL + 63 DIV + 99 - - 39 AS col0
----
39

skipif mysql # not compatible
query I rowsort label-2182
SELECT ALL + 63 / + 99 - - 39 AS col0
----
39

query I rowsort
SELECT - 79 * - 95 * ( 75 ) + - 88
----
562787

onlyif mysql # aggregate syntax: 
query I rowsort label-2184
SELECT ALL + MIN( + 71 ) + 20
----
91

skipif mysql # not compatible
query I rowsort label-2184
SELECT ALL + MIN ( + 71 ) + 20
----
91

query I rowsort
SELECT 34 * - 79 + - - 33 AS col0
----
-2653

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2186
SELECT + 59 * 31 * CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2186
SELECT + 59 * 31 * CAST ( NULL AS REAL ) AS col2
----
NULL

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

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

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

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

query I rowsort
SELECT ALL - 97 + 25 AS col1
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2190
SELECT 62 - + 74 + + CAST( NULL AS SIGNED ) * - CAST( - 60 AS SIGNED ) * + 79 - 33 + 68 * - + 4 + 42 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2190
SELECT 62 - + 74 + + CAST ( NULL AS INTEGER ) * - CAST ( - 60 AS INTEGER ) * + 79 - 33 + 68 * - + 4 + 42 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2191
SELECT DISTINCT - SUM( - - 12 ) + + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2191
SELECT DISTINCT - SUM ( - - 12 ) + + CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2192
SELECT ALL + 25 + - - COUNT( * ) + + NULLIF ( NULLIF ( - 69, ( - COUNT( * ) ) ), + ( - 22 ) ) * + 43 * 46 col1
----
-136456

skipif mysql # not compatible
query I rowsort label-2192
SELECT ALL + 25 + - - COUNT ( * ) + + NULLIF ( NULLIF ( - 69, ( - COUNT ( * ) ) ), + ( - 22 ) ) * + 43 * 46 col1
----
-136456

onlyif mysql # aggregate syntax: 
query I rowsort label-2193
SELECT ALL - 70 * COUNT( * ) AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-2193
SELECT ALL - 70 * COUNT ( * ) AS col0
----
-70

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

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

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

query I rowsort
SELECT 71 + - - 36 AS col1
----
107

query I rowsort
SELECT 77 * - 39 * - 75 * - 77 AS col1
----
-17342325

query II rowsort
SELECT 48 AS col1, + 4
----
48
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2199
SELECT + COUNT( * ) * - - 28 + 72 * - 76 + + CASE + 21 WHEN ( 68 ) THEN + 51 * + 26 + + - 1 WHEN - 96 * - 71 + + + 42 + + 12 * + 42 THEN + COUNT( * ) DIV + 20 - + 45 ELSE - 56 * + 21 + 33 END AS col1
----
-6587

skipif mysql # not compatible
query I rowsort label-2199
SELECT + COUNT ( * ) * - - 28 + 72 * - 76 + + CASE + 21 WHEN ( 68 ) THEN + 51 * + 26 + + - 1 WHEN - 96 * - 71 + + + 42 + + 12 * + 42 THEN + COUNT ( * ) / + 20 - + 45 ELSE - 56 * + 21 + 33 END AS col1
----
-6587

onlyif mysql # aggregate syntax: 
query I rowsort label-2200
SELECT ALL - CASE COUNT( * ) WHEN - + 86 THEN + - 58 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2200
SELECT ALL - CASE COUNT ( * ) WHEN - + 86 THEN + - 58 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2201
SELECT COUNT( * ) - + 63 + + COUNT( * )
----
-61

skipif mysql # not compatible
query I rowsort label-2201
SELECT COUNT ( * ) - + 63 + + COUNT ( * )
----
-61

query I rowsort
SELECT 2 * + + 34 AS col2
----
68

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

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

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

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

query I rowsort
SELECT ALL - 96 * - + 53 AS col1
----
5088

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2206
SELECT ALL - 38 * 81 + + CASE + 67 WHEN COUNT( * ) THEN NULL ELSE + 34 DIV + - 44 + + 39 END + - 58 AS col1
----
-3097

skipif mysql # not compatible
query I rowsort label-2206
SELECT ALL - 38 * 81 + + CASE + 67 WHEN COUNT ( * ) THEN NULL ELSE + 34 / + - 44 + + 39 END + - 58 AS col1
----
-3097

query I rowsort
SELECT 33 * 63 + - 11 col2
----
2068

onlyif mysql # DIV for integer division: 
query I rowsort label-2208
SELECT + 18 * - 63 + + 43 DIV + 25 AS col2
----
-1133

skipif mysql # not compatible
query I rowsort label-2208
SELECT + 18 * - 63 + + 43 / + 25 AS col2
----
-1133

query I rowsort
SELECT - + 4 * 6 * - 12 + + - 72
----
216

onlyif mysql # DIV for integer division: 
query I rowsort label-2210
SELECT - 27 DIV 74 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2210
SELECT - 27 / 74 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2211
SELECT ALL 66 * MAX( 45 ) * - - ( 54 ) + - 22 * - + 7 - + 0 + 68 AS col1
----
160602

skipif mysql # not compatible
query I rowsort label-2211
SELECT ALL 66 * MAX ( 45 ) * - - ( 54 ) + - 22 * - + 7 - + 0 + 68 AS col1
----
160602

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2213
SELECT - 5, COUNT( DISTINCT 31 ) * COUNT( * ) + ( + - 57 ) AS col0
----
-5
-56

skipif mysql # not compatible
query II rowsort label-2213
SELECT - 5, COUNT ( DISTINCT 31 ) * COUNT ( * ) + ( + - 57 ) AS col0
----
-5
-56

query I rowsort
SELECT DISTINCT - 33 * + 58 AS col1
----
-1914

onlyif mysql # DIV for integer division: 
query I rowsort label-2215
SELECT + 77 * 3 DIV - 20
----
-11

skipif mysql # not compatible
query I rowsort label-2215
SELECT + 77 * 3 / - 20
----
-11

query I rowsort
SELECT DISTINCT 51 + - 34
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-2217
SELECT + 39 AS col0, + 58 + + + COUNT( * )
----
39
59

skipif mysql # not compatible
query II rowsort label-2217
SELECT + 39 AS col0, + 58 + + + COUNT ( * )
----
39
59

query I rowsort
SELECT ALL + 20 + - + 53 + 38 - - - ( + - 46 ) + + 17 * + 84
----
1479

query I rowsort
SELECT - 99 + + 59
----
-40

query II rowsort
SELECT ALL - 62 AS col0, - 9 * + 59
----
-62
-531

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2221
SELECT DISTINCT + 18 / + - CASE + 47 WHEN COUNT( * ) * - - 54 THEN + 38 / - + 16 * + 73 * + 37 WHEN + + CAST( NULL AS SIGNED ) THEN COALESCE ( + - 44, + - SUM( ALL - 25 ) ) + + CAST( + 99 AS SIGNED ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2221
SELECT DISTINCT + 18 / + - CASE + 47 WHEN COUNT ( * ) * - - 54 THEN + 38 / - + 16 * + 73 * + 37 WHEN + + CAST ( NULL AS INTEGER ) THEN COALESCE ( + - 44, + - SUM ( ALL - 25 ) ) + + CAST ( + 99 AS INTEGER ) END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2222
SELECT + MAX( - - CASE + 67 WHEN - 93 THEN - 47 * - 14 END ) + - + 0 * CAST( - 19 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2222
SELECT + MAX ( - - CASE + 67 WHEN - 93 THEN - 47 * - 14 END ) + - + 0 * CAST ( - 19 AS INTEGER )
----
NULL

query I rowsort
SELECT - ( 75 ) - + - 0
----
-75

query I rowsort
SELECT DISTINCT 68 * + 85 AS col1
----
5780

query I rowsort
SELECT DISTINCT 80 * + 30 * + 37 col0
----
88800

query I rowsort
SELECT ALL - 93 + - + 97
----
-190

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

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

query I rowsort
SELECT - CASE 9 WHEN 63 + - + 98 THEN NULL ELSE 68 END
----
-68

query I rowsort
SELECT ALL 15 * + 25
----
375

query II rowsort
SELECT 96, + 52 * 88 + 43 AS col2
----
96
4619

onlyif mysql # aggregate syntax: 
query I rowsort label-2231
SELECT - 3 + - CASE + 83 WHEN + 54 - MAX( + ( - 86 ) ) * + + 39 * + ( 63 ) THEN - - 83 WHEN + - 51 + - 96 + 73 THEN NULL ELSE + 18 * + ( - 5 ) * + 92 - + CASE 26 + + COUNT( * ) WHEN 19 / 95 THEN 13 END END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2231
SELECT - 3 + - CASE + 83 WHEN + 54 - MAX ( + ( - 86 ) ) * + + 39 * + ( 63 ) THEN - - 83 WHEN + - 51 + - 96 + 73 THEN NULL ELSE + 18 * + ( - 5 ) * + 92 - + CASE 26 + + COUNT ( * ) WHEN 19 / 95 THEN 13 END END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2232
SELECT - COALESCE ( CAST( - COUNT( * ) AS SIGNED ), + + AVG ( DISTINCT 47 ) ) * - - CAST( NULL AS SIGNED ) + + 29
----
NULL

skipif mysql # not compatible
query I rowsort label-2232
SELECT - COALESCE ( CAST ( - COUNT ( * ) AS INTEGER ), + + AVG ( DISTINCT 47 ) ) * - - CAST ( NULL AS INTEGER ) + + 29
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2233
SELECT + ( + 50 ) DIV 87 * - - ( + 15 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2233
SELECT + ( + 50 ) / 87 * - - ( + 15 ) AS col0
----
0

query I rowsort
SELECT CASE + 37 WHEN 9 THEN NULL WHEN - + ( 6 ) THEN + 54 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2235
SELECT 3 DIV SUM( DISTINCT - + 59 ) * COUNT( * ) + - 49 col2
----
-49

skipif mysql # not compatible
query I rowsort label-2235
SELECT 3 / SUM ( DISTINCT - + 59 ) * COUNT ( * ) + - 49 col2
----
-49

query I rowsort
SELECT - 31 * COALESCE ( 98, + - 92 )
----
-3038

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

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

query I rowsort
SELECT - 37 * + COALESCE ( 3, + - 4, + 76 ) col2
----
-111

onlyif mysql # aggregate syntax: 
query II rowsort label-2239
SELECT + 2, COUNT( * ) * + + 4 AS col2
----
2
4

skipif mysql # not compatible
query II rowsort label-2239
SELECT + 2, COUNT ( * ) * + + 4 AS col2
----
2
4

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2241
SELECT ALL + - 64 * COALESCE ( - + 80, 12, - + 68, - 10 * - 51 ) + - COUNT( * ) DIV + 93 * - 82 AS col1
----
5120

skipif mysql # not compatible
query I rowsort label-2241
SELECT ALL + - 64 * COALESCE ( - + 80, 12, - + 68, - 10 * - 51 ) + - COUNT ( * ) / + 93 * - 82 AS col1
----
5120

query I rowsort
SELECT + 98 * + ( 97 ) AS col1
----
9506

query I rowsort
SELECT - 67 + - - 48 AS col0
----
-19

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

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

query I rowsort
SELECT - 25 - - 36 + - - 50
----
61

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2247
SELECT - 38 - - 23 + COUNT( * ) + - - ( + COUNT( * ) ) AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-2247
SELECT - 38 - - 23 + COUNT ( * ) + - - ( + COUNT ( * ) ) AS col0
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2248
SELECT ALL + COALESCE ( + 93, - 38 * + CASE + - 3 WHEN - 56 DIV 86 THEN NULL WHEN + 66 + + 90 THEN - + COUNT( * ) END + + 78 * 84 + + ( - 15 ), - NULLIF ( - + 11, 68 ) * 6 - - NULLIF ( 58, + 62 ), + 62 DIV CAST( NULL AS SIGNED ) )
----
93

skipif mysql # not compatible
query I rowsort label-2248
SELECT ALL + COALESCE ( + 93, - 38 * + CASE + - 3 WHEN - 56 / 86 THEN NULL WHEN + 66 + + 90 THEN - + COUNT ( * ) END + + 78 * 84 + + ( - 15 ), - NULLIF ( - + 11, 68 ) * 6 - - NULLIF ( 58, + 62 ), + 62 / CAST ( NULL AS INTEGER ) )
----
93

query I rowsort
SELECT ALL - 28 * - 33 * - - 18 + 68 - + 72 * - 41 AS col2
----
19652

onlyif mysql # aggregate syntax: 
query I rowsort label-2250
SELECT DISTINCT SUM( - - 7 )
----
7

skipif mysql # not compatible
query I rowsort label-2250
SELECT DISTINCT SUM ( - - 7 )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2251
SELECT ALL 14 + 96 + - - 42 * + 71 + - COUNT( * ) AS col2
----
3091

skipif mysql # not compatible
query I rowsort label-2251
SELECT ALL 14 + 96 + - - 42 * + 71 + - COUNT ( * ) AS col2
----
3091

onlyif mysql # aggregate syntax: 
query I rowsort label-2252
SELECT - 83 + + SUM( 68 ) AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-2252
SELECT - 83 + + SUM ( 68 ) AS col2
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2253
SELECT - - CAST( 76 AS SIGNED ) - - COUNT( * ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-2253
SELECT - - CAST ( 76 AS INTEGER ) - - COUNT ( * ) AS col0
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2254
SELECT + 97 + + COALESCE ( - 99, + 53 ) * - COUNT( + - CAST( NULL AS SIGNED ) )
----
97

skipif mysql # not compatible
query I rowsort label-2254
SELECT + 97 + + COALESCE ( - 99, + 53 ) * - COUNT ( + - CAST ( NULL AS INTEGER ) )
----
97

query II rowsort
SELECT + 29 AS col2, - 51 + + + 91 AS col0
----
29
40

onlyif mysql # DIV for integer division: 
query I rowsort label-2256
SELECT ALL - 89 + 77 + - 0 + 81 - + 97 DIV 32
----
66

skipif mysql # not compatible
query I rowsort label-2256
SELECT ALL - 89 + 77 + - 0 + 81 - + 97 / 32
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2257
SELECT - + 83 * - + 37 * + + COUNT( * )
----
3071

skipif mysql # not compatible
query I rowsort label-2257
SELECT - + 83 * - + 37 * + + COUNT ( * )
----
3071

onlyif mysql # DIV for integer division: 
query I rowsort label-2258
SELECT - - ( - 63 ) DIV + 7 AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-2258
SELECT - - ( - 63 ) / + 7 AS col0
----
-9

query I rowsort
SELECT DISTINCT - 97 + 40 + - 76 * - 65 * 74
----
365503

query I rowsort
SELECT ALL NULLIF ( + 2, + 69 - + 22 ) AS col2
----
2

query I rowsort
SELECT ALL + 97 * + + 84
----
8148

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2262
SELECT + ( CAST( NULL AS SIGNED ) ) * + COUNT( * ) * - + COALESCE ( - - 82, + NULLIF ( - 60, - 41 ), + CAST( NULL AS SIGNED ) - - 16, - COUNT( * ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2262
SELECT + ( CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) * - + COALESCE ( - - 82, + NULLIF ( - 60, - 41 ), + CAST ( NULL AS INTEGER ) - - 16, - COUNT ( * ) ) col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2263
SELECT ALL SUM ( ALL - 61 )
----
-61

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2265
SELECT - 91 - + COUNT( * ) * - 19
----
-72

skipif mysql # not compatible
query I rowsort label-2265
SELECT - 91 - + COUNT ( * ) * - 19
----
-72

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2267
SELECT ALL MAX( DISTINCT 65 ) * + COUNT( * ) + + - 17
----
48

skipif mysql # not compatible
query I rowsort label-2267
SELECT ALL MAX ( DISTINCT 65 ) * + COUNT ( * ) + + - 17
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2268
SELECT + CAST( CASE + 85 WHEN - NULLIF ( + 97, - 38 + 13 + - - CAST( NULL AS DECIMAL ) * - - 44 * - COALESCE ( + - 47, - - 36 * 15 + - SUM( DISTINCT + 70 ) ) * + 53 + - ( COUNT( * ) ) ) THEN 67 END AS SIGNED ) - - 26
----
NULL

skipif mysql # not compatible
query I rowsort label-2268
SELECT + CAST ( CASE + 85 WHEN - NULLIF ( + 97, - 38 + 13 + - - CAST ( NULL AS REAL ) * - - 44 * - COALESCE ( + - 47, - - 36 * 15 + - SUM ( DISTINCT + 70 ) ) * + 53 + - ( COUNT ( * ) ) ) THEN 67 END AS INTEGER ) - - 26
----
NULL

query I rowsort
SELECT + 73 * + - 35 AS col1
----
-2555

query I rowsort
SELECT ALL ( 43 ) * + - 32 * - 25
----
34400

query I rowsort
SELECT + 19 * + 93 AS col2
----
1767

onlyif mysql # aggregate syntax: 
query I rowsort label-2272
SELECT ALL COUNT( * ) * 5 * ( + CASE - - 54 WHEN - 92 THEN NULL WHEN + - 42 THEN NULL WHEN - - 21 + - CASE 80 WHEN 89 THEN + - 39 WHEN - + 50 THEN NULL ELSE NULL END + - 8 * - + 22 * + 54 THEN NULL ELSE + 43 * 68 END )
----
14620

skipif mysql # not compatible
query I rowsort label-2272
SELECT ALL COUNT ( * ) * 5 * ( + CASE - - 54 WHEN - 92 THEN NULL WHEN + - 42 THEN NULL WHEN - - 21 + - CASE 80 WHEN 89 THEN + - 39 WHEN - + 50 THEN NULL ELSE NULL END + - 8 * - + 22 * + 54 THEN NULL ELSE + 43 * 68 END )
----
14620

onlyif mysql # DIV for integer division: 
query II rowsort label-2273
SELECT + 37 DIV - 95 AS col1, 41 + + 20 DIV + 23
----
0
41

skipif mysql # not compatible
query II rowsort label-2273
SELECT + 37 / - 95 AS col1, 41 + + 20 / + 23
----
0
41

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2275
SELECT 36 * - 36 * - + COUNT( * ) - - 85 + ( - COUNT( * ) ) - COUNT( CAST( - - 4 AS SIGNED ) ) * - COALESCE ( - 15, + - 8 * - - 86 ) DIV 54 * - 53 + + 24 AS col0
----
1404

skipif mysql # not compatible
query I rowsort label-2275
SELECT 36 * - 36 * - + COUNT ( * ) - - 85 + ( - COUNT ( * ) ) - COUNT ( CAST ( - - 4 AS INTEGER ) ) * - COALESCE ( - 15, + - 8 * - - 86 ) / 54 * - 53 + + 24 AS col0
----
1404

onlyif mysql # aggregate syntax: 
query I rowsort label-2276
SELECT - 40 * + - 38 + - - COUNT( * ) * + 13
----
1533

skipif mysql # not compatible
query I rowsort label-2276
SELECT - 40 * + - 38 + - - COUNT ( * ) * + 13
----
1533

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2277
SELECT - - SUM( 77 ) * 70 * - 98 + + 30 - + 43 * - 73 * - 59 * + CAST( NULL AS SIGNED ) - 10 + 50 + - - NULLIF ( COUNT( DISTINCT - 74 ), + NULLIF ( + + 52, - - ( + 87 ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2277
SELECT - - SUM ( 77 ) * 70 * - 98 + + 30 - + 43 * - 73 * - 59 * + CAST ( NULL AS INTEGER ) - 10 + 50 + - - NULLIF ( COUNT ( DISTINCT - 74 ), + NULLIF ( + + 52, - - ( + 87 ) ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2278
SELECT ALL + SUM( - + 5 ) col2
----
-5

skipif mysql # not compatible
query I rowsort label-2278
SELECT ALL + SUM ( - + 5 ) col2
----
-5

query I rowsort
SELECT DISTINCT + ( - 30 ) * 41 + - - 72 + 79 AS col2
----
-1079

onlyif mysql # aggregate syntax: 
query II rowsort label-2280
SELECT + + 81 + - 9 * COUNT( * ) AS col2, + 4 AS col1
----
72
4

skipif mysql # not compatible
query II rowsort label-2280
SELECT + + 81 + - 9 * COUNT ( * ) AS col2, + 4 AS col1
----
72
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2281
SELECT DISTINCT + 74 * CASE - 89 WHEN - 89 + 93 THEN + - CASE 24 WHEN - 1 THEN + 38 + + ( + COUNT( * ) ) END END / + + 46 * COUNT( * ) - - ( + 22 ) * CAST( NULL AS SIGNED ) + + + ( - MIN( + 92 ) ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2281
SELECT DISTINCT + 74 * CASE - 89 WHEN - 89 + 93 THEN + - CASE 24 WHEN - 1 THEN + 38 + + ( + COUNT ( * ) ) END END / + + 46 * COUNT ( * ) - - ( + 22 ) * CAST ( NULL AS INTEGER ) + + + ( - MIN ( + 92 ) ) * COUNT ( * )
----
NULL

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

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

query II rowsort
SELECT DISTINCT - 92 + + ( - + 87 ) AS col0, 91 AS col2
----
-179
91

query I rowsort
SELECT - NULLIF ( ( + - 70 ), 3 )
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-2285
SELECT + COUNT( * ) + + COUNT( * ), - 83 AS col1
----
2
-83

skipif mysql # not compatible
query II rowsort label-2285
SELECT + COUNT ( * ) + + COUNT ( * ), - 83 AS col1
----
2
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2286
SELECT CASE - - COALESCE ( + COUNT( * ), 55 ) WHEN 50 * - AVG ( + 24 ) THEN - COALESCE ( - 71, 98 * 85 * + CAST( NULL AS SIGNED ), - CAST( NULL AS SIGNED ) * - 6 * + 26 + 62 ) WHEN + AVG ( CAST( NULL AS SIGNED ) ) - + COUNT( * ) * + 5 THEN NULL END * - 83
----
NULL

skipif mysql # not compatible
query I rowsort label-2286
SELECT CASE - - COALESCE ( + COUNT ( * ), 55 ) WHEN 50 * - AVG ( + 24 ) THEN - COALESCE ( - 71, 98 * 85 * + CAST ( NULL AS INTEGER ), - CAST ( NULL AS INTEGER ) * - 6 * + 26 + 62 ) WHEN + AVG ( CAST ( NULL AS INTEGER ) ) - + COUNT ( * ) * + 5 THEN NULL END * - 83
----
NULL

query I rowsort
SELECT ALL + 99 - - 43 * 32 * ( - NULLIF ( - 51, + + 65 * - 29 * ( + + 43 ) + + 56 * 11 + - 10 * + 2 * + + 15 ) ) + - - 77 * + + 89
----
77128

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2289
SELECT 97 + - ( COALESCE ( + COUNT( * ), - 71 ) ) + 12 - 86 + 24
----
46

skipif mysql # not compatible
query I rowsort label-2289
SELECT 97 + - ( COALESCE ( + COUNT ( * ), - 71 ) ) + 12 - 86 + 24
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2290
SELECT DISTINCT - 21 * CAST( + - 76 AS SIGNED ) * + ( 51 ) * - + 94 - + ( + COALESCE ( 57, + + 95 * - - COUNT( * ) * - - 42 * + + 14 + - 50 ) ) col0
----
-7651281

skipif mysql # not compatible
query I rowsort label-2290
SELECT DISTINCT - 21 * CAST ( + - 76 AS INTEGER ) * + ( 51 ) * - + 94 - + ( + COALESCE ( 57, + + 95 * - - COUNT ( * ) * - - 42 * + + 14 + - 50 ) ) col0
----
-7651281

onlyif mysql # aggregate syntax: 
query I rowsort label-2291
SELECT 80 * + COALESCE ( - 21, ( + COUNT( * ) ) ) * 7
----
-11760

skipif mysql # not compatible
query I rowsort label-2291
SELECT 80 * + COALESCE ( - 21, ( + COUNT ( * ) ) ) * 7
----
-11760

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2292
SELECT 87 + ( - 72 ) * - CAST( + 23 AS SIGNED ) + + + 42, COALESCE ( COUNT( * ), 52 ) - - + COUNT( DISTINCT - 78 ) + + - 20 - + NULLIF ( 38, - - SUM( DISTINCT 97 ) + - 22 + 55 + 75 ) + - COUNT( 5 ) DIV + 24 * - 55 AS col1
----
1785
-56

skipif mysql # not compatible
query II rowsort label-2292
SELECT 87 + ( - 72 ) * - CAST ( + 23 AS INTEGER ) + + + 42, COALESCE ( COUNT ( * ), 52 ) - - + COUNT ( DISTINCT - 78 ) + + - 20 - + NULLIF ( 38, - - SUM ( DISTINCT 97 ) + - 22 + 55 + 75 ) + - COUNT ( 5 ) / + 24 * - 55 AS col1
----
1785
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-2293
SELECT DISTINCT - CASE - MIN( ALL 63 ) WHEN - ( - SUM( ALL + - 74 ) ) * - COUNT( * ) + - 92 + + 87 * 87 * + - MAX( - 76 ) THEN - - 64 END * + + 58 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2293
SELECT DISTINCT - CASE - MIN ( ALL 63 ) WHEN - ( - SUM ( ALL + - 74 ) ) * - COUNT ( * ) + - 92 + + 87 * 87 * + - MAX ( - 76 ) THEN - - 64 END * + + 58 col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2294
SELECT 96 + - + CASE - - 85 WHEN - + 42 THEN NULL WHEN + ( - 36 ) THEN - + 5 END + + ( - COUNT( * ) ) * + AVG ( DISTINCT - - 68 ) * - + 87 + + COUNT( * ) + 75 - - 90 + + ( + - CAST( CAST( 26 AS SIGNED ) AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2294
SELECT 96 + - + CASE - - 85 WHEN - + 42 THEN NULL WHEN + ( - 36 ) THEN - + 5 END + + ( - COUNT ( * ) ) * + AVG ( DISTINCT - - 68 ) * - + 87 + + COUNT ( * ) + 75 - - 90 + + ( + - CAST ( CAST ( 26 AS INTEGER ) AS REAL ) )
----
NULL

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

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

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

query I rowsort
SELECT COALESCE ( + 18, 22 + + 81 ) * 8
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-2298
SELECT NULLIF ( + - ( + + SUM( + 31 ) ), - 87 / + - 65 ) + + + 94 AS col2
----
63

skipif mysql # not compatible
query I rowsort label-2298
SELECT NULLIF ( + - ( + + SUM ( + 31 ) ), - 87 / + - 65 ) + + + 94 AS col2
----
63

query II rowsort
SELECT ALL 44 col0, - ( 52 ) AS col0
----
44
-52

query II rowsort
SELECT - 45 AS col1, - 37 col2
----
-45
-37

query I rowsort
SELECT 5 * + - 17 AS col2
----
-85

query I rowsort
SELECT ALL 72 + - 64
----
8

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

skipif mysql # not compatible
query II rowsort label-2303
SELECT 78, + CAST ( NULL AS INTEGER ) col0
----
78
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2305
SELECT ALL MAX( ( + 39 ) ) + + - 38 DIV - + 7 AS col1
----
44

skipif mysql # not compatible
query I rowsort label-2305
SELECT ALL MAX ( ( + 39 ) ) + + - 38 / - + 7 AS col1
----
44

query I rowsort
SELECT 78 * 77 AS col0
----
6006

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2307
SELECT ALL - 13 * + CAST( NULL AS DECIMAL ) + + 58 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2307
SELECT ALL - 13 * + CAST ( NULL AS REAL ) + + 58 AS col1
----
NULL

query II rowsort
SELECT DISTINCT - - 35, 97 AS col1
----
35
97

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

skipif mysql # not compatible
query I rowsort label-2309
SELECT ALL - 63 + - COUNT ( * ) AS col2
----
-64

query I rowsort
SELECT 58 * - 77 * + 21
----
-93786

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

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

query I rowsort
SELECT ( - 96 ) - - + 19 AS col1
----
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-2313
SELECT + 91, - COALESCE ( + 21, - 56, - NULLIF ( - 71, + 48 / + 61 * - COUNT( * ) * + 43 * - - 5 + - CASE 66 WHEN + ( + 49 ) * - - COUNT( * ) + 64 THEN NULL ELSE 33 END - CASE + 34 WHEN - CASE + 63 WHEN CASE - 76 WHEN 23 THEN NULL ELSE + 77 * COUNT( * ) END THEN COUNT( * ) + 68 ELSE COUNT( * ) + - 95 END THEN + 21 END ) ) AS col2
----
91
-21

skipif mysql # not compatible
query II rowsort label-2313
SELECT + 91, - COALESCE ( + 21, - 56, - NULLIF ( - 71, + 48 / + 61 * - COUNT ( * ) * + 43 * - - 5 + - CASE 66 WHEN + ( + 49 ) * - - COUNT ( * ) + 64 THEN NULL ELSE 33 END - CASE + 34 WHEN - CASE + 63 WHEN CASE - 76 WHEN 23 THEN NULL ELSE + 77 * COUNT ( * ) END THEN COUNT ( * ) + 68 ELSE COUNT ( * ) + - 95 END THEN + 21 END ) ) AS col2
----
91
-21

query I rowsort
SELECT + 36 - - 10
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2315
SELECT - COALESCE ( + + CAST( COALESCE ( + 46, + - 45 + + SUM( DISTINCT - - 25 ) + + 69 + - 84 + + - COUNT( * ) / + 99 / 87 + - 3 * 94 + + NULLIF ( 45, - 24 * COUNT( * ) + - 43 ) ) AS SIGNED ), - ( + 22 ) ) * - CAST( CAST( NULL AS SIGNED ) + + 68 AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2315
SELECT - COALESCE ( + + CAST ( COALESCE ( + 46, + - 45 + + SUM ( DISTINCT - - 25 ) + + 69 + - 84 + + - COUNT ( * ) / + 99 / 87 + - 3 * 94 + + NULLIF ( 45, - 24 * COUNT ( * ) + - 43 ) ) AS INTEGER ), - ( + 22 ) ) * - CAST ( CAST ( NULL AS INTEGER ) + + 68 AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT + - 96 AS col2, - 92 col1
----
-96
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-2317
SELECT ALL COUNT( * ) - 47 AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-2317
SELECT ALL COUNT ( * ) - 47 AS col2
----
-46

query I rowsort
SELECT ALL + - 54 - 29
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-2319
SELECT - - SUM( - - 3 ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-2319
SELECT - - SUM ( - - 3 ) AS col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2320
SELECT ALL - NULLIF ( + 18, COUNT( * ) * + 57 ) AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-2320
SELECT ALL - NULLIF ( + 18, COUNT ( * ) * + 57 ) AS col1
----
-18

query I rowsort
SELECT DISTINCT 51 * - ( 87 ) * - - 41 * - 32 AS col0
----
5821344

onlyif mysql # aggregate syntax: 
query I rowsort label-2322
SELECT 0 - - 28 + - + COUNT( ALL - 41 ) + + 29 * 48
----
1419

skipif mysql # not compatible
query I rowsort label-2322
SELECT 0 - - 28 + - + COUNT ( ALL - 41 ) + + 29 * 48
----
1419

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2324
SELECT ALL - COUNT( * ) * CASE CASE + + 47 WHEN + 13 + - COUNT( * ) THEN - + 75 * + 97 - - - 83 * + - 95 - + 77 END WHEN 84 * 6 THEN NULL WHEN - 15 * + - 24 + + - 83 THEN - 23 ELSE + NULLIF ( - 17, + 1 + MIN( 7 + 22 ) ) END AS col1
----
17

skipif mysql # not compatible
query I rowsort label-2324
SELECT ALL - COUNT ( * ) * CASE CASE + + 47 WHEN + 13 + - COUNT ( * ) THEN - + 75 * + 97 - - - 83 * + - 95 - + 77 END WHEN 84 * 6 THEN NULL WHEN - 15 * + - 24 + + - 83 THEN - 23 ELSE + NULLIF ( - 17, + 1 + MIN ( 7 + 22 ) ) END AS col1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-2325
SELECT - COUNT( ALL + 5 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2325
SELECT - COUNT ( ALL + 5 ) AS col1
----
-1

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

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

query II rowsort
SELECT 25 * 3 AS col1, + 16 AS col1
----
75
16

onlyif mysql # aggregate syntax: 
query I rowsort label-2328
SELECT 96 * + MIN( DISTINCT - 51 )
----
-4896

skipif mysql # not compatible
query I rowsort label-2328
SELECT 96 * + MIN ( DISTINCT - 51 )
----
-4896

query I rowsort
SELECT ALL 50 * - 13
----
-650

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2331
SELECT 15 DIV - CASE - 34 WHEN 3 THEN NULL ELSE + 28 END AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2331
SELECT 15 / - CASE - 34 WHEN 3 THEN NULL ELSE + 28 END AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2332
SELECT DISTINCT COUNT( ALL - 85 ) AS col2, - CAST( NULL AS DECIMAL ) + + + 28 + 98
----
1
NULL

skipif mysql # not compatible
query II rowsort label-2332
SELECT DISTINCT COUNT ( ALL - 85 ) AS col2, - CAST ( NULL AS REAL ) + + + 28 + 98
----
1
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2333
SELECT 5 DIV - + 96 col0
----
0

skipif mysql # not compatible
query I rowsort label-2333
SELECT 5 / - + 96 col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2334
SELECT ALL - CASE + 43 WHEN - CAST( NULL AS SIGNED ) * + 23 THEN ( - 22 ) * - SUM( + 26 ) - - 66 * - ( - - 90 ) END + 4 * 95
----
NULL

skipif mysql # not compatible
query I rowsort label-2334
SELECT ALL - CASE + 43 WHEN - CAST ( NULL AS INTEGER ) * + 23 THEN ( - 22 ) * - SUM ( + 26 ) - - 66 * - ( - - 90 ) END + 4 * 95
----
NULL

query I rowsort
SELECT 12 - 98 AS col0
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-2336
SELECT CASE + 62 WHEN 46 THEN NULL WHEN - - 8 * - COUNT( * ) + 46 THEN NULL WHEN - NULLIF ( + + 45, + 24 * + 27 / + 22 ) + - 84 - + 7 THEN NULL ELSE + 83 END * - 24 AS col2
----
-1992

skipif mysql # not compatible
query I rowsort label-2336
SELECT CASE + 62 WHEN 46 THEN NULL WHEN - - 8 * - COUNT ( * ) + 46 THEN NULL WHEN - NULLIF ( + + 45, + 24 * + 27 / + 22 ) + - 84 - + 7 THEN NULL ELSE + 83 END * - 24 AS col2
----
-1992

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2337
SELECT 21 - + 88 + - AVG ( - CAST( NULL AS SIGNED ) ) * - + 59 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2337
SELECT 21 - + 88 + - AVG ( - CAST ( NULL AS INTEGER ) ) * - + 59 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - ( - 24 ) * - + 70 * + - ( - - 52 ) AS col1
----
87360

query II rowsort
SELECT ALL + 45 + - 48, - 37 AS col2
----
-3
-37

query I rowsort
SELECT 31 + + 33 AS col2
----
64

query I rowsort
SELECT 49 + + 46 * + - 36
----
-1607

onlyif mysql # aggregate syntax: 
query I rowsort label-2342
SELECT COUNT( DISTINCT - COALESCE ( 73, + ( 36 ) * 87 + + 53 + - ( + 28 ), + ( 93 ) * 35 + + 99 ) ) * + 96 - + + 71 + 3 * 48 * - + COUNT( 95 ) / 38 + + CASE + 88 WHEN 99 + - 38 THEN - 15 ELSE NULL END / COALESCE ( 65, + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2342
SELECT COUNT ( DISTINCT - COALESCE ( 73, + ( 36 ) * 87 + + 53 + - ( + 28 ), + ( 93 ) * 35 + + 99 ) ) * + 96 - + + 71 + 3 * 48 * - + COUNT ( 95 ) / 38 + + CASE + 88 WHEN 99 + - 38 THEN - 15 ELSE NULL END / COALESCE ( 65, + COUNT ( * ) )
----
NULL

query II rowsort
SELECT + + 98 + + - ( + + ( ( - NULLIF ( + 49, - 12 ) ) ) ) + 33 * - 2 AS col2, 56
----
81
56

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2344
SELECT ALL - CAST( NULL AS DECIMAL ) * + + MIN( + + 27 ) - - 85 * MIN( DISTINCT 44 ) * ( - 94 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2344
SELECT ALL - CAST ( NULL AS REAL ) * + + MIN ( + + 27 ) - - 85 * MIN ( DISTINCT 44 ) * ( - 94 ) col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2345
SELECT COALESCE ( + + 91, - + COUNT ( * ) ) AS col0
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2346
SELECT + 77 * ( - - 26 ) - 92 - - 56 * + + 95 - - CAST( NULL AS DECIMAL ) * + 25 + + 46 * - - CAST( - SUM( ALL - ( - 7 ) ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2346
SELECT + 77 * ( - - 26 ) - 92 - - 56 * + + 95 - - CAST ( NULL AS REAL ) * + 25 + + 46 * - - CAST ( - SUM ( ALL - ( - 7 ) ) AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2347
SELECT ALL COUNT( * ) * 7 * ( - 94 ) DIV + 35 AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-2347
SELECT ALL COUNT ( * ) * 7 * ( - 94 ) / + 35 AS col2
----
-18

query I rowsort
SELECT ALL + - CASE + 9 WHEN + 88 THEN NULL WHEN + 88 THEN NULL WHEN + 42 THEN - 66 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2349
SELECT + 6 DIV - 65 + + COUNT( ALL + - 83 ) + + 37 + + 9 + + - 36 - 84 * 61 AS col0
----
-5113

skipif mysql # not compatible
query I rowsort label-2349
SELECT + 6 / - 65 + + COUNT ( ALL + - 83 ) + + 37 + + 9 + + - 36 - 84 * 61 AS col0
----
-5113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2350
SELECT ALL + SUM( - - 21 ) * + 34 - - 67 + - 89 * + CAST( NULL AS SIGNED ) / + COALESCE ( + - COUNT( * ), + 89 * - - 18 ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2350
SELECT ALL + SUM ( - - 21 ) * + 34 - - 67 + - 89 * + CAST ( NULL AS INTEGER ) / + COALESCE ( + - COUNT ( * ), + 89 * - - 18 ) * COUNT ( * )
----
NULL

query I rowsort
SELECT + 34 + 43 + + 77 AS col0
----
154

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

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

query I rowsort
SELECT ALL + 40 * + + 68 col0
----
2720

query I rowsort
SELECT 60 * - 35 + - 54 + - - 47
----
-2107

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2355
SELECT + 39 + - 19 DIV + COUNT( * ) col2, - 77 AS col2
----
20
-77

skipif mysql # not compatible
query II rowsort label-2355
SELECT + 39 + - 19 / + COUNT ( * ) col2, - 77 AS col2
----
20
-77

query I rowsort
SELECT + 51 * 22
----
1122

query I rowsort
SELECT + 68 + + - 47
----
21

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2359
SELECT - 33 DIV 12 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-2359
SELECT - 33 / 12 AS col2
----
-2

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2361
SELECT + ( COUNT( * ) ) + - 28 AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-2361
SELECT + ( COUNT ( * ) ) + - 28 AS col1
----
-27

query I rowsort
SELECT - COALESCE ( + - 42, - 77 ) AS col0
----
42

query I rowsort
SELECT DISTINCT 67 / - - CASE + 12 WHEN + 76 THEN 22 END
----
NULL

query I rowsort
SELECT ALL - 3 + 10 + - - 90 + + + 44 AS col0
----
141

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2366
SELECT ALL COUNT( * ) + + 45 * + ( 86 ) - - + 7 AS col2
----
3878

skipif mysql # not compatible
query I rowsort label-2366
SELECT ALL COUNT ( * ) + + 45 * + ( 86 ) - - + 7 AS col2
----
3878

onlyif mysql # aggregate syntax: 
query I rowsort label-2367
SELECT - 90 + 27 + - COUNT( * ) AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-2367
SELECT - 90 + 27 + - COUNT ( * ) AS col1
----
-64

query I rowsort
SELECT ALL 96 + + 17 AS col0
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-2369
SELECT - CASE + MIN( - 35 ) WHEN 21 THEN 41 + 47 ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2369
SELECT - CASE + MIN ( - 35 ) WHEN 21 THEN 41 + 47 ELSE NULL END col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2370
SELECT - SUM( 73 ) + - 4 AS col2, NULLIF ( 3, 91 ) - 13 AS col1
----
-77
-10

skipif mysql # not compatible
query II rowsort label-2370
SELECT - SUM ( 73 ) + - 4 AS col2, NULLIF ( 3, 91 ) - 13 AS col1
----
-77
-10

query I rowsort
SELECT + 78 + - + 36 + - 74 AS col1
----
-32

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2373
SELECT + 54 + COUNT( * )
----
55

skipif mysql # not compatible
query I rowsort label-2373
SELECT + 54 + COUNT ( * )
----
55

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2375
SELECT ALL CASE + 83 WHEN - MIN( DISTINCT - 83 ) THEN + 92 WHEN + 54 THEN NULL END
----
92

skipif mysql # not compatible
query I rowsort label-2375
SELECT ALL CASE + 83 WHEN - MIN ( DISTINCT - 83 ) THEN + 92 WHEN + 54 THEN NULL END
----
92

query I rowsort
SELECT ALL 36 + - 76
----
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2377
SELECT ALL + 41 + - ( COUNT( * ) ) * - 42 DIV - 77 AS col0
----
41

skipif mysql # not compatible
query I rowsort label-2377
SELECT ALL + 41 + - ( COUNT ( * ) ) * - 42 / - 77 AS col0
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2378
SELECT - 24 * 98 DIV - COUNT( * )
----
2352

skipif mysql # not compatible
query I rowsort label-2378
SELECT - 24 * 98 / - COUNT ( * )
----
2352

query I rowsort
SELECT - 11 + 40 AS col1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-2380
SELECT - - COALESCE ( + 29, 6 + COALESCE ( + - COUNT( * ), - 94, NULLIF ( - 39, - - 99 ) ) - + ( - 87 ), 82 )
----
29

skipif mysql # not compatible
query I rowsort label-2380
SELECT - - COALESCE ( + 29, 6 + COALESCE ( + - COUNT ( * ), - 94, NULLIF ( - 39, - - 99 ) ) - + ( - 87 ), 82 )
----
29

query I rowsort
SELECT 27 * - - 1 * + 38 + + 2 AS col1
----
1028

query I rowsort
SELECT DISTINCT + 63 * - 24 AS col1
----
-1512

query I rowsort
SELECT DISTINCT + + NULLIF ( + - 99, 5 ) AS col2
----
-99

onlyif mysql # DIV for integer division: 
query II rowsort label-2384
SELECT - - NULLIF ( 64, - - 86 ) DIV + 81 * - + 18 AS col1, 77
----
0
77

skipif mysql # not compatible
query II rowsort label-2384
SELECT - - NULLIF ( 64, - - 86 ) / + 81 * - + 18 AS col1, 77
----
0
77

onlyif mysql # aggregate syntax: 
query II rowsort label-2385
SELECT ALL - 72 * - + 83 * 94 AS col2, - COUNT( * ) AS col1
----
561744
-1

skipif mysql # not compatible
query II rowsort label-2385
SELECT ALL - 72 * - + 83 * 94 AS col2, - COUNT ( * ) AS col1
----
561744
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-2386
SELECT - 42 AS col2, + 84 * COUNT( * ) * - 28
----
-42
-2352

skipif mysql # not compatible
query II rowsort label-2386
SELECT - 42 AS col2, + 84 * COUNT ( * ) * - 28
----
-42
-2352

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

query I rowsort
SELECT DISTINCT + - 95 * - ( + - 52 ) * - 62 * 91 * 45
----
1254216600

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2390
SELECT - - 75 DIV + + 18
----
4

skipif mysql # not compatible
query I rowsort label-2390
SELECT - - 75 / + + 18
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2391
SELECT + 87 * - COALESCE ( - 50, + CAST( + + 16 AS SIGNED ) ) * + NULLIF ( 86, - 9 ) - 34 * + 90 + - 28
----
371012

skipif mysql # not compatible
query I rowsort label-2391
SELECT + 87 * - COALESCE ( - 50, + CAST ( + + 16 AS INTEGER ) ) * + NULLIF ( 86, - 9 ) - 34 * + 90 + - 28
----
371012

query I rowsort
SELECT + 77 * 50
----
3850

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

query I rowsort
SELECT ALL + NULLIF ( + 92, + 37 + - 96 * + COALESCE ( 24, + + 42 ) ) AS col1
----
92

query I rowsort
SELECT + 21 * + 7
----
147

query I rowsort
SELECT ALL 98 * + 43 * NULLIF ( 75, - 34 + - + 82 ) + - - 99 - + 11
----
316138

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2397
SELECT + NULLIF ( + 79, - - CAST( NULL AS SIGNED ) * ( + - 86 ) ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-2397
SELECT + NULLIF ( + 79, - - CAST ( NULL AS INTEGER ) * ( + - 86 ) ) AS col0
----
79

query I rowsort
SELECT + 91 * ( - 34 ) AS col1
----
-3094

onlyif mysql # aggregate syntax: 
query I rowsort label-2399
SELECT DISTINCT + SUM( 86 ) * - 24 + + + 96
----
-1968

skipif mysql # not compatible
query I rowsort label-2399
SELECT DISTINCT + SUM ( 86 ) * - 24 + + + 96
----
-1968

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

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

query I rowsort
SELECT ALL - 79 * + + 56 + 15 AS col1
----
-4409

query I rowsort
SELECT + 55 / CASE 10 WHEN + 90 - + 31 THEN 54 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2403
SELECT ALL 42 + - + CASE - 38 WHEN 11 THEN NULL WHEN + - COUNT( * ) + + - 80 THEN 1 ELSE - ( - 70 ) END + - 45 + ( + 37 ) + + - 79 * + 2 * + - 29
----
4546

skipif mysql # not compatible
query I rowsort label-2403
SELECT ALL 42 + - + CASE - 38 WHEN 11 THEN NULL WHEN + - COUNT ( * ) + + - 80 THEN 1 ELSE - ( - 70 ) END + - 45 + ( + 37 ) + + - 79 * + 2 * + - 29
----
4546

query II rowsort
SELECT DISTINCT 46 AS col0, ( + + 52 ) AS col0
----
46
52

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2406
SELECT - CAST( + + CAST( 2 AS SIGNED ) AS SIGNED )
----
-2

skipif mysql # not compatible
query I rowsort label-2406
SELECT - CAST ( + + CAST ( 2 AS INTEGER ) AS INTEGER )
----
-2

query I rowsort
SELECT DISTINCT 48 - - 71 + + - 50 AS col0
----
69

query I rowsort
SELECT - 40 + + 13
----
-27

query I rowsort
SELECT ALL 79 - 41 AS col1
----
38

query II rowsort
SELECT - 64, - ( - 54 ) AS col0
----
-64
54

onlyif mysql # aggregate syntax: 
query I rowsort label-2411
SELECT + 32 * 80 - + - MAX( - 71 ) AS col0
----
2489

skipif mysql # not compatible
query I rowsort label-2411
SELECT + 32 * 80 - + - MAX ( - 71 ) AS col0
----
2489

query I rowsort
SELECT DISTINCT - 34 * - - 60 + + 53 + + 44 * 38
----
-315

query I rowsort
SELECT ALL COALESCE ( + 23, - ( 69 ) * - + ( - ( 64 ) ) )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2414
SELECT COUNT( * ) + - 99 * + 87 * + 95 AS col2
----
-818234

skipif mysql # not compatible
query I rowsort label-2414
SELECT COUNT ( * ) + - 99 * + 87 * + 95 AS col2
----
-818234

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2416
SELECT + CASE - SUM( ALL + - 80 ) WHEN - CAST( NULL AS SIGNED ) THEN - - ( - - 9 ) WHEN + + 30 + - + COUNT( * ) THEN NULL ELSE 13 END + + 72 * - - 56 + - COUNT( * ) AS col0
----
4044

skipif mysql # not compatible
query I rowsort label-2416
SELECT + CASE - SUM ( ALL + - 80 ) WHEN - CAST ( NULL AS INTEGER ) THEN - - ( - - 9 ) WHEN + + 30 + - + COUNT ( * ) THEN NULL ELSE 13 END + + 72 * - - 56 + - COUNT ( * ) AS col0
----
4044

query I rowsort
SELECT DISTINCT 68 * + 56 - - - 61
----
3747

onlyif mysql # DIV for integer division: 
query II rowsort label-2418
SELECT DISTINCT - + 90 AS col1, 83 DIV - 87
----
-90
0

skipif mysql # not compatible
query II rowsort label-2418
SELECT DISTINCT - + 90 AS col1, 83 / - 87
----
-90
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2419
SELECT 81 + + COUNT( * ) + 92 * - 45 * - 77 col1
----
318862

skipif mysql # not compatible
query I rowsort label-2419
SELECT 81 + + COUNT ( * ) + 92 * - 45 * - 77 col1
----
318862

onlyif mysql # DIV for integer division: 
query I rowsort label-2420
SELECT - 39 DIV + 18 - - + 46 AS col2
----
44

skipif mysql # not compatible
query I rowsort label-2420
SELECT - 39 / + 18 - - + 46 AS col2
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2421
SELECT + 5, + 20 + COALESCE ( + 30, - - COALESCE ( - + 18, - COUNT( * ) ), + + 9 - 91 DIV 11 ) - + + ( + - 21 ) AS col0
----
5
71

skipif mysql # not compatible
query II rowsort label-2421
SELECT + 5, + 20 + COALESCE ( + 30, - - COALESCE ( - + 18, - COUNT ( * ) ), + + 9 - 91 / 11 ) - + + ( + - 21 ) AS col0
----
5
71

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

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

query I rowsort
SELECT 71 + - 2 * + 45 AS col1
----
-19

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2425
SELECT + 47 * + + 9 + + 14 - + ( + + NULLIF ( + COUNT( * ), + ( 86 ) * - ( + - 16 ) + - 74 * - - CASE - 82 WHEN + 23 / + - 86 + COUNT( ALL ( - + NULLIF ( - 23, - 12 ) ) ) + + 53 THEN 85 END ) ) + ( - 83 + 73 * + 88 )
----
6777

skipif mysql # not compatible
query I rowsort label-2425
SELECT + 47 * + + 9 + + 14 - + ( + + NULLIF ( + COUNT ( * ), + ( 86 ) * - ( + - 16 ) + - 74 * - - CASE - 82 WHEN + 23 / + - 86 + COUNT ( ALL ( - + NULLIF ( - 23, - 12 ) ) ) + + 53 THEN 85 END ) ) + ( - 83 + 73 * + 88 )
----
6777

query III rowsort
SELECT ALL - 48 AS col1, 54 * - + ( + - 75 ) AS col2, 44
----
-48
4050
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2427
SELECT ALL - 76 + - 77 - 51 + + + CAST( - 46 AS SIGNED ) * + + 64 * + 47 * CASE + + 91 WHEN - + 45 - - 95 + - 44 * + 78 / - COUNT( * ) THEN - 0 - - - 37 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2427
SELECT ALL - 76 + - 77 - 51 + + + CAST ( - 46 AS INTEGER ) * + + 64 * + 47 * CASE + + 91 WHEN - + 45 - - 95 + - 44 * + 78 / - COUNT ( * ) THEN - 0 - - - 37 ELSE NULL END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2429
SELECT DISTINCT + 4 + COUNT( * ) * - 64
----
-60

skipif mysql # not compatible
query I rowsort label-2429
SELECT DISTINCT + 4 + COUNT ( * ) * - 64
----
-60

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

skipif mysql # not compatible
query I rowsort label-2430
SELECT CAST ( NULL AS INTEGER ) * + 94 + - 93
----
NULL

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

query I rowsort
SELECT 21 + - 26 * + 35 * - + 56 * + 54 - COALESCE ( + - 30, - 38, - - 95 )
----
2751891

query I rowsort
SELECT 24 * + 14 * - - 45 * - 22
----
-332640

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2434
SELECT DISTINCT 43 - + CASE - COUNT( CAST( + 31 AS SIGNED ) ) WHEN - 35 THEN + + SUM( 83 ) / 54 WHEN - 27 + - 44 THEN + + 72 * - + 28 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2434
SELECT DISTINCT 43 - + CASE - COUNT ( CAST ( + 31 AS INTEGER ) ) WHEN - 35 THEN + + SUM ( 83 ) / 54 WHEN - 27 + - 44 THEN + + 72 * - + 28 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2435
SELECT CASE - CAST( NULL AS SIGNED ) WHEN CAST( NULL AS SIGNED ) + 98 + + 42 - - NULLIF ( CASE - - 92 WHEN - + ( - + AVG ( + 8 ) ) * - 84 + - 52 + + 39 * + 66 THEN - 80 ELSE + 39 END, - 21 + + 7 ) * NULLIF ( + 66, - - 30 * + CASE 7 WHEN COALESCE ( 12, - NULLIF ( + 1, + 62 * - 67 ) + + 79 / COUNT( * ), + 55 + AVG ( ALL 19 ) * - 25 ) THEN + 17 WHEN + AVG ( + 13 ) * - COUNT( 47 ) THEN NULL END ) + + 36 * 50 THEN + COUNT( * ) * 42 END + 62
----
NULL

skipif mysql # not compatible
query I rowsort label-2435
SELECT CASE - CAST ( NULL AS INTEGER ) WHEN CAST ( NULL AS INTEGER ) + 98 + + 42 - - NULLIF ( CASE - - 92 WHEN - + ( - + AVG ( + 8 ) ) * - 84 + - 52 + + 39 * + 66 THEN - 80 ELSE + 39 END, - 21 + + 7 ) * NULLIF ( + 66, - - 30 * + CASE 7 WHEN COALESCE ( 12, - NULLIF ( + 1, + 62 * - 67 ) + + 79 / COUNT ( * ), + 55 + AVG ( ALL 19 ) * - 25 ) THEN + 17 WHEN + AVG ( + 13 ) * - COUNT ( 47 ) THEN NULL END ) + + 36 * 50 THEN + COUNT ( * ) * 42 END + 62
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2436
SELECT DISTINCT + 41 - + CAST( - MIN( 53 ) AS SIGNED ) col2
----
94

skipif mysql # not compatible
query I rowsort label-2436
SELECT DISTINCT + 41 - + CAST ( - MIN ( 53 ) AS INTEGER ) col2
----
94

query I rowsort
SELECT ALL 42 * 75 * + - 80
----
-252000

onlyif mysql # aggregate syntax: 
query I rowsort label-2438
SELECT + 37 * + - 56 + 44 + - COUNT( * ) * + 27 * 27 * 89 * + 69 AS col0
----
-4478817

skipif mysql # not compatible
query I rowsort label-2438
SELECT + 37 * + - 56 + 44 + - COUNT ( * ) * + 27 * 27 * 89 * + 69 AS col0
----
-4478817

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2439
SELECT + 7 + - COUNT( * ) - - 67 - 23 * - CAST( - 27 AS SIGNED ) DIV - MIN( + + 3 ) + + COUNT( * ) AS col2
----
281

skipif mysql # not compatible
query I rowsort label-2439
SELECT + 7 + - COUNT ( * ) - - 67 - 23 * - CAST ( - 27 AS INTEGER ) / - MIN ( + + 3 ) + + COUNT ( * ) AS col2
----
281

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

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

query I rowsort
SELECT 78 + + - 57 + + - 0 AS col1
----
21

query I rowsort
SELECT - 73 * 39 * - 29 + + 26
----
82589

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2443
SELECT ALL 13 DIV - COALESCE ( - + 19, + - 4 - + + COUNT( * ) ) + COUNT( - 36 ) col0, - ( + + 34 )
----
1
-34

skipif mysql # not compatible
query II rowsort label-2443
SELECT ALL 13 / - COALESCE ( - + 19, + - 4 - + + COUNT ( * ) ) + COUNT ( - 36 ) col0, - ( + + 34 )
----
1
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2444
SELECT DISTINCT - 86 DIV + 38 + + CAST( - COUNT( * ) AS SIGNED ) + 97 AS col1
----
94

skipif mysql # not compatible
query I rowsort label-2444
SELECT DISTINCT - 86 / + 38 + + CAST ( - COUNT ( * ) AS INTEGER ) + 97 AS col1
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-2445
SELECT 17 DIV 1 AS col0
----
17

skipif mysql # not compatible
query I rowsort label-2445
SELECT 17 / 1 AS col0
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2446
SELECT NULLIF ( + 71, + CAST( 15 AS SIGNED ) ) + + 67 + - + NULLIF ( + 20, - + MIN( - 39 ) + 3 - - 76 * + 52 ) * - 24 AS col0
----
618

skipif mysql # not compatible
query I rowsort label-2446
SELECT NULLIF ( + 71, + CAST ( 15 AS INTEGER ) ) + + 67 + - + NULLIF ( + 20, - + MIN ( - 39 ) + 3 - - 76 * + 52 ) * - 24 AS col0
----
618

query I rowsort
SELECT - 53 * - 69 * - 19
----
-69483

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2448
SELECT + COUNT( * ) + - 30 DIV MIN( + 31 ) + + + 63 AS col0, 49 + + 93 + 87 * + + NULLIF ( + 4, 22 + 88 ) * + - 56
----
64
-19346

skipif mysql # not compatible
query II rowsort label-2448
SELECT + COUNT ( * ) + - 30 / MIN ( + 31 ) + + + 63 AS col0, 49 + + 93 + 87 * + + NULLIF ( + 4, 22 + 88 ) * + - 56
----
64
-19346

onlyif mysql # aggregate syntax: 
query II rowsort label-2449
SELECT DISTINCT - COUNT( * ) * + CASE 68 WHEN + 76 + + 3 * - 33 * - 43 * - 71 * 7 THEN - 32 + 26 + - 12 END + - 0 * - MAX( DISTINCT + 0 ) col1, 52 + + 3 AS col1
----
NULL
55

skipif mysql # not compatible
query II rowsort label-2449
SELECT DISTINCT - COUNT ( * ) * + CASE 68 WHEN + 76 + + 3 * - 33 * - 43 * - 71 * 7 THEN - 32 + 26 + - 12 END + - 0 * - MAX ( DISTINCT + 0 ) col1, 52 + + 3 AS col1
----
NULL
55

query II rowsort
SELECT 86 * - + 16 AS col0, + 15 AS col0
----
-1376
15

query I rowsort
SELECT DISTINCT 74 * 84 * - + 64 + - + 97
----
-397921

query I rowsort
SELECT ALL + 8 * - 91 + 82 AS col0
----
-646

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2453
SELECT ALL CAST( NULL AS SIGNED ) * + 45 + + 93, - 3 col2
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-2453
SELECT ALL CAST ( NULL AS INTEGER ) * + 45 + + 93, - 3 col2
----
NULL
-3

query I rowsort
SELECT ALL + ( - 37 ) + + 39 col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2455
SELECT SUM( DISTINCT - 91 )
----
-91

skipif mysql # not compatible
query I rowsort label-2455
SELECT SUM ( DISTINCT - 91 )
----
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-2456
SELECT 34 * + CASE + 13 WHEN + + COUNT( * ) THEN NULL WHEN - - 20 THEN NULL ELSE - ( 25 ) END * COUNT( * ) AS col0, 27 * + 5
----
-850
135

skipif mysql # not compatible
query II rowsort label-2456
SELECT 34 * + CASE + 13 WHEN + + COUNT ( * ) THEN NULL WHEN - - 20 THEN NULL ELSE - ( 25 ) END * COUNT ( * ) AS col0, 27 * + 5
----
-850
135

query II rowsort
SELECT + 73 AS col0, 47 AS col0
----
73
47

query I rowsort
SELECT 24 - - 4 col1
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2459
SELECT DISTINCT - SUM( - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

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

query I rowsort
SELECT ALL - ( 36 ) col0
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2461
SELECT ALL - AVG ( DISTINCT - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2461
SELECT ALL - AVG ( DISTINCT - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2462
SELECT DISTINCT + 73 * - ( + + CAST( + 38 AS SIGNED ) ) AS col1
----
-2774

skipif mysql # not compatible
query I rowsort label-2462
SELECT DISTINCT + 73 * - ( + + CAST ( + 38 AS INTEGER ) ) AS col1
----
-2774

onlyif mysql # DIV for integer division: 
query I rowsort label-2463
SELECT ALL - 82 DIV + ( - 75 )
----
1

skipif mysql # not compatible
query I rowsort label-2463
SELECT ALL - 82 / + ( - 75 )
----
1

query I rowsort
SELECT + 54 + + 41
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-2465
SELECT ALL + ( - MAX( ALL + 77 ) ) * + - 21 AS col0
----
1617

skipif mysql # not compatible
query I rowsort label-2465
SELECT ALL + ( - MAX ( ALL + 77 ) ) * + - 21 AS col0
----
1617

onlyif mysql # aggregate syntax: 
query I rowsort label-2466
SELECT - COUNT( * ) - + 94 AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-2466
SELECT - COUNT ( * ) - + 94 AS col2
----
-95

query II rowsort
SELECT - 24 * + + ( - 7 ), + COALESCE ( 2, - - 95 + 77, + 77 ) AS col1
----
168
2

query I rowsort
SELECT + 5 * 56 * 90 * + 83 col1
----
2091600

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2469
SELECT DISTINCT + COALESCE ( - 36, + CAST( NULL AS SIGNED ) + + 73 - - + 6 ) col1
----
-36

skipif mysql # not compatible
query I rowsort label-2469
SELECT DISTINCT + COALESCE ( - 36, + CAST ( NULL AS INTEGER ) + + 73 - - + 6 ) col1
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-2470
SELECT - + SUM( DISTINCT 60 ) + + 19 + 86
----
45

skipif mysql # not compatible
query I rowsort label-2470
SELECT - + SUM ( DISTINCT 60 ) + + 19 + 86
----
45

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2471
SELECT ALL - 93 + - 15 * 44 + + - 77 * - - MIN( ALL - + ( + - 38 ) ) * + MIN( DISTINCT + + CAST( NULL AS DECIMAL ) ) + + 59
----
NULL

skipif mysql # not compatible
query I rowsort label-2471
SELECT ALL - 93 + - 15 * 44 + + - 77 * - - MIN ( ALL - + ( + - 38 ) ) * + MIN ( DISTINCT + + CAST ( NULL AS REAL ) ) + + 59
----
NULL

query I rowsort
SELECT ALL - + 76 * 65
----
-4940

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

skipif mysql # not compatible
query I rowsort label-2473
SELECT + + 13 * - CAST ( NULL AS REAL ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2474
SELECT - - COUNT( * ) + - - 16 * 4 * + 90 * 29 * 61
----
10189441

skipif mysql # not compatible
query I rowsort label-2474
SELECT - - COUNT ( * ) + - - 16 * 4 * + 90 * 29 * 61
----
10189441

onlyif mysql # aggregate syntax: 
query I rowsort label-2475
SELECT + + 63 / - CASE 74 WHEN + 29 THEN NULL WHEN + + 6 / - 44 THEN COUNT( * ) + - COUNT( * ) * + 39 - - 3 - ( + MAX( DISTINCT + + 99 ) ) * 69 ELSE NULL END * - 91
----
NULL

skipif mysql # not compatible
query I rowsort label-2475
SELECT + + 63 / - CASE 74 WHEN + 29 THEN NULL WHEN + + 6 / - 44 THEN COUNT ( * ) + - COUNT ( * ) * + 39 - - 3 - ( + MAX ( DISTINCT + + 99 ) ) * 69 ELSE NULL END * - 91
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2476
SELECT DISTINCT - - 34 + - COUNT( 11 ) * + + 79 * - - 89 AS col0
----
-6997

skipif mysql # not compatible
query I rowsort label-2476
SELECT DISTINCT - - 34 + - COUNT ( 11 ) * + + 79 * - - 89 AS col0
----
-6997

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2478
SELECT ALL + 81 DIV - + 29
----
-2

skipif mysql # not compatible
query I rowsort label-2478
SELECT ALL + 81 / - + 29
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2479
SELECT 22 * - + COUNT( * ) - + 5
----
-27

skipif mysql # not compatible
query I rowsort label-2479
SELECT 22 * - + COUNT ( * ) - + 5
----
-27

query I rowsort
SELECT - ( - 47 ) + ( + - 74 ) AS col2
----
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2481
SELECT - MIN( ALL + 12 ) DIV - + 5 + - ( - 63 ) + - + 79 AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-2481
SELECT - MIN ( ALL + 12 ) / - + 5 + - ( - 63 ) + - + 79 AS col2
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2482
SELECT ( + COALESCE ( + 69, - CAST( NULL AS SIGNED ) ) ) col0, + 23 + + COUNT( ( + 4 ) )
----
69
24

skipif mysql # not compatible
query II rowsort label-2482
SELECT ( + COALESCE ( + 69, - CAST ( NULL AS INTEGER ) ) ) col0, + 23 + + COUNT ( ( + 4 ) )
----
69
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2483
SELECT + 26 + + 32 / - 61 - CAST( NULL AS SIGNED ) + + 70
----
NULL

skipif mysql # not compatible
query I rowsort label-2483
SELECT + 26 + + 32 / - 61 - CAST ( NULL AS INTEGER ) + + 70
----
NULL

query I rowsort
SELECT ALL - 13 * - 9 - - + 10 * 89 * 43
----
38387

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2485
SELECT + 38 * + 33 DIV + COUNT( * ) AS col2
----
1254

skipif mysql # not compatible
query I rowsort label-2485
SELECT + 38 * + 33 / + COUNT ( * ) AS col2
----
1254

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2488
SELECT + 90 + + CAST( NULL AS SIGNED ) AS col0, + 61 * - - ( - COUNT( * ) )
----
NULL
-61

skipif mysql # not compatible
query II rowsort label-2488
SELECT + 90 + + CAST ( NULL AS INTEGER ) AS col0, + 61 * - - ( - COUNT ( * ) )
----
NULL
-61

query I rowsort
SELECT ALL + 36 * + 80 - - + 1
----
2881

query I rowsort
SELECT + 8 * + + 70
----
560

onlyif mysql # aggregate syntax: 
query I rowsort label-2491
SELECT SUM( ALL + 95 ) * - + 6 * - 71 * + - 11 * - 32 + - 24 * - COUNT( * ) AS col2
----
14245464

skipif mysql # not compatible
query I rowsort label-2491
SELECT SUM ( ALL + 95 ) * - + 6 * - 71 * + - 11 * - 32 + - 24 * - COUNT ( * ) AS col2
----
14245464

query I rowsort
SELECT 87 * + 0 + - - ( 52 ) * - 86
----
-4472

onlyif mysql # aggregate syntax: 
query I rowsort label-2493
SELECT NULLIF ( 46, - COUNT( * ) )
----
46

skipif mysql # not compatible
query I rowsort label-2493
SELECT NULLIF ( 46, - COUNT ( * ) )
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-2494
SELECT + 24 DIV - 52 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2494
SELECT + 24 / - 52 AS col1
----
0

query I rowsort
SELECT DISTINCT + 79 * - - 84 * + 49
----
325164

query I rowsort
SELECT ALL 16 * + 57
----
912

query I rowsort
SELECT + 20 * + + 14 + 97 AS col2
----
377

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2498
SELECT DISTINCT COALESCE ( + 57, + + 88, + ( NULLIF ( - + 3, - - CAST( NULL AS SIGNED ) ) ) ) * - 29 AS col1
----
-1653

skipif mysql # not compatible
query I rowsort label-2498
SELECT DISTINCT COALESCE ( + 57, + + 88, + ( NULLIF ( - + 3, - - CAST ( NULL AS INTEGER ) ) ) ) * - 29 AS col1
----
-1653

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2499
SELECT ALL - + 24 + + ( + 93 ) + - COUNT( * ) DIV + 52 + - 7
----
62

skipif mysql # not compatible
query I rowsort label-2499
SELECT ALL - + 24 + + ( + 93 ) + - COUNT ( * ) / + 52 + - 7
----
62

query I rowsort
SELECT - 78 + + - 92 AS col1
----
-170

onlyif mysql # aggregate syntax: 
query I rowsort label-2501
SELECT DISTINCT - SUM( - COALESCE ( + 89, + + 70 ) ) + - + 99 + + 68 col0
----
58

skipif mysql # not compatible
query I rowsort label-2501
SELECT DISTINCT - SUM ( - COALESCE ( + 89, + + 70 ) ) + - + 99 + + 68 col0
----
58

query II rowsort
SELECT ALL + + 11 + 55 col0, + 59 AS col1
----
66
59

query I rowsort
SELECT - 5 + + - 70 + - + 60 AS col1
----
-135

query II rowsort
SELECT ALL - 62 + 92 AS col0, - 10 AS col1
----
30
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-2505
SELECT DISTINCT + COUNT( * ) + 40 * - + 7 * - + 77
----
21561

skipif mysql # not compatible
query I rowsort label-2505
SELECT DISTINCT + COUNT ( * ) + 40 * - + 7 * - + 77
----
21561

query I rowsort
SELECT - 19 + + + 34 * + 22 - CASE - 48 WHEN 17 THEN NULL ELSE + 39 END
----
690

query I rowsort
SELECT DISTINCT + 34 + + 46
----
80

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

skipif mysql # not compatible
query I rowsort label-2508
SELECT - - COUNT ( * ) * 97
----
97

query I rowsort
SELECT ALL - 1 + 68 + + 74 * 81
----
6061

onlyif mysql # aggregate syntax: 
query I rowsort label-2510
SELECT - + COALESCE ( + 45, + MIN( - - 73 ), + + 72, 39 )
----
-45

skipif mysql # not compatible
query I rowsort label-2510
SELECT - + COALESCE ( + 45, + MIN ( - - 73 ), + + 72, 39 )
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2511
SELECT ALL + 21 + - CASE CASE + 92 WHEN - + COUNT( * ) THEN + - MAX( + 74 ) ELSE + 92 * + 51 + + - CAST( NULL AS SIGNED ) * + 94 + 93 * - 59 END WHEN + 73 THEN + + CASE - 62 WHEN + 4 * - 14 * + + 61 + - 88 * 98 THEN COUNT( * ) + - 55 ELSE NULL END WHEN + - 75 * 62 THEN NULL WHEN + ( 92 ) * 53 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2511
SELECT ALL + 21 + - CASE CASE + 92 WHEN - + COUNT ( * ) THEN + - MAX ( + 74 ) ELSE + 92 * + 51 + + - CAST ( NULL AS INTEGER ) * + 94 + 93 * - 59 END WHEN + 73 THEN + + CASE - 62 WHEN + 4 * - 14 * + + 61 + - 88 * 98 THEN COUNT ( * ) + - 55 ELSE NULL END WHEN + - 75 * 62 THEN NULL WHEN + ( 92 ) * 53 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2512
SELECT CASE + 34 WHEN - 78 / - 11 THEN + COUNT( 12 ) WHEN + 42 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2512
SELECT CASE + 34 WHEN - 78 / - 11 THEN + COUNT ( 12 ) WHEN + 42 THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2513
SELECT ALL - ( 42 ) * 65 DIV + 21 + + + 21
----
-109

skipif mysql # not compatible
query I rowsort label-2513
SELECT ALL - ( 42 ) * 65 / + 21 + + + 21
----
-109

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2514
SELECT - - 46 DIV 98, 22 DIV MAX( ALL 61 ) + 22 AS col0
----
0
22

skipif mysql # not compatible
query II rowsort label-2514
SELECT - - 46 / 98, 22 / MAX ( ALL 61 ) + 22 AS col0
----
0
22

onlyif mysql # aggregate syntax: 
query I rowsort label-2515
SELECT ALL - MAX( + 78 ) - + MAX( DISTINCT + 50 ) col0
----
-128

skipif mysql # not compatible
query I rowsort label-2515
SELECT ALL - MAX ( + 78 ) - + MAX ( DISTINCT + 50 ) col0
----
-128

query I rowsort
SELECT - 38 * - + 34 * 17 * - 56 col0
----
-1229984

onlyif mysql # aggregate syntax: 
query I rowsort label-2517
SELECT + COUNT( * ) * + NULLIF ( + + 61, + 41 ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-2517
SELECT + COUNT ( * ) * + NULLIF ( + + 61, + 41 ) AS col0
----
61

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2520
SELECT DISTINCT + 9 DIV COUNT( * ) DIV + 77 AS col2, - 79 * + 58
----
0
-4582

skipif mysql # not compatible
query II rowsort label-2520
SELECT DISTINCT + 9 / COUNT ( * ) / + 77 AS col2, - 79 * + 58
----
0
-4582

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2521
SELECT ALL + COALESCE ( - 13, - MIN( ALL - + 28 ) * 59, + + 95 ) DIV - 77 + - 49 col2
----
-49

skipif mysql # not compatible
query I rowsort label-2521
SELECT ALL + COALESCE ( - 13, - MIN ( ALL - + 28 ) * 59, + + 95 ) / - 77 + - 49 col2
----
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2522
SELECT COUNT( * ) DIV + - 49 * - 61 col0
----
0

skipif mysql # not compatible
query I rowsort label-2522
SELECT COUNT ( * ) / + - 49 * - 61 col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2523
SELECT 40 * + ( - + COUNT( * ) ) AS col1, 56 * + - 20 * - - 20 col0
----
-40
-22400

skipif mysql # not compatible
query II rowsort label-2523
SELECT 40 * + ( - + COUNT ( * ) ) AS col1, 56 * + - 20 * - - 20 col0
----
-40
-22400

query I rowsort
SELECT DISTINCT 78 * - 64
----
-4992

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

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

query II rowsort
SELECT ALL - 30, 28 * - NULLIF ( + 12, - 17 ) col0
----
-30
-336

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2527
SELECT ALL ( + 27 ) + - - 93 + - 82 DIV - - MAX( + - 2 ) + + 43
----
204

skipif mysql # not compatible
query I rowsort label-2527
SELECT ALL ( + 27 ) + - - 93 + - 82 / - - MAX ( + - 2 ) + + 43
----
204

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2528
SELECT ALL - + 84 AS col0, 72 DIV - 55 + + ( + + COUNT( * ) ) - + - 57
----
-84
57

skipif mysql # not compatible
query II rowsort label-2528
SELECT ALL - + 84 AS col0, 72 / - 55 + + ( + + COUNT ( * ) ) - + - 57
----
-84
57

query I rowsort
SELECT ALL 23 + 12 * + 48 + + 93 + - 73
----
619

query I rowsort
SELECT 53 * - - 77 * + 29 * - + 32 * 44
----
-166635392

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2531
SELECT + 95 AS col2, - 48 * 91 + - - COUNT( * ) - - 25 DIV + MIN( 66 ) * COALESCE ( 10, 31 )
----
95
-4367

skipif mysql # not compatible
query II rowsort label-2531
SELECT + 95 AS col2, - 48 * 91 + - - COUNT ( * ) - - 25 / + MIN ( 66 ) * COALESCE ( 10, 31 )
----
95
-4367

onlyif mysql # aggregate syntax: 
query I rowsort label-2532
SELECT ALL - 66 + COUNT( * ) * 96 AS col2
----
30

skipif mysql # not compatible
query I rowsort label-2532
SELECT ALL - 66 + COUNT ( * ) * 96 AS col2
----
30

query I rowsort
SELECT DISTINCT - 74 * + + 82 AS col1
----
-6068

query I rowsort
SELECT DISTINCT 7 + - 52 AS col2
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2535
SELECT ALL - 5 + + NULLIF ( + COUNT( * ), CAST( - - 36 AS SIGNED ) )
----
-4

skipif mysql # not compatible
query I rowsort label-2535
SELECT ALL - 5 + + NULLIF ( + COUNT ( * ), CAST ( - - 36 AS INTEGER ) )
----
-4

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

skipif mysql # not compatible
query I rowsort label-2536
SELECT ALL + + COUNT ( * ) * 76 AS col0
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2537
SELECT DISTINCT - + CAST( NULL AS SIGNED ) + - 34 + 83 + COUNT( * ) + + 6 * - + 21 AS col2, + 46
----
NULL
46

skipif mysql # not compatible
query II rowsort label-2537
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) + - 34 + 83 + COUNT ( * ) + + 6 * - + 21 AS col2, + 46
----
NULL
46

query I rowsort
SELECT DISTINCT 35 * 32
----
1120

onlyif mysql # aggregate syntax: 
query I rowsort label-2539
SELECT DISTINCT COUNT( * ) * 92 AS col0
----
92

skipif mysql # not compatible
query I rowsort label-2539
SELECT DISTINCT COUNT ( * ) * 92 AS col0
----
92

query I rowsort
SELECT - 22 + - 12 AS col2
----
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-2541
SELECT - 92 DIV - 48 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2541
SELECT - 92 / - 48 AS col2
----
1

query I rowsort
SELECT 50 + - 5 col2
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2543
SELECT ALL - - ( + ( CAST( NULL AS SIGNED ) ) ) - - + ( + SUM( DISTINCT - + 19 ) ) * + ( 91 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2543
SELECT ALL - - ( + ( CAST ( NULL AS INTEGER ) ) ) - - + ( + SUM ( DISTINCT - + 19 ) ) * + ( 91 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2544
SELECT 15 + - - COALESCE ( - 44, - COUNT( * ) DIV AVG ( ALL + + 93 ) ) AS col0, - 26
----
-29
-26

skipif mysql # not compatible
query II rowsort label-2544
SELECT 15 + - - COALESCE ( - 44, - COUNT ( * ) / AVG ( ALL + + 93 ) ) AS col0, - 26
----
-29
-26

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2545
SELECT - 56 AS col1, COALESCE ( - - 55, - - 15, + - CAST( NULL AS SIGNED ) * 23 + - 19 + 52 DIV 50 )
----
-56
55

skipif mysql # not compatible
query II rowsort label-2545
SELECT - 56 AS col1, COALESCE ( - - 55, - - 15, + - CAST ( NULL AS INTEGER ) * 23 + - 19 + 52 / 50 )
----
-56
55

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

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

query I rowsort
SELECT 34 + - 60
----
-26

query II rowsort
SELECT ALL 13 col2, - 32 AS col1
----
13
-32

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

query I rowsort
SELECT ALL + 96 * 95
----
9120

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

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

query I rowsort
SELECT 34 * - 94
----
-3196

query I rowsort
SELECT ALL + 96 * - + 3
----
-288

query II rowsort
SELECT 16 AS col1, 75
----
16
75

query I rowsort
SELECT 79 + - ( 77 ) AS col0
----
2

query I rowsort
SELECT 96 * + 52 + - - 87 AS col2
----
5079

onlyif mysql # aggregate syntax: 
query II rowsort label-2557
SELECT 59, COUNT( ALL 54 ) AS col0
----
59
1

skipif mysql # not compatible
query II rowsort label-2557
SELECT 59, COUNT ( ALL 54 ) AS col0
----
59
1

query I rowsort
SELECT 69 + - 99 * - 9 AS col0
----
960

query I rowsort
SELECT ALL - 33 + + + 91 + 5 + + 14 * - 1 * + - 21 AS col2
----
357

query I rowsort
SELECT ALL - 24 + + - 95 AS col1
----
-119

query I rowsort
SELECT ALL 65 + - - 19 - - 28 AS col1
----
112

onlyif mysql # aggregate syntax: 
query II rowsort label-2562
SELECT 53, 16 - COUNT( * ) AS col1
----
53
15

skipif mysql # not compatible
query II rowsort label-2562
SELECT 53, 16 - COUNT ( * ) AS col1
----
53
15

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

skipif mysql # not compatible
query I rowsort label-2563
SELECT ALL - 61 / 90
----
0

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

skipif mysql # not compatible
query I rowsort label-2564
SELECT ( - 23 ) * - + ( 18 ) + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2565
SELECT + 47 DIV - 92
----
0

skipif mysql # not compatible
query I rowsort label-2565
SELECT + 47 / - 92
----
0

query I rowsort
SELECT DISTINCT - 70 + + COALESCE ( - 6, + - 61 + - 94 * + 74, 1 ) AS col0
----
-76

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2567
SELECT CASE - - 8 WHEN 39 - + 15 - + 18 + 93 + + CAST( NULL AS DECIMAL ) * + 30 * + + 32 * - 88 THEN + 70 + - ( 81 ) + + COUNT( * ) END * - MIN( ALL + - 90 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2567
SELECT CASE - - 8 WHEN 39 - + 15 - + 18 + 93 + + CAST ( NULL AS REAL ) * + 30 * + + 32 * - 88 THEN + 70 + - ( 81 ) + + COUNT ( * ) END * - MIN ( ALL + - 90 )
----
NULL

query I rowsort
SELECT ALL + 95 + + - 44 AS col1
----
51

query I rowsort
SELECT ALL + 36 * + + 7 AS col1
----
252

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2571
SELECT - 13 + - COUNT( * ) + - + 85 AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-2571
SELECT - 13 + - COUNT ( * ) + - + 85 AS col2
----
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-2572
SELECT 81 col1, + 42 * + + COALESCE ( + SUM( - 25 ), - 22 )
----
81
-1050

skipif mysql # not compatible
query II rowsort label-2572
SELECT 81 col1, + 42 * + + COALESCE ( + SUM ( - 25 ), - 22 )
----
81
-1050

onlyif mysql # aggregate syntax: 
query I rowsort label-2573
SELECT ALL + + COUNT( * ) + - + 71 + 32 * + 72 AS col2
----
2234

skipif mysql # not compatible
query I rowsort label-2573
SELECT ALL + + COUNT ( * ) + - + 71 + 32 * + 72 AS col2
----
2234

query II rowsort
SELECT ALL - 6, 42 col2
----
-6
42

onlyif mysql # aggregate syntax: 
query I rowsort label-2575
SELECT - COUNT( * ) + + - 53 * + 0 * - COALESCE ( 93, + 85, - 79 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2575
SELECT - COUNT ( * ) + + - 53 * + 0 * - COALESCE ( 93, + 85, - 79 ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2576
SELECT ALL CASE - 69 WHEN ( - + ( - COUNT( * ) ) ) THEN NULL WHEN - 66 - + COALESCE ( + 27, 90 ) + + ( + ( NULLIF ( - CAST( + 83 AS SIGNED ), + + 69 * + - 33 / + - ( - - 94 ) ) ) ) * 73 * - + 91 * + + 6 * + 16 * + - 33 + + 35 - - 76 + - 66 THEN - 38 ELSE ( 25 ) END - + 82
----
-57

skipif mysql # not compatible
query I rowsort label-2576
SELECT ALL CASE - 69 WHEN ( - + ( - COUNT ( * ) ) ) THEN NULL WHEN - 66 - + COALESCE ( + 27, 90 ) + + ( + ( NULLIF ( - CAST ( + 83 AS INTEGER ), + + 69 * + - 33 / + - ( - - 94 ) ) ) ) * 73 * - + 91 * + + 6 * + 16 * + - 33 + + 35 - - 76 + - 66 THEN - 38 ELSE ( 25 ) END - + 82
----
-57

query II rowsort
SELECT DISTINCT 80 AS col0, 46
----
80
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2578
SELECT ALL CAST( NULL AS DECIMAL ) * + NULLIF ( + CAST( NULL AS SIGNED ), COUNT( * ) - + + 44 ) / + 68 AS col2, - 32
----
NULL
-32

skipif mysql # not compatible
query II rowsort label-2578
SELECT ALL CAST ( NULL AS REAL ) * + NULLIF ( + CAST ( NULL AS INTEGER ), COUNT ( * ) - + + 44 ) / + 68 AS col2, - 32
----
NULL
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-2579
SELECT - + COUNT( * ) * + 28 * + + 44 + 2 + + 89
----
-1141

skipif mysql # not compatible
query I rowsort label-2579
SELECT - + COUNT ( * ) * + 28 * + + 44 + 2 + + 89
----
-1141

query II rowsort
SELECT 24, 78 * 20 AS col1
----
24
1560

query II rowsort
SELECT COALESCE ( - 56, + - 39 ) + + + 66 col0, 95
----
10
95

query I rowsort
SELECT ALL + 93 - - 48 * + ( + 81 ) AS col2
----
3981

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2583
SELECT + 29 * + CAST( - 30 AS SIGNED )
----
-870

skipif mysql # not compatible
query I rowsort label-2583
SELECT + 29 * + CAST ( - 30 AS INTEGER )
----
-870

onlyif mysql # aggregate syntax: 
query II rowsort label-2584
SELECT 61 AS col1, SUM( ALL + 79 ) + + 46 AS col1
----
61
125

skipif mysql # not compatible
query II rowsort label-2584
SELECT 61 AS col1, SUM ( ALL + 79 ) + + 46 AS col1
----
61
125

query I rowsort
SELECT ALL + 27 * + 11
----
297

onlyif mysql # aggregate syntax: 
query II rowsort label-2586
SELECT + 68 * 36, + SUM( DISTINCT - 75 ) AS col2
----
2448
-75

skipif mysql # not compatible
query II rowsort label-2586
SELECT + 68 * 36, + SUM ( DISTINCT - 75 ) AS col2
----
2448
-75

query I rowsort
SELECT ALL 73 * 66 * ( + - 16 ) AS col1
----
-77088

onlyif mysql # aggregate syntax: 
query I rowsort label-2588
SELECT - COALESCE ( + 7, COUNT( DISTINCT - 2 ) ) AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-2588
SELECT - COALESCE ( + 7, COUNT ( DISTINCT - 2 ) ) AS col0
----
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-2589
SELECT - MAX( ALL + 44 ) AS col0, + 18 * ( - COUNT( * ) )
----
-44
-18

skipif mysql # not compatible
query II rowsort label-2589
SELECT - MAX ( ALL + 44 ) AS col0, + 18 * ( - COUNT ( * ) )
----
-44
-18

query I rowsort
SELECT + 73 * + + ( 98 )
----
7154

query I rowsort
SELECT + 32 * - 81 AS col0
----
-2592

query I rowsort
SELECT - 37 * 6
----
-222

query I rowsort
SELECT NULLIF ( + 88, - 2 * ( + 52 ) + 66 )
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2594
SELECT ALL - 11 * + + 19 + + - 57 + - MAX( 75 ) * + 93 * + CAST( NULL AS SIGNED ) * + + 5
----
NULL

skipif mysql # not compatible
query I rowsort label-2594
SELECT ALL - 11 * + + 19 + + - 57 + - MAX ( 75 ) * + 93 * + CAST ( NULL AS INTEGER ) * + + 5
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2596
SELECT - ( - MAX( DISTINCT + - 73 ) ) * 27 AS col0
----
-1971

skipif mysql # not compatible
query I rowsort label-2596
SELECT - ( - MAX ( DISTINCT + - 73 ) ) * 27 AS col0
----
-1971

onlyif mysql # aggregate syntax: 
query I rowsort label-2597
SELECT ALL + MAX( DISTINCT - 55 ) * 90 AS col2
----
-4950

skipif mysql # not compatible
query I rowsort label-2597
SELECT ALL + MAX ( DISTINCT - 55 ) * 90 AS col2
----
-4950

onlyif mysql # aggregate syntax: 
query I rowsort label-2598
SELECT ALL + NULLIF ( + - 69, ( + COUNT( * ) ) * - 84 + + + 36 + - 57 * 82 / 83 )
----
-69

skipif mysql # not compatible
query I rowsort label-2598
SELECT ALL + NULLIF ( + - 69, ( + COUNT ( * ) ) * - 84 + + + 36 + - 57 * 82 / 83 )
----
-69

query I rowsort
SELECT DISTINCT + 47 * 69 * + 14 AS col0
----
45402

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2601
SELECT NULLIF ( + 16, + 49 + COUNT( * ) * - 60 + - 54 + - MIN( - 9 ) ), - NULLIF ( - 55, - 86 ) - + 8 + - 93 * + COUNT( ALL + 40 ) * + - 68 AS col0
----
16
6371

skipif mysql # not compatible
query II rowsort label-2601
SELECT NULLIF ( + 16, + 49 + COUNT ( * ) * - 60 + - 54 + - MIN ( - 9 ) ), - NULLIF ( - 55, - 86 ) - + 8 + - 93 * + COUNT ( ALL + 40 ) * + - 68 AS col0
----
16
6371

query I rowsort
SELECT - - 29 + 29
----
58

query I rowsort
SELECT - - 85 * + 20
----
1700

query II rowsort
SELECT - 15 + 1 AS col0, 31
----
-14
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2605
SELECT ALL 68 DIV MIN( - 41 )
----
-1

skipif mysql # not compatible
query I rowsort label-2605
SELECT ALL 68 / MIN ( - 41 )
----
-1

query II rowsort
SELECT - 38 * + 72 AS col0, + 60 AS col0
----
-2736
60

onlyif mysql # aggregate syntax: 
query I rowsort label-2607
SELECT DISTINCT + - COALESCE ( COUNT( * ), + 71, SUM( - 87 ) * + 38 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2607
SELECT DISTINCT + - COALESCE ( COUNT ( * ), + 71, SUM ( - 87 ) * + 38 ) AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2608
SELECT DISTINCT - 81 DIV + 39 DIV + COUNT( * ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-2608
SELECT DISTINCT - 81 / + 39 / + COUNT ( * ) AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2609
SELECT ALL + 23 * - MIN( DISTINCT 72 ) - + 43
----
-1699

skipif mysql # not compatible
query I rowsort label-2609
SELECT ALL + 23 * - MIN ( DISTINCT 72 ) - + 43
----
-1699

onlyif mysql # DIV for integer division: 
query I rowsort label-2610
SELECT ALL - - 50 DIV + + NULLIF ( 52, + ( - - 58 ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2610
SELECT ALL - - 50 / + + NULLIF ( 52, + ( - - 58 ) ) AS col0
----
0

query I rowsort
SELECT - + 59 * + ( + 39 ) col2
----
-2301

query I rowsort
SELECT - 13 - + - 38
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2613
SELECT ALL 57 * - CASE 72 WHEN - + COUNT( * ) THEN NULL WHEN - 82 THEN - CAST( - - 66 AS SIGNED ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2613
SELECT ALL 57 * - CASE 72 WHEN - + COUNT ( * ) THEN NULL WHEN - 82 THEN - CAST ( - - 66 AS INTEGER ) ELSE NULL END AS col2
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2615
SELECT DISTINCT - ( 69 ) * + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2615
SELECT DISTINCT - ( 69 ) * + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 23 * + 61 AS col1
----
-1403

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2617
SELECT ALL CAST( NULLIF ( + 4, 92 ) AS SIGNED ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-2617
SELECT ALL CAST ( NULLIF ( + 4, 92 ) AS INTEGER ) AS col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2618
SELECT DISTINCT 32 * + MIN( ALL + + 53 ) AS col1
----
1696

skipif mysql # not compatible
query I rowsort label-2618
SELECT DISTINCT 32 * + MIN ( ALL + + 53 ) AS col1
----
1696

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2619
SELECT - 56 + - 35 + - - 48 + + + CAST( NULL AS SIGNED ) * - 93 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2619
SELECT - 56 + - 35 + - - 48 + + + CAST ( NULL AS INTEGER ) * - 93 AS col1
----
NULL

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

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

query I rowsort
SELECT - 32 + 57
----
25

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

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

query I rowsort
SELECT DISTINCT 61 + - 82 + + 83 AS col1
----
62

query I rowsort
SELECT ALL 96 + - 14 AS col1
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2625
SELECT ALL CAST( NULL AS SIGNED ) + + + AVG ( ALL - + 41 ) + + 31 + - 13 * CAST( NULL AS SIGNED ) + + 19
----
NULL

skipif mysql # not compatible
query I rowsort label-2625
SELECT ALL CAST ( NULL AS INTEGER ) + + + AVG ( ALL - + 41 ) + + 31 + - 13 * CAST ( NULL AS INTEGER ) + + 19
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2626
SELECT ALL MAX ( - 16 )
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-2627
SELECT DISTINCT 25 + 96 + - + COALESCE ( - 99, - 97, + - 10 * 30 * 24 ) AS col1, - COUNT( * ) * - 41
----
220
41

skipif mysql # not compatible
query II rowsort label-2627
SELECT DISTINCT 25 + 96 + - + COALESCE ( - 99, - 97, + - 10 * 30 * 24 ) AS col1, - COUNT ( * ) * - 41
----
220
41

query I rowsort
SELECT ALL 90 + + 68
----
158

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2630
SELECT DISTINCT 24 DIV + 71 + + + COUNT( * ) * - 33 AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-2630
SELECT DISTINCT 24 / + 71 + + + COUNT ( * ) * - 33 AS col1
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2631
SELECT + CASE 95 WHEN 6 - - ( - - 45 ) + COUNT( * ) * - 7 + CAST( + 79 AS SIGNED ) * - 14 + - ( 5 ) * 29 THEN - + 28 * - 61 + - 57 ELSE + 38 * + 44 END AS col2
----
1672

skipif mysql # not compatible
query I rowsort label-2631
SELECT + CASE 95 WHEN 6 - - ( - - 45 ) + COUNT ( * ) * - 7 + CAST ( + 79 AS INTEGER ) * - 14 + - ( 5 ) * 29 THEN - + 28 * - 61 + - 57 ELSE + 38 * + 44 END AS col2
----
1672

onlyif mysql # aggregate syntax: 
query I rowsort label-2632
SELECT CASE + + 64 WHEN 62 THEN + + COUNT( * ) ELSE NULL END / - - 25 + + MAX( ALL + + 54 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2632
SELECT CASE + + 64 WHEN 62 THEN + + COUNT ( * ) ELSE NULL END / - - 25 + + MAX ( ALL + + 54 ) col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2633
SELECT DISTINCT COUNT ( * ) * + 52 AS col0
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2634
SELECT CAST( + - 72 AS SIGNED )
----
-72

skipif mysql # not compatible
query I rowsort label-2634
SELECT CAST ( + - 72 AS INTEGER )
----
-72

query I rowsort
SELECT - 24 + - + 32 AS col2
----
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-2636
SELECT + 0, - 39 * COUNT( * ) col1
----
0
-39

skipif mysql # not compatible
query II rowsort label-2636
SELECT + 0, - 39 * COUNT ( * ) col1
----
0
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-2637
SELECT - - COUNT( * ) + + MAX( + 46 ) AS col2
----
47

skipif mysql # not compatible
query I rowsort label-2637
SELECT - - COUNT ( * ) + + MAX ( + 46 ) AS col2
----
47

query II rowsort
SELECT ALL + 97 AS col1, + 62 - - + 73 + + - 15 AS col2
----
97
120

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

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

query I rowsort
SELECT + 0 * - 65 AS col1
----
0

query II rowsort
SELECT DISTINCT + 59 AS col2, 30 AS col1
----
59
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2642
SELECT ALL + + MIN( COALESCE ( - 92, - - 89, - + 70 ) ) AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-2642
SELECT ALL + + MIN ( COALESCE ( - 92, - - 89, - + 70 ) ) AS col0
----
-92

query II rowsort
SELECT DISTINCT + - 1, + 81 * 92 - 26 AS col1
----
-1
7426

onlyif mysql # aggregate syntax: 
query I rowsort label-2644
SELECT - COALESCE ( COUNT( * ), + 7 * 21 + + 19 ) - - 48
----
47

skipif mysql # not compatible
query I rowsort label-2644
SELECT - COALESCE ( COUNT ( * ), + 7 * 21 + + 19 ) - - 48
----
47

query I rowsort
SELECT - 2 * - 87 AS col0
----
174

query I rowsort
SELECT ALL - + 97 * + 53
----
-5141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2647
SELECT - - 96 + - - 86 + + 18 * - ( - CAST( NULL AS SIGNED ) ) / + COUNT( 31 ) / 9 AS col0, 57 AS col1
----
NULL
57

skipif mysql # not compatible
query II rowsort label-2647
SELECT - - 96 + - - 86 + + 18 * - ( - CAST ( NULL AS INTEGER ) ) / + COUNT ( 31 ) / 9 AS col0, 57 AS col1
----
NULL
57

onlyif mysql # aggregate syntax: 
query I rowsort label-2648
SELECT ALL + - MAX( - 14 ) col1
----
14

skipif mysql # not compatible
query I rowsort label-2648
SELECT ALL + - MAX ( - 14 ) col1
----
14

query I rowsort
SELECT - + 22 + + 85
----
63

query II rowsort
SELECT DISTINCT 77 AS col2, + ( + 48 ) * + 11 * - 22 AS col0
----
77
-11616

onlyif mysql # aggregate syntax: 
query I rowsort label-2651
SELECT 47 * - 92 - + + 41 + + - COUNT( * )
----
-4366

skipif mysql # not compatible
query I rowsort label-2651
SELECT 47 * - 92 - + + 41 + + - COUNT ( * )
----
-4366

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

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

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

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

query I rowsort
SELECT 60 + COALESCE ( + 71, - + 58 + + 40, - + 5 ) AS col1
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-2655
SELECT 34 * COUNT( * ) * 6
----
204

skipif mysql # not compatible
query I rowsort label-2655
SELECT 34 * COUNT ( * ) * 6
----
204

onlyif mysql # aggregate syntax: 
query I rowsort label-2656
SELECT 69 + - 45 - COUNT( * ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-2656
SELECT 69 + - 45 - COUNT ( * ) AS col0
----
23

query I rowsort
SELECT ALL + 37 + + + NULLIF ( + - 34, - 85 * + 63 + - 67 )
----
3

query I rowsort
SELECT 59 * - 32
----
-1888

query I rowsort
SELECT ALL 14 * + 83 AS col1
----
1162

query I rowsort
SELECT DISTINCT - 92 * 18
----
-1656

query I rowsort
SELECT DISTINCT + 20 + - 17
----
3

query I rowsort
SELECT ALL - 65 * - 8 * 38 AS col0
----
19760

onlyif mysql # aggregate syntax: 
query I rowsort label-2663
SELECT 74 * COUNT( * ) * 93 AS col1
----
6882

skipif mysql # not compatible
query I rowsort label-2663
SELECT 74 * COUNT ( * ) * 93 AS col1
----
6882

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2664
SELECT COUNT( * ) * 87 AS col0, + COALESCE ( - + COALESCE ( 64, + - 44 * 90 + 46, 12 * + 4 * - + ( ( + + ( 35 ) ) ) * - CASE + 86 WHEN - 9 * + ( + 47 ) THEN - CASE COUNT( * ) WHEN + AVG ( ALL 43 ) THEN NULL ELSE + - COUNT( * ) END ELSE - CASE - 87 WHEN - 33 THEN NULL WHEN - 64 * - 64 + 68 THEN NULL ELSE 58 * + 30 + + 55 END END ), + CAST( NULL AS SIGNED ) * - MIN( 22 ) + + 41 ) + 4
----
87
-60

skipif mysql # not compatible
query II rowsort label-2664
SELECT COUNT ( * ) * 87 AS col0, + COALESCE ( - + COALESCE ( 64, + - 44 * 90 + 46, 12 * + 4 * - + ( ( + + ( 35 ) ) ) * - CASE + 86 WHEN - 9 * + ( + 47 ) THEN - CASE COUNT ( * ) WHEN + AVG ( ALL 43 ) THEN NULL ELSE + - COUNT ( * ) END ELSE - CASE - 87 WHEN - 33 THEN NULL WHEN - 64 * - 64 + 68 THEN NULL ELSE 58 * + 30 + + 55 END END ), + CAST ( NULL AS INTEGER ) * - MIN ( 22 ) + + 41 ) + 4
----
87
-60

query I rowsort
SELECT DISTINCT - COALESCE ( + 60, 69 ) AS col2
----
-60

query II rowsort
SELECT ALL + 58 * - - 33, + 45 * 48 AS col0
----
1914
2160

onlyif mysql # aggregate syntax: 
query I rowsort label-2667
SELECT + 93 * - SUM( + COALESCE ( - 4, + ( 10 ) ) ) AS col2
----
372

skipif mysql # not compatible
query I rowsort label-2667
SELECT + 93 * - SUM ( + COALESCE ( - 4, + ( 10 ) ) ) AS col2
----
372

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2668
SELECT ALL 63 DIV - 70 AS col0, + ( + 9 ) * + 13 - + 21 + + 33 - - 58 + - + 64 DIV + - 10 + + - 25 DIV 94 * MAX( DISTINCT - 89 ) AS col1
----
0
193

skipif mysql # not compatible
query II rowsort label-2668
SELECT ALL 63 / - 70 AS col0, + ( + 9 ) * + 13 - + 21 + + 33 - - 58 + - + 64 / + - 10 + + - 25 / 94 * MAX ( DISTINCT - 89 ) AS col1
----
0
193

onlyif mysql # aggregate syntax: 
query I rowsort label-2669
SELECT DISTINCT + 25 * - 88 - COUNT( 8 ) AS col2
----
-2201

skipif mysql # not compatible
query I rowsort label-2669
SELECT DISTINCT + 25 * - 88 - COUNT ( 8 ) AS col2
----
-2201

query I rowsort
SELECT ALL + 14 * + + 50 + + 83
----
783

onlyif mysql # DIV for integer division: 
query I rowsort label-2671
SELECT 91 DIV 99 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2671
SELECT 91 / 99 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2672
SELECT ALL 90 * + 68 + COUNT( * ) * 51
----
6171

skipif mysql # not compatible
query I rowsort label-2672
SELECT ALL 90 * + 68 + COUNT ( * ) * 51
----
6171

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2673
SELECT - 41 * - SUM( - - 6 ) * + 86 * - 43 + CAST( + + COUNT( DISTINCT CAST( - 26 AS DECIMAL ) ) AS SIGNED ) * - + 4 + - COUNT( * ) col0
----
-909713

skipif mysql # not compatible
query I rowsort label-2673
SELECT - 41 * - SUM ( - - 6 ) * + 86 * - 43 + CAST ( + + COUNT ( DISTINCT CAST ( - 26 AS REAL ) ) AS INTEGER ) * - + 4 + - COUNT ( * ) col0
----
-909713

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2675
SELECT 71 DIV - - COUNT( * ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-2675
SELECT 71 / - - COUNT ( * ) AS col1
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2676
SELECT COALESCE ( + - ( + COUNT( * ) ), + + 31, - + 60 + + 10 + CAST( - + 1 AS SIGNED ) DIV 40 ) * + + COUNT( * ) * - 12 - - - 39 + - ( - 14 ) + - COALESCE ( - + COUNT( * ), CAST( + 89 AS SIGNED ) * - + 67 * - 73 + COUNT( * ) * + + 38, + CASE + CASE + 28 WHEN - + 15 THEN - 29 WHEN 92 THEN + 22 END WHEN 33 THEN - 43 DIV + CAST( NULL AS SIGNED ) WHEN - ( + 58 ) + 59 THEN CAST( NULL AS SIGNED ) + - 81 END ) * 30 * 21
----
617

skipif mysql # not compatible
query I rowsort label-2676
SELECT COALESCE ( + - ( + COUNT ( * ) ), + + 31, - + 60 + + 10 + CAST ( - + 1 AS INTEGER ) / 40 ) * + + COUNT ( * ) * - 12 - - - 39 + - ( - 14 ) + - COALESCE ( - + COUNT ( * ), CAST ( + 89 AS INTEGER ) * - + 67 * - 73 + COUNT ( * ) * + + 38, + CASE + CASE + 28 WHEN - + 15 THEN - 29 WHEN 92 THEN + 22 END WHEN 33 THEN - 43 / + CAST ( NULL AS INTEGER ) WHEN - ( + 58 ) + 59 THEN CAST ( NULL AS INTEGER ) + - 81 END ) * 30 * 21
----
617

onlyif mysql # aggregate syntax: 
query I rowsort label-2677
SELECT ALL + SUM( ALL - 88 ) * 89 AS col2
----
-7832

skipif mysql # not compatible
query I rowsort label-2677
SELECT ALL + SUM ( ALL - 88 ) * 89 AS col2
----
-7832

query I rowsort
SELECT 63 + + ( + 62 ) AS col2
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-2679
SELECT ALL - MIN( DISTINCT - 64 ) col2
----
64

skipif mysql # not compatible
query I rowsort label-2679
SELECT ALL - MIN ( DISTINCT - 64 ) col2
----
64

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2681
SELECT 32 + 85, 59 + - COUNT( * ) + 97 * - + MAX( + 37 ) AS col1
----
117
-3531

skipif mysql # not compatible
query II rowsort label-2681
SELECT 32 + 85, 59 + - COUNT ( * ) + 97 * - + MAX ( + 37 ) AS col1
----
117
-3531

onlyif mysql # aggregate syntax: 
query I rowsort label-2682
SELECT ALL + 78 * NULLIF ( - - 26, - 14 + MAX( ALL + + 57 ) ) AS col1
----
2028

skipif mysql # not compatible
query I rowsort label-2682
SELECT ALL + 78 * NULLIF ( - - 26, - 14 + MAX ( ALL + + 57 ) ) AS col1
----
2028

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2683
SELECT ALL + 69 + - COUNT( * ) + + ( - COALESCE ( - - 21, - 65 - + 22 + - COUNT( * ) * - - NULLIF ( + + 64, + 20 + 73 ) * - CAST( NULL AS SIGNED ) - - 81 + 51 + + NULLIF ( - ( - + 16 ), + - COUNT( ALL + - ( 91 ) ) * + NULLIF ( - 22, + COUNT( * ) ) / - + NULLIF ( - 59, - 51 / - - 30 * - 89 + - - 8 + + COUNT( * ) ) - COUNT( * ) ) * - 17 ) ) * - 25 * 84
----
44168

skipif mysql # not compatible
query I rowsort label-2683
SELECT ALL + 69 + - COUNT ( * ) + + ( - COALESCE ( - - 21, - 65 - + 22 + - COUNT ( * ) * - - NULLIF ( + + 64, + 20 + 73 ) * - CAST ( NULL AS INTEGER ) - - 81 + 51 + + NULLIF ( - ( - + 16 ), + - COUNT ( ALL + - ( 91 ) ) * + NULLIF ( - 22, + COUNT ( * ) ) / - + NULLIF ( - 59, - 51 / - - 30 * - 89 + - - 8 + + COUNT ( * ) ) - COUNT ( * ) ) * - 17 ) ) * - 25 * 84
----
44168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2684
SELECT COALESCE ( 48, + - CASE - MAX( DISTINCT + 64 ) WHEN + 75 * - 47 * + 5 THEN MAX( 66 ) * + + 77 - - ( 25 ) + + 64 / 16 END ) - - - CASE 82 WHEN - COUNT( ALL - 59 ) THEN NULL WHEN - AVG ( - 63 ) * 70 + AVG ( ALL - - CAST( NULL AS SIGNED ) ) - + 83 * + 45 + - 95 + - - 37 * - ( + 9 ) * COUNT( * ) THEN - 95 END + + 22 * 22
----
NULL

skipif mysql # not compatible
query I rowsort label-2684
SELECT COALESCE ( 48, + - CASE - MAX ( DISTINCT + 64 ) WHEN + 75 * - 47 * + 5 THEN MAX ( 66 ) * + + 77 - - ( 25 ) + + 64 / 16 END ) - - - CASE 82 WHEN - COUNT ( ALL - 59 ) THEN NULL WHEN - AVG ( - 63 ) * 70 + AVG ( ALL - - CAST ( NULL AS INTEGER ) ) - + 83 * + 45 + - 95 + - - 37 * - ( + 9 ) * COUNT ( * ) THEN - 95 END + + 22 * 22
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2685
SELECT ALL - 5 + + - COUNT( * ) + + NULLIF ( 58, ( - 24 ) + - + 79 ) AS col0
----
52

skipif mysql # not compatible
query I rowsort label-2685
SELECT ALL - 5 + + - COUNT ( * ) + + NULLIF ( 58, ( - 24 ) + - + 79 ) AS col0
----
52

query I rowsort
SELECT 50 - - 13 AS col1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-2687
SELECT ALL 32 + - COALESCE ( + COUNT( * ), - 48 + COUNT( * ) + + 24 * - - 97 * 56 * 41, + 67 ) + + 83
----
114

skipif mysql # not compatible
query I rowsort label-2687
SELECT ALL 32 + - COALESCE ( + COUNT ( * ), - 48 + COUNT ( * ) + + 24 * - - 97 * 56 * 41, + 67 ) + + 83
----
114

query I rowsort
SELECT DISTINCT + 51 + 39 * - 47
----
-1782

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

skipif mysql # not compatible
query I rowsort label-2689
SELECT ALL + COUNT ( * ) - 27 AS col1
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2690
SELECT 85 - + 11 * + ( + 67 ) * - 76 / + 34 - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2690
SELECT 85 - + 11 * + ( + 67 ) * - 76 / + 34 - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 59 + 73
----
132

query I rowsort
SELECT 94 - 40
----
54

query I rowsort
SELECT 68 + 77
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-2694
SELECT ALL + 7 - - 44 + 5 * + COUNT( * ) AS col1
----
56

skipif mysql # not compatible
query I rowsort label-2694
SELECT ALL + 7 - - 44 + 5 * + COUNT ( * ) AS col1
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-2695
SELECT 75 DIV 90
----
0

skipif mysql # not compatible
query I rowsort label-2695
SELECT 75 / 90
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2696
SELECT 84 + + + CASE - 14 WHEN 37 THEN - - 44 + + ( 50 ) * - COUNT( * ) ELSE NULL END + COALESCE ( - COALESCE ( 75, + 93 * + + 98 ), + + 51 * + + 9 ) - - - 29
----
NULL

skipif mysql # not compatible
query I rowsort label-2696
SELECT 84 + + + CASE - 14 WHEN 37 THEN - - 44 + + ( 50 ) * - COUNT ( * ) ELSE NULL END + COALESCE ( - COALESCE ( 75, + 93 * + + 98 ), + + 51 * + + 9 ) - - - 29
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2697
SELECT COUNT( 27 ) + - COALESCE ( + - 36, + + ( 80 ) ) DIV - 32
----
0

skipif mysql # not compatible
query I rowsort label-2697
SELECT COUNT ( 27 ) + - COALESCE ( + - 36, + + ( 80 ) ) / - 32
----
0

query I rowsort
SELECT ALL + - 31 * COALESCE ( + 40, + 28 ) + 17
----
-1223

query I rowsort
SELECT DISTINCT - + 30 col1
----
-30

query I rowsort
SELECT + - NULLIF ( - + 4, 58 )
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2701
SELECT - 39 DIV + 79 * - + 86 + + COUNT( * ) + + 90 DIV - COUNT( DISTINCT 61 )
----
-89

skipif mysql # not compatible
query I rowsort label-2701
SELECT - 39 / + 79 * - + 86 + + COUNT ( * ) + + 90 / - COUNT ( DISTINCT 61 )
----
-89

query I rowsort
SELECT + ( - NULLIF ( + 46, 13 ) )
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-2703
SELECT DISTINCT - + 14 * - 24 * + 58 + ( 98 ) * - ( - 41 ) + + 53 + + + MIN( + ( 28 ) ) * + 11 AS col0
----
23867

skipif mysql # not compatible
query I rowsort label-2703
SELECT DISTINCT - + 14 * - 24 * + 58 + ( 98 ) * - ( - 41 ) + + 53 + + + MIN ( + ( 28 ) ) * + 11 AS col0
----
23867

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2704
SELECT DISTINCT + COALESCE ( 14, + 74 * - CAST( 63 AS SIGNED ) ) AS col0, + 28
----
14
28

skipif mysql # not compatible
query II rowsort label-2704
SELECT DISTINCT + COALESCE ( 14, + 74 * - CAST ( 63 AS INTEGER ) ) AS col0, + 28
----
14
28

query I rowsort
SELECT ALL + 52 * 85 + 14 * + 54 * - - 39 + + 40 AS col2
----
33944

onlyif mysql # aggregate syntax: 
query I rowsort label-2706
SELECT COUNT( * ) * + 87 * + 60 + - ( - 57 )
----
5277

skipif mysql # not compatible
query I rowsort label-2706
SELECT COUNT ( * ) * + 87 * + 60 + - ( - 57 )
----
5277

onlyif mysql # aggregate syntax: 
query I rowsort label-2707
SELECT DISTINCT ( + 13 ) * COUNT( * ) + - 96 col2
----
-83

skipif mysql # not compatible
query I rowsort label-2707
SELECT DISTINCT ( + 13 ) * COUNT ( * ) + - 96 col2
----
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-2708
SELECT ALL - 23 * - - 75 + + 42 DIV - 99
----
-1725

skipif mysql # not compatible
query I rowsort label-2708
SELECT ALL - 23 * - - 75 + + 42 / - 99
----
-1725

onlyif mysql # aggregate syntax: 
query II rowsort label-2709
SELECT + 51 AS col2, 99 + 70 * - ( - 74 ) * + 48 - MAX( + 54 ) + 23 AS col2
----
51
248708

skipif mysql # not compatible
query II rowsort label-2709
SELECT + 51 AS col2, 99 + 70 * - ( - 74 ) * + 48 - MAX ( + 54 ) + 23 AS col2
----
51
248708

query I rowsort
SELECT + 85 * + - 99
----
-8415

query I rowsort
SELECT ALL 9 + - 50 + - - ( 91 ) * + 3
----
232

query II rowsort
SELECT ALL 63, + 76 AS col1
----
63
76

query I rowsort
SELECT - 73 + - 30 AS col2
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-2714
SELECT - CASE + + COUNT( * ) WHEN 1 THEN SUM( 56 ) END AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-2714
SELECT - CASE + + COUNT ( * ) WHEN 1 THEN SUM ( 56 ) END AS col1
----
-56

query I rowsort
SELECT DISTINCT 72 * 4 AS col2
----
288

query I rowsort
SELECT - COALESCE ( + 88, + 6 + + 35 * + 96 * 90 - 23 ) AS col2
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-2717
SELECT + ( + MAX( DISTINCT - 16 ) ) * + + 5
----
-80

skipif mysql # not compatible
query I rowsort label-2717
SELECT + ( + MAX ( DISTINCT - 16 ) ) * + + 5
----
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-2718
SELECT - 1 + - + 80 + 50 * - 73 + + ( + + 65 ) DIV - 48
----
-3732

skipif mysql # not compatible
query I rowsort label-2718
SELECT - 1 + - + 80 + 50 * - 73 + + ( + + 65 ) / - 48
----
-3732

onlyif mysql # aggregate syntax: 
query I rowsort label-2719
SELECT DISTINCT - SUM( + + ( 16 ) ) - 22 + + COUNT( * ) col2
----
-37

skipif mysql # not compatible
query I rowsort label-2719
SELECT DISTINCT - SUM ( + + ( 16 ) ) - 22 + + COUNT ( * ) col2
----
-37

query I rowsort
SELECT ALL COALESCE ( - 83, ( + + 43 ) )
----
-83

query II rowsort
SELECT ALL 40, - 42 AS col2
----
40
-42

query I rowsort
SELECT - 65 * 36 * + 71 AS col2
----
-166140

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2723
SELECT - 83 DIV ( COUNT( * ) ) * + - ( - - 59 ) * - 96
----
-470112

skipif mysql # not compatible
query I rowsort label-2723
SELECT - 83 / ( COUNT ( * ) ) * + - ( - - 59 ) * - 96
----
-470112

onlyif mysql # aggregate syntax: 
query I rowsort label-2724
SELECT ALL MIN( ALL + 63 ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-2724
SELECT ALL MIN ( ALL + 63 ) AS col2
----
63

query I rowsort
SELECT + 19 - - 52 + - ( + 56 ) * + - 75 * - 13 + + 46 AS col2
----
-54483

onlyif mysql # aggregate syntax: 
query II rowsort label-2726
SELECT ALL - 72 AS col2, MIN( - 32 ) * - 5 + - 48 - - 27
----
-72
139

skipif mysql # not compatible
query II rowsort label-2726
SELECT ALL - 72 AS col2, MIN ( - 32 ) * - 5 + - 48 - - 27
----
-72
139

query I rowsort
SELECT + + 92 * 42 AS col2
----
3864

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2729
SELECT - + 75 DIV - 53
----
1

skipif mysql # not compatible
query I rowsort label-2729
SELECT - + 75 / - 53
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2730
SELECT - 11 DIV + 91 + - 41
----
-41

skipif mysql # not compatible
query I rowsort label-2730
SELECT - 11 / + 91 + - 41
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-2731
SELECT DISTINCT - SUM( DISTINCT + 61 ) + - 32
----
-93

skipif mysql # not compatible
query I rowsort label-2731
SELECT DISTINCT - SUM ( DISTINCT + 61 ) + - 32
----
-93

query II rowsort
SELECT ALL 27 AS col0, 1 AS col2
----
27
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2733
SELECT ALL - 14 * + 20 / + CAST( NULL AS SIGNED ) + 21 + - CAST( COUNT( ALL - + 54 ) AS SIGNED ) + + 10 * + 86 * + - 50 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2733
SELECT ALL - 14 * + 20 / + CAST ( NULL AS INTEGER ) + 21 + - CAST ( COUNT ( ALL - + 54 ) AS INTEGER ) + + 10 * + 86 * + - 50 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2734
SELECT - 77 DIV 2
----
-38

skipif mysql # not compatible
query I rowsort label-2734
SELECT - 77 / 2
----
-38

query I rowsort
SELECT DISTINCT + 12 * + + ( + 81 ) AS col0
----
972

query II rowsort
SELECT ALL + 21 col1, + 22 AS col2
----
21
22

onlyif mysql # aggregate syntax: 
query I rowsort label-2737
SELECT + - MIN( - 35 ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-2737
SELECT + - MIN ( - 35 ) AS col2
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2738
SELECT - COALESCE ( - + 98, 39 + - + 14, - COALESCE ( 83, - 48 + 64 - - COALESCE ( ( - 30 ), - COUNT( * ) * + 97 ) ) ) + - 47 DIV - ( + 84 ) col0
----
98

skipif mysql # not compatible
query I rowsort label-2738
SELECT - COALESCE ( - + 98, 39 + - + 14, - COALESCE ( 83, - 48 + 64 - - COALESCE ( ( - 30 ), - COUNT ( * ) * + 97 ) ) ) + - 47 / - ( + 84 ) col0
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2739
SELECT ALL + + ( - + CAST( + ( + 18 ) AS SIGNED ) ) * COUNT( * ) AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-2739
SELECT ALL + + ( - + CAST ( + ( + 18 ) AS INTEGER ) ) * COUNT ( * ) AS col2
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2740
SELECT DISTINCT + + ( - - 76 ) * + 36 * - ( ( 36 ) ) - + 53 DIV + MAX( - 82 ) + - ( - 56 )
----
-98440

skipif mysql # not compatible
query I rowsort label-2740
SELECT DISTINCT + + ( - - 76 ) * + 36 * - ( ( 36 ) ) - + 53 / + MAX ( - 82 ) + - ( - 56 )
----
-98440

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

query I rowsort
SELECT DISTINCT + + 19 col2
----
19

query II rowsort
SELECT DISTINCT + 62 AS col2, 93
----
62
93

onlyif mysql # aggregate syntax: 
query I rowsort label-2744
SELECT - 98 + - SUM( DISTINCT - + 87 ) - 64 * + 21 AS col2
----
-1355

skipif mysql # not compatible
query I rowsort label-2744
SELECT - 98 + - SUM ( DISTINCT - + 87 ) - 64 * + 21 AS col2
----
-1355

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2745
SELECT ALL - 91 * + 68 - - CASE + 9 WHEN - 69 / + - 47 THEN NULL WHEN - + COUNT( + 75 ) THEN NULL ELSE 71 END + + - 13 + NULLIF ( 5, CAST( - 58 AS SIGNED ) * - + 10 + + - 52 ) - - 6 AS col2
----
-6119

skipif mysql # not compatible
query I rowsort label-2745
SELECT ALL - 91 * + 68 - - CASE + 9 WHEN - 69 / + - 47 THEN NULL WHEN - + COUNT ( + 75 ) THEN NULL ELSE 71 END + + - 13 + NULLIF ( 5, CAST ( - 58 AS INTEGER ) * - + 10 + + - 52 ) - - 6 AS col2
----
-6119

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2746
SELECT CASE + ( - - 5 ) WHEN + - CAST( NULL AS SIGNED ) THEN + COUNT( * ) ELSE - - COUNT( * ) * + CAST( NULL AS SIGNED ) + + 1 + MIN( ALL 59 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2746
SELECT CASE + ( - - 5 ) WHEN + - CAST ( NULL AS INTEGER ) THEN + COUNT ( * ) ELSE - - COUNT ( * ) * + CAST ( NULL AS INTEGER ) + + 1 + MIN ( ALL 59 ) END
----
NULL

query I rowsort
SELECT ALL 71 * - - 3 - - - 44 AS col0
----
169

onlyif mysql # DIV for integer division: 
query I rowsort label-2748
SELECT DISTINCT - 33 DIV + + 41 * - 43
----
0

skipif mysql # not compatible
query I rowsort label-2748
SELECT DISTINCT - 33 / + + 41 * - 43
----
0

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

query II rowsort
SELECT + 32 * + + 35 AS col1, 3
----
1120
3

query II rowsort
SELECT ALL 37 * 92 col2, - 94 + - 90 AS col2
----
3404
-184

query I rowsort
SELECT + NULLIF ( 24, - 33 * 66 ) - 54 AS col2
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2753
SELECT + 96 DIV + - COUNT( 11 ) AS col1
----
-96

skipif mysql # not compatible
query I rowsort label-2753
SELECT + 96 / + - COUNT ( 11 ) AS col1
----
-96

query I rowsort
SELECT + 2 * + 91 * + 55
----
10010

onlyif mysql # aggregate syntax: 
query I rowsort label-2755
SELECT ALL MIN( ALL - - 83 ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-2755
SELECT ALL MIN ( ALL - - 83 ) AS col2
----
83

query I rowsort
SELECT ALL 95 * - 11 AS col2
----
-1045

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2757
SELECT ALL COALESCE ( + + COUNT( * ), + - 7 * - + 65 * + 22 DIV 24 + 74, - 10 )
----
1

skipif mysql # not compatible
query I rowsort label-2757
SELECT ALL COALESCE ( + + COUNT ( * ), + - 7 * - + 65 * + 22 / 24 + 74, - 10 )
----
1

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

skipif mysql # not compatible
query I rowsort label-2758
SELECT MIN ( + 98 )
----
98

query I rowsort
SELECT + 42 * + + 12
----
504

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2760
SELECT + CAST( + - AVG ( ALL - + 99 ) AS SIGNED ) + COUNT( * ) + + - 17 DIV - 86 * + - 67 AS col1, + CASE - - NULLIF ( + 38, 26 ) WHEN + + COUNT( * ) * - 59 - MIN( ALL + 2 ) DIV - - 63 THEN NULL WHEN - + 94 THEN NULL ELSE - 58 + + 58 END DIV + 92 + 3 DIV 76
----
100
0

skipif mysql # not compatible
query II rowsort label-2760
SELECT + CAST ( + - AVG ( ALL - + 99 ) AS INTEGER ) + COUNT ( * ) + + - 17 / - 86 * + - 67 AS col1, + CASE - - NULLIF ( + 38, 26 ) WHEN + + COUNT ( * ) * - 59 - MIN ( ALL + 2 ) / - - 63 THEN NULL WHEN - + 94 THEN NULL ELSE - 58 + + 58 END / + 92 + 3 / 76
----
100
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2761
SELECT + 59 - + + 89 + + COUNT( * ) * + 49
----
19

skipif mysql # not compatible
query I rowsort label-2761
SELECT + 59 - + + 89 + + COUNT ( * ) * + 49
----
19

query I rowsort
SELECT + NULLIF ( - ( + 18 ), + 93 * 66 ) + + 25
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2763
SELECT + + 46 + NULLIF ( CAST( - + MAX( + + ( 2 ) ) AS SIGNED ), + 76 * - COUNT( * ) + 47 + 10 * + + 95 / - COUNT( * ) + 62 ) + + 49 * 59 + 52 + - 91 * - + COUNT( * )
----
3078

skipif mysql # not compatible
query I rowsort label-2763
SELECT + + 46 + NULLIF ( CAST ( - + MAX ( + + ( 2 ) ) AS INTEGER ), + 76 * - COUNT ( * ) + 47 + 10 * + + 95 / - COUNT ( * ) + 62 ) + + 49 * 59 + 52 + - 91 * - + COUNT ( * )
----
3078

query I rowsort
SELECT - ( + + 24 ) * + - ( 42 ) AS col1
----
1008

query I rowsort
SELECT ALL 69 + 95
----
164

onlyif mysql # aggregate syntax: 
query I rowsort label-2766
SELECT ALL - NULLIF ( + + 23, 18 * 29 + + 75 / - - 21 + + - ( + MAX( + 74 ) ) ) + + 14 * 15 + - 84 AS col1
----
103

skipif mysql # not compatible
query I rowsort label-2766
SELECT ALL - NULLIF ( + + 23, 18 * 29 + + 75 / - - 21 + + - ( + MAX ( + 74 ) ) ) + + 14 * 15 + - 84 AS col1
----
103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2767
SELECT DISTINCT - 7 + + - CASE + - 69 WHEN + + 19 + + - CAST( 89 AS SIGNED ) * + - 59 - - - 84 THEN NULL WHEN - CASE + 54 WHEN + 26 THEN - COUNT( + 18 ) WHEN + 81 THEN NULL END THEN + 40 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2767
SELECT DISTINCT - 7 + + - CASE + - 69 WHEN + + 19 + + - CAST ( 89 AS INTEGER ) * + - 59 - - - 84 THEN NULL WHEN - CASE + 54 WHEN + 26 THEN - COUNT ( + 18 ) WHEN + 81 THEN NULL END THEN + 40 END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2768
SELECT SUM( DISTINCT - 70 ) + + 27 col1
----
-43

skipif mysql # not compatible
query I rowsort label-2768
SELECT SUM ( DISTINCT - 70 ) + + 27 col1
----
-43

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2769
SELECT ALL - 74 + 14 + + 5 - + + CAST( NULL AS DECIMAL ) * - 24 * 74 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2769
SELECT ALL - 74 + 14 + + 5 - + + CAST ( NULL AS REAL ) * - 24 * 74 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2770
SELECT ALL + - 76 + - COUNT( * ) AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-2770
SELECT ALL + - 76 + - COUNT ( * ) AS col0
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2771
SELECT ALL - CAST( - - 67 AS SIGNED ) AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-2771
SELECT ALL - CAST ( - - 67 AS INTEGER ) AS col1
----
-67

onlyif mysql # aggregate syntax: 
query II rowsort label-2772
SELECT - 50 * - 97 + - - 21 + 49 - + - 62 AS col0, - 66 * COUNT( DISTINCT 88 ) + + + 72 * + 17
----
4982
1158

skipif mysql # not compatible
query II rowsort label-2772
SELECT - 50 * - 97 + - - 21 + 49 - + - 62 AS col0, - 66 * COUNT ( DISTINCT 88 ) + + + 72 * + 17
----
4982
1158

query I rowsort
SELECT 48 * 81
----
3888

query I rowsort
SELECT 14 * + - 8 * + 60 * - 59 * - 41 * 44 + - 12 + - 42
----
-715249974

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2775
SELECT ALL - - CAST( - - 21 AS SIGNED ) col2, 53 AS col0
----
21
53

skipif mysql # not compatible
query II rowsort label-2775
SELECT ALL - - CAST ( - - 21 AS INTEGER ) col2, 53 AS col0
----
21
53

onlyif mysql # aggregate syntax: 
query I rowsort label-2776
SELECT + 29 + + ( + COALESCE ( 39, 79, - - 60 + + - COALESCE ( - - CASE - COUNT( * ) WHEN - - 95 * 64 THEN + ( + 33 ) * + 70 + + COUNT( ALL 73 ) WHEN + 6 THEN + 31 END, - 0 * + 66 ) ) ) AS col0
----
68

skipif mysql # not compatible
query I rowsort label-2776
SELECT + 29 + + ( + COALESCE ( 39, 79, - - 60 + + - COALESCE ( - - CASE - COUNT ( * ) WHEN - - 95 * 64 THEN + ( + 33 ) * + 70 + + COUNT ( ALL 73 ) WHEN + 6 THEN + 31 END, - 0 * + 66 ) ) ) AS col0
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2777
SELECT - MIN( ALL + CAST( + 62 AS SIGNED ) ) * - - 61 col1
----
-3782

skipif mysql # not compatible
query I rowsort label-2777
SELECT - MIN ( ALL + CAST ( + 62 AS INTEGER ) ) * - - 61 col1
----
-3782

query I rowsort
SELECT 15 * + 82 + 13 AS col2
----
1243

query II rowsort
SELECT ALL - + 71 * 83 * - 54, + 49 AS col2
----
318222
49

onlyif mysql # aggregate syntax: 
query I rowsort label-2780
SELECT + 78 + - 23 + - COUNT( * ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-2780
SELECT + 78 + - 23 + - COUNT ( * ) AS col1
----
54

query I rowsort
SELECT ALL + 67 * - 91 AS col2
----
-6097

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2782
SELECT + CASE + 81 WHEN CAST( NULL AS SIGNED ) + COUNT( * ) + - 63 / 53 / + 72 + CAST( NULL AS SIGNED ) THEN - 57 WHEN + 57 + - 40 + + - 79 - 33 THEN NULL ELSE NULL END * + - 82 + + COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2782
SELECT + CASE + 81 WHEN CAST ( NULL AS INTEGER ) + COUNT ( * ) + - 63 / 53 / + 72 + CAST ( NULL AS INTEGER ) THEN - 57 WHEN + 57 + - 40 + + - 79 - 33 THEN NULL ELSE NULL END * + - 82 + + COUNT ( * ) col0
----
NULL

query II rowsort
SELECT + 49 AS col2, + 16
----
49
16

query II rowsort
SELECT ALL - COALESCE ( + + 59, 93 ), 46 AS col1
----
-59
46

query II rowsort
SELECT ALL - 43 AS col0, 80 AS col2
----
-43
80

query I rowsort
SELECT 78 * + 25 AS col0
----
1950

query I rowsort
SELECT ALL - 47 * - - 35 AS col0
----
-1645

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

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

query I rowsort
SELECT 85 + - 54 - 79 * + + 79 col0
----
-6210

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

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

query I rowsort
SELECT DISTINCT - 29 * - 51
----
1479

query I rowsort
SELECT 68 * + 5
----
340

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

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

query I rowsort
SELECT 75 * + 61 + - 84 + + 47
----
4538

query I rowsort
SELECT 84 + - 46 AS col1
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2796
SELECT 94 + - 22 * - CAST( 67 AS SIGNED )
----
1568

skipif mysql # not compatible
query I rowsort label-2796
SELECT 94 + - 22 * - CAST ( 67 AS INTEGER )
----
1568

query II rowsort
SELECT ALL 83 AS col2, 87 * + 17 col0
----
83
1479

query I rowsort
SELECT ALL - 85 + - - 67
----
-18

query I rowsort
SELECT 84 * - 55 AS col2
----
-4620

query I rowsort
SELECT 19 + 32 AS col0
----
51

query I rowsort
SELECT ( 6 ) + + 54 AS col1
----
60

query I rowsort
SELECT ALL ( 90 ) + 9 AS col0
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2803
SELECT 3 DIV MIN( ALL - 13 )
----
0

skipif mysql # not compatible
query I rowsort label-2803
SELECT 3 / MIN ( ALL - 13 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2804
SELECT COUNT( * ) + 40 AS col1
----
41

skipif mysql # not compatible
query I rowsort label-2804
SELECT COUNT ( * ) + 40 AS col1
----
41

query I rowsort
SELECT 45 * - 85
----
-3825

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2806
SELECT ALL CASE 18 WHEN + 18 THEN - - 15 WHEN NULLIF ( - - 10, 82 ) THEN + ( - 67 ) ELSE + CAST( NULL AS SIGNED ) END + + COALESCE ( + 74, + - 90 DIV + 52 ) + - - COALESCE ( + 49, 44 * 53, - ( + - 88 ) )
----
138

skipif mysql # not compatible
query I rowsort label-2806
SELECT ALL CASE 18 WHEN + 18 THEN - - 15 WHEN NULLIF ( - - 10, 82 ) THEN + ( - 67 ) ELSE + CAST ( NULL AS INTEGER ) END + + COALESCE ( + 74, + - 90 / + 52 ) + - - COALESCE ( + 49, 44 * 53, - ( + - 88 ) )
----
138

query II rowsort
SELECT 58, 24 AS col1
----
58
24

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2810
SELECT + 50 / 93 * - 33 * - 53 + CASE - 20 WHEN - 78 THEN 46 * 77 WHEN + MIN( - + 5 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2810
SELECT + 50 / 93 * - 33 * - 53 + CASE - 20 WHEN - 78 THEN 46 * 77 WHEN + MIN ( - + 5 ) THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2811
SELECT ALL + 98 DIV + 35 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-2811
SELECT ALL + 98 / + 35 AS col1
----
2

query I rowsort
SELECT ALL - 23 + 77
----
54

query II rowsort
SELECT - - 14 AS col0, + 81 AS col1
----
14
81

query I rowsort
SELECT - 17 - - - ( - + 17 ) AS col0
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2816
SELECT DISTINCT - 21 + + - COUNT( + - 83 ) + - CAST( 89 AS SIGNED ) col0
----
-111

skipif mysql # not compatible
query I rowsort label-2816
SELECT DISTINCT - 21 + + - COUNT ( + - 83 ) + - CAST ( 89 AS INTEGER ) col0
----
-111

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2817
SELECT - 8, COUNT( * ) DIV + 81 AS col2
----
-8
0

skipif mysql # not compatible
query II rowsort label-2817
SELECT - 8, COUNT ( * ) / + 81 AS col2
----
-8
0

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

query I rowsort
SELECT ALL + 2 * - 54
----
-108

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2821
SELECT DISTINCT SUM( + + 23 ) * + CAST( NULL AS SIGNED ) * - 86 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2821
SELECT DISTINCT SUM ( + + 23 ) * + CAST ( NULL AS INTEGER ) * - 86 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2822
SELECT ALL - + 68 - - COUNT( * ) col1
----
-67

skipif mysql # not compatible
query I rowsort label-2822
SELECT ALL - + 68 - - COUNT ( * ) col1
----
-67

query I rowsort
SELECT - 3 * - 83 + + ( + - 83 ) + - 3 - + 80 AS col0
----
83

query I rowsort
SELECT 97 - + 1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2825
SELECT + SUM( - 86 ) col0
----
-86

skipif mysql # not compatible
query I rowsort label-2825
SELECT + SUM ( - 86 ) col0
----
-86

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2828
SELECT 87 + - - 7 - + - MIN( DISTINCT - 63 ) * 89 AS col0
----
-5513

skipif mysql # not compatible
query I rowsort label-2828
SELECT 87 + - - 7 - + - MIN ( DISTINCT - 63 ) * 89 AS col0
----
-5513

onlyif mysql # DIV for integer division: 
query I rowsort label-2829
SELECT ALL 78 DIV + + 62
----
1

skipif mysql # not compatible
query I rowsort label-2829
SELECT ALL 78 / + + 62
----
1

query I rowsort
SELECT ALL + 43 * - 82 AS col2
----
-3526

onlyif mysql # aggregate syntax: 
query II rowsort label-2831
SELECT ALL - 16 + + 21 AS col0, - COUNT( * ) AS col0
----
5
-1

skipif mysql # not compatible
query II rowsort label-2831
SELECT ALL - 16 + + 21 AS col0, - COUNT ( * ) AS col0
----
5
-1

query I rowsort
SELECT ALL + 53 + + 96
----
149

query II rowsort
SELECT ALL - 80 + + 53 col0, 66 + + 51
----
-27
117

onlyif mysql # aggregate syntax: 
query I rowsort label-2834
SELECT ALL SUM( + 99 ) AS col1
----
99

skipif mysql # not compatible
query I rowsort label-2834
SELECT ALL SUM ( + 99 ) AS col1
----
99

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

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

query I rowsort
SELECT 9 - - 13 AS col2
----
22

query I rowsort
SELECT DISTINCT CASE + - 65 WHEN - + 38 + - 37 THEN + - AVG ( - 64 ) ELSE NULL END
----
NULL

query I rowsort
SELECT 17 * + 99 - ( + - 18 ) + ( - 45 ) - - - 85 * - 62
----
6926

onlyif mysql # aggregate syntax: 
query I rowsort label-2839
SELECT ALL - - 80 + - CASE - ( + + 89 ) WHEN - 48 THEN - 40 * + 33 / COUNT( * ) * + AVG ( + + 98 ) WHEN + 6 THEN + - 36 + - 20 * + 85 WHEN - - CASE ( - COUNT( * ) ) WHEN - 32 * - - 54 + + 63 THEN NULL WHEN + 11 - + 88 THEN 54 END THEN - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2839
SELECT ALL - - 80 + - CASE - ( + + 89 ) WHEN - 48 THEN - 40 * + 33 / COUNT ( * ) * + AVG ( + + 98 ) WHEN + 6 THEN + - 36 + - 20 * + 85 WHEN - - CASE ( - COUNT ( * ) ) WHEN - 32 * - - 54 + + 63 THEN NULL WHEN + 11 - + 88 THEN 54 END THEN - COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2840
SELECT ALL - COALESCE ( 46, + MIN( 34 ), + 29 )
----
-46

skipif mysql # not compatible
query I rowsort label-2840
SELECT ALL - COALESCE ( 46, + MIN ( 34 ), + 29 )
----
-46

query I rowsort
SELECT - - 38 + + - 73 + + 54 AS col0
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2842
SELECT ALL - 69 * - 76 + + 84 + - 19 * - CASE - 49 WHEN 12 THEN NULL ELSE ( + 64 ) DIV - 98 * - COUNT( * ) + - 10 * - + 37 + 18 * - 44 + + COUNT( * ) END AS col2
----
-2671

skipif mysql # not compatible
query I rowsort label-2842
SELECT ALL - 69 * - 76 + + 84 + - 19 * - CASE - 49 WHEN 12 THEN NULL ELSE ( + 64 ) / - 98 * - COUNT ( * ) + - 10 * - + 37 + 18 * - 44 + + COUNT ( * ) END AS col2
----
-2671

query I rowsort
SELECT ALL + + 4 + 90 AS col0
----
94

query I rowsort
SELECT - 1 + 87 AS col0
----
86

query I rowsort
SELECT + 71 - + 80
----
-9

query I rowsort
SELECT + ( - + 74 ) - - - 36
----
-110

query I rowsort
SELECT ALL + 92 - 47 AS col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-2848
SELECT DISTINCT - SUM( - 73 ) * + COUNT( * ) + + + COUNT( ALL + 90 ) AS col0
----
74

skipif mysql # not compatible
query I rowsort label-2848
SELECT DISTINCT - SUM ( - 73 ) * + COUNT ( * ) + + + COUNT ( ALL + 90 ) AS col0
----
74

query I rowsort
SELECT - + 11 + 15
----
4

query I rowsort
SELECT + - 36 + - 44
----
-80

query I rowsort
SELECT ALL + 31 * 83 + - + CASE + 26 WHEN + 12 THEN NULL WHEN - 89 + - 77 THEN - + 32 END
----
NULL

query I rowsort
SELECT + + 62 + 80 AS col2
----
142

onlyif mysql # DIV for integer division: 
query I rowsort label-2853
SELECT DISTINCT - 92 DIV - ( - 1 ) AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-2853
SELECT DISTINCT - 92 / - ( - 1 ) AS col1
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-2854
SELECT + - MIN( ALL 20 ) + - + MAX( + + 11 ) - + - CASE ( + - 52 ) WHEN + NULLIF ( - - 25, + 53 + - 83 + - 95 ) THEN NULL ELSE - 86 END
----
-117

skipif mysql # not compatible
query I rowsort label-2854
SELECT + - MIN ( ALL 20 ) + - + MAX ( + + 11 ) - + - CASE ( + - 52 ) WHEN + NULLIF ( - - 25, + 53 + - 83 + - 95 ) THEN NULL ELSE - 86 END
----
-117

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

query I rowsort
SELECT DISTINCT 73 * + 3
----
219

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2859
SELECT + NULLIF ( ( 19 ), - - 31 ) + - - 88 + - 20, - 69 DIV - + 56 + + + COUNT( * ) + + MIN( 55 ) * - CAST( + 26 AS SIGNED ) + + 12 AS col0
----
87
-1416

skipif mysql # not compatible
query II rowsort label-2859
SELECT + NULLIF ( ( 19 ), - - 31 ) + - - 88 + - 20, - 69 / - + 56 + + + COUNT ( * ) + + MIN ( 55 ) * - CAST ( + 26 AS INTEGER ) + + 12 AS col0
----
87
-1416

onlyif mysql # aggregate syntax: 
query I rowsort label-2860
SELECT + COALESCE ( + MAX( - 89 ), + 37, + + ( 41 ) )
----
-89

skipif mysql # not compatible
query I rowsort label-2860
SELECT + COALESCE ( + MAX ( - 89 ), + 37, + + ( 41 ) )
----
-89

query I rowsort
SELECT DISTINCT 37 * + ( + - 85 )
----
-3145

onlyif mysql # DIV for integer division: 
query I rowsort label-2862
SELECT + 66 DIV - 83 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2862
SELECT + 66 / - 83 AS col2
----
0

query I rowsort
SELECT ALL ( 82 ) * 61 + - 33 col1
----
4969

query I rowsort
SELECT DISTINCT 8 * + 57 + 43
----
499

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2865
SELECT + COALESCE ( + 7, + - 87, - 74 DIV + CASE + 39 WHEN - COALESCE ( - 90, + 50, - 6 * + MIN( - 91 ) DIV + MIN( ALL + 65 ) * + 13 ) THEN - - 41 WHEN + ( + 35 ) THEN NULL WHEN + + 25 THEN - 63 WHEN 57 * + CASE 29 WHEN + - 38 THEN + 43 WHEN + - 77 DIV - 66 - + + 3 THEN + + CASE 33 WHEN + 82 + - 5 + - COUNT( * ) * - + 51 THEN NULL WHEN + 36 THEN NULL ELSE ( + 72 ) - - 66 END * 48 ELSE NULL END + 15 * - MAX( - 68 - - COALESCE ( 39, 16 + + 16 * + 64 ) ) THEN 52 + + 58 * COUNT( * ) END + 71 ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-2865
SELECT + COALESCE ( + 7, + - 87, - 74 / + CASE + 39 WHEN - COALESCE ( - 90, + 50, - 6 * + MIN ( - 91 ) / + MIN ( ALL + 65 ) * + 13 ) THEN - - 41 WHEN + ( + 35 ) THEN NULL WHEN + + 25 THEN - 63 WHEN 57 * + CASE 29 WHEN + - 38 THEN + 43 WHEN + - 77 / - 66 - + + 3 THEN + + CASE 33 WHEN + 82 + - 5 + - COUNT ( * ) * - + 51 THEN NULL WHEN + 36 THEN NULL ELSE ( + 72 ) - - 66 END * 48 ELSE NULL END + 15 * - MAX ( - 68 - - COALESCE ( 39, 16 + + 16 * + 64 ) ) THEN 52 + + 58 * COUNT ( * ) END + 71 ) AS col1
----
7

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2867
SELECT + CAST( NULL AS SIGNED ) / - 67 * - + 4 AS col1
----
NULL

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

query I rowsort
SELECT - 36 + + 91 * + - 99 AS col2
----
-9045

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2869
SELECT ALL - CAST( + + COUNT( * ) AS SIGNED ) * 16 + - COUNT( * ) + COUNT( * ), - 70 * - 2 AS col1
----
-16
140

skipif mysql # not compatible
query II rowsort label-2869
SELECT ALL - CAST ( + + COUNT ( * ) AS INTEGER ) * 16 + - COUNT ( * ) + COUNT ( * ), - 70 * - 2 AS col1
----
-16
140

query I rowsort
SELECT + 24 + + - 53
----
-29

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2873
SELECT DISTINCT + 13 * MIN( - - 2 ) AS col1
----
26

skipif mysql # not compatible
query I rowsort label-2873
SELECT DISTINCT + 13 * MIN ( - - 2 ) AS col1
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2874
SELECT DISTINCT ( - 58 ) DIV + 34 + - NULLIF ( + + 21, SUM( DISTINCT - - 13 ) * + 90 + + 26 + + - CAST( NULL AS SIGNED ) * + + ( - 38 ) )
----
-22

skipif mysql # not compatible
query I rowsort label-2874
SELECT DISTINCT ( - 58 ) / + 34 + - NULLIF ( + + 21, SUM ( DISTINCT - - 13 ) * + 90 + + 26 + + - CAST ( NULL AS INTEGER ) * + + ( - 38 ) )
----
-22

query II rowsort
SELECT ALL + 85 * + - 69 + + - 60, 64 AS col2
----
-5925
64

query I rowsort
SELECT ALL 2 * + 69 AS col2
----
138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2877
SELECT DISTINCT - 74 * - COUNT( * ) * COALESCE ( - COUNT( * ), 37 - - - CAST( NULL AS SIGNED ) - + 55 ) + - - COUNT( * ) - 69
----
-142

skipif mysql # not compatible
query I rowsort label-2877
SELECT DISTINCT - 74 * - COUNT ( * ) * COALESCE ( - COUNT ( * ), 37 - - - CAST ( NULL AS INTEGER ) - + 55 ) + - - COUNT ( * ) - 69
----
-142

onlyif mysql # aggregate syntax: 
query II rowsort label-2878
SELECT ALL + 96 * - 2 * - - CASE + MIN( ALL 44 ) WHEN + + 77 THEN 21 WHEN + AVG ( DISTINCT - 64 ) + + 25 THEN NULL ELSE NULL END AS col1, + COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-2878
SELECT ALL + 96 * - 2 * - - CASE + MIN ( ALL 44 ) WHEN + + 77 THEN 21 WHEN + AVG ( DISTINCT - 64 ) + + 25 THEN NULL ELSE NULL END AS col1, + COUNT ( * )
----
NULL
1

query I rowsort
SELECT ALL COALESCE ( 37, + 87, - 20 )
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-2880
SELECT - - COUNT( * ) + + COUNT( * ) * - + 60 * - + SUM( - - 23 )
----
1381

skipif mysql # not compatible
query I rowsort label-2880
SELECT - - COUNT ( * ) + + COUNT ( * ) * - + 60 * - + SUM ( - - 23 )
----
1381

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2881
SELECT - 22 * - MIN( - - 23 ) * + CAST( + CASE - COALESCE ( - 0, 23 + 9 + - 41 ) WHEN + 63 THEN - + 66 * - + 79 WHEN + + 67 THEN NULL WHEN + - ( + COUNT( * ) ) THEN - - ( + 95 ) WHEN - - 40 THEN NULL ELSE NULL END AS SIGNED ) + - MAX( - 96 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2881
SELECT - 22 * - MIN ( - - 23 ) * + CAST ( + CASE - COALESCE ( - 0, 23 + 9 + - 41 ) WHEN + 63 THEN - + 66 * - + 79 WHEN + + 67 THEN NULL WHEN + - ( + COUNT ( * ) ) THEN - - ( + 95 ) WHEN - - 40 THEN NULL ELSE NULL END AS INTEGER ) + - MAX ( - 96 ) AS col1
----
NULL

query I rowsort
SELECT ALL 91 * + 7 AS col2
----
637

query II rowsort
SELECT DISTINCT 75 AS col0, + 17
----
75
17

onlyif mysql # aggregate syntax: 
query II rowsort label-2884
SELECT - 44 + + + CASE COUNT( * ) WHEN - + 32 + + 63 THEN - SUM( 74 ) END + 2 AS col1, + COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-2884
SELECT - 44 + + + CASE COUNT ( * ) WHEN - + 32 + + 63 THEN - SUM ( 74 ) END + 2 AS col1, + COUNT ( * )
----
NULL
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2885
SELECT DISTINCT COALESCE ( + 97, + 10, + 28 * - ( - COUNT( * ) ) + + CAST( NULL AS SIGNED ) ) col2
----
97

skipif mysql # not compatible
query I rowsort label-2885
SELECT DISTINCT COALESCE ( + 97, + 10, + 28 * - ( - COUNT ( * ) ) + + CAST ( NULL AS INTEGER ) ) col2
----
97

query I rowsort
SELECT - + 74 * + 75 AS col1
----
-5550

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2887
SELECT DISTINCT + CAST( + + 33 AS SIGNED ) * + 78, 48 AS col2
----
2574
48

skipif mysql # not compatible
query II rowsort label-2887
SELECT DISTINCT + CAST ( + + 33 AS INTEGER ) * + 78, 48 AS col2
----
2574
48

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

query II rowsort
SELECT - 54 AS col2, + 18 - - 42
----
-54
60

onlyif mysql # aggregate syntax: 
query II rowsort label-2890
SELECT ALL + - 85 * + 58 + - COUNT( * ) AS col0, 16 AS col1
----
-4931
16

skipif mysql # not compatible
query II rowsort label-2890
SELECT ALL + - 85 * + 58 + - COUNT ( * ) AS col0, 16 AS col1
----
-4931
16

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

skipif mysql # not compatible
query I rowsort label-2891
SELECT - + 14 * - 82 * + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 94 + + - 39 AS col2
----
55

query I rowsort
SELECT - NULLIF ( - 37, - 71 / - 19 * + 88 + + 56 * + 82 ) AS col1
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2894
SELECT - - 39 * - + CAST( - COUNT( * ) AS SIGNED ) + 57
----
96

skipif mysql # not compatible
query I rowsort label-2894
SELECT - - 39 * - + CAST ( - COUNT ( * ) AS INTEGER ) + 57
----
96

query I rowsort
SELECT + 7 + + 74
----
81

query I rowsort
SELECT ALL - 15 + + 4 AS col1
----
-11

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2898
SELECT + NULLIF ( + - 27, + CAST( - ( COALESCE ( - - 48, 80 * - - NULLIF ( 29, - + 4 ) ) ) AS DECIMAL ) ) * 70 - - + CAST( CASE - - 41 WHEN - + 8 THEN - - 83 ELSE + 25 END AS SIGNED ) AS col2
----
-1865

skipif mysql # not compatible
query I rowsort label-2898
SELECT + NULLIF ( + - 27, + CAST ( - ( COALESCE ( - - 48, 80 * - - NULLIF ( 29, - + 4 ) ) ) AS REAL ) ) * 70 - - + CAST ( CASE - - 41 WHEN - + 8 THEN - - 83 ELSE + 25 END AS INTEGER ) AS col2
----
-1865

onlyif mysql # DIV for integer division: 
query I rowsort label-2899
SELECT ALL 61 DIV 55 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2899
SELECT ALL 61 / 55 AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2900
SELECT ALL + 34 DIV - - 5 + + - 92 + + 27 - - 84
----
25

skipif mysql # not compatible
query I rowsort label-2900
SELECT ALL + 34 / - - 5 + + - 92 + + 27 - - 84
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2901
SELECT - ( 84 ) * - + AVG ( ALL - 20 ) * + - AVG ( ALL CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2901
SELECT - ( 84 ) * - + AVG ( ALL - 20 ) * + - AVG ( ALL CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT + 60 * ( - ( - 30 ) )
----
1800

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

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

query I rowsort
SELECT + CASE - - ( - + 90 ) WHEN + 67 THEN + 10 WHEN - + 68 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2905
SELECT ALL - 7 / 68 + - CAST( NULL AS SIGNED ) + MAX( 33 ) * 93 * - 66
----
NULL

skipif mysql # not compatible
query I rowsort label-2905
SELECT ALL - 7 / 68 + - CAST ( NULL AS INTEGER ) + MAX ( 33 ) * 93 * - 66
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2906
SELECT NULLIF ( + 34, + 76 + - + COUNT( * ) * + 1 ) * + 98 * - - 77 * 32 * - 73 col1, 18
----
-599333504
18

skipif mysql # not compatible
query II rowsort label-2906
SELECT NULLIF ( + 34, + 76 + - + COUNT ( * ) * + 1 ) * + 98 * - - 77 * 32 * - 73 col1, 18
----
-599333504
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2907
SELECT DISTINCT - CAST( NULL AS SIGNED ), + 50 - - COUNT( * ) AS col2
----
NULL
51

skipif mysql # not compatible
query II rowsort label-2907
SELECT DISTINCT - CAST ( NULL AS INTEGER ), + 50 - - COUNT ( * ) AS col2
----
NULL
51

onlyif mysql # aggregate syntax: 
query II rowsort label-2908
SELECT ( 72 ) + + COUNT( * ) + + COUNT( * ) AS col0, - 17 AS col0
----
74
-17

skipif mysql # not compatible
query II rowsort label-2908
SELECT ( 72 ) + + COUNT ( * ) + + COUNT ( * ) AS col0, - 17 AS col0
----
74
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2909
SELECT ALL CAST( 53 AS SIGNED ) * + COUNT( * ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-2909
SELECT ALL CAST ( 53 AS INTEGER ) * + COUNT ( * ) AS col2
----
53

query I rowsort
SELECT ALL ( + + 17 ) - - - 88 + + 93
----
22

query II rowsort
SELECT ALL - 2, 26 AS col0
----
-2
26

onlyif mysql # DIV for integer division: 
query I rowsort label-2912
SELECT ALL - 54 - 86 DIV + 24 - + 39
----
-96

skipif mysql # not compatible
query I rowsort label-2912
SELECT ALL - 54 - 86 / + 24 - + 39
----
-96

query II rowsort
SELECT DISTINCT - - 96 AS col1, 51
----
96
51

query I rowsort
SELECT + 70 + + + 91 + + 14 * 52 * 80 * + 67 AS col2
----
3902241

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2916
SELECT CAST( + - 55 AS SIGNED ) + + + 31 AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-2916
SELECT CAST ( + - 55 AS INTEGER ) + + + 31 AS col2
----
-24

query II rowsort
SELECT - 3, - 33 AS col1
----
-3
-33

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2919
SELECT + - MIN( ALL - - 31 ) * + 49 * - + 55 + - 22 AS col0
----
83523

skipif mysql # not compatible
query I rowsort label-2919
SELECT + - MIN ( ALL - - 31 ) * + 49 * - + 55 + - 22 AS col0
----
83523

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

skipif mysql # not compatible
query I rowsort label-2920
SELECT ALL - MIN ( ALL - 98 )
----
98

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2921
SELECT ALL + 14 DIV + 8, - CAST( - 30 AS SIGNED ) * - 87 + 29 AS col2
----
1
-2581

skipif mysql # not compatible
query II rowsort label-2921
SELECT ALL + 14 / + 8, - CAST ( - 30 AS INTEGER ) * - 87 + 29 AS col2
----
1
-2581

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

skipif mysql # not compatible
query I rowsort label-2922
SELECT 69 / - 32
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-2923
SELECT + 46 + - COUNT( * ), 39 AS col0
----
45
39

skipif mysql # not compatible
query II rowsort label-2923
SELECT + 46 + - COUNT ( * ), 39 AS col0
----
45
39

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2924
SELECT CAST( NULL AS DECIMAL ) + + - 84 * - COUNT( * ) - + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2924
SELECT CAST ( NULL AS REAL ) + + - 84 * - COUNT ( * ) - + + COUNT ( * )
----
NULL

query I rowsort
SELECT + 69 - 27 AS col0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-2926
SELECT 7 + 64 - + 40 + + - COALESCE ( 91, - 28 * - COUNT( * ) ) * + - 34 * + 23 AS col2
----
71193

skipif mysql # not compatible
query I rowsort label-2926
SELECT 7 + 64 - + 40 + + - COALESCE ( 91, - 28 * - COUNT ( * ) ) * + - 34 * + 23 AS col2
----
71193

query II rowsort
SELECT - 83 AS col1, - 72 AS col0
----
-83
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-2928
SELECT DISTINCT + CASE + 50 WHEN COUNT( + 33 ) * - 63 * + 6 + - 65 + - + 83 * - 28 THEN - 8 ELSE - 27 * + + 79 END + - CASE - COALESCE ( - + COUNT( * ), + MAX( ALL + 49 ) ) WHEN + 32 * 77 THEN CASE - 76 WHEN - 19 THEN + 65 END END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2928
SELECT DISTINCT + CASE + 50 WHEN COUNT ( + 33 ) * - 63 * + 6 + - 65 + - + 83 * - 28 THEN - 8 ELSE - 27 * + + 79 END + - CASE - COALESCE ( - + COUNT ( * ), + MAX ( ALL + 49 ) ) WHEN + 32 * 77 THEN CASE - 76 WHEN - 19 THEN + 65 END END AS col2
----
NULL

query I rowsort
SELECT - 35 + 29 * - - 50
----
1415

onlyif mysql # aggregate syntax: 
query II rowsort label-2930
SELECT DISTINCT ( - - 15 ) + + NULLIF ( + 28, + MIN( ALL 54 ) ) + 31, COUNT( * ) AS col2
----
74
1

skipif mysql # not compatible
query II rowsort label-2930
SELECT DISTINCT ( - - 15 ) + + NULLIF ( + 28, + MIN ( ALL 54 ) ) + 31, COUNT ( * ) AS col2
----
74
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2931
SELECT 88 + - 94 - 91 + + ( - - 9 ) DIV + 89 AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-2931
SELECT 88 + - 94 - 91 + + ( - - 9 ) / + 89 AS col1
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2932
SELECT DISTINCT - COUNT( - - 87 ) + 15
----
14

skipif mysql # not compatible
query I rowsort label-2932
SELECT DISTINCT - COUNT ( - - 87 ) + 15
----
14

query II rowsort
SELECT ALL + 30 + - 30 AS col1, 67 + - 45
----
0
22

onlyif mysql # DIV for integer division: 
query II rowsort label-2934
SELECT DISTINCT - 39 * 74, + 28 + 87 DIV + 11 AS col1
----
-2886
35

skipif mysql # not compatible
query II rowsort label-2934
SELECT DISTINCT - 39 * 74, + 28 + 87 / + 11 AS col1
----
-2886
35

query I rowsort
SELECT DISTINCT + ( 63 ) + - 83
----
-20

query I rowsort
SELECT 84 + 65 + + 77 AS col1
----
226

query I rowsort
SELECT DISTINCT + 85 + - 64 + + 24
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-2938
SELECT ALL - 21 * 71 DIV + 91
----
-16

skipif mysql # not compatible
query I rowsort label-2938
SELECT ALL - 21 * 71 / + 91
----
-16

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2940
SELECT ALL - COALESCE ( 27, + 7 * - COUNT( * ) * 58 + - 70, - - 69 * - + COUNT( * ) * - 4 * 58 + - + 76 )
----
-27

skipif mysql # not compatible
query I rowsort label-2940
SELECT ALL - COALESCE ( 27, + 7 * - COUNT ( * ) * 58 + - 70, - - 69 * - + COUNT ( * ) * - 4 * 58 + - + 76 )
----
-27

query I rowsort
SELECT ALL + 67 - + + 46 col0
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-2942
SELECT DISTINCT 6 DIV - - 34 * - + 10
----
0

skipif mysql # not compatible
query I rowsort label-2942
SELECT DISTINCT 6 / - - 34 * - + 10
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2943
SELECT - ( + + 3 ) DIV 94 + + - 70
----
-70

skipif mysql # not compatible
query I rowsort label-2943
SELECT - ( + + 3 ) / 94 + + - 70
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2944
SELECT ALL - COUNT( ALL + 24 ) DIV - 73 + 59 * + 25 + 29 + 25 * - 59 * - + 82 - + 88 * + + COALESCE ( 87, + CAST( NULL AS SIGNED ), + - 69 - - 83 ) + + COUNT( * )
----
114799

skipif mysql # not compatible
query I rowsort label-2944
SELECT ALL - COUNT ( ALL + 24 ) / - 73 + 59 * + 25 + 29 + 25 * - 59 * - + 82 - + 88 * + + COALESCE ( 87, + CAST ( NULL AS INTEGER ), + - 69 - - 83 ) + + COUNT ( * )
----
114799

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2945
SELECT + - CAST( - - 43 AS SIGNED ) * 75 + 29 AS col0
----
-3196

skipif mysql # not compatible
query I rowsort label-2945
SELECT + - CAST ( - - 43 AS INTEGER ) * 75 + 29 AS col0
----
-3196

query I rowsort
SELECT - 95 * 84 AS col2
----
-7980

query I rowsort
SELECT DISTINCT - - ( 68 ) col2
----
68

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

skipif mysql # not compatible
query I rowsort label-2948
SELECT DISTINCT COUNT ( DISTINCT - - 25 ) * + + 25 AS col0
----
25

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

skipif mysql # not compatible
query I rowsort label-2949
SELECT DISTINCT + ( + COUNT ( * ) ) * - + 81 / - 88 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2950
SELECT ALL 9 * + CAST( 52 AS SIGNED )
----
468

skipif mysql # not compatible
query I rowsort label-2950
SELECT ALL 9 * + CAST ( 52 AS INTEGER )
----
468

query I rowsort
SELECT ALL - 94 + - + 87 AS col2
----
-181

query I rowsort
SELECT - 53 + - 3 + - 80 * + + 23
----
-1896

query I rowsort
SELECT 32 * - 45
----
-1440

query I rowsort
SELECT - 67 + + 89
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2955
SELECT ALL 36 + - 98 + - CAST( 97 AS SIGNED ) AS col2
----
-159

skipif mysql # not compatible
query I rowsort label-2955
SELECT ALL 36 + - 98 + - CAST ( 97 AS INTEGER ) AS col2
----
-159

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2956
SELECT ALL CASE ( - - COALESCE ( + COALESCE ( 91, 62, - 76 - - + ( - - 23 ), - 63 * - + 73 + + 97 - - - CAST( - + COUNT( * ) AS SIGNED ) ), 65 * + 20 * + 2 + - - 88 + 28 ) ) WHEN - 70 * + - 54 + - + 84 THEN + + CAST( NULL AS SIGNED ) WHEN + + NULLIF ( - + 65, AVG ( DISTINCT - 7 ) * + 23 ) + - 82 THEN + MAX( + - 44 ) ELSE - 97 END + 77
----
-20

skipif mysql # not compatible
query I rowsort label-2956
SELECT ALL CASE ( - - COALESCE ( + COALESCE ( 91, 62, - 76 - - + ( - - 23 ), - 63 * - + 73 + + 97 - - - CAST ( - + COUNT ( * ) AS INTEGER ) ), 65 * + 20 * + 2 + - - 88 + 28 ) ) WHEN - 70 * + - 54 + - + 84 THEN + + CAST ( NULL AS INTEGER ) WHEN + + NULLIF ( - + 65, AVG ( DISTINCT - 7 ) * + 23 ) + - 82 THEN + MAX ( + - 44 ) ELSE - 97 END + 77
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-2957
SELECT ALL 94 + + MIN( ALL - 29 ) + - + 46
----
19

skipif mysql # not compatible
query I rowsort label-2957
SELECT ALL 94 + + MIN ( ALL - 29 ) + - + 46
----
19

query I rowsort
SELECT ALL + + ( 7 ) + - 96 col1
----
-89

onlyif mysql # aggregate syntax: 
query II rowsort label-2959
SELECT ALL COUNT( ALL 92 ) + - 70 AS col0, + COUNT( * ) AS col1
----
-69
1

skipif mysql # not compatible
query II rowsort label-2959
SELECT ALL COUNT ( ALL 92 ) + - 70 AS col0, + COUNT ( * ) AS col1
----
-69
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2960
SELECT DISTINCT 14 DIV 45 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2960
SELECT DISTINCT 14 / 45 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2961
SELECT DISTINCT - ( 20 ) + - 98 + - 37 * - - MAX( 7 ) * + COUNT( * )
----
-377

skipif mysql # not compatible
query I rowsort label-2961
SELECT DISTINCT - ( 20 ) + - 98 + - 37 * - - MAX ( 7 ) * + COUNT ( * )
----
-377

query II rowsort
SELECT 74 AS col2, - 80 AS col2
----
74
-80

query I rowsort
SELECT 87 + + 9
----
96

query I rowsort
SELECT 23 * - 92
----
-2116

query I rowsort
SELECT 29 + + 47 * + - 87 col1
----
-4060

onlyif mysql # aggregate syntax: 
query I rowsort label-2966
SELECT DISTINCT - 53 + - + COUNT( ALL - 59 ) + + 10 * - + 76 AS col1
----
-814

skipif mysql # not compatible
query I rowsort label-2966
SELECT DISTINCT - 53 + - + COUNT ( ALL - 59 ) + + 10 * - + 76 AS col1
----
-814

query I rowsort
SELECT ALL + 99 + + 22 * + 51
----
1221

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2970
SELECT ALL - MIN( - 32 ) * COUNT( * ) * + 0 * ( + 27 ) * - - CAST( NULL AS SIGNED ) / + - 90 * + COALESCE ( 78, + 90 ) + + + COUNT( * ) - CAST( + 80 AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2970
SELECT ALL - MIN ( - 32 ) * COUNT ( * ) * + 0 * ( + 27 ) * - - CAST ( NULL AS INTEGER ) / + - 90 * + COALESCE ( 78, + 90 ) + + + COUNT ( * ) - CAST ( + 80 AS REAL )
----
NULL

query I rowsort
SELECT + 24 + + 84 AS col1
----
108

query I rowsort
SELECT - 6 - - 37
----
31

query I rowsort
SELECT - 18 * - + 61
----
1098

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2974
SELECT - - CAST( - 23 AS SIGNED ) DIV + - 40 DIV + + COUNT( * ) col2
----
0

skipif mysql # not compatible
query I rowsort label-2974
SELECT - - CAST ( - 23 AS INTEGER ) / + - 40 / + + COUNT ( * ) col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2975
SELECT + 88 AS col2, - 89 + COUNT( * ) - 76 AS col2
----
88
-164

skipif mysql # not compatible
query II rowsort label-2975
SELECT + 88 AS col2, - 89 + COUNT ( * ) - 76 AS col2
----
88
-164

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2977
SELECT DISTINCT - MIN( ALL + 24 ) * 95 AS col0
----
-2280

skipif mysql # not compatible
query I rowsort label-2977
SELECT DISTINCT - MIN ( ALL + 24 ) * 95 AS col0
----
-2280

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

skipif mysql # not compatible
query I rowsort label-2978
SELECT + MIN ( + + 11 )
----
11

query II rowsort
SELECT + 89 AS col2, 5
----
89
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2980
SELECT - 81 + - 12 + + COUNT( * ) DIV - + 89 + + 67 * - 50 + + + 87 * COUNT( * ) AS col2
----
-3356

skipif mysql # not compatible
query I rowsort label-2980
SELECT - 81 + - 12 + + COUNT ( * ) / - + 89 + + 67 * - 50 + + + 87 * COUNT ( * ) AS col2
----
-3356

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2982
SELECT - CAST( + CASE + 29 WHEN - - 85 THEN CAST( 49 AS SIGNED ) + + 97 WHEN + 21 * 25 * 59 THEN NULL END AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2982
SELECT - CAST ( + CASE + 29 WHEN - - 85 THEN CAST ( 49 AS INTEGER ) + + 97 WHEN + 21 * 25 * 59 THEN NULL END AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2983
SELECT - - 47 AS col1, - COUNT( * ) + + + 94 + 87
----
47
180

skipif mysql # not compatible
query II rowsort label-2983
SELECT - - 47 AS col1, - COUNT ( * ) + + + 94 + 87
----
47
180

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

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

query I rowsort
SELECT - - 51 + - + 6 * 76 AS col0
----
-405

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2986
SELECT DISTINCT NULLIF ( 91, - - MAX( 72 ) * + 51 + - + NULLIF ( + - COUNT( - CAST( NULL AS SIGNED ) ), + - SUM( DISTINCT - ( - 89 ) ) ) * - + 42 * 17 / 3 ) * + ( + 15 )
----
1365

skipif mysql # not compatible
query I rowsort label-2986
SELECT DISTINCT NULLIF ( 91, - - MAX ( 72 ) * + 51 + - + NULLIF ( + - COUNT ( - CAST ( NULL AS INTEGER ) ), + - SUM ( DISTINCT - ( - 89 ) ) ) * - + 42 * 17 / 3 ) * + ( + 15 )
----
1365

onlyif mysql # aggregate syntax: 
query I rowsort label-2987
SELECT ALL + ( 15 ) + + SUM( + - COALESCE ( - 52, 1, 26 ) ) * - + 79 AS col0
----
-4093

skipif mysql # not compatible
query I rowsort label-2987
SELECT ALL + ( 15 ) + + SUM ( + - COALESCE ( - 52, 1, 26 ) ) * - + 79 AS col0
----
-4093

query II rowsort
SELECT - + 55, - 47 - 39 + 73 AS col1
----
-55
-13

query I rowsort
SELECT + - 2 + - 35 + + 51 + - - 68 AS col2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2990
SELECT ALL COUNT( ALL 28 ) + - + 24 AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-2990
SELECT ALL COUNT ( ALL 28 ) + - + 24 AS col0
----
-23

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2992
SELECT ALL COUNT( * ) * + - 39 * ( - 74 ) * - - 56
----
161616

skipif mysql # not compatible
query I rowsort label-2992
SELECT ALL COUNT ( * ) * + - 39 * ( - 74 ) * - - 56
----
161616

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

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

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

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

query I rowsort
SELECT + 20 + + 22
----
42

query I rowsort
SELECT + 96 + - 74
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2997
SELECT ALL CAST( + 77 AS SIGNED ) AS col2, - NULLIF ( + NULLIF ( - CASE + + 30 WHEN 23 THEN - AVG ( DISTINCT - 26 ) * + + NULLIF ( - ( COUNT( * ) ), + - 92 * - - 62 * 67 ) + + 39 + - + NULLIF ( 12, - - 7 ) END, + + 56 ), - 70 ) * + - 66
----
77
NULL

skipif mysql # not compatible
query II rowsort label-2997
SELECT ALL CAST ( + 77 AS INTEGER ) AS col2, - NULLIF ( + NULLIF ( - CASE + + 30 WHEN 23 THEN - AVG ( DISTINCT - 26 ) * + + NULLIF ( - ( COUNT ( * ) ), + - 92 * - - 62 * 67 ) + + 39 + - + NULLIF ( 12, - - 7 ) END, + + 56 ), - 70 ) * + - 66
----
77
NULL

query I rowsort
SELECT + 84 + 99 * - 96
----
-9420

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

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

query I rowsort
SELECT + 37 + - 38 * - 30 AS col0
----
1177

onlyif mysql # aggregate syntax: 
query II rowsort label-3001
SELECT ALL + 67 * 89 AS col2, - COUNT( * ) + + 88 * - 47 AS col1
----
5963
-4137

skipif mysql # not compatible
query II rowsort label-3001
SELECT ALL + 67 * 89 AS col2, - COUNT ( * ) + + 88 * - 47 AS col1
----
5963
-4137

onlyif mysql # aggregate syntax: 
query I rowsort label-3002
SELECT + MAX( + 18 ) * - COUNT( * ) + - 8 AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-3002
SELECT + MAX ( + 18 ) * - COUNT ( * ) + - 8 AS col2
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-3003
SELECT - NULLIF ( + COUNT( * ), + 52 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3003
SELECT - NULLIF ( + COUNT ( * ), + 52 ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3004
SELECT CAST( + ( + - 11 ) AS SIGNED )
----
-11

skipif mysql # not compatible
query I rowsort label-3004
SELECT CAST ( + ( + - 11 ) AS INTEGER )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-3005
SELECT + 47 / CASE + 34 WHEN + 96 + + COALESCE ( + ( + + 18 ), 69, 28 ) * + 75 THEN - - MIN( DISTINCT + NULLIF ( - 59, 90 * + ( + 63 ) * + 20 ) ) WHEN 67 THEN NULL ELSE NULL END + + COALESCE ( + + 4, + - 67 * - 74 - - 39 + + CASE - - 21 WHEN - + 96 THEN + + 68 END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3005
SELECT + 47 / CASE + 34 WHEN + 96 + + COALESCE ( + ( + + 18 ), 69, 28 ) * + 75 THEN - - MIN ( DISTINCT + NULLIF ( - 59, 90 * + ( + 63 ) * + 20 ) ) WHEN 67 THEN NULL ELSE NULL END + + COALESCE ( + + 4, + - 67 * - 74 - - 39 + + CASE - - 21 WHEN - + 96 THEN + + 68 END ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3006
SELECT - 83 + - + CAST( 15 AS SIGNED ) AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-3006
SELECT - 83 + - + CAST ( 15 AS INTEGER ) AS col1
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-3007
SELECT ALL 88 * + 93 * COUNT( * ) * - - ( 37 ) col2
----
302808

skipif mysql # not compatible
query I rowsort label-3007
SELECT ALL 88 * + 93 * COUNT ( * ) * - - ( 37 ) col2
----
302808

onlyif mysql # aggregate syntax: 
query II rowsort label-3008
SELECT + 94 * + 93 * - - MIN( + 89 ) AS col0, + MAX( - 24 ) * + 89 * + 7 AS col1
----
778038
-14952

skipif mysql # not compatible
query II rowsort label-3008
SELECT + 94 * + 93 * - - MIN ( + 89 ) AS col0, + MAX ( - 24 ) * + 89 * + 7 AS col1
----
778038
-14952

onlyif mysql # aggregate syntax: 
query I rowsort label-3009
SELECT - COUNT( * ) * - 71 AS col1
----
71

skipif mysql # not compatible
query I rowsort label-3009
SELECT - COUNT ( * ) * - 71 AS col1
----
71

query II rowsort
SELECT + 12 + 27 AS col0, 9 AS col2
----
39
9

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

skipif mysql # not compatible
query I rowsort label-3011
SELECT + CAST ( + 51 AS INTEGER ) AS col1
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-3012
SELECT + 34 DIV 53 + - NULLIF ( - 52, - 24 + + - CAST( NULL AS SIGNED ) DIV + COALESCE ( - + 65, - 86, - 8 * 57, + - 13 - - 42 * - 70 DIV - - MAX( - - ( + CAST( - + 33 AS DECIMAL ) ) ) * + 62 ) ) AS col0
----
52

skipif mysql # not compatible
query I rowsort label-3012
SELECT + 34 / 53 + - NULLIF ( - 52, - 24 + + - CAST ( NULL AS INTEGER ) / + COALESCE ( - + 65, - 86, - 8 * 57, + - 13 - - 42 * - 70 / - - MAX ( - - ( + CAST ( - + 33 AS REAL ) ) ) * + 62 ) ) AS col0
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3013
SELECT ALL 38 DIV - COALESCE ( COUNT( * ), COUNT( * ) + - 97 ) + 54
----
16

skipif mysql # not compatible
query I rowsort label-3013
SELECT ALL 38 / - COALESCE ( COUNT ( * ), COUNT ( * ) + - 97 ) + 54
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-3014
SELECT + + 47 * ( - + 59 ) - + ( + MAX( - 34 ) ) AS col1
----
-2739

skipif mysql # not compatible
query I rowsort label-3014
SELECT + + 47 * ( - + 59 ) - + ( + MAX ( - 34 ) ) AS col1
----
-2739

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3015
SELECT ALL COUNT( * ) * + MAX( DISTINCT + 87 ) - - COUNT( * ) + + 42 * - 86 * + COUNT( * ) * - + 31 + - 31 + + CASE 60 WHEN - 73 * 71 THEN NULL ELSE + 12 END - COALESCE ( - 33, - - ( + CAST( NULL AS SIGNED ) ) - - ( + 15 ), - 99 * + 65 + - 58 ) AS col2
----
112074

skipif mysql # not compatible
query I rowsort label-3015
SELECT ALL COUNT ( * ) * + MAX ( DISTINCT + 87 ) - - COUNT ( * ) + + 42 * - 86 * + COUNT ( * ) * - + 31 + - 31 + + CASE 60 WHEN - 73 * 71 THEN NULL ELSE + 12 END - COALESCE ( - 33, - - ( + CAST ( NULL AS INTEGER ) ) - - ( + 15 ), - 99 * + 65 + - 58 ) AS col2
----
112074

onlyif mysql # aggregate syntax: 
query I rowsort label-3016
SELECT 66 * - ( + 25 ) + - + COUNT( * ) AS col2
----
-1651

skipif mysql # not compatible
query I rowsort label-3016
SELECT 66 * - ( + 25 ) + - + COUNT ( * ) AS col2
----
-1651

query I rowsort
SELECT DISTINCT + + 76 * + 72
----
5472

onlyif mysql # aggregate syntax: 
query I rowsort label-3018
SELECT DISTINCT + - ( + + SUM( DISTINCT - - 56 ) )
----
-56

skipif mysql # not compatible
query I rowsort label-3018
SELECT DISTINCT + - ( + + SUM ( DISTINCT - - 56 ) )
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-3019
SELECT DISTINCT + MAX( + - 84 ) * COUNT( * ) + - NULLIF ( - 79, - 12 * - 64 )
----
-5

skipif mysql # not compatible
query I rowsort label-3019
SELECT DISTINCT + MAX ( + - 84 ) * COUNT ( * ) + - NULLIF ( - 79, - 12 * - 64 )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3020
SELECT - - 14 * - 16 * COALESCE ( + 54, - + COUNT( * ), - - COUNT( * ) + + - 17 )
----
-12096

skipif mysql # not compatible
query I rowsort label-3020
SELECT - - 14 * - 16 * COALESCE ( + 54, - + COUNT ( * ), - - COUNT ( * ) + + - 17 )
----
-12096

onlyif mysql # aggregate syntax: 
query I rowsort label-3021
SELECT - + COALESCE ( - 95, - CASE COUNT( * ) WHEN 22 THEN 12 END ) * - 28
----
-2660

skipif mysql # not compatible
query I rowsort label-3021
SELECT - + COALESCE ( - 95, - CASE COUNT ( * ) WHEN 22 THEN 12 END ) * - 28
----
-2660

onlyif mysql # aggregate syntax: 
query I rowsort label-3022
SELECT + 20 + COUNT( * )
----
21

skipif mysql # not compatible
query I rowsort label-3022
SELECT + 20 + COUNT ( * )
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3023
SELECT ALL CASE - 30 WHEN ( + 69 ) THEN NULL WHEN 52 THEN + - CAST( + + 16 AS SIGNED ) * + MIN( ALL ( + + 98 ) ) + - 11 ELSE - 55 * - + 67 / + 48 * 20 - - + 80 + 26 END * 95 + - CAST( NULL AS SIGNED ) - + - 64 / - NULLIF ( + MAX( ALL 7 ), 18 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3023
SELECT ALL CASE - 30 WHEN ( + 69 ) THEN NULL WHEN 52 THEN + - CAST ( + + 16 AS INTEGER ) * + MIN ( ALL ( + + 98 ) ) + - 11 ELSE - 55 * - + 67 / + 48 * 20 - - + 80 + 26 END * 95 + - CAST ( NULL AS INTEGER ) - + - 64 / - NULLIF ( + MAX ( ALL 7 ), 18 ) AS col2
----
NULL

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

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

query I rowsort
SELECT DISTINCT ( - + 59 ) * - - 25
----
-1475

query I rowsort
SELECT ALL 49 - - - 86 + - - 4 + - + 93 * - 44
----
4059

query I rowsort
SELECT ALL + 9 * 4
----
36

query I rowsort
SELECT 12 + - + 4 + + 78 + + 97 + - 30 + + 77 + - CASE + 83 WHEN + 80 THEN + 25 + 22 ELSE NULL END / 90 * + + 51 * + 19 AS col0
----
NULL

query I rowsort
SELECT DISTINCT ( 13 ) * + 63 + + 96 - + 12
----
903

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3030
SELECT ALL 6 + + + COUNT( * ) - - - CAST( - 67 AS SIGNED )
----
74

skipif mysql # not compatible
query I rowsort label-3030
SELECT ALL 6 + + + COUNT ( * ) - - - CAST ( - 67 AS INTEGER )
----
74

query I rowsort
SELECT 47 - + 15 * + 4 + - 93 AS col2
----
-106

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3032
SELECT DISTINCT 41 + - - 35 + - 21 + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3032
SELECT DISTINCT 41 + - - 35 + - 21 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3035
SELECT + NULLIF ( + COUNT( 59 ), + 12 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3035
SELECT + NULLIF ( + COUNT ( 59 ), + 12 ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3036
SELECT 92 DIV 43 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-3036
SELECT 92 / 43 AS col0
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-3037
SELECT - 6 DIV + 28 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3037
SELECT - 6 / + 28 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3038
SELECT ALL + CAST( NULL AS SIGNED ) * 71 / - 95 + - 21 * - - 86 * + + AVG ( ALL 35 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3038
SELECT ALL + CAST ( NULL AS INTEGER ) * 71 / - 95 + - 21 * - - 86 * + + AVG ( ALL 35 ) AS col0
----
NULL

query I rowsort
SELECT 82 * 78
----
6396

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3040
SELECT + + CAST( - 58 AS SIGNED ) * + 98 - - 93 AS col0
----
-5591

skipif mysql # not compatible
query I rowsort label-3040
SELECT + + CAST ( - 58 AS INTEGER ) * + 98 - - 93 AS col0
----
-5591

query I rowsort
SELECT ALL + 4 + - 23 col2
----
-19

query I rowsort
SELECT 61 * - 92 * - 67 AS col2
----
376004

query I rowsort
SELECT DISTINCT + 13 * - - 92 * NULLIF ( 49, - 51 )
----
58604

query I rowsort
SELECT ALL - NULLIF ( 25, + + 58 )
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-3045
SELECT + COALESCE ( - + MIN( + 67 ), - 99 ) AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-3045
SELECT + COALESCE ( - + MIN ( + 67 ), - 99 ) AS col0
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-3046
SELECT + COUNT( * ) * 0 + + - 24 + - 86 * - 3 AS col0
----
234

skipif mysql # not compatible
query I rowsort label-3046
SELECT + COUNT ( * ) * 0 + + - 24 + - 86 * - 3 AS col0
----
234

onlyif mysql # aggregate syntax: 
query I rowsort label-3047
SELECT + COUNT( * ) - + 50 AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-3047
SELECT + COUNT ( * ) - + 50 AS col2
----
-49

query I rowsort
SELECT ALL - 88 - - 20 AS col0
----
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-3049
SELECT + 79 + + 24 - 49 DIV 78
----
103

skipif mysql # not compatible
query I rowsort label-3049
SELECT + 79 + + 24 - 49 / 78
----
103

query I rowsort
SELECT DISTINCT + 94 * + 16 AS col2
----
1504

onlyif mysql # DIV for integer division: 
query I rowsort label-3051
SELECT DISTINCT NULLIF ( - + 25, - + 16 ) DIV - - NULLIF ( + 43, 78 * - 44 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3051
SELECT DISTINCT NULLIF ( - + 25, - + 16 ) / - - NULLIF ( + 43, 78 * - 44 ) AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3052
SELECT 22 + 86 + - ( - 15 ) + + - ( - ( + CAST( 90 AS SIGNED ) ) )
----
213

skipif mysql # not compatible
query I rowsort label-3052
SELECT 22 + 86 + - ( - 15 ) + + - ( - ( + CAST ( 90 AS INTEGER ) ) )
----
213

query II rowsort
SELECT ALL 6 AS col2, + 35 AS col1
----
6
35

query I rowsort
SELECT 28 * - 9
----
-252

query I rowsort
SELECT 41 + + 97 AS col1
----
138

query II rowsort
SELECT ALL 14 AS col2, 37 AS col1
----
14
37

onlyif mysql # DIV for integer division: 
query I rowsort label-3057
SELECT 18 DIV + 89 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3057
SELECT 18 / + 89 AS col1
----
0

query II rowsort
SELECT 8 AS col2, - 22 AS col0
----
8
-22

query II rowsort
SELECT ALL 71 AS col0, + 39 + + 38 AS col1
----
71
77

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

skipif mysql # not compatible
query I rowsort label-3060
SELECT DISTINCT - ( + + 71 ) / + COUNT ( * ) AS col0
----
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-3061
SELECT 31 DIV - ( + 63 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3061
SELECT 31 / - ( + 63 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3062
SELECT 67 + + ( + + COUNT( * ) ) * - 70 * + 83
----
-5743

skipif mysql # not compatible
query I rowsort label-3062
SELECT 67 + + ( + + COUNT ( * ) ) * - 70 * + 83
----
-5743

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3063
SELECT 22, - COALESCE ( MAX( DISTINCT - CAST( - 59 AS SIGNED ) ), + + 20, 38, 43 + + 11 - - - 65 ) col0
----
22
-59

skipif mysql # not compatible
query II rowsort label-3063
SELECT 22, - COALESCE ( MAX ( DISTINCT - CAST ( - 59 AS INTEGER ) ), + + 20, 38, 43 + + 11 - - - 65 ) col0
----
22
-59

query I rowsort
SELECT ALL - 32 + + 26
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3065
SELECT ALL + 77 + + - CAST( NULL AS SIGNED ) + + ( 45 ) * 57 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3065
SELECT ALL + 77 + + - CAST ( NULL AS INTEGER ) + + ( 45 ) * 57 AS col1
----
NULL

query I rowsort
SELECT 47 + + ( + 26 )
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-3067
SELECT ALL 82 AS col1, 39, COUNT( * ) + - + ( + 1 ) + + + 87 DIV 67 * - MIN( 43 ) * - + 85 AS col1
----
82
39
3655

skipif mysql # not compatible
query III rowsort label-3067
SELECT ALL 82 AS col1, 39, COUNT ( * ) + - + ( + 1 ) + + + 87 / 67 * - MIN ( 43 ) * - + 85 AS col1
----
82
39
3655

onlyif mysql # aggregate syntax: 
query II rowsort label-3068
SELECT DISTINCT COUNT( 86 ), + 60 AS col0
----
1
60

skipif mysql # not compatible
query II rowsort label-3068
SELECT DISTINCT COUNT ( 86 ), + 60 AS col0
----
1
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3069
SELECT ALL COUNT( * ) * + 58 DIV ( - 93 ) AS col2, 88
----
0
88

skipif mysql # not compatible
query II rowsort label-3069
SELECT ALL COUNT ( * ) * + 58 / ( - 93 ) AS col2, 88
----
0
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3070
SELECT 14 + + SUM( + 84 ) AS col2
----
98

skipif mysql # not compatible
query I rowsort label-3070
SELECT 14 + + SUM ( + 84 ) AS col2
----
98

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

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

skipif mysql # not compatible
query I rowsort label-3072
SELECT - SUM ( ALL - 87 )
----
87

onlyif mysql # aggregate syntax: 
query II rowsort label-3073
SELECT DISTINCT - + 69 AS col2, COUNT( - - 57 ) AS col2
----
-69
1

skipif mysql # not compatible
query II rowsort label-3073
SELECT DISTINCT - + 69 AS col2, COUNT ( - - 57 ) AS col2
----
-69
1

query II rowsort
SELECT + 79 AS col2, 74
----
79
74

onlyif mysql # aggregate syntax: 
query II rowsort label-3075
SELECT 84 + - 3 AS col0, MAX( ALL - ( - 24 ) ) + - 42 col1
----
81
-18

skipif mysql # not compatible
query II rowsort label-3075
SELECT 84 + - 3 AS col0, MAX ( ALL - ( - 24 ) ) + - 42 col1
----
81
-18

query I rowsort
SELECT DISTINCT 54 * 32 + + 32 * - + 16 AS col0
----
1216

query II rowsort
SELECT ALL - 32, 62 AS col1
----
-32
62

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3079
SELECT COALESCE ( 60, 2 ) * - COALESCE ( - + COUNT( * ), - 45 * + + 66 )
----
60

skipif mysql # not compatible
query I rowsort label-3079
SELECT COALESCE ( 60, 2 ) * - COALESCE ( - + COUNT ( * ), - 45 * + + 66 )
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3080
SELECT DISTINCT - + CAST( - 87 AS SIGNED ) col0, 61 * + + 74
----
87
4514

skipif mysql # not compatible
query II rowsort label-3080
SELECT DISTINCT - + CAST ( - 87 AS INTEGER ) col0, 61 * + + 74
----
87
4514

onlyif mysql # aggregate syntax: 
query I rowsort label-3081
SELECT DISTINCT 76 * + + COALESCE ( + + ( + 47 ), + COUNT( * ), 68 * 73 ) + - 93 + 28 - + - CASE 77 WHEN - 99 THEN NULL ELSE 90 END
----
3597

skipif mysql # not compatible
query I rowsort label-3081
SELECT DISTINCT 76 * + + COALESCE ( + + ( + 47 ), + COUNT ( * ), 68 * 73 ) + - 93 + 28 - + - CASE 77 WHEN - 99 THEN NULL ELSE 90 END
----
3597

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3083
SELECT ALL CASE - 45 WHEN - 21 + + + COALESCE ( - COUNT( * ), - 7, 53 + - - 77 * 41 ) THEN + COUNT( * ) WHEN - 77 THEN NULL WHEN - - 28 THEN - 0 END * MIN( ALL + 40 ) * - AVG ( ALL 93 ) + + 27 + - + 86 + + COUNT( * ) / 72 - + 22 AS col1, + 93
----
NULL
93

skipif mysql # not compatible
query II rowsort label-3083
SELECT ALL CASE - 45 WHEN - 21 + + + COALESCE ( - COUNT ( * ), - 7, 53 + - - 77 * 41 ) THEN + COUNT ( * ) WHEN - 77 THEN NULL WHEN - - 28 THEN - 0 END * MIN ( ALL + 40 ) * - AVG ( ALL 93 ) + + 27 + - + 86 + + COUNT ( * ) / 72 - + 22 AS col1, + 93
----
NULL
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3084
SELECT + 64 * - - COUNT( * ) + - - 75 AS col0
----
139

skipif mysql # not compatible
query I rowsort label-3084
SELECT + 64 * - - COUNT ( * ) + - - 75 AS col0
----
139

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3085
SELECT - 0 * + + 10 + + 78 + - CAST( NULL AS SIGNED ) + ( - + COALESCE ( - - MAX( + 3 ), - 11 * - 27 ) ) * - COUNT( ALL 74 ) + + 10 + - 18 / - 15 + + + 59 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3085
SELECT - 0 * + + 10 + + 78 + - CAST ( NULL AS INTEGER ) + ( - + COALESCE ( - - MAX ( + 3 ), - 11 * - 27 ) ) * - COUNT ( ALL 74 ) + + 10 + - 18 / - 15 + + + 59 col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-3086
SELECT + 77 * - COUNT ( * ) + - - 11 AS col1
----
-66

query I rowsort
SELECT ALL + 68 * 28
----
1904

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

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

query I rowsort
SELECT + 2 * 33 * 96
----
6336

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

skipif mysql # not compatible
query I rowsort label-3091
SELECT ALL - 46 + + COUNT ( * ) + - + ( + 24 ) AS col1
----
-69

query I rowsort
SELECT + 71 * - 42 AS col2
----
-2982

onlyif mysql # aggregate syntax: 
query I rowsort label-3093
SELECT - 89 + - - NULLIF ( - + 18, + AVG ( DISTINCT 97 ) * + COUNT( * ) * + - COUNT( * ) - COUNT( DISTINCT - - 67 ) ) col0
----
-107

skipif mysql # not compatible
query I rowsort label-3093
SELECT - 89 + - - NULLIF ( - + 18, + AVG ( DISTINCT 97 ) * + COUNT ( * ) * + - COUNT ( * ) - COUNT ( DISTINCT - - 67 ) ) col0
----
-107

onlyif mysql # aggregate syntax: 
query I rowsort label-3094
SELECT ALL CASE 81 WHEN + 97 THEN COUNT( * ) WHEN + ( + 55 ) * - 91 THEN 79 + 17 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3094
SELECT ALL CASE 81 WHEN + 97 THEN COUNT ( * ) WHEN + ( + 55 ) * - 91 THEN 79 + 17 END AS col2
----
NULL

query I rowsort
SELECT DISTINCT NULLIF ( - 68, 15 ) AS col2
----
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-3096
SELECT - 24 DIV + - 64 col2
----
0

skipif mysql # not compatible
query I rowsort label-3096
SELECT - 24 / + - 64 col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3097
SELECT + 53 DIV COALESCE ( ( 99 ), + COUNT( * ) ) DIV 46 * - + 82
----
0

skipif mysql # not compatible
query I rowsort label-3097
SELECT + 53 / COALESCE ( ( 99 ), + COUNT ( * ) ) / 46 * - + 82
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3098
SELECT + COUNT( * ) + - 1 - COUNT( DISTINCT - CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-3098
SELECT + COUNT ( * ) + - 1 - COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3099
SELECT - - NULLIF ( 11, - AVG ( - - 32 ) * 14 + 14 ) + - - 21 + + COUNT( * ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-3099
SELECT - - NULLIF ( 11, - AVG ( - - 32 ) * 14 + 14 ) + - - 21 + + COUNT ( * ) AS col2
----
33

onlyif mysql # DIV for integer division: 
query II rowsort label-3100
SELECT - + 59 * 80 DIV - - 54, + 0 AS col0
----
-87
0

skipif mysql # not compatible
query II rowsort label-3100
SELECT - + 59 * 80 / - - 54, + 0 AS col0
----
-87
0

query I rowsort
SELECT - + 54 + + + 22
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-3102
SELECT ALL + COUNT( * ) + + MAX( DISTINCT - - 17 )
----
18

skipif mysql # not compatible
query I rowsort label-3102
SELECT ALL + COUNT ( * ) + + MAX ( DISTINCT - - 17 )
----
18

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

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

query I rowsort
SELECT - - 35 + - 77 AS col2
----
-42

query II rowsort
SELECT ALL + 24 * + + 98 col1, + 85
----
2352
85

query I rowsort
SELECT DISTINCT + + 3 col2
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3107
SELECT ALL 77 / CAST( NULL AS SIGNED ) + - - 42 - CAST( - COUNT( * ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3107
SELECT ALL 77 / CAST ( NULL AS INTEGER ) + - - 42 - CAST ( - COUNT ( * ) AS INTEGER )
----
NULL

query I rowsort
SELECT + 81 * - + 15 + - 25 * + 51 + + 28 * - 30
----
-3330

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

skipif mysql # not compatible
query I rowsort label-3109
SELECT - MAX ( - ( - + 48 ) )
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3110
SELECT CAST( - CASE + - 49 WHEN ( - 98 ) THEN - 29 + 13 WHEN 52 + + 5 THEN + - 4 WHEN 79 * + 74 + + + 36 - + 56 THEN + 64 END AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3110
SELECT CAST ( - CASE + - 49 WHEN ( - 98 ) THEN - 29 + 13 WHEN 52 + + 5 THEN + - 4 WHEN 79 * + 74 + + + 36 - + 56 THEN + 64 END AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT - + 8 * + + 83 AS col0, 50 AS col0
----
-664
50

query I rowsort
SELECT ALL - 3 * - 64 AS col0
----
192

onlyif mysql # aggregate syntax: 
query I rowsort label-3113
SELECT MIN( + 61 ) * - + 22 * + 74 + + - 52 - 9
----
-99369

skipif mysql # not compatible
query I rowsort label-3113
SELECT MIN ( + 61 ) * - + 22 * + 74 + + - 52 - 9
----
-99369

onlyif mysql # aggregate syntax: 
query I rowsort label-3114
SELECT COALESCE ( + - 75, + - COUNT( * ), - 39 + - - 41 + + 16 + - + COUNT( * ) * + - 16 * COUNT( * ) ) AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-3114
SELECT COALESCE ( + - 75, + - COUNT ( * ), - 39 + - - 41 + + 16 + - + COUNT ( * ) * + - 16 * COUNT ( * ) ) AS col1
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3115
SELECT CASE + COUNT( * ) WHEN - - SUM( - 60 ) * - 15 + 69 THEN 61 * COUNT( * ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3115
SELECT CASE + COUNT ( * ) WHEN - - SUM ( - 60 ) * - 15 + 69 THEN 61 * COUNT ( * ) ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3116
SELECT 77 * + 38 + + - COUNT( * ) AS col0
----
2925

skipif mysql # not compatible
query I rowsort label-3116
SELECT 77 * + 38 + + - COUNT ( * ) AS col0
----
2925

onlyif mysql # aggregate syntax: 
query I rowsort label-3117
SELECT ALL + 39 * + NULLIF ( 99, 14 + + COUNT( DISTINCT + 35 ) + - ( + 22 ) ) + - + 97 * + 46 col2
----
-601

skipif mysql # not compatible
query I rowsort label-3117
SELECT ALL + 39 * + NULLIF ( 99, 14 + + COUNT ( DISTINCT + 35 ) + - ( + 22 ) ) + - + 97 * + 46 col2
----
-601

onlyif mysql # aggregate syntax: 
query I rowsort label-3118
SELECT CASE + COUNT( * ) WHEN - 31 + + 7 * - 25 THEN NULL ELSE - 96 * - 7 END AS col2
----
672

skipif mysql # not compatible
query I rowsort label-3118
SELECT CASE + COUNT ( * ) WHEN - 31 + + 7 * - 25 THEN NULL ELSE - 96 * - 7 END AS col2
----
672

query I rowsort
SELECT + 78 + 48 + - - 74
----
200

query I rowsort
SELECT + 84 * 59 AS col0
----
4956

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3121
SELECT ALL ( + - 92 ) * + ( NULLIF ( + COUNT( * ), 22 ) ) + - 37 + - COUNT( * ) AS col2, - CAST( NULL AS SIGNED ) + - 79 * - 53 / 86
----
-130
NULL

skipif mysql # not compatible
query II rowsort label-3121
SELECT ALL ( + - 92 ) * + ( NULLIF ( + COUNT ( * ), 22 ) ) + - 37 + - COUNT ( * ) AS col2, - CAST ( NULL AS INTEGER ) + - 79 * - 53 / 86
----
-130
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3122
SELECT ALL 18 * + CAST( - - ( + 76 ) AS SIGNED ) + - + 76 / + CAST( NULL AS SIGNED ) * - - 88 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3122
SELECT ALL 18 * + CAST ( - - ( + 76 ) AS INTEGER ) + - + 76 / + CAST ( NULL AS INTEGER ) * - - 88 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3123
SELECT COUNT( ALL 23 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-3123
SELECT COUNT ( ALL 23 ) col1
----
1

query II rowsort
SELECT + 12 * - 16 * + 12 col1, + 50
----
-2304
50

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3126
SELECT - CAST( - + 60 AS SIGNED ) + ( + + MAX( + + 74 ) ) col0
----
134

skipif mysql # not compatible
query I rowsort label-3126
SELECT - CAST ( - + 60 AS INTEGER ) + ( + + MAX ( + + 74 ) ) col0
----
134

query II rowsort
SELECT - 92 AS col2, NULLIF ( - 95, 43 - - COALESCE ( - 58, 20 + - 38 ) )
----
-92
-95

query I rowsort
SELECT - + 25 + 27 AS col2
----
2

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

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

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

query I rowsort
SELECT DISTINCT + 86 * + + 23 AS col1
----
1978

onlyif mysql # DIV for integer division: 
query I rowsort label-3132
SELECT DISTINCT + 75 DIV + 1 col1
----
75

skipif mysql # not compatible
query I rowsort label-3132
SELECT DISTINCT + 75 / + 1 col1
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-3133
SELECT - 52 * COUNT( * ) * 69, - 81 + - 23 col1
----
-3588
-104

skipif mysql # not compatible
query II rowsort label-3133
SELECT - 52 * COUNT ( * ) * 69, - 81 + - 23 col1
----
-3588
-104

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

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

query II rowsort
SELECT - 64, + 4 * + + 73 * - 93 AS col1
----
-64
-27156

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3136
SELECT + + 62 + - ( - COALESCE ( - 27, + 42 DIV - 33 + SUM( DISTINCT + 60 ) ) ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-3136
SELECT + + 62 + - ( - COALESCE ( - 27, + 42 / - 33 + SUM ( DISTINCT + 60 ) ) ) AS col1
----
35

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3138
SELECT ALL NULLIF ( - COUNT( * ), 73 + - 7 + + + 56 + MAX( DISTINCT - + 9 ) * - 13 + 65 + - 36 + + ( - + 37 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3138
SELECT ALL NULLIF ( - COUNT ( * ), 73 + - 7 + + + 56 + MAX ( DISTINCT - + 9 ) * - 13 + 65 + - 36 + + ( - + 37 ) ) AS col1
----
-1

query I rowsort
SELECT COALESCE ( - 18, - 94 * - + 0, + 84, - - 17 * - 17 ) * - 71 AS col1
----
1278

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

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

query I rowsort
SELECT - 41 + - 91 AS col2
----
-132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3142
SELECT - ( 57 ) DIV COUNT( * ) + - COUNT( * ) - + COUNT( * ) + + COALESCE ( 81, - 3 - - CAST( NULL AS SIGNED ) DIV - 93 )
----
22

skipif mysql # not compatible
query I rowsort label-3142
SELECT - ( 57 ) / COUNT ( * ) + - COUNT ( * ) - + COUNT ( * ) + + COALESCE ( 81, - 3 - - CAST ( NULL AS INTEGER ) / - 93 )
----
22

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

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

query I rowsort
SELECT + ( + + 42 ) * + - 71 + - 97 * - - 69 AS col1
----
-9675

query I rowsort
SELECT ALL + 45 + - 34
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-3146
SELECT 38 * - ( - ( + + SUM( 34 ) ) ) * + ( + COALESCE ( - 58, + 61 ) ) * + 25 AS col2, + 9 AS col1
----
-1873400
9

skipif mysql # not compatible
query II rowsort label-3146
SELECT 38 * - ( - ( + + SUM ( 34 ) ) ) * + ( + COALESCE ( - 58, + 61 ) ) * + 25 AS col2, + 9 AS col1
----
-1873400
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3147
SELECT 37 - + 41 + COALESCE ( - COALESCE ( 86, + 37 DIV - 27 ), + + 98 * + 44 * 18 + 9 ) + - SUM( DISTINCT + 95 ) * - - SUM( + ( + 86 ) )
----
-8260

skipif mysql # not compatible
query I rowsort label-3147
SELECT 37 - + 41 + COALESCE ( - COALESCE ( 86, + 37 / - 27 ), + + 98 * + 44 * 18 + 9 ) + - SUM ( DISTINCT + 95 ) * - - SUM ( + ( + 86 ) )
----
-8260

onlyif mysql # DIV for integer division: 
query I rowsort label-3148
SELECT 47 DIV - 42
----
-1

skipif mysql # not compatible
query I rowsort label-3148
SELECT 47 / - 42
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3149
SELECT CASE - - ( + SUM( DISTINCT 20 ) ) WHEN COUNT( * ) - - 39 + + - 12 * - - 34 * 6 * COUNT( * ) + COUNT( * ) THEN NULL WHEN - - CASE - + 58 WHEN + 82 + + 56 + + - 12 / - + CAST( NULL AS SIGNED ) THEN + 89 + - 1 * + 71 ELSE + 62 * - 75 END - - COALESCE ( - MAX( - - 88 ), 85 * - 70 - COUNT( + + 59 ), - - MIN( - 91 ) / - AVG ( DISTINCT - - 5 ) ) * + + 18 THEN + ( COUNT( * ) ) - + 42 * - 41 + + NULLIF ( - - 72, + 46 / + 97 * + - CAST( NULL AS SIGNED ) ) + + + 92 ELSE 56 END * 47 col0
----
2632

skipif mysql # not compatible
query I rowsort label-3149
SELECT CASE - - ( + SUM ( DISTINCT 20 ) ) WHEN COUNT ( * ) - - 39 + + - 12 * - - 34 * 6 * COUNT ( * ) + COUNT ( * ) THEN NULL WHEN - - CASE - + 58 WHEN + 82 + + 56 + + - 12 / - + CAST ( NULL AS INTEGER ) THEN + 89 + - 1 * + 71 ELSE + 62 * - 75 END - - COALESCE ( - MAX ( - - 88 ), 85 * - 70 - COUNT ( + + 59 ), - - MIN ( - 91 ) / - AVG ( DISTINCT - - 5 ) ) * + + 18 THEN + ( COUNT ( * ) ) - + 42 * - 41 + + NULLIF ( - - 72, + 46 / + 97 * + - CAST ( NULL AS INTEGER ) ) + + + 92 ELSE 56 END * 47 col0
----
2632

onlyif mysql # aggregate syntax: 
query II rowsort label-3150
SELECT MAX( ALL + 67 ) * - 23 * 60 AS col2, 29 AS col2
----
-92460
29

skipif mysql # not compatible
query II rowsort label-3150
SELECT MAX ( ALL + 67 ) * - 23 * 60 AS col2, 29 AS col2
----
-92460
29

query I rowsort
SELECT DISTINCT 41 * - 83
----
-3403

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3152
SELECT CASE - 90 WHEN + + 54 + + 70 THEN - + 94 WHEN - COALESCE ( - + CASE 24 WHEN - 72 * 39 * - - COUNT( * ) + COUNT( * ) + 8 THEN - - 4 * - - 7 + + COUNT( * ) + + COUNT( * ) + - COUNT( * ) * 77 * - - 47 * - 27 * + 58 - + 8 + + + 48 + 14 ELSE NULL END, + + 6 * 13 + 92 ) THEN NULL ELSE - 83 END DIV - COUNT( * ) AS col1
----
83

skipif mysql # not compatible
query I rowsort label-3152
SELECT CASE - 90 WHEN + + 54 + + 70 THEN - + 94 WHEN - COALESCE ( - + CASE 24 WHEN - 72 * 39 * - - COUNT ( * ) + COUNT ( * ) + 8 THEN - - 4 * - - 7 + + COUNT ( * ) + + COUNT ( * ) + - COUNT ( * ) * 77 * - - 47 * - 27 * + 58 - + 8 + + + 48 + 14 ELSE NULL END, + + 6 * 13 + 92 ) THEN NULL ELSE - 83 END / - COUNT ( * ) AS col1
----
83

query I rowsort
SELECT ALL + 11 * + 81
----
891

query I rowsort
SELECT - 14 - - - 12 * + 47 - - - 16 col2
----
-594

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3155
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - + 2 * 76 + - 27 + + 71 + + 26 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3155
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - + 2 * 76 + - 27 + + 71 + + 26 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3156
SELECT + 80 + + CAST( - 76 AS SIGNED ) col1
----
4

skipif mysql # not compatible
query I rowsort label-3156
SELECT + 80 + + CAST ( - 76 AS INTEGER ) col1
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3157
SELECT 28 * - + 36 * + 56 / - + NULLIF ( CAST( NULL AS SIGNED ), - - 90 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3157
SELECT 28 * - + 36 * + 56 / - + NULLIF ( CAST ( NULL AS INTEGER ), - - 90 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3158
SELECT - 73 + ( - COUNT( - - 18 ) ) + - 16 AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-3158
SELECT - 73 + ( - COUNT ( - - 18 ) ) + - 16 AS col0
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3159
SELECT 51 * - + 56 * 20 * 87 AS col1, COUNT( * ) - CAST( + + CASE ( 98 ) WHEN 37 * 52 THEN 38 ELSE 0 END AS SIGNED ) - - - 71
----
-4969440
-70

skipif mysql # not compatible
query II rowsort label-3159
SELECT 51 * - + 56 * 20 * 87 AS col1, COUNT ( * ) - CAST ( + + CASE ( 98 ) WHEN 37 * 52 THEN 38 ELSE 0 END AS INTEGER ) - - - 71
----
-4969440
-70

query II rowsort
SELECT DISTINCT - 3 + + - ( + 75 ) + - - 26 AS col0, + 16
----
-52
16

query I rowsort
SELECT COALESCE ( + - 78, 56, - 57 + - 12, 19 ) * + 13 col0
----
-1014

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3162
SELECT ALL - 69 + ( - 72 ) * - - 58 * CAST( + 21 AS SIGNED ) col2
----
-87765

skipif mysql # not compatible
query I rowsort label-3162
SELECT ALL - 69 + ( - 72 ) * - - 58 * CAST ( + 21 AS INTEGER ) col2
----
-87765

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3163
SELECT + 84 DIV - 44 - + COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-3163
SELECT + 84 / - 44 - + COUNT ( * )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3164
SELECT DISTINCT COUNT( * ) * + - COUNT( 38 ) * + 50 + + - 67 + + 87 AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-3164
SELECT DISTINCT COUNT ( * ) * + - COUNT ( 38 ) * + 50 + + - 67 + + 87 AS col0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-3165
SELECT ALL - COUNT( * ) + - 48 - COUNT( * )
----
-50

skipif mysql # not compatible
query I rowsort label-3165
SELECT ALL - COUNT ( * ) + - 48 - COUNT ( * )
----
-50

query I rowsort
SELECT 10 * - 93
----
-930

query I rowsort
SELECT - 89 * 17
----
-1513

onlyif mysql # aggregate syntax: 
query I rowsort label-3168
SELECT COUNT( * ) * 68 * - 4 AS col2
----
-272

skipif mysql # not compatible
query I rowsort label-3168
SELECT COUNT ( * ) * 68 * - 4 AS col2
----
-272

onlyif mysql # aggregate syntax: 
query I rowsort label-3169
SELECT + MAX( DISTINCT 88 ) col2
----
88

skipif mysql # not compatible
query I rowsort label-3169
SELECT + MAX ( DISTINCT 88 ) col2
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3170
SELECT COUNT( ALL 95 ) DIV - + 42 AS col1, - 56 AS col1
----
0
-56

skipif mysql # not compatible
query II rowsort label-3170
SELECT COUNT ( ALL 95 ) / - + 42 AS col1, - 56 AS col1
----
0
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-3171
SELECT DISTINCT - 4 DIV + + 12 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3171
SELECT DISTINCT - 4 / + + 12 AS col0
----
0

query I rowsort
SELECT DISTINCT 19 + - 13
----
6

query I rowsort
SELECT DISTINCT + 32 + - 38 AS col1
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-3174
SELECT 23 AS col2, + ( 99 ) * - COALESCE ( - 85, - 22 * 23 * COUNT( * ) + SUM( + - 40 ) )
----
23
8415

skipif mysql # not compatible
query II rowsort label-3174
SELECT 23 AS col2, + ( 99 ) * - COALESCE ( - 85, - 22 * 23 * COUNT ( * ) + SUM ( + - 40 ) )
----
23
8415

onlyif mysql # aggregate syntax: 
query I rowsort label-3175
SELECT - 85 * + 69 + 57 + - COUNT( - 46 ) + - 78
----
-5887

skipif mysql # not compatible
query I rowsort label-3175
SELECT - 85 * + 69 + 57 + - COUNT ( - 46 ) + - 78
----
-5887

query I rowsort
SELECT 73 * 96 AS col2
----
7008

query I rowsort
SELECT DISTINCT + 42 * 55 AS col1
----
2310

query I rowsort
SELECT 47 + + 80
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-3179
SELECT 14 * CASE - 77 WHEN 57 THEN + NULLIF ( - + SUM( ALL - 35 ), COALESCE ( + 17, - + 38 ) - + 94 + + 55 / - COALESCE ( - - 8, - 34 * + - 60 + MIN( ALL - 3 ), 69 - - 35 ) * + + 60 ) END - - 24 - + + 37 * - - 96 * + 60
----
NULL

skipif mysql # not compatible
query I rowsort label-3179
SELECT 14 * CASE - 77 WHEN 57 THEN + NULLIF ( - + SUM ( ALL - 35 ), COALESCE ( + 17, - + 38 ) - + 94 + + 55 / - COALESCE ( - - 8, - 34 * + - 60 + MIN ( ALL - 3 ), 69 - - 35 ) * + + 60 ) END - - 24 - + + 37 * - - 96 * + 60
----
NULL

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

query I rowsort
SELECT 63 * 30 * + + 12
----
22680

query I rowsort
SELECT 72 + 34
----
106

query I rowsort
SELECT ALL + 24 * + 66 col2
----
1584

onlyif mysql # aggregate syntax: 
query II rowsort label-3184
SELECT + COUNT( * ) * + 81 + 31, - 58 AS col2
----
112
-58

skipif mysql # not compatible
query II rowsort label-3184
SELECT + COUNT ( * ) * + 81 + 31, - 58 AS col2
----
112
-58

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3186
SELECT SUM( + 48 ) * - 3 + - 73 + - ( + ( COUNT( * ) ) ) DIV - - 76 * + ( - CAST( 17 AS SIGNED ) ) - - 0 DIV - - 67 * 70 * + 66 + + - 11 DIV + 79
----
-217

skipif mysql # not compatible
query I rowsort label-3186
SELECT SUM ( + 48 ) * - 3 + - 73 + - ( + ( COUNT ( * ) ) ) / - - 76 * + ( - CAST ( 17 AS INTEGER ) ) - - 0 / - - 67 * 70 * + 66 + + - 11 / + 79
----
-217

onlyif mysql # aggregate syntax: 
query I rowsort label-3187
SELECT + 12 + + COUNT( * ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-3187
SELECT + 12 + + COUNT ( * ) AS col2
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-3188
SELECT ALL - - 33 DIV - 56
----
0

skipif mysql # not compatible
query I rowsort label-3188
SELECT ALL - - 33 / - 56
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3189
SELECT - 74 + + - ( - + 60 ) + - COUNT( * ) + - - 89 + - 55
----
19

skipif mysql # not compatible
query I rowsort label-3189
SELECT - 74 + + - ( - + 60 ) + - COUNT ( * ) + - - 89 + - 55
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3190
SELECT - 71 AS col0, ( + 62 ) * + CAST( + + 95 AS SIGNED ) * - + 30 * - + 96
----
-71
16963200

skipif mysql # not compatible
query II rowsort label-3190
SELECT - 71 AS col0, ( + 62 ) * + CAST ( + + 95 AS INTEGER ) * - + 30 * - + 96
----
-71
16963200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3191
SELECT + CAST( + 78 AS SIGNED ) + - 65 + 48
----
61

skipif mysql # not compatible
query I rowsort label-3191
SELECT + CAST ( + 78 AS INTEGER ) + - 65 + 48
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-3192
SELECT ALL COUNT( * ) * + - 27 - 16 * - 3
----
21

skipif mysql # not compatible
query I rowsort label-3192
SELECT ALL COUNT ( * ) * + - 27 - 16 * - 3
----
21

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

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

query I rowsort
SELECT ALL + 6 + - 42 * 78 AS col2
----
-3270

query II rowsort
SELECT - + 22, 89 AS col2
----
-22
89

query I rowsort
SELECT ALL + 84 + - + 59
----
25

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

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

query I rowsort
SELECT - 90 + ( + 21 ) AS col1
----
-69

query I rowsort
SELECT + 73 - - + 51 AS col2
----
124

query I rowsort
SELECT - + 37 col0
----
-37

query I rowsort
SELECT + 86 + - 40 * ( - + 84 ) + + 80 AS col1
----
3526

query I rowsort
SELECT ALL 67 * ( - + 89 )
----
-5963

onlyif mysql # aggregate syntax: 
query I rowsort label-3203
SELECT + 81 * 40 + - COALESCE ( + 13, COUNT( * ) )
----
3227

skipif mysql # not compatible
query I rowsort label-3203
SELECT + 81 * 40 + - COALESCE ( + 13, COUNT ( * ) )
----
3227

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

skipif mysql # not compatible
query I rowsort label-3204
SELECT ALL 6 * CAST ( NULL AS INTEGER ) - - 1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3205
SELECT DISTINCT + 99 AS col1, - 19 + - NULLIF ( 2, + SUM( DISTINCT - 60 ) + + 1 * + CAST( NULL AS SIGNED ) ) * + ( - 36 ) * 54
----
99
3869

skipif mysql # not compatible
query II rowsort label-3205
SELECT DISTINCT + 99 AS col1, - 19 + - NULLIF ( 2, + SUM ( DISTINCT - 60 ) + + 1 * + CAST ( NULL AS INTEGER ) ) * + ( - 36 ) * 54
----
99
3869

query I rowsort
SELECT ALL 31 * + 72 * - 26 col2
----
-58032

onlyif mysql # aggregate syntax: 
query I rowsort label-3207
SELECT COUNT( * ) / - COALESCE ( - ( 96 ), - - 77, + 84 ) + + 20 * 3 * - CASE ( + 89 ) WHEN 56 * 21 * + 22 * + 15 - - 35 * 9 * + 19 THEN + 27 / + + 18 + + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3207
SELECT COUNT ( * ) / - COALESCE ( - ( 96 ), - - 77, + 84 ) + + 20 * 3 * - CASE ( + 89 ) WHEN 56 * 21 * + 22 * + 15 - - 35 * 9 * + 19 THEN + 27 / + + 18 + + COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3208
SELECT ALL 7 * - - 82 * - MIN( + 86 ) * - CAST( NULL AS SIGNED ) + + - 22 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3208
SELECT ALL 7 * - - 82 * - MIN ( + 86 ) * - CAST ( NULL AS INTEGER ) + + - 22 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3209
SELECT - COALESCE ( - SUM( ALL + 27 ), + 60, - 11 ) + - 56 + + 15 + - 40 * - 12
----
466

skipif mysql # not compatible
query I rowsort label-3209
SELECT - COALESCE ( - SUM ( ALL + 27 ), + 60, - 11 ) + - 56 + + 15 + - 40 * - 12
----
466

onlyif mysql # DIV for integer division: 
query I rowsort label-3210
SELECT + 7 DIV + 9
----
0

skipif mysql # not compatible
query I rowsort label-3210
SELECT + 7 / + 9
----
0

query I rowsort
SELECT ALL 71 * - 78 AS col2
----
-5538

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3212
SELECT DISTINCT + COALESCE ( + CAST( + 14 AS SIGNED ), + COUNT( * ) ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-3212
SELECT DISTINCT + COALESCE ( + CAST ( + 14 AS INTEGER ), + COUNT ( * ) ) AS col1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3213
SELECT NULLIF ( - 49, + + COUNT( * ) ) AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-3213
SELECT NULLIF ( - 49, + + COUNT ( * ) ) AS col2
----
-49

query II rowsort
SELECT ALL + 17 col0, CASE + 0 WHEN - 28 + - - 53 * - 13 THEN + 72 WHEN + - NULLIF ( 76, - - 91 * - - ( 54 ) ) - + 15 THEN - - 3 END * - + 85 col2
----
17
NULL

query II rowsort
SELECT + 86 AS col2, 45
----
86
45

query I rowsort
SELECT + 49 - - - 35 AS col2
----
14

query I rowsort
SELECT - - ( 95 ) * + 42 AS col0
----
3990

onlyif mysql # aggregate syntax: 
query II rowsort label-3218
SELECT - + 14 AS col1, - 71 * + 51 + 34 + MAX( ALL 31 )
----
-14
-3556

skipif mysql # not compatible
query II rowsort label-3218
SELECT - + 14 AS col1, - 71 * + 51 + 34 + MAX ( ALL 31 )
----
-14
-3556

query I rowsort
SELECT ALL 59 + - - 11 AS col2
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3220
SELECT DISTINCT 64 + COUNT( * ) * - COUNT( * )
----
63

skipif mysql # not compatible
query I rowsort label-3220
SELECT DISTINCT 64 + COUNT ( * ) * - COUNT ( * )
----
63

query I rowsort
SELECT ALL + + 43 + 74
----
117

query I rowsort
SELECT - + 50 - - 26 + + + ( - 97 ) AS col0
----
-121

query I rowsort
SELECT ALL - ( - 88 ) AS col0
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3224
SELECT DISTINCT - + CAST( + 44 AS SIGNED ) * - 15
----
660

skipif mysql # not compatible
query I rowsort label-3224
SELECT DISTINCT - + CAST ( + 44 AS INTEGER ) * - 15
----
660

query I rowsort
SELECT - - 75 * 89 * - 49
----
-327075

onlyif mysql # aggregate syntax: 
query I rowsort label-3226
SELECT ALL 65 / - SUM( DISTINCT - + 78 ) * - 69 + - 46 + 2 / + + CASE + 39 WHEN 74 * ( - COALESCE ( - 91, - 17 + - 85 ) ) / 54 + COUNT( * ) THEN - 57 * + 29 + 24 END + 43 * 95 * 67 * + COUNT( DISTINCT - 57 ) + + SUM( + 27 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3226
SELECT ALL 65 / - SUM ( DISTINCT - + 78 ) * - 69 + - 46 + 2 / + + CASE + 39 WHEN 74 * ( - COALESCE ( - 91, - 17 + - 85 ) ) / 54 + COUNT ( * ) THEN - 57 * + 29 + 24 END + 43 * 95 * 67 * + COUNT ( DISTINCT - 57 ) + + SUM ( + 27 )
----
NULL

query I rowsort
SELECT ALL + + 51 + + + 45
----
96

query I rowsort
SELECT - 79 + 58 * 60 * + 61 * - 98
----
-20803519

query II rowsort
SELECT - 1 AS col1, 55
----
-1
55

query I rowsort
SELECT - 92 + 81
----
-11

query I rowsort
SELECT + 62 - + 9
----
53

query I rowsort
SELECT + + 92 + + ( - 99 ) col0
----
-7

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

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

query II rowsort
SELECT DISTINCT 49 * + - NULLIF ( + 27, - + 94 ) AS col1, 90 AS col2
----
-1323
90

query I rowsort
SELECT DISTINCT + - 9 + + - COALESCE ( - 41, - + 26 * + 96 + + 25, 32 + + 88 ) AS col2
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3236
SELECT DISTINCT 26 - - 23 + + COUNT( * ) DIV - + COUNT( * )
----
48

skipif mysql # not compatible
query I rowsort label-3236
SELECT DISTINCT 26 - - 23 + + COUNT ( * ) / - + COUNT ( * )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3237
SELECT ALL 61 - - - COUNT( * ) + 87 AS col1
----
147

skipif mysql # not compatible
query I rowsort label-3237
SELECT ALL 61 - - - COUNT ( * ) + 87 AS col1
----
147

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3238
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - 79
----
NULL

skipif mysql # not compatible
query I rowsort label-3238
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 79
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3239
SELECT - 39 DIV 76 + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-3239
SELECT - 39 / 76 + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3240
SELECT - 96 * - - MAX( 77 ) AS col1
----
-7392

skipif mysql # not compatible
query I rowsort label-3240
SELECT - 96 * - - MAX ( 77 ) AS col1
----
-7392

query II rowsort
SELECT + ( + - 67 ), + 53 AS col0
----
-67
53

onlyif mysql # DIV for integer division: 
query I rowsort label-3242
SELECT ALL 70 DIV 21 - - 8
----
11

skipif mysql # not compatible
query I rowsort label-3242
SELECT ALL 70 / 21 - - 8
----
11

query I rowsort
SELECT + 66 * + - 32
----
-2112

query II rowsort
SELECT DISTINCT + ( - + 20 ) col1, + 12 col1
----
-20
12

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3245
SELECT CAST( 17 AS SIGNED ) AS col1, 38 AS col0
----
17
38

skipif mysql # not compatible
query II rowsort label-3245
SELECT CAST ( 17 AS INTEGER ) AS col1, 38 AS col0
----
17
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3246
SELECT + 35 * CAST( 71 AS SIGNED ) * - 54 + + 70
----
-134120

skipif mysql # not compatible
query I rowsort label-3246
SELECT + 35 * CAST ( 71 AS INTEGER ) * - 54 + + 70
----
-134120

query I rowsort
SELECT ALL 47 * - - 53
----
2491

query I rowsort
SELECT DISTINCT 59 * + 42 * - 64 AS col0
----
-158592

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3249
SELECT ALL 26 DIV - 87 * - CAST( + 8 AS SIGNED ) + - SUM( DISTINCT + - 65 ) * - + COUNT( * ) col1
----
-65

skipif mysql # not compatible
query I rowsort label-3249
SELECT ALL 26 / - 87 * - CAST ( + 8 AS INTEGER ) + - SUM ( DISTINCT + - 65 ) * - + COUNT ( * ) col1
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3250
SELECT + 38 * + - AVG ( DISTINCT - - 86 ) + 72 + 22 + - + MIN( + + 25 ) + + CASE 61 WHEN + 97 * + 8 THEN - - COALESCE ( - 84, ( - - 74 ) * - - 1, + COUNT( 74 ) * 65 + CAST( NULL AS DECIMAL ) + - 65 ) END * + 18 * 51 * NULLIF ( 58, + CAST( - 21 AS SIGNED ) * + 9 ) / + - NULLIF ( - 19, - 99 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3250
SELECT + 38 * + - AVG ( DISTINCT - - 86 ) + 72 + 22 + - + MIN ( + + 25 ) + + CASE 61 WHEN + 97 * + 8 THEN - - COALESCE ( - 84, ( - - 74 ) * - - 1, + COUNT ( 74 ) * 65 + CAST ( NULL AS REAL ) + - 65 ) END * + 18 * 51 * NULLIF ( 58, + CAST ( - 21 AS INTEGER ) * + 9 ) / + - NULLIF ( - 19, - 99 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3251
SELECT + NULLIF ( - COUNT( * ), + 13 + - - 0 )
----
-1

skipif mysql # not compatible
query I rowsort label-3251
SELECT + NULLIF ( - COUNT ( * ), + 13 + - - 0 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3252
SELECT ALL + COUNT( - 26 ) + - 88 AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-3252
SELECT ALL + COUNT ( - 26 ) + - 88 AS col2
----
-87

query I rowsort
SELECT DISTINCT ( - 41 ) + + ( - + 59 )
----
-100

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-3254
SELECT DISTINCT + NULLIF ( + 35, + 57 DIV + 69 DIV - 6 ) DIV ( + 29 ), 72 * 63 + + + 44 col0, + COUNT( * )
----
1
4580
1

skipif mysql # not compatible
query III rowsort label-3254
SELECT DISTINCT + NULLIF ( + 35, + 57 / + 69 / - 6 ) / ( + 29 ), 72 * 63 + + + 44 col0, + COUNT ( * )
----
1
4580
1

query I rowsort
SELECT DISTINCT + ( - + 48 ) + - - 39
----
-9

query II rowsort
SELECT ALL 93 + + 92, 59 * + 98 AS col1
----
185
5782

query II rowsort
SELECT 85 * - 93 col2, 16 * 82
----
-7905
1312

query I rowsort
SELECT ( - 63 ) + - 17 + + CASE - - 46 WHEN + + 90 THEN + + 23 END + + 49 * - 57 * + 78 + - 17
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-3259
SELECT 74 + + NULLIF ( + + 23, - - CAST( + 70 AS DECIMAL ) ) AS col1, COALESCE ( - 86, + ( 2 ) DIV CAST( NULL AS SIGNED ) + 26, - - 87 + + ( 78 ), + - 84 ) * - 28
----
97
2408

skipif mysql # not compatible
query II rowsort label-3259
SELECT 74 + + NULLIF ( + + 23, - - CAST ( + 70 AS REAL ) ) AS col1, COALESCE ( - 86, + ( 2 ) / CAST ( NULL AS INTEGER ) + 26, - - 87 + + ( 78 ), + - 84 ) * - 28
----
97
2408

query I rowsort
SELECT - COALESCE ( + 84, 22 ) AS col0
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3261
SELECT CAST( + + SUM( DISTINCT - 69 ) AS SIGNED )
----
-69

skipif mysql # not compatible
query I rowsort label-3261
SELECT CAST ( + + SUM ( DISTINCT - 69 ) AS INTEGER )
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-3262
SELECT ALL - COUNT( * ) * + - 67 col0
----
67

skipif mysql # not compatible
query I rowsort label-3262
SELECT ALL - COUNT ( * ) * + - 67 col0
----
67

query I rowsort
SELECT DISTINCT 78 - - - 43 + + + 48
----
83

query I rowsort
SELECT + 26 * 6
----
156

query I rowsort
SELECT 57 + 17
----
74

query I rowsort
SELECT 40 - + + 74 * 10
----
-700

query I rowsort
SELECT 76 * - 55
----
-4180

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

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

query I rowsort
SELECT 82 + - 31 + + 94 AS col2
----
145

onlyif mysql # DIV for integer division: 
query I rowsort label-3270
SELECT DISTINCT + 83 DIV + - 32 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-3270
SELECT DISTINCT + 83 / + - 32 AS col1
----
-2

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3272
SELECT 92 + + 3 + + COUNT( * ) * + + COUNT( + 97 ) - + 16 AS col0
----
80

skipif mysql # not compatible
query I rowsort label-3272
SELECT 92 + + 3 + + COUNT ( * ) * + + COUNT ( + 97 ) - + 16 AS col0
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-3273
SELECT 66 DIV - - 67
----
0

skipif mysql # not compatible
query I rowsort label-3273
SELECT 66 / - - 67
----
0

query I rowsort
SELECT 72 + 70
----
142

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

skipif mysql # not compatible
query I rowsort label-3275
SELECT DISTINCT + 83 / COUNT ( * )
----
83

query I rowsort
SELECT DISTINCT - 11 * + 20 * + 67
----
-14740

query I rowsort
SELECT ALL + 56 * 45
----
2520

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3279
SELECT 20 DIV + ( + CAST( 45 AS SIGNED ) ) + + - 98
----
-98

skipif mysql # not compatible
query I rowsort label-3279
SELECT 20 / + ( + CAST ( 45 AS INTEGER ) ) + + - 98
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-3280
SELECT DISTINCT - 84 * + COUNT( ALL - 47 )
----
-84

skipif mysql # not compatible
query I rowsort label-3280
SELECT DISTINCT - 84 * + COUNT ( ALL - 47 )
----
-84

query I rowsort
SELECT ( + 83 ) + + 32 AS col1
----
115

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3283
SELECT 93 * + + 2 + - AVG ( ALL + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3283
SELECT 93 * + + 2 + - AVG ( ALL + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

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

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

query I rowsort
SELECT ALL - 97 * 27
----
-2619

query I rowsort
SELECT CASE 71 WHEN 20 THEN 29 * 65 + 86 ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3287
SELECT ALL + 53 + - ( 28 ) * - - CAST( NULL AS SIGNED ) + 9 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3287
SELECT ALL + 53 + - ( 28 ) * - - CAST ( NULL AS INTEGER ) + 9 AS col0
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3290
SELECT SUM( DISTINCT - + 82 ) - - - 35
----
-117

skipif mysql # not compatible
query I rowsort label-3290
SELECT SUM ( DISTINCT - + 82 ) - - - 35
----
-117

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3292
SELECT 89 / + CASE - - MAX( DISTINCT 31 ) WHEN + - MAX( DISTINCT + 3 ) THEN - CASE - ( 26 ) WHEN - 54 + + COUNT( * ) + - ( + NULLIF ( COUNT( * ), AVG ( DISTINCT - - 48 ) ) ) THEN + 73 + - 8 WHEN + 53 THEN + 72 ELSE NULL END END * COUNT( * ) - 49
----
NULL

skipif mysql # not compatible
query I rowsort label-3292
SELECT 89 / + CASE - - MAX ( DISTINCT 31 ) WHEN + - MAX ( DISTINCT + 3 ) THEN - CASE - ( 26 ) WHEN - 54 + + COUNT ( * ) + - ( + NULLIF ( COUNT ( * ), AVG ( DISTINCT - - 48 ) ) ) THEN + 73 + - 8 WHEN + 53 THEN + 72 ELSE NULL END END * COUNT ( * ) - 49
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3293
SELECT DISTINCT NULLIF ( + + 16, - COALESCE ( - CASE - + 82 WHEN 91 THEN - + ( 28 ) WHEN + NULLIF ( 87, + 28 * + AVG ( ALL + 21 ) / COUNT( * ) + + + 4 * - 98 ) * - + 39 / - - 84 THEN + COUNT( * ) WHEN 52 THEN NULL END, + ( 27 ) * - 75 ) - 5 )
----
16

skipif mysql # not compatible
query I rowsort label-3293
SELECT DISTINCT NULLIF ( + + 16, - COALESCE ( - CASE - + 82 WHEN 91 THEN - + ( 28 ) WHEN + NULLIF ( 87, + 28 * + AVG ( ALL + 21 ) / COUNT ( * ) + + + 4 * - 98 ) * - + 39 / - - 84 THEN + COUNT ( * ) WHEN 52 THEN NULL END, + ( 27 ) * - 75 ) - 5 )
----
16

query I rowsort
SELECT ALL ( + 77 ) - - 10 + - 10
----
77

query I rowsort
SELECT - 97 - 11
----
-108

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3297
SELECT ( + + CASE - 8 WHEN + - 37 THEN NULL WHEN + 85 * CAST( - 42 AS SIGNED ) + 22 THEN COUNT( * ) * - + 79 END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3297
SELECT ( + + CASE - 8 WHEN + - 37 THEN NULL WHEN + 85 * CAST ( - 42 AS INTEGER ) + 22 THEN COUNT ( * ) * - + 79 END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3298
SELECT 69 - - + ( - - COUNT( * ) )
----
70

skipif mysql # not compatible
query I rowsort label-3298
SELECT 69 - - + ( - - COUNT ( * ) )
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-3299
SELECT ALL + + 71 DIV 50 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3299
SELECT ALL + + 71 / 50 AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3300
SELECT ALL + COUNT( * ) / - - 5 + + 8 + + - CAST( NULL AS SIGNED ) * AVG ( 54 ) / 35 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3300
SELECT ALL + COUNT ( * ) / - - 5 + + 8 + + - CAST ( NULL AS INTEGER ) * AVG ( 54 ) / 35 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3301
SELECT ALL 98 AS col2, + COALESCE ( - CAST( NULL AS SIGNED ), 22 + - COUNT( DISTINCT 17 ) + + - 32 * COALESCE ( - 60, - - 2 ) ) * - 96 * - 38 col2
----
98
7080768

skipif mysql # not compatible
query II rowsort label-3301
SELECT ALL 98 AS col2, + COALESCE ( - CAST ( NULL AS INTEGER ), 22 + - COUNT ( DISTINCT 17 ) + + - 32 * COALESCE ( - 60, - - 2 ) ) * - 96 * - 38 col2
----
98
7080768

query I rowsort
SELECT ( - 51 ) + 52
----
1

query I rowsort
SELECT 82 + + 72
----
154

query I rowsort
SELECT 85 - - 67 AS col2
----
152

query I rowsort
SELECT 95 - + 61 * + - 3 AS col2
----
278

onlyif mysql # aggregate syntax: 
query I rowsort label-3306
SELECT - COALESCE ( 83, - - COUNT( * ) ) AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-3306
SELECT - COALESCE ( 83, - - COUNT ( * ) ) AS col1
----
-83

query I rowsort
SELECT ALL 48 * - + 28 AS col2
----
-1344

query I rowsort
SELECT DISTINCT 7 + + - 10 AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3309
SELECT 85 + + COUNT( * ) + + 30
----
116

skipif mysql # not compatible
query I rowsort label-3309
SELECT 85 + + COUNT ( * ) + + 30
----
116

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3310
SELECT DISTINCT + NULLIF ( - 73, - 7 + + - CAST( - 31 AS SIGNED ) )
----
-73

skipif mysql # not compatible
query I rowsort label-3310
SELECT DISTINCT + NULLIF ( - 73, - 7 + + - CAST ( - 31 AS INTEGER ) )
----
-73

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3312
SELECT - CAST( - 2 AS SIGNED ) DIV - 1
----
-2

skipif mysql # not compatible
query I rowsort label-3312
SELECT - CAST ( - 2 AS INTEGER ) / - 1
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3313
SELECT - CAST( + 56 AS SIGNED ) * 33 AS col2
----
-1848

skipif mysql # not compatible
query I rowsort label-3313
SELECT - CAST ( + 56 AS INTEGER ) * 33 AS col2
----
-1848

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3314
SELECT DISTINCT + NULLIF ( + 75, - + 81 / CASE + ( 55 ) WHEN + 73 THEN NULL WHEN 76 THEN NULL ELSE - + 48 - + 13 + - CAST( NULL AS DECIMAL ) * 16 + 6 * + 35 + - - COUNT( * ) END - - - 9 )
----
75

skipif mysql # not compatible
query I rowsort label-3314
SELECT DISTINCT + NULLIF ( + 75, - + 81 / CASE + ( 55 ) WHEN + 73 THEN NULL WHEN 76 THEN NULL ELSE - + 48 - + 13 + - CAST ( NULL AS REAL ) * 16 + 6 * + 35 + - - COUNT ( * ) END - - - 9 )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3315
SELECT ALL + 73 * + + 45 * COUNT( * ) + - ( + ( - MIN( + 29 ) ) ) + - MIN( DISTINCT + 29 )
----
3285

skipif mysql # not compatible
query I rowsort label-3315
SELECT ALL + 73 * + + 45 * COUNT ( * ) + - ( + ( - MIN ( + 29 ) ) ) + - MIN ( DISTINCT + 29 )
----
3285

onlyif mysql # aggregate syntax: 
query II rowsort label-3316
SELECT DISTINCT + - 82 * - + 43 * 25 + - COALESCE ( + + 48, + 31 + CASE + 82 WHEN 25 THEN NULL WHEN + 21 + + 6 + - ( 91 ) THEN NULL WHEN - COALESCE ( - - 75, - - COUNT( * ) * + 85 * - COUNT( * ) + + + 17 + - + COUNT( * ) * 98 ) * + 6 / ( + - 48 ) / - + CASE + - 91 WHEN 20 * 9 + - 79 / - 23 - - 92 + + 41 THEN SUM( + 62 ) * + AVG ( - - 81 ) + 79 * + 89 END + 17 + + ( - + 60 ) * 52 + + + 70 THEN - - COUNT( * ) END ) AS col1, + 88 * - + 62
----
88102
-5456

skipif mysql # not compatible
query II rowsort label-3316
SELECT DISTINCT + - 82 * - + 43 * 25 + - COALESCE ( + + 48, + 31 + CASE + 82 WHEN 25 THEN NULL WHEN + 21 + + 6 + - ( 91 ) THEN NULL WHEN - COALESCE ( - - 75, - - COUNT ( * ) * + 85 * - COUNT ( * ) + + + 17 + - + COUNT ( * ) * 98 ) * + 6 / ( + - 48 ) / - + CASE + - 91 WHEN 20 * 9 + - 79 / - 23 - - 92 + + 41 THEN SUM ( + 62 ) * + AVG ( - - 81 ) + 79 * + 89 END + 17 + + ( - + 60 ) * 52 + + + 70 THEN - - COUNT ( * ) END ) AS col1, + 88 * - + 62
----
88102
-5456

query II rowsort
SELECT ALL - 42 * + + 38 + - + 82 + + 42, + 43 col1
----
-1636
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3318
SELECT + - 85 * + SUM( + ( 98 ) ) * + 93 + + ( MIN( DISTINCT - 92 ) ) * - + CAST( + 37 AS SIGNED ) * - + 50 + + - 82 + - MAX( + 27 )
----
-944999

skipif mysql # not compatible
query I rowsort label-3318
SELECT + - 85 * + SUM ( + ( 98 ) ) * + 93 + + ( MIN ( DISTINCT - 92 ) ) * - + CAST ( + 37 AS INTEGER ) * - + 50 + + - 82 + - MAX ( + 27 )
----
-944999

query I rowsort
SELECT - 23 * + - 45 + + - 78 + - + 69 AS col0
----
888

query I rowsort
SELECT + 15 * 3 - - 35 AS col2
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3321
SELECT - - COUNT( * ) + + 9 + 46 + COUNT( * ) - 70 * 33 DIV 99 * - + ( + - ( + MIN( - + 46 ) ) ) * - ( 99 ) AS col2
----
-104685

skipif mysql # not compatible
query I rowsort label-3321
SELECT - - COUNT ( * ) + + 9 + 46 + COUNT ( * ) - 70 * 33 / 99 * - + ( + - ( + MIN ( - + 46 ) ) ) * - ( 99 ) AS col2
----
-104685

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3323
SELECT - 58 + + COUNT( * ) AS col0, - 79 AS col2
----
-57
-79

skipif mysql # not compatible
query II rowsort label-3323
SELECT - 58 + + COUNT ( * ) AS col0, - 79 AS col2
----
-57
-79

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3325
SELECT ALL + - 39 * - + 56 - - SUM( DISTINCT - + 2 ), 8 AS col1
----
2182
8

skipif mysql # not compatible
query II rowsort label-3325
SELECT ALL + - 39 * - + 56 - - SUM ( DISTINCT - + 2 ), 8 AS col1
----
2182
8

onlyif mysql # aggregate syntax: 
query II rowsort label-3326
SELECT DISTINCT + - SUM( DISTINCT + - 43 ), + 95 - 56 AS col0
----
43
39

skipif mysql # not compatible
query II rowsort label-3326
SELECT DISTINCT + - SUM ( DISTINCT + - 43 ), + 95 - 56 AS col0
----
43
39

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3329
SELECT ALL + 80 DIV - - 1
----
80

skipif mysql # not compatible
query I rowsort label-3329
SELECT ALL + 80 / - - 1
----
80

query II rowsort
SELECT 51 AS col1, 89 col1
----
51
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3331
SELECT + CAST( + COUNT( * ) AS SIGNED ) + - 21 * - 98 AS col1
----
2059

skipif mysql # not compatible
query I rowsort label-3331
SELECT + CAST ( + COUNT ( * ) AS INTEGER ) + - 21 * - 98 AS col1
----
2059

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

skipif mysql # not compatible
query I rowsort label-3332
SELECT DISTINCT + 83 * - COUNT ( * ) AS col0
----
-83

query I rowsort
SELECT ALL - 28 * + ( + + ( + 87 ) )
----
-2436

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

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

query I rowsort
SELECT ALL 66 + - ( + 47 ) * ( - - 90 ) + 19 + + 6
----
-4139

query I rowsort
SELECT ALL 42 + - 49
----
-7

query I rowsort
SELECT - COALESCE ( + 11, - - 36 * - 96 ) col2
----
-11

query I rowsort
SELECT + 24 + + 84 - + 7 + - - 1 * - + ( + 45 ) AS col2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-3339
SELECT + 30 + - 9 + - + SUM( DISTINCT - ( - NULLIF ( 76, + - 40 ) ) ) * - 77
----
5873

skipif mysql # not compatible
query I rowsort label-3339
SELECT + 30 + - 9 + - + SUM ( DISTINCT - ( - NULLIF ( 76, + - 40 ) ) ) * - 77
----
5873

onlyif mysql # aggregate syntax: 
query I rowsort label-3340
SELECT - 6 + - NULLIF ( - - 59, 14 ) + 43 * 84 + - COUNT( * )
----
3546

skipif mysql # not compatible
query I rowsort label-3340
SELECT - 6 + - NULLIF ( - - 59, 14 ) + 43 * 84 + - COUNT ( * )
----
3546

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3341
SELECT 80, ( + 89 ) + 14 DIV - 54 - 70 + - 4 + + COUNT( * ) AS col0
----
80
16

skipif mysql # not compatible
query II rowsort label-3341
SELECT 80, ( + 89 ) + 14 / - 54 - 70 + - 4 + + COUNT ( * ) AS col0
----
80
16

query I rowsort
SELECT - 82 + - 7 AS col0
----
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3343
SELECT + 94 + + 77 * + - COUNT( * ) + 5 - + CAST( NULL AS SIGNED ) * - 85 + - - 45 + 24 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3343
SELECT + 94 + + 77 * + - COUNT ( * ) + 5 - + CAST ( NULL AS INTEGER ) * - 85 + - - 45 + 24 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3344
SELECT ALL SUM( ALL - 48 ) * - - 27 + 21 + - 95 * + 31
----
-4220

skipif mysql # not compatible
query I rowsort label-3344
SELECT ALL SUM ( ALL - 48 ) * - - 27 + 21 + - 95 * + 31
----
-4220

query II rowsort
SELECT DISTINCT + CASE - 24 WHEN + - AVG ( - 35 ) * 32 * 3 THEN NULL ELSE - NULLIF ( + 37, - 40 - + 1 ) END, - 69 AS col2
----
-37
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3346
SELECT DISTINCT MIN( 82 ) * - 64 * + 68 * + + 80 AS col0, - 0 * + 91 DIV - 20
----
-28549120
0

skipif mysql # not compatible
query II rowsort label-3346
SELECT DISTINCT MIN ( 82 ) * - 64 * + 68 * + + 80 AS col0, - 0 * + 91 / - 20
----
-28549120
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3347
SELECT - COUNT( * ) * - ( - 14 * - 49 )
----
686

skipif mysql # not compatible
query I rowsort label-3347
SELECT - COUNT ( * ) * - ( - 14 * - 49 )
----
686

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3348
SELECT DISTINCT + CASE - COUNT( * ) WHEN - 69 THEN CAST( - 38 AS SIGNED ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3348
SELECT DISTINCT + CASE - COUNT ( * ) WHEN - 69 THEN CAST ( - 38 AS INTEGER ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3349
SELECT - 16 + COUNT( * ) AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-3349
SELECT - 16 + COUNT ( * ) AS col0
----
-15

query I rowsort
SELECT - 75 * 49 AS col0
----
-3675

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

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

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

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

query I rowsort
SELECT - 39 * 29 AS col0
----
-1131

query I rowsort
SELECT ALL - 59 * - 54 AS col2
----
3186

query I rowsort
SELECT ALL + CASE 18 WHEN 69 THEN 33 WHEN 97 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3356
SELECT ALL - 68 * - ( MAX( ALL + 25 ) ) col0
----
1700

skipif mysql # not compatible
query I rowsort label-3356
SELECT ALL - 68 * - ( MAX ( ALL + 25 ) ) col0
----
1700

query I rowsort
SELECT - 21 - 4
----
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-3358
SELECT - 27 DIV - 1 AS col0
----
27

skipif mysql # not compatible
query I rowsort label-3358
SELECT - 27 / - 1 AS col0
----
27

query I rowsort
SELECT ALL - 59 * 71 col0
----
-4189

query I rowsort
SELECT COALESCE ( 8, - ( ( 16 ) ), - 93 )
----
8

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3362
SELECT COUNT( * ) * 59 + - 90 AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-3362
SELECT COUNT ( * ) * 59 + - 90 AS col2
----
-31

query I rowsort
SELECT DISTINCT 86 * - 87 + ( 14 ) col0
----
-7468

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3365
SELECT DISTINCT 23 * 66 + + COUNT( * ) DIV 33 AS col0
----
1518

skipif mysql # not compatible
query I rowsort label-3365
SELECT DISTINCT 23 * 66 + + COUNT ( * ) / 33 AS col0
----
1518

onlyif mysql # DIV for integer division: 
query I rowsort label-3366
SELECT 91 DIV 39
----
2

skipif mysql # not compatible
query I rowsort label-3366
SELECT 91 / 39
----
2

query I rowsort
SELECT ALL + 6 + 96 * + 45
----
4326

query I rowsort
SELECT DISTINCT - 52 * + 75 AS col2
----
-3900

query I rowsort
SELECT ALL + 97 + 20 col2
----
117

query I rowsort
SELECT 75 + 75 AS col2
----
150

query I rowsort
SELECT ALL 95 * 67
----
6365

query I rowsort
SELECT DISTINCT 12 + + 7 AS col1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3373
SELECT ALL CASE WHEN NOT + AVG ( - 59 ) > COUNT( ALL - 7 ) THEN 92 - 25 * 30 END + ( - 59 ) * + 29
----
-2369

skipif mysql # not compatible
query I rowsort label-3373
SELECT ALL CASE WHEN NOT + AVG ( - 59 ) > COUNT ( ALL - 7 ) THEN 92 - 25 * 30 END + ( - 59 ) * + 29
----
-2369

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3374
SELECT DISTINCT + 80 + ( CAST( 79 AS SIGNED ) ) * - 9 AS col1
----
-631

skipif mysql # not compatible
query I rowsort label-3374
SELECT DISTINCT + 80 + ( CAST ( 79 AS INTEGER ) ) * - 9 AS col1
----
-631

query I rowsort
SELECT 97 + 86
----
183

onlyif mysql # DIV for integer division: 
query I rowsort label-3376
SELECT DISTINCT - 99 DIV NULLIF ( 37, 85 * - 65 )
----
-2

skipif mysql # not compatible
query I rowsort label-3376
SELECT DISTINCT - 99 / NULLIF ( 37, 85 * - 65 )
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-3377
SELECT - - 69 DIV 23 + + 78
----
81

skipif mysql # not compatible
query I rowsort label-3377
SELECT - - 69 / 23 + + 78
----
81

query I rowsort
SELECT + 69 * 94 AS col1
----
6486

query I rowsort
SELECT 5 + + 46 col2
----
51

query I rowsort
SELECT ALL - NULLIF ( - 70, 49 * 71 + 34 * + 27 ) - 86
----
-16

query I rowsort
SELECT + 69 * - 28 + 42 AS col1
----
-1890

onlyif mysql # aggregate syntax: 
query I rowsort label-3382
SELECT MIN( DISTINCT 13 ) * - 15 - - 14
----
-181

skipif mysql # not compatible
query I rowsort label-3382
SELECT MIN ( DISTINCT 13 ) * - 15 - - 14
----
-181

onlyif mysql # aggregate syntax: 
query I rowsort label-3383
SELECT DISTINCT 75 * - COUNT( 54 ) col2
----
-75

skipif mysql # not compatible
query I rowsort label-3383
SELECT DISTINCT 75 * - COUNT ( 54 ) col2
----
-75

query I rowsort
SELECT DISTINCT 15 * 31 AS col2
----
465

onlyif mysql # aggregate syntax: 
query I rowsort label-3385
SELECT ALL - + MAX( ALL 18 ) AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-3385
SELECT ALL - + MAX ( ALL 18 ) AS col0
----
-18

query I rowsort
SELECT 74 + + 92
----
166

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3388
SELECT - 64 * COUNT( * ) + 54 * - 24
----
-1360

skipif mysql # not compatible
query I rowsort label-3388
SELECT - 64 * COUNT ( * ) + 54 * - 24
----
-1360

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

skipif mysql # not compatible
query I rowsort label-3389
SELECT - MIN ( ALL - 33 )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3390
SELECT 67 * + CASE - 55 WHEN - 22 / SUM( 26 ) THEN COALESCE ( + 68, + SUM( 37 ) + 36 ) ELSE 87 * + 95 END
----
553755

skipif mysql # not compatible
query I rowsort label-3390
SELECT 67 * + CASE - 55 WHEN - 22 / SUM ( 26 ) THEN COALESCE ( + 68, + SUM ( 37 ) + 36 ) ELSE 87 * + 95 END
----
553755

onlyif mysql # aggregate syntax: 
query I rowsort label-3391
SELECT 58 * - COUNT( * ) + ( + 40 )
----
-18

skipif mysql # not compatible
query I rowsort label-3391
SELECT 58 * - COUNT ( * ) + ( + 40 )
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-3392
SELECT + 43 + - 65 DIV + 28
----
41

skipif mysql # not compatible
query I rowsort label-3392
SELECT + 43 + - 65 / + 28
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-3393
SELECT + 80 * - 94 - 14 DIV 75 AS col1
----
-7520

skipif mysql # not compatible
query I rowsort label-3393
SELECT + 80 * - 94 - 14 / 75 AS col1
----
-7520

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3394
SELECT ALL - CAST( ( - 24 ) AS SIGNED ) AS col1
----
24

skipif mysql # not compatible
query I rowsort label-3394
SELECT ALL - CAST ( ( - 24 ) AS INTEGER ) AS col1
----
24

query I rowsort
SELECT 46 * - 59 AS col2
----
-2714

query I rowsort
SELECT ALL - - 35 col0
----
35

query I rowsort
SELECT ALL - + 59 + 96
----
37

query I rowsort
SELECT DISTINCT 90 + NULLIF ( + 17, - 73 ) col0
----
107

query I rowsort
SELECT DISTINCT + 92 + + NULLIF ( - 58, ( - 6 ) * - 82 ) + 74 AS col1
----
108

query I rowsort
SELECT ALL - 38 + CASE + 84 WHEN 47 THEN 62 * 48 + ( 80 ) WHEN - 54 / 35 THEN NULL ELSE + 58 END
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3401
SELECT DISTINCT + 20 * - MIN( DISTINCT 57 )
----
-1140

skipif mysql # not compatible
query I rowsort label-3401
SELECT DISTINCT + 20 * - MIN ( DISTINCT 57 )
----
-1140

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3402
SELECT ALL + COUNT( * ) + + 38 - COALESCE ( + 54, COUNT( * ), - COUNT( * ) - 22 ) * CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3402
SELECT ALL + COUNT ( * ) + + 38 - COALESCE ( + 54, COUNT ( * ), - COUNT ( * ) - 22 ) * CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT 75 * + - 31 col2
----
-2325

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3404
SELECT 85 * - 70 DIV COUNT( * ) AS col2
----
-5950

skipif mysql # not compatible
query I rowsort label-3404
SELECT 85 * - 70 / COUNT ( * ) AS col2
----
-5950

query I rowsort
SELECT 20 + - 29 * + 39 AS col0
----
-1111

onlyif mysql # aggregate syntax: 
query I rowsort label-3406
SELECT ALL SUM( DISTINCT - 19 ) AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-3406
SELECT ALL SUM ( DISTINCT - 19 ) AS col2
----
-19

query I rowsort
SELECT 7 + + 36 AS col0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-3408
SELECT DISTINCT + MIN( ALL + 36 ) - 25 * - 3
----
111

skipif mysql # not compatible
query I rowsort label-3408
SELECT DISTINCT + MIN ( ALL + 36 ) - 25 * - 3
----
111

query I rowsort
SELECT 16 + - 21
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3410
SELECT COUNT( * ) + 72 + 6 * + 18
----
181

skipif mysql # not compatible
query I rowsort label-3410
SELECT COUNT ( * ) + 72 + 6 * + 18
----
181

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3411
SELECT 0 * + + COALESCE ( + 37, + ( COUNT( * ) ) ) DIV + ( 9 + 22 * 3 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3411
SELECT 0 * + + COALESCE ( + 37, + ( COUNT ( * ) ) ) / + ( 9 + 22 * 3 ) AS col0
----
0

query I rowsort
SELECT 35 * 29
----
1015

query I rowsort
SELECT ALL - 3 * - - 25 col0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3414
SELECT DISTINCT SUM( ALL - - 95 )
----
95

skipif mysql # not compatible
query I rowsort label-3414
SELECT DISTINCT SUM ( ALL - - 95 )
----
95

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3416
SELECT + 67 + - - 9 + - COUNT( * )
----
75

skipif mysql # not compatible
query I rowsort label-3416
SELECT + 67 + - - 9 + - COUNT ( * )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3417
SELECT ALL - COUNT( * ) * COUNT( 26 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3417
SELECT ALL - COUNT ( * ) * COUNT ( 26 ) AS col0
----
-1

query I rowsort
SELECT 20 * - 1 AS col2
----
-20

query I rowsort
SELECT DISTINCT + 76 * - 75 + - ( 71 ) AS col2
----
-5771

query I rowsort
SELECT ALL - 17 * - 11 + + 96
----
283

onlyif mysql # aggregate syntax: 
query I rowsort label-3421
SELECT 43 * COUNT( * ) AS col1
----
43

skipif mysql # not compatible
query I rowsort label-3421
SELECT 43 * COUNT ( * ) AS col1
----
43

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3423
SELECT - 74 DIV + 65
----
-1

skipif mysql # not compatible
query I rowsort label-3423
SELECT - 74 / + 65
----
-1

query I rowsort
SELECT + ( 44 ) + 9 * 91
----
863

onlyif mysql # aggregate syntax: 
query I rowsort label-3425
SELECT 69 * + 57 * + COUNT( * )
----
3933

skipif mysql # not compatible
query I rowsort label-3425
SELECT 69 * + 57 * + COUNT ( * )
----
3933

query I rowsort
SELECT 7 * - 86 + + 69 col0
----
-533

onlyif mysql # aggregate syntax: 
query I rowsort label-3427
SELECT DISTINCT - CASE - 66 WHEN - 0 THEN NULL WHEN 37 THEN - 88 + + COUNT( * ) ELSE 17 END AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-3427
SELECT DISTINCT - CASE - 66 WHEN - 0 THEN NULL WHEN 37 THEN - 88 + + COUNT ( * ) ELSE 17 END AS col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-3428
SELECT ALL + 13 * - + 50 + MIN( DISTINCT + 65 ) AS col2
----
-585

skipif mysql # not compatible
query I rowsort label-3428
SELECT ALL + 13 * - + 50 + MIN ( DISTINCT + 65 ) AS col2
----
-585

onlyif mysql # aggregate syntax: 
query I rowsort label-3429
SELECT DISTINCT - 69 * - COUNT( * ) - 67 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-3429
SELECT DISTINCT - 69 * - COUNT ( * ) - 67 AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3430
SELECT ALL CASE + + 44 WHEN - 22 * 96 THEN - ( 22 ) WHEN - 77 THEN NULL END * - COUNT( DISTINCT + 41 ) + COALESCE ( - CASE WHEN NOT ( + 79 ) IS NULL THEN NULL ELSE + COUNT( * ) END, + MIN( ALL 90 ) * - 97 + + 77 * 61 ) / + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3430
SELECT ALL CASE + + 44 WHEN - 22 * 96 THEN - ( 22 ) WHEN - 77 THEN NULL END * - COUNT ( DISTINCT + 41 ) + COALESCE ( - CASE WHEN NOT ( + 79 ) IS NULL THEN NULL ELSE + COUNT ( * ) END, + MIN ( ALL 90 ) * - 97 + + 77 * 61 ) / + COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT 92 * - 5 + + ( + 75 ) * - 96
----
-7660

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

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

query I rowsort
SELECT ALL + 77 + - + 32
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3434
SELECT + CASE + + ( - 48 ) WHEN 59 * - 90 - 72 THEN SUM( 81 ) WHEN - 44 - 80 THEN COUNT( * ) * - 22 + 83 WHEN - COUNT( * ) THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3434
SELECT + CASE + + ( - 48 ) WHEN 59 * - 90 - 72 THEN SUM ( 81 ) WHEN - 44 - 80 THEN COUNT ( * ) * - 22 + 83 WHEN - COUNT ( * ) THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3435
SELECT ALL 26 + COUNT( * ) + 91
----
118

skipif mysql # not compatible
query I rowsort label-3435
SELECT ALL 26 + COUNT ( * ) + 91
----
118

query I rowsort
SELECT DISTINCT 84 * - + 70
----
-5880

onlyif mysql # aggregate syntax: 
query I rowsort label-3437
SELECT + COUNT( * ) - + 9 AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-3437
SELECT + COUNT ( * ) - + 9 AS col0
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3438
SELECT + CAST( + 88 AS SIGNED ) + - 35 col0
----
53

skipif mysql # not compatible
query I rowsort label-3438
SELECT + CAST ( + 88 AS INTEGER ) + - 35 col0
----
53

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3441
SELECT ALL 42 - + ( + 7 ) + + 11 DIV 56 col0
----
35

skipif mysql # not compatible
query I rowsort label-3441
SELECT ALL 42 - + ( + 7 ) + + 11 / 56 col0
----
35

query I rowsort
SELECT - NULLIF ( - ( 37 ), - AVG ( - 65 ) * + 59 )
----
37

query I rowsort
SELECT ALL + 80 * - 91
----
-7280

onlyif mysql # DIV for integer division: 
query I rowsort label-3444
SELECT - 30 - 64 - + 23 DIV 58
----
-94

skipif mysql # not compatible
query I rowsort label-3444
SELECT - 30 - 64 - + 23 / 58
----
-94

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

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

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

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

query I rowsort
SELECT - 6 - - 73
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3448
SELECT ALL 12 - + 82 - - 30 * - COUNT( * )
----
-100

skipif mysql # not compatible
query I rowsort label-3448
SELECT ALL 12 - + 82 - - 30 * - COUNT ( * )
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-3449
SELECT - COALESCE ( + + MIN( 28 ), - 32, 64 * MAX( ALL 65 ) )
----
-28

skipif mysql # not compatible
query I rowsort label-3449
SELECT - COALESCE ( + + MIN ( 28 ), - 32, 64 * MAX ( ALL 65 ) )
----
-28

query I rowsort
SELECT - 0 * ( - 6 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3451
SELECT ALL + 71 * + 57 DIV COUNT( * )
----
4047

skipif mysql # not compatible
query I rowsort label-3451
SELECT ALL + 71 * + 57 / COUNT ( * )
----
4047

onlyif mysql # aggregate syntax: 
query I rowsort label-3452
SELECT DISTINCT - COALESCE ( + 31, - NULLIF ( 23, + COUNT( * ) * + 77 ) * - 98 ) * - 0
----
0

skipif mysql # not compatible
query I rowsort label-3452
SELECT DISTINCT - COALESCE ( + 31, - NULLIF ( 23, + COUNT ( * ) * + 77 ) * - 98 ) * - 0
----
0

query I rowsort
SELECT - 76 * ( + + 60 ) AS col1
----
-4560

onlyif mysql # DIV for integer division: 
query II rowsort label-3454
SELECT - 35 AS col0, 62 * 91 - + 48 DIV 87 col1
----
-35
5642

skipif mysql # not compatible
query II rowsort label-3454
SELECT - 35 AS col0, 62 * 91 - + 48 / 87 col1
----
-35
5642

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

skipif mysql # not compatible
query I rowsort label-3455
SELECT ALL COALESCE ( CAST ( NULL AS INTEGER ), + 7 )
----
7

query II rowsort
SELECT ALL - 45, ( + + 93 ) AS col0
----
-45
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3457
SELECT - 9 * - CAST( NULL AS SIGNED ) / - - 4 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3457
SELECT - 9 * - CAST ( NULL AS INTEGER ) / - - 4 AS col2
----
NULL

query II rowsort
SELECT ALL + 22, 9 * - + 9 AS col1
----
22
-81

query I rowsort
SELECT ALL - COALESCE ( + 48, - 39 ) AS col0
----
-48

query I rowsort
SELECT - NULLIF ( + ( - + 4 ), NULLIF ( ( - 74 ), 51 + 55 * 7 ) + 22 ) AS col2
----
4

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

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

query I rowsort
SELECT - + 3 * 56 * - 70
----
11760

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

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

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

query II rowsort
SELECT - 0 AS col2, - 71 + + 1 * 57 AS col1
----
0
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-3466
SELECT ALL 5 DIV - 86 + - 63 + - 77 AS col2
----
-140

skipif mysql # not compatible
query I rowsort label-3466
SELECT ALL 5 / - 86 + - 63 + - 77 AS col2
----
-140

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3468
SELECT + 81 * 77 DIV + 41 AS col2
----
152

skipif mysql # not compatible
query I rowsort label-3468
SELECT + 81 * 77 / + 41 AS col2
----
152

onlyif mysql # aggregate syntax: 
query II rowsort label-3469
SELECT + 22 AS col2, - SUM( ALL + 38 ) * 2
----
22
-76

skipif mysql # not compatible
query II rowsort label-3469
SELECT + 22 AS col2, - SUM ( ALL + 38 ) * 2
----
22
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-3470
SELECT 67 * - COUNT( * ) + + - ( + COUNT( ALL - 10 ) )
----
-68

skipif mysql # not compatible
query I rowsort label-3470
SELECT 67 * - COUNT ( * ) + + - ( + COUNT ( ALL - 10 ) )
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3471
SELECT DISTINCT - - 27 * - 96 * CAST( NULL AS SIGNED ) * - COUNT( * ) + - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3471
SELECT DISTINCT - - 27 * - 96 * CAST ( NULL AS INTEGER ) * - COUNT ( * ) + - COUNT ( * ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3472
SELECT + - 37 DIV - 97 * - 9 * + 95 + 83 col1
----
83

skipif mysql # not compatible
query I rowsort label-3472
SELECT + - 37 / - 97 * - 9 * + 95 + 83 col1
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-3473
SELECT ALL + 70 * + 69 + 94 DIV - 76
----
4829

skipif mysql # not compatible
query I rowsort label-3473
SELECT ALL + 70 * + 69 + 94 / - 76
----
4829

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

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

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

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

query II rowsort
SELECT - 7, 64 col1
----
-7
64

query I rowsort
SELECT + + 23 * - COALESCE ( 33, + 86 * + 4 ) + 49 AS col1
----
-710

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3478
SELECT ALL 80 * + 11 + + 11 + - 79 + CASE WHEN NOT ( SUM( - CAST( NULL AS SIGNED ) ) + 56 ) > ( - 5 ) THEN NULL WHEN - 97 * + 27 - + 14 NOT BETWEEN + CAST( NULL AS SIGNED ) * 62 AND + 94 THEN NULL ELSE COUNT( * ) END AS col2
----
813

skipif mysql # not compatible
query I rowsort label-3478
SELECT ALL 80 * + 11 + + 11 + - 79 + CASE WHEN NOT ( SUM ( - CAST ( NULL AS INTEGER ) ) + 56 ) > ( - 5 ) THEN NULL WHEN - 97 * + 27 - + 14 NOT BETWEEN + CAST ( NULL AS INTEGER ) * 62 AND + 94 THEN NULL ELSE COUNT ( * ) END AS col2
----
813

onlyif mysql # aggregate syntax: 
query I rowsort label-3479
SELECT 84 * + COUNT( * ) + ( + - 28 ) * 59 AS col1
----
-1568

skipif mysql # not compatible
query I rowsort label-3479
SELECT 84 * + COUNT ( * ) + ( + - 28 ) * 59 AS col1
----
-1568

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3480
SELECT 75 * CASE + - 99 WHEN - CASE + 54 WHEN - 24 THEN NULL ELSE MAX( - ( 16 ) ) * COALESCE ( - 96, 35 ) END THEN NULL WHEN COALESCE ( - CASE 24 WHEN 23 * - 82 THEN + 41 END, 11 ) THEN + 35 ELSE + CAST( + 67 AS SIGNED ) END * COUNT( * ) - + 17 * - 71
----
6232

skipif mysql # not compatible
query I rowsort label-3480
SELECT 75 * CASE + - 99 WHEN - CASE + 54 WHEN - 24 THEN NULL ELSE MAX ( - ( 16 ) ) * COALESCE ( - 96, 35 ) END THEN NULL WHEN COALESCE ( - CASE 24 WHEN 23 * - 82 THEN + 41 END, 11 ) THEN + 35 ELSE + CAST ( + 67 AS INTEGER ) END * COUNT ( * ) - + 17 * - 71
----
6232

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3481
SELECT + CAST( - ( - ( + ( 42 ) ) ) AS SIGNED ) + + 10 AS col2
----
52

skipif mysql # not compatible
query I rowsort label-3481
SELECT + CAST ( - ( - ( + ( 42 ) ) ) AS INTEGER ) + + 10 AS col2
----
52

query I rowsort
SELECT - 17 * + COALESCE ( - - 37, 39 + 20 * 4 ) + + 29 * - 88 AS col0
----
-3181

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3483
SELECT ALL + NULLIF ( - - 86, - 15 / CAST( - 99 AS SIGNED ) ) AS col1
----
86

skipif mysql # not compatible
query I rowsort label-3483
SELECT ALL + NULLIF ( - - 86, - 15 / CAST ( - 99 AS INTEGER ) ) AS col1
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3484
SELECT DISTINCT 92 * + COUNT( * ) - + ( ( - 41 ) ) AS col2
----
133

skipif mysql # not compatible
query I rowsort label-3484
SELECT DISTINCT 92 * + COUNT ( * ) - + ( ( - 41 ) ) AS col2
----
133

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3485
SELECT 12 * + 28 * - 12 + - CAST( NULL AS SIGNED ) + + 88 * + 23
----
NULL

skipif mysql # not compatible
query I rowsort label-3485
SELECT 12 * + 28 * - 12 + - CAST ( NULL AS INTEGER ) + + 88 * + 23
----
NULL

query I rowsort
SELECT + 6 + 97 AS col0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-3487
SELECT ALL COUNT( * ) * + 78 * + NULLIF ( + 92, 76 )
----
7176

skipif mysql # not compatible
query I rowsort label-3487
SELECT ALL COUNT ( * ) * + 78 * + NULLIF ( + 92, 76 )
----
7176

onlyif mysql # aggregate syntax: 
query I rowsort label-3488
SELECT - NULLIF ( 99, - 24 * COUNT( * ) )
----
-99

skipif mysql # not compatible
query I rowsort label-3488
SELECT - NULLIF ( 99, - 24 * COUNT ( * ) )
----
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-3489
SELECT + 12 + 82 + 32 DIV + 38 * - 58 AS col0
----
94

skipif mysql # not compatible
query I rowsort label-3489
SELECT + 12 + 82 + 32 / + 38 * - 58 AS col0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3490
SELECT SUM( + ( 4 ) ) col0
----
4

skipif mysql # not compatible
query I rowsort label-3490
SELECT SUM ( + ( 4 ) ) col0
----
4

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3492
SELECT - COUNT( * ) * - CASE - - CAST( - + CASE + 99 WHEN AVG ( - 21 ) - + 75 THEN 64 END AS SIGNED ) WHEN - ( - 11 ) THEN - 30 * MIN( + 78 ) WHEN 43 * + 63 THEN + 74 + 46 END * ( - 79 ) + + 8 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3492
SELECT - COUNT ( * ) * - CASE - - CAST ( - + CASE + 99 WHEN AVG ( - 21 ) - + 75 THEN 64 END AS INTEGER ) WHEN - ( - 11 ) THEN - 30 * MIN ( + 78 ) WHEN 43 * + 63 THEN + 74 + 46 END * ( - 79 ) + + 8 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3493
SELECT - AVG ( ( ( - - 76 ) ) ) * + NULLIF ( - CASE + 8 WHEN - 22 THEN + 54 WHEN + ( 22 ) * 94 THEN NULL END + - CASE + COUNT( * ) WHEN NULLIF ( 59, CASE 1 WHEN CAST( + AVG ( DISTINCT + 44 ) AS SIGNED ) * + 76 THEN NULL ELSE ( - 29 ) / 36 END + - 37 ) THEN CASE 6 WHEN - COUNT( * ) THEN NULL ELSE 12 / + 1 END + - 35 WHEN - 23 * - NULLIF ( MIN( ALL 42 ), CAST( NULL AS SIGNED ) ) THEN NULL ELSE NULL END, 97 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3493
SELECT - AVG ( ( ( - - 76 ) ) ) * + NULLIF ( - CASE + 8 WHEN - 22 THEN + 54 WHEN + ( 22 ) * 94 THEN NULL END + - CASE + COUNT ( * ) WHEN NULLIF ( 59, CASE 1 WHEN CAST ( + AVG ( DISTINCT + 44 ) AS INTEGER ) * + 76 THEN NULL ELSE ( - 29 ) / 36 END + - 37 ) THEN CASE 6 WHEN - COUNT ( * ) THEN NULL ELSE 12 / + 1 END + - 35 WHEN - 23 * - NULLIF ( MIN ( ALL 42 ), CAST ( NULL AS INTEGER ) ) THEN NULL ELSE NULL END, 97 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3494
SELECT COUNT( * ) * - 9 * - - ( - 61 ) + 80 DIV 31 AS col1
----
551

skipif mysql # not compatible
query I rowsort label-3494
SELECT COUNT ( * ) * - 9 * - - ( - 61 ) + 80 / 31 AS col1
----
551

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3495
SELECT MAX( + 17 ), NULLIF ( - 42, 46 * + CAST( NULL AS SIGNED ) + - 53 * - 97 ) AS col0
----
17
-42

skipif mysql # not compatible
query II rowsort label-3495
SELECT MAX ( + 17 ), NULLIF ( - 42, 46 * + CAST ( NULL AS INTEGER ) + - 53 * - 97 ) AS col0
----
17
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-3496
SELECT ALL + MIN( DISTINCT - 83 ) + - + 47 AS col2
----
-130

skipif mysql # not compatible
query I rowsort label-3496
SELECT ALL + MIN ( DISTINCT - 83 ) + - + 47 AS col2
----
-130

query I rowsort
SELECT + - 81 + - 92 + - 82 AS col0
----
-255

onlyif mysql # aggregate syntax: 
query I rowsort label-3498
SELECT DISTINCT + SUM( ALL + COALESCE ( 95, + - 82, 82 + 78 ) )
----
95

skipif mysql # not compatible
query I rowsort label-3498
SELECT DISTINCT + SUM ( ALL + COALESCE ( 95, + - 82, 82 + 78 ) )
----
95

query I rowsort
SELECT DISTINCT + 70 * - 37 * + 60
----
-155400

query I rowsort
SELECT - - 32 + 56 + + 35 - - 79 * - 89
----
-6908

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

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

query I rowsort
SELECT DISTINCT + 35 * + 17
----
595

onlyif mysql # DIV for integer division: 
query I rowsort label-3503
SELECT + 96 DIV + 46
----
2

skipif mysql # not compatible
query I rowsort label-3503
SELECT + 96 / + 46
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-3504
SELECT ALL + 40 DIV 62 + + 48 DIV + 80
----
0

skipif mysql # not compatible
query I rowsort label-3504
SELECT ALL + 40 / 62 + + 48 / + 80
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3505
SELECT DISTINCT COUNT( * ) / + MAX( ALL - ( - CAST( NULL AS SIGNED ) ) ) + 19 * 69 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3505
SELECT DISTINCT COUNT ( * ) / + MAX ( ALL - ( - CAST ( NULL AS INTEGER ) ) ) + 19 * 69 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - - 71 AS col2
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3507
SELECT + 45 * CASE COUNT( + CAST( NULL AS SIGNED ) ) WHEN 13 - + 95 * 9 THEN NULL WHEN + NULLIF ( 84, COUNT( DISTINCT ( 85 ) ) ) THEN NULL ELSE CAST( + 57 AS SIGNED ) END + 58
----
2623

skipif mysql # not compatible
query I rowsort label-3507
SELECT + 45 * CASE COUNT ( + CAST ( NULL AS INTEGER ) ) WHEN 13 - + 95 * 9 THEN NULL WHEN + NULLIF ( 84, COUNT ( DISTINCT ( 85 ) ) ) THEN NULL ELSE CAST ( + 57 AS INTEGER ) END + 58
----
2623

onlyif mysql # aggregate syntax: 
query I rowsort label-3508
SELECT ALL + + 65 * + - 75 * COUNT( - 99 ) + - 37 * + 90
----
-8205

skipif mysql # not compatible
query I rowsort label-3508
SELECT ALL + + 65 * + - 75 * COUNT ( - 99 ) + - 37 * + 90
----
-8205

query I rowsort
SELECT ALL - + 86 - - + 53 AS col1
----
-33

query II rowsort
SELECT DISTINCT - 61 - 22 * + 83, 52 + + 93 AS col0
----
-1887
145

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3511
SELECT DISTINCT + 89 * CAST( NULL AS DECIMAL ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3511
SELECT DISTINCT + 89 * CAST ( NULL AS REAL ) col0
----
NULL

query I rowsort
SELECT DISTINCT - CASE + - 73 WHEN - + 62 * - 91 THEN - - 4 ELSE ( + 17 ) * + 51 END
----
-867

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

skipif mysql # not compatible
query I rowsort label-3513
SELECT COUNT ( * ) / - - 74 * + 29
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3514
SELECT DISTINCT - CASE - 32 WHEN + + ( + - 26 ) + - MAX( 9 ) THEN - 42 * 76 + - 0 ELSE 91 END AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-3514
SELECT DISTINCT - CASE - 32 WHEN + + ( + - 26 ) + - MAX ( 9 ) THEN - 42 * 76 + - 0 ELSE 91 END AS col1
----
-91

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

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

query I rowsort
SELECT 26 * - ( - 63 ) AS col1
----
1638

onlyif mysql # DIV for integer division: 
query I rowsort label-3517
SELECT 0 + 32 DIV + + 60 col0
----
0

skipif mysql # not compatible
query I rowsort label-3517
SELECT 0 + 32 / + + 60 col0
----
0

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

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

query I rowsort
SELECT 10 + 26
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-3520
SELECT ALL 82 DIV - 61 col2
----
-1

skipif mysql # not compatible
query I rowsort label-3520
SELECT ALL 82 / - 61 col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3521
SELECT 51 + + MAX( - + 87 ) DIV - - 38
----
49

skipif mysql # not compatible
query I rowsort label-3521
SELECT 51 + + MAX ( - + 87 ) / - - 38
----
49

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3523
SELECT NULLIF ( - COUNT( * ), + ( + - AVG ( + 16 ) ) * - 98 - 34 ) - 87 AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-3523
SELECT NULLIF ( - COUNT ( * ), + ( + - AVG ( + 16 ) ) * - 98 - 34 ) - 87 AS col2
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-3524
SELECT ALL MAX( + + 59 ) + + 87
----
146

skipif mysql # not compatible
query I rowsort label-3524
SELECT ALL MAX ( + + 59 ) + + 87
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-3525
SELECT + COALESCE ( + NULLIF ( + 81, - 92 - + 98 + + 47 ), - 97 * ( 26 ) + 53, - 85 + 28 ) * ( - COUNT( * ) )
----
-81

skipif mysql # not compatible
query I rowsort label-3525
SELECT + COALESCE ( + NULLIF ( + 81, - 92 - + 98 + + 47 ), - 97 * ( 26 ) + 53, - 85 + 28 ) * ( - COUNT ( * ) )
----
-81

query I rowsort
SELECT DISTINCT + 64 + - 4 AS col0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3527
SELECT ALL + NULLIF ( COUNT( * ), - 96 * - - 57 )
----
1

skipif mysql # not compatible
query I rowsort label-3527
SELECT ALL + NULLIF ( COUNT ( * ), - 96 * - - 57 )
----
1

query I rowsort
SELECT DISTINCT 15 + + 88 * + 50 + + + 45 + + 40 * - 73
----
1540

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3530
SELECT DISTINCT - SUM( DISTINCT - 35 ) - + SUM( 67 ) AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-3530
SELECT DISTINCT - SUM ( DISTINCT - 35 ) - + SUM ( 67 ) AS col1
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3531
SELECT ALL - - SUM( - - 86 ) * - 44 + + 11 + - - NULLIF ( 22, + 28 ) - COUNT( * ) * - NULLIF ( CAST( NULLIF ( 89, + 19 ) AS SIGNED ) + + 22, 68 + - COUNT( 59 ) * + COUNT( * ) ) * + 52 * 86
----
492641

skipif mysql # not compatible
query I rowsort label-3531
SELECT ALL - - SUM ( - - 86 ) * - 44 + + 11 + - - NULLIF ( 22, + 28 ) - COUNT ( * ) * - NULLIF ( CAST ( NULLIF ( 89, + 19 ) AS INTEGER ) + + 22, 68 + - COUNT ( 59 ) * + COUNT ( * ) ) * + 52 * 86
----
492641

onlyif mysql # aggregate syntax: 
query I rowsort label-3532
SELECT 77 + - + 23 * + COALESCE ( COUNT( * ), - MIN( ALL - 85 ) )
----
54

skipif mysql # not compatible
query I rowsort label-3532
SELECT 77 + - + 23 * + COALESCE ( COUNT ( * ), - MIN ( ALL - 85 ) )
----
54

query II rowsort
SELECT DISTINCT 80 AS col0, + 64 AS col0
----
80
64

onlyif mysql # DIV for integer division: 
query I rowsort label-3534
SELECT CASE 1 WHEN - - 70 * - 77 + - 49 + - 3 * 41 THEN - 3 * 35 WHEN 95 THEN 32 ELSE 32 END DIV 97 - + 84
----
-84

skipif mysql # not compatible
query I rowsort label-3534
SELECT CASE 1 WHEN - - 70 * - 77 + - 49 + - 3 * 41 THEN - 3 * 35 WHEN 95 THEN 32 ELSE 32 END / 97 - + 84
----
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3535
SELECT ALL - 88 * 26 * COUNT( * ) * - MIN( ALL 20 ) DIV COUNT( * ) + + MAX( COALESCE ( 55, - 63 - 47 DIV + 76 ) )
----
45815

skipif mysql # not compatible
query I rowsort label-3535
SELECT ALL - 88 * 26 * COUNT ( * ) * - MIN ( ALL 20 ) / COUNT ( * ) + + MAX ( COALESCE ( 55, - 63 - 47 / + 76 ) )
----
45815

query I rowsort
SELECT ALL + 29 * - + 98 AS col2
----
-2842

onlyif mysql # aggregate syntax: 
query I rowsort label-3537
SELECT SUM( + NULLIF ( + 82, ( 69 ) ) )
----
82

skipif mysql # not compatible
query I rowsort label-3537
SELECT SUM ( + NULLIF ( + 82, ( 69 ) ) )
----
82

query I rowsort
SELECT DISTINCT 26 * - 74 * + + 28
----
-53872

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3540
SELECT 11 * - COUNT( * ) + - 65 * - - 61
----
-3976

skipif mysql # not compatible
query I rowsort label-3540
SELECT 11 * - COUNT ( * ) + - 65 * - - 61
----
-3976

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3542
SELECT ALL - CAST( - - 19 AS SIGNED )
----
-19

skipif mysql # not compatible
query I rowsort label-3542
SELECT ALL - CAST ( - - 19 AS INTEGER )
----
-19

onlyif mysql # DIV for integer division: 
query II rowsort label-3543
SELECT 90 AS col0, - 24 * + 43 + - 14 DIV - + 44 + - 11 DIV - 66 col0
----
90
-1032

skipif mysql # not compatible
query II rowsort label-3543
SELECT 90 AS col0, - 24 * + 43 + - 14 / - + 44 + - 11 / - 66 col0
----
90
-1032

query II rowsort
SELECT 26 AS col2, 41 * - - 19 + + 92
----
26
871

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3545
SELECT 21 * + CASE - - 75 WHEN + 87 THEN - 55 + 90 - + MAX( DISTINCT 84 ) ELSE ( 74 ) * 85 END + CAST( - 32 AS SIGNED )
----
132058

skipif mysql # not compatible
query I rowsort label-3545
SELECT 21 * + CASE - - 75 WHEN + 87 THEN - 55 + 90 - + MAX ( DISTINCT 84 ) ELSE ( 74 ) * 85 END + CAST ( - 32 AS INTEGER )
----
132058

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3546
SELECT + COUNT( * ), 26 DIV - 1 AS col2
----
1
-26

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

query II rowsort
SELECT ALL - 71, - COALESCE ( + 60, - - 22 ) + 15 AS col2
----
-71
-45

query II rowsort
SELECT 7 AS col2, 1 AS col0
----
7
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3549
SELECT ALL - CASE - 65 WHEN COUNT( * ) + + 20 + MAX( + - 37 ) THEN - 92 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3549
SELECT ALL - CASE - 65 WHEN COUNT ( * ) + + 20 + MAX ( + - 37 ) THEN - 92 END
----
NULL

query II rowsort
SELECT + 65, - 89 AS col2
----
65
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3551
SELECT 19 * CASE - + SUM( ALL + 94 ) WHEN 11 THEN NULL WHEN + ( - 98 ) THEN 76 * - ( - 96 * 46 ) WHEN - CASE 59 WHEN CAST( NULL AS SIGNED ) THEN - 10 WHEN 11 * COALESCE ( 19, 53 * 23 ) + 1 THEN COUNT( * ) END THEN NULL ELSE 77 END AS col2
----
1463

skipif mysql # not compatible
query I rowsort label-3551
SELECT 19 * CASE - + SUM ( ALL + 94 ) WHEN 11 THEN NULL WHEN + ( - 98 ) THEN 76 * - ( - 96 * 46 ) WHEN - CASE 59 WHEN CAST ( NULL AS INTEGER ) THEN - 10 WHEN 11 * COALESCE ( 19, 53 * 23 ) + 1 THEN COUNT ( * ) END THEN NULL ELSE 77 END AS col2
----
1463

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3552
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + - 28 / COUNT( * ) / + 53
----
NULL

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

query I rowsort
SELECT ALL - CASE - - 26 WHEN - 50 * - + 1 - - 64 THEN + 98 / - 13 END AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-3554
SELECT DISTINCT - 58 + - + COUNT ( * )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-3555
SELECT DISTINCT - ( ( + CASE + - COUNT( DISTINCT - 4 ) WHEN + - COUNT( * ) THEN 54 ELSE 2 END ) ) col0
----
-54

skipif mysql # not compatible
query I rowsort label-3555
SELECT DISTINCT - ( ( + CASE + - COUNT ( DISTINCT - 4 ) WHEN + - COUNT ( * ) THEN 54 ELSE 2 END ) ) col0
----
-54

query I rowsort
SELECT DISTINCT 88 + + 99
----
187

query II rowsort
SELECT - 34 col2, 70 AS col2
----
-34
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3558
SELECT - NULLIF ( + - CASE + - MAX( DISTINCT 86 ) WHEN - - MIN( ALL 64 ) + + COUNT( * ) THEN 92 WHEN + 55 THEN NULL ELSE 19 END, - 86 ) * - 42 AS col2
----
-798

skipif mysql # not compatible
query I rowsort label-3558
SELECT - NULLIF ( + - CASE + - MAX ( DISTINCT 86 ) WHEN - - MIN ( ALL 64 ) + + COUNT ( * ) THEN 92 WHEN + 55 THEN NULL ELSE 19 END, - 86 ) * - 42 AS col2
----
-798

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

query I rowsort
SELECT + 51 + + 73 + - 50 col0
----
74

query I rowsort
SELECT 40 - - 70 col0
----
110

query I rowsort
SELECT - - COALESCE ( - - 65, + 10 * - + 61 )
----
65

onlyif mysql # aggregate syntax: 
query II rowsort label-3563
SELECT - ( SUM( DISTINCT + - 97 ) ) * + 66 AS col2, + 5 AS col1
----
6402
5

skipif mysql # not compatible
query II rowsort label-3563
SELECT - ( SUM ( DISTINCT + - 97 ) ) * + 66 AS col2, + 5 AS col1
----
6402
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3564
SELECT ALL 4 + - MIN( DISTINCT - 27 )
----
31

skipif mysql # not compatible
query I rowsort label-3564
SELECT ALL 4 + - MIN ( DISTINCT - 27 )
----
31

query I rowsort
SELECT + 78 * - 80 + - 66 AS col0
----
-6306

onlyif mysql # aggregate syntax: 
query I rowsort label-3566
SELECT ALL 17 + SUM( ALL + + 81 ) * - 7 AS col1
----
-550

skipif mysql # not compatible
query I rowsort label-3566
SELECT ALL 17 + SUM ( ALL + + 81 ) * - 7 AS col1
----
-550

onlyif mysql # aggregate syntax: 
query I rowsort label-3567
SELECT 20 + - COUNT( * ) * - 55
----
75

skipif mysql # not compatible
query I rowsort label-3567
SELECT 20 + - COUNT ( * ) * - 55
----
75

query I rowsort
SELECT + ( - - 6 ) + - 18 AS col1
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3569
SELECT - 8 AS col0, - COUNT( * ) + - + 52 DIV 60
----
-8
-1

skipif mysql # not compatible
query II rowsort label-3569
SELECT - 8 AS col0, - COUNT ( * ) + - + 52 / 60
----
-8
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3570
SELECT DISTINCT - COUNT( * ) * - 99 - - 4 - + + 22
----
81

skipif mysql # not compatible
query I rowsort label-3570
SELECT DISTINCT - COUNT ( * ) * - 99 - - 4 - + + 22
----
81

query II rowsort
SELECT - 58 * - 74, 78 * + 16 * - 92 AS col1
----
4292
-114816

query II rowsort
SELECT + 91 AS col0, 29 * + + 33
----
91
957

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3574
SELECT + - COUNT( ALL 76 ) + - 59 * - 1 AS col0
----
58

skipif mysql # not compatible
query I rowsort label-3574
SELECT + - COUNT ( ALL 76 ) + - 59 * - 1 AS col0
----
58

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3576
SELECT - - CASE - COUNT( * ) WHEN + COUNT( * ) + + 26 THEN - - CAST( - + 97 AS SIGNED ) ELSE 14 END AS col2
----
14

skipif mysql # not compatible
query I rowsort label-3576
SELECT - - CASE - COUNT ( * ) WHEN + COUNT ( * ) + + 26 THEN - - CAST ( - + 97 AS INTEGER ) ELSE 14 END AS col2
----
14

query I rowsort
SELECT + + 22 + - 72 + - 62 AS col1
----
-112

query I rowsort
SELECT + - NULLIF ( 79, + 16 ) + 41
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-3579
SELECT DISTINCT + ( - COALESCE ( - COUNT( * ), + 78, - 19 * 71 + - 41 + 81 ) ) - + 39 * + 35
----
-1364

skipif mysql # not compatible
query I rowsort label-3579
SELECT DISTINCT + ( - COALESCE ( - COUNT ( * ), + 78, - 19 * 71 + - 41 + 81 ) ) - + 39 * + 35
----
-1364

onlyif mysql # DIV for integer division: 
query I rowsort label-3580
SELECT DISTINCT 73 * 66 DIV + 58
----
83

skipif mysql # not compatible
query I rowsort label-3580
SELECT DISTINCT 73 * 66 / + 58
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-3581
SELECT DISTINCT 8 DIV + + 62
----
0

skipif mysql # not compatible
query I rowsort label-3581
SELECT DISTINCT 8 / + + 62
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3582
SELECT + 14 * 26, - 79 * - - COUNT( * ) AS col0
----
364
-79

skipif mysql # not compatible
query II rowsort label-3582
SELECT + 14 * 26, - 79 * - - COUNT ( * ) AS col0
----
364
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-3583
SELECT ALL - COUNT( * ) * + NULLIF ( - + 80, + 88 * + 46 * + 84 ) col2
----
80

skipif mysql # not compatible
query I rowsort label-3583
SELECT ALL - COUNT ( * ) * + NULLIF ( - + 80, + 88 * + 46 * + 84 ) col2
----
80

onlyif mysql # aggregate syntax: 
query III rowsort label-3584
SELECT + 25 * - COUNT( * ) col1, 60, - NULLIF ( - 38, + + 53 * + MIN( ALL 72 ) ) + - 23 AS col1
----
-25
60
15

skipif mysql # not compatible
query III rowsort label-3584
SELECT + 25 * - COUNT ( * ) col1, 60, - NULLIF ( - 38, + + 53 * + MIN ( ALL 72 ) ) + - 23 AS col1
----
-25
60
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3585
SELECT + 84 * - COUNT( * ) AS col1, 71 * + + 97 - + - 68 + - 9 + CAST( 55 AS SIGNED ) DIV 90
----
-84
6946

skipif mysql # not compatible
query II rowsort label-3585
SELECT + 84 * - COUNT ( * ) AS col1, 71 * + + 97 - + - 68 + - 9 + CAST ( 55 AS INTEGER ) / 90
----
-84
6946

query I rowsort
SELECT + 95 - - + 90 AS col2
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-3587
SELECT + NULLIF ( + ( - + 92 ), - - MAX( DISTINCT + 43 ) * + 97 ) AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-3587
SELECT + NULLIF ( + ( - + 92 ), - - MAX ( DISTINCT + 43 ) * + 97 ) AS col0
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3588
SELECT NULLIF ( + 26, + CAST( + 43 AS SIGNED ) ) AS col1
----
26

skipif mysql # not compatible
query I rowsort label-3588
SELECT NULLIF ( + 26, + CAST ( + 43 AS INTEGER ) ) AS col1
----
26

query I rowsort
SELECT + 89 * 42 col1
----
3738

onlyif mysql # aggregate syntax: 
query I rowsort label-3590
SELECT - MIN( DISTINCT + - 94 ) * + + 5 AS col1
----
470

skipif mysql # not compatible
query I rowsort label-3590
SELECT - MIN ( DISTINCT + - 94 ) * + + 5 AS col1
----
470

query I rowsort
SELECT ALL + 94 * 65 * + 90 + - + 84 AS col0
----
549816

query I rowsort
SELECT + 41 - - + NULLIF ( - NULLIF ( NULLIF ( + 93, - - 82 + - 69 ), - 40 ), - ( 23 ) * - 86 ) + 74
----
22

query I rowsort
SELECT DISTINCT - 84 * - + 61 + - 31 - - 61 + + - NULLIF ( - 79, - 77 ) * 71 * - 0
----
5154

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3594
SELECT DISTINCT + ( - COALESCE ( ( - - 12 ), + - 93 * 43 ) ) * + 32 * - 60 + COUNT( * ) DIV - 21
----
23040

skipif mysql # not compatible
query I rowsort label-3594
SELECT DISTINCT + ( - COALESCE ( ( - - 12 ), + - 93 * 43 ) ) * + 32 * - 60 + COUNT ( * ) / - 21
----
23040

query II rowsort
SELECT ALL + NULLIF ( - + 84, 42 ), - 52 AS col0
----
-84
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-3596
SELECT COALESCE ( + 54, - COUNT( * ) )
----
54

skipif mysql # not compatible
query I rowsort label-3596
SELECT COALESCE ( + 54, - COUNT ( * ) )
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3597
SELECT ALL - MIN( - 44 ) * - + 21 * - + MAX( + 18 ) + - 15 + 0 + NULLIF ( 69 + 67, + 47 + 26 / COUNT( * ) ) * + 48
----
23145

skipif mysql # not compatible
query I rowsort label-3597
SELECT ALL - MIN ( - 44 ) * - + 21 * - + MAX ( + 18 ) + - 15 + 0 + NULLIF ( 69 + 67, + 47 + 26 / COUNT ( * ) ) * + 48
----
23145

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3598
SELECT ALL + COALESCE ( COUNT( * ), - - 54 DIV - 11 )
----
1

skipif mysql # not compatible
query I rowsort label-3598
SELECT ALL + COALESCE ( COUNT ( * ), - - 54 / - 11 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3599
SELECT COALESCE ( - - COUNT( * ), - COALESCE ( + + 7, + 37 ) )
----
1

skipif mysql # not compatible
query I rowsort label-3599
SELECT COALESCE ( - - COUNT ( * ), - COALESCE ( + + 7, + 37 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3600
SELECT - + 69 - - SUM( ALL - 77 ) AS col2
----
-146

skipif mysql # not compatible
query I rowsort label-3600
SELECT - + 69 - - SUM ( ALL - 77 ) AS col2
----
-146

query I rowsort
SELECT DISTINCT + 93 * + + 3 - - 34 - - + 5 * + 15
----
388

onlyif mysql # DIV for integer division: 
query II rowsort label-3602
SELECT DISTINCT + 36 DIV 72 + - 78 col2, 47 * 10
----
-78
470

skipif mysql # not compatible
query II rowsort label-3602
SELECT DISTINCT + 36 / 72 + - 78 col2, 47 * 10
----
-78
470

onlyif mysql # aggregate syntax: 
query I rowsort label-3603
SELECT ALL - 50 * 52 - COUNT( - 66 ) * + 80 + - COUNT( ALL + 65 ) + 98 * + 5 - + COUNT( * ) * + 27
----
-2218

skipif mysql # not compatible
query I rowsort label-3603
SELECT ALL - 50 * 52 - COUNT ( - 66 ) * + 80 + - COUNT ( ALL + 65 ) + 98 * + 5 - + COUNT ( * ) * + 27
----
-2218

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3604
SELECT - 76 * 74 - + + COUNT( * ) + - COALESCE ( - + 21, + 37, + 48 ) DIV 50
----
-5625

skipif mysql # not compatible
query I rowsort label-3604
SELECT - 76 * 74 - + + COUNT ( * ) + - COALESCE ( - + 21, + 37, + 48 ) / 50
----
-5625

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3605
SELECT ALL COALESCE ( + ( + - NULLIF ( 75, 62 ) ), + + 92 * - CAST( NULL AS SIGNED ) + - 16, - 49 + 62, 86 )
----
-75

skipif mysql # not compatible
query I rowsort label-3605
SELECT ALL COALESCE ( + ( + - NULLIF ( 75, 62 ) ), + + 92 * - CAST ( NULL AS INTEGER ) + - 16, - 49 + 62, 86 )
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3606
SELECT DISTINCT + + COALESCE ( - 10, - + 10 * + + 91 + 88 ) - COUNT( * )
----
-11

skipif mysql # not compatible
query I rowsort label-3606
SELECT DISTINCT + + COALESCE ( - 10, - + 10 * + + 91 + 88 ) - COUNT ( * )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-3607
SELECT ALL + COUNT( + + ( 93 ) ) - + - 98 * + 9 * 14 + + - 77
----
12272

skipif mysql # not compatible
query I rowsort label-3607
SELECT ALL + COUNT ( + + ( 93 ) ) - + - 98 * + 9 * 14 + + - 77
----
12272

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3608
SELECT - + CAST( + 46 AS SIGNED ), + 32 AS col2
----
-46
32

skipif mysql # not compatible
query II rowsort label-3608
SELECT - + CAST ( + 46 AS INTEGER ), + 32 AS col2
----
-46
32

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3610
SELECT + COUNT( * ) * + 43 AS col1, - 22
----
43
-22

skipif mysql # not compatible
query II rowsort label-3610
SELECT + COUNT ( * ) * + 43 AS col1, - 22
----
43
-22

query I rowsort
SELECT DISTINCT + CASE + 53 WHEN + 74 THEN 62 WHEN + 90 THEN - 1 ELSE NULL END / - 83 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3612
SELECT - + 91 - + + 46 DIV + 27 AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-3612
SELECT - + 91 - + + 46 / + 27 AS col1
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-3613
SELECT DISTINCT + MIN( DISTINCT + + 98 ) * - 81
----
-7938

skipif mysql # not compatible
query I rowsort label-3613
SELECT DISTINCT + MIN ( DISTINCT + + 98 ) * - 81
----
-7938

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3614
SELECT - NULLIF ( ( + + 33 ), + ( 60 ) + - + COUNT( * ) * + + 41 + ( CASE COUNT( * ) WHEN CAST( + 14 AS SIGNED ) - COUNT( * ) THEN COUNT( * ) + 87 * 48 END + 62 ) * - 46 ) AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-3614
SELECT - NULLIF ( ( + + 33 ), + ( 60 ) + - + COUNT ( * ) * + + 41 + ( CASE COUNT ( * ) WHEN CAST ( + 14 AS INTEGER ) - COUNT ( * ) THEN COUNT ( * ) + 87 * 48 END + 62 ) * - 46 ) AS col1
----
-33

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

skipif mysql # not compatible
query I rowsort label-3615
SELECT ALL CAST ( + - 10 AS INTEGER ) AS col2
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3616
SELECT ALL COUNT( * ) * + 52
----
52

skipif mysql # not compatible
query I rowsort label-3616
SELECT ALL COUNT ( * ) * + 52
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3617
SELECT + 8 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3617
SELECT + 8 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT - 91 col1, 81 AS col0
----
-91
81

query I rowsort
SELECT - 96 + + 41 AS col0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-3620
SELECT + COUNT( * ) - 34
----
-33

skipif mysql # not compatible
query I rowsort label-3620
SELECT + COUNT ( * ) - 34
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-3621
SELECT ALL 96 AS col0, - CASE SUM( ALL - + 11 ) WHEN + 89 * 80 * - - 81 THEN 22 WHEN 76 THEN NULL WHEN 68 THEN + 62 * + ( + 80 ) WHEN 55 THEN NULL END + - 75 * + ( - COUNT( * ) + - 54 * 91 )
----
96
NULL

skipif mysql # not compatible
query II rowsort label-3621
SELECT ALL 96 AS col0, - CASE SUM ( ALL - + 11 ) WHEN + 89 * 80 * - - 81 THEN 22 WHEN 76 THEN NULL WHEN 68 THEN + 62 * + ( + 80 ) WHEN 55 THEN NULL END + - 75 * + ( - COUNT ( * ) + - 54 * 91 )
----
96
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3622
SELECT - 72 + + + 28 - + + CASE 40 WHEN - - 50 + - 7 THEN NULL WHEN - 90 THEN 59 WHEN + COUNT( * ) * 98 + - 55 THEN NULL END / - 65 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3622
SELECT - 72 + + + 28 - + + CASE 40 WHEN - - 50 + - 7 THEN NULL WHEN - 90 THEN 59 WHEN + COUNT ( * ) * 98 + - 55 THEN NULL END / - 65 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3623
SELECT 58 * CASE CAST( NULL AS SIGNED ) WHEN + 64 * + - 28 + 32 * - CASE + MIN( ALL ( 82 ) ) WHEN - 75 + CAST( 74 + + 89 AS SIGNED ) / 45 THEN 47 * + 88 + 64 WHEN 53 THEN NULL END THEN 98 END + + 58 / + 35
----
NULL

skipif mysql # not compatible
query I rowsort label-3623
SELECT 58 * CASE CAST ( NULL AS INTEGER ) WHEN + 64 * + - 28 + 32 * - CASE + MIN ( ALL ( 82 ) ) WHEN - 75 + CAST ( 74 + + 89 AS INTEGER ) / 45 THEN 47 * + 88 + 64 WHEN 53 THEN NULL END THEN 98 END + + 58 / + 35
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3624
SELECT CAST( - + MIN( DISTINCT - - 66 ) AS SIGNED ) AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-3624
SELECT CAST ( - + MIN ( DISTINCT - - 66 ) AS INTEGER ) AS col0
----
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-3625
SELECT ALL + 61 AS col2, + 40 * 39 * - 87 * - MIN( ALL 53 )
----
61
7193160

skipif mysql # not compatible
query II rowsort label-3625
SELECT ALL + 61 AS col2, + 40 * 39 * - 87 * - MIN ( ALL 53 )
----
61
7193160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3626
SELECT - AVG ( ALL - 61 ) * + 61 / + 23 + - + CASE + 44 WHEN + 87 * + + 75 - + 60 + - COUNT( * ) THEN 36 END + COUNT( * ) + - ( CAST( 23 AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3626
SELECT - AVG ( ALL - 61 ) * + 61 / + 23 + - + CASE + 44 WHEN + 87 * + + 75 - + 60 + - COUNT ( * ) THEN 36 END + COUNT ( * ) + - ( CAST ( 23 AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3627
SELECT ALL 53 DIV - 1 * + COUNT( * )
----
-53

skipif mysql # not compatible
query I rowsort label-3627
SELECT ALL 53 / - 1 * + COUNT ( * )
----
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3628
SELECT ALL 49 DIV + - 74 + - - 55, SUM( - 99 ) AS col2
----
55
-99

skipif mysql # not compatible
query II rowsort label-3628
SELECT ALL 49 / + - 74 + - - 55, SUM ( - 99 ) AS col2
----
55
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-3629
SELECT 22 DIV + + 53 + 71
----
71

skipif mysql # not compatible
query I rowsort label-3629
SELECT 22 / + + 53 + 71
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3630
SELECT + CAST( NULL AS SIGNED ), - 41 AS col2
----
NULL
-41

skipif mysql # not compatible
query II rowsort label-3630
SELECT + CAST ( NULL AS INTEGER ), - 41 AS col2
----
NULL
-41

onlyif mysql # aggregate syntax: 
query II rowsort label-3631
SELECT + 6 * + 6 * 86 AS col2, + 17 * + - 64 * + COALESCE ( ( - - MAX( ALL 7 ) ), - MAX( DISTINCT 54 ) )
----
3096
-7616

skipif mysql # not compatible
query II rowsort label-3631
SELECT + 6 * + 6 * 86 AS col2, + 17 * + - 64 * + COALESCE ( ( - - MAX ( ALL 7 ) ), - MAX ( DISTINCT 54 ) )
----
3096
-7616

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3632
SELECT CAST( - 7 AS SIGNED ) AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-3632
SELECT CAST ( - 7 AS INTEGER ) AS col2
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3633
SELECT ALL CAST( NULL AS SIGNED ) / - 8 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3633
SELECT ALL CAST ( NULL AS INTEGER ) / - 8 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3634
SELECT ( COUNT( DISTINCT ( + - 61 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-3634
SELECT ( COUNT ( DISTINCT ( + - 61 ) ) )
----
1

query II rowsort
SELECT ALL + 5 AS col0, - ( - 91 )
----
5
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3636
SELECT + MIN( + 12 ) DIV COUNT( * ) - + SUM( 66 )
----
-54

skipif mysql # not compatible
query I rowsort label-3636
SELECT + MIN ( + 12 ) / COUNT ( * ) - + SUM ( 66 )
----
-54

query I rowsort
SELECT + - NULLIF ( - + 49, - ( + 41 ) )
----
49

query I rowsort
SELECT DISTINCT + + ( - - 59 ) AS col2
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3639
SELECT DISTINCT + - 81 AS col1, 4 * - 8 DIV 45 * SUM( + - ( 36 ) ) + - - 4
----
-81
4

skipif mysql # not compatible
query II rowsort label-3639
SELECT DISTINCT + - 81 AS col1, 4 * - 8 / 45 * SUM ( + - ( 36 ) ) + - - 4
----
-81
4

onlyif mysql # aggregate syntax: 
query II rowsort label-3640
SELECT DISTINCT - 44 col1, + COUNT( DISTINCT 59 )
----
-44
1

skipif mysql # not compatible
query II rowsort label-3640
SELECT DISTINCT - 44 col1, + COUNT ( DISTINCT 59 )
----
-44
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3641
SELECT ALL - + CASE 75 WHEN + - 65 THEN + 80 + + 86 WHEN - 56 + - 13 THEN NULL WHEN - 12 * + 10 THEN + ( COUNT( * ) ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3641
SELECT ALL - + CASE 75 WHEN + - 65 THEN + 80 + + 86 WHEN - 56 + - 13 THEN NULL WHEN - 12 * + 10 THEN + ( COUNT ( * ) ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3642
SELECT + 73 * - 15 * - SUM( + ( - 61 ) ) AS col2
----
-66795

skipif mysql # not compatible
query I rowsort label-3642
SELECT + 73 * - 15 * - SUM ( + ( - 61 ) ) AS col2
----
-66795

onlyif mysql # aggregate syntax: 
query I rowsort label-3643
SELECT + CASE + + COUNT( * ) WHEN - 21 * - ( + NULLIF ( + 38, + 37 + - + 59 * + 58 ) ) + + 35 THEN 79 * 48 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3643
SELECT + CASE + + COUNT ( * ) WHEN - 21 * - ( + NULLIF ( + 38, + 37 + - + 59 * + 58 ) ) + + 35 THEN 79 * 48 END
----
NULL

query II rowsort
SELECT + 3 col1, + 48 * - 39 AS col0
----
3
-1872

query I rowsort
SELECT 83 + 91 AS col0
----
174

onlyif mysql # aggregate syntax: 
query I rowsort label-3646
SELECT + - 2 * + MIN( - NULLIF ( + - 54, 48 ) ) * 10 * CASE - COUNT( * ) WHEN - 92 + 44 THEN - 5 WHEN - 88 THEN NULL END - 50 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3646
SELECT + - 2 * + MIN ( - NULLIF ( + - 54, 48 ) ) * 10 * CASE - COUNT ( * ) WHEN - 92 + 44 THEN - 5 WHEN - 88 THEN NULL END - 50 AS col2
----
NULL

query I rowsort
SELECT - 49 + + 89 + + - 18 * - + 90
----
1660

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3648
SELECT ALL + + 64 * + - CAST( - MAX( DISTINCT NULLIF ( - 26, + 14 ) ) AS SIGNED ) AS col2
----
-1664

skipif mysql # not compatible
query I rowsort label-3648
SELECT ALL + + 64 * + - CAST ( - MAX ( DISTINCT NULLIF ( - 26, + 14 ) ) AS INTEGER ) AS col2
----
-1664

onlyif mysql # aggregate syntax: 
query I rowsort label-3649
SELECT COUNT( * ) * - - 71 * 17 * - - 88 AS col0
----
106216

skipif mysql # not compatible
query I rowsort label-3649
SELECT COUNT ( * ) * - - 71 * 17 * - - 88 AS col0
----
106216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3650
SELECT 52 + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3650
SELECT 52 + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 9 * + 58 AS col1
----
522

query I rowsort
SELECT + 12 + - + 83 * - 44 AS col0
----
3664

onlyif mysql # aggregate syntax: 
query I rowsort label-3653
SELECT ALL - ( + CASE - - 20 WHEN COALESCE ( - - MAX( 98 ), - 38 * - + 77 * 38 + 58 * + 91 ) THEN NULL WHEN - 46 THEN 91 ELSE NULL END ) + 96
----
NULL

skipif mysql # not compatible
query I rowsort label-3653
SELECT ALL - ( + CASE - - 20 WHEN COALESCE ( - - MAX ( 98 ), - 38 * - + 77 * 38 + 58 * + 91 ) THEN NULL WHEN - 46 THEN 91 ELSE NULL END ) + 96
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3654
SELECT 10 DIV + 20, - 43 * - 89 + 90 - + 18 AS col0
----
0
3899

skipif mysql # not compatible
query II rowsort label-3654
SELECT 10 / + 20, - 43 * - 89 + 90 - + 18 AS col0
----
0
3899

query I rowsort
SELECT 19 * + 65 * 57
----
70395

query I rowsort
SELECT DISTINCT + ( - + 64 ) + - - 53 col1
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3657
SELECT ALL 12 + - CAST( - + 42 AS SIGNED ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-3657
SELECT ALL 12 + - CAST ( - + 42 AS INTEGER ) AS col1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3658
SELECT 45 * COALESCE ( - - 45, - CASE COUNT( * ) WHEN - MAX( + 92 ) * + 45 + 75 THEN 3 + + 82 WHEN SUM( 36 ) THEN NULL WHEN 53 THEN NULL END * 70 )
----
2025

skipif mysql # not compatible
query I rowsort label-3658
SELECT 45 * COALESCE ( - - 45, - CASE COUNT ( * ) WHEN - MAX ( + 92 ) * + 45 + 75 THEN 3 + + 82 WHEN SUM ( 36 ) THEN NULL WHEN 53 THEN NULL END * 70 )
----
2025

query I rowsort
SELECT 25 - + ( + 12 ) AS col2
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3660
SELECT ALL + CAST( NULL AS SIGNED ) * - 8 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3660
SELECT ALL + CAST ( NULL AS INTEGER ) * - 8 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3661
SELECT - CAST( NULL AS SIGNED ) * - + 65 / - + COUNT( - 32 ) - 84 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3661
SELECT - CAST ( NULL AS INTEGER ) * - + 65 / - + COUNT ( - 32 ) - 84 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3662
SELECT ALL 46 - - COUNT( * ) + + COALESCE ( + + 96, - COUNT( * ) + 46 ) + + - COUNT( * ) * + 18
----
125

skipif mysql # not compatible
query I rowsort label-3662
SELECT ALL 46 - - COUNT ( * ) + + COALESCE ( + + 96, - COUNT ( * ) + 46 ) + + - COUNT ( * ) * + 18
----
125

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3663
SELECT DISTINCT - - CAST( + + 4 AS SIGNED )
----
4

skipif mysql # not compatible
query I rowsort label-3663
SELECT DISTINCT - - CAST ( + + 4 AS INTEGER )
----
4

query I rowsort
SELECT DISTINCT + 20 - + + 59
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-3665
SELECT + + 77 * 0 * - COUNT( * ) - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-3665
SELECT + + 77 * 0 * - COUNT ( * ) - COUNT ( * )
----
-1

query I rowsort
SELECT 18 * + + 2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-3667
SELECT 67 + - COUNT( DISTINCT - 23 ) col0
----
66

skipif mysql # not compatible
query I rowsort label-3667
SELECT 67 + - COUNT ( DISTINCT - 23 ) col0
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-3668
SELECT - 94 DIV ( - ( ( 16 ) ) )
----
5

skipif mysql # not compatible
query I rowsort label-3668
SELECT - 94 / ( - ( ( 16 ) ) )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3669
SELECT 10 * - + 26 + + - COUNT( * )
----
-261

skipif mysql # not compatible
query I rowsort label-3669
SELECT 10 * - + 26 + + - COUNT ( * )
----
-261

query I rowsort
SELECT DISTINCT + ( + 72 ) * - 12 * 77 + - - 76
----
-66452

onlyif mysql # aggregate syntax: 
query I rowsort label-3671
SELECT + + NULLIF ( - 52, + COUNT( * ) ) AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-3671
SELECT + + NULLIF ( - 52, + COUNT ( * ) ) AS col2
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3672
SELECT ALL - CAST( 14 AS SIGNED )
----
-14

skipif mysql # not compatible
query I rowsort label-3672
SELECT ALL - CAST ( 14 AS INTEGER )
----
-14

query I rowsort
SELECT - 69 * NULLIF ( - 89, - 5 / - AVG ( - 47 ) ) * 85 - + + 15 AS col0
----
521970

onlyif mysql # aggregate syntax: 
query I rowsort label-3674
SELECT ALL + 80 + - - CASE COUNT( * ) WHEN - - 34 THEN - 83 WHEN - 94 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3674
SELECT ALL + 80 + - - CASE COUNT ( * ) WHEN - - 34 THEN - 83 WHEN - 94 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3675
SELECT DISTINCT - 21 + - COUNT( * ) AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-3675
SELECT DISTINCT - 21 + - COUNT ( * ) AS col0
----
-22

query I rowsort
SELECT ALL - COALESCE ( + - 6, 12 * 59 ) AS col1
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-3677
SELECT - 36 - + 56 - + 36 + - + 77 DIV - 94 + 98
----
-30

skipif mysql # not compatible
query I rowsort label-3677
SELECT - 36 - + 56 - + 36 + - + 77 / - 94 + 98
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-3678
SELECT ALL 79 + COUNT( - 44 ) AS col1
----
80

skipif mysql # not compatible
query I rowsort label-3678
SELECT ALL 79 + COUNT ( - 44 ) AS col1
----
80

query I rowsort
SELECT 46 - ( - 82 )
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-3680
SELECT ALL - ( 79 ) + - ( - COUNT( * ) ) - + ( + ( 10 ) ) AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-3680
SELECT ALL - ( 79 ) + - ( - COUNT ( * ) ) - + ( + ( 10 ) ) AS col0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-3681
SELECT ALL + COUNT( * ) * - + 51 AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-3681
SELECT ALL + COUNT ( * ) * - + 51 AS col0
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3682
SELECT ALL CASE - CAST( NULL AS SIGNED ) WHEN - 27 THEN NULL ELSE - 73 * - 14 + - + COUNT( * ) END + - 77 AS col0
----
944

skipif mysql # not compatible
query I rowsort label-3682
SELECT ALL CASE - CAST ( NULL AS INTEGER ) WHEN - 27 THEN NULL ELSE - 73 * - 14 + - + COUNT ( * ) END + - 77 AS col0
----
944

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3683
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - - 97 * + 65 * + + 15
----
NULL

skipif mysql # not compatible
query I rowsort label-3683
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - - 97 * + 65 * + + 15
----
NULL

query I rowsort
SELECT ALL - 58 + - - 99 col0
----
41

query I rowsort
SELECT 35 - 29
----
6

query I rowsort
SELECT 38 * 24
----
912

onlyif mysql # aggregate syntax: 
query I rowsort label-3687
SELECT 45 - 59 + + + COUNT( DISTINCT - - 92 ) + + 42 * 13 + + - COALESCE ( - 61, + + 13 ) - SUM( ALL - NULLIF ( - 56, 42 ) ) * 21
----
-582

skipif mysql # not compatible
query I rowsort label-3687
SELECT 45 - 59 + + + COUNT ( DISTINCT - - 92 ) + + 42 * 13 + + - COALESCE ( - 61, + + 13 ) - SUM ( ALL - NULLIF ( - 56, 42 ) ) * 21
----
-582

query I rowsort
SELECT 28 * + + 73 AS col2
----
2044

onlyif mysql # aggregate syntax: 
query I rowsort label-3689
SELECT 35 + + COUNT( * ) * + + 28 * - 90 AS col1
----
-2485

skipif mysql # not compatible
query I rowsort label-3689
SELECT 35 + + COUNT ( * ) * + + 28 * - 90 AS col1
----
-2485

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3690
SELECT 70 - - CASE 77 WHEN + - 52 THEN NULL WHEN - 72 THEN NULL ELSE + 8 * - CAST( + ( - CAST( NULL AS SIGNED ) ) AS SIGNED ) + + COUNT( * ) + COALESCE ( + 65 + - 67 * - 4, + 60 ) END + + COALESCE ( - CAST( NULL AS SIGNED ), - CASE + 90 WHEN NULLIF ( - 79, 2 / + 70 + + 7 * 30 ) + + COUNT( * ) * + 26 THEN 90 END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3690
SELECT 70 - - CASE 77 WHEN + - 52 THEN NULL WHEN - 72 THEN NULL ELSE + 8 * - CAST ( + ( - CAST ( NULL AS INTEGER ) ) AS INTEGER ) + + COUNT ( * ) + COALESCE ( + 65 + - 67 * - 4, + 60 ) END + + COALESCE ( - CAST ( NULL AS INTEGER ), - CASE + 90 WHEN NULLIF ( - 79, 2 / + 70 + + 7 * 30 ) + + COUNT ( * ) * + 26 THEN 90 END ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3691
SELECT 44 + + 76 + - - ( - 41 ) + + + ( + COUNT( * ) ) * + 47 AS col2
----
126

skipif mysql # not compatible
query I rowsort label-3691
SELECT 44 + + 76 + - - ( - 41 ) + + + ( + COUNT ( * ) ) * + 47 AS col2
----
126

onlyif mysql # DIV for integer division: 
query I rowsort label-3692
SELECT ALL - COALESCE ( - 13, - + 38 DIV 31 * + 38 * - - 90, + 13 )
----
13

skipif mysql # not compatible
query I rowsort label-3692
SELECT ALL - COALESCE ( - 13, - + 38 / 31 * + 38 * - - 90, + 13 )
----
13

query II rowsort
SELECT COALESCE ( + 91, 25, 64 + + 93 + - 19 - + - 99, - + 36 ) AS col0, - 71 + + 44 AS col2
----
91
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-3694
SELECT DISTINCT - COUNT( ALL + 23 )
----
-1

skipif mysql # not compatible
query I rowsort label-3694
SELECT DISTINCT - COUNT ( ALL + 23 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3695
SELECT ALL - 89, CAST( NULL AS SIGNED ) * - 49 * - COUNT( * ) + + 40 - - 30 * - - SUM( ALL + 68 ) AS col0
----
-89
NULL

skipif mysql # not compatible
query II rowsort label-3695
SELECT ALL - 89, CAST ( NULL AS INTEGER ) * - 49 * - COUNT ( * ) + + 40 - - 30 * - - SUM ( ALL + 68 ) AS col0
----
-89
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3696
SELECT - 52 DIV - 85
----
0

skipif mysql # not compatible
query I rowsort label-3696
SELECT - 52 / - 85
----
0

query I rowsort
SELECT DISTINCT - 51 * 20 col2
----
-1020

onlyif mysql # DIV for integer division: 
query I rowsort label-3698
SELECT DISTINCT - 78 DIV + 27 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-3698
SELECT DISTINCT - 78 / + 27 AS col2
----
-2

query I rowsort
SELECT ALL + NULLIF ( - 14, + 17 + - 74 )
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3700
SELECT - 42 + - CAST( NULL AS SIGNED ) + + 59
----
NULL

skipif mysql # not compatible
query I rowsort label-3700
SELECT - 42 + - CAST ( NULL AS INTEGER ) + + 59
----
NULL

query II rowsort
SELECT DISTINCT + + 21 AS col0, 28
----
21
28

onlyif mysql # aggregate syntax: 
query I rowsort label-3702
SELECT DISTINCT + - 22 * - ( - - 10 ) + + COUNT( ALL + 44 ) * 71
----
291

skipif mysql # not compatible
query I rowsort label-3702
SELECT DISTINCT + - 22 * - ( - - 10 ) + + COUNT ( ALL + 44 ) * 71
----
291

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3703
SELECT + + CAST( 85 AS SIGNED ) AS col2
----
85

skipif mysql # not compatible
query I rowsort label-3703
SELECT + + CAST ( 85 AS INTEGER ) AS col2
----
85

query II rowsort
SELECT DISTINCT + 53 AS col0, - 24 * + 74 + 50 - - - 8 * NULLIF ( 61, + 42 ) col2
----
53
-2214

query I rowsort
SELECT - - 69 * - 15 AS col2
----
-1035

query I rowsort
SELECT DISTINCT + COALESCE ( + COALESCE ( - ( + 44 ), - 85 * - COALESCE ( + + ( 80 ), + + 48 * + 55 ) + 25 ), 86 - - ( + 39 ) )
----
-44

query II rowsort
SELECT - 64 * + 60 * + 76 + - 40 + + - 22 AS col2, + 37 * + - 16 + + - 15 col2
----
-291902
-607

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3708
SELECT CASE - COUNT( * ) WHEN - COUNT( * ) THEN + 34 * SUM( - NULLIF ( + 95, - - 48 * - 48 + - + 93 * + ( - CAST( + 57 AS SIGNED ) ) ) ) ELSE NULL END col1
----
-3230

skipif mysql # not compatible
query I rowsort label-3708
SELECT CASE - COUNT ( * ) WHEN - COUNT ( * ) THEN + 34 * SUM ( - NULLIF ( + 95, - - 48 * - 48 + - + 93 * + ( - CAST ( + 57 AS INTEGER ) ) ) ) ELSE NULL END col1
----
-3230

onlyif mysql # aggregate syntax: 
query I rowsort label-3709
SELECT - - ( 55 ) * - 63 * + 24 + + 25 * + + MAX( DISTINCT + - 88 ) AS col2
----
-85360

skipif mysql # not compatible
query I rowsort label-3709
SELECT - - ( 55 ) * - 63 * + 24 + + 25 * + + MAX ( DISTINCT + - 88 ) AS col2
----
-85360

query I rowsort
SELECT + 17 + + + 58 * - - 89 * 70 AS col1
----
361357

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3711
SELECT DISTINCT CAST( NULL AS SIGNED ) * 10
----
NULL

skipif mysql # not compatible
query I rowsort label-3711
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 10
----
NULL

query II rowsort
SELECT DISTINCT + 72 + - + 59, 52 AS col2
----
13
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3713
SELECT + COUNT( * ) + - 81 * - COUNT( * )
----
82

skipif mysql # not compatible
query I rowsort label-3713
SELECT + COUNT ( * ) + - 81 * - COUNT ( * )
----
82

query I rowsort
SELECT DISTINCT ( + - 59 ) + + 65
----
6

query I rowsort
SELECT + 19 + - 61
----
-42

query I rowsort
SELECT + 7 * + + 51
----
357

query I rowsort
SELECT - CASE - - 24 WHEN + 34 + - 35 THEN 73 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3718
SELECT 69 AS col0, - ( - COUNT( * ) )
----
69
1

skipif mysql # not compatible
query II rowsort label-3718
SELECT 69 AS col0, - ( - COUNT ( * ) )
----
69
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3719
SELECT - COUNT( DISTINCT 20 ) + + 63 DIV + - 73 + + NULLIF ( + 86, - CAST( + 53 AS SIGNED ) + - - 65 ) + + 11 AS col2
----
96

skipif mysql # not compatible
query I rowsort label-3719
SELECT - COUNT ( DISTINCT 20 ) + + 63 / + - 73 + + NULLIF ( + 86, - CAST ( + 53 AS INTEGER ) + - - 65 ) + + 11 AS col2
----
96

query I rowsort
SELECT - NULLIF ( + 69, 53 )
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-3721
SELECT - 65 + 32 + - COUNT( * ) AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-3721
SELECT - 65 + 32 + - COUNT ( * ) AS col1
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-3722
SELECT + 76 * - + 54 * + ( + + CASE - - 87 WHEN - - 8 + - - 71 THEN COUNT( * ) WHEN - COUNT( * ) * - 13 THEN NULL ELSE 78 END )
----
-320112

skipif mysql # not compatible
query I rowsort label-3722
SELECT + 76 * - + 54 * + ( + + CASE - - 87 WHEN - - 8 + - - 71 THEN COUNT ( * ) WHEN - COUNT ( * ) * - 13 THEN NULL ELSE 78 END )
----
-320112

onlyif mysql # aggregate syntax: 
query II rowsort label-3723
SELECT 85 AS col0, - COUNT( * ) AS col1
----
85
-1

skipif mysql # not compatible
query II rowsort label-3723
SELECT 85 AS col0, - COUNT ( * ) AS col1
----
85
-1

query II rowsort
SELECT ALL 67 AS col0, 53
----
67
53

query II rowsort
SELECT + 11 * 20 AS col0, + 90 AS col0
----
220
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3726
SELECT ALL - 64 * COUNT( * ) AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-3726
SELECT ALL - 64 * COUNT ( * ) AS col1
----
-64

query II rowsort
SELECT ALL 76, - 78 col1
----
76
-78

query II rowsort
SELECT DISTINCT + 47 AS col2, 18 AS col0
----
47
18

query I rowsort
SELECT - 40 * - + 28 + 64 AS col1
----
1184

onlyif mysql # aggregate syntax: 
query I rowsort label-3730
SELECT ALL - 70 * 88 * - COUNT( * )
----
6160

skipif mysql # not compatible
query I rowsort label-3730
SELECT ALL - 70 * 88 * - COUNT ( * )
----
6160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3731
SELECT + CAST( NULL AS SIGNED ) * - COUNT( * ) - 49 - + 0 * COALESCE ( + 49, + 92 * CAST( NULL AS SIGNED ) * AVG ( - + 28 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3731
SELECT + CAST ( NULL AS INTEGER ) * - COUNT ( * ) - 49 - + 0 * COALESCE ( + 49, + 92 * CAST ( NULL AS INTEGER ) * AVG ( - + 28 ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-3732
SELECT ALL + - COUNT( * ) AS col1, + 81 AS col0, + + ( - CAST( NULL AS SIGNED ) ) + + + ( + - 33 ) + - 30 * - ( + - 67 ) * + - CAST( NULL AS SIGNED ) AS col1
----
-1
81
NULL

skipif mysql # not compatible
query III rowsort label-3732
SELECT ALL + - COUNT ( * ) AS col1, + 81 AS col0, + + ( - CAST ( NULL AS INTEGER ) ) + + + ( + - 33 ) + - 30 * - ( + - 67 ) * + - CAST ( NULL AS INTEGER ) AS col1
----
-1
81
NULL

query I rowsort
SELECT - + 15 * 93
----
-1395

onlyif mysql # aggregate syntax: 
query II rowsort label-3734
SELECT SUM( DISTINCT 39 ), 64 AS col2
----
39
64

skipif mysql # not compatible
query II rowsort label-3734
SELECT SUM ( DISTINCT 39 ), 64 AS col2
----
39
64

onlyif mysql # DIV for integer division: 
query I rowsort label-3735
SELECT DISTINCT + + 16 DIV - 20 * 5 + - 4 DIV 96 * - - 27 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3735
SELECT DISTINCT + + 16 / - 20 * 5 + - 4 / 96 * - - 27 AS col2
----
0

query I rowsort
SELECT ALL - + 50 * - - ( 57 ) + + + 59 - 38 + - 72 + + 0 + 7 - 74 * + 63 + 79 AS col2
----
-7477

onlyif mysql # aggregate syntax: 
query I rowsort label-3737
SELECT - ( COUNT( * ) ) - - 93 + + 82 + 89 * 48
----
4446

skipif mysql # not compatible
query I rowsort label-3737
SELECT - ( COUNT ( * ) ) - - 93 + + 82 + 89 * 48
----
4446

onlyif mysql # aggregate syntax: 
query I rowsort label-3738
SELECT ALL + 43 / - CASE SUM( + - 6 ) WHEN + 29 THEN 65 ELSE NULL END / - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3738
SELECT ALL + 43 / - CASE SUM ( + - 6 ) WHEN + 29 THEN 65 ELSE NULL END / - + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3739
SELECT 74 * - 48 - + COUNT( * )
----
-3553

skipif mysql # not compatible
query I rowsort label-3739
SELECT 74 * - 48 - + COUNT ( * )
----
-3553

onlyif mysql # aggregate syntax: 
query I rowsort label-3740
SELECT ALL - 10 * - 1 * - + NULLIF ( + 66, + - MAX( 48 ) ) + 31 + + - 14 AS col1
----
-643

skipif mysql # not compatible
query I rowsort label-3740
SELECT ALL - 10 * - 1 * - + NULLIF ( + 66, + - MAX ( 48 ) ) + 31 + + - 14 AS col1
----
-643

onlyif mysql # aggregate syntax: 
query I rowsort label-3741
SELECT ALL + ( + 27 ) * - 47 * - 33 * - + 45 + - SUM( + 47 ) + 75
----
-1884437

skipif mysql # not compatible
query I rowsort label-3741
SELECT ALL + ( + 27 ) * - 47 * - 33 * - + 45 + - SUM ( + 47 ) + 75
----
-1884437

onlyif mysql # aggregate syntax: 
query I rowsort label-3742
SELECT + COALESCE ( + + 63, COUNT( * ) )
----
63

skipif mysql # not compatible
query I rowsort label-3742
SELECT + COALESCE ( + + 63, COUNT ( * ) )
----
63

query I rowsort
SELECT COALESCE ( + + 44, - ( + 46 ) )
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3744
SELECT - + 14 + + 26 + + - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3744
SELECT - + 14 + + 26 + + - CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3745
SELECT SUM( ( - 36 ) )
----
-36

skipif mysql # not compatible
query I rowsort label-3745
SELECT SUM ( ( - 36 ) )
----
-36

query I rowsort
SELECT ALL - + 53 * + 47 AS col0
----
-2491

onlyif mysql # aggregate syntax: 
query I rowsort label-3747
SELECT ( MIN( + 51 ) ) col1
----
51

skipif mysql # not compatible
query I rowsort label-3747
SELECT ( MIN ( + 51 ) ) col1
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3748
SELECT + - 33 - + 82 * - CAST( MAX( ALL + 33 ) AS SIGNED ) * + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3748
SELECT + - 33 - + 82 * - CAST ( MAX ( ALL + 33 ) AS INTEGER ) * + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT COALESCE ( + - 25, - 91 + - 14 )
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3750
SELECT + 78 + CAST( + + 48 AS SIGNED ) col1
----
126

skipif mysql # not compatible
query I rowsort label-3750
SELECT + 78 + CAST ( + + 48 AS INTEGER ) col1
----
126

query I rowsort
SELECT - 89 * + + 52
----
-4628

query II rowsort
SELECT - 7 - - 18 AS col0, + 83 AS col2
----
11
83

query I rowsort
SELECT - ( + + NULLIF ( + + 50, - 73 / - + 50 ) )
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-3754
SELECT - 83 + 61 + - - 55 - + + 76 + + - 28 * - 72 + - CASE - + 67 WHEN - - 68 * NULLIF ( + 6, - 64 * 28 ) * + 94 THEN NULL WHEN - 16 + - 77 * - COUNT( * ) THEN 15 + 82 WHEN COUNT( * ) * ( 0 * 53 ) THEN - 28 + + 89 ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3754
SELECT - 83 + 61 + - - 55 - + + 76 + + - 28 * - 72 + - CASE - + 67 WHEN - - 68 * NULLIF ( + 6, - 64 * 28 ) * + 94 THEN NULL WHEN - 16 + - 77 * - COUNT ( * ) THEN 15 + 82 WHEN COUNT ( * ) * ( 0 * 53 ) THEN - 28 + + 89 ELSE NULL END col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3755
SELECT ALL 53 * - + MAX( ALL - NULLIF ( - 67, - 66 ) ), + 9 - 84 * COUNT( * ) AS col0
----
-3551
-75

skipif mysql # not compatible
query II rowsort label-3755
SELECT ALL 53 * - + MAX ( ALL - NULLIF ( - 67, - 66 ) ), + 9 - 84 * COUNT ( * ) AS col0
----
-3551
-75

query I rowsort
SELECT - 59 + - 23
----
-82

query I rowsort
SELECT DISTINCT 88 * + 73 AS col1
----
6424

query I rowsort
SELECT ALL 47 * - + 58 AS col1
----
-2726

query I rowsort
SELECT ALL 94 * - 15 AS col0
----
-1410

query I rowsort
SELECT 79 + - 58 AS col1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3761
SELECT ALL 87 + 77 - COUNT( * )
----
163

skipif mysql # not compatible
query I rowsort label-3761
SELECT ALL 87 + 77 - COUNT ( * )
----
163

query I rowsort
SELECT 98 * - 13 AS col2
----
-1274

query II rowsort
SELECT 72 + + 83 - - 46, - 13 col1
----
201
-13

onlyif mysql # DIV for integer division: 
query II rowsort label-3764
SELECT ALL 21 + 82 AS col2, + 80 DIV + 53 AS col1
----
103
1

skipif mysql # not compatible
query II rowsort label-3764
SELECT ALL 21 + 82 AS col2, + 80 / + 53 AS col1
----
103
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3765
SELECT - + 21 DIV + 46 - - 67 * - MAX( + 80 ) + - 25 AS col0
----
-5385

skipif mysql # not compatible
query I rowsort label-3765
SELECT - + 21 / + 46 - - 67 * - MAX ( + 80 ) + - 25 AS col0
----
-5385

onlyif mysql # aggregate syntax: 
query I rowsort label-3766
SELECT + 22 * + + COUNT( * ) * - 71 + - + 30 - - 42 - 41 * + COUNT( * ) AS col2
----
-1591

skipif mysql # not compatible
query I rowsort label-3766
SELECT + 22 * + + COUNT ( * ) * - 71 + - + 30 - - 42 - 41 * + COUNT ( * ) AS col2
----
-1591

onlyif mysql # aggregate syntax: 
query I rowsort label-3767
SELECT ALL COALESCE ( + 25, - COUNT( * ), + 18 ) + 80 + + - COUNT( * ) AS col2
----
104

skipif mysql # not compatible
query I rowsort label-3767
SELECT ALL COALESCE ( + 25, - COUNT ( * ), + 18 ) + 80 + + - COUNT ( * ) AS col2
----
104

onlyif mysql # DIV for integer division: 
query I rowsort label-3768
SELECT - 9 DIV + 94 + + + 96 * + 24
----
2304

skipif mysql # not compatible
query I rowsort label-3768
SELECT - 9 / + 94 + + + 96 * + 24
----
2304

query I rowsort
SELECT ALL - + 66 col1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-3770
SELECT DISTINCT 5 + + - 55 * - COUNT( * ) * - SUM( - 66 ) AS col0
----
3635

skipif mysql # not compatible
query I rowsort label-3770
SELECT DISTINCT 5 + + - 55 * - COUNT ( * ) * - SUM ( - 66 ) AS col0
----
3635

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3771
SELECT - 34 * + NULLIF ( - 86, + 73 * - CASE - + NULLIF ( + COUNT( * ), + 37 ) WHEN - 7 * 39 - - + 29 THEN + 37 * CAST( + COALESCE ( 56, - 56 - + 72, 92, + 10 * - 39 + 53 / 91 ) AS SIGNED ) WHEN - ( COUNT( * ) ) + 60 THEN - CAST( NULL AS SIGNED ) * 77 END ) * 20 + 70 * SUM( DISTINCT - 38 ) AS col2
----
55820

skipif mysql # not compatible
query I rowsort label-3771
SELECT - 34 * + NULLIF ( - 86, + 73 * - CASE - + NULLIF ( + COUNT ( * ), + 37 ) WHEN - 7 * 39 - - + 29 THEN + 37 * CAST ( + COALESCE ( 56, - 56 - + 72, 92, + 10 * - 39 + 53 / 91 ) AS INTEGER ) WHEN - ( COUNT ( * ) ) + 60 THEN - CAST ( NULL AS INTEGER ) * 77 END ) * 20 + 70 * SUM ( DISTINCT - 38 ) AS col2
----
55820

query I rowsort
SELECT ALL + 23 + + 43
----
66

onlyif mysql # aggregate syntax: 
query II rowsort label-3773
SELECT DISTINCT + 65 * + - COALESCE ( + - 16, + 74 ) - + - CASE - 29 WHEN 16 THEN 53 END / 15 * 95 col1, COUNT( * ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-3773
SELECT DISTINCT + 65 * + - COALESCE ( + - 16, + 74 ) - + - CASE - 29 WHEN 16 THEN 53 END / 15 * 95 col1, COUNT ( * ) AS col2
----
NULL
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3774
SELECT - 6 * - 28 AS col1, + MAX( DISTINCT COALESCE ( - 18, - 26 ) ) AS col0
----
168
-18

skipif mysql # not compatible
query II rowsort label-3774
SELECT - 6 * - 28 AS col1, + MAX ( DISTINCT COALESCE ( - 18, - 26 ) ) AS col0
----
168
-18

query I rowsort
SELECT 11 * - - 46 col1
----
506

onlyif mysql # aggregate syntax: 
query I rowsort label-3776
SELECT - - 84 * SUM( ALL + - 40 ) + + 98
----
-3262

skipif mysql # not compatible
query I rowsort label-3776
SELECT - - 84 * SUM ( ALL + - 40 ) + + 98
----
-3262

query II rowsort
SELECT 13 * - 90, - 95 col1
----
-1170
-95

query II rowsort
SELECT NULLIF ( + 83, 11 ) AS col2, 55 - - 16 AS col0
----
83
71

onlyif mysql # aggregate syntax: 
query I rowsort label-3779
SELECT MIN( ALL - 79 ) * + + 9 * + COUNT( * )
----
-711

skipif mysql # not compatible
query I rowsort label-3779
SELECT MIN ( ALL - 79 ) * + + 9 * + COUNT ( * )
----
-711

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3780
SELECT CAST( NULL AS SIGNED ) + + CAST( + 27 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3780
SELECT CAST ( NULL AS INTEGER ) + + CAST ( + 27 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3781
SELECT + 56 * + ( COUNT( * ) ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-3781
SELECT + 56 * + ( COUNT ( * ) ) AS col0
----
56

query II rowsort
SELECT 24 AS col0, + 43
----
24
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3783
SELECT CAST( NULL AS SIGNED ) * + 42
----
NULL

skipif mysql # not compatible
query I rowsort label-3783
SELECT CAST ( NULL AS INTEGER ) * + 42
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3784
SELECT 25 + COUNT( * )
----
26

skipif mysql # not compatible
query I rowsort label-3784
SELECT 25 + COUNT ( * )
----
26

query I rowsort
SELECT 28 * + 95
----
2660

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3786
SELECT 35 + - 24 * - CAST( COUNT( * ) AS SIGNED ) - - 14 + - + COALESCE ( - ( - 42 ), + COUNT( * ) ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-3786
SELECT 35 + - 24 * - CAST ( COUNT ( * ) AS INTEGER ) - - 14 + - + COALESCE ( - ( - 42 ), + COUNT ( * ) ) AS col2
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3787
SELECT ALL + 9 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3787
SELECT ALL + 9 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 54 * + 64
----
3456

query I rowsort
SELECT DISTINCT + ( - - 70 ) * 10 AS col1
----
700

query I rowsort
SELECT 70 + - - 33
----
103

query II rowsort
SELECT DISTINCT 13, - 34 AS col2
----
13
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-3792
SELECT DISTINCT - 19 + - + 12 + 28 * + + 66 - - + COUNT( * ) * COUNT( * )
----
1818

skipif mysql # not compatible
query I rowsort label-3792
SELECT DISTINCT - 19 + - + 12 + 28 * + + 66 - - + COUNT ( * ) * COUNT ( * )
----
1818

onlyif mysql # aggregate syntax: 
query II rowsort label-3793
SELECT 24, ( 37 ) - - - COUNT( * ) AS col2
----
24
36

skipif mysql # not compatible
query II rowsort label-3793
SELECT 24, ( 37 ) - - - COUNT ( * ) AS col2
----
24
36

query I rowsort
SELECT 69 * - 14 col2
----
-966

query I rowsort
SELECT ALL 40 + - 43 AS col2
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-3796
SELECT NULLIF ( - + 42, - 42 ) + 98 AS col0, - COUNT( * ) + + ( 51 ) AS col0
----
NULL
50

skipif mysql # not compatible
query II rowsort label-3796
SELECT NULLIF ( - + 42, - 42 ) + 98 AS col0, - COUNT ( * ) + + ( 51 ) AS col0
----
NULL
50

query I rowsort
SELECT ALL - 88 + - - 87 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3798
SELECT + COUNT( ALL + - 11 ) * + 48
----
48

skipif mysql # not compatible
query I rowsort label-3798
SELECT + COUNT ( ALL + - 11 ) * + 48
----
48

query I rowsort
SELECT DISTINCT 46 + - 72 AS col2
----
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-3800
SELECT + 96 AS col0, - COALESCE ( + 20, + 99 * 20 ) + + + COUNT( ALL 32 ) col1
----
96
-19

skipif mysql # not compatible
query II rowsort label-3800
SELECT + 96 AS col0, - COALESCE ( + 20, + 99 * 20 ) + + + COUNT ( ALL 32 ) col1
----
96
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-3801
SELECT + + 2, 56 - + + 8 * - COUNT( ALL + 47 ) AS col2
----
2
64

skipif mysql # not compatible
query II rowsort label-3801
SELECT + + 2, 56 - + + 8 * - COUNT ( ALL + 47 ) AS col2
----
2
64

onlyif mysql # aggregate syntax: 
query II rowsort label-3802
SELECT 90 - - + 72 * + COUNT( * ) AS col2, 62 * + + 53
----
162
3286

skipif mysql # not compatible
query II rowsort label-3802
SELECT 90 - - + 72 * + COUNT ( * ) AS col2, 62 * + + 53
----
162
3286

query I rowsort
SELECT - ( 99 ) * + 54 - 97 + - 12 * + 90
----
-6523

onlyif mysql # aggregate syntax: 
query II rowsort label-3804
SELECT 45 AS col2, + COUNT( DISTINCT - 23 )
----
45
1

skipif mysql # not compatible
query II rowsort label-3804
SELECT 45 AS col2, + COUNT ( DISTINCT - 23 )
----
45
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3805
SELECT - - 94 DIV - 47 + - 43 + 56
----
11

skipif mysql # not compatible
query I rowsort label-3805
SELECT - - 94 / - 47 + - 43 + 56
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-3806
SELECT ALL ( + COUNT( * ) ) * COUNT( * ) - + + 10
----
-9

skipif mysql # not compatible
query I rowsort label-3806
SELECT ALL ( + COUNT ( * ) ) * COUNT ( * ) - + + 10
----
-9

query I rowsort
SELECT + + NULLIF ( 71, - 77 + 30 - 79 ) AS col2
----
71

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3808
SELECT ALL - - CAST( NULL AS DECIMAL ) * ( + 94 ) * - 61 + - - CASE + 24 WHEN - 20 THEN NULL WHEN ( 80 ) THEN 82 END - + MIN( ALL 73 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3808
SELECT ALL - - CAST ( NULL AS REAL ) * ( + 94 ) * - 61 + - - CASE + 24 WHEN - 20 THEN NULL WHEN ( 80 ) THEN 82 END - + MIN ( ALL 73 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3809
SELECT DISTINCT 62 * - NULLIF ( - 36, - + 59 * - + ( + 22 ) * + 79 + - ( - COUNT( * ) ) ) * 95 col1
----
212040

skipif mysql # not compatible
query I rowsort label-3809
SELECT DISTINCT 62 * - NULLIF ( - 36, - + 59 * - + ( + 22 ) * + 79 + - ( - COUNT ( * ) ) ) * 95 col1
----
212040

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3810
SELECT ALL + + 85 * - COUNT( * ) DIV - COUNT( * ) + - 90 * + - COUNT( 57 ) - - COUNT( * )
----
176

skipif mysql # not compatible
query I rowsort label-3810
SELECT ALL + + 85 * - COUNT ( * ) / - COUNT ( * ) + - 90 * + - COUNT ( 57 ) - - COUNT ( * )
----
176

onlyif mysql # aggregate syntax: 
query II rowsort label-3811
SELECT DISTINCT - 7 AS col1, 15 * - 58 + + COUNT( * ) + - + 30
----
-7
-899

skipif mysql # not compatible
query II rowsort label-3811
SELECT DISTINCT - 7 AS col1, 15 * - 58 + + COUNT ( * ) + - + 30
----
-7
-899

onlyif mysql # aggregate syntax: 
query I rowsort label-3812
SELECT 56 * 33 * + 23 - AVG ( DISTINCT + 0 ) + - 15 + 35 - + - CASE - COUNT( - 57 ) WHEN MIN( DISTINCT + + 22 ) + + + 49 THEN + 14 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3812
SELECT 56 * 33 * + 23 - AVG ( DISTINCT + 0 ) + - 15 + 35 - + - CASE - COUNT ( - 57 ) WHEN MIN ( DISTINCT + + 22 ) + + + 49 THEN + 14 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3813
SELECT ALL 24 - - COALESCE ( - 35, + - SUM( - 39 ) ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-3813
SELECT ALL 24 - - COALESCE ( - 35, + - SUM ( - 39 ) ) AS col2
----
-11

query I rowsort
SELECT ( - - 9 ) / + 84 + + 16 + + - CASE - 60 WHEN + + 32 THEN + 21 END * - 86 * - 97 + - 91 * 25
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3815
SELECT ( + 88 ) * - 98 + - CAST( + + 13 AS SIGNED ) + - + 65 - + 65
----
-8767

skipif mysql # not compatible
query I rowsort label-3815
SELECT ( + 88 ) * - 98 + - CAST ( + + 13 AS INTEGER ) + - + 65 - + 65
----
-8767

onlyif mysql # aggregate syntax: 
query I rowsort label-3816
SELECT COUNT( * ) + 91
----
92

skipif mysql # not compatible
query I rowsort label-3816
SELECT COUNT ( * ) + 91
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3817
SELECT DISTINCT - NULLIF ( + 9, COUNT( * ) )
----
-9

skipif mysql # not compatible
query I rowsort label-3817
SELECT DISTINCT - NULLIF ( + 9, COUNT ( * ) )
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3818
SELECT ALL CAST( NULL AS SIGNED ) * - 80
----
NULL

skipif mysql # not compatible
query I rowsort label-3818
SELECT ALL CAST ( NULL AS INTEGER ) * - 80
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3819
SELECT DISTINCT - 23 DIV 84 DIV COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3819
SELECT DISTINCT - 23 / 84 / COUNT ( * ) AS col0
----
0

query I rowsort
SELECT DISTINCT 77 + - ( + 47 )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3821
SELECT DISTINCT MIN( 84 ) AS col0
----
84

skipif mysql # not compatible
query I rowsort label-3821
SELECT DISTINCT MIN ( 84 ) AS col0
----
84

query I rowsort
SELECT ALL - 5 + - 8 col1
----
-13

query II rowsort
SELECT - 6 * - 7, - 50 AS col1
----
42
-50

query I rowsort
SELECT ALL - 33 + - + 20
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3825
SELECT - CASE - 66 WHEN - - CAST( NULL AS SIGNED ) * - 41 THEN 90 + 65 WHEN + 14 / ( - + COUNT( ALL - - 9 ) ) * - CAST( NULL AS SIGNED ) THEN - 55 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3825
SELECT - CASE - 66 WHEN - - CAST ( NULL AS INTEGER ) * - 41 THEN 90 + 65 WHEN + 14 / ( - + COUNT ( ALL - - 9 ) ) * - CAST ( NULL AS INTEGER ) THEN - 55 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3826
SELECT + MAX( ALL 79 ) + - 2
----
77

skipif mysql # not compatible
query I rowsort label-3826
SELECT + MAX ( ALL 79 ) + - 2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3827
SELECT ALL - 6 + - + SUM( ALL + 75 ) * + 58 * + 33
----
-143556

skipif mysql # not compatible
query I rowsort label-3827
SELECT ALL - 6 + - + SUM ( ALL + 75 ) * + 58 * + 33
----
-143556

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3828
SELECT - 70 + ( - - 80 ) * + 74 - + + 20 + - + ( + MAX( + 5 ) ) / + 13 + - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3828
SELECT - 70 + ( - - 80 ) * + 74 - + + 20 + - + ( + MAX ( + 5 ) ) / + 13 + - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3829
SELECT ALL + COUNT( * ) + - 23 * - 3 AS col2
----
70

skipif mysql # not compatible
query I rowsort label-3829
SELECT ALL + COUNT ( * ) + - 23 * - 3 AS col2
----
70

query I rowsort
SELECT DISTINCT + 61 * - 75
----
-4575

query I rowsort
SELECT + ( - 10 ) col0
----
-10

query I rowsort
SELECT DISTINCT - - CASE + - 55 WHEN - AVG ( - 7 ) * + 6 * - 27 THEN - 76 + - 25 WHEN + 41 THEN - + 95 WHEN + 53 + - 22 * - 81 THEN + + 11 / 64 END + + CASE + 14 + 3 / - 93 WHEN 91 THEN NULL WHEN + 57 / 44 THEN 20 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3833
SELECT ALL SUM( + 44 ) AS col2
----
44

skipif mysql # not compatible
query I rowsort label-3833
SELECT ALL SUM ( + 44 ) AS col2
----
44

query I rowsort
SELECT - 9 + - + 48 AS col1
----
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3835
SELECT - COALESCE ( + + ( - - 47 ), 30, ( - + 46 ) * ( 76 ) * ( + 95 ) + - 35 - COUNT( * ) DIV ( - 92 ) DIV 45 ) + 10 AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-3835
SELECT - COALESCE ( + + ( - - 47 ), 30, ( - + 46 ) * ( 76 ) * ( + 95 ) + - 35 - COUNT ( * ) / ( - 92 ) / 45 ) + 10 AS col2
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3836
SELECT - + MAX( DISTINCT - CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) ) + 47 col0, ( - - 93 ) AS col2
----
NULL
93

skipif mysql # not compatible
query II rowsort label-3836
SELECT - + MAX ( DISTINCT - CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) ) + 47 col0, ( - - 93 ) AS col2
----
NULL
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3837
SELECT + + 70 * + 63 * 97 - - + CASE 39 WHEN - 76 THEN 64 / - 88 * - 13 * COUNT( * ) * ( + + 90 ) * 46 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3837
SELECT + + 70 * + 63 * 97 - - + CASE 39 WHEN - 76 THEN 64 / - 88 * - 13 * COUNT ( * ) * ( + + 90 ) * 46 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3838
SELECT - - 1 + - - ( COUNT( 38 ) ) AS col0, 5
----
2
5

skipif mysql # not compatible
query II rowsort label-3838
SELECT - - 1 + - - ( COUNT ( 38 ) ) AS col0, 5
----
2
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3839
SELECT + - 95 - - - COUNT( * ) + - 73 + - 56 + + 46 * - 78 * - 20 + - + 14 + + 68 AS col1, + CAST( - - 30 AS SIGNED )
----
71589
30

skipif mysql # not compatible
query II rowsort label-3839
SELECT + - 95 - - - COUNT ( * ) + - 73 + - 56 + + 46 * - 78 * - 20 + - + 14 + + 68 AS col1, + CAST ( - - 30 AS INTEGER )
----
71589
30

query I rowsort
SELECT - + ( - 45 )
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3841
SELECT - + COALESCE ( - + 39, - - CAST( + + CASE + 34 WHEN - 22 THEN NULL WHEN + 53 + 50 THEN 26 / + + 49 * 7 - - + CAST( NULL AS SIGNED ) - 6 WHEN + 27 THEN 31 ELSE NULL END AS SIGNED ) + + MAX( DISTINCT 18 ) * - COUNT( DISTINCT - 10 ) ) + NULLIF ( 83 - 18, 58 ) col0
----
104

skipif mysql # not compatible
query I rowsort label-3841
SELECT - + COALESCE ( - + 39, - - CAST ( + + CASE + 34 WHEN - 22 THEN NULL WHEN + 53 + 50 THEN 26 / + + 49 * 7 - - + CAST ( NULL AS INTEGER ) - 6 WHEN + 27 THEN 31 ELSE NULL END AS INTEGER ) + + MAX ( DISTINCT 18 ) * - COUNT ( DISTINCT - 10 ) ) + NULLIF ( 83 - 18, 58 ) col0
----
104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3842
SELECT ALL - 26 * - CAST( - - 73 AS SIGNED ) + - 57 - + + 46 * + COUNT( - 5 ) DIV - 78 * 13
----
1841

skipif mysql # not compatible
query I rowsort label-3842
SELECT ALL - 26 * - CAST ( - - 73 AS INTEGER ) + - 57 - + + 46 * + COUNT ( - 5 ) / - 78 * 13
----
1841

onlyif mysql # DIV for integer division: 
query I rowsort label-3843
SELECT ALL - 4 DIV - 38
----
0

skipif mysql # not compatible
query I rowsort label-3843
SELECT ALL - 4 / - 38
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3844
SELECT ALL - + ( + + 70 ) * NULLIF ( COUNT( * ), - 89 ) AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-3844
SELECT ALL - + ( + + 70 ) * NULLIF ( COUNT ( * ), - 89 ) AS col2
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-3845
SELECT + + 43 * + MIN( + - 7 ) AS col2
----
-301

skipif mysql # not compatible
query I rowsort label-3845
SELECT + + 43 * + MIN ( + - 7 ) AS col2
----
-301

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3846
SELECT + 38 + + CASE - 17 WHEN MAX( + 81 ) THEN - + 42 + - 65 + + 25 * 21 WHEN + 14 THEN - COALESCE ( + COUNT( * ), - 41 ) * - - 73 / CAST( NULL AS SIGNED ) + 93 / 32 END * - 7
----
NULL

skipif mysql # not compatible
query I rowsort label-3846
SELECT + 38 + + CASE - 17 WHEN MAX ( + 81 ) THEN - + 42 + - 65 + + 25 * 21 WHEN + 14 THEN - COALESCE ( + COUNT ( * ), - 41 ) * - - 73 / CAST ( NULL AS INTEGER ) + 93 / 32 END * - 7
----
NULL

query I rowsort
SELECT - 77 * + 11
----
-847

query II rowsort
SELECT + - 69 * + - 23, - NULLIF ( + - 75, + + 48 * 65 * + + 58 ) + 18 - + + 56 * + 34 + - 80 - + 92 AS col0
----
1587
-1983

onlyif mysql # aggregate syntax: 
query I rowsort label-3849
SELECT COUNT( * ) * - - COUNT( * ) * COUNT( * ) + - 99
----
-98

skipif mysql # not compatible
query I rowsort label-3849
SELECT COUNT ( * ) * - - COUNT ( * ) * COUNT ( * ) + - 99
----
-98

query I rowsort
SELECT + - 53 col0
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-3851
SELECT COUNT( * ) * + + COUNT( * ) * 19 * + 2 + + 17 AS col1
----
55

skipif mysql # not compatible
query I rowsort label-3851
SELECT COUNT ( * ) * + + COUNT ( * ) * 19 * + 2 + + 17 AS col1
----
55

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3852
SELECT - 96 DIV 84 + + CAST( ( + - 64 ) AS SIGNED ) AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-3852
SELECT - 96 / 84 + + CAST ( ( + - 64 ) AS INTEGER ) AS col2
----
-65

query I rowsort
SELECT + ( + 32 ) AS col2
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3854
SELECT ALL - 88 * + COALESCE ( + 83, + 61 * - COUNT( * ) ) * - 15 * 27 + - - 63
----
2958183

skipif mysql # not compatible
query I rowsort label-3854
SELECT ALL - 88 * + COALESCE ( + 83, + 61 * - COUNT ( * ) ) * - 15 * 27 + - - 63
----
2958183

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3855
SELECT ALL 33 * 14 + + - COALESCE ( - - ( - 73 ), + 26 + + - 65 + - 86 ) + - - 80 + - COUNT( * ) + - + 51 * + 57 * + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3855
SELECT ALL 33 * 14 + + - COALESCE ( - - ( - 73 ), + 26 + + - 65 + - 86 ) + - - 80 + - COUNT ( * ) + - + 51 * + 57 * + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + ( - 93 ) + + 82 + + 58 AS col2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3857
SELECT DISTINCT 58 * + - COUNT( * ) + + COUNT( * ) AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-3857
SELECT DISTINCT 58 * + - COUNT ( * ) + + COUNT ( * ) AS col0
----
-57

query I rowsort
SELECT + 65 * - 86
----
-5590

query I rowsort
SELECT ALL 71 * ( + - 94 )
----
-6674

onlyif mysql # aggregate syntax: 
query I rowsort label-3860
SELECT + 83 + + 66 + + 30 + - - 96 * CASE - COUNT( * ) WHEN 94 THEN 12 + + 15 WHEN + 15 + + 12 THEN NULL END - 9 * - 31 - + 17 + - 72
----
NULL

skipif mysql # not compatible
query I rowsort label-3860
SELECT + 83 + + 66 + + 30 + - - 96 * CASE - COUNT ( * ) WHEN 94 THEN 12 + + 15 WHEN + 15 + + 12 THEN NULL END - 9 * - 31 - + 17 + - 72
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3861
SELECT + 94 + - - COUNT( * ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-3861
SELECT + 94 + - - COUNT ( * ) AS col0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3862
SELECT + CASE + 79 WHEN + 91 THEN + - 48 * 50 WHEN - + COUNT( * ) THEN NULL ELSE + COUNT( * ) END AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3862
SELECT + CASE + 79 WHEN + 91 THEN + - 48 * 50 WHEN - + COUNT ( * ) THEN NULL ELSE + COUNT ( * ) END AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3863
SELECT ALL MAX( DISTINCT + 75 )
----
75

skipif mysql # not compatible
query I rowsort label-3863
SELECT ALL MAX ( DISTINCT + 75 )
----
75

query II rowsort
SELECT DISTINCT 45 * 25 + - 74 AS col0, + 76 AS col2
----
1051
76

query I rowsort
SELECT - ( - - 78 ) AS col2
----
-78

query I rowsort
SELECT ALL + 6 * 51 + - 21
----
285

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3867
SELECT ALL CASE - 81 WHEN - 20 THEN MAX( - 92 ) + + + CASE COUNT( * ) WHEN + + COALESCE ( - + 0, - + COALESCE ( - - CAST( NULL AS SIGNED ), 44 - - 31 * 28 ) * - COUNT( * ), 50 ) + - 32 THEN 62 + + CASE 10 WHEN NULLIF ( + 72, COUNT( * ) ) + ( 93 ) THEN 38 * 60 + 8 ELSE NULL END / - 83 END WHEN 29 THEN + 14 WHEN - 55 THEN - 32 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3867
SELECT ALL CASE - 81 WHEN - 20 THEN MAX ( - 92 ) + + + CASE COUNT ( * ) WHEN + + COALESCE ( - + 0, - + COALESCE ( - - CAST ( NULL AS INTEGER ), 44 - - 31 * 28 ) * - COUNT ( * ), 50 ) + - 32 THEN 62 + + CASE 10 WHEN NULLIF ( + 72, COUNT ( * ) ) + ( 93 ) THEN 38 * 60 + 8 ELSE NULL END / - 83 END WHEN 29 THEN + 14 WHEN - 55 THEN - 32 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3868
SELECT SUM( ALL - 99 ) col0
----
-99

skipif mysql # not compatible
query I rowsort label-3868
SELECT SUM ( ALL - 99 ) col0
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3869
SELECT + CAST( NULL AS SIGNED ) + - 15 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3869
SELECT + CAST ( NULL AS INTEGER ) + - 15 AS col2
----
NULL

query I rowsort
SELECT + 99 * - 39
----
-3861

onlyif mysql # aggregate syntax: 
query I rowsort label-3871
SELECT DISTINCT CASE + 40 WHEN - 92 + - + MAX( + 49 ) THEN NULL WHEN 31 THEN + 48 WHEN - + 91 - + - 0 THEN 93 / + - 94 + + 98 END / - 50 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3871
SELECT DISTINCT CASE + 40 WHEN - 92 + - + MAX ( + 49 ) THEN NULL WHEN 31 THEN + 48 WHEN - + 91 - + - 0 THEN 93 / + - 94 + + 98 END / - 50 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3872
SELECT + - 5 DIV - - 35
----
0

skipif mysql # not compatible
query I rowsort label-3872
SELECT + - 5 / - - 35
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3873
SELECT ALL + - COUNT( * ) * - - 52
----
-52

skipif mysql # not compatible
query I rowsort label-3873
SELECT ALL + - COUNT ( * ) * - - 52
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3874
SELECT - + CAST( - 12 AS SIGNED ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-3874
SELECT - + CAST ( - 12 AS INTEGER ) AS col2
----
12

query I rowsort
SELECT - 29 + 61
----
32

query I rowsort
SELECT ALL + - 6 - + 27 * - + 34 + 4 col0
----
916

query II rowsort
SELECT - - 50 AS col0, + 40 AS col1
----
50
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3878
SELECT DISTINCT + MIN( + 52 ) col1
----
52

skipif mysql # not compatible
query I rowsort label-3878
SELECT DISTINCT + MIN ( + 52 ) col1
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-3879
SELECT DISTINCT COUNT( * ) AS col2, 21 * + 98 col0
----
1
2058

skipif mysql # not compatible
query II rowsort label-3879
SELECT DISTINCT COUNT ( * ) AS col2, 21 * + 98 col0
----
1
2058

query I rowsort
SELECT - + 98 * 60
----
-5880

query I rowsort
SELECT ( - 12 ) * - 80 - - 8 AS col1
----
968

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3882
SELECT - CAST( - 89 AS SIGNED ) AS col1
----
89

skipif mysql # not compatible
query I rowsort label-3882
SELECT - CAST ( - 89 AS INTEGER ) AS col1
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3883
SELECT 98 / - - CASE CAST( - 48 AS SIGNED ) WHEN COALESCE ( + 39, - 87 ) + - + CAST( NULL AS SIGNED ) + - 31 * + - 24 THEN - 13 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3883
SELECT 98 / - - CASE CAST ( - 48 AS INTEGER ) WHEN COALESCE ( + 39, - 87 ) + - + CAST ( NULL AS INTEGER ) + - 31 * + - 24 THEN - 13 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3884
SELECT DISTINCT - CASE + ( - CAST( + COUNT( * ) AS SIGNED ) ) WHEN + + 56 + + + 70 + + 27 THEN 17 ELSE - SUM( DISTINCT ( + 67 ) ) END + 21 * - MIN( DISTINCT - - 41 ), + 89 AS col1
----
-794
89

skipif mysql # not compatible
query II rowsort label-3884
SELECT DISTINCT - CASE + ( - CAST ( + COUNT ( * ) AS INTEGER ) ) WHEN + + 56 + + + 70 + + 27 THEN 17 ELSE - SUM ( DISTINCT ( + 67 ) ) END + 21 * - MIN ( DISTINCT - - 41 ), + 89 AS col1
----
-794
89

query I rowsort
SELECT DISTINCT - 23 * - ( - + 9 ) AS col0
----
-207

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3886
SELECT ALL 25 + - 27 + + - ( - 6 ) * - CAST( 82 AS SIGNED ) AS col0
----
-494

skipif mysql # not compatible
query I rowsort label-3886
SELECT ALL 25 + - 27 + + - ( - 6 ) * - CAST ( 82 AS INTEGER ) AS col0
----
-494

query I rowsort
SELECT 70 * 5
----
350

query I rowsort
SELECT DISTINCT - 32 + - 83 AS col2
----
-115

query I rowsort
SELECT DISTINCT - 60 * + 40 AS col1
----
-2400

query I rowsort
SELECT ALL + 5 + - 32 col1
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-3891
SELECT 60 DIV + 81
----
0

skipif mysql # not compatible
query I rowsort label-3891
SELECT 60 / + 81
----
0

query II rowsort
SELECT 34, - 60 AS col0
----
34
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3893
SELECT + 5 AS col2, 6 / + - COUNT( * ) + - CASE - + ( 46 ) WHEN + + 65 - - 88 THEN - - 77 WHEN - CAST( 22 AS SIGNED ) + ( + 42 ) THEN + 74 END
----
5
NULL

skipif mysql # not compatible
query II rowsort label-3893
SELECT + 5 AS col2, 6 / + - COUNT ( * ) + - CASE - + ( 46 ) WHEN + + 65 - - 88 THEN - - 77 WHEN - CAST ( 22 AS INTEGER ) + ( + 42 ) THEN + 74 END
----
5
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3894
SELECT DISTINCT 24 + + SUM( ALL + + 91 ) - 51 * COUNT( * ) * 21 AS col1
----
-956

skipif mysql # not compatible
query I rowsort label-3894
SELECT DISTINCT 24 + + SUM ( ALL + + 91 ) - 51 * COUNT ( * ) * 21 AS col1
----
-956

onlyif mysql # aggregate syntax: 
query I rowsort label-3895
SELECT + 85 * 59 * + - SUM( ALL + + 74 ) + - 18 * - - 96 + + 57 AS col1
----
-372781

skipif mysql # not compatible
query I rowsort label-3895
SELECT + 85 * 59 * + - SUM ( ALL + + 74 ) + - 18 * - - 96 + + 57 AS col1
----
-372781

query I rowsort
SELECT ALL + 6 + + 66 + + + 56 col2
----
128

onlyif mysql # aggregate syntax: 
query II rowsort label-3897
SELECT + 16 AS col0, COUNT( - 30 ) + - 17 col1
----
16
-16

skipif mysql # not compatible
query II rowsort label-3897
SELECT + 16 AS col0, COUNT ( - 30 ) + - 17 col1
----
16
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-3898
SELECT DISTINCT + 88 - - - COUNT( * ) AS col0
----
87

skipif mysql # not compatible
query I rowsort label-3898
SELECT DISTINCT + 88 - - - COUNT ( * ) AS col0
----
87

query II rowsort
SELECT ALL 72 AS col1, 95 * + 36 AS col0
----
72
3420

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3900
SELECT DISTINCT 70 - + - 77 + 64 + + COUNT( * ) - - 33 + + 30 + 96 - + 46 * 19 * COUNT( * ) * 32 / - SUM( + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3900
SELECT DISTINCT 70 - + - 77 + 64 + + COUNT ( * ) - - 33 + + 30 + 96 - + 46 * 19 * COUNT ( * ) * 32 / - SUM ( + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT 7 + - 65 * 72
----
-4673

onlyif mysql # aggregate syntax: 
query I rowsort label-3902
SELECT - 16 + - CASE - + 52 WHEN + COUNT( * ) THEN - COUNT( * ) * + + 76 * - ( + 15 ) * + COUNT( * ) * + 50 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3902
SELECT - 16 + - CASE - + 52 WHEN + COUNT ( * ) THEN - COUNT ( * ) * + + 76 * - ( + 15 ) * + COUNT ( * ) * + 50 END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3903
SELECT - - CASE + - 15 WHEN COUNT( * ) THEN + 0 + + 59 - - 9 * 25 DIV + COUNT( * ) WHEN + 41 THEN NULL ELSE - 81 END
----
-81

skipif mysql # not compatible
query I rowsort label-3903
SELECT - - CASE + - 15 WHEN COUNT ( * ) THEN + 0 + + 59 - - 9 * 25 / + COUNT ( * ) WHEN + 41 THEN NULL ELSE - 81 END
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3904
SELECT ALL - CAST( + ( 81 ) AS SIGNED )
----
-81

skipif mysql # not compatible
query I rowsort label-3904
SELECT ALL - CAST ( + ( 81 ) AS INTEGER )
----
-81

query I rowsort
SELECT 95 + - 43 AS col1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3906
SELECT + 34 * + MAX( DISTINCT - + 44 )
----
-1496

skipif mysql # not compatible
query I rowsort label-3906
SELECT + 34 * + MAX ( DISTINCT - + 44 )
----
-1496

onlyif mysql # aggregate syntax: 
query II rowsort label-3907
SELECT DISTINCT + 37 * COUNT( * ), - 37 * COUNT( * ) * + 86 + + + 12 AS col1
----
37
-3170

skipif mysql # not compatible
query II rowsort label-3907
SELECT DISTINCT + 37 * COUNT ( * ), - 37 * COUNT ( * ) * + 86 + + + 12 AS col1
----
37
-3170

onlyif mysql # aggregate syntax: 
query I rowsort label-3908
SELECT MAX( + + 46 )
----
46

skipif mysql # not compatible
query I rowsort label-3908
SELECT MAX ( + + 46 )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3909
SELECT 34 * - - COALESCE ( - + COUNT( * ), - 68 )
----
-34

skipif mysql # not compatible
query I rowsort label-3909
SELECT 34 * - - COALESCE ( - + COUNT ( * ), - 68 )
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-3910
SELECT ALL SUM( 21 )
----
21

skipif mysql # not compatible
query I rowsort label-3910
SELECT ALL SUM ( 21 )
----
21

query I rowsort
SELECT 11 + - 52 AS col2
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-3912
SELECT ALL + SUM( ALL - + 26 ) AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-3912
SELECT ALL + SUM ( ALL - + 26 ) AS col1
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3913
SELECT + NULLIF ( 37, + - CAST( + ( 56 ) AS SIGNED ) - - + COUNT( - 79 ) ) + + COUNT( * )
----
38

skipif mysql # not compatible
query I rowsort label-3913
SELECT + NULLIF ( 37, + - CAST ( + ( 56 ) AS INTEGER ) - - + COUNT ( - 79 ) ) + + COUNT ( * )
----
38

query II rowsort
SELECT - - 44, ( - ( - 66 ) ) col1
----
44
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3915
SELECT - 16 DIV - 94 + - SUM( DISTINCT - 39 ) AS col0
----
39

skipif mysql # not compatible
query I rowsort label-3915
SELECT - 16 / - 94 + - SUM ( DISTINCT - 39 ) AS col0
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-3916
SELECT DISTINCT 85 DIV 49 * + - 63 AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-3916
SELECT DISTINCT 85 / 49 * + - 63 AS col2
----
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3917
SELECT ALL - COUNT( DISTINCT + 93 ) + - 27 DIV - - 86
----
-1

skipif mysql # not compatible
query I rowsort label-3917
SELECT ALL - COUNT ( DISTINCT + 93 ) + - 27 / - - 86
----
-1

query I rowsort
SELECT - 73 + - 74 AS col0
----
-147

query I rowsort
SELECT 80 - + + 10 * 0 + - NULLIF ( 61, - 9 + - + 72 * - 31 + 67 ) AS col1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3920
SELECT DISTINCT + 61 + - COUNT( * ) * - - 82 AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-3920
SELECT DISTINCT + 61 + - COUNT ( * ) * - - 82 AS col2
----
-21

query I rowsort
SELECT ALL 56 + 30 - 51 AS col1
----
35

query II rowsort
SELECT - 89, - 13 * - 81 AS col0
----
-89
1053

query II rowsort
SELECT DISTINCT - 36 + 91 AS col2, 22
----
55
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3924
SELECT ALL - COUNT( * ) + + 21 * + 77 col0, - COALESCE ( CASE + 23 WHEN + - 60 / + ( - COUNT( * ) ) THEN NULL ELSE + + ( ( - - MAX( + + CAST( NULL AS SIGNED ) ) ) ) END, + 4, 92 ) AS col2
----
1616
-4

skipif mysql # not compatible
query II rowsort label-3924
SELECT ALL - COUNT ( * ) + + 21 * + 77 col0, - COALESCE ( CASE + 23 WHEN + - 60 / + ( - COUNT ( * ) ) THEN NULL ELSE + + ( ( - - MAX ( + + CAST ( NULL AS INTEGER ) ) ) ) END, + 4, 92 ) AS col2
----
1616
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3925
SELECT ( CAST( + 16 AS SIGNED ) ) / + ( CAST( NULL AS SIGNED ) ) + - 22
----
NULL

skipif mysql # not compatible
query I rowsort label-3925
SELECT ( CAST ( + 16 AS INTEGER ) ) / + ( CAST ( NULL AS INTEGER ) ) + - 22
----
NULL

query I rowsort
SELECT ALL - 46 * - - 96
----
-4416

onlyif mysql # aggregate syntax: 
query I rowsort label-3927
SELECT + MIN( ALL 59 )
----
59

skipif mysql # not compatible
query I rowsort label-3927
SELECT + MIN ( ALL 59 )
----
59

query I rowsort
SELECT ALL - ( 50 ) col2
----
-50

query I rowsort
SELECT ALL - 19 + 1 AS col2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-3930
SELECT DISTINCT + COUNT( * ) + + NULLIF ( COUNT( * ), + + MAX( ALL 2 ) + + - 7 ) * 34 - 31 col0
----
4

skipif mysql # not compatible
query I rowsort label-3930
SELECT DISTINCT + COUNT ( * ) + + NULLIF ( COUNT ( * ), + + MAX ( ALL 2 ) + + - 7 ) * 34 - 31 col0
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-3931
SELECT ALL + 20 - COUNT( * ) AS col2, - 32 col0
----
19
-32

skipif mysql # not compatible
query II rowsort label-3931
SELECT ALL + 20 - COUNT ( * ) AS col2, - 32 col0
----
19
-32

query I rowsort
SELECT 88 * 0
----
0

query I rowsort
SELECT ALL + 74 * + + 9
----
666

onlyif mysql # aggregate syntax: 
query I rowsort label-3934
SELECT DISTINCT + 2 - - 34 - + 22 * + + SUM( + 24 ) * - 5 + - - COUNT( * )
----
2677

skipif mysql # not compatible
query I rowsort label-3934
SELECT DISTINCT + 2 - - 34 - + 22 * + + SUM ( + 24 ) * - 5 + - - COUNT ( * )
----
2677

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3935
SELECT 4 + - + 90 + - 71 + - + CAST( - 92 AS SIGNED ), - 98 * CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED ) - - COUNT( * ) AS col1
----
-65
NULL

skipif mysql # not compatible
query II rowsort label-3935
SELECT 4 + - + 90 + - 71 + - + CAST ( - 92 AS INTEGER ), - 98 * CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) - - COUNT ( * ) AS col1
----
-65
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3936
SELECT ALL - NULLIF ( + 20, - COALESCE ( + + 48, + ( + - 1 ) ) + + COUNT( DISTINCT - 49 ) + + 75 - 81 - - - 30 ) * + 65
----
-1300

skipif mysql # not compatible
query I rowsort label-3936
SELECT ALL - NULLIF ( + 20, - COALESCE ( + + 48, + ( + - 1 ) ) + + COUNT ( DISTINCT - 49 ) + + 75 - 81 - - - 30 ) * + 65
----
-1300

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3937
SELECT DISTINCT - CAST( + 21 AS SIGNED )
----
-21

skipif mysql # not compatible
query I rowsort label-3937
SELECT DISTINCT - CAST ( + 21 AS INTEGER )
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3938
SELECT 79 DIV 27 * + COUNT( + + 37 )
----
2

skipif mysql # not compatible
query I rowsort label-3938
SELECT 79 / 27 * + COUNT ( + + 37 )
----
2

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-3939
SELECT - 88 DIV - - 64 - + CAST( NULL AS DECIMAL ), 58 DIV - COUNT( * ) AS col2
----
NULL
-58

skipif mysql # not compatible
query II rowsort label-3939
SELECT - 88 / - - 64 - + CAST ( NULL AS REAL ), 58 / - COUNT ( * ) AS col2
----
NULL
-58

query I rowsort
SELECT 10 * 82 * 39
----
31980

query I rowsort
SELECT + 97 + 44 AS col1
----
141

onlyif mysql # aggregate syntax: 
query II rowsort label-3942
SELECT DISTINCT + CASE 11 WHEN + 23 THEN + 53 WHEN COUNT( * ) THEN NULL END AS col1, COUNT( * ) AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-3942
SELECT DISTINCT + CASE 11 WHEN + 23 THEN + 53 WHEN COUNT ( * ) THEN NULL END AS col1, COUNT ( * ) AS col1
----
NULL
1

query II rowsort
SELECT ALL - - 35 * 25 AS col2, 33 * - 69 AS col1
----
875
-2277

onlyif mysql # aggregate syntax: 
query I rowsort label-3944
SELECT COUNT( * ) * + 97 * + 74 + + 4
----
7182

skipif mysql # not compatible
query I rowsort label-3944
SELECT COUNT ( * ) * + 97 * + 74 + + 4
----
7182

query I rowsort
SELECT ALL 17 * 20
----
340

query I rowsort
SELECT DISTINCT 56 + + + 96 col1
----
152

onlyif mysql # aggregate syntax: 
query I rowsort label-3947
SELECT - ( - NULLIF ( + ( + + COUNT( * ) ), ( - NULLIF ( - MAX( + 86 ), + - 39 * - 99 + - 42 + - - COUNT( * ) + 92 * 61 + 90 + + - 5 ) ) ) ) * + NULLIF ( + 30, 88 * + 28 ) * 85 AS col0
----
2550

skipif mysql # not compatible
query I rowsort label-3947
SELECT - ( - NULLIF ( + ( + + COUNT ( * ) ), ( - NULLIF ( - MAX ( + 86 ), + - 39 * - 99 + - 42 + - - COUNT ( * ) + 92 * 61 + 90 + + - 5 ) ) ) ) * + NULLIF ( + 30, 88 * + 28 ) * 85 AS col0
----
2550

query I rowsort
SELECT + + 6 + - + 31 * + 21 + ( - 58 )
----
-703

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3949
SELECT ALL + CASE - COUNT( * ) WHEN + 12 THEN + ( + CAST( NULL AS SIGNED ) ) - 82 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3949
SELECT ALL + CASE - COUNT ( * ) WHEN + 12 THEN + ( + CAST ( NULL AS INTEGER ) ) - 82 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3950
SELECT + 71 * - 15 * + 5 + COUNT( * ) * + 63 AS col1
----
-5262

skipif mysql # not compatible
query I rowsort label-3950
SELECT + 71 * - 15 * + 5 + COUNT ( * ) * + 63 AS col1
----
-5262

onlyif mysql # aggregate syntax: 
query I rowsort label-3951
SELECT ALL - COUNT( * ) + + COUNT( + + 81 ) + + 27 + - ( 78 ) + + + 24 + - 92 * COUNT( * ) + - + 95
----
-214

skipif mysql # not compatible
query I rowsort label-3951
SELECT ALL - COUNT ( * ) + + COUNT ( + + 81 ) + + 27 + - ( 78 ) + + + 24 + - 92 * COUNT ( * ) + - + 95
----
-214

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3952
SELECT DISTINCT NULLIF ( - + 98, + + ( CASE 38 WHEN + 44 THEN + CAST( NULL AS SIGNED ) WHEN - + 8 THEN NULL ELSE NULL END ) * + 72 ) + - COUNT( * )
----
-99

skipif mysql # not compatible
query I rowsort label-3952
SELECT DISTINCT NULLIF ( - + 98, + + ( CASE 38 WHEN + 44 THEN + CAST ( NULL AS INTEGER ) WHEN - + 8 THEN NULL ELSE NULL END ) * + 72 ) + - COUNT ( * )
----
-99

query I rowsort
SELECT ALL + 51 + - 95 + 96 col2
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3954
SELECT + ( 41 ) * + - CAST( NULL AS SIGNED ) AS col0, - 98 * + 85 + - - 54 + 71
----
NULL
-8205

skipif mysql # not compatible
query II rowsort label-3954
SELECT + ( 41 ) * + - CAST ( NULL AS INTEGER ) AS col0, - 98 * + 85 + - - 54 + 71
----
NULL
-8205

onlyif mysql # aggregate syntax: 
query I rowsort label-3955
SELECT - MIN( + + 30 ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-3955
SELECT - MIN ( + + 30 ) AS col1
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-3956
SELECT + COUNT( + 95 ) * - + ( ( + 44 ) )
----
-44

skipif mysql # not compatible
query I rowsort label-3956
SELECT + COUNT ( + 95 ) * - + ( ( + 44 ) )
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-3957
SELECT CASE + + 90 WHEN + 44 THEN - COUNT( * ) * - 42 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3957
SELECT CASE + + 90 WHEN + 44 THEN - COUNT ( * ) * - 42 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3958
SELECT COALESCE ( - 90, 56 DIV - NULLIF ( + 78, - NULLIF ( - - 52, - 50 * - 32 ) ) + + 75, 75 * - MAX( + 68 ) )
----
-90

skipif mysql # not compatible
query I rowsort label-3958
SELECT COALESCE ( - 90, 56 / - NULLIF ( + 78, - NULLIF ( - - 52, - 50 * - 32 ) ) + + 75, 75 * - MAX ( + 68 ) )
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-3959
SELECT 88 * - COUNT( * ) + - - 22 * - - SUM( - + 46 ) * - 78
----
78848

skipif mysql # not compatible
query I rowsort label-3959
SELECT 88 * - COUNT ( * ) + - - 22 * - - SUM ( - + 46 ) * - 78
----
78848

query I rowsort
SELECT - 36 * + + 56 AS col2
----
-2016

onlyif mysql # aggregate syntax: 
query II rowsort label-3961
SELECT ALL - 15 * - MIN( - 62 ) AS col2, - 42
----
-930
-42

skipif mysql # not compatible
query II rowsort label-3961
SELECT ALL - 15 * - MIN ( - 62 ) AS col2, - 42
----
-930
-42

query II rowsort
SELECT ALL + 14 AS col1, - 88 AS col2
----
14
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3963
SELECT ALL 58 * + - 22 - + + 71 - + - 90 + - - 89 * 73 + - 50 + + COUNT( - 66 ) * - 75 * + 41 * CAST( NULL AS SIGNED ) + 40 / + - 71 / - 88 / COALESCE ( 46, 33 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3963
SELECT ALL 58 * + - 22 - + + 71 - + - 90 + - - 89 * 73 + - 50 + + COUNT ( - 66 ) * - 75 * + 41 * CAST ( NULL AS INTEGER ) + 40 / + - 71 / - 88 / COALESCE ( 46, 33 ) AS col2
----
NULL

query I rowsort
SELECT ALL + ( - + ( 69 ) ) * - + 27 * - 41 - - - 24 + - 24 AS col1
----
-76431

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3965
SELECT - COALESCE ( - COALESCE ( - COUNT( * ), 4 * - 18 + 23 - 85 - + 73, + - 97, + 35 / + COUNT( * ) + + 64 ), 67 * - 49 + 92 * 13 ) * - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3965
SELECT - COALESCE ( - COALESCE ( - COUNT ( * ), 4 * - 18 + 23 - 85 - + 73, + - 97, + 35 / + COUNT ( * ) + + 64 ), 67 * - 49 + 92 * 13 ) * - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3966
SELECT 88 * - 72 - + 86 AS col0, - CAST( NULL AS SIGNED ) * + COUNT( DISTINCT + 43 )
----
-6422
NULL

skipif mysql # not compatible
query II rowsort label-3966
SELECT 88 * - 72 - + 86 AS col0, - CAST ( NULL AS INTEGER ) * + COUNT ( DISTINCT + 43 )
----
-6422
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3967
SELECT + COALESCE ( + 83, - 67 * - 87, SUM( + - 87 ) * - - 84 ) AS col0
----
83

skipif mysql # not compatible
query I rowsort label-3967
SELECT + COALESCE ( + 83, - 67 * - 87, SUM ( + - 87 ) * - - 84 ) AS col0
----
83

query I rowsort
SELECT NULLIF ( - + 8, 73 * + - 41 - - 79 * - 38 )
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-3969
SELECT + ( - ( - + 14 ) ) * + COUNT( * ) * - NULLIF ( - 0, 59 )
----
0

skipif mysql # not compatible
query I rowsort label-3969
SELECT + ( - ( - + 14 ) ) * + COUNT ( * ) * - NULLIF ( - 0, 59 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3970
SELECT - 70 * COALESCE ( + + CAST( NULL AS SIGNED ), - - COUNT( * ) / + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3970
SELECT - 70 * COALESCE ( + + CAST ( NULL AS INTEGER ), - - COUNT ( * ) / + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT + 40 + 3
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-3972
SELECT ALL + + 95, + COUNT( - 67 ) * 8 col2
----
95
8

skipif mysql # not compatible
query II rowsort label-3972
SELECT ALL + + 95, + COUNT ( - 67 ) * 8 col2
----
95
8

query I rowsort
SELECT DISTINCT + - NULLIF ( + 9, + 91 )
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3974
SELECT ALL + - CASE CAST( NULL AS SIGNED ) WHEN - + 24 + + 84 / COUNT( * ) THEN - - 3 * + + 93 + - - 82 WHEN - 7 * - - 91 THEN NULL WHEN - 38 * COUNT( * ) - + 80 THEN - 73 ELSE - COUNT( * ) END
----
1

skipif mysql # not compatible
query I rowsort label-3974
SELECT ALL + - CASE CAST ( NULL AS INTEGER ) WHEN - + 24 + + 84 / COUNT ( * ) THEN - - 3 * + + 93 + - - 82 WHEN - 7 * - - 91 THEN NULL WHEN - 38 * COUNT ( * ) - + 80 THEN - 73 ELSE - COUNT ( * ) END
----
1

query I rowsort
SELECT DISTINCT + 16 * - ( 3 ) + + 93
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3976
SELECT - COUNT( * ) + + - COUNT( * ) - - - 93 * + - COUNT( 94 ) AS col0
----
91

skipif mysql # not compatible
query I rowsort label-3976
SELECT - COUNT ( * ) + + - COUNT ( * ) - - - 93 * + - COUNT ( 94 ) AS col0
----
91

query I rowsort
SELECT ALL - 96 + 94 AS col2
----
-2

query I rowsort
SELECT - - 91 + + 93 + 84 * - + 32 AS col1
----
-2504

onlyif mysql # DIV for integer division: 
query I rowsort label-3979
SELECT - 89 DIV 49 col0
----
-1

skipif mysql # not compatible
query I rowsort label-3979
SELECT - 89 / 49 col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3980
SELECT - 12 * COUNT( * ) * + 17 + - 77 + - - NULLIF ( 82, 76 * - 24 * - - 76 + + - COUNT( * ) ) + - 96 AS col0
----
-295

skipif mysql # not compatible
query I rowsort label-3980
SELECT - 12 * COUNT ( * ) * + 17 + - 77 + - - NULLIF ( 82, 76 * - 24 * - - 76 + + - COUNT ( * ) ) + - 96 AS col0
----
-295

onlyif mysql # aggregate syntax: 
query I rowsort label-3981
SELECT - COUNT( - - 79 )
----
-1

skipif mysql # not compatible
query I rowsort label-3981
SELECT - COUNT ( - - 79 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3982
SELECT - - COUNT( * ) + 54 + + + COUNT( * )
----
56

skipif mysql # not compatible
query I rowsort label-3982
SELECT - - COUNT ( * ) + 54 + + + COUNT ( * )
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-3983
SELECT - + 66 + SUM( DISTINCT + - 72 ) - 4 * - + 69
----
138

skipif mysql # not compatible
query I rowsort label-3983
SELECT - + 66 + SUM ( DISTINCT + - 72 ) - 4 * - + 69
----
138

query I rowsort
SELECT ALL - + 28 + + 49 AS col0
----
21

query I rowsort
SELECT DISTINCT + + 66 + + 12 col2
----
78

query I rowsort
SELECT ALL 8 + - 79 AS col1
----
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3987
SELECT ALL 62, + 67 DIV - COUNT( * ) + + + 61 * - - 10 AS col1
----
62
543

skipif mysql # not compatible
query II rowsort label-3987
SELECT ALL 62, + 67 / - COUNT ( * ) + + + 61 * - - 10 AS col1
----
62
543

onlyif mysql # aggregate syntax: 
query I rowsort label-3988
SELECT DISTINCT NULLIF ( - + SUM( 18 ), - 81 + - 95 )
----
-18

skipif mysql # not compatible
query I rowsort label-3988
SELECT DISTINCT NULLIF ( - + SUM ( 18 ), - 81 + - 95 )
----
-18

query I rowsort
SELECT ALL + 19 + + 40 AS col0
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3990
SELECT - CASE + 0 WHEN + 70 THEN NULL WHEN - COUNT( * ) THEN ( - + 22 ) * + CAST( NULL AS SIGNED ) + + 41 * + - 26 + CASE - + 8 WHEN - COUNT( * ) * COUNT( * ) THEN 36 * 39 + ( - 82 ) WHEN + + 69 / + 34 THEN NULL WHEN CAST( NULL AS SIGNED ) * 83 THEN ( - 37 ) ELSE COUNT( * ) END ELSE - 45 END * COUNT( * )
----
45

skipif mysql # not compatible
query I rowsort label-3990
SELECT - CASE + 0 WHEN + 70 THEN NULL WHEN - COUNT ( * ) THEN ( - + 22 ) * + CAST ( NULL AS INTEGER ) + + 41 * + - 26 + CASE - + 8 WHEN - COUNT ( * ) * COUNT ( * ) THEN 36 * 39 + ( - 82 ) WHEN + + 69 / + 34 THEN NULL WHEN CAST ( NULL AS INTEGER ) * 83 THEN ( - 37 ) ELSE COUNT ( * ) END ELSE - 45 END * COUNT ( * )
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3991
SELECT + COUNT( * ) + 54 * 25 AS col0
----
1351

skipif mysql # not compatible
query I rowsort label-3991
SELECT + COUNT ( * ) + 54 * 25 AS col0
----
1351

onlyif mysql # aggregate syntax: 
query I rowsort label-3992
SELECT + ( + COUNT( * ) ) + - ( - + 75 ) * - COUNT( * ) AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-3992
SELECT + ( + COUNT ( * ) ) + - ( - + 75 ) * - COUNT ( * ) AS col0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-3993
SELECT + 36 + - - COUNT( * ) AS col1
----
37

skipif mysql # not compatible
query I rowsort label-3993
SELECT + 36 + - - COUNT ( * ) AS col1
----
37

query I rowsort
SELECT - COALESCE ( + 99, - NULLIF ( - - ( 13 ), + + 5 ) ) AS col0
----
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-3995
SELECT DISTINCT + 1 * + - 63 AS col1, 43 + - COUNT( * ) * - + 10 col2
----
-63
53

skipif mysql # not compatible
query II rowsort label-3995
SELECT DISTINCT + 1 * + - 63 AS col1, 43 + - COUNT ( * ) * - + 10 col2
----
-63
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3996
SELECT ALL + NULLIF ( - ( - - 97 ), + COUNT( * ) ) col1, 27 DIV + COUNT( 52 )
----
-97
27

skipif mysql # not compatible
query II rowsort label-3996
SELECT ALL + NULLIF ( - ( - - 97 ), + COUNT ( * ) ) col1, 27 / + COUNT ( 52 )
----
-97
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3997
SELECT 20 DIV + SUM( ALL + 18 ) + - + 52 * + 16 + - - 6 + 71, + 67 AS col0
----
-754
67

skipif mysql # not compatible
query II rowsort label-3997
SELECT 20 / + SUM ( ALL + 18 ) + - + 52 * + 16 + - - 6 + 71, + 67 AS col0
----
-754
67

query I rowsort
SELECT + 76 + - + 57 col2
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3999
SELECT + CAST( - + 66 AS SIGNED )
----
-66

skipif mysql # not compatible
query I rowsort label-3999
SELECT + CAST ( - + 66 AS INTEGER )
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-4000
SELECT ALL 58 DIV - - 78 col2
----
0

skipif mysql # not compatible
query I rowsort label-4000
SELECT ALL 58 / - - 78 col2
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4001
SELECT + 64 DIV - 72 * - CAST( + 6 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-4001
SELECT + 64 / - 72 * - CAST ( + 6 AS INTEGER )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4002
SELECT + 70 DIV + + 38 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4002
SELECT + 70 / + + 38 AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4003
SELECT CAST( NULL AS DECIMAL ) * + 62 * COUNT( * ) + + COALESCE ( + + 9, + 56, + 42 * - 82 / - 85 + + + 85 / 35 * + - 60 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4003
SELECT CAST ( NULL AS REAL ) * + 62 * COUNT ( * ) + + COALESCE ( + + 9, + 56, + 42 * - 82 / - 85 + + + 85 / 35 * + - 60 ) AS col0
----
NULL

query I rowsort
SELECT - 46 * - 25 * + 47 AS col1
----
54050

query I rowsort
SELECT - 97 * - 26 + 82 + 67
----
2671

onlyif mysql # DIV for integer division: 
query I rowsort label-4006
SELECT ALL 22 DIV + 78 * - + 89 col0
----
0

skipif mysql # not compatible
query I rowsort label-4006
SELECT ALL 22 / + 78 * - + 89 col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4007
SELECT DISTINCT ( 15 ) * - COUNT( * ) * - 18 * + CAST( NULL AS SIGNED ) + - 89 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4007
SELECT DISTINCT ( 15 ) * - COUNT ( * ) * - 18 * + CAST ( NULL AS INTEGER ) + - 89 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4008
SELECT + 23 * + COUNT( * ) AS col2
----
23

skipif mysql # not compatible
query I rowsort label-4008
SELECT + 23 * + COUNT ( * ) AS col2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4009
SELECT + COUNT( * ) + - 16 * ( COUNT( * ) )
----
-15

skipif mysql # not compatible
query I rowsort label-4009
SELECT + COUNT ( * ) + - 16 * ( COUNT ( * ) )
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-4010
SELECT DISTINCT + 62 * - COUNT( DISTINCT - + 26 ) + - 95 + - + 55 + + 47
----
-165

skipif mysql # not compatible
query I rowsort label-4010
SELECT DISTINCT + 62 * - COUNT ( DISTINCT - + 26 ) + - 95 + - + 55 + + 47
----
-165

query I rowsort
SELECT + 90 * 78 * + - 46 * 75
----
-24219000

onlyif mysql # aggregate syntax: 
query I rowsort label-4012
SELECT - + 76 * - COUNT( * ) * + - 82 + + 96 AS col0
----
-6136

skipif mysql # not compatible
query I rowsort label-4012
SELECT - + 76 * - COUNT ( * ) * + - 82 + + 96 AS col0
----
-6136

onlyif mysql # aggregate syntax: 
query I rowsort label-4013
SELECT ALL + 19 * + 37 * + + 0 + SUM( 78 ) * + COUNT( DISTINCT - - NULLIF ( + 4, + - 38 ) ) * ( - 54 )
----
-4212

skipif mysql # not compatible
query I rowsort label-4013
SELECT ALL + 19 * + 37 * + + 0 + SUM ( 78 ) * + COUNT ( DISTINCT - - NULLIF ( + 4, + - 38 ) ) * ( - 54 )
----
-4212

onlyif mysql # aggregate syntax: 
query I rowsort label-4014
SELECT + + CASE - + 60 WHEN - 48 * ( + 53 ) THEN - 63 - - - 84 + + ( - COUNT( * ) ) - - 74 / + 86 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4014
SELECT + + CASE - + 60 WHEN - 48 * ( + 53 ) THEN - 63 - - - 84 + + ( - COUNT ( * ) ) - - 74 / + 86 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4015
SELECT + COUNT( * ) * + 30, - 79 - COUNT( * ) AS col1
----
30
-80

skipif mysql # not compatible
query II rowsort label-4015
SELECT + COUNT ( * ) * + 30, - 79 - COUNT ( * ) AS col1
----
30
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4016
SELECT - CAST( - - COALESCE ( + 45, - 35 ) AS SIGNED ) + 37
----
-8

skipif mysql # not compatible
query I rowsort label-4016
SELECT - CAST ( - - COALESCE ( + 45, - 35 ) AS INTEGER ) + 37
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4017
SELECT ALL + ( + CAST( NULL AS SIGNED ) ) + - - 29 / - CAST( NULL AS SIGNED ) AS col2, + 56
----
NULL
56

skipif mysql # not compatible
query II rowsort label-4017
SELECT ALL + ( + CAST ( NULL AS INTEGER ) ) + - - 29 / - CAST ( NULL AS INTEGER ) AS col2, + 56
----
NULL
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4018
SELECT DISTINCT SUM( + 88 ) AS col2
----
88

skipif mysql # not compatible
query I rowsort label-4018
SELECT DISTINCT SUM ( + 88 ) AS col2
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4019
SELECT DISTINCT - 93 * - - CASE 72 WHEN + 66 * + + CAST( - - 89 AS SIGNED ) * + 83 / + - 80 THEN NULL ELSE + - 75 END * + 29
----
202275

skipif mysql # not compatible
query I rowsort label-4019
SELECT DISTINCT - 93 * - - CASE 72 WHEN + 66 * + + CAST ( - - 89 AS INTEGER ) * + 83 / + - 80 THEN NULL ELSE + - 75 END * + 29
----
202275

query I rowsort
SELECT ALL + + 88 - + 74
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4021
SELECT ALL - 49 - - COUNT( * ) col0
----
-48

skipif mysql # not compatible
query I rowsort label-4021
SELECT ALL - 49 - - COUNT ( * ) col0
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4022
SELECT + 28 - + 69 * + CAST( + + 96 AS SIGNED )
----
-6596

skipif mysql # not compatible
query I rowsort label-4022
SELECT + 28 - + 69 * + CAST ( + + 96 AS INTEGER )
----
-6596

query III rowsort
SELECT 63 * + 22 * NULLIF ( - 28, - 33 ) AS col2, + 46 * + ( + 60 ) AS col1, + 17 + + 94 * + 83 - - 2 AS col2
----
-38808
2760
7821

onlyif mysql # aggregate syntax: 
query I rowsort label-4024
SELECT SUM( ALL + + 43 ) * - + 4 col1
----
-172

skipif mysql # not compatible
query I rowsort label-4024
SELECT SUM ( ALL + + 43 ) * - + 4 col1
----
-172

query I rowsort
SELECT 2 * 31
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4026
SELECT 8 DIV ( - 34 ) * + MAX( ALL - 20 ) + - 88
----
-88

skipif mysql # not compatible
query I rowsort label-4026
SELECT 8 / ( - 34 ) * + MAX ( ALL - 20 ) + - 88
----
-88

query I rowsort
SELECT DISTINCT + 33 * + 32
----
1056

query I rowsort
SELECT ALL + 88 - - + 6
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4029
SELECT MAX( ALL - 38 ) * + - 39 AS col2
----
1482

skipif mysql # not compatible
query I rowsort label-4029
SELECT MAX ( ALL - 38 ) * + - 39 AS col2
----
1482

onlyif mysql # aggregate syntax: 
query II rowsort label-4030
SELECT ALL 43, - COUNT( * ) * + - 54 + - - 47 AS col0
----
43
101

skipif mysql # not compatible
query II rowsort label-4030
SELECT ALL 43, - COUNT ( * ) * + - 54 + - - 47 AS col0
----
43
101

onlyif mysql # aggregate syntax: 
query I rowsort label-4031
SELECT 79 * + COUNT( * ) * + 24
----
1896

skipif mysql # not compatible
query I rowsort label-4031
SELECT 79 * + COUNT ( * ) * + 24
----
1896

query I rowsort
SELECT 14 * - 45
----
-630

query II rowsort
SELECT ALL 55 AS col2, + 19 AS col0
----
55
19

query II rowsort
SELECT 27 col2, + 59
----
27
59

query I rowsort
SELECT 4 * - - 80 AS col2
----
320

query I rowsort
SELECT ALL - NULLIF ( + 21, + 34 )
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4037
SELECT DISTINCT - SUM( + 8 ) * - ( 15 ) * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4037
SELECT DISTINCT - SUM ( + 8 ) * - ( 15 ) * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT ( 71 ) + - 71 col1
----
0

query I rowsort
SELECT DISTINCT - ( + ( - NULLIF ( 39, - 41 ) ) ) AS col1
----
39

query I rowsort
SELECT ALL - 53 * 55 AS col1
----
-2915

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4041
SELECT DISTINCT + CASE + + ( - - NULLIF ( + - 92, + + 87 * 4 * - AVG ( ALL CAST( 1 AS DECIMAL ) ) ) ) WHEN + - 95 THEN NULL WHEN + 69 THEN - + ( - 1 ) WHEN - 0 + 3 * - 69 * + 85 + - 73 + + 40 * - + SUM( + 49 ) * + COUNT( * ) THEN NULL END + 25 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4041
SELECT DISTINCT + CASE + + ( - - NULLIF ( + - 92, + + 87 * 4 * - AVG ( ALL CAST ( 1 AS REAL ) ) ) ) WHEN + - 95 THEN NULL WHEN + 69 THEN - + ( - 1 ) WHEN - 0 + 3 * - 69 * + 85 + - 73 + + 40 * - + SUM ( + 49 ) * + COUNT ( * ) THEN NULL END + 25 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4042
SELECT ALL - 40 + NULLIF ( + ( - - MAX( ALL - 89 ) ), + ( 40 ) )
----
-129

skipif mysql # not compatible
query I rowsort label-4042
SELECT ALL - 40 + NULLIF ( + ( - - MAX ( ALL - 89 ) ), + ( 40 ) )
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-4043
SELECT ALL - NULLIF ( 0, COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-4043
SELECT ALL - NULLIF ( 0, COUNT ( * ) )
----
0

query I rowsort
SELECT + + ( - ( 54 ) ) AS col1
----
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-4045
SELECT + 44 DIV - 60 col0
----
0

skipif mysql # not compatible
query I rowsort label-4045
SELECT + 44 / - 60 col0
----
0

query I rowsort
SELECT ALL - 96 + 92 col2
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4047
SELECT + CAST( NULL AS SIGNED ) + 33 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4047
SELECT + CAST ( NULL AS INTEGER ) + 33 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4048
SELECT ALL 40 * - COUNT( * ) * 41 * + + 25 * + 71 AS col1
----
-2911000

skipif mysql # not compatible
query I rowsort label-4048
SELECT ALL 40 * - COUNT ( * ) * 41 * + + 25 * + 71 AS col1
----
-2911000

onlyif mysql # DIV for integer division: 
query I rowsort label-4049
SELECT - 10 DIV - + 4 - + 68 AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-4049
SELECT - 10 / - + 4 - + 68 AS col1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-4050
SELECT ALL - - MAX( ALL - - 60 )
----
60

skipif mysql # not compatible
query I rowsort label-4050
SELECT ALL - - MAX ( ALL - - 60 )
----
60

query I rowsort
SELECT ALL - 13 + + + 10
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-4052
SELECT ALL - - 67 AS col2, SUM( 79 ) * - - COUNT( * ) * + 46
----
67
3634

skipif mysql # not compatible
query II rowsort label-4052
SELECT ALL - - 67 AS col2, SUM ( 79 ) * - - COUNT ( * ) * + 46
----
67
3634

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4053
SELECT DISTINCT COUNT( * ) - - 51 DIV + 75 * - 50 col0
----
1

skipif mysql # not compatible
query I rowsort label-4053
SELECT DISTINCT COUNT ( * ) - - 51 / + 75 * - 50 col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4054
SELECT ALL + 36 AS col1, SUM( DISTINCT + - 80 )
----
36
-80

skipif mysql # not compatible
query II rowsort label-4054
SELECT ALL + 36 AS col1, SUM ( DISTINCT + - 80 )
----
36
-80

query I rowsort
SELECT + COALESCE ( + 92, + - 30 ) AS col1
----
92

query I rowsort
SELECT ALL - 53 - + 51
----
-104

query I rowsort
SELECT + 17 * 78 + - 87 * 41
----
-2241

query I rowsort
SELECT 98 * + ( + 95 ) + 98
----
9408

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4059
SELECT 3 - CAST( NULL AS DECIMAL ) / - + CAST( 5 AS SIGNED ) / - - 9 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4059
SELECT 3 - CAST ( NULL AS REAL ) / - + CAST ( 5 AS INTEGER ) / - - 9 AS col2
----
NULL

query II rowsort
SELECT 97 AS col1, ( + 54 ) AS col2
----
97
54

query I rowsort
SELECT - 40 + - - 27 AS col1
----
-13

query I rowsort
SELECT ALL - 56 * + 43
----
-2408

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4063
SELECT DISTINCT 48 DIV - COUNT( - 70 )
----
-48

skipif mysql # not compatible
query I rowsort label-4063
SELECT DISTINCT 48 / - COUNT ( - 70 )
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-4064
SELECT ALL SUM( 97 )
----
97

skipif mysql # not compatible
query I rowsort label-4064
SELECT ALL SUM ( 97 )
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4065
SELECT 14 * + + ( - CAST( + + 15 AS SIGNED ) )
----
-210

skipif mysql # not compatible
query I rowsort label-4065
SELECT 14 * + + ( - CAST ( + + 15 AS INTEGER ) )
----
-210

query I rowsort
SELECT 17 + - - 77 AS col1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4067
SELECT - COUNT( DISTINCT - - 91 )
----
-1

skipif mysql # not compatible
query I rowsort label-4067
SELECT - COUNT ( DISTINCT - - 91 )
----
-1

query I rowsort
SELECT 24 * - + ( - + 58 )
----
1392

query I rowsort
SELECT ALL - 85 + + 7 * + + 83 + - ( - 41 ) AS col0
----
537

query I rowsort
SELECT ALL + 94 + + 26
----
120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4071
SELECT COALESCE ( + - SUM( 20 ), COUNT( * ) DIV 74 * - 10 * CAST( NULL AS SIGNED ) * - 11 - + 37 - - + 68 * 28 * + + 57 )
----
-20

skipif mysql # not compatible
query I rowsort label-4071
SELECT COALESCE ( + - SUM ( 20 ), COUNT ( * ) / 74 * - 10 * CAST ( NULL AS INTEGER ) * - 11 - + 37 - - + 68 * 28 * + + 57 )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-4072
SELECT ALL + MAX( DISTINCT - 4 ) * - + 31 - + COUNT( * ) + + 55
----
178

skipif mysql # not compatible
query I rowsort label-4072
SELECT ALL + MAX ( DISTINCT - 4 ) * - + 31 - + COUNT ( * ) + + 55
----
178

onlyif mysql # aggregate syntax: 
query I rowsort label-4073
SELECT DISTINCT - 72 * + 31 + - + 53 + + MAX( ALL - 28 ) + - ( - - 38 ) * 29
----
-3415

skipif mysql # not compatible
query I rowsort label-4073
SELECT DISTINCT - 72 * + 31 + - + 53 + + MAX ( ALL - 28 ) + - ( - - 38 ) * 29
----
-3415

onlyif mysql # aggregate syntax: 
query I rowsort label-4074
SELECT DISTINCT - 22 * + COUNT( * ) + + 37 col2
----
15

skipif mysql # not compatible
query I rowsort label-4074
SELECT DISTINCT - 22 * + COUNT ( * ) + + 37 col2
----
15

query I rowsort
SELECT ALL - ( 43 ) AS col0
----
-43

query I rowsort
SELECT + 32 * 83 * - 99 col0
----
-262944

query I rowsort
SELECT DISTINCT + + 7 AS col2
----
7

query II rowsort
SELECT + 51, 22 AS col1
----
51
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4079
SELECT - + 39 * 33 * + COUNT( ALL + 44 ) + 59 * - - CAST( - 6 AS SIGNED ) AS col0, 42
----
-1641
42

skipif mysql # not compatible
query II rowsort label-4079
SELECT - + 39 * 33 * + COUNT ( ALL + 44 ) + 59 * - - CAST ( - 6 AS INTEGER ) AS col0, 42
----
-1641
42

query II rowsort
SELECT - 99 * - 19, - 85 - + 86 AS col0
----
1881
-171

query I rowsort
SELECT ALL - + 23 * + 4 + + 9 + - 19 col0
----
-102

query I rowsort
SELECT ALL - NULLIF ( 30, + 34 ) * - 61 AS col2
----
1830

query II rowsort
SELECT ALL + + 91 AS col2, 75 + 33
----
91
108

onlyif mysql # aggregate syntax: 
query I rowsort label-4084
SELECT DISTINCT + COUNT( * ) * - + 28
----
-28

skipif mysql # not compatible
query I rowsort label-4084
SELECT DISTINCT + COUNT ( * ) * - + 28
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4085
SELECT ALL + + 74 AS col2, COUNT( * ) + - - 14 / - CAST( NULL AS SIGNED )
----
74
NULL

skipif mysql # not compatible
query II rowsort label-4085
SELECT ALL + + 74 AS col2, COUNT ( * ) + - - 14 / - CAST ( NULL AS INTEGER )
----
74
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4086
SELECT + COUNT( * ) * + MAX( + + 15 ) + + 66
----
81

skipif mysql # not compatible
query I rowsort label-4086
SELECT + COUNT ( * ) * + MAX ( + + 15 ) + + 66
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4087
SELECT ALL - 88 * - 85 - - + COUNT( * ) - MAX( 96 )
----
7385

skipif mysql # not compatible
query I rowsort label-4087
SELECT ALL - 88 * - 85 - - + COUNT ( * ) - MAX ( 96 )
----
7385

query I rowsort
SELECT ( - 89 ) col2
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-4089
SELECT NULLIF ( - 22, 88 / - COUNT( * ) + + 63 + + 0 + + 27 + + NULLIF ( - 33, + 21 ) / ( + + 80 ) ) * - 52 + 13 * 93
----
2353

skipif mysql # not compatible
query I rowsort label-4089
SELECT NULLIF ( - 22, 88 / - COUNT ( * ) + + 63 + + 0 + + 27 + + NULLIF ( - 33, + 21 ) / ( + + 80 ) ) * - 52 + 13 * 93
----
2353

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4090
SELECT - ( - - CAST( NULL AS SIGNED ) ) * + - 90 * + 3 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4090
SELECT - ( - - CAST ( NULL AS INTEGER ) ) * + - 90 * + 3 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4091
SELECT + MAX( 81 ) * - 15
----
-1215

skipif mysql # not compatible
query I rowsort label-4091
SELECT + MAX ( 81 ) * - 15
----
-1215

onlyif mysql # DIV for integer division: 
query I rowsort label-4092
SELECT ALL ( - 1 ) DIV 10 - 40
----
-40

skipif mysql # not compatible
query I rowsort label-4092
SELECT ALL ( - 1 ) / 10 - 40
----
-40

query I rowsort
SELECT + - ( + 98 ) + + 71 AS col2
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4094
SELECT ALL - 72 DIV CAST( - COUNT( * ) AS SIGNED )
----
72

skipif mysql # not compatible
query I rowsort label-4094
SELECT ALL - 72 / CAST ( - COUNT ( * ) AS INTEGER )
----
72

query II rowsort
SELECT DISTINCT 78 * - + 28 AS col0, 92
----
-2184
92

query I rowsort
SELECT ALL 7 * - 56 AS col0
----
-392

onlyif mysql # aggregate syntax: 
query I rowsort label-4097
SELECT ALL SUM( DISTINCT + - 89 ) AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-4097
SELECT ALL SUM ( DISTINCT + - 89 ) AS col1
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-4098
SELECT + COUNT( * ) * NULLIF ( 94, - 1 )
----
94

skipif mysql # not compatible
query I rowsort label-4098
SELECT + COUNT ( * ) * NULLIF ( 94, - 1 )
----
94

onlyif mysql # DIV for integer division: 
query II rowsort label-4099
SELECT + 54 * - - 19 AS col1, - 35 DIV 75
----
1026
0

skipif mysql # not compatible
query II rowsort label-4099
SELECT + 54 * - - 19 AS col1, - 35 / 75
----
1026
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4100
SELECT + MAX( - + 72 ) - COUNT( * ) + 7 + - MAX( ALL - 93 ) DIV - COUNT( * ) * + 1 + + + 39 * + 69 AS col1, COUNT( * ) col0
----
2532
1

skipif mysql # not compatible
query II rowsort label-4100
SELECT + MAX ( - + 72 ) - COUNT ( * ) + 7 + - MAX ( ALL - 93 ) / - COUNT ( * ) * + 1 + + + 39 * + 69 AS col1, COUNT ( * ) col0
----
2532
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4101
SELECT ALL SUM( + - 23 ) col2, + 22
----
-23
22

skipif mysql # not compatible
query II rowsort label-4101
SELECT ALL SUM ( + - 23 ) col2, + 22
----
-23
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4102
SELECT DISTINCT - 53 + + SUM( - 43 ) AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-4102
SELECT DISTINCT - 53 + + SUM ( - 43 ) AS col2
----
-96

query I rowsort
SELECT ALL 69 + + - 61 AS col2
----
8

query I rowsort
SELECT - ( + NULLIF ( + 64, - 43 ) )
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4105
SELECT DISTINCT - CAST( 40 AS SIGNED ) + 15 col2, - NULLIF ( + + 35, + 73 + 60 ) AS col2
----
-25
-35

skipif mysql # not compatible
query II rowsort label-4105
SELECT DISTINCT - CAST ( 40 AS INTEGER ) + 15 col2, - NULLIF ( + + 35, + 73 + 60 ) AS col2
----
-25
-35

query I rowsort
SELECT + 51 * - + COALESCE ( - 81, - 12, - 4 )
----
4131

onlyif mysql # aggregate syntax: 
query I rowsort label-4107
SELECT ALL + + MIN( 83 ) * 30
----
2490

skipif mysql # not compatible
query I rowsort label-4107
SELECT ALL + + MIN ( 83 ) * 30
----
2490

onlyif mysql # aggregate syntax: 
query II rowsort label-4108
SELECT COUNT( - 73 ), 88 AS col0
----
1
88

skipif mysql # not compatible
query II rowsort label-4108
SELECT COUNT ( - 73 ), 88 AS col0
----
1
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4109
SELECT MIN( - ( 45 ) )
----
-45

skipif mysql # not compatible
query I rowsort label-4109
SELECT MIN ( - ( 45 ) )
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4110
SELECT ALL + - 47 / - - 44 + + - 11 - + 22 - CAST( NULL AS SIGNED ) - - - 51 * 93
----
NULL

skipif mysql # not compatible
query I rowsort label-4110
SELECT ALL + - 47 / - - 44 + + - 11 - + 22 - CAST ( NULL AS INTEGER ) - - - 51 * 93
----
NULL

query I rowsort
SELECT DISTINCT + + ( - + 72 ) AS col2
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-4112
SELECT DISTINCT - + 82 * - + 60 - - MIN( DISTINCT + 96 )
----
5016

skipif mysql # not compatible
query I rowsort label-4112
SELECT DISTINCT - + 82 * - + 60 - - MIN ( DISTINCT + 96 )
----
5016

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4113
SELECT + 15 * - 15 + - 70 + - 40 / AVG ( ALL - + 41 ) - CASE 82 WHEN - 42 * - COUNT( * ) / - - 77 / + 36 - - 21 + - - 62 * + 7 THEN NULL WHEN + ( + CASE - - 1 WHEN - 50 + + - CAST( - + 76 AS SIGNED ) THEN - CASE - 82 WHEN - 67 THEN + 29 WHEN + 92 THEN + COUNT( * ) END ELSE - 48 END ) * - 63 THEN NULL WHEN 13 * CASE 99 WHEN 89 + - ( - COUNT( * ) ) * CAST( NULLIF ( COALESCE ( - AVG ( ALL 28 ), + 25 * 75 + - 78, NULLIF ( - 95, ( - ( - COUNT( DISTINCT 56 ) ) ) + - MAX( 78 ) ) ), 26 + 54 ) / - CAST( 41 AS SIGNED ) AS SIGNED ) THEN - 53 * + 66 END THEN - 27 ELSE NULL END * 18
----
NULL

skipif mysql # not compatible
query I rowsort label-4113
SELECT + 15 * - 15 + - 70 + - 40 / AVG ( ALL - + 41 ) - CASE 82 WHEN - 42 * - COUNT ( * ) / - - 77 / + 36 - - 21 + - - 62 * + 7 THEN NULL WHEN + ( + CASE - - 1 WHEN - 50 + + - CAST ( - + 76 AS INTEGER ) THEN - CASE - 82 WHEN - 67 THEN + 29 WHEN + 92 THEN + COUNT ( * ) END ELSE - 48 END ) * - 63 THEN NULL WHEN 13 * CASE 99 WHEN 89 + - ( - COUNT ( * ) ) * CAST ( NULLIF ( COALESCE ( - AVG ( ALL 28 ), + 25 * 75 + - 78, NULLIF ( - 95, ( - ( - COUNT ( DISTINCT 56 ) ) ) + - MAX ( 78 ) ) ), 26 + 54 ) / - CAST ( 41 AS INTEGER ) AS INTEGER ) THEN - 53 * + 66 END THEN - 27 ELSE NULL END * 18
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4114
SELECT - 72 * + CAST( - 88 AS SIGNED ) + - - 32 AS col1
----
6368

skipif mysql # not compatible
query I rowsort label-4114
SELECT - 72 * + CAST ( - 88 AS INTEGER ) + - - 32 AS col1
----
6368

query I rowsort
SELECT DISTINCT + ( + - 52 )
----
-52

onlyif mysql # DIV for integer division: 
query II rowsort label-4116
SELECT DISTINCT + 59 * - - 55 DIV + - 5 AS col0, 91 AS col1
----
-649
91

skipif mysql # not compatible
query II rowsort label-4116
SELECT DISTINCT + 59 * - - 55 / + - 5 AS col0, 91 AS col1
----
-649
91

query I rowsort
SELECT ALL + ( - 59 )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-4118
SELECT DISTINCT + - COUNT( * ) * + 1 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4118
SELECT DISTINCT + - COUNT ( * ) * + 1 AS col1
----
-1

query I rowsort
SELECT - + 32 * + ( + + 81 ) AS col0
----
-2592

query I rowsort
SELECT ALL + 56 * - 69 col1
----
-3864

query II rowsort
SELECT NULLIF ( + 34, 78 ), - 33 AS col2
----
34
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-4122
SELECT - ( ( - 7 ) ) DIV - 60
----
0

skipif mysql # not compatible
query I rowsort label-4122
SELECT - ( ( - 7 ) ) / - 60
----
0

query I rowsort
SELECT ALL + 44 * 83 + - 28 + - 29 * - - 5 - + - 90 AS col0
----
3569

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4124
SELECT - CAST( - - 95 AS SIGNED ) + + 90 + + 60
----
55

skipif mysql # not compatible
query I rowsort label-4124
SELECT - CAST ( - - 95 AS INTEGER ) + + 90 + + 60
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4125
SELECT COUNT( - ( 82 ) ), 47 * - COALESCE ( - CAST( NULL AS SIGNED ), - 68, 49 DIV - 41 ) - - MIN( + - 90 ) + + 34 AS col2
----
1
3140

skipif mysql # not compatible
query II rowsort label-4125
SELECT COUNT ( - ( 82 ) ), 47 * - COALESCE ( - CAST ( NULL AS INTEGER ), - 68, 49 / - 41 ) - - MIN ( + - 90 ) + + 34 AS col2
----
1
3140

query I rowsort
SELECT + 30 * - 78 AS col1
----
-2340

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4127
SELECT ALL - MIN( DISTINCT + CAST( - 50 AS SIGNED ) ) * - 23 + + 50 - - 98 + + + COUNT( * ) * 32 + + 97 + 86 col0
----
-787

skipif mysql # not compatible
query I rowsort label-4127
SELECT ALL - MIN ( DISTINCT + CAST ( - 50 AS INTEGER ) ) * - 23 + + 50 - - 98 + + + COUNT ( * ) * 32 + + 97 + 86 col0
----
-787

onlyif mysql # aggregate syntax: 
query I rowsort label-4128
SELECT COUNT( - + 58 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4128
SELECT COUNT ( - + 58 ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4129
SELECT ALL CAST( NULL AS SIGNED ) + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4129
SELECT ALL CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4130
SELECT ALL 49 AS col2, - 64 * 3 + 59 * 45 + + 70 - + - CAST( NULL AS SIGNED ) AS col0
----
49
NULL

skipif mysql # not compatible
query II rowsort label-4130
SELECT ALL 49 AS col2, - 64 * 3 + 59 * 45 + + 70 - + - CAST ( NULL AS INTEGER ) AS col0
----
49
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4131
SELECT + 94 + 31 + COUNT( * )
----
126

skipif mysql # not compatible
query I rowsort label-4131
SELECT + 94 + 31 + COUNT ( * )
----
126

query I rowsort
SELECT + 88 + + - 89
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4133
SELECT DISTINCT CASE COUNT( * ) WHEN + + 87 THEN NULL WHEN - + 49 THEN MIN( - 50 ) + ( + 27 ) END * + - 84 - - - 86 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4133
SELECT DISTINCT CASE COUNT ( * ) WHEN + + 87 THEN NULL WHEN - + 49 THEN MIN ( - 50 ) + ( + 27 ) END * + - 84 - - - 86 AS col2
----
NULL

query I rowsort
SELECT - 58 * + 63 AS col2
----
-3654

onlyif mysql # aggregate syntax: 
query II rowsort label-4135
SELECT 51 AS col2, - MAX( - 23 ) AS col2
----
51
23

skipif mysql # not compatible
query II rowsort label-4135
SELECT 51 AS col2, - MAX ( - 23 ) AS col2
----
51
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4136
SELECT ALL 46 + + 89 * + COUNT( * ) - + 66 + - 58 + - + MAX( ALL + - 4 )
----
15

skipif mysql # not compatible
query I rowsort label-4136
SELECT ALL 46 + + 89 * + COUNT ( * ) - + 66 + - 58 + - + MAX ( ALL + - 4 )
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-4137
SELECT 94, COUNT( * ) AS col1
----
94
1

skipif mysql # not compatible
query II rowsort label-4137
SELECT 94, COUNT ( * ) AS col1
----
94
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4138
SELECT 68 * COUNT( * ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-4138
SELECT 68 * COUNT ( * ) AS col1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4139
SELECT DISTINCT 33 * - + NULLIF ( 56, - COUNT( * ) * - 40 )
----
-1848

skipif mysql # not compatible
query I rowsort label-4139
SELECT DISTINCT 33 * - + NULLIF ( 56, - COUNT ( * ) * - 40 )
----
-1848

query I rowsort
SELECT ALL - ( - + 44 )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4141
SELECT DISTINCT MAX( DISTINCT 32 )
----
32

skipif mysql # not compatible
query I rowsort label-4141
SELECT DISTINCT MAX ( DISTINCT 32 )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4142
SELECT ALL + COUNT( * ) * + 10 AS col0
----
10

skipif mysql # not compatible
query I rowsort label-4142
SELECT ALL + COUNT ( * ) * + 10 AS col0
----
10

query II rowsort
SELECT ALL - 11, 83 AS col2
----
-11
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4144
SELECT + + 55, 47 + + 46 + + CAST( + COUNT( * ) AS SIGNED ) AS col0
----
55
94

skipif mysql # not compatible
query II rowsort label-4144
SELECT + + 55, 47 + + 46 + + CAST ( + COUNT ( * ) AS INTEGER ) AS col0
----
55
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4145
SELECT 88 * + 71 + - CAST( 59 AS SIGNED ) AS col0
----
6189

skipif mysql # not compatible
query I rowsort label-4145
SELECT 88 * + 71 + - CAST ( 59 AS INTEGER ) AS col0
----
6189

query I rowsort
SELECT + 26 * + - 3 * - 80 * - 75 * - + 35 AS col2
----
16380000

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4147
SELECT + + COUNT( * ) * - - CASE - + 33 WHEN - + ( - 24 ) THEN + 22 + - ( 18 ) WHEN - - 56 THEN 93 * + + 27 WHEN + 54 * + - COALESCE ( - 48, CAST( COUNT( * ) AS SIGNED ), - NULLIF ( 15, - 92 ) + + COALESCE ( - COALESCE ( + + 0, + 10 ), 43 ) ) + + 14 * 34 THEN 53 + + 18 END * 4 + 83 * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4147
SELECT + + COUNT ( * ) * - - CASE - + 33 WHEN - + ( - 24 ) THEN + 22 + - ( 18 ) WHEN - - 56 THEN 93 * + + 27 WHEN + 54 * + - COALESCE ( - 48, CAST ( COUNT ( * ) AS INTEGER ), - NULLIF ( 15, - 92 ) + + COALESCE ( - COALESCE ( + + 0, + 10 ), 43 ) ) + + 14 * 34 THEN 53 + + 18 END * 4 + 83 * - COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT - - 18 AS col2
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4149
SELECT ALL - MAX( - - 39 )
----
-39

skipif mysql # not compatible
query I rowsort label-4149
SELECT ALL - MAX ( - - 39 )
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4150
SELECT - 58 DIV 30 + 83 + + + 93 - + - COUNT( * ) AS col0
----
176

skipif mysql # not compatible
query I rowsort label-4150
SELECT - 58 / 30 + 83 + + + 93 - + - COUNT ( * ) AS col0
----
176

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4151
SELECT ALL AVG ( ALL + 0 ) * - 89 * + CAST( NULL AS SIGNED ) * - + 57
----
NULL

skipif mysql # not compatible
query I rowsort label-4151
SELECT ALL AVG ( ALL + 0 ) * - 89 * + CAST ( NULL AS INTEGER ) * - + 57
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4152
SELECT ALL - + 36, 14 * - + ( + CAST( NULL AS SIGNED ) ) col2
----
-36
NULL

skipif mysql # not compatible
query II rowsort label-4152
SELECT ALL - + 36, 14 * - + ( + CAST ( NULL AS INTEGER ) ) col2
----
-36
NULL

query I rowsort
SELECT ALL 76 * - 41
----
-3116

onlyif mysql # aggregate syntax: 
query I rowsort label-4154
SELECT ALL - + SUM( DISTINCT - 89 ) + - 97 AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-4154
SELECT ALL - + SUM ( DISTINCT - 89 ) + - 97 AS col0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-4155
SELECT - - COALESCE ( 33, 75, - 52 ) * - + 2 * + 65 + + 37 - 97 + 1 * - - 20 - + COUNT( * ) + + 14 AS col1
----
-4317

skipif mysql # not compatible
query I rowsort label-4155
SELECT - - COALESCE ( 33, 75, - 52 ) * - + 2 * + 65 + + 37 - 97 + 1 * - - 20 - + COUNT ( * ) + + 14 AS col1
----
-4317

query I rowsort
SELECT DISTINCT + 52 + - 19 AS col2
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4157
SELECT ALL - SUM( - 83 ) + - 36 + + + 35 AS col2, CAST( + CASE + NULLIF ( - 78, - 99 + 89 ) WHEN NULLIF ( + - 29, 41 ) * - 67 THEN - ( - 91 ) END AS SIGNED )
----
82
NULL

skipif mysql # not compatible
query II rowsort label-4157
SELECT ALL - SUM ( - 83 ) + - 36 + + + 35 AS col2, CAST ( + CASE + NULLIF ( - 78, - 99 + 89 ) WHEN NULLIF ( + - 29, 41 ) * - 67 THEN - ( - 91 ) END AS INTEGER )
----
82
NULL

query I rowsort
SELECT DISTINCT + 43 + - 2 AS col1
----
41

query I rowsort
SELECT 98 * + NULLIF ( 63, + + ( + + 98 ) + - + 38 + - AVG ( + + 33 ) * + 52 / - - 23 ) * + ( 69 ) AS col0
----
426006

onlyif mysql # aggregate syntax: 
query I rowsort label-4160
SELECT ALL + COUNT( * ) * 40 * + 86 AS col2
----
3440

skipif mysql # not compatible
query I rowsort label-4160
SELECT ALL + COUNT ( * ) * 40 * + 86 AS col2
----
3440

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4161
SELECT DISTINCT - SUM( ALL CAST( NULL AS SIGNED ) ) + - 93
----
NULL

skipif mysql # not compatible
query I rowsort label-4161
SELECT DISTINCT - SUM ( ALL CAST ( NULL AS INTEGER ) ) + - 93
----
NULL

query I rowsort
SELECT ALL + 26 * - 36
----
-936

query I rowsort
SELECT DISTINCT 41 + - - 83 AS col0
----
124

onlyif mysql # DIV for integer division: 
query I rowsort label-4164
SELECT 42 DIV - - 51 * - 77 * - ( - + 94 ) * 85 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4164
SELECT 42 / - - 51 * - 77 * - ( - + 94 ) * 85 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4165
SELECT 13 * + + ( - - CAST( - ( 65 ) AS SIGNED ) ) col2
----
-845

skipif mysql # not compatible
query I rowsort label-4165
SELECT 13 * + + ( - - CAST ( - ( 65 ) AS INTEGER ) ) col2
----
-845

onlyif mysql # aggregate syntax: 
query I rowsort label-4166
SELECT ALL + COUNT( * ) - - COUNT( * ) * - ( + 79 ) col1
----
-78

skipif mysql # not compatible
query I rowsort label-4166
SELECT ALL + COUNT ( * ) - - COUNT ( * ) * - ( + 79 ) col1
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4167
SELECT 23 - 5 * - 35 + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4167
SELECT 23 - 5 * - 35 + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 32 - - 7 AS col0
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-4169
SELECT 68 DIV 91 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4169
SELECT 68 / 91 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4170
SELECT ALL 40 DIV - - ( + + COUNT( DISTINCT 2 ) ) col2
----
40

skipif mysql # not compatible
query I rowsort label-4170
SELECT ALL 40 / - - ( + + COUNT ( DISTINCT 2 ) ) col2
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4171
SELECT 39 * + MIN( ALL CAST( NULL AS SIGNED ) ) * 85 + - 66
----
NULL

skipif mysql # not compatible
query I rowsort label-4171
SELECT 39 * + MIN ( ALL CAST ( NULL AS INTEGER ) ) * 85 + - 66
----
NULL

query I rowsort
SELECT ALL + 36 - - 34
----
70

query II rowsort
SELECT 47 * + + 95 col1, - 83 * - + 72 - 82 AS col2
----
4465
5894

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4174
SELECT ALL - MAX( DISTINCT - 34 ) DIV - + ( ( + 84 ) ) * + CASE - 64 WHEN 67 * 88 * - 63 THEN ( - - 52 ) WHEN 2 + + 9 * - + 91 THEN NULL ELSE + 80 DIV + 29 + - 97 * - + 0 * MIN( 93 ) - - + 64 END AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4174
SELECT ALL - MAX ( DISTINCT - 34 ) / - + ( ( + 84 ) ) * + CASE - 64 WHEN 67 * 88 * - 63 THEN ( - - 52 ) WHEN 2 + + 9 * - + 91 THEN NULL ELSE + 80 / + 29 + - 97 * - + 0 * MIN ( 93 ) - - + 64 END AS col2
----
0

query I rowsort
SELECT DISTINCT + 19 - - ( - 37 )
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4176
SELECT ALL - - 2 / + 95 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4176
SELECT ALL - - 2 / + 95 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4177
SELECT ALL CAST( NULL AS SIGNED ) * 3 - + 23 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4177
SELECT ALL CAST ( NULL AS INTEGER ) * 3 - + 23 AS col0
----
NULL

query I rowsort
SELECT + 27 * - 69 col2
----
-1863

query I rowsort
SELECT 26 + - 76
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-4180
SELECT ALL - NULLIF ( 13, - MAX( ALL 26 ) ) * + ( + ( - 92 ) )
----
1196

skipif mysql # not compatible
query I rowsort label-4180
SELECT ALL - NULLIF ( 13, - MAX ( ALL 26 ) ) * + ( + ( - 92 ) )
----
1196

query I rowsort
SELECT 46 * - 77 AS col1
----
-3542

onlyif mysql # aggregate syntax: 
query I rowsort label-4182
SELECT - COUNT( * ) * 93 * - + 7 + 40
----
691

skipif mysql # not compatible
query I rowsort label-4182
SELECT - COUNT ( * ) * 93 * - + 7 + 40
----
691

query I rowsort
SELECT 26 * + 46 col2
----
1196

query I rowsort
SELECT ALL - 25 * + 85 + - 53 + 77 AS col0
----
-2101

onlyif mysql # aggregate syntax: 
query I rowsort label-4185
SELECT ALL - COUNT( * ) + - ( + MIN( - 77 ) ) + 76 * + - COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4185
SELECT ALL - COUNT ( * ) + - ( + MIN ( - 77 ) ) + 76 * + - COUNT ( * ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4186
SELECT - 17 + + 24 AS col2, - ( - COUNT( * ) ) + - + 94 AS col0
----
7
-93

skipif mysql # not compatible
query II rowsort label-4186
SELECT - 17 + + 24 AS col2, - ( - COUNT ( * ) ) + - + 94 AS col0
----
7
-93

query I rowsort
SELECT + COALESCE ( + 27, - 84 - + 20 ) * + 23
----
621

onlyif mysql # aggregate syntax: 
query II rowsort label-4188
SELECT + - MIN( - - 68 ), + 18 * 79 + 43 col0
----
-68
1465

skipif mysql # not compatible
query II rowsort label-4188
SELECT + - MIN ( - - 68 ), + 18 * 79 + 43 col0
----
-68
1465

onlyif mysql # aggregate syntax: 
query I rowsort label-4189
SELECT ALL 10 + + COUNT( * )
----
11

skipif mysql # not compatible
query I rowsort label-4189
SELECT ALL 10 + + COUNT ( * )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4190
SELECT MAX( ALL + 19 ) AS col0
----
19

skipif mysql # not compatible
query I rowsort label-4190
SELECT MAX ( ALL + 19 ) AS col0
----
19

query I rowsort
SELECT 98 + 70
----
168

query I rowsort
SELECT 33 * - 61
----
-2013

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4193
SELECT CAST( NULL AS SIGNED ) * - COALESCE ( - - 96, + 85, 88 + + + NULLIF ( + - 94, 72 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4193
SELECT CAST ( NULL AS INTEGER ) * - COALESCE ( - - 96, + 85, 88 + + + NULLIF ( + - 94, 72 ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4194
SELECT ALL COUNT( * ) + - + SUM( ALL 68 ) + - - 65 * + 51 AS col2
----
3248

skipif mysql # not compatible
query I rowsort label-4194
SELECT ALL COUNT ( * ) + - + SUM ( ALL 68 ) + - - 65 * + 51 AS col2
----
3248

query I rowsort
SELECT DISTINCT 83 + - 78 - + 53 AS col2
----
-48

query I rowsort
SELECT + NULLIF ( - 27, + + 82 ) AS col1
----
-27

query II rowsort
SELECT DISTINCT - 59, 25 + - 73 AS col2
----
-59
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-4198
SELECT ALL - SUM( - - 47 ) AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-4198
SELECT ALL - SUM ( - - 47 ) AS col1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-4199
SELECT COUNT( * ) + - + 53
----
-52

skipif mysql # not compatible
query I rowsort label-4199
SELECT COUNT ( * ) + - + 53
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-4200
SELECT - NULLIF ( 4, - NULLIF ( 75, MAX( + 3 ) ) ) col2
----
-4

skipif mysql # not compatible
query I rowsort label-4200
SELECT - NULLIF ( 4, - NULLIF ( 75, MAX ( + 3 ) ) ) col2
----
-4

query I rowsort
SELECT 67 * - 12 + 7 AS col2
----
-797

query I rowsort
SELECT - 58 * 12 AS col1
----
-696

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4203
SELECT - 29 + - SUM( DISTINCT + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4203
SELECT - 29 + - SUM ( DISTINCT + CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4204
SELECT - COUNT( * ) - + 13 + - 40
----
-54

skipif mysql # not compatible
query I rowsort label-4204
SELECT - COUNT ( * ) - + 13 + - 40
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-4205
SELECT - 5 + - COUNT( * )
----
-6

skipif mysql # not compatible
query I rowsort label-4205
SELECT - 5 + - COUNT ( * )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4206
SELECT - SUM( - 1 ) + 68
----
69

skipif mysql # not compatible
query I rowsort label-4206
SELECT - SUM ( - 1 ) + 68
----
69

query I rowsort
SELECT ALL CASE 57 WHEN 78 THEN - ( - 64 ) WHEN - 56 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4208
SELECT ALL COUNT( + + 64 )
----
1

skipif mysql # not compatible
query I rowsort label-4208
SELECT ALL COUNT ( + + 64 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4209
SELECT ALL - 32 * COALESCE ( + + 12, - 68, 38 * - COUNT( * ) )
----
-384

skipif mysql # not compatible
query I rowsort label-4209
SELECT ALL - 32 * COALESCE ( + + 12, - 68, 38 * - COUNT ( * ) )
----
-384

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4210
SELECT - ( - - 48 ) * - NULLIF ( 64, - MAX( 20 ) * - - 35 * 53 * - CAST( NULL AS DECIMAL ) + + + SUM( + + 35 ) + + MAX( - 51 ) ) * + 37
----
113664

skipif mysql # not compatible
query I rowsort label-4210
SELECT - ( - - 48 ) * - NULLIF ( 64, - MAX ( 20 ) * - - 35 * 53 * - CAST ( NULL AS REAL ) + + + SUM ( + + 35 ) + + MAX ( - 51 ) ) * + 37
----
113664

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4211
SELECT NULLIF ( + + 3, CAST( NULL AS SIGNED ) )
----
3

skipif mysql # not compatible
query I rowsort label-4211
SELECT NULLIF ( + + 3, CAST ( NULL AS INTEGER ) )
----
3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4212
SELECT + + CAST( 91 AS SIGNED ) + 11 DIV + + 97 AS col0
----
91

skipif mysql # not compatible
query I rowsort label-4212
SELECT + + CAST ( 91 AS INTEGER ) + 11 / + + 97 AS col0
----
91

query II rowsort
SELECT - 82 AS col2, 90 AS col1
----
-82
90

onlyif mysql # DIV for integer division: 
query I rowsort label-4214
SELECT + 8 DIV + 83 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4214
SELECT + 8 / + 83 AS col2
----
0

query I rowsort
SELECT DISTINCT 96 + 67 AS col0
----
163

onlyif mysql # aggregate syntax: 
query I rowsort label-4216
SELECT ALL + 24 + - + COUNT( * ) - - 25 * 65 AS col1
----
1648

skipif mysql # not compatible
query I rowsort label-4216
SELECT ALL + 24 + - + COUNT ( * ) - - 25 * 65 AS col1
----
1648

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4217
SELECT - - COALESCE ( + 42, + + 27 * - 76 + + 61 + - + COUNT( * ) * - ( + 3 ) DIV + 90 * - 64 )
----
42

skipif mysql # not compatible
query I rowsort label-4217
SELECT - - COALESCE ( + 42, + + 27 * - 76 + + 61 + - + COUNT ( * ) * - ( + 3 ) / + 90 * - 64 )
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4218
SELECT ALL + + ( + + ( + NULLIF ( + + CAST( NULL AS SIGNED ), - 40 ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4218
SELECT ALL + + ( + + ( + NULLIF ( + + CAST ( NULL AS INTEGER ), - 40 ) ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4219
SELECT DISTINCT COUNT( * ) * + + 22 * + 29 + + MIN( DISTINCT - ( + 86 ) ) + + + CASE - ( COUNT( * ) ) WHEN + - 98 - ( + COUNT( * ) ) + - 94 THEN NULL WHEN - 93 THEN + - 62 END + ( + 36 ) * 64 AS col0, - 71 + - CASE - COUNT( * ) WHEN - COUNT( * ) + COALESCE ( + COUNT( - + 46 ), + ( - 69 ) * - 27 + 24 * - 6 ) THEN + 26 + + 61 END + + 47 * + 35 col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4219
SELECT DISTINCT COUNT ( * ) * + + 22 * + 29 + + MIN ( DISTINCT - ( + 86 ) ) + + + CASE - ( COUNT ( * ) ) WHEN + - 98 - ( + COUNT ( * ) ) + - 94 THEN NULL WHEN - 93 THEN + - 62 END + ( + 36 ) * 64 AS col0, - 71 + - CASE - COUNT ( * ) WHEN - COUNT ( * ) + COALESCE ( + COUNT ( - + 46 ), + ( - 69 ) * - 27 + 24 * - 6 ) THEN + 26 + + 61 END + + 47 * + 35 col1
----
NULL
NULL

query I rowsort
SELECT + - 44 * 59 + 69 AS col1
----
-2527

onlyif mysql # aggregate syntax: 
query I rowsort label-4221
SELECT SUM( 24 ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-4221
SELECT SUM ( 24 ) AS col0
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4222
SELECT DISTINCT - 31 * + - 7 + + 84 + - MAX( - 35 ) DIV + 84 AS col1
----
301

skipif mysql # not compatible
query I rowsort label-4222
SELECT DISTINCT - 31 * + - 7 + + 84 + - MAX ( - 35 ) / + 84 AS col1
----
301

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4223
SELECT ALL + - COUNT( * ) AS col0, CAST( - CAST( - - COUNT( * ) AS SIGNED ) AS SIGNED ) * - + 28 + 12 AS col0
----
-1
40

skipif mysql # not compatible
query II rowsort label-4223
SELECT ALL + - COUNT ( * ) AS col0, CAST ( - CAST ( - - COUNT ( * ) AS INTEGER ) AS INTEGER ) * - + 28 + 12 AS col0
----
-1
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4224
SELECT + + ( + + 22 ) * 94 * - CAST( NULL AS SIGNED ) * - 78 + - 11 + - COUNT( * ) + 87 * - 53 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4224
SELECT + + ( + + 22 ) * 94 * - CAST ( NULL AS INTEGER ) * - 78 + - 11 + - COUNT ( * ) + 87 * - 53 col1
----
NULL

query I rowsort
SELECT + + 61 - - 72 col2
----
133

query I rowsort
SELECT ALL 70 * 41 + - 76
----
2794

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4227
SELECT ALL - CAST( NULL AS SIGNED ) * + - 36 * - 27 + - + 53
----
NULL

skipif mysql # not compatible
query I rowsort label-4227
SELECT ALL - CAST ( NULL AS INTEGER ) * + - 36 * - 27 + - + 53
----
NULL

query I rowsort
SELECT CASE + 85 WHEN + 42 THEN + 35 / + + 45 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT + 71 * 98 AS col2
----
6958

onlyif mysql # DIV for integer division: 
query I rowsort label-4230
SELECT - NULLIF ( + + 50, AVG ( DISTINCT + ( 61 ) ) ) * 66 + 37 * - ( ( 18 ) ) * - + 67 - + 83 DIV - 50 AS col2
----
41323

skipif mysql # not compatible
query I rowsort label-4230
SELECT - NULLIF ( + + 50, AVG ( DISTINCT + ( 61 ) ) ) * 66 + 37 * - ( ( 18 ) ) * - + 67 - + 83 / - 50 AS col2
----
41323

query I rowsort
SELECT + 35 * - 2
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4232
SELECT CASE + 38 WHEN COUNT( * ) * + 37 THEN 38 / 55 / - COUNT( * ) + + ( + 97 ) + + MAX( ALL CAST( + + 31 AS SIGNED ) ) - 59 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4232
SELECT CASE + 38 WHEN COUNT ( * ) * + 37 THEN 38 / 55 / - COUNT ( * ) + + ( + 97 ) + + MAX ( ALL CAST ( + + 31 AS INTEGER ) ) - 59 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4233
SELECT - COUNT( DISTINCT 73 ) DIV + 52 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4233
SELECT - COUNT ( DISTINCT 73 ) / + 52 AS col2
----
0

query II rowsort
SELECT + ( 88 ) AS col2, + 64 AS col2
----
88
64

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4235
SELECT - 35 + - 63 AS col0, SUM( + 37 ) + - ( + CASE 5 WHEN CAST( 1 AS DECIMAL ) + + 97 THEN - 58 ELSE 98 * 12 END ) AS col2
----
-98
-1139

skipif mysql # not compatible
query II rowsort label-4235
SELECT - 35 + - 63 AS col0, SUM ( + 37 ) + - ( + CASE 5 WHEN CAST ( 1 AS REAL ) + + 97 THEN - 58 ELSE 98 * 12 END ) AS col2
----
-98
-1139

query II rowsort
SELECT ALL + 6 AS col2, + 88 + + - 16 AS col1
----
6
72

query I rowsort
SELECT + 5 * 48
----
240

query I rowsort
SELECT ALL COALESCE ( 92, - - 32, - 74 ) * + 15
----
1380

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4239
SELECT ALL CASE 55 WHEN 33 THEN 78 * 70 WHEN - 31 THEN 12 + 34 ELSE 17 + - 51 * + 38 * - - ( + CAST( + 50 AS SIGNED ) ) END
----
-96883

skipif mysql # not compatible
query I rowsort label-4239
SELECT ALL CASE 55 WHEN 33 THEN 78 * 70 WHEN - 31 THEN 12 + 34 ELSE 17 + - 51 * + 38 * - - ( + CAST ( + 50 AS INTEGER ) ) END
----
-96883

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4240
SELECT + COUNT( * ) DIV + 15 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4240
SELECT + COUNT ( * ) / + 15 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4241
SELECT ALL NULLIF ( - ( 26 ), - COUNT( * ) ) AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-4241
SELECT ALL NULLIF ( - ( 26 ), - COUNT ( * ) ) AS col2
----
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4242
SELECT - COUNT( DISTINCT - 58 ) DIV 73 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4242
SELECT - COUNT ( DISTINCT - 58 ) / 73 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4243
SELECT ALL + 50, - 11 DIV 47 + + - SUM( 83 ) AS col1
----
50
-83

skipif mysql # not compatible
query II rowsort label-4243
SELECT ALL + 50, - 11 / 47 + + - SUM ( 83 ) AS col1
----
50
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-4244
SELECT - MIN( - 78 ) * - + 82 + + + 25 + - MIN( 45 ) * + - COUNT( * ) + - NULLIF ( - 72, CASE - + CASE + - 55 WHEN + 70 THEN - + 45 + + - ( 81 ) * + 7 END WHEN 74 + 98 * - 28 + + 53 THEN + COUNT( * ) END ) - - 42 + - + 15 * + NULLIF ( 67, - 94 ) * + 5
----
-11237

skipif mysql # not compatible
query I rowsort label-4244
SELECT - MIN ( - 78 ) * - + 82 + + + 25 + - MIN ( 45 ) * + - COUNT ( * ) + - NULLIF ( - 72, CASE - + CASE + - 55 WHEN + 70 THEN - + 45 + + - ( 81 ) * + 7 END WHEN 74 + 98 * - 28 + + 53 THEN + COUNT ( * ) END ) - - 42 + - + 15 * + NULLIF ( 67, - 94 ) * + 5
----
-11237

query I rowsort
SELECT + 23 - + 17 * 92 - + 69 AS col1
----
-1610

query II rowsort
SELECT - 49 col1, + 3
----
-49
3

query I rowsort
SELECT ALL - - 72 + + 95 AS col2
----
167

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4248
SELECT + CAST( NULL AS SIGNED ) - + - COUNT( * ) + - 40 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4248
SELECT + CAST ( NULL AS INTEGER ) - + - COUNT ( * ) + - 40 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4249
SELECT ALL CASE + - 66 WHEN + + 38 THEN NULL WHEN ( - + CASE WHEN COUNT( * ) <= - - 10 + + 83 THEN COUNT( * ) * ( + 55 ) * - 45 + - - 70 / + COUNT( * ) - - - 35 END ) THEN + 68 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4249
SELECT ALL CASE + - 66 WHEN + + 38 THEN NULL WHEN ( - + CASE WHEN COUNT ( * ) <= - - 10 + + 83 THEN COUNT ( * ) * ( + 55 ) * - 45 + - - 70 / + COUNT ( * ) - - - 35 END ) THEN + 68 END
----
NULL

query I rowsort
SELECT - - 98 * + 93
----
9114

query I rowsort
SELECT DISTINCT - 87 + + 47
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-4252
SELECT - SUM( ALL 14 )
----
-14

skipif mysql # not compatible
query I rowsort label-4252
SELECT - SUM ( ALL 14 )
----
-14

query I rowsort
SELECT ALL 28 + + - 96
----
-68

query I rowsort
SELECT ALL - 37 + - 60
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4255
SELECT DISTINCT + + 30 + + COUNT( * )
----
31

skipif mysql # not compatible
query I rowsort label-4255
SELECT DISTINCT + + 30 + + COUNT ( * )
----
31

query II rowsort
SELECT - - 42, 64 AS col2
----
42
64

query I rowsort
SELECT DISTINCT - 51 + - 9 * - ( - 64 ) + - - 7 AS col0
----
-620

onlyif mysql # aggregate syntax: 
query I rowsort label-4258
SELECT ALL + COUNT( DISTINCT - 72 ) + + COALESCE ( + - 82, + + 37 + 5 * - + 44 + - 67, 49 ) + + 95
----
14

skipif mysql # not compatible
query I rowsort label-4258
SELECT ALL + COUNT ( DISTINCT - 72 ) + + COALESCE ( + - 82, + + 37 + 5 * - + 44 + - 67, 49 ) + + 95
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4259
SELECT - - 32, 1 + - - COUNT( * ) - 47 * COUNT( * ) DIV - 54 AS col0
----
32
2

skipif mysql # not compatible
query II rowsort label-4259
SELECT - - 32, 1 + - - COUNT ( * ) - 47 * COUNT ( * ) / - 54 AS col0
----
32
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4260
SELECT DISTINCT - 94 DIV + + 8 - NULLIF ( - - 39, + 35 + - 10 - + 84 + + - 21 DIV - COUNT( * ) - - 2 + - COUNT( * ) * - 85 + ( - + 17 ) ) + + - 12 * - + 4 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-4260
SELECT DISTINCT - 94 / + + 8 - NULLIF ( - - 39, + 35 + - 10 - + 84 + + - 21 / - COUNT ( * ) - - 2 + - COUNT ( * ) * - 85 + ( - + 17 ) ) + + - 12 * - + 4 AS col2
----
-2

query II rowsort
SELECT - 71 * + 38 AS col0, 57 AS col2
----
-2698
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4262
SELECT ALL + CASE 18 WHEN + COALESCE ( - COUNT( * ), 97, - + COUNT( * ) ) THEN + 12 * + + 87 END / - + COUNT( DISTINCT - 67 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4262
SELECT ALL + CASE 18 WHEN + COALESCE ( - COUNT ( * ), 97, - + COUNT ( * ) ) THEN + 12 * + + 87 END / - + COUNT ( DISTINCT - 67 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4263
SELECT ALL CAST( + NULLIF ( + - COUNT( * ), + 65 - + 60 ) AS SIGNED ) * - COALESCE ( COUNT( * ), + + MAX( DISTINCT - + 24 ) + 64 ) * + - 19 - - COALESCE ( - + COALESCE ( 33, - 85 ), 14 ) DIV + 45 + + 67
----
48

skipif mysql # not compatible
query I rowsort label-4263
SELECT ALL CAST ( + NULLIF ( + - COUNT ( * ), + 65 - + 60 ) AS INTEGER ) * - COALESCE ( COUNT ( * ), + + MAX ( DISTINCT - + 24 ) + 64 ) * + - 19 - - COALESCE ( - + COALESCE ( 33, - 85 ), 14 ) / + 45 + + 67
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4264
SELECT - 71 * + 44 DIV - 4 * COUNT( * ) - - ( - 94 ) * - MAX( + 61 ) AS col1
----
6515

skipif mysql # not compatible
query I rowsort label-4264
SELECT - 71 * + 44 / - 4 * COUNT ( * ) - - ( - 94 ) * - MAX ( + 61 ) AS col1
----
6515

query I rowsort
SELECT 26 * - 2 col0
----
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-4266
SELECT ALL - 4 * + COUNT( * ) AS col1, - 85 * - ( + 73 ) AS col0
----
-4
6205

skipif mysql # not compatible
query II rowsort label-4266
SELECT ALL - 4 * + COUNT ( * ) AS col1, - 85 * - ( + 73 ) AS col0
----
-4
6205

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4267
SELECT COUNT( - 30 ) * + - 69 + + 80 - - - 23 DIV 30 * + - 61 + + 19 AS col0
----
30

skipif mysql # not compatible
query I rowsort label-4267
SELECT COUNT ( - 30 ) * + - 69 + + 80 - - - 23 / 30 * + - 61 + + 19 AS col0
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4268
SELECT + 27 * - 97 * + COUNT( * ) * + 6 - ( CAST( NULL AS SIGNED ) ) / + 18 * + CAST( NULL AS SIGNED ) * + - 77 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4268
SELECT + 27 * - 97 * + COUNT ( * ) * + 6 - ( CAST ( NULL AS INTEGER ) ) / + 18 * + CAST ( NULL AS INTEGER ) * + - 77 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4269
SELECT DISTINCT 11 * - MIN( - 44 ) * 1 - + 21
----
463

skipif mysql # not compatible
query I rowsort label-4269
SELECT DISTINCT 11 * - MIN ( - 44 ) * 1 - + 21
----
463

onlyif mysql # aggregate syntax: 
query I rowsort label-4270
SELECT 67 - COUNT( * )
----
66

skipif mysql # not compatible
query I rowsort label-4270
SELECT 67 - COUNT ( * )
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-4271
SELECT ALL 57 DIV - 72
----
0

skipif mysql # not compatible
query I rowsort label-4271
SELECT ALL 57 / - 72
----
0

query I rowsort
SELECT - 12 * - 44 + - 35 * - + 49
----
2243

onlyif mysql # DIV for integer division: 
query I rowsort label-4273
SELECT + 81 DIV - - 40 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-4273
SELECT + 81 / - - 40 AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4274
SELECT ALL - 49 + + COUNT( * )
----
-48

skipif mysql # not compatible
query I rowsort label-4274
SELECT ALL - 49 + + COUNT ( * )
----
-48

query I rowsort
SELECT + 20 + - - 96
----
116

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4276
SELECT CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4276
SELECT CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL 73 + 36 AS col1
----
109

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4278
SELECT + 48 DIV - + 59 AS col1, - COUNT( ( + 56 ) ) * + - SUM( 2 )
----
0
2

skipif mysql # not compatible
query II rowsort label-4278
SELECT + 48 / - + 59 AS col1, - COUNT ( ( + 56 ) ) * + - SUM ( 2 )
----
0
2

query I rowsort
SELECT ALL COALESCE ( + - 72, + 89 ) + - + 74 * - - 71 + - 69 + 41
----
-5354

onlyif mysql # aggregate syntax: 
query II rowsort label-4280
SELECT COUNT( - - 90 ) + 50 col2, 3 AS col2
----
51
3

skipif mysql # not compatible
query II rowsort label-4280
SELECT COUNT ( - - 90 ) + 50 col2, 3 AS col2
----
51
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4281
SELECT ALL + COALESCE ( - + NULLIF ( 58, 8 ), CASE - 74 WHEN + 26 * - 24 + - 67 + + - ( + 7 ) + - + MAX( DISTINCT + 60 ) * + 24 * - + 84 THEN 25 END ) AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-4281
SELECT ALL + COALESCE ( - + NULLIF ( 58, 8 ), CASE - 74 WHEN + 26 * - 24 + - 67 + + - ( + 7 ) + - + MAX ( DISTINCT + 60 ) * + 24 * - + 84 THEN 25 END ) AS col1
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4282
SELECT DISTINCT + 14 - 90 AS col1, CAST( NULL AS SIGNED )
----
-76
NULL

skipif mysql # not compatible
query II rowsort label-4282
SELECT DISTINCT + 14 - 90 AS col1, CAST ( NULL AS INTEGER )
----
-76
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4283
SELECT MIN( DISTINCT + 16 ) col2, CAST( - COUNT( * ) AS SIGNED ) col2
----
16
-1

skipif mysql # not compatible
query II rowsort label-4283
SELECT MIN ( DISTINCT + 16 ) col2, CAST ( - COUNT ( * ) AS INTEGER ) col2
----
16
-1

query I rowsort
SELECT ALL + + 53 * + 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4285
SELECT ALL ( - COUNT( * ) ) * - + 35 * + 54
----
1890

skipif mysql # not compatible
query I rowsort label-4285
SELECT ALL ( - COUNT ( * ) ) * - + 35 * + 54
----
1890

onlyif mysql # aggregate syntax: 
query II rowsort label-4286
SELECT DISTINCT + 89 * - ( + 11 ) AS col1, + COUNT( * ) + + + 69 + - 16 * 47
----
-979
-682

skipif mysql # not compatible
query II rowsort label-4286
SELECT DISTINCT + 89 * - ( + 11 ) AS col1, + COUNT ( * ) + + + 69 + - 16 * 47
----
-979
-682

query I rowsort
SELECT 36 * 32
----
1152

onlyif mysql # aggregate syntax: 
query II rowsort label-4288
SELECT ALL + MIN( DISTINCT + - ( + 77 ) ) * 30 col2, 74
----
-2310
74

skipif mysql # not compatible
query II rowsort label-4288
SELECT ALL + MIN ( DISTINCT + - ( + 77 ) ) * 30 col2, 74
----
-2310
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4289
SELECT CAST( NULL AS SIGNED ) * - 8 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4289
SELECT CAST ( NULL AS INTEGER ) * - 8 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4290
SELECT - 67 DIV - 62 + 86 DIV + + 38 col0
----
3

skipif mysql # not compatible
query I rowsort label-4290
SELECT - 67 / - 62 + 86 / + + 38 col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4291
SELECT ALL - 17 - - 98 + + COUNT( * ) AS col2
----
82

skipif mysql # not compatible
query I rowsort label-4291
SELECT ALL - 17 - - 98 + + COUNT ( * ) AS col2
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-4292
SELECT 26 DIV + 25 col2
----
1

skipif mysql # not compatible
query I rowsort label-4292
SELECT 26 / + 25 col2
----
1

query I rowsort
SELECT - 4 * ( - + 36 ) + - 68 AS col2
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-4294
SELECT DISTINCT + 35 DIV 1
----
35

skipif mysql # not compatible
query I rowsort label-4294
SELECT DISTINCT + 35 / 1
----
35

query I rowsort
SELECT ALL + 18 * + 9 AS col0
----
162

onlyif mysql # DIV for integer division: 
query I rowsort label-4296
SELECT 51 DIV + + 73
----
0

skipif mysql # not compatible
query I rowsort label-4296
SELECT 51 / + + 73
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4297
SELECT ALL - CAST( NULL AS SIGNED ) / + + 51 * + + ( 55 ) * - ( - 55 ) + - - COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4297
SELECT ALL - CAST ( NULL AS INTEGER ) / + + 51 * + + ( 55 ) * - ( - 55 ) + - - COUNT ( * ) col1
----
NULL

query I rowsort
SELECT ALL 70 + + 27 AS col1
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4299
SELECT ALL - 18 * - COUNT( * ) * - 34 * + 22 * + 51
----
-686664

skipif mysql # not compatible
query I rowsort label-4299
SELECT ALL - 18 * - COUNT ( * ) * - 34 * + 22 * + 51
----
-686664

onlyif mysql # aggregate syntax: 
query I rowsort label-4300
SELECT COUNT( * ) * + COALESCE ( + 91, + 59, - 37 ) + - + 96 AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-4300
SELECT COUNT ( * ) * + COALESCE ( + 91, + 59, - 37 ) + - + 96 AS col1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4301
SELECT DISTINCT + 55 * MAX( - 38 )
----
-2090

skipif mysql # not compatible
query I rowsort label-4301
SELECT DISTINCT + 55 * MAX ( - 38 )
----
-2090

onlyif mysql # aggregate syntax: 
query II rowsort label-4302
SELECT MAX( DISTINCT 50 ) * - 71 AS col0, ( + - 0 ) AS col2
----
-3550
0

skipif mysql # not compatible
query II rowsort label-4302
SELECT MAX ( DISTINCT 50 ) * - 71 AS col0, ( + - 0 ) AS col2
----
-3550
0

query I rowsort
SELECT ALL + 46 + + 69 AS col2
----
115

query II rowsort
SELECT 30 AS col0, 57 + + 66 + + + 29 AS col1
----
30
152

onlyif mysql # aggregate syntax: 
query I rowsort label-4305
SELECT DISTINCT - COUNT( * ) + + 43 + - 51 AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-4305
SELECT DISTINCT - COUNT ( * ) + + 43 + - 51 AS col2
----
-9

query I rowsort
SELECT ALL - 17 + - 0
----
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4307
SELECT - NULLIF ( NULLIF ( - - COALESCE ( + 27, MIN( ( - 78 ) ) * + 7 DIV - 79 - 71 ), - COUNT( * ) + - + 61 ), - 28 * - CASE - 35 WHEN + 48 + 62 THEN - 44 WHEN + 93 THEN NULL ELSE 54 END * - MAX( ALL + - 66 ) * 23 DIV + + 50 - - 97 - + 66 DIV + + COUNT( * ) + + 98 + + COUNT( * ) ) col2
----
-27

skipif mysql # not compatible
query I rowsort label-4307
SELECT - NULLIF ( NULLIF ( - - COALESCE ( + 27, MIN ( ( - 78 ) ) * + 7 / - 79 - 71 ), - COUNT ( * ) + - + 61 ), - 28 * - CASE - 35 WHEN + 48 + 62 THEN - 44 WHEN + 93 THEN NULL ELSE 54 END * - MAX ( ALL + - 66 ) * 23 / + + 50 - - 97 - + 66 / + + COUNT ( * ) + + 98 + + COUNT ( * ) ) col2
----
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4308
SELECT DISTINCT ( - 99 ) DIV - 25 + + COUNT( ALL + + 80 ) + - - COUNT( * ) * + 34 AS col1
----
38

skipif mysql # not compatible
query I rowsort label-4308
SELECT DISTINCT ( - 99 ) / - 25 + + COUNT ( ALL + + 80 ) + - - COUNT ( * ) * + 34 AS col1
----
38

query I rowsort
SELECT ALL + 76 - 15 AS col1
----
61

query I rowsort
SELECT 72 - - 48 - - 95 + + - 80 * 14
----
-905

onlyif mysql # aggregate syntax: 
query I rowsort label-4311
SELECT ALL - SUM( + 14 )
----
-14

skipif mysql # not compatible
query I rowsort label-4311
SELECT ALL - SUM ( + 14 )
----
-14

query III rowsort
SELECT ALL 80, + CASE + 60 WHEN - 50 / - 84 THEN 21 END AS col0, - 27 AS col0
----
80
NULL
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-4313
SELECT - MIN( - 64 ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-4313
SELECT - MIN ( - 64 ) AS col0
----
64

query I rowsort
SELECT ALL 87 - + 35 AS col0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4315
SELECT 95 * - MAX( 81 ) * + 18
----
-138510

skipif mysql # not compatible
query I rowsort label-4315
SELECT 95 * - MAX ( 81 ) * + 18
----
-138510

query III rowsort
SELECT ALL + 99 * - - 39 * - 41 AS col1, 4 + - 91 + - 8, 97 AS col1
----
-158301
-95
97

onlyif mysql # aggregate syntax: 
query II rowsort label-4317
SELECT ALL 64 col2, COUNT( * )
----
64
1

skipif mysql # not compatible
query II rowsort label-4317
SELECT ALL 64 col2, COUNT ( * )
----
64
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4318
SELECT DISTINCT + 83 - + + ( - 84 ) * 0 * COUNT( * )
----
83

skipif mysql # not compatible
query I rowsort label-4318
SELECT DISTINCT + 83 - + + ( - 84 ) * 0 * COUNT ( * )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4319
SELECT MAX( DISTINCT + 67 )
----
67

skipif mysql # not compatible
query I rowsort label-4319
SELECT MAX ( DISTINCT + 67 )
----
67

query I rowsort
SELECT + 66 * + 65 * 71
----
304590

onlyif mysql # aggregate syntax: 
query I rowsort label-4321
SELECT - COUNT( * ) - - 38 - + + 2 AS col1
----
35

skipif mysql # not compatible
query I rowsort label-4321
SELECT - COUNT ( * ) - - 38 - + + 2 AS col1
----
35

query II rowsort
SELECT + 36 * - 38 AS col2, 27
----
-1368
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4323
SELECT - MAX( ALL 2 ) AS col1, - 66 + - 48 * - 54 * COALESCE ( - + CASE - 44 WHEN - NULLIF ( + - 75, + 74 * + - 2 + 9 / + + 41 - + 53 ) THEN - 80 WHEN - + CAST( - + ( - 99 ) AS DECIMAL ) THEN NULL ELSE NULL END, ( + 39 ) ) * - - CAST( NULL AS SIGNED )
----
-2
NULL

skipif mysql # not compatible
query II rowsort label-4323
SELECT - MAX ( ALL 2 ) AS col1, - 66 + - 48 * - 54 * COALESCE ( - + CASE - 44 WHEN - NULLIF ( + - 75, + 74 * + - 2 + 9 / + + 41 - + 53 ) THEN - 80 WHEN - + CAST ( - + ( - 99 ) AS REAL ) THEN NULL ELSE NULL END, ( + 39 ) ) * - - CAST ( NULL AS INTEGER )
----
-2
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4324
SELECT - 0 DIV 54 + - 82 AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-4324
SELECT - 0 / 54 + - 82 AS col0
----
-82

query I rowsort
SELECT ALL + 49 * 80
----
3920

onlyif mysql # aggregate syntax: 
query I rowsort label-4326
SELECT ALL - COUNT( - 97 ) * - - 21 + 64
----
43

skipif mysql # not compatible
query I rowsort label-4326
SELECT ALL - COUNT ( - 97 ) * - - 21 + 64
----
43

query I rowsort
SELECT ALL + 10 * 77 + - 67
----
703

onlyif mysql # aggregate syntax: 
query I rowsort label-4328
SELECT COALESCE ( 29, - 64 * - + COUNT( * ) * + COUNT( ALL 84 ) )
----
29

skipif mysql # not compatible
query I rowsort label-4328
SELECT COALESCE ( 29, - 64 * - + COUNT ( * ) * + COUNT ( ALL 84 ) )
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4329
SELECT - 76 * + CAST( + 68 AS SIGNED ) AS col0
----
-5168

skipif mysql # not compatible
query I rowsort label-4329
SELECT - 76 * + CAST ( + 68 AS INTEGER ) AS col0
----
-5168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4330
SELECT CASE + 68 WHEN - ( - SUM( ALL + - 50 ) ) + 92 / - + COUNT( * ) THEN + + CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4330
SELECT CASE + 68 WHEN - ( - SUM ( ALL + - 50 ) ) + 92 / - + COUNT ( * ) THEN + + CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4331
SELECT - 28 DIV + ( - COUNT( * ) )
----
28

skipif mysql # not compatible
query I rowsort label-4331
SELECT - 28 / + ( - COUNT ( * ) )
----
28

query I rowsort
SELECT ALL 12 * - - 33 + - + 41 AS col1
----
355

query II rowsort
SELECT - NULLIF ( + 80, + 50 + + 42 * - 32 + - 28 ) + - 0, 83 AS col1
----
-80
83

query I rowsort
SELECT - - 10 * 8
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4335
SELECT - 30 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4335
SELECT - 30 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4336
SELECT - - 66 + COALESCE ( 12, + CAST( - - 83 AS SIGNED ), + 53 )
----
78

skipif mysql # not compatible
query I rowsort label-4336
SELECT - - 66 + COALESCE ( 12, + CAST ( - - 83 AS INTEGER ), + 53 )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4337
SELECT - MIN( - - 51 ) * + 84
----
-4284

skipif mysql # not compatible
query I rowsort label-4337
SELECT - MIN ( - - 51 ) * + 84
----
-4284

query I rowsort
SELECT DISTINCT - - 24 * 83 - - + 61 AS col0
----
2053

onlyif mysql # DIV for integer division: 
query I rowsort label-4339
SELECT DISTINCT + 64 * 23 DIV + + NULLIF ( + + 24, - 32 )
----
61

skipif mysql # not compatible
query I rowsort label-4339
SELECT DISTINCT + 64 * 23 / + + NULLIF ( + + 24, - 32 )
----
61

onlyif mysql # aggregate syntax: 
query II rowsort label-4340
SELECT - 19 + NULLIF ( - ( + 76 ), 92 * - MAX( 93 ) ) AS col0, 19
----
-95
19

skipif mysql # not compatible
query II rowsort label-4340
SELECT - 19 + NULLIF ( - ( + 76 ), 92 * - MAX ( 93 ) ) AS col0, 19
----
-95
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4341
SELECT ALL COALESCE ( - + 8, ( MIN( ALL 49 ) ), + 77 + + COUNT( * ) + 35 * - 39 ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-4341
SELECT ALL COALESCE ( - + 8, ( MIN ( ALL 49 ) ), + 77 + + COUNT ( * ) + 35 * - 39 ) AS col0
----
-8

query I rowsort
SELECT DISTINCT - + 44 * + - 16 col0
----
704

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4343
SELECT CAST( - CAST( ( + ( + - 80 ) ) AS DECIMAL ) AS SIGNED )
----
80

skipif mysql # not compatible
query I rowsort label-4343
SELECT CAST ( - CAST ( ( + ( + - 80 ) ) AS REAL ) AS INTEGER )
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4344
SELECT NULLIF ( - + CAST( NULL AS SIGNED ), 84 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4344
SELECT NULLIF ( - + CAST ( NULL AS INTEGER ), 84 )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4345
SELECT + - 9 + + 85, - 95 DIV + - 49 AS col2
----
76
1

skipif mysql # not compatible
query II rowsort label-4345
SELECT + - 9 + + 85, - 95 / + - 49 AS col2
----
76
1

query I rowsort
SELECT ALL 48 * - 21 * 26 AS col0
----
-26208

onlyif mysql # aggregate syntax: 
query I rowsort label-4347
SELECT - MAX( + 60 ) AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-4347
SELECT - MAX ( + 60 ) AS col0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-4348
SELECT - ( CASE NULLIF ( 27, - - COUNT( * ) * - 21 / CASE + - 72 WHEN 59 THEN - 39 WHEN 27 THEN NULL END / - + 97 ) WHEN - - NULLIF ( - + 98, - CASE 0 WHEN - COUNT( * ) * + COUNT( 95 ) + COUNT( * ) / 68 THEN NULL WHEN 91 THEN NULL ELSE 61 END ) / + 75 THEN 52 END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4348
SELECT - ( CASE NULLIF ( 27, - - COUNT ( * ) * - 21 / CASE + - 72 WHEN 59 THEN - 39 WHEN 27 THEN NULL END / - + 97 ) WHEN - - NULLIF ( - + 98, - CASE 0 WHEN - COUNT ( * ) * + COUNT ( 95 ) + COUNT ( * ) / 68 THEN NULL WHEN 91 THEN NULL ELSE 61 END ) / + 75 THEN 52 END ) AS col2
----
NULL

query I rowsort
SELECT ALL 1 * + 26 * - 30 AS col0
----
-780

onlyif mysql # aggregate syntax: 
query I rowsort label-4350
SELECT + 6 + - 37 * - COUNT( * ) - + 25 + + - 85 AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-4350
SELECT + 6 + - 37 * - COUNT ( * ) - + 25 + + - 85 AS col2
----
-67

query I rowsort
SELECT ALL - 45 + - + 62
----
-107

onlyif mysql # aggregate syntax: 
query I rowsort label-4352
SELECT ALL + ( - - 46 ) + COUNT( * )
----
47

skipif mysql # not compatible
query I rowsort label-4352
SELECT ALL + ( - - 46 ) + COUNT ( * )
----
47

query I rowsort
SELECT ALL 94 + + 62 + 78 * 71
----
5694

onlyif mysql # aggregate syntax: 
query I rowsort label-4354
SELECT ALL 53 + + 33 * 6 * 55 + + 71 - + COALESCE ( + 94, - 44, + 44 ) * - - ( - COUNT( * ) ) AS col1
----
11108

skipif mysql # not compatible
query I rowsort label-4354
SELECT ALL 53 + + 33 * 6 * 55 + + 71 - + COALESCE ( + 94, - 44, + 44 ) * - - ( - COUNT ( * ) ) AS col1
----
11108

query I rowsort
SELECT - ( 5 )
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-4356
SELECT - 70 DIV - + 65
----
1

skipif mysql # not compatible
query I rowsort label-4356
SELECT - 70 / - + 65
----
1

query II rowsort
SELECT NULLIF ( - 14, 7 ) * 14 + 86 + - + 51 AS col1, + 62 AS col0
----
-161
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4358
SELECT CAST( + SUM( - 11 ) AS SIGNED )
----
-11

skipif mysql # not compatible
query I rowsort label-4358
SELECT CAST ( + SUM ( - 11 ) AS INTEGER )
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4359
SELECT ALL 33 / 22 / 75 + + 61 - - - NULLIF ( COALESCE ( - 16, ( 6 ) * 59, + 71 + + 87 * 21 ), - - 4 + 54 / + 80 ) * + SUM( - + CAST( 78 AS SIGNED ) ) + - 50 - - + ( - 69 ) * CAST( NULL AS SIGNED ) / - 72 + - 82 + + 29 * + 27
----
NULL

skipif mysql # not compatible
query I rowsort label-4359
SELECT ALL 33 / 22 / 75 + + 61 - - - NULLIF ( COALESCE ( - 16, ( 6 ) * 59, + 71 + + 87 * 21 ), - - 4 + 54 / + 80 ) * + SUM ( - + CAST ( 78 AS INTEGER ) ) + - 50 - - + ( - 69 ) * CAST ( NULL AS INTEGER ) / - 72 + - 82 + + 29 * + 27
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4360
SELECT + CASE COUNT( * ) WHEN + AVG ( 26 ) THEN NULL WHEN - 33 * + CASE - 49 WHEN - - CASE - - COALESCE ( + 98, + AVG ( ALL - 44 ) + - COALESCE ( 2, CAST( NULL AS SIGNED ) + 10 - + 32 + - AVG ( ALL 15 ) * - + 78 * 98 / - + 98 * + + 14 + + 49 * 51 ) ) WHEN - 72 * - - 18 / ( - + 33 ) THEN NULL ELSE + 46 * + 26 END THEN NULL WHEN 10 THEN ( 5 ) ELSE NULL END / CASE - 52 * 32 WHEN COUNT( * ) THEN 41 ELSE 99 END + 71 THEN NULL ELSE 24 - + 93 END
----
-69

skipif mysql # not compatible
query I rowsort label-4360
SELECT + CASE COUNT ( * ) WHEN + AVG ( 26 ) THEN NULL WHEN - 33 * + CASE - 49 WHEN - - CASE - - COALESCE ( + 98, + AVG ( ALL - 44 ) + - COALESCE ( 2, CAST ( NULL AS INTEGER ) + 10 - + 32 + - AVG ( ALL 15 ) * - + 78 * 98 / - + 98 * + + 14 + + 49 * 51 ) ) WHEN - 72 * - - 18 / ( - + 33 ) THEN NULL ELSE + 46 * + 26 END THEN NULL WHEN 10 THEN ( 5 ) ELSE NULL END / CASE - 52 * 32 WHEN COUNT ( * ) THEN 41 ELSE 99 END + 71 THEN NULL ELSE 24 - + 93 END
----
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4361
SELECT ALL COUNT( * ) DIV + 39 + - COUNT( * ) DIV + + ( + 39 ) * + 59 DIV - CAST( - 6 AS SIGNED ) - - - 92 + + + ( + 84 ) AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-4361
SELECT ALL COUNT ( * ) / + 39 + - COUNT ( * ) / + + ( + 39 ) * + 59 / - CAST ( - 6 AS INTEGER ) - - - 92 + + + ( + 84 ) AS col2
----
-8

query II rowsort
SELECT + 8 AS col0, + 64
----
8
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4363
SELECT + 16 * + CAST( - ( - 26 ) AS SIGNED ) AS col2
----
416

skipif mysql # not compatible
query I rowsort label-4363
SELECT + 16 * + CAST ( - ( - 26 ) AS INTEGER ) AS col2
----
416

onlyif mysql # DIV for integer division: 
query I rowsort label-4364
SELECT DISTINCT 83 DIV + 93 + 31 AS col0
----
31

skipif mysql # not compatible
query I rowsort label-4364
SELECT DISTINCT 83 / + 93 + 31 AS col0
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4365
SELECT ALL + CAST( NULL AS SIGNED ) / - - 91 + + 47 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4365
SELECT ALL + CAST ( NULL AS INTEGER ) / - - 91 + + 47 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4366
SELECT + COUNT( * ) + 83 + 2 AS col2
----
86

skipif mysql # not compatible
query I rowsort label-4366
SELECT + COUNT ( * ) + 83 + 2 AS col2
----
86

query I rowsort
SELECT ALL 79 * + 39
----
3081

onlyif mysql # DIV for integer division: 
query I rowsort label-4368
SELECT - 17 * 89 + - 73 DIV + + 56 + 82
----
-1432

skipif mysql # not compatible
query I rowsort label-4368
SELECT - 17 * 89 + - 73 / + + 56 + 82
----
-1432

query I rowsort
SELECT - - 38 * 42 AS col2
----
1596

query I rowsort
SELECT DISTINCT + 63 * - 21 - + 36 col2
----
-1359

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4371
SELECT ALL + - ( - NULLIF ( + CAST( NULL AS DECIMAL ), - COUNT( * ) ) ) * - ( CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4371
SELECT ALL + - ( - NULLIF ( + CAST ( NULL AS REAL ), - COUNT ( * ) ) ) * - ( CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4372
SELECT DISTINCT COUNT( * ) AS col2, 25 AS col0
----
1
25

skipif mysql # not compatible
query II rowsort label-4372
SELECT DISTINCT COUNT ( * ) AS col2, 25 AS col0
----
1
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4373
SELECT COUNT( * ) * - 86 DIV ( 70 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4373
SELECT COUNT ( * ) * - 86 / ( 70 ) AS col1
----
-1

query I rowsort
SELECT - 96 * - 54 AS col1
----
5184

onlyif mysql # aggregate syntax: 
query II rowsort label-4375
SELECT ALL + 33 * - ( - - 50 ), 82 + + COUNT( * ) - - + 16 * + 25 / 52 * 60 * + + CASE + ( - 11 ) WHEN 43 * + 52 - + - 75 + COUNT( * ) THEN - 32 / + - 43 ELSE NULL END col0
----
-1650
NULL

skipif mysql # not compatible
query II rowsort label-4375
SELECT ALL + 33 * - ( - - 50 ), 82 + + COUNT ( * ) - - + 16 * + 25 / 52 * 60 * + + CASE + ( - 11 ) WHEN 43 * + 52 - + - 75 + COUNT ( * ) THEN - 32 / + - 43 ELSE NULL END col0
----
-1650
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4376
SELECT COUNT( * ) - - - COUNT( * ) - - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-4376
SELECT COUNT ( * ) - - - COUNT ( * ) - - COUNT ( * )
----
1

query I rowsort
SELECT ALL - + 41 * - 61 AS col2
----
2501

query I rowsort
SELECT 32 * 69 AS col2
----
2208

query I rowsort
SELECT DISTINCT - 76 + + + 60 AS col2
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4380
SELECT DISTINCT - 31 + + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4380
SELECT DISTINCT - 31 + + CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT 45 + - 10 * + + 60 AS col0
----
-555

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4382
SELECT ALL - ( + + 38 ) + + 72 + 7 - + CAST( - 27 AS SIGNED )
----
68

skipif mysql # not compatible
query I rowsort label-4382
SELECT ALL - ( + + 38 ) + + 72 + 7 - + CAST ( - 27 AS INTEGER )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4383
SELECT ALL 53 + - - 75 * NULLIF ( COUNT( * ), + 23 ) AS col2
----
128

skipif mysql # not compatible
query I rowsort label-4383
SELECT ALL 53 + - - 75 * NULLIF ( COUNT ( * ), + 23 ) AS col2
----
128

query II rowsort
SELECT 51 col0, COALESCE ( - 97, - ( - 45 ) + + 6 ) + - + 70 AS col1
----
51
-167

query I rowsort
SELECT 71 - - 81 AS col2
----
152

query II rowsort
SELECT - 41, 41 AS col0
----
-41
41

query II rowsort
SELECT 60, + 71 AS col0
----
60
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4388
SELECT ALL - 14 + CAST( - 40 AS SIGNED ) * - + 82
----
3266

skipif mysql # not compatible
query I rowsort label-4388
SELECT ALL - 14 + CAST ( - 40 AS INTEGER ) * - + 82
----
3266

onlyif mysql # aggregate syntax: 
query II rowsort label-4389
SELECT 32 AS col0, COUNT( 40 ) + - + 76 AS col0
----
32
-75

skipif mysql # not compatible
query II rowsort label-4389
SELECT 32 AS col0, COUNT ( 40 ) + - + 76 AS col0
----
32
-75

query II rowsort
SELECT - 97 AS col1, 24 + COALESCE ( + 52, 80, + 12 ) AS col1
----
-97
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4391
SELECT DISTINCT 93 + + - 27 - - CAST( NULL AS SIGNED ) * CAST( 5 AS SIGNED ) - + - 69
----
NULL

skipif mysql # not compatible
query I rowsort label-4391
SELECT DISTINCT 93 + + - 27 - - CAST ( NULL AS INTEGER ) * CAST ( 5 AS INTEGER ) - + - 69
----
NULL

query II rowsort
SELECT 76 AS col0, + ( - 37 ) + 35
----
76
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4393
SELECT ALL 11 * + ( + - 44 ) * COUNT( * ) * 6 AS col0
----
-2904

skipif mysql # not compatible
query I rowsort label-4393
SELECT ALL 11 * + ( + - 44 ) * COUNT ( * ) * 6 AS col0
----
-2904

query II rowsort
SELECT 46 AS col1, + 63 + ( 39 ) + - 70 AS col0
----
46
32

query I rowsort
SELECT ALL 5 - 47
----
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-4396
SELECT 70, MAX( DISTINCT - 31 ) * + 26 AS col0
----
70
-806

skipif mysql # not compatible
query II rowsort label-4396
SELECT 70, MAX ( DISTINCT - 31 ) * + 26 AS col0
----
70
-806

query I rowsort
SELECT ALL 51 * ( 12 )
----
612

onlyif mysql # aggregate syntax: 
query I rowsort label-4398
SELECT + 73 * + 23 + + COUNT( * )
----
1680

skipif mysql # not compatible
query I rowsort label-4398
SELECT + 73 * + 23 + + COUNT ( * )
----
1680

onlyif mysql # aggregate syntax: 
query II rowsort label-4399
SELECT - 42, - MIN( ALL - 57 ) * SUM( DISTINCT - 16 ) AS col0
----
-42
-912

skipif mysql # not compatible
query II rowsort label-4399
SELECT - 42, - MIN ( ALL - 57 ) * SUM ( DISTINCT - 16 ) AS col0
----
-42
-912

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4400
SELECT + 53 AS col0, NULLIF ( 57, 49 ) DIV + COUNT( * ) + + + 8 col2
----
53
65

skipif mysql # not compatible
query II rowsort label-4400
SELECT + 53 AS col0, NULLIF ( 57, 49 ) / + COUNT ( * ) + + + 8 col2
----
53
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4401
SELECT + ( 50 ) + + COALESCE ( - + CAST( 14 AS SIGNED ), - 5 + + - 18 ) - - + COUNT( * ) + + COUNT( * ) * - 70 - - 58 * + ( NULLIF ( - 26, - - 94 ) ) + + - 55 + + 66 * MAX( DISTINCT + 56 ) * - 97 col0
----
-360108

skipif mysql # not compatible
query I rowsort label-4401
SELECT + ( 50 ) + + COALESCE ( - + CAST ( 14 AS INTEGER ), - 5 + + - 18 ) - - + COUNT ( * ) + + COUNT ( * ) * - 70 - - 58 * + ( NULLIF ( - 26, - - 94 ) ) + + - 55 + + 66 * MAX ( DISTINCT + 56 ) * - 97 col0
----
-360108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4402
SELECT CAST( NULL AS SIGNED ) * + - 20 + - + ( - 95 ) + - + 5
----
NULL

skipif mysql # not compatible
query I rowsort label-4402
SELECT CAST ( NULL AS INTEGER ) * + - 20 + - + ( - 95 ) + - + 5
----
NULL

query III rowsort
SELECT DISTINCT - - ( - + 17 ) AS col0, - 33 + 79 AS col2, + + 49
----
-17
46
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4404
SELECT + 87 + CAST( + COUNT( * ) AS SIGNED ) DIV + 51 * NULLIF ( + + 16, - 40 ) AS col0
----
87

skipif mysql # not compatible
query I rowsort label-4404
SELECT + 87 + CAST ( + COUNT ( * ) AS INTEGER ) / + 51 * NULLIF ( + + 16, - 40 ) AS col0
----
87

query II rowsort
SELECT ALL - + 57 AS col1, 96 AS col1
----
-57
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4406
SELECT + 10 * 72 + COUNT( - - 21 ) * ( 85 )
----
805

skipif mysql # not compatible
query I rowsort label-4406
SELECT + 10 * 72 + COUNT ( - - 21 ) * ( 85 )
----
805

onlyif mysql # aggregate syntax: 
query I rowsort label-4407
SELECT ALL COALESCE ( - - COUNT( * ), 64 ) * 32 AS col2
----
32

skipif mysql # not compatible
query I rowsort label-4407
SELECT ALL COALESCE ( - - COUNT ( * ), 64 ) * 32 AS col2
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4408
SELECT DISTINCT - - 79 col0, CAST( NULL AS SIGNED ) + - ( + 37 )
----
79
NULL

skipif mysql # not compatible
query II rowsort label-4408
SELECT DISTINCT - - 79 col0, CAST ( NULL AS INTEGER ) + - ( + 37 )
----
79
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4409
SELECT - 98 * + 8 + - MIN( DISTINCT - - 0 ) * 88 AS col1
----
-784

skipif mysql # not compatible
query I rowsort label-4409
SELECT - 98 * + 8 + - MIN ( DISTINCT - - 0 ) * 88 AS col1
----
-784

query I rowsort
SELECT ALL 97 * - - 62
----
6014

query II rowsort
SELECT 49 * - + 2 AS col2, + 48 AS col0
----
-98
48

query II rowsort
SELECT - 37 + + 91, 11 * - 58 + + 99 AS col1
----
54
-539

onlyif mysql # DIV for integer division: 
query II rowsort label-4413
SELECT + 49 col0, + 43 DIV + + 61 AS col2
----
49
0

skipif mysql # not compatible
query II rowsort label-4413
SELECT + 49 col0, + 43 / + + 61 AS col2
----
49
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4414
SELECT 39 + MAX( - - 3 ) + 6 * + CAST( NULL AS SIGNED ) + + 24 + - 12 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4414
SELECT 39 + MAX ( - - 3 ) + 6 * + CAST ( NULL AS INTEGER ) + + 24 + - 12 AS col2
----
NULL

query I rowsort
SELECT ALL - + ( 10 ) AS col0
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4416
SELECT - COALESCE ( - ( - 52 ), + 57 ) * + - 10 + - 89 + - 39 + - 88 DIV 36 * 34 * + 69 + - 29 - - - MAX( + 76 )
----
-4405

skipif mysql # not compatible
query I rowsort label-4416
SELECT - COALESCE ( - ( - 52 ), + 57 ) * + - 10 + - 89 + - 39 + - 88 / 36 * 34 * + 69 + - 29 - - - MAX ( + 76 )
----
-4405

query II rowsort
SELECT + 3 + - 26 col0, 39 - 7 AS col1
----
-23
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4418
SELECT - NULLIF ( 31, MAX( ALL + 85 ) ) AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-4418
SELECT - NULLIF ( 31, MAX ( ALL + 85 ) ) AS col2
----
-31

query I rowsort
SELECT ALL - + 39 + + 53
----
14

query I rowsort
SELECT ( - 80 ) + - + 19 AS col0
----
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4421
SELECT 45 DIV + COUNT( * ) AS col2, + 95 + + 12 * - CAST( + - 95 AS SIGNED ) DIV 94 AS col0
----
45
107

skipif mysql # not compatible
query II rowsort label-4421
SELECT 45 / + COUNT ( * ) AS col2, + 95 + + 12 * - CAST ( + - 95 AS INTEGER ) / 94 AS col0
----
45
107

query I rowsort
SELECT ALL - 27 + + 71
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4423
SELECT 61 + + COUNT( * ) * - COUNT( * ) * - + 14 col2
----
75

skipif mysql # not compatible
query I rowsort label-4423
SELECT 61 + + COUNT ( * ) * - COUNT ( * ) * - + 14 col2
----
75

onlyif mysql # DIV for integer division: 
query II rowsort label-4424
SELECT DISTINCT + 0 DIV - 11 col2, 48 AS col2
----
0
48

skipif mysql # not compatible
query II rowsort label-4424
SELECT DISTINCT + 0 / - 11 col2, 48 AS col2
----
0
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4425
SELECT CAST( NULL AS SIGNED ) / - COUNT( * ) / 40
----
NULL

skipif mysql # not compatible
query I rowsort label-4425
SELECT CAST ( NULL AS INTEGER ) / - COUNT ( * ) / 40
----
NULL

query I rowsort
SELECT 71 + + ( - 86 ) + 99 AS col0
----
84

query I rowsort
SELECT ALL - 27 + + 7 + + 82 * - 33 col2
----
-2726

query I rowsort
SELECT DISTINCT + 73 * + 82 AS col1
----
5986

query I rowsort
SELECT 57 + - 85 * 52 + - 91 - + 17 * - 8
----
-4318

onlyif mysql # aggregate syntax: 
query I rowsort label-4430
SELECT ALL - COUNT( * ) - 70 + - - 2 col0
----
-69

skipif mysql # not compatible
query I rowsort label-4430
SELECT ALL - COUNT ( * ) - 70 + - - 2 col0
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-4431
SELECT 92 + 5 DIV + + 93 AS col2
----
92

skipif mysql # not compatible
query I rowsort label-4431
SELECT 92 + 5 / + + 93 AS col2
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4432
SELECT 96 * + COUNT( * ) AS col2
----
96

skipif mysql # not compatible
query I rowsort label-4432
SELECT 96 * + COUNT ( * ) AS col2
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-4433
SELECT - 68 DIV - 57 + + + 71
----
72

skipif mysql # not compatible
query I rowsort label-4433
SELECT - 68 / - 57 + + + 71
----
72

query I rowsort
SELECT NULLIF ( - + 63, + 60 )
----
-63

query II rowsort
SELECT 11 + + - 10, 49 AS col2
----
1
49

query I rowsort
SELECT ( 86 ) * 41
----
3526

query I rowsort
SELECT + 18 * + - 44 AS col2
----
-792

onlyif mysql # aggregate syntax: 
query I rowsort label-4438
SELECT - COUNT( * ) + - 46 + + SUM( - - 13 ) AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-4438
SELECT - COUNT ( * ) + - 46 + + SUM ( - - 13 ) AS col0
----
-34

query I rowsort
SELECT DISTINCT + 60 * - 47 col0
----
-2820

query I rowsort
SELECT - 85 * - 6 + - - 14
----
524

query I rowsort
SELECT ALL 24 * + 68
----
1632

onlyif mysql # aggregate syntax: 
query II rowsort label-4442
SELECT DISTINCT + - 37 * COUNT( * ) + + 25 AS col0, SUM( ALL + - NULLIF ( 9, - + 73 ) )
----
-12
-9

skipif mysql # not compatible
query II rowsort label-4442
SELECT DISTINCT + - 37 * COUNT ( * ) + + 25 AS col0, SUM ( ALL + - NULLIF ( 9, - + 73 ) )
----
-12
-9

query I rowsort
SELECT ALL + - 68 col2
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-4444
SELECT - + 77 * - COUNT( * ) * COUNT( * ) * - 45 AS col2
----
-3465

skipif mysql # not compatible
query I rowsort label-4444
SELECT - + 77 * - COUNT ( * ) * COUNT ( * ) * - 45 AS col2
----
-3465

query I rowsort
SELECT + + 72 * + 11
----
792

onlyif mysql # aggregate syntax: 
query I rowsort label-4446
SELECT - - COUNT( * ) * - 31 + 85 + - 53 * + 57 * + + 39 * - 41 AS col0
----
4830633

skipif mysql # not compatible
query I rowsort label-4446
SELECT - - COUNT ( * ) * - 31 + 85 + - 53 * + 57 * + + 39 * - 41 AS col0
----
4830633

onlyif mysql # aggregate syntax: 
query I rowsort label-4447
SELECT ALL - ( + 1 ) * + 87 - + + 82 + + 84 + + ( COUNT( * ) )
----
-84

skipif mysql # not compatible
query I rowsort label-4447
SELECT ALL - ( + 1 ) * + 87 - + + 82 + + 84 + + ( COUNT ( * ) )
----
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-4448
SELECT + + 22 DIV - ( + + 79 ) * + 29 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4448
SELECT + + 22 / - ( + + 79 ) * + 29 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4449
SELECT ALL 27 DIV + 89 AS col0, + COALESCE ( + + 54, COUNT( DISTINCT - 18 ) + - COUNT( * ) + + CAST( NULL AS SIGNED ) + 40 + - - CAST( NULL AS SIGNED ) * - 84 * 94 ) + 90 * - 22
----
0
-1926

skipif mysql # not compatible
query II rowsort label-4449
SELECT ALL 27 / + 89 AS col0, + COALESCE ( + + 54, COUNT ( DISTINCT - 18 ) + - COUNT ( * ) + + CAST ( NULL AS INTEGER ) + 40 + - - CAST ( NULL AS INTEGER ) * - 84 * 94 ) + 90 * - 22
----
0
-1926

onlyif mysql # DIV for integer division: 
query I rowsort label-4450
SELECT ALL - 42 + - + ( - 56 ) DIV 59 AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-4450
SELECT ALL - 42 + - + ( - 56 ) / 59 AS col2
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-4451
SELECT DISTINCT - 83 + + + SUM( DISTINCT - 94 ) - + 74 AS col1
----
-251

skipif mysql # not compatible
query I rowsort label-4451
SELECT DISTINCT - 83 + + + SUM ( DISTINCT - 94 ) - + 74 AS col1
----
-251

query I rowsort
SELECT DISTINCT + ( - - 58 ) AS col0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4453
SELECT DISTINCT + 9 + + MAX( + 13 ) AS col2
----
22

skipif mysql # not compatible
query I rowsort label-4453
SELECT DISTINCT + 9 + + MAX ( + 13 ) AS col2
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4454
SELECT - MAX( DISTINCT - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4454
SELECT - MAX ( DISTINCT - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT + 30 + - 93
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-4456
SELECT ALL 42 + - 68 - - + 21 - + 20 * + + MAX( + 45 ) AS col0
----
-905

skipif mysql # not compatible
query I rowsort label-4456
SELECT ALL 42 + - 68 - - + 21 - + 20 * + + MAX ( + 45 ) AS col0
----
-905

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4457
SELECT - ( - 50 ) DIV COUNT( * ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-4457
SELECT - ( - 50 ) / COUNT ( * ) AS col1
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4458
SELECT ALL 18 + COUNT( * ) DIV - + 97 * - + ( - - CASE + 59 WHEN - ( + 8 ) THEN NULL WHEN CAST( NULL AS SIGNED ) THEN NULL ELSE - 90 * - COUNT( * ) END ) AS col2
----
18

skipif mysql # not compatible
query I rowsort label-4458
SELECT ALL 18 + COUNT ( * ) / - + 97 * - + ( - - CASE + 59 WHEN - ( + 8 ) THEN NULL WHEN CAST ( NULL AS INTEGER ) THEN NULL ELSE - 90 * - COUNT ( * ) END ) AS col2
----
18

query I rowsort
SELECT + 0 + 92 AS col1
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4460
SELECT DISTINCT MAX( DISTINCT + 10 ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-4460
SELECT DISTINCT MAX ( DISTINCT + 10 ) AS col0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4461
SELECT + ( COUNT( * ) ) + - MAX( DISTINCT + 50 )
----
-49

skipif mysql # not compatible
query I rowsort label-4461
SELECT + ( COUNT ( * ) ) + - MAX ( DISTINCT + 50 )
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4462
SELECT ALL 82 - ( + + 34 ) AS col1, - 62 + CAST( NULL AS SIGNED ) AS col0
----
48
NULL

skipif mysql # not compatible
query II rowsort label-4462
SELECT ALL 82 - ( + + 34 ) AS col1, - 62 + CAST ( NULL AS INTEGER ) AS col0
----
48
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4463
SELECT DISTINCT + 51 DIV + 28 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4463
SELECT DISTINCT + 51 / + 28 AS col0
----
1

query II rowsort
SELECT 1 col1, 73 AS col0
----
1
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4465
SELECT - 46 - + 12 * COUNT( * ) - + - 21 DIV 47 AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-4465
SELECT - 46 - + 12 * COUNT ( * ) - + - 21 / 47 AS col1
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4466
SELECT + 58 * - COUNT( DISTINCT - + 11 ) AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-4466
SELECT + 58 * - COUNT ( DISTINCT - + 11 ) AS col0
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-4467
SELECT DISTINCT 69 DIV - + 58 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4467
SELECT DISTINCT 69 / - + 58 AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4468
SELECT ALL MIN( - CAST( NULL AS DECIMAL ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4468
SELECT ALL MIN ( - CAST ( NULL AS REAL ) ) AS col2
----
NULL

query I rowsort
SELECT - ( - ( + 42 ) )
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4470
SELECT + 10 DIV + SUM( ALL + 10 ), CAST( NULLIF ( + 99, 8 + 82 + - + 50 * - CAST( NULL AS SIGNED ) - + COUNT( * ) + 39 ) AS SIGNED ) + - COUNT( * ) col2
----
1
98

skipif mysql # not compatible
query II rowsort label-4470
SELECT + 10 / + SUM ( ALL + 10 ), CAST ( NULLIF ( + 99, 8 + 82 + - + 50 * - CAST ( NULL AS INTEGER ) - + COUNT ( * ) + 39 ) AS INTEGER ) + - COUNT ( * ) col2
----
1
98

onlyif mysql # DIV for integer division: 
query I rowsort label-4471
SELECT - 16 DIV - 39 col0
----
0

skipif mysql # not compatible
query I rowsort label-4471
SELECT - 16 / - 39 col0
----
0

query I rowsort
SELECT ALL - 24 * 7
----
-168

query I rowsort
SELECT - 28 * - 74 AS col1
----
2072

query I rowsort
SELECT ALL + 47 * 62
----
2914

onlyif mysql # aggregate syntax: 
query I rowsort label-4475
SELECT DISTINCT + - COUNT( * ) * + - 39 AS col0
----
39

skipif mysql # not compatible
query I rowsort label-4475
SELECT DISTINCT + - COUNT ( * ) * + - 39 AS col0
----
39

query I rowsort
SELECT DISTINCT + 20 * + 90 AS col1
----
1800

query II rowsort
SELECT ALL + 10, 39 AS col1
----
10
39

query I rowsort
SELECT - - CASE ( - 60 ) WHEN + 46 THEN - 54 WHEN - 18 + - - 62 THEN - 55 ELSE NULL END * + 70 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4479
SELECT DISTINCT - - ( + 15 ) DIV 59 + - 85 + - SUM( DISTINCT + + 56 ) AS col0, - 18 AS col1
----
-141
-18

skipif mysql # not compatible
query II rowsort label-4479
SELECT DISTINCT - - ( + 15 ) / 59 + - 85 + - SUM ( DISTINCT + + 56 ) AS col0, - 18 AS col1
----
-141
-18

onlyif mysql # DIV for integer division: 
query II rowsort label-4480
SELECT 57 AS col0, 60 DIV + 57 AS col1
----
57
1

skipif mysql # not compatible
query II rowsort label-4480
SELECT 57 AS col0, 60 / + 57 AS col1
----
57
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4481
SELECT ALL + + 70 * - - 17 + + 69 - + 63 * + COUNT( * ) * 63 + - 89 - - COUNT( * ) * + + 37 DIV NULLIF ( 3, COUNT( * ) ) + - 40 AS col1
----
-2827

skipif mysql # not compatible
query I rowsort label-4481
SELECT ALL + + 70 * - - 17 + + 69 - + 63 * + COUNT ( * ) * 63 + - 89 - - COUNT ( * ) * + + 37 / NULLIF ( 3, COUNT ( * ) ) + - 40 AS col1
----
-2827

onlyif mysql # aggregate syntax: 
query I rowsort label-4482
SELECT ALL + SUM( - 94 )
----
-94

skipif mysql # not compatible
query I rowsort label-4482
SELECT ALL + SUM ( - 94 )
----
-94

query I rowsort
SELECT - + 86 * - 83 * 37 * + 21 + 7 * - 49
----
5545883

query I rowsort
SELECT - 72 + + 97
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-4485
SELECT 74, - COUNT( * ) * 35 * + + 17 AS col1
----
74
-595

skipif mysql # not compatible
query II rowsort label-4485
SELECT 74, - COUNT ( * ) * 35 * + + 17 AS col1
----
74
-595

onlyif mysql # DIV for integer division: 
query I rowsort label-4486
SELECT DISTINCT - 43 DIV ( - 50 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4486
SELECT DISTINCT - 43 / ( - 50 ) AS col0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4487
SELECT ALL - CAST( NULL AS DECIMAL ) * - 19 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4487
SELECT ALL - CAST ( NULL AS REAL ) * - 19 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4488
SELECT ALL 5 * + 97 - + + ( - 38 ) DIV + + 80
----
485

skipif mysql # not compatible
query I rowsort label-4488
SELECT ALL 5 * + 97 - + + ( - 38 ) / + + 80
----
485

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4489
SELECT COALESCE ( 97, + - COUNT( * ) * 8 + - - 83 DIV 44 + + 92 )
----
97

skipif mysql # not compatible
query I rowsort label-4489
SELECT COALESCE ( 97, + - COUNT ( * ) * 8 + - - 83 / 44 + + 92 )
----
97

query I rowsort
SELECT + 30 * - + 28 col0
----
-840

onlyif mysql # aggregate syntax: 
query I rowsort label-4491
SELECT + COUNT( * ) * - 68 * - 25 * + 64 * COUNT( * ) + - - 95 + ( + 22 )
----
108917

skipif mysql # not compatible
query I rowsort label-4491
SELECT + COUNT ( * ) * - 68 * - 25 * + 64 * COUNT ( * ) + - - 95 + ( + 22 )
----
108917

onlyif mysql # aggregate syntax: 
query I rowsort label-4492
SELECT - COALESCE ( - 50, + ( + - 33 ) ) + - - MAX( DISTINCT - 2 ) + + 26 col1
----
74

skipif mysql # not compatible
query I rowsort label-4492
SELECT - COALESCE ( - 50, + ( + - 33 ) ) + - - MAX ( DISTINCT - 2 ) + + 26 col1
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4493
SELECT ALL CAST( 3 AS SIGNED ) AS col0, + ( - SUM( + 63 ) ) AS col2
----
3
-63

skipif mysql # not compatible
query II rowsort label-4493
SELECT ALL CAST ( 3 AS INTEGER ) AS col0, + ( - SUM ( + 63 ) ) AS col2
----
3
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-4494
SELECT + COALESCE ( + CASE - + 44 WHEN - 90 THEN NULL ELSE + - 86 * + 60 + - COUNT( * ) END, 85, 22 ) + + 36
----
-5125

skipif mysql # not compatible
query I rowsort label-4494
SELECT + COALESCE ( + CASE - + 44 WHEN - 90 THEN NULL ELSE + - 86 * + 60 + - COUNT ( * ) END, 85, 22 ) + + 36
----
-5125

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4495
SELECT - CAST( - 94 AS SIGNED ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-4495
SELECT - CAST ( - 94 AS INTEGER ) AS col0
----
94

query I rowsort
SELECT + 22 + 14
----
36

query I rowsort
SELECT ALL 28 * - + ( + + 6 ) col1
----
-168

query I rowsort
SELECT + 34 * 63
----
2142

query I rowsort
SELECT + 40 * - + 4
----
-160

query II rowsort
SELECT + 99 + + + NULLIF ( + 46, + 48 * - + 69 + - + 63 ) * + + 76 AS col0, 99 AS col0
----
3595
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4501
SELECT - ( SUM( ALL - + 15 ) ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-4501
SELECT - ( SUM ( ALL - + 15 ) ) AS col1
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-4502
SELECT ALL MIN( + - 55 ), 17 - - ( - - 39 ) AS col0
----
-55
56

skipif mysql # not compatible
query II rowsort label-4502
SELECT ALL MIN ( + - 55 ), 17 - - ( - - 39 ) AS col0
----
-55
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4503
SELECT + ( - NULLIF ( + 23, - COUNT( * ) ) ) + + - 16 * + 24
----
-407

skipif mysql # not compatible
query I rowsort label-4503
SELECT + ( - NULLIF ( + 23, - COUNT ( * ) ) ) + + - 16 * + 24
----
-407

query I rowsort
SELECT ALL 92 * - + 75
----
-6900

onlyif mysql # aggregate syntax: 
query I rowsort label-4505
SELECT + 4 + 11 + 59 * + 12 * + 62 * + + COUNT( * ) * COUNT( DISTINCT + 76 ) AS col0
----
43911

skipif mysql # not compatible
query I rowsort label-4505
SELECT + 4 + 11 + 59 * + 12 * + 62 * + + COUNT ( * ) * COUNT ( DISTINCT + 76 ) AS col0
----
43911

query I rowsort
SELECT DISTINCT 19 * - ( + - 97 ) AS col1
----
1843

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-4507
SELECT ALL + 91 + + + 88 + 50 DIV - 88 + + 69 col1, - COUNT( * ) * + 20 AS col2, 19 * + 97
----
248
-20
1843

skipif mysql # not compatible
query III rowsort label-4507
SELECT ALL + 91 + + + 88 + 50 / - 88 + + 69 col1, - COUNT ( * ) * + 20 AS col2, 19 * + 97
----
248
-20
1843

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4508
SELECT ALL - 10 + - ( + 8 ) + + CAST( NULL AS SIGNED ) AS col0, 84 * 14 AS col0
----
NULL
1176

skipif mysql # not compatible
query II rowsort label-4508
SELECT ALL - 10 + - ( + 8 ) + + CAST ( NULL AS INTEGER ) AS col0, 84 * 14 AS col0
----
NULL
1176

query I rowsort
SELECT - 76 + - 76 + + 30 AS col1
----
-122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4510
SELECT - + 53 DIV + MIN( + 13 ) + + CASE CAST( NULL AS SIGNED ) WHEN - 93 DIV + 39 DIV + 16 * 32 * - - CAST( NULL AS SIGNED ) * - 88 THEN NULL ELSE 29 END + - + 54 DIV ( - NULLIF ( + 68, - 92 * + SUM( DISTINCT 95 ) * 67 DIV - 43 + - 73 + - 69 + + 58 * - 22 * 25 + - 5 * - CAST( NULL AS SIGNED ) + + 29 * - - ( + 51 ) ) ) * COUNT( * ) + + + 14 * + - 65 + 37
----
-848

skipif mysql # not compatible
query I rowsort label-4510
SELECT - + 53 / + MIN ( + 13 ) + + CASE CAST ( NULL AS INTEGER ) WHEN - 93 / + 39 / + 16 * 32 * - - CAST ( NULL AS INTEGER ) * - 88 THEN NULL ELSE 29 END + - + 54 / ( - NULLIF ( + 68, - 92 * + SUM ( DISTINCT 95 ) * 67 / - 43 + - 73 + - 69 + + 58 * - 22 * 25 + - 5 * - CAST ( NULL AS INTEGER ) + + 29 * - - ( + 51 ) ) ) * COUNT ( * ) + + + 14 * + - 65 + 37
----
-848

query I rowsort
SELECT 45 + 95 AS col1
----
140

query I rowsort
SELECT + 42 * 33
----
1386

onlyif mysql # aggregate syntax: 
query I rowsort label-4513
SELECT ALL - 64 + CASE - - 81 WHEN + 2 THEN + MAX( - 72 ) - - COUNT( * ) END - + 21 * - - 32 / 7
----
NULL

skipif mysql # not compatible
query I rowsort label-4513
SELECT ALL - 64 + CASE - - 81 WHEN + 2 THEN + MAX ( - 72 ) - - COUNT ( * ) END - + 21 * - - 32 / 7
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4514
SELECT ALL 30 DIV 4 AS col2
----
7

skipif mysql # not compatible
query I rowsort label-4514
SELECT ALL 30 / 4 AS col2
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4515
SELECT COUNT( * ) / + - CASE + ( + 93 ) WHEN + 83 * - - 79 THEN + - AVG ( + + 10 ) / + 87 * + 33 WHEN + + 40 + - - NULLIF ( + + NULLIF ( - + 81, 79 ), + - 44 ) + - - 74 THEN NULL ELSE + + 71 * + 75 + + + CAST( NULL AS SIGNED ) * - 97 + + + COUNT( * ) * - 55 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4515
SELECT COUNT ( * ) / + - CASE + ( + 93 ) WHEN + 83 * - - 79 THEN + - AVG ( + + 10 ) / + 87 * + 33 WHEN + + 40 + - - NULLIF ( + + NULLIF ( - + 81, 79 ), + - 44 ) + - - 74 THEN NULL ELSE + + 71 * + 75 + + + CAST ( NULL AS INTEGER ) * - 97 + + + COUNT ( * ) * - 55 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4516
SELECT ALL + - 95 + + + COALESCE ( - COUNT( - + 39 ), + 35 )
----
-96

skipif mysql # not compatible
query I rowsort label-4516
SELECT ALL + - 95 + + + COALESCE ( - COUNT ( - + 39 ), + 35 )
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4517
SELECT ALL - NULLIF ( + 18, - CAST( NULL AS SIGNED ) ) AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-4517
SELECT ALL - NULLIF ( + 18, - CAST ( NULL AS INTEGER ) ) AS col2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-4518
SELECT ALL - 14 + + - COUNT( * )
----
-15

skipif mysql # not compatible
query I rowsort label-4518
SELECT ALL - 14 + + - COUNT ( * )
----
-15

query I rowsort
SELECT DISTINCT - + CASE NULLIF ( 78, - 57 + - 53 ) WHEN - 17 + + + ( + 97 ) THEN + + 40 ELSE + 77 - - - 37 END AS col0
----
-40

query I rowsort
SELECT 51 - - 88 AS col0
----
139

onlyif mysql # DIV for integer division: 
query I rowsort label-4521
SELECT ALL - 68 DIV 5
----
-13

skipif mysql # not compatible
query I rowsort label-4521
SELECT ALL - 68 / 5
----
-13

query I rowsort
SELECT DISTINCT + 14 - - 99
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-4523
SELECT DISTINCT - CASE - SUM( DISTINCT - 33 ) WHEN NULLIF ( - 55, - 55 ) - SUM( ALL 31 ) THEN NULL WHEN - - 92 THEN + 98 WHEN + 70 * + 8 THEN - 24 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4523
SELECT DISTINCT - CASE - SUM ( DISTINCT - 33 ) WHEN NULLIF ( - 55, - 55 ) - SUM ( ALL 31 ) THEN NULL WHEN - - 92 THEN + 98 WHEN + 70 * + 8 THEN - 24 END
----
NULL

query I rowsort
SELECT DISTINCT - 50 * - 23
----
1150

onlyif mysql # aggregate syntax: 
query I rowsort label-4525
SELECT ALL + COUNT( - 20 ) - + + CASE - + COUNT( * ) WHEN 97 THEN - ( + - ( + COUNT( * ) ) ) + - 81 + - + SUM( DISTINCT + + 97 ) + - 85 * + - 72 * 40 WHEN NULLIF ( - 85, COUNT( * ) + - - 38 ) * - 49 + 13 + + - 32 THEN NULL ELSE - COUNT( * ) END AS col1
----
2

skipif mysql # not compatible
query I rowsort label-4525
SELECT ALL + COUNT ( - 20 ) - + + CASE - + COUNT ( * ) WHEN 97 THEN - ( + - ( + COUNT ( * ) ) ) + - 81 + - + SUM ( DISTINCT + + 97 ) + - 85 * + - 72 * 40 WHEN NULLIF ( - 85, COUNT ( * ) + - - 38 ) * - 49 + 13 + + - 32 THEN NULL ELSE - COUNT ( * ) END AS col1
----
2

query I rowsort
SELECT DISTINCT - 41 * - 14
----
574

onlyif mysql # aggregate syntax: 
query I rowsort label-4527
SELECT 80 * - COALESCE ( COUNT( + - 52 ), + 95 ) col1
----
-80

skipif mysql # not compatible
query I rowsort label-4527
SELECT 80 * - COALESCE ( COUNT ( + - 52 ), + 95 ) col1
----
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-4528
SELECT ALL - 69 DIV + 74
----
0

skipif mysql # not compatible
query I rowsort label-4528
SELECT ALL - 69 / + 74
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4529
SELECT 86 DIV + 6 AS col0
----
14

skipif mysql # not compatible
query I rowsort label-4529
SELECT 86 / + 6 AS col0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4530
SELECT + COUNT( * ) * - 64 + - - 57
----
-7

skipif mysql # not compatible
query I rowsort label-4530
SELECT + COUNT ( * ) * - 64 + - - 57
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4531
SELECT 76 DIV + MAX( ALL 75 ) AS col2, 72 AS col2
----
1
72

skipif mysql # not compatible
query II rowsort label-4531
SELECT 76 / + MAX ( ALL 75 ) AS col2, 72 AS col2
----
1
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4532
SELECT COUNT( * ) DIV + 75 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4532
SELECT COUNT ( * ) / + 75 AS col0
----
0

query I rowsort
SELECT 86 + + + 70
----
156

query II rowsort
SELECT 21 * 96 * + + 45 AS col2, ( - - 26 )
----
90720
26

onlyif mysql # aggregate syntax: 
query II rowsort label-4535
SELECT 95 + - 20 * + 63 * + 44 + + 81 AS col0, MAX( ALL + 19 )
----
-55264
19

skipif mysql # not compatible
query II rowsort label-4535
SELECT 95 + - 20 * + 63 * + 44 + + 81 AS col0, MAX ( ALL + 19 )
----
-55264
19

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-4536
SELECT COUNT( * ) DIV NULLIF ( ( - 28 ), + + COUNT( * ) * + + 58 + + + 4 + + + 13 * - CASE - 34 WHEN - - ( NULLIF ( + COUNT( * ), - 30 - - 80 ) ) THEN 65 + 21 DIV 84 + + 12 * - CAST( NULL AS DECIMAL ) WHEN MIN( DISTINCT 99 ) + - COUNT( * ) THEN CASE - - 57 WHEN + 51 + - 55 * - 76 THEN + 6 END ELSE 86 DIV + 60 + - 86 END ) * 51 * + - 67 * - 86 + - 94
----
-94

skipif mysql # not compatible
query I rowsort label-4536
SELECT COUNT ( * ) / NULLIF ( ( - 28 ), + + COUNT ( * ) * + + 58 + + + 4 + + + 13 * - CASE - 34 WHEN - - ( NULLIF ( + COUNT ( * ), - 30 - - 80 ) ) THEN 65 + 21 / 84 + + 12 * - CAST ( NULL AS REAL ) WHEN MIN ( DISTINCT 99 ) + - COUNT ( * ) THEN CASE - - 57 WHEN + 51 + - 55 * - 76 THEN + 6 END ELSE 86 / + 60 + - 86 END ) * 51 * + - 67 * - 86 + - 94
----
-94

query I rowsort
SELECT 5 + + + 75 AS col1
----
80

query II rowsort
SELECT - 14, + 77 AS col1
----
-14
77

query I rowsort
SELECT ALL + 7 + - 30
----
-23

query II rowsort
SELECT 5 AS col1, 7 AS col2
----
5
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4541
SELECT ALL CASE + + COUNT( 36 ) WHEN 87 THEN NULLIF ( 78, + 58 ) + 9 + + - 22 WHEN + 16 THEN + - 3 * + 80 + - 65 + - 84 + - 30 + - 93 * + COUNT( * ) * + - 98 + + - 36 - 86 - - 33 * + 74 + - 77 * - 99 ELSE NULL END + + 13 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4541
SELECT ALL CASE + + COUNT ( 36 ) WHEN 87 THEN NULLIF ( 78, + 58 ) + 9 + + - 22 WHEN + 16 THEN + - 3 * + 80 + - 65 + - 84 + - 30 + - 93 * + COUNT ( * ) * + - 98 + + - 36 - 86 - - 33 * + 74 + - 77 * - 99 ELSE NULL END + + 13 col1
----
NULL

query I rowsort
SELECT DISTINCT + 37 * 22 * + 5 + - 17 AS col2
----
4053

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4543
SELECT ALL + MIN( - - ( + + 44 ) ) + CAST( NULL AS DECIMAL ) - + ( 11 ) - COUNT( * ) + 34 + + 29 - + 53 * + - NULLIF ( ( - CAST( 93 AS SIGNED ) ), + 65 ) / + 95 + + 2
----
NULL

skipif mysql # not compatible
query I rowsort label-4543
SELECT ALL + MIN ( - - ( + + 44 ) ) + CAST ( NULL AS REAL ) - + ( 11 ) - COUNT ( * ) + 34 + + 29 - + 53 * + - NULLIF ( ( - CAST ( 93 AS INTEGER ) ), + 65 ) / + 95 + + 2
----
NULL

query I rowsort
SELECT 1 - 63
----
-62

query I rowsort
SELECT + 40 * + + 4 AS col0
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-4546
SELECT MIN( - 91 ) + COUNT( * ) * - 97 col1
----
-188

skipif mysql # not compatible
query I rowsort label-4546
SELECT MIN ( - 91 ) + COUNT ( * ) * - 97 col1
----
-188

query I rowsort
SELECT ALL + NULLIF ( 50, - 43 ) AS col1
----
50

query I rowsort
SELECT DISTINCT 19 * - - 20
----
380

query I rowsort
SELECT ALL 93 + + 20
----
113

query I rowsort
SELECT + - COALESCE ( + 46, + 59 - + 32 ) AS col2
----
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-4551
SELECT ALL - - NULLIF ( + + MAX( + 33 ), - MIN( ALL 29 ) ), COUNT( * ) AS col0
----
33
1

skipif mysql # not compatible
query II rowsort label-4551
SELECT ALL - - NULLIF ( + + MAX ( + 33 ), - MIN ( ALL 29 ) ), COUNT ( * ) AS col0
----
33
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4552
SELECT DISTINCT + 21 DIV 95 * 91 + - COUNT( * ) + - 51 DIV 60
----
-1

skipif mysql # not compatible
query I rowsort label-4552
SELECT DISTINCT + 21 / 95 * 91 + - COUNT ( * ) + - 51 / 60
----
-1

query I rowsort
SELECT - 20 + 44 * + 25 * - + 22 * + 47 AS col0
----
-1137420

onlyif mysql # aggregate syntax: 
query I rowsort label-4554
SELECT - MAX( ALL + 17 ) * + 66 + + 46
----
-1076

skipif mysql # not compatible
query I rowsort label-4554
SELECT - MAX ( ALL + 17 ) * + 66 + + 46
----
-1076

query II rowsort
SELECT - 91 AS col2, 52
----
-91
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4556
SELECT 49 DIV NULLIF ( - - 67, + 24 * MAX( - CAST( NULL AS SIGNED ) ) ) * + ( + ( ( + 79 ) ) ) + + - 47 + - COUNT( DISTINCT + + CASE 46 WHEN - CAST( 59 AS SIGNED ) THEN - - 33 ELSE NULL END ) AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-4556
SELECT 49 / NULLIF ( - - 67, + 24 * MAX ( - CAST ( NULL AS INTEGER ) ) ) * + ( + ( ( + 79 ) ) ) + + - 47 + - COUNT ( DISTINCT + + CASE 46 WHEN - CAST ( 59 AS INTEGER ) THEN - - 33 ELSE NULL END ) AS col0
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4557
SELECT DISTINCT - MIN( - 43 ) DIV + MIN( 44 )
----
0

skipif mysql # not compatible
query I rowsort label-4557
SELECT DISTINCT - MIN ( - 43 ) / + MIN ( 44 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4558
SELECT ALL - COUNT( + - 47 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4558
SELECT ALL - COUNT ( + - 47 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4559
SELECT + CASE - 13 WHEN + + 63 * - 42 THEN + 20 * + 14 + - ( - ( - - 9 ) ) + AVG ( - 28 ) END / 3 - + 27 * - - COUNT( * ) * 7 * 72 * 29 / + 48 + - 95 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4559
SELECT + CASE - 13 WHEN + + 63 * - 42 THEN + 20 * + 14 + - ( - ( - - 9 ) ) + AVG ( - 28 ) END / 3 - + 27 * - - COUNT ( * ) * 7 * 72 * 29 / + 48 + - 95 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4560
SELECT + NULLIF ( 76, - 71 * - + COUNT( DISTINCT + 34 ) ) * - 21 + 92
----
-1504

skipif mysql # not compatible
query I rowsort label-4560
SELECT + NULLIF ( 76, - 71 * - + COUNT ( DISTINCT + 34 ) ) * - 21 + 92
----
-1504

query I rowsort
SELECT ( + 32 ) + - 57 AS col2
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-4562
SELECT ALL + 27 * - COUNT( * )
----
-27

skipif mysql # not compatible
query I rowsort label-4562
SELECT ALL + 27 * - COUNT ( * )
----
-27

query I rowsort
SELECT DISTINCT 24 * - - 84
----
2016

onlyif mysql # aggregate syntax: 
query II rowsort label-4564
SELECT ALL - COUNT( * ) AS col0, - 4 + - 50
----
-1
-54

skipif mysql # not compatible
query II rowsort label-4564
SELECT ALL - COUNT ( * ) AS col0, - 4 + - 50
----
-1
-54

query I rowsort
SELECT DISTINCT 18 * + 27 AS col1
----
486

query I rowsort
SELECT DISTINCT - ( - + 74 ) AS col0
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4567
SELECT NULLIF ( COUNT( + 26 ), + NULLIF ( - + 75, - COUNT( ALL - + 98 ) ) * + - 48 ) * + CAST( NULL AS SIGNED ) + + 83 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4567
SELECT NULLIF ( COUNT ( + 26 ), + NULLIF ( - + 75, - COUNT ( ALL - + 98 ) ) * + - 48 ) * + CAST ( NULL AS INTEGER ) + + 83 AS col1
----
NULL

query I rowsort
SELECT 5 + 69 AS col1
----
74

onlyif mysql # aggregate syntax: 
query II rowsort label-4569
SELECT 30 AS col0, 29 * COUNT( * ) - + 71 + - 36
----
30
-78

skipif mysql # not compatible
query II rowsort label-4569
SELECT 30 AS col0, 29 * COUNT ( * ) - + 71 + - 36
----
30
-78

query I rowsort
SELECT ALL - 38 + 73
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4571
SELECT ALL + ( - + 99 ) * + COALESCE ( 12, + + 83 * - 5 + - - COUNT( * ) + + CAST( NULL AS SIGNED ) + + 15 * + 27 * - 43 DIV - - CAST( + + MIN( + 95 ) AS SIGNED ) * + COUNT( * ) ) col0
----
-1188

skipif mysql # not compatible
query I rowsort label-4571
SELECT ALL + ( - + 99 ) * + COALESCE ( 12, + + 83 * - 5 + - - COUNT ( * ) + + CAST ( NULL AS INTEGER ) + + 15 * + 27 * - 43 / - - CAST ( + + MIN ( + 95 ) AS INTEGER ) * + COUNT ( * ) ) col0
----
-1188

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4572
SELECT DISTINCT COALESCE ( - - 64, + + 53 * + 43 DIV - CAST( - 3 AS SIGNED ) * COUNT( * ) + + 57 ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-4572
SELECT DISTINCT COALESCE ( - - 64, + + 53 * + 43 / - CAST ( - 3 AS INTEGER ) * COUNT ( * ) + + 57 ) AS col0
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4573
SELECT DISTINCT + CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) + - + 42 / + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4573
SELECT DISTINCT + CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) + - + 42 / + COUNT ( * ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4574
SELECT DISTINCT + 20 + - - ( - COUNT( ALL - 79 ) ), + NULLIF ( 91, CAST( + - 38 AS SIGNED ) + - 40 ) + + SUM( DISTINCT - 37 ) AS col2
----
19
54

skipif mysql # not compatible
query II rowsort label-4574
SELECT DISTINCT + 20 + - - ( - COUNT ( ALL - 79 ) ), + NULLIF ( 91, CAST ( + - 38 AS INTEGER ) + - 40 ) + + SUM ( DISTINCT - 37 ) AS col2
----
19
54

query I rowsort
SELECT - 69 + - 56 + 82 + 12 * + ( - 65 ) + 41 * 93 + - + 60 col1
----
2930

query I rowsort
SELECT ALL + 2 * + + 86 AS col0
----
172

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4577
SELECT SUM( DISTINCT COALESCE ( - - 45, - + 29, + + 26 * - + 23, 51 + - 22 + + 36 * - + 37 DIV - 71 DIV 72 ) )
----
45

skipif mysql # not compatible
query I rowsort label-4577
SELECT SUM ( DISTINCT COALESCE ( - - 45, - + 29, + + 26 * - + 23, 51 + - 22 + + 36 * - + 37 / - 71 / 72 ) )
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4578
SELECT - + 88 DIV + SUM( + 42 )
----
-2

skipif mysql # not compatible
query I rowsort label-4578
SELECT - + 88 / + SUM ( + 42 )
----
-2

query II rowsort
SELECT 45, 2 col2
----
45
2

query II rowsort
SELECT 82, 57 AS col0
----
82
57

query I rowsort
SELECT ALL - - 16 + + - 99 AS col0
----
-83

query I rowsort
SELECT ALL + - 53 + - ( 66 ) + - 50 * 53 AS col2
----
-2769

query I rowsort
SELECT + + 39 * - 37
----
-1443

onlyif mysql # aggregate syntax: 
query I rowsort label-4584
SELECT DISTINCT CASE COUNT( * ) WHEN - COUNT( + + 22 ) THEN + 36 WHEN - - COUNT( * ) / + + 54 + + 17 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4584
SELECT DISTINCT CASE COUNT ( * ) WHEN - COUNT ( + + 22 ) THEN + 36 WHEN - - COUNT ( * ) / + + 54 + + 17 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4585
SELECT ALL 82 DIV + - 27 AS col2, 8
----
-3
8

skipif mysql # not compatible
query II rowsort label-4585
SELECT ALL 82 / + - 27 AS col2, 8
----
-3
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4586
SELECT - 52 * - 68 * + CASE - - CASE + CASE + 59 WHEN - - 39 * - 88 THEN 37 - + 92 + + 83 * - ( + 48 ) + MAX( - + 30 ) + + + 60 * - 88 - 49 + + 47 END WHEN - 87 THEN + + 79 - - + 83 WHEN - CASE + 85 WHEN - - COUNT( * ) THEN - + 28 WHEN + 13 - + + COUNT( * ) THEN - 68 + + 32 END THEN NULL ELSE NULL END WHEN ( - 74 ) THEN + + COUNT( * ) * - CAST( + 77 AS SIGNED ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4586
SELECT - 52 * - 68 * + CASE - - CASE + CASE + 59 WHEN - - 39 * - 88 THEN 37 - + 92 + + 83 * - ( + 48 ) + MAX ( - + 30 ) + + + 60 * - 88 - 49 + + 47 END WHEN - 87 THEN + + 79 - - + 83 WHEN - CASE + 85 WHEN - - COUNT ( * ) THEN - + 28 WHEN + 13 - + + COUNT ( * ) THEN - 68 + + 32 END THEN NULL ELSE NULL END WHEN ( - 74 ) THEN + + COUNT ( * ) * - CAST ( + 77 AS INTEGER ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4587
SELECT DISTINCT - 14 - - + COUNT( * ) + COUNT( * ) AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-4587
SELECT DISTINCT - 14 - - + COUNT ( * ) + COUNT ( * ) AS col2
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4588
SELECT DISTINCT + CASE 50 WHEN - - COUNT( DISTINCT + + 48 ) * + COUNT( * ) + + - 36 * CAST( + CAST( + 68 AS SIGNED ) AS SIGNED ) * - - 44 + + 14 + 8 THEN + 42 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4588
SELECT DISTINCT + CASE 50 WHEN - - COUNT ( DISTINCT + + 48 ) * + COUNT ( * ) + + - 36 * CAST ( + CAST ( + 68 AS INTEGER ) AS INTEGER ) * - - 44 + + 14 + 8 THEN + 42 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4589
SELECT - + NULLIF ( - ( - - COALESCE ( 93, + 48 DIV - - CAST( NULL AS SIGNED ) - - COUNT( DISTINCT + - 22 ) + - + 36 ) ), 68 )
----
93

skipif mysql # not compatible
query I rowsort label-4589
SELECT - + NULLIF ( - ( - - COALESCE ( 93, + 48 / - - CAST ( NULL AS INTEGER ) - - COUNT ( DISTINCT + - 22 ) + - + 36 ) ), 68 )
----
93

query II rowsort
SELECT + + ( 92 ) + COALESCE ( 11, 13, 56 ), - 27 col2
----
103
-27

query II rowsort
SELECT DISTINCT + 59 col2, 37 + + 41 AS col1
----
59
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4592
SELECT + + 37 + - ( - COUNT( * ) )
----
38

skipif mysql # not compatible
query I rowsort label-4592
SELECT + + 37 + - ( - COUNT ( * ) )
----
38

query I rowsort
SELECT ALL - 32 * 74 * 20 + + + 47 + - 90 AS col2
----
-47403

query II rowsort
SELECT - 20 AS col1, 82
----
-20
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4595
SELECT + 10 * + CAST( NULL AS SIGNED ) * + CASE + SUM( + 26 ) WHEN - 19 THEN ( 33 ) ELSE + 53 END * + 1 * ( 30 ) * + - 99 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4595
SELECT + 10 * + CAST ( NULL AS INTEGER ) * + CASE + SUM ( + 26 ) WHEN - 19 THEN ( 33 ) ELSE + 53 END * + 1 * ( 30 ) * + - 99 col2
----
NULL

query III rowsort
SELECT + 70, + 23 col1, NULLIF ( - + 38, + 44 ) AS col0
----
70
23
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-4597
SELECT + 68 * + 56 * - - ( COUNT( 54 ) ) + - 26
----
3782

skipif mysql # not compatible
query I rowsort label-4597
SELECT + 68 * + 56 * - - ( COUNT ( 54 ) ) + - 26
----
3782

query II rowsort
SELECT ALL 83 * - - 69 AS col1, + 55 AS col2
----
5727
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4599
SELECT + CASE WHEN CAST( NULL AS SIGNED ) IS NULL THEN - 15 WHEN NOT COUNT( * ) >= + 78 * - 78 DIV 48 + + 14 THEN 9 END DIV + 17 - 43
----
-43

skipif mysql # not compatible
query I rowsort label-4599
SELECT + CASE WHEN CAST ( NULL AS INTEGER ) IS NULL THEN - 15 WHEN NOT COUNT ( * ) >= + 78 * - 78 / 48 + + 14 THEN 9 END / + 17 - 43
----
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-4600
SELECT + ( - 70 ) DIV 10 + - + 97 col2
----
-104

skipif mysql # not compatible
query I rowsort label-4600
SELECT + ( - 70 ) / 10 + - + 97 col2
----
-104

query I rowsort
SELECT + NULLIF ( + 23, 67 * 39 ) * - 98 + 47 AS col2
----
-2207

onlyif mysql # aggregate syntax: 
query I rowsort label-4602
SELECT CASE + 78 WHEN - + 24 THEN + 27 * + - 50 * - + NULLIF ( 43, + + COUNT( + 82 ) + - + COUNT( * ) + COALESCE ( - 84, 4 ) ) - + - 72 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4602
SELECT CASE + 78 WHEN - + 24 THEN + 27 * + - 50 * - + NULLIF ( 43, + + COUNT ( + 82 ) + - + COUNT ( * ) + COALESCE ( - 84, 4 ) ) - + - 72 END
----
NULL

query I rowsort
SELECT ALL - 66 * 76 + + 27
----
-4989

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4604
SELECT + CAST( NULL AS SIGNED ) - + - CASE + 13 WHEN - 99 / 12 THEN - 31 ELSE - - 2 - + CAST( - 24 AS DECIMAL ) + + - 82 + + 18 END * + 64 + + - 53
----
NULL

skipif mysql # not compatible
query I rowsort label-4604
SELECT + CAST ( NULL AS INTEGER ) - + - CASE + 13 WHEN - 99 / 12 THEN - 31 ELSE - - 2 - + CAST ( - 24 AS REAL ) + + - 82 + + 18 END * + 64 + + - 53
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4605
SELECT COALESCE ( MAX( - + 70 ), + + COUNT( * ), - 48 * - + ( - + 26 ) ) AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-4605
SELECT COALESCE ( MAX ( - + 70 ), + + COUNT ( * ), - 48 * - + ( - + 26 ) ) AS col2
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4606
SELECT ALL ( 12 ) * + 26 + + NULLIF ( + 8, + COUNT( * ) / 23 * CAST( + 43 AS SIGNED ) / - 68 * - 54 + 26 )
----
320

skipif mysql # not compatible
query I rowsort label-4606
SELECT ALL ( 12 ) * + 26 + + NULLIF ( + 8, + COUNT ( * ) / 23 * CAST ( + 43 AS INTEGER ) / - 68 * - 54 + 26 )
----
320

query I rowsort
SELECT ALL - ( + 85 ) * - 6
----
510

query I rowsort
SELECT ALL + 66 * 81 + 72
----
5418

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4609
SELECT + 64 DIV COUNT( * ) * - - 45 col0
----
2880

skipif mysql # not compatible
query I rowsort label-4609
SELECT + 64 / COUNT ( * ) * - - 45 col0
----
2880

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4610
SELECT ALL 29 * + ( 43 ) DIV + - COUNT( * ) + + 69 + - 81 - 9 + - + 87
----
-1355

skipif mysql # not compatible
query I rowsort label-4610
SELECT ALL 29 * + ( 43 ) / + - COUNT ( * ) + + 69 + - 81 - 9 + - + 87
----
-1355

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4611
SELECT DISTINCT + COALESCE ( SUM( DISTINCT - 27 ), - 20 + 12 ) * + - 78 * + 10 + 88 + + 5 + + - 7 AS col0, + 71 DIV - 78 AS col2
----
21146
0

skipif mysql # not compatible
query II rowsort label-4611
SELECT DISTINCT + COALESCE ( SUM ( DISTINCT - 27 ), - 20 + 12 ) * + - 78 * + 10 + 88 + + 5 + + - 7 AS col0, + 71 / - 78 AS col2
----
21146
0

query I rowsort
SELECT ALL + 50 * + 18 + + + 75
----
975

onlyif mysql # aggregate syntax: 
query I rowsort label-4613
SELECT ALL MAX( DISTINCT + - 39 ) * + COALESCE ( + - 74, - 21 )
----
2886

skipif mysql # not compatible
query I rowsort label-4613
SELECT ALL MAX ( DISTINCT + - 39 ) * + COALESCE ( + - 74, - 21 )
----
2886

onlyif mysql # aggregate syntax: 
query I rowsort label-4614
SELECT MIN( DISTINCT + 5 ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-4614
SELECT MIN ( DISTINCT + 5 ) AS col1
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4615
SELECT 43 * - 32 + + - COUNT( * ) DIV + 62 col1
----
-1376

skipif mysql # not compatible
query I rowsort label-4615
SELECT 43 * - 32 + + - COUNT ( * ) / + 62 col1
----
-1376

query II rowsort
SELECT - 34 - - 88 AS col2, 22
----
54
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4617
SELECT - ( COUNT( * ) ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-4617
SELECT - ( COUNT ( * ) ) col2
----
-1

query I rowsort
SELECT + 4 + + 60 * - 32
----
-1916

query I rowsort
SELECT - 10 * - 7
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-4620
SELECT ( - 42 ), SUM( 4 ) - + COUNT( * ) col2
----
-42
3

skipif mysql # not compatible
query II rowsort label-4620
SELECT ( - 42 ), SUM ( 4 ) - + COUNT ( * ) col2
----
-42
3

query I rowsort
SELECT ALL - 79 + + + 93 + + - 84
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-4622
SELECT - 27 + COUNT( * ) + - ( + CASE - + MAX( ALL + 29 ) WHEN - 75 THEN - AVG ( + + 19 ) ELSE NULL END ) * + 90 * - + 18
----
NULL

skipif mysql # not compatible
query I rowsort label-4622
SELECT - 27 + COUNT ( * ) + - ( + CASE - + MAX ( ALL + 29 ) WHEN - 75 THEN - AVG ( + + 19 ) ELSE NULL END ) * + 90 * - + 18
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4623
SELECT - + MAX( 18 ) col0
----
-18

skipif mysql # not compatible
query I rowsort label-4623
SELECT - + MAX ( 18 ) col0
----
-18

query I rowsort
SELECT - - 32 * - 28 col2
----
-896

query I rowsort
SELECT ALL + 27 * + 74 * + 58 + - + ( + - 88 ) AS col1
----
115972

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4626
SELECT - + CASE - 29 WHEN + + 8 THEN NULL ELSE ( SUM( + + 14 ) ) END + 38, 77 - - 47 DIV - 88 - - NULLIF ( 83, - ( + ( + - 8 ) ) * 44 + - 83 ) * + ( 68 ) AS col1
----
24
5721

skipif mysql # not compatible
query II rowsort label-4626
SELECT - + CASE - 29 WHEN + + 8 THEN NULL ELSE ( SUM ( + + 14 ) ) END + 38, 77 - - 47 / - 88 - - NULLIF ( 83, - ( + ( + - 8 ) ) * 44 + - 83 ) * + ( 68 ) AS col1
----
24
5721

onlyif mysql # aggregate syntax: 
query I rowsort label-4627
SELECT - ( MAX( 98 ) ) AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-4627
SELECT - ( MAX ( 98 ) ) AS col2
----
-98

query I rowsort
SELECT - - 72 * - 47
----
-3384

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4629
SELECT - 85 * - ( - CAST( NULL AS SIGNED ) ) / 49
----
NULL

skipif mysql # not compatible
query I rowsort label-4629
SELECT - 85 * - ( - CAST ( NULL AS INTEGER ) ) / 49
----
NULL

query I rowsort
SELECT - 25 - + 76 AS col2
----
-101

onlyif mysql # aggregate syntax: 
query I rowsort label-4631
SELECT DISTINCT - 33 * - + 42 + NULLIF ( + + COUNT( * ), - 21 * - + 8 + - + 53 )
----
1387

skipif mysql # not compatible
query I rowsort label-4631
SELECT DISTINCT - 33 * - + 42 + NULLIF ( + + COUNT ( * ), - 21 * - + 8 + - + 53 )
----
1387

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4632
SELECT ALL - + 33 / - + 80 * 34 * 6 + - ( - + CASE CAST( + - AVG ( + 71 ) AS SIGNED ) WHEN + 70 THEN NULL WHEN + + 28 THEN + 51 END ), SUM( + 60 ) * 86 AS col2
----
NULL
5160

skipif mysql # not compatible
query II rowsort label-4632
SELECT ALL - + 33 / - + 80 * 34 * 6 + - ( - + CASE CAST ( + - AVG ( + 71 ) AS INTEGER ) WHEN + 70 THEN NULL WHEN + + 28 THEN + 51 END ), SUM ( + 60 ) * 86 AS col2
----
NULL
5160

onlyif mysql # aggregate syntax: 
query II rowsort label-4633
SELECT - 52 * 8 AS col0, 41 * + 23 * - CASE ( 69 ) WHEN - 65 THEN - + 60 + - + 49 WHEN + 86 / - 72 * 57 * 4 + - MIN( ALL + + 31 ) THEN NULL ELSE - - ( 69 ) END AS col0
----
-416
-65067

skipif mysql # not compatible
query II rowsort label-4633
SELECT - 52 * 8 AS col0, 41 * + 23 * - CASE ( 69 ) WHEN - 65 THEN - + 60 + - + 49 WHEN + 86 / - 72 * 57 * 4 + - MIN ( ALL + + 31 ) THEN NULL ELSE - - ( 69 ) END AS col0
----
-416
-65067

onlyif mysql # aggregate syntax: 
query I rowsort label-4634
SELECT - - NULLIF ( MIN( DISTINCT - + ( - - 71 ) ), + 72 - 41 ) * COUNT( * ) col2
----
-71

skipif mysql # not compatible
query I rowsort label-4634
SELECT - - NULLIF ( MIN ( DISTINCT - + ( - - 71 ) ), + 72 - 41 ) * COUNT ( * ) col2
----
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-4635
SELECT + 89 DIV - - 91 - + 48 - + 10 AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-4635
SELECT + 89 / - - 91 - + 48 - + 10 AS col2
----
-58

query I rowsort
SELECT DISTINCT + ( + 52 ) AS col1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4637
SELECT + 48 - - + 96 * 70 * MIN( ALL + 82 ) + 29
----
551117

skipif mysql # not compatible
query I rowsort label-4637
SELECT + 48 - - + 96 * 70 * MIN ( ALL + 82 ) + 29
----
551117

query I rowsort
SELECT + 88 * + 25 + + + ( 65 ) AS col1
----
2265

query I rowsort
SELECT + 24 * - 26 AS col1
----
-624

query I rowsort
SELECT + 26 * + + 62 + - 84 AS col2
----
1528

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4641
SELECT DISTINCT SUM( + 4 ) DIV - - 96 + + - 71 AS col0, - 46
----
-71
-46

skipif mysql # not compatible
query II rowsort label-4641
SELECT DISTINCT SUM ( + 4 ) / - - 96 + + - 71 AS col0, - 46
----
-71
-46

query I rowsort
SELECT DISTINCT + 20 * - 38 * 45
----
-34200

onlyif mysql # aggregate syntax: 
query I rowsort label-4643
SELECT - 50 * + - COUNT( * ) * - 92 + + 40 * + 40
----
-3000

skipif mysql # not compatible
query I rowsort label-4643
SELECT - 50 * + - COUNT ( * ) * - 92 + + 40 * + 40
----
-3000

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4644
SELECT ALL CAST( COUNT( ALL + 42 ) AS SIGNED ) + - - COUNT( CAST( + + 57 AS SIGNED ) ) * - + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-4644
SELECT ALL CAST ( COUNT ( ALL + 42 ) AS INTEGER ) + - - COUNT ( CAST ( + + 57 AS INTEGER ) ) * - + COUNT ( * )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4645
SELECT 44 AS col0, + COUNT( * ) + 92 * ( - 18 ) DIV + 86 AS col1
----
44
-18

skipif mysql # not compatible
query II rowsort label-4645
SELECT 44 AS col0, + COUNT ( * ) + 92 * ( - 18 ) / + 86 AS col1
----
44
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-4646
SELECT NULLIF ( + - ( - 44 ), 58 ) + ( 25 ) + - NULLIF ( ( - SUM( - 84 ) ), - - 17 ) + - + 47 * + - 97 AS col1
----
4544

skipif mysql # not compatible
query I rowsort label-4646
SELECT NULLIF ( + - ( - 44 ), 58 ) + ( 25 ) + - NULLIF ( ( - SUM ( - 84 ) ), - - 17 ) + - + 47 * + - 97 AS col1
----
4544

query I rowsort
SELECT 40 + - 37
----
3

query I rowsort
SELECT ALL 16 - 67
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4649
SELECT 46 * COUNT( * ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-4649
SELECT 46 * COUNT ( * ) AS col1
----
46

query II rowsort
SELECT + 65, - 97 AS col2
----
65
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-4651
SELECT DISTINCT 58 DIV 13 - + 27 AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-4651
SELECT DISTINCT 58 / 13 - + 27 AS col0
----
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-4652
SELECT - - COUNT( * ), - CASE - COUNT( * ) WHEN - + COUNT( * ) THEN NULL ELSE COUNT( * ) / + COUNT( * ) END AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-4652
SELECT - - COUNT ( * ), - CASE - COUNT ( * ) WHEN - + COUNT ( * ) THEN NULL ELSE COUNT ( * ) / + COUNT ( * ) END AS col2
----
1
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4653
SELECT ALL - COALESCE ( + 92, 82 ) - MAX( + 6 ) - - 25, + 53 AS col1
----
-73
53

skipif mysql # not compatible
query II rowsort label-4653
SELECT ALL - COALESCE ( + 92, 82 ) - MAX ( + 6 ) - - 25, + 53 AS col1
----
-73
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4654
SELECT DISTINCT 85 * - + CAST( - NULLIF ( - 80, 57 ) AS SIGNED )
----
-6800

skipif mysql # not compatible
query I rowsort label-4654
SELECT DISTINCT 85 * - + CAST ( - NULLIF ( - 80, 57 ) AS INTEGER )
----
-6800

onlyif mysql # aggregate syntax: 
query I rowsort label-4655
SELECT + ( - 20 ) / + NULLIF ( CASE + 91 WHEN - 34 THEN + 15 END, - - 53 * + MAX( - 63 ) ) + 1
----
NULL

skipif mysql # not compatible
query I rowsort label-4655
SELECT + ( - 20 ) / + NULLIF ( CASE + 91 WHEN - 34 THEN + 15 END, - - 53 * + MAX ( - 63 ) ) + 1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4656
SELECT ALL - CAST( NULL AS SIGNED ) AS col0, 18 AS col1
----
NULL
18

skipif mysql # not compatible
query II rowsort label-4656
SELECT ALL - CAST ( NULL AS INTEGER ) AS col0, 18 AS col1
----
NULL
18

query II rowsort
SELECT - - 78 AS col2, - 24
----
78
-24

query I rowsort
SELECT - 43 + + 76
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4659
SELECT - 25, 82 * - COUNT( * ) + + 66 + + - 36 DIV + 76 + + - 91 * 17 AS col2
----
-25
-1563

skipif mysql # not compatible
query II rowsort label-4659
SELECT - 25, 82 * - COUNT ( * ) + + 66 + + - 36 / + 76 + + - 91 * 17 AS col2
----
-25
-1563

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4660
SELECT 24 * + - 73 + + ( CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4660
SELECT 24 * + - 73 + + ( CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query II rowsort
SELECT - 98 AS col2, - 53 + - - 57 * 25
----
-98
1372

query I rowsort
SELECT + 9 + - 35 * 54 AS col0
----
-1881

query II rowsort
SELECT DISTINCT 76 col0, + 37 + 54 AS col0
----
76
91

onlyif mysql # DIV for integer division: 
query I rowsort label-4664
SELECT - 59 + + - 71 - - + 95 DIV - 62
----
-131

skipif mysql # not compatible
query I rowsort label-4664
SELECT - 59 + + - 71 - - + 95 / - 62
----
-131

query I rowsort
SELECT 99 - + 76
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-4666
SELECT 70 DIV 34
----
2

skipif mysql # not compatible
query I rowsort label-4666
SELECT 70 / 34
----
2

query I rowsort
SELECT 5 + + 66
----
71

query I rowsort
SELECT ALL - 6 + - 27 + - - 67
----
34

query I rowsort
SELECT 76 * ( 19 )
----
1444

onlyif mysql # aggregate syntax: 
query I rowsort label-4670
SELECT COUNT( * ) + - + 83 AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-4670
SELECT COUNT ( * ) + - + 83 AS col2
----
-82

query I rowsort
SELECT DISTINCT - ( + + 76 ) AS col2
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-4672
SELECT DISTINCT - 61 + - - COUNT( * )
----
-60

skipif mysql # not compatible
query I rowsort label-4672
SELECT DISTINCT - 61 + - - COUNT ( * )
----
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-4673
SELECT ALL + ( ( + 21 ) ) + ( COUNT( * ) ) - - + COUNT( * ) + - + 10 * - + ( + 62 ) AS col1, - 86
----
643
-86

skipif mysql # not compatible
query II rowsort label-4673
SELECT ALL + ( ( + 21 ) ) + ( COUNT ( * ) ) - - + COUNT ( * ) + - + 10 * - + ( + 62 ) AS col1, - 86
----
643
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-4674
SELECT 21 * - - COUNT( * ) * 83 AS col2
----
1743

skipif mysql # not compatible
query I rowsort label-4674
SELECT 21 * - - COUNT ( * ) * 83 AS col2
----
1743

query I rowsort
SELECT ALL + 43 - - 13 * + + 45
----
628

query I rowsort
SELECT DISTINCT - ( + - 66 ) * 41
----
2706

onlyif mysql # aggregate syntax: 
query I rowsort label-4677
SELECT 20 - + 52 * - 20 * COALESCE ( 60, - 54 - - + COUNT( * ) * + 14 ) * - 74 + + 47 AS col0
----
-4617533

skipif mysql # not compatible
query I rowsort label-4677
SELECT 20 - + 52 * - 20 * COALESCE ( 60, - 54 - - + COUNT ( * ) * + 14 ) * - 74 + + 47 AS col0
----
-4617533

query I rowsort
SELECT ALL 10 * + 38
----
380

query I rowsort
SELECT DISTINCT - 98 * + ( + - 27 )
----
2646

query I rowsort
SELECT ALL + 71 - - 4 AS col2
----
75

query I rowsort
SELECT 14 * 84
----
1176

onlyif mysql # aggregate syntax: 
query I rowsort label-4682
SELECT ALL - + COALESCE ( + 88, - COUNT( * ) ) * 18 + 42
----
-1542

skipif mysql # not compatible
query I rowsort label-4682
SELECT ALL - + COALESCE ( + 88, - COUNT ( * ) ) * 18 + 42
----
-1542

query I rowsort
SELECT - 31 - 91
----
-122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4684
SELECT 93 * - + 8 * + + CASE 27 WHEN 61 THEN NULL WHEN + 5 THEN NULL WHEN - MIN( + + 66 ) * - 74 THEN - - 77 ELSE NULL END * COUNT( DISTINCT + + 20 ) - + CAST( NULL AS SIGNED ) + - - 91 * + + MAX( DISTINCT 4 ) * - 42 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4684
SELECT 93 * - + 8 * + + CASE 27 WHEN 61 THEN NULL WHEN + 5 THEN NULL WHEN - MIN ( + + 66 ) * - 74 THEN - - 77 ELSE NULL END * COUNT ( DISTINCT + + 20 ) - + CAST ( NULL AS INTEGER ) + - - 91 * + + MAX ( DISTINCT 4 ) * - 42 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4685
SELECT + 40 * - + CAST( NULL AS DECIMAL ) + + + 78 + + SUM( + 65 ) * - COUNT( ALL - + 58 ) * - 31 + 87 * + 8 + - 48
----
NULL

skipif mysql # not compatible
query I rowsort label-4685
SELECT + 40 * - + CAST ( NULL AS REAL ) + + + 78 + + SUM ( + 65 ) * - COUNT ( ALL - + 58 ) * - 31 + 87 * + 8 + - 48
----
NULL

query I rowsort
SELECT + 98 + + - 1
----
97

query I rowsort
SELECT ALL - 44 * 44 + 99 AS col1
----
-1837

query I rowsort
SELECT + 7 * 63 AS col2
----
441

query I rowsort
SELECT 62 * - NULLIF ( - - NULLIF ( + + 13, 36 ), + + 68 * + + 32 )
----
-806

query I rowsort
SELECT DISTINCT 60 + + 81 AS col2
----
141

query I rowsort
SELECT ALL 4 + ( - 62 ) * - 67
----
4158

query I rowsort
SELECT - 56 * - 32 * - + 28 AS col1
----
-50176

onlyif mysql # aggregate syntax: 
query I rowsort label-4693
SELECT DISTINCT - 92 + COUNT( * )
----
-91

skipif mysql # not compatible
query I rowsort label-4693
SELECT DISTINCT - 92 + COUNT ( * )
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4694
SELECT ALL 89 + + 87 + - 60 + + CAST( + 51 AS SIGNED ) col1, + COUNT( 72 ) + - COUNT( DISTINCT + - 22 )
----
167
0

skipif mysql # not compatible
query II rowsort label-4694
SELECT ALL 89 + + 87 + - 60 + + CAST ( + 51 AS INTEGER ) col1, + COUNT ( 72 ) + - COUNT ( DISTINCT + - 22 )
----
167
0

query II rowsort
SELECT 75, + 11 AS col0
----
75
11

query I rowsort
SELECT 86 - - 2 col1
----
88

query I rowsort
SELECT DISTINCT 18 + - 9 * + + ( 72 ) AS col1
----
-630

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4698
SELECT + CAST( + 41 AS SIGNED ) + - 48 AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-4698
SELECT + CAST ( + 41 AS INTEGER ) + - 48 AS col2
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4699
SELECT ALL 94 + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4699
SELECT ALL 94 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4700
SELECT - NULLIF ( + + 24, - - SUM( - 58 ) ) col1
----
-24

skipif mysql # not compatible
query I rowsort label-4700
SELECT - NULLIF ( + + 24, - - SUM ( - 58 ) ) col1
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4701
SELECT - 17 * - 95 * - - ( - COUNT( * ) ) AS col1
----
-1615

skipif mysql # not compatible
query I rowsort label-4701
SELECT - 17 * - 95 * - - ( - COUNT ( * ) ) AS col1
----
-1615

query I rowsort
SELECT 48 * + ( 4 ) + + 17 AS col1
----
209

onlyif mysql # aggregate syntax: 
query I rowsort label-4703
SELECT - 34 - + - COUNT( * ) AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-4703
SELECT - 34 - + - COUNT ( * ) AS col1
----
-33

query I rowsort
SELECT COALESCE ( - 20, - - 30 * - + 25 )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-4705
SELECT - 79 * - + 62 * - - 15 + - MIN( ALL - 7 ) AS col2
----
73477

skipif mysql # not compatible
query I rowsort label-4705
SELECT - 79 * - + 62 * - - 15 + - MIN ( ALL - 7 ) AS col2
----
73477

query I rowsort
SELECT COALESCE ( - 3, + 92 + - 87 )
----
-3

query I rowsort
SELECT DISTINCT + ( 51 ) col1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4708
SELECT ALL COUNT( * ) * + - 94
----
-94

skipif mysql # not compatible
query I rowsort label-4708
SELECT ALL COUNT ( * ) * + - 94
----
-94

query II rowsort
SELECT ALL + 94 col1, - 25 AS col2
----
94
-25

query I rowsort
SELECT - 75 + + - 71 + - 28 * + 10 AS col1
----
-426

query I rowsort
SELECT ALL 81 * + 52 AS col1
----
4212

onlyif mysql # DIV for integer division: 
query I rowsort label-4712
SELECT ALL + 12 DIV - 94
----
0

skipif mysql # not compatible
query I rowsort label-4712
SELECT ALL + 12 / - 94
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4713
SELECT - SUM( - + 95 ) DIV - - 91
----
1

skipif mysql # not compatible
query I rowsort label-4713
SELECT - SUM ( - + 95 ) / - - 91
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4714
SELECT ALL + SUM( - ( ( - 44 ) ) )
----
44

skipif mysql # not compatible
query I rowsort label-4714
SELECT ALL + SUM ( - ( ( - 44 ) ) )
----
44

query I rowsort
SELECT - 98 * - 91 + + - 7 AS col1
----
8911

query I rowsort
SELECT - 46 * - 11 AS col1
----
506

onlyif mysql # aggregate syntax: 
query II rowsort label-4717
SELECT - 16 + - + 54 - - CASE + - 93 WHEN - + 50 + + 1 * + 69 THEN - 74 * - - COUNT( - 11 ) / + - 31 + 20 / 91 + - CASE + 82 WHEN + MAX( ALL + + 76 ) THEN NULL ELSE - 98 END + - + ( + 72 ) / - 24 * - ( - 43 ) * - COALESCE ( - - 57, 45 ) ELSE NULL END AS col0, + 75
----
NULL
75

skipif mysql # not compatible
query II rowsort label-4717
SELECT - 16 + - + 54 - - CASE + - 93 WHEN - + 50 + + 1 * + 69 THEN - 74 * - - COUNT ( - 11 ) / + - 31 + 20 / 91 + - CASE + 82 WHEN + MAX ( ALL + + 76 ) THEN NULL ELSE - 98 END + - + ( + 72 ) / - 24 * - ( - 43 ) * - COALESCE ( - - 57, 45 ) ELSE NULL END AS col0, + 75
----
NULL
75

query II rowsort
SELECT 72 AS col1, - 76
----
72
-76

query I rowsort
SELECT + + 70 + 56
----
126

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4720
SELECT + - 54 * + + 71 * - + 22 * 28 / + COUNT( * ) * - CAST( NULL AS DECIMAL ) * - 28
----
NULL

skipif mysql # not compatible
query I rowsort label-4720
SELECT + - 54 * + + 71 * - + 22 * 28 / + COUNT ( * ) * - CAST ( NULL AS REAL ) * - 28
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4721
SELECT DISTINCT + - NULLIF ( - + MIN( + + 57 ), + 51 )
----
57

skipif mysql # not compatible
query I rowsort label-4721
SELECT DISTINCT + - NULLIF ( - + MIN ( + + 57 ), + 51 )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4722
SELECT ALL + ( - MIN( DISTINCT - 33 ) ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-4722
SELECT ALL + ( - MIN ( DISTINCT - 33 ) ) AS col2
----
33

query I rowsort
SELECT + + ( - - 44 ) * + + NULLIF ( 70, + 64 ) - - 93 + + 71
----
3244

query I rowsort
SELECT DISTINCT 30 + + 91 * - 66
----
-5976

onlyif mysql # aggregate syntax: 
query I rowsort label-4725
SELECT - 5 * - + COUNT( * ) + - + MIN( - 40 )
----
45

skipif mysql # not compatible
query I rowsort label-4725
SELECT - 5 * - + COUNT ( * ) + - + MIN ( - 40 )
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4726
SELECT ALL - + ( + + ( + + SUM( ALL - CAST( - 61 AS SIGNED ) ) ) ) + - 43 AS col2
----
-104

skipif mysql # not compatible
query I rowsort label-4726
SELECT ALL - + ( + + ( + + SUM ( ALL - CAST ( - 61 AS INTEGER ) ) ) ) + - 43 AS col2
----
-104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4727
SELECT - 62 - 68 - - + 44 - + 74 + CAST( - + 74 AS SIGNED ) - COUNT( * ) DIV - + ( - 58 ) AS col2
----
-234

skipif mysql # not compatible
query I rowsort label-4727
SELECT - 62 - 68 - - + 44 - + 74 + CAST ( - + 74 AS INTEGER ) - COUNT ( * ) / - + ( - 58 ) AS col2
----
-234

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4728
SELECT - + 32 DIV + COUNT( 80 )
----
-32

skipif mysql # not compatible
query I rowsort label-4728
SELECT - + 32 / + COUNT ( 80 )
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-4729
SELECT + - 52 + ( - COUNT( - 14 ) ) AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-4729
SELECT + - 52 + ( - COUNT ( - 14 ) ) AS col1
----
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-4730
SELECT - + COALESCE ( 26, + 49 ) AS col2, - COUNT( * )
----
-26
-1

skipif mysql # not compatible
query II rowsort label-4730
SELECT - + COALESCE ( 26, + 49 ) AS col2, - COUNT ( * )
----
-26
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4731
SELECT ALL CAST( NULL AS SIGNED ) / - 43 * + AVG ( + - 64 ) * + + NULLIF ( - + 18, + 70 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4731
SELECT ALL CAST ( NULL AS INTEGER ) / - 43 * + AVG ( + - 64 ) * + + NULLIF ( - + 18, + 70 ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + ( + COALESCE ( 70, + 89 + 24 ) ) + 49 AS col1
----
119

query I rowsort
SELECT ALL ( - 39 ) AS col1
----
-39

query I rowsort
SELECT + 89 + + 40
----
129

query II rowsort
SELECT DISTINCT 0 + + 51 + - - 47 + - 57 + - 97 + 86 AS col2, 88
----
30
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4736
SELECT DISTINCT COUNT( ALL - + 93 )
----
1

skipif mysql # not compatible
query I rowsort label-4736
SELECT DISTINCT COUNT ( ALL - + 93 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4737
SELECT + 17 * - 98 * CAST( - 23 AS SIGNED ) AS col0
----
38318

skipif mysql # not compatible
query I rowsort label-4737
SELECT + 17 * - 98 * CAST ( - 23 AS INTEGER ) AS col0
----
38318

query I rowsort
SELECT + 35 + + 55 * - 66
----
-3595

query II rowsort
SELECT + 23 * - 56 AS col1, + 62 * - - CASE 16 WHEN - 24 THEN 68 WHEN COALESCE ( - AVG ( + 89 ), + 31 ) THEN NULL END * + - 40 AS col1
----
-1288
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4740
SELECT CAST( NULL AS SIGNED ) AS col1, NULLIF ( + 46, - 79 * 4 ) AS col1
----
NULL
46

skipif mysql # not compatible
query II rowsort label-4740
SELECT CAST ( NULL AS INTEGER ) AS col1, NULLIF ( + 46, - 79 * 4 ) AS col1
----
NULL
46

query I rowsort
SELECT + ( - + 80 )
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4742
SELECT CAST( + 12 AS SIGNED ) AS col0
----
12

skipif mysql # not compatible
query I rowsort label-4742
SELECT CAST ( + 12 AS INTEGER ) AS col0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4743
SELECT + COUNT( * ) * - + 3 * COALESCE ( 62, 83, 59 + + + 94 ) * - 29
----
5394

skipif mysql # not compatible
query I rowsort label-4743
SELECT + COUNT ( * ) * - + 3 * COALESCE ( 62, 83, 59 + + + 94 ) * - 29
----
5394

query II rowsort
SELECT 62 AS col2, 86 col0
----
62
86

query II rowsort
SELECT + - 5 * + + 6 AS col1, + 10 + 66 * - + 93 * 64 col2
----
-30
-392822

onlyif mysql # aggregate syntax: 
query II rowsort label-4746
SELECT 5 AS col2, - MAX( ALL - + 50 ) AS col1
----
5
50

skipif mysql # not compatible
query II rowsort label-4746
SELECT 5 AS col2, - MAX ( ALL - + 50 ) AS col1
----
5
50

query I rowsort
SELECT ALL + 44 * 38 * - 36 + 79 + - 54 * - + 50 * + 59 + - 11
----
99176

query I rowsort
SELECT 13 * + 93 - - 5 AS col0
----
1214

onlyif mysql # aggregate syntax: 
query I rowsort label-4749
SELECT + + MAX( - - ( - 92 ) ) * - 78 - + ( + 46 ) - + - 74 + 71 + ( + - 52 ) AS col2
----
7223

skipif mysql # not compatible
query I rowsort label-4749
SELECT + + MAX ( - - ( - 92 ) ) * - 78 - + ( + 46 ) - + - 74 + 71 + ( + - 52 ) AS col2
----
7223

onlyif mysql # aggregate syntax: 
query I rowsort label-4750
SELECT ALL + - NULLIF ( - + 45, + + COUNT( * ) + - 48 )
----
45

skipif mysql # not compatible
query I rowsort label-4750
SELECT ALL + - NULLIF ( - + 45, + + COUNT ( * ) + - 48 )
----
45

query II rowsort
SELECT + - 99 AS col0, 48 * - + 80 + + + 66
----
-99
-3774

onlyif mysql # aggregate syntax: 
query I rowsort label-4752
SELECT ALL + 87 * + ( - 30 ) * + - COUNT( ALL + - 63 ) * - 72 + - - 71 AS col1
----
-187849

skipif mysql # not compatible
query I rowsort label-4752
SELECT ALL + 87 * + ( - 30 ) * + - COUNT ( ALL + - 63 ) * - 72 + - - 71 AS col1
----
-187849

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4753
SELECT - - 72 - + MIN( DISTINCT - + 32 ) DIV + - 53 AS col1
----
72

skipif mysql # not compatible
query I rowsort label-4753
SELECT - - 72 - + MIN ( DISTINCT - + 32 ) / + - 53 AS col1
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-4754
SELECT - 25 DIV + - 9
----
2

skipif mysql # not compatible
query I rowsort label-4754
SELECT - 25 / + - 9
----
2

query I rowsort
SELECT - + 98 - 30 AS col0
----
-128

query II rowsort
SELECT ALL 62 col2, 57
----
62
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4757
SELECT - CAST( + + 66 AS SIGNED )
----
-66

skipif mysql # not compatible
query I rowsort label-4757
SELECT - CAST ( + + 66 AS INTEGER )
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4758
SELECT + 23 AS col2, CAST( + CAST( - NULLIF ( - + COUNT( * ), - 55 ) AS DECIMAL ) AS SIGNED ) AS col1
----
23
1

skipif mysql # not compatible
query II rowsort label-4758
SELECT + 23 AS col2, CAST ( + CAST ( - NULLIF ( - + COUNT ( * ), - 55 ) AS REAL ) AS INTEGER ) AS col1
----
23
1

query II rowsort
SELECT ALL 46 AS col2, + 63
----
46
63

query II rowsort
SELECT ALL - 61 AS col0, 58 * 44
----
-61
2552

query I rowsort
SELECT - 9 + + NULLIF ( 30, 97 ) + 42 AS col0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4762
SELECT COUNT( * ) * 71 AS col1
----
71

skipif mysql # not compatible
query I rowsort label-4762
SELECT COUNT ( * ) * 71 AS col1
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4763
SELECT 95 + + 12 + - + COUNT( * ) - + 21 - 84 DIV 72 DIV + 32 col2, + 77
----
85
77

skipif mysql # not compatible
query II rowsort label-4763
SELECT 95 + + 12 + - + COUNT ( * ) - + 21 - 84 / 72 / + 32 col2, + 77
----
85
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4764
SELECT COALESCE ( COUNT( * ), 69 ) + + + 34
----
35

skipif mysql # not compatible
query I rowsort label-4764
SELECT COALESCE ( COUNT ( * ), 69 ) + + + 34
----
35

query I rowsort
SELECT 20 + - 44 * - - 79 AS col1
----
-3456

query I rowsort
SELECT ALL 87 * 78 col1
----
6786

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4767
SELECT DISTINCT + CAST( NULL AS SIGNED ) / - MAX( DISTINCT + 23 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4767
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / - MAX ( DISTINCT + 23 ) col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4768
SELECT DISTINCT - 31 DIV + 40 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4768
SELECT DISTINCT - 31 / + 40 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4769
SELECT 49 DIV + 2
----
24

skipif mysql # not compatible
query I rowsort label-4769
SELECT 49 / + 2
----
24

query I rowsort
SELECT 49 / + + CASE - 47 WHEN - + 87 - + - 60 THEN + + 40 END - 91
----
NULL

query I rowsort
SELECT ALL 51 * - 19
----
-969

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4772
SELECT - 89 * CAST( NULL AS SIGNED ) + ( SUM( - 9 ) ) * + - 37 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4772
SELECT - 89 * CAST ( NULL AS INTEGER ) + ( SUM ( - 9 ) ) * + - 37 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4773
SELECT CASE 91 WHEN + 4 / - 54 - + COUNT( * ) THEN + - 95 END + + 98 AS col0, + 51 + - 54 AS col1
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-4773
SELECT CASE 91 WHEN + 4 / - 54 - + COUNT ( * ) THEN + - 95 END + + 98 AS col0, + 51 + - 54 AS col1
----
NULL
-3

query I rowsort
SELECT DISTINCT 45 + + - ( - + 17 ) + + 93 AS col2
----
155

onlyif mysql # DIV for integer division: 
query I rowsort label-4775
SELECT 17 * - 4 + - 74 DIV + + 68
----
-69

skipif mysql # not compatible
query I rowsort label-4775
SELECT 17 * - 4 + - 74 / + + 68
----
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4776
SELECT - 11 * + 9 + - COUNT( * ) DIV 82 * - - ( - COUNT( * ) ) + - 2, - ( 83 ) + - + 84 + 3 * + 6 * - 6 AS col0
----
-101
-275

skipif mysql # not compatible
query II rowsort label-4776
SELECT - 11 * + 9 + - COUNT ( * ) / 82 * - - ( - COUNT ( * ) ) + - 2, - ( 83 ) + - + 84 + 3 * + 6 * - 6 AS col0
----
-101
-275

onlyif mysql # aggregate syntax: 
query I rowsort label-4777
SELECT ALL + 37 * NULLIF ( + - 86, - COUNT( * ) ) AS col0
----
-3182

skipif mysql # not compatible
query I rowsort label-4777
SELECT ALL + 37 * NULLIF ( + - 86, - COUNT ( * ) ) AS col0
----
-3182

query I rowsort
SELECT DISTINCT - 20 + + 32
----
12

query I rowsort
SELECT DISTINCT - - 8 col1
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4780
SELECT + + ( NULLIF ( + + 40, + COUNT( * ) ) ) * - 91 + CAST( CASE - - CAST( NULL AS SIGNED ) WHEN + + 29 THEN + 38 WHEN 70 + - COUNT( * ) * - 73 THEN + - COUNT( * ) END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4780
SELECT + + ( NULLIF ( + + 40, + COUNT ( * ) ) ) * - 91 + CAST ( CASE - - CAST ( NULL AS INTEGER ) WHEN + + 29 THEN + 38 WHEN 70 + - COUNT ( * ) * - 73 THEN + - COUNT ( * ) END AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 87 + - ( + 97 ) * - - 67 + 32
----
-6380

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4782
SELECT DISTINCT 52 + COUNT( * ) + + - CASE 66 WHEN - 81 THEN + 92 * ( - + 62 ) ELSE - + 81 END + MIN( DISTINCT - ( + CAST( NULL AS DECIMAL ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4782
SELECT DISTINCT 52 + COUNT ( * ) + + - CASE 66 WHEN - 81 THEN + 92 * ( - + 62 ) ELSE - + 81 END + MIN ( DISTINCT - ( + CAST ( NULL AS REAL ) ) )
----
NULL

query I rowsort
SELECT DISTINCT + 65 * 49 AS col0
----
3185

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4784
SELECT DISTINCT CASE + 29 WHEN - 36 THEN - 88 + + 21 * - - 74 WHEN - 78 THEN NULL ELSE NULL END + + COALESCE ( CASE - 84 WHEN + 90 * - - 76 + + + 91 THEN - + 50 / AVG ( - 74 ) + CAST( NULL AS SIGNED ) * - 99 + 40 * SUM( + - 33 ) + - 62 WHEN + 79 THEN NULL END, 49 ) + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-4784
SELECT DISTINCT CASE + 29 WHEN - 36 THEN - 88 + + 21 * - - 74 WHEN - 78 THEN NULL ELSE NULL END + + COALESCE ( CASE - 84 WHEN + 90 * - - 76 + + + 91 THEN - + 50 / AVG ( - 74 ) + CAST ( NULL AS INTEGER ) * - 99 + 40 * SUM ( + - 33 ) + - 62 WHEN + 79 THEN NULL END, 49 ) + 99
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4785
SELECT + ( + SUM( DISTINCT + CAST( NULL AS SIGNED ) ) ) / + MAX( - + 32 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4785
SELECT + ( + SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) ) / + MAX ( - + 32 ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4786
SELECT 6 + - + CAST( - 29 AS SIGNED ) col1
----
35

skipif mysql # not compatible
query I rowsort label-4786
SELECT 6 + - + CAST ( - 29 AS INTEGER ) col1
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4787
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + - 8, + ( - 6 ) * + 57 AS col1
----
NULL
-342

skipif mysql # not compatible
query II rowsort label-4787
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + - 8, + ( - 6 ) * + 57 AS col1
----
NULL
-342

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4788
SELECT ALL - 72 - + 82 + - CAST( - - 10 AS SIGNED ) + 56 + + 38 * - - ( + 8 )
----
196

skipif mysql # not compatible
query I rowsort label-4788
SELECT ALL - 72 - + 82 + - CAST ( - - 10 AS INTEGER ) + 56 + + 38 * - - ( + 8 )
----
196

query I rowsort
SELECT 86 * + - 79
----
-6794

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4790
SELECT ALL - 61 * - - CAST( - 66 AS SIGNED ) * ( - 43 ) + - 79
----
-173197

skipif mysql # not compatible
query I rowsort label-4790
SELECT ALL - 61 * - - CAST ( - 66 AS INTEGER ) * ( - 43 ) + - 79
----
-173197

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4791
SELECT DISTINCT + COUNT( * ) * 99 * COUNT( * ) + + 67 + COUNT( * ) DIV - COUNT( * ) AS col0
----
165

skipif mysql # not compatible
query I rowsort label-4791
SELECT DISTINCT + COUNT ( * ) * 99 * COUNT ( * ) + + 67 + COUNT ( * ) / - COUNT ( * ) AS col0
----
165

query I rowsort
SELECT 15 * 17 AS col1
----
255

query II rowsort
SELECT - 17 AS col0, + 35
----
-17
35

query I rowsort
SELECT ( - 92 ) - - + 93 * - + 24 + - 60 - 62 AS col0
----
-2446

query I rowsort
SELECT 24 * 10 AS col0
----
240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4796
SELECT 30 + 5 + CAST( - COUNT( * ) AS SIGNED )
----
34

skipif mysql # not compatible
query I rowsort label-4796
SELECT 30 + 5 + CAST ( - COUNT ( * ) AS INTEGER )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4797
SELECT 40 + - MIN( + 39 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4797
SELECT 40 + - MIN ( + 39 ) AS col0
----
1

query I rowsort
SELECT 14 * - + 10 * 82 AS col0
----
-11480

query I rowsort
SELECT 20 + + 35
----
55

query II rowsort
SELECT - 37, 82 * - + 33 AS col2
----
-37
-2706

query I rowsort
SELECT 39 * + + 24
----
936

onlyif mysql # aggregate syntax: 
query I rowsort label-4802
SELECT COUNT( * ) + - 57 + + 14 * 36 - + 88 + - 23 * - 93 + + COUNT( * ) - + + 64
----
2436

skipif mysql # not compatible
query I rowsort label-4802
SELECT COUNT ( * ) + - 57 + + 14 * 36 - + 88 + - 23 * - 93 + + COUNT ( * ) - + + 64
----
2436

onlyif mysql # DIV for integer division: 
query I rowsort label-4803
SELECT DISTINCT + ( + 76 ) * 20 DIV 36 + ( ( + 0 ) ) col2
----
42

skipif mysql # not compatible
query I rowsort label-4803
SELECT DISTINCT + ( + 76 ) * 20 / 36 + ( ( + 0 ) ) col2
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4804
SELECT 55 + - SUM( + CAST( - 84 AS SIGNED ) ) AS col1
----
139

skipif mysql # not compatible
query I rowsort label-4804
SELECT 55 + - SUM ( + CAST ( - 84 AS INTEGER ) ) AS col1
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-4805
SELECT ALL COUNT( DISTINCT + - 81 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-4805
SELECT ALL COUNT ( DISTINCT + - 81 ) col1
----
1

query I rowsort
SELECT ALL - 26 * 99
----
-2574

onlyif mysql # aggregate syntax: 
query I rowsort label-4807
SELECT 65 + - MAX( DISTINCT + + 23 )
----
42

skipif mysql # not compatible
query I rowsort label-4807
SELECT 65 + - MAX ( DISTINCT + + 23 )
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-4808
SELECT COUNT( * ) AS col0, + 95 + 7
----
1
102

skipif mysql # not compatible
query II rowsort label-4808
SELECT COUNT ( * ) AS col0, + 95 + 7
----
1
102

onlyif mysql # aggregate syntax: 
query II rowsort label-4809
SELECT + 61 AS col2, SUM( + + ( + 43 ) )
----
61
43

skipif mysql # not compatible
query II rowsort label-4809
SELECT + 61 AS col2, SUM ( + + ( + 43 ) )
----
61
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4810
SELECT + 35 * + 14 + - + 32 - + CASE - - 61 WHEN + COUNT( * ) THEN NULL WHEN 4 THEN - 6 * - 10 ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4810
SELECT + 35 * + 14 + - + 32 - + CASE - - 61 WHEN + COUNT ( * ) THEN NULL WHEN 4 THEN - 6 * - 10 ELSE NULL END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4811
SELECT DISTINCT - MAX( + ( - + 84 ) ) * 8 + - 44 + 3 AS col1
----
631

skipif mysql # not compatible
query I rowsort label-4811
SELECT DISTINCT - MAX ( + ( - + 84 ) ) * 8 + - 44 + 3 AS col1
----
631

query II rowsort
SELECT + + 37 col0, - 16
----
37
-16

query II rowsort
SELECT - 28 AS col0, - 36 * 94
----
-28
-3384

onlyif mysql # aggregate syntax: 
query I rowsort label-4814
SELECT DISTINCT 53 * + + SUM( 75 ) + - 38 + + 23 + - 45 - - - 36
----
3879

skipif mysql # not compatible
query I rowsort label-4814
SELECT DISTINCT 53 * + + SUM ( 75 ) + - 38 + + 23 + - 45 - - - 36
----
3879

onlyif mysql # aggregate syntax: 
query I rowsort label-4815
SELECT ALL - - 91 * - COUNT( * ) AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-4815
SELECT ALL - - 91 * - COUNT ( * ) AS col2
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4816
SELECT + - 43 * - 71 + + COUNT( * )
----
3054

skipif mysql # not compatible
query I rowsort label-4816
SELECT + - 43 * - 71 + + COUNT ( * )
----
3054

onlyif mysql # aggregate syntax: 
query I rowsort label-4817
SELECT ALL SUM( 60 ) * - 59 + + + COUNT( * ) AS col0
----
-3539

skipif mysql # not compatible
query I rowsort label-4817
SELECT ALL SUM ( 60 ) * - 59 + + + COUNT ( * ) AS col0
----
-3539

query I rowsort
SELECT 31 + 90 AS col2
----
121

query I rowsort
SELECT CASE - 10 WHEN 61 THEN - 51 ELSE NULL END * - + 46
----
NULL

query I rowsort
SELECT + 7 * 7 AS col0
----
49

query I rowsort
SELECT + 51 - - 53 AS col2
----
104

query II rowsort
SELECT DISTINCT + 29, 75 AS col2
----
29
75

query I rowsort
SELECT ALL - 15 - - 25 col0
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4824
SELECT + COUNT( * ) AS col0, - 25 + + - 30 - + 37 + + 19 + + - 4 + - COUNT( * ) - - 67 + + ( + + 99 ) * - - 55 * - - SUM( ALL + 23 ) * - COUNT( * ) + + - 7 DIV 85 * - - 74
----
1
-125246

skipif mysql # not compatible
query II rowsort label-4824
SELECT + COUNT ( * ) AS col0, - 25 + + - 30 - + 37 + + 19 + + - 4 + - COUNT ( * ) - - 67 + + ( + + 99 ) * - - 55 * - - SUM ( ALL + 23 ) * - COUNT ( * ) + + - 7 / 85 * - - 74
----
1
-125246

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4825
SELECT + 52 * - 53 + - + COUNT( * ) * + - 73, + 63 + - CAST( NULL AS SIGNED ) * + 88 - + 75 * - - 8 col0
----
-2683
NULL

skipif mysql # not compatible
query II rowsort label-4825
SELECT + 52 * - 53 + - + COUNT ( * ) * + - 73, + 63 + - CAST ( NULL AS INTEGER ) * + 88 - + 75 * - - 8 col0
----
-2683
NULL

query I rowsort
SELECT + 14 - + - 51 AS col1
----
65

query I rowsort
SELECT + 30 * 74 AS col1
----
2220

query I rowsort
SELECT + ( + + 76 ) + 61 AS col0
----
137

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4829
SELECT - 26 * + COALESCE ( - + 81, 91 ) * 61 - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4829
SELECT - 26 * + COALESCE ( - + 81, 91 ) * 61 - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4830
SELECT ALL 76 * + CAST( NULL AS SIGNED ), - COUNT( * ) AS col2
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-4830
SELECT ALL 76 * + CAST ( NULL AS INTEGER ), - COUNT ( * ) AS col2
----
NULL
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4831
SELECT - 88 * + + 49 * + COUNT( 45 )
----
-4312

skipif mysql # not compatible
query I rowsort label-4831
SELECT - 88 * + + 49 * + COUNT ( 45 )
----
-4312

onlyif mysql # DIV for integer division: 
query I rowsort label-4832
SELECT + 0 * + 14 DIV + + 30 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4832
SELECT + 0 * + 14 / + + 30 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4833
SELECT + 58 + - COUNT( 35 ) + ( + - 91 ) DIV + 58 AS col0
----
56

skipif mysql # not compatible
query I rowsort label-4833
SELECT + 58 + - COUNT ( 35 ) + ( + - 91 ) / + 58 AS col0
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4834
SELECT ALL 40 * SUM( - CAST( 68 AS SIGNED ) ) AS col2
----
-2720

skipif mysql # not compatible
query I rowsort label-4834
SELECT ALL 40 * SUM ( - CAST ( 68 AS INTEGER ) ) AS col2
----
-2720

onlyif mysql # DIV for integer division: 
query I rowsort label-4835
SELECT + 52 DIV - - 96
----
0

skipif mysql # not compatible
query I rowsort label-4835
SELECT + 52 / - - 96
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4836
SELECT ALL CAST( NULL AS SIGNED ) + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4836
SELECT ALL CAST ( NULL AS INTEGER ) + - COUNT ( * )
----
NULL

query I rowsort
SELECT + 40 + + 73
----
113

query I rowsort
SELECT - 98 * + 79 * + 32
----
-247744

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4839
SELECT ALL - 22 + ( - + CAST( + - 55 AS SIGNED ) ) AS col1, + 85
----
33
85

skipif mysql # not compatible
query II rowsort label-4839
SELECT ALL - 22 + ( - + CAST ( + - 55 AS INTEGER ) ) AS col1, + 85
----
33
85

onlyif mysql # DIV for integer division: 
query I rowsort label-4840
SELECT + 10 + - 86 + + - 42 * - + 92 DIV - 90
----
-118

skipif mysql # not compatible
query I rowsort label-4840
SELECT + 10 + - 86 + + - 42 * - + 92 / - 90
----
-118

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4841
SELECT DISTINCT 33 + + CAST( NULL AS SIGNED ) + 71
----
NULL

skipif mysql # not compatible
query I rowsort label-4841
SELECT DISTINCT 33 + + CAST ( NULL AS INTEGER ) + 71
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4842
SELECT ALL - 95 * - - MAX( + 70 )
----
-6650

skipif mysql # not compatible
query I rowsort label-4842
SELECT ALL - 95 * - - MAX ( + 70 )
----
-6650

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4843
SELECT - 62 + + CAST( NULL AS SIGNED ) * 65 + + - COUNT( * ) + COALESCE ( + 64, 91 * 17 * + 3 ) / 72 / + COALESCE ( + COUNT( * ), + - COALESCE ( - CAST( + 25 AS SIGNED ), - - CASE + - COALESCE ( + - 10, + 35 ) WHEN + + 78 THEN NULL ELSE - 21 * - 74 END ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4843
SELECT - 62 + + CAST ( NULL AS INTEGER ) * 65 + + - COUNT ( * ) + COALESCE ( + 64, 91 * 17 * + 3 ) / 72 / + COALESCE ( + COUNT ( * ), + - COALESCE ( - CAST ( + 25 AS INTEGER ), - - CASE + - COALESCE ( + - 10, + 35 ) WHEN + + 78 THEN NULL ELSE - 21 * - 74 END ) ) AS col2
----
NULL

query II rowsort
SELECT ALL 2 + + + 36 col1, - 41 + 48 * + 61
----
38
2887

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4845
SELECT DISTINCT CASE - 53 WHEN + 28 THEN NULL ELSE - COUNT( * ) END, + CAST( NULL AS SIGNED ) + 31 + NULLIF ( 2, - + COALESCE ( + 43, - - 91, - - 97 ) * - - 79 ) col0
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-4845
SELECT DISTINCT CASE - 53 WHEN + 28 THEN NULL ELSE - COUNT ( * ) END, + CAST ( NULL AS INTEGER ) + 31 + NULLIF ( 2, - + COALESCE ( + 43, - - 91, - - 97 ) * - - 79 ) col0
----
-1
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4846
SELECT ALL + 40 + - 94 + + CASE + - 54 WHEN - + CAST( - - 61 AS SIGNED ) * - 84 + - + 88 THEN - 50 + + - 42 + - COUNT( * ) WHEN + 34 THEN NULL WHEN - 40 + - 32 THEN + 78 ELSE MIN( ALL 10 ) + - 49 END - 89 + - 61 * - CAST( NULL AS SIGNED ) * + 79 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4846
SELECT ALL + 40 + - 94 + + CASE + - 54 WHEN - + CAST ( - - 61 AS INTEGER ) * - 84 + - + 88 THEN - 50 + + - 42 + - COUNT ( * ) WHEN + 34 THEN NULL WHEN - 40 + - 32 THEN + 78 ELSE MIN ( ALL 10 ) + - 49 END - 89 + - 61 * - CAST ( NULL AS INTEGER ) * + 79 AS col0
----
NULL

query II rowsort
SELECT + + 39 * + + 58 * + - 21 - + 77, NULLIF ( + 63, - 57 * 23 ) AS col2
----
-47579
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4848
SELECT ALL - 71 * - COUNT( * ) * + COUNT( * )
----
71

skipif mysql # not compatible
query I rowsort label-4848
SELECT ALL - 71 * - COUNT ( * ) * + COUNT ( * )
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4849
SELECT - SUM( DISTINCT 69 ) + + 91 AS col0
----
22

skipif mysql # not compatible
query I rowsort label-4849
SELECT - SUM ( DISTINCT 69 ) + + 91 AS col0
----
22

onlyif mysql # aggregate syntax: 
query II rowsort label-4850
SELECT ALL + MIN( ALL - 62 ) AS col0, 93 * + COALESCE ( 18, + COUNT( * ) )
----
-62
1674

skipif mysql # not compatible
query II rowsort label-4850
SELECT ALL + MIN ( ALL - 62 ) AS col0, 93 * + COALESCE ( 18, + COUNT ( * ) )
----
-62
1674

onlyif mysql # aggregate syntax: 
query I rowsort label-4851
SELECT - - COUNT( - 11 ) + - 61 AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-4851
SELECT - - COUNT ( - 11 ) + - 61 AS col2
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-4852
SELECT ALL + ( - 12 ) DIV 63 + + 54 * - 27 - - 87 AS col0
----
-1371

skipif mysql # not compatible
query I rowsort label-4852
SELECT ALL + ( - 12 ) / 63 + + 54 * - 27 - - 87 AS col0
----
-1371

onlyif mysql # aggregate syntax: 
query II rowsort label-4853
SELECT + ( COUNT( * ) ), - 50 + - 36 AS col0
----
1
-86

skipif mysql # not compatible
query II rowsort label-4853
SELECT + ( COUNT ( * ) ), - 50 + - 36 AS col0
----
1
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4854
SELECT ALL + 55 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4854
SELECT ALL + 55 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4855
SELECT + COUNT( * ) * - 53 + - 66
----
-119

skipif mysql # not compatible
query I rowsort label-4855
SELECT + COUNT ( * ) * - 53 + - 66
----
-119

query I rowsort
SELECT - 71 * 93 AS col2
----
-6603

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4857
SELECT - ( - CAST( NULL AS DECIMAL ) ) * - 58 / 24 + + 38 + - - 46
----
NULL

skipif mysql # not compatible
query I rowsort label-4857
SELECT - ( - CAST ( NULL AS REAL ) ) * - 58 / 24 + + 38 + - - 46
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4858
SELECT DISTINCT + 87 * + 58 DIV - COUNT( * ) - - + 91, 86 + + 56 AS col2
----
-4955
142

skipif mysql # not compatible
query II rowsort label-4858
SELECT DISTINCT + 87 * + 58 / - COUNT ( * ) - - + 91, 86 + + 56 AS col2
----
-4955
142

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4859
SELECT ALL + + CAST( + 46 AS SIGNED ) AS col0
----
46

skipif mysql # not compatible
query I rowsort label-4859
SELECT ALL + + CAST ( + 46 AS INTEGER ) AS col0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4860
SELECT - 75 * + ( - COUNT( DISTINCT + 63 ) ) + 56 + - 11
----
120

skipif mysql # not compatible
query I rowsort label-4860
SELECT - 75 * + ( - COUNT ( DISTINCT + 63 ) ) + 56 + - 11
----
120

query II rowsort
SELECT - + 1 * 73 + ( + 22 ) AS col0, ( - 54 ) * - - 49 AS col0
----
-51
-2646

onlyif mysql # DIV for integer division: 
query II rowsort label-4862
SELECT + + 67 * - + 28 AS col1, + COALESCE ( 50, + 29 * - + 87 + + 7 DIV + 5 ) + + + 24
----
-1876
74

skipif mysql # not compatible
query II rowsort label-4862
SELECT + + 67 * - + 28 AS col1, + COALESCE ( 50, + 29 * - + 87 + + 7 / + 5 ) + + + 24
----
-1876
74

query I rowsort
SELECT ALL + ( 99 ) * + 79
----
7821

query I rowsort
SELECT - + 98 * - 65 * + - 27 * 25 * + 83 - 1 * 49
----
-356879299

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4865
SELECT + MAX( ALL 39 ) + - ( - - 6 ) DIV 74
----
39

skipif mysql # not compatible
query I rowsort label-4865
SELECT + MAX ( ALL 39 ) + - ( - - 6 ) / 74
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4866
SELECT DISTINCT - CASE + 8 WHEN - + 34 * - 13 + + - 25 DIV - 84 * - NULLIF ( + 25, + 6 ) THEN + 76 * + 98 DIV - 32 * - - 93 ELSE 56 END * 18 DIV 63 * - 49 + - 16 + - - COUNT( - 93 ) * - 45
----
723

skipif mysql # not compatible
query I rowsort label-4866
SELECT DISTINCT - CASE + 8 WHEN - + 34 * - 13 + + - 25 / - 84 * - NULLIF ( + 25, + 6 ) THEN + 76 * + 98 / - 32 * - - 93 ELSE 56 END * 18 / 63 * - 49 + - 16 + - - COUNT ( - 93 ) * - 45
----
723

query I rowsort
SELECT 89 * ( - ( + + ( - - 28 ) ) ) + 84
----
-2408

query I rowsort
SELECT ALL + 44 * + 70 + + 23 AS col2
----
3103

onlyif mysql # aggregate syntax: 
query I rowsort label-4869
SELECT ALL 28 * 41 + 87 / - + CASE - - 99 WHEN + 33 THEN - - COALESCE ( 55, + 59, + 69 ) - + 50 + - - 22 - 68 WHEN - 52 + - 10 THEN NULL ELSE NULL END + + - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4869
SELECT ALL 28 * 41 + 87 / - + CASE - - 99 WHEN + 33 THEN - - COALESCE ( 55, + 59, + 69 ) - + 50 + - - 22 - 68 WHEN - 52 + - 10 THEN NULL ELSE NULL END + + - COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT - ( + ( 82 ) )
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4871
SELECT - CAST( - + 94 AS SIGNED ) AS col1
----
94

skipif mysql # not compatible
query I rowsort label-4871
SELECT - CAST ( - + 94 AS INTEGER ) AS col1
----
94

query I rowsort
SELECT ALL 87 * + 60 col2
----
5220

onlyif mysql # aggregate syntax: 
query I rowsort label-4873
SELECT MIN( - 3 )
----
-3

skipif mysql # not compatible
query I rowsort label-4873
SELECT MIN ( - 3 )
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4874
SELECT + MAX( DISTINCT 32 ) + 21 DIV + 41 - - 56 AS col2, + 66
----
88
66

skipif mysql # not compatible
query II rowsort label-4874
SELECT + MAX ( DISTINCT 32 ) + 21 / + 41 - - 56 AS col2, + 66
----
88
66

query I rowsort
SELECT + 10 * - 30 AS col2
----
-300

query I rowsort
SELECT DISTINCT 22 * - + ( + 1 ) AS col1
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4877
SELECT DISTINCT NULLIF ( - + CAST( NULL AS SIGNED ), + 5 ) + 72 * - 49 * 33 * MIN( ALL - 0 ) * 57 / + - 42 + 12 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4877
SELECT DISTINCT NULLIF ( - + CAST ( NULL AS INTEGER ), + 5 ) + 72 * - 49 * 33 * MIN ( ALL - 0 ) * 57 / + - 42 + 12 col2
----
NULL

query I rowsort
SELECT ALL 92 + - 36
----
56

query I rowsort
SELECT ALL 27 + - 39
----
-12

query I rowsort
SELECT DISTINCT 86 * + - 83 AS col1
----
-7138

onlyif mysql # aggregate syntax: 
query I rowsort label-4881
SELECT ALL - + NULLIF ( + 73, + COUNT( * ) * - ( - 68 ) ) - - - 66 AS col1
----
-139

skipif mysql # not compatible
query I rowsort label-4881
SELECT ALL - + NULLIF ( + 73, + COUNT ( * ) * - ( - 68 ) ) - - - 66 AS col1
----
-139

query I rowsort
SELECT + + 64 + - 90 AS col2
----
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-4883
SELECT - - MAX( DISTINCT + 71 ) + + - 66, - 95 AS col0
----
5
-95

skipif mysql # not compatible
query II rowsort label-4883
SELECT - - MAX ( DISTINCT + 71 ) + + - 66, - 95 AS col0
----
5
-95

query I rowsort
SELECT - + 14 + + + 55 AS col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4885
SELECT ALL + 9 - - + SUM( ALL + 51 ) AS col1
----
60

skipif mysql # not compatible
query I rowsort label-4885
SELECT ALL + 9 - - + SUM ( ALL + 51 ) AS col1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4886
SELECT + - 45 * - 53 * COUNT( * ) AS col1
----
2385

skipif mysql # not compatible
query I rowsort label-4886
SELECT + - 45 * - 53 * COUNT ( * ) AS col1
----
2385

query I rowsort
SELECT DISTINCT + - 23 * - 93
----
2139

query I rowsort
SELECT DISTINCT - ( + 51 ) col2
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4889
SELECT ALL 3 - + CAST( - 20 AS SIGNED ) + + 88 AS col1
----
111

skipif mysql # not compatible
query I rowsort label-4889
SELECT ALL 3 - + CAST ( - 20 AS INTEGER ) + + 88 AS col1
----
111

query I rowsort
SELECT DISTINCT - - 11 * - 31
----
-341

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4891
SELECT DISTINCT - - CAST( NULL AS SIGNED ), 23 + + 46 AS col2
----
NULL
69

skipif mysql # not compatible
query II rowsort label-4891
SELECT DISTINCT - - CAST ( NULL AS INTEGER ), 23 + + 46 AS col2
----
NULL
69

query I rowsort
SELECT DISTINCT - ( - 64 ) AS col1
----
64

query I rowsort
SELECT ALL - 82 * - 64
----
5248

onlyif mysql # aggregate syntax: 
query I rowsort label-4894
SELECT ALL - MIN( 70 ) AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-4894
SELECT ALL - MIN ( 70 ) AS col0
----
-70

query I rowsort
SELECT 63 + + - 6 AS col1
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4896
SELECT ALL - SUM( + - 75 ) AS col0
----
75

skipif mysql # not compatible
query I rowsort label-4896
SELECT ALL - SUM ( + - 75 ) AS col0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4897
SELECT DISTINCT - + SUM( - + 16 )
----
16

skipif mysql # not compatible
query I rowsort label-4897
SELECT DISTINCT - + SUM ( - + 16 )
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4898
SELECT DISTINCT - 12 AS col1, + COUNT( * ) DIV + + ( - 10 ) AS col1
----
-12
0

skipif mysql # not compatible
query II rowsort label-4898
SELECT DISTINCT - 12 AS col1, + COUNT ( * ) / + + ( - 10 ) AS col1
----
-12
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4899
SELECT DISTINCT + 39 + - MIN( - 65 )
----
104

skipif mysql # not compatible
query I rowsort label-4899
SELECT DISTINCT + 39 + - MIN ( - 65 )
----
104

query I rowsort
SELECT DISTINCT - 84 + - 60
----
-144

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4901
SELECT 30 DIV + + COUNT( DISTINCT - 12 )
----
30

skipif mysql # not compatible
query I rowsort label-4901
SELECT 30 / + + COUNT ( DISTINCT - 12 )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4902
SELECT 3 * - 86 + - + ( COUNT( * ) )
----
-259

skipif mysql # not compatible
query I rowsort label-4902
SELECT 3 * - 86 + - + ( COUNT ( * ) )
----
-259

onlyif mysql # aggregate syntax: 
query I rowsort label-4903
SELECT ALL - MAX( + 16 ) + + - 55
----
-71

skipif mysql # not compatible
query I rowsort label-4903
SELECT ALL - MAX ( + 16 ) + + - 55
----
-71

query II rowsort
SELECT 44 AS col0, + 92 AS col1
----
44
92

onlyif mysql # DIV for integer division: 
query I rowsort label-4905
SELECT 20 DIV 10 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-4905
SELECT 20 / 10 AS col2
----
2

query I rowsort
SELECT 3 * - - 30 + 87
----
177

query I rowsort
SELECT 59 - - ( 97 ) AS col1
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-4908
SELECT 65 * - NULLIF ( + COUNT( * ), 93 ) * + 39
----
-2535

skipif mysql # not compatible
query I rowsort label-4908
SELECT 65 * - NULLIF ( + COUNT ( * ), 93 ) * + 39
----
-2535

query I rowsort
SELECT DISTINCT - 22 + - 40 AS col2
----
-62

query I rowsort
SELECT ALL + 67 * - + 83
----
-5561

query I rowsort
SELECT DISTINCT - 13 * - 23 * - ( - 99 ) AS col0
----
29601

onlyif mysql # aggregate syntax: 
query II rowsort label-4912
SELECT ALL 44, 89 * + + ( - MIN( + + 56 ) ) AS col0
----
44
-4984

skipif mysql # not compatible
query II rowsort label-4912
SELECT ALL 44, 89 * + + ( - MIN ( + + 56 ) ) AS col0
----
44
-4984

query I rowsort
SELECT 55 * + 68 * 82 AS col2
----
306680

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4914
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + 35 AS col0, 62 DIV + 22 AS col2
----
NULL
2

skipif mysql # not compatible
query II rowsort label-4914
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + 35 AS col0, 62 / + 22 AS col2
----
NULL
2

query I rowsort
SELECT DISTINCT 75 - + 92
----
-17

query II rowsort
SELECT 74, - 14 AS col0
----
74
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4917
SELECT ALL CAST( NULL AS SIGNED ) - - 2
----
NULL

skipif mysql # not compatible
query I rowsort label-4917
SELECT ALL CAST ( NULL AS INTEGER ) - - 2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4918
SELECT ALL 20 * - 90 + - + 22 - + 6 DIV + COALESCE ( MAX( - - 49 ), + 11 + 43, + + 66 * + ( + 47 ) + 61 * ( 97 ) + + + 82 )
----
-1822

skipif mysql # not compatible
query I rowsort label-4918
SELECT ALL 20 * - 90 + - + 22 - + 6 / + COALESCE ( MAX ( - - 49 ), + 11 + 43, + + 66 * + ( + 47 ) + 61 * ( 97 ) + + + 82 )
----
-1822

onlyif mysql # DIV for integer division: 
query I rowsort label-4919
SELECT 68 + - 51 + - 60 + - 38 DIV + - 66 * - 3 * + COALESCE ( + 89, 27, - - 4 )
----
-43

skipif mysql # not compatible
query I rowsort label-4919
SELECT 68 + - 51 + - 60 + - 38 / + - 66 * - 3 * + COALESCE ( + 89, 27, - - 4 )
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-4920
SELECT DISTINCT + 21 * + - COALESCE ( + MAX( DISTINCT 66 ), COUNT( * ) ) AS col1
----
-1386

skipif mysql # not compatible
query I rowsort label-4920
SELECT DISTINCT + 21 * + - COALESCE ( + MAX ( DISTINCT 66 ), COUNT ( * ) ) AS col1
----
-1386

query I rowsort
SELECT - 4 + + 58 col0
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-4922
SELECT 29 * - 91 + - 89 DIV 53 AS col0
----
-2640

skipif mysql # not compatible
query I rowsort label-4922
SELECT 29 * - 91 + - 89 / 53 AS col0
----
-2640

onlyif mysql # DIV for integer division: 
query I rowsort label-4923
SELECT ALL 48 * - - COALESCE ( + + 47, 18 DIV + 77 ) AS col1
----
2256

skipif mysql # not compatible
query I rowsort label-4923
SELECT ALL 48 * - - COALESCE ( + + 47, 18 / + 77 ) AS col1
----
2256

onlyif mysql # aggregate syntax: 
query I rowsort label-4924
SELECT - COUNT( * ) + + - SUM( + + 10 ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-4924
SELECT - COUNT ( * ) + + - SUM ( + + 10 ) AS col2
----
-11

query I rowsort
SELECT ALL + 77 * + 7
----
539

query I rowsort
SELECT ALL + 28 * - 68 AS col1
----
-1904

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4927
SELECT + CAST( + - 31 AS SIGNED ) + + COUNT( * ) DIV + COUNT( * ) + - 3 + - COUNT( * ), 49 * - - 17 AS col2
----
-34
833

skipif mysql # not compatible
query II rowsort label-4927
SELECT + CAST ( + - 31 AS INTEGER ) + + COUNT ( * ) / + COUNT ( * ) + - 3 + - COUNT ( * ), 49 * - - 17 AS col2
----
-34
833

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4928
SELECT CAST( NULL AS SIGNED ) * - + ( + + 35 ) + + COUNT( + - 13 ) + - 9 * + 58 * + + COUNT( + 16 ), 98 * + 11 AS col1
----
NULL
1078

skipif mysql # not compatible
query II rowsort label-4928
SELECT CAST ( NULL AS INTEGER ) * - + ( + + 35 ) + + COUNT ( + - 13 ) + - 9 * + 58 * + + COUNT ( + 16 ), 98 * + 11 AS col1
----
NULL
1078

query I rowsort
SELECT 17 * 41 * - - 5
----
3485

query I rowsort
SELECT + 11 * - + 4 + + 15 + 35 * - 24 AS col2
----
-869

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4931
SELECT + 10 AS col0, CAST( + ( + + 5 ) AS SIGNED )
----
10
5

skipif mysql # not compatible
query II rowsort label-4931
SELECT + 10 AS col0, CAST ( + ( + + 5 ) AS INTEGER )
----
10
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4932
SELECT 6 DIV + + COUNT( * ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-4932
SELECT 6 / + + COUNT ( * ) AS col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4933
SELECT DISTINCT - COUNT( * ) + ( + 28 ) + 34 + 49 col0
----
110

skipif mysql # not compatible
query I rowsort label-4933
SELECT DISTINCT - COUNT ( * ) + ( + 28 ) + 34 + 49 col0
----
110

onlyif mysql # DIV for integer division: 
query I rowsort label-4934
SELECT - 33 DIV - - 81 + 49
----
49

skipif mysql # not compatible
query I rowsort label-4934
SELECT - 33 / - - 81 + 49
----
49

onlyif mysql # aggregate syntax: 
query II rowsort label-4935
SELECT ALL - 12 + + - 69 + MAX( ALL + + 34 ) - + 48 - - 73, 75 AS col2
----
-22
75

skipif mysql # not compatible
query II rowsort label-4935
SELECT ALL - 12 + + - 69 + MAX ( ALL + + 34 ) - + 48 - - 73, 75 AS col2
----
-22
75

query I rowsort
SELECT 55 + + COALESCE ( + + 12, + 32 )
----
67

query I rowsort
SELECT - 51 * - 26 + + 65 + + 47
----
1438

onlyif mysql # aggregate syntax: 
query II rowsort label-4938
SELECT ALL + 98 * + 37, - SUM( DISTINCT + 11 ) AS col2
----
3626
-11

skipif mysql # not compatible
query II rowsort label-4938
SELECT ALL + 98 * + 37, - SUM ( DISTINCT + 11 ) AS col2
----
3626
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4939
SELECT 26 * CASE - - 27 WHEN COUNT( * ) THEN + 16 WHEN - 1 * + COALESCE ( + - 54, CAST( NULL AS SIGNED ), ( - 43 ) + COUNT( * ) + 38 + - ( 35 ) - + COUNT( * ), - + 28 ) * 69 * 45 THEN - + 33 * - + CAST( NULL AS SIGNED ) - + 85 / - + 36 * COALESCE ( + - 57, - 33 + + - ( - AVG ( 30 ) ), - + 97 ) END + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4939
SELECT 26 * CASE - - 27 WHEN COUNT ( * ) THEN + 16 WHEN - 1 * + COALESCE ( + - 54, CAST ( NULL AS INTEGER ), ( - 43 ) + COUNT ( * ) + 38 + - ( 35 ) - + COUNT ( * ), - + 28 ) * 69 * 45 THEN - + 33 * - + CAST ( NULL AS INTEGER ) - + 85 / - + 36 * COALESCE ( + - 57, - 33 + + - ( - AVG ( 30 ) ), - + 97 ) END + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 59 + + 37
----
96

query I rowsort
SELECT ALL + 99 * 34 * 1 col2
----
3366

onlyif mysql # aggregate syntax: 
query I rowsort label-4942
SELECT 68 + - - NULLIF ( + - 62, + + 76 * + 17 ) + + 18 + - ( + 87 ) + + COUNT( * ) + - 92 * - - 92 + + - 64 * 95 * + COALESCE ( - - 90, - - ( 60 ) ) AS col0
----
-555726

skipif mysql # not compatible
query I rowsort label-4942
SELECT 68 + - - NULLIF ( + - 62, + + 76 * + 17 ) + + 18 + - ( + 87 ) + + COUNT ( * ) + - 92 * - - 92 + + - 64 * 95 * + COALESCE ( - - 90, - - ( 60 ) ) AS col0
----
-555726

onlyif mysql # aggregate syntax: 
query I rowsort label-4943
SELECT + 13 * - 30 * + 36 * - 92 + COUNT( * ) AS col1
----
1291681

skipif mysql # not compatible
query I rowsort label-4943
SELECT + 13 * - 30 * + 36 * - 92 + COUNT ( * ) AS col1
----
1291681

onlyif mysql # aggregate syntax: 
query I rowsort label-4944
SELECT DISTINCT - CASE COUNT( * ) WHEN + 95 * + 11 * + 42 / - ( + 24 ) + - - 66 + 0 + 11 * + + 83 * + AVG ( - 79 ) THEN + COUNT( * ) / ( COUNT( * ) ) - + + 48 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4944
SELECT DISTINCT - CASE COUNT ( * ) WHEN + 95 * + 11 * + 42 / - ( + 24 ) + - - 66 + 0 + 11 * + + 83 * + AVG ( - 79 ) THEN + COUNT ( * ) / ( COUNT ( * ) ) - + + 48 END col1
----
NULL

query II rowsort
SELECT DISTINCT - 91 - - 11 col0, - 17 * - 4
----
-80
68

query I rowsort
SELECT ALL + 36 * - 98
----
-3528

onlyif mysql # aggregate syntax: 
query I rowsort label-4947
SELECT MAX( - + 20 ) * - - 60 * - - MAX( DISTINCT 24 ) + + + 38
----
-28762

skipif mysql # not compatible
query I rowsort label-4947
SELECT MAX ( - + 20 ) * - - 60 * - - MAX ( DISTINCT 24 ) + + + 38
----
-28762

onlyif mysql # aggregate syntax: 
query I rowsort label-4948
SELECT 48 - + + SUM( - 13 )
----
61

skipif mysql # not compatible
query I rowsort label-4948
SELECT 48 - + + SUM ( - 13 )
----
61

query II rowsort
SELECT 64 * + 47, + 7 AS col0
----
3008
7

onlyif mysql # DIV for integer division: 
query I rowsort label-4950
SELECT 99 + 53 + 25 * 13 DIV 37 col0
----
160

skipif mysql # not compatible
query I rowsort label-4950
SELECT 99 + 53 + 25 * 13 / 37 col0
----
160

onlyif mysql # aggregate syntax: 
query II rowsort label-4951
SELECT DISTINCT - 50 * - 66 AS col0, + COUNT( * ) AS col1
----
3300
1

skipif mysql # not compatible
query II rowsort label-4951
SELECT DISTINCT - 50 * - 66 AS col0, + COUNT ( * ) AS col1
----
3300
1

query I rowsort
SELECT ALL + 92 * + 60
----
5520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4953
SELECT - CAST( - 83 AS SIGNED ) DIV + 5 + + COUNT( * ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-4953
SELECT - CAST ( - 83 AS INTEGER ) / + 5 + + COUNT ( * ) AS col0
----
17

query I rowsort
SELECT - - 12 * - - 76 col1
----
912

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4955
SELECT ALL + ( + ( - 62 ) ) * 29 * + - CAST( - COUNT( * ) AS SIGNED )
----
-1798

skipif mysql # not compatible
query I rowsort label-4955
SELECT ALL + ( + ( - 62 ) ) * 29 * + - CAST ( - COUNT ( * ) AS INTEGER )
----
-1798

query I rowsort
SELECT - - 44 col0
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-4957
SELECT ALL - 16 + - 58 AS col1, SUM( 20 )
----
-74
20

skipif mysql # not compatible
query II rowsort label-4957
SELECT ALL - 16 + - 58 AS col1, SUM ( 20 )
----
-74
20

query I rowsort
SELECT + - 10 * - 17
----
170

onlyif mysql # aggregate syntax: 
query I rowsort label-4959
SELECT ALL + - 79 * COUNT( * ) + - 47 + + + COUNT( * )
----
-125

skipif mysql # not compatible
query I rowsort label-4959
SELECT ALL + - 79 * COUNT ( * ) + - 47 + + + COUNT ( * )
----
-125

query I rowsort
SELECT + - NULLIF ( + - 67, - 51 ) AS col0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4961
SELECT ALL + COUNT( * ) * + 79 + + - SUM( ALL ( - - 63 ) ) * + COUNT( * ) + - CASE - - 36 WHEN 66 THEN + + CASE - 27 WHEN + + 68 + 2 THEN - + 66 WHEN 36 THEN 12 ELSE NULL END * - + 58 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4961
SELECT ALL + COUNT ( * ) * + 79 + + - SUM ( ALL ( - - 63 ) ) * + COUNT ( * ) + - CASE - - 36 WHEN 66 THEN + + CASE - 27 WHEN + + 68 + 2 THEN - + 66 WHEN 36 THEN 12 ELSE NULL END * - + 58 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4962
SELECT ALL + 81 * 49 + - SUM( DISTINCT - + 11 ) AS col0
----
3980

skipif mysql # not compatible
query I rowsort label-4962
SELECT ALL + 81 * 49 + - SUM ( DISTINCT - + 11 ) AS col0
----
3980

onlyif mysql # aggregate syntax: 
query I rowsort label-4963
SELECT DISTINCT + COUNT( ALL - 61 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4963
SELECT DISTINCT + COUNT ( ALL - 61 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4964
SELECT CASE + + 84 WHEN + - CASE 74 WHEN 71 THEN + - 71 / + 26 WHEN - COUNT( * ) + + + COUNT( * ) THEN NULL ELSE NULL END * - CAST( - 73 AS SIGNED ) * COUNT( * ) THEN COUNT( - + 38 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4964
SELECT CASE + + 84 WHEN + - CASE 74 WHEN 71 THEN + - 71 / + 26 WHEN - COUNT ( * ) + + + COUNT ( * ) THEN NULL ELSE NULL END * - CAST ( - 73 AS INTEGER ) * COUNT ( * ) THEN COUNT ( - + 38 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4965
SELECT - 10 * - 83 + 52 DIV COUNT( * ) + - 31 AS col2
----
851

skipif mysql # not compatible
query I rowsort label-4965
SELECT - 10 * - 83 + 52 / COUNT ( * ) + - 31 AS col2
----
851

onlyif mysql # aggregate syntax: 
query I rowsort label-4966
SELECT CASE + COUNT( * ) WHEN + - 90 THEN - COUNT( * ) ELSE COUNT( * ) END AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4966
SELECT CASE + COUNT ( * ) WHEN + - 90 THEN - COUNT ( * ) ELSE COUNT ( * ) END AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4967
SELECT + 6 * 28 DIV 67 col0
----
2

skipif mysql # not compatible
query I rowsort label-4967
SELECT + 6 * 28 / 67 col0
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4968
SELECT + CASE - 82 WHEN - 19 THEN + - 52 * - CAST( NULL AS SIGNED ) WHEN + 5 THEN NULL WHEN + 27 * + CAST( NULL AS SIGNED ) THEN 60 END * SUM( + + 2 ) AS col1, 63 AS col2
----
NULL
63

skipif mysql # not compatible
query II rowsort label-4968
SELECT + CASE - 82 WHEN - 19 THEN + - 52 * - CAST ( NULL AS INTEGER ) WHEN + 5 THEN NULL WHEN + 27 * + CAST ( NULL AS INTEGER ) THEN 60 END * SUM ( + + 2 ) AS col1, 63 AS col2
----
NULL
63

onlyif mysql # aggregate syntax: 
query II rowsort label-4969
SELECT CASE + 76 WHEN + ( + 89 ) THEN + 45 * + 96 * 3 WHEN + + 72 * - 95 + - 83 + - 24 THEN 36 WHEN + + 58 - - MAX( 53 ) THEN + 18 / + 38 + - 66 END, - 3 AS col0
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-4969
SELECT CASE + 76 WHEN + ( + 89 ) THEN + 45 * + 96 * 3 WHEN + + 72 * - 95 + - 83 + - 24 THEN 36 WHEN + + 58 - - MAX ( 53 ) THEN + 18 / + 38 + - 66 END, - 3 AS col0
----
NULL
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-4970
SELECT ALL 53 * - COUNT( * ) - - 61 AS col1, 19 + + 48 AS col1
----
8
67

skipif mysql # not compatible
query II rowsort label-4970
SELECT ALL 53 * - COUNT ( * ) - - 61 AS col1, 19 + + 48 AS col1
----
8
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4971
SELECT + 70 - + COUNT( * ) AS col1
----
69

skipif mysql # not compatible
query I rowsort label-4971
SELECT + 70 - + COUNT ( * ) AS col1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4972
SELECT CASE - COUNT( * ) WHEN 42 THEN - MIN( + 40 ) WHEN + - 12 THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4972
SELECT CASE - COUNT ( * ) WHEN 42 THEN - MIN ( + 40 ) WHEN + - 12 THEN NULL ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4973
SELECT + 71 * - SUM( ALL + + 8 ) + + 67
----
-501

skipif mysql # not compatible
query I rowsort label-4973
SELECT + 71 * - SUM ( ALL + + 8 ) + + 67
----
-501

onlyif mysql # aggregate syntax: 
query I rowsort label-4974
SELECT ALL + 35 * - ( - MIN( + 98 ) ) - - + 49 AS col2
----
3479

skipif mysql # not compatible
query I rowsort label-4974
SELECT ALL + 35 * - ( - MIN ( + 98 ) ) - - + 49 AS col2
----
3479

query I rowsort
SELECT ALL + 68 * - + 96 AS col2
----
-6528

onlyif mysql # aggregate syntax: 
query II rowsort label-4976
SELECT + ( - + SUM( ALL 4 ) ) AS col1, + 45 + COUNT( * ) * 53 AS col1
----
-4
98

skipif mysql # not compatible
query II rowsort label-4976
SELECT + ( - + SUM ( ALL 4 ) ) AS col1, + 45 + COUNT ( * ) * 53 AS col1
----
-4
98

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4977
SELECT ALL + 0 AS col2, + 73 + + 63 + + 44 + + + 10 / - 11 / + CAST( NULL AS DECIMAL ) + COUNT( * ) col1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-4977
SELECT ALL + 0 AS col2, + 73 + + 63 + + 44 + + + 10 / - 11 / + CAST ( NULL AS REAL ) + COUNT ( * ) col1
----
0
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4978
SELECT + CAST( NULL AS SIGNED ) AS col2, NULLIF ( - 67, + COALESCE ( + 54, + AVG ( ALL - 70 ), + 97 ) * + 56 ) - - 30 - 38 AS col0, ( + 16 ) AS col0
----
NULL
-75
16

skipif mysql # not compatible
query III rowsort label-4978
SELECT + CAST ( NULL AS INTEGER ) AS col2, NULLIF ( - 67, + COALESCE ( + 54, + AVG ( ALL - 70 ), + 97 ) * + 56 ) - - 30 - 38 AS col0, ( + 16 ) AS col0
----
NULL
-75
16

query I rowsort
SELECT ALL 4 * + - 44
----
-176

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4980
SELECT - CAST( NULL AS SIGNED ) * - 89 * 66
----
NULL

skipif mysql # not compatible
query I rowsort label-4980
SELECT - CAST ( NULL AS INTEGER ) * - 89 * 66
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4981
SELECT COUNT( ALL - 62 )
----
1

skipif mysql # not compatible
query I rowsort label-4981
SELECT COUNT ( ALL - 62 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4982
SELECT COUNT( * ) AS col2, + 63 col0
----
1
63

skipif mysql # not compatible
query II rowsort label-4982
SELECT COUNT ( * ) AS col2, + 63 col0
----
1
63

query I rowsort
SELECT DISTINCT - 50 * 5 * ( 52 )
----
-13000

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4984
SELECT 78 * + CAST( 39 AS SIGNED ) + + + 10 AS col1, 53 - - - 91 AS col1
----
3052
-38

skipif mysql # not compatible
query II rowsort label-4984
SELECT 78 * + CAST ( 39 AS INTEGER ) + + + 10 AS col1, 53 - - - 91 AS col1
----
3052
-38

query I rowsort
SELECT + 80 * 71
----
5680

query I rowsort
SELECT - 86 * + 90 AS col2
----
-7740

query I rowsort
SELECT ALL NULLIF ( + 7, 73 ) AS col1
----
7

query II rowsort
SELECT + 31 AS col1, + 19
----
31
19

query I rowsort
SELECT - + 83 + - + 87 AS col0
----
-170

onlyif mysql # aggregate syntax: 
query I rowsort label-4990
SELECT ALL MIN( DISTINCT 75 ) AS col2
----
75

skipif mysql # not compatible
query I rowsort label-4990
SELECT ALL MIN ( DISTINCT 75 ) AS col2
----
75

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4991
SELECT ALL - 72 DIV - 82 + - 92, CAST( NULL AS SIGNED ) * - 6 col1
----
-92
NULL

skipif mysql # not compatible
query II rowsort label-4991
SELECT ALL - 72 / - 82 + - 92, CAST ( NULL AS INTEGER ) * - 6 col1
----
-92
NULL

query I rowsort
SELECT - 99 * - 47
----
4653

query I rowsort
SELECT DISTINCT - + 4 * + - 24 AS col0
----
96

query II rowsort
SELECT + ( - - 6 ) + + + 11 AS col1, - 85 AS col1
----
17
-85

query I rowsort
SELECT - + 75 - + 17
----
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-4996
SELECT DISTINCT COUNT( * ) col0, 31 AS col1
----
1
31

skipif mysql # not compatible
query II rowsort label-4996
SELECT DISTINCT COUNT ( * ) col0, 31 AS col1
----
1
31

query I rowsort
SELECT - - 0 * 67 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4998
SELECT ALL - - 37 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4998
SELECT ALL - - 37 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4999
SELECT - + COALESCE ( + - 42, + 28, - 88 * - 92 * + 67 - COUNT( * ) ) + - 97 + 30 * - - 7 * + 62 DIV ( - 2 ) AS col0
----
-6565

skipif mysql # not compatible
query I rowsort label-4999
SELECT - + COALESCE ( + - 42, + 28, - 88 * - 92 * + 67 - COUNT ( * ) ) + - 97 + 30 * - - 7 * + 62 / ( - 2 ) AS col0
----
-6565

onlyif mysql # aggregate syntax: 
query I rowsort label-5000
SELECT - - 14 + + - COUNT( * )
----
13

skipif mysql # not compatible
query I rowsort label-5000
SELECT - - 14 + + - COUNT ( * )
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5001
SELECT MAX( + CAST( + + 83 AS SIGNED ) )
----
83

skipif mysql # not compatible
query I rowsort label-5001
SELECT MAX ( + CAST ( + + 83 AS INTEGER ) )
----
83

query II rowsort
SELECT ALL - - 62 + + ( + 67 ) AS col1, - 80 * + 36
----
129
-2880

query I rowsort
SELECT - + 39 + + - 0 AS col1
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-5004
SELECT ALL - + 45 * + COUNT( * )
----
-45

skipif mysql # not compatible
query I rowsort label-5004
SELECT ALL - + 45 * + COUNT ( * )
----
-45

query I rowsort
SELECT - 15 + + + 84 + 61 * 84 AS col1
----
5193

onlyif mysql # aggregate syntax: 
query I rowsort label-5006
SELECT ALL COUNT( DISTINCT 8 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-5006
SELECT ALL COUNT ( DISTINCT 8 ) col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5007
SELECT - 29 + + - NULLIF ( - ( + - 71 ), - 21 * + - 90 + 89 + 90 ) DIV - COUNT( * ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-5007
SELECT - 29 + + - NULLIF ( - ( + - 71 ), - 21 * + - 90 + 89 + 90 ) / - COUNT ( * ) AS col0
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5008
SELECT ALL + + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) + 72 + ( + COUNT( * ) ) * 53
----
NULL

skipif mysql # not compatible
query I rowsort label-5008
SELECT ALL + + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) + 72 + ( + COUNT ( * ) ) * 53
----
NULL

query I rowsort
SELECT NULLIF ( + + 99, - - 24 ) AS col0
----
99

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5010
SELECT - AVG ( ALL - 85 ) * 18 * 90 * + CAST( NULL AS SIGNED ) + + CAST( 15 AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5010
SELECT - AVG ( ALL - 85 ) * 18 * 90 * + CAST ( NULL AS INTEGER ) + + CAST ( 15 AS REAL )
----
NULL

query I rowsort
SELECT + 51 + - 86 * + 85 AS col2
----
-7259

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5012
SELECT ALL + + COUNT( * ) AS col1, - 77 DIV - 96 - + + COUNT( ALL - 10 ) - - ( + - 54 ) * - 20 * + 12
----
1
12959

skipif mysql # not compatible
query II rowsort label-5012
SELECT ALL + + COUNT ( * ) AS col1, - 77 / - 96 - + + COUNT ( ALL - 10 ) - - ( + - 54 ) * - 20 * + 12
----
1
12959

onlyif mysql # aggregate syntax: 
query I rowsort label-5013
SELECT + COUNT( * ) + - - 35 + - - 51 * 16 * - + 52 * 47 + - COUNT( * )
----
-1994269

skipif mysql # not compatible
query I rowsort label-5013
SELECT + COUNT ( * ) + - - 35 + - - 51 * 16 * - + 52 * 47 + - COUNT ( * )
----
-1994269

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5014
SELECT CAST( - 93 AS SIGNED ) col0, - ( - + COUNT( * ) )
----
-93
1

skipif mysql # not compatible
query II rowsort label-5014
SELECT CAST ( - 93 AS INTEGER ) col0, - ( - + COUNT ( * ) )
----
-93
1

query I rowsort
SELECT DISTINCT 6 * - - 23 AS col0
----
138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5016
SELECT DISTINCT - COUNT( * ) / + CAST( NULL AS SIGNED ) - - + 73
----
NULL

skipif mysql # not compatible
query I rowsort label-5016
SELECT DISTINCT - COUNT ( * ) / + CAST ( NULL AS INTEGER ) - - + 73
----
NULL

query I rowsort
SELECT ALL 58 * 94 * + + NULLIF ( 76, + 20 )
----
414352

query I rowsort
SELECT + 64 * + 51
----
3264

query II rowsort
SELECT DISTINCT - 63 * + 54, + 24 * - 25 AS col2
----
-3402
-600

query I rowsort
SELECT ALL 5 * 35
----
175

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5021
SELECT + COUNT( * ) DIV - - 95
----
0

skipif mysql # not compatible
query I rowsort label-5021
SELECT + COUNT ( * ) / - - 95
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5022
SELECT COUNT( DISTINCT 84 ) / 83 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5022
SELECT COUNT ( DISTINCT 84 ) / 83 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5023
SELECT DISTINCT COUNT( * ) DIV - - 75
----
0

skipif mysql # not compatible
query I rowsort label-5023
SELECT DISTINCT COUNT ( * ) / - - 75
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5024
SELECT ( + + CASE - - MAX( ALL - 30 ) WHEN + COUNT( * ) THEN - + 25 END ) * + 89 / ( - CASE 79 WHEN + - ( 22 ) THEN - - 82 + + 54 WHEN + 77 * + 62 + + - 51 THEN NULL ELSE NULL END ) + + - 55 * 85 + 7
----
NULL

skipif mysql # not compatible
query I rowsort label-5024
SELECT ( + + CASE - - MAX ( ALL - 30 ) WHEN + COUNT ( * ) THEN - + 25 END ) * + 89 / ( - CASE 79 WHEN + - ( 22 ) THEN - - 82 + + 54 WHEN + 77 * + 62 + + - 51 THEN NULL ELSE NULL END ) + + - 55 * 85 + 7
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5025
SELECT 12 + - - 38 DIV + 24 + - 83 AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-5025
SELECT 12 + - - 38 / + 24 + - 83 AS col2
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-5026
SELECT COUNT( * ) * + 71 * + COUNT( * )
----
71

skipif mysql # not compatible
query I rowsort label-5026
SELECT COUNT ( * ) * + 71 * + COUNT ( * )
----
71

query I rowsort
SELECT ALL CASE - - 19 WHEN 59 + - - 68 / + 84 THEN NULL ELSE - 67 END
----
-67

query II rowsort
SELECT 35 + 97 AS col1, 30 * 21
----
132
630

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5029
SELECT DISTINCT 98 + + CAST( - 78 AS SIGNED ) - + + 6 + + + 51 - 14 * + 48 * + 12 col2
----
-7999

skipif mysql # not compatible
query I rowsort label-5029
SELECT DISTINCT 98 + + CAST ( - 78 AS INTEGER ) - + + 6 + + + 51 - 14 * + 48 * + 12 col2
----
-7999

query I rowsort
SELECT ALL 3 + - - 53 + 37
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5031
SELECT - - CAST( + 2 AS SIGNED )
----
2

skipif mysql # not compatible
query I rowsort label-5031
SELECT - - CAST ( + 2 AS INTEGER )
----
2

query I rowsort
SELECT + 47 + 41
----
88

query I rowsort
SELECT ALL + 74 + + 17 + - 96 AS col2
----
-5

query I rowsort
SELECT - NULLIF ( + - 97, + 10 ) AS col2
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5035
SELECT DISTINCT MIN( DISTINCT - 14 ) + 26
----
12

skipif mysql # not compatible
query I rowsort label-5035
SELECT DISTINCT MIN ( DISTINCT - 14 ) + 26
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5036
SELECT 40 DIV - + 83 AS col0, COUNT( * )
----
0
1

skipif mysql # not compatible
query II rowsort label-5036
SELECT 40 / - + 83 AS col0, COUNT ( * )
----
0
1

query I rowsort
SELECT 84 * - ( + 12 ) AS col2
----
-1008

onlyif mysql # DIV for integer division: 
query I rowsort label-5038
SELECT ALL + 22 DIV + 67 * ( + 12 ) + - + 82 + 2 col1
----
-80

skipif mysql # not compatible
query I rowsort label-5038
SELECT ALL + 22 / + 67 * ( + 12 ) + - + 82 + 2 col1
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-5039
SELECT - MAX( ( - 68 ) )
----
68

skipif mysql # not compatible
query I rowsort label-5039
SELECT - MAX ( ( - 68 ) )
----
68

query I rowsort
SELECT ALL + 40 - + 87 AS col1
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5041
SELECT 39 DIV - - COALESCE ( + SUM( + 50 ), + ( + + 55 ) ) AS col2, - 95 + + COALESCE ( - 64, - - 61 )
----
0
-159

skipif mysql # not compatible
query II rowsort label-5041
SELECT 39 / - - COALESCE ( + SUM ( + 50 ), + ( + + 55 ) ) AS col2, - 95 + + COALESCE ( - 64, - - 61 )
----
0
-159

query I rowsort
SELECT 75 * + 53 col0
----
3975

query I rowsort
SELECT ALL - 76 * + 61 * + ( 36 ) AS col0
----
-166896

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5044
SELECT 49 * - - NULLIF ( + 42, + COUNT( * ) * + - COUNT( * ) * 41 + CASE + 85 WHEN + + 79 * - - 94 THEN ( + - CAST( NULL AS SIGNED ) ) + 44 + - 29 + + + 97 / - ( + COALESCE ( + 58, 12 + - + 40 + + - 34 * 29, - 57 * - 48 / - - 17 ) ) * + + CAST( NULL AS SIGNED ) * MAX( - 94 ) ELSE + - 74 + 24 - - 0 * + 21 + + COUNT( + - 45 ) + - 78 + + COUNT( * ) * + - 49 / + - 46 + + - 2 * - + 0 * - - 46 END + - 85 * - 80 + + - AVG ( ALL - + 77 ) ) AS col0
----
2058

skipif mysql # not compatible
query I rowsort label-5044
SELECT 49 * - - NULLIF ( + 42, + COUNT ( * ) * + - COUNT ( * ) * 41 + CASE + 85 WHEN + + 79 * - - 94 THEN ( + - CAST ( NULL AS INTEGER ) ) + 44 + - 29 + + + 97 / - ( + COALESCE ( + 58, 12 + - + 40 + + - 34 * 29, - 57 * - 48 / - - 17 ) ) * + + CAST ( NULL AS INTEGER ) * MAX ( - 94 ) ELSE + - 74 + 24 - - 0 * + 21 + + COUNT ( + - 45 ) + - 78 + + COUNT ( * ) * + - 49 / + - 46 + + - 2 * - + 0 * - - 46 END + - 85 * - 80 + + - AVG ( ALL - + 77 ) ) AS col0
----
2058

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5045
SELECT ALL 18 AS col0, + 90 * + - MIN( ALL CAST( 95 AS SIGNED ) ) AS col2
----
18
-8550

skipif mysql # not compatible
query II rowsort label-5045
SELECT ALL 18 AS col0, + 90 * + - MIN ( ALL CAST ( 95 AS INTEGER ) ) AS col2
----
18
-8550

query II rowsort
SELECT ALL - 20 AS col0, 75 * 49 AS col2
----
-20
3675

query I rowsort
SELECT DISTINCT - COALESCE ( - 96, + 41 )
----
96

query I rowsort
SELECT ALL - ( 8 ) AS col2
----
-8

query II rowsort
SELECT + 85 AS col0, 54
----
85
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5050
SELECT COALESCE ( 8, 27 ) DIV + 37 + COUNT( DISTINCT 60 ) + - 85
----
-84

skipif mysql # not compatible
query I rowsort label-5050
SELECT COALESCE ( 8, 27 ) / + 37 + COUNT ( DISTINCT 60 ) + - 85
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-5051
SELECT 0 * + NULLIF ( + MAX( + ( + + 42 ) ), - - 31 + - COUNT( ALL + 71 ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5051
SELECT 0 * + NULLIF ( + MAX ( + ( + + 42 ) ), - - 31 + - COUNT ( ALL + 71 ) ) AS col0
----
0

query II rowsort
SELECT 89 * + + ( - ( + - ( 21 ) ) ) AS col0, + 97
----
1869
97

query II rowsort
SELECT DISTINCT + 33 + - - 72 * + 25 + - 58 * - + 61, - 99 AS col0
----
5371
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5054
SELECT DISTINCT COUNT( * ) + - 70 AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-5054
SELECT DISTINCT COUNT ( * ) + - 70 AS col2
----
-69

query I rowsort
SELECT DISTINCT 62 + 36
----
98

query I rowsort
SELECT 79 * ( 22 ) AS col0
----
1738

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5057
SELECT CAST( NULL AS SIGNED ) * 99 + 20 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5057
SELECT CAST ( NULL AS INTEGER ) * 99 + 20 AS col1
----
NULL

query I rowsort
SELECT COALESCE ( 89, 97 * + 54 ) + 42 AS col1
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-5059
SELECT ALL COALESCE ( - COUNT( ALL + 70 ), 80 ) + COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5059
SELECT ALL COALESCE ( - COUNT ( ALL + 70 ), 80 ) + COUNT ( * ) AS col0
----
0

query I rowsort
SELECT ALL 61 + 20
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5061
SELECT 14 - + CAST( NULL AS SIGNED ) * - 30 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5061
SELECT 14 - + CAST ( NULL AS INTEGER ) * - 30 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5062
SELECT ALL MIN( 58 )
----
58

skipif mysql # not compatible
query I rowsort label-5062
SELECT ALL MIN ( 58 )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5063
SELECT ALL CASE - 86 WHEN ( - 18 ) * + CASE 12 * 59 WHEN + 50 / 40 THEN COALESCE ( - 98, 73, SUM( 36 ) ) END THEN NULL WHEN - ( + 42 ) * - 65 - + 13 THEN NULL ELSE 40 + - 62 END + 11 AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-5063
SELECT ALL CASE - 86 WHEN ( - 18 ) * + CASE 12 * 59 WHEN + 50 / 40 THEN COALESCE ( - 98, 73, SUM ( 36 ) ) END THEN NULL WHEN - ( + 42 ) * - 65 - + 13 THEN NULL ELSE 40 + - 62 END + 11 AS col0
----
-11

query I rowsort
SELECT DISTINCT 90 * 47
----
4230

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5065
SELECT ALL 48 - COUNT( * ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5065
SELECT ALL 48 - COUNT ( * ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5066
SELECT - MIN( - 54 )
----
54

skipif mysql # not compatible
query I rowsort label-5066
SELECT - MIN ( - 54 )
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5067
SELECT ALL COUNT( DISTINCT 43 ) * + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-5067
SELECT ALL COUNT ( DISTINCT 43 ) * + COUNT ( * )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5068
SELECT DISTINCT 30 * + COALESCE ( 88, + 1 * + CAST( NULL AS SIGNED ) )
----
2640

skipif mysql # not compatible
query I rowsort label-5068
SELECT DISTINCT 30 * + COALESCE ( 88, + 1 * + CAST ( NULL AS INTEGER ) )
----
2640

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5069
SELECT 39 + CAST( 35 - 88 AS SIGNED ) DIV - 17
----
42

skipif mysql # not compatible
query I rowsort label-5069
SELECT 39 + CAST ( 35 - 88 AS INTEGER ) / - 17
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5070
SELECT COALESCE ( COUNT( * ), + 32 ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5070
SELECT COALESCE ( COUNT ( * ), + 32 ) * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5071
SELECT COALESCE ( 88, 86, - CAST( + 75 AS SIGNED ), - COALESCE ( - 21, 25, + 50 ) + CASE - 2 WHEN - 29 THEN NULL WHEN 21 THEN NULL ELSE - 36 * 14 END ) + MAX( + 29 + 22 )
----
139

skipif mysql # not compatible
query I rowsort label-5071
SELECT COALESCE ( 88, 86, - CAST ( + 75 AS INTEGER ), - COALESCE ( - 21, 25, + 50 ) + CASE - 2 WHEN - 29 THEN NULL WHEN 21 THEN NULL ELSE - 36 * 14 END ) + MAX ( + 29 + 22 )
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-5072
SELECT DISTINCT ( + ( SUM( 73 ) ) ) * + 85
----
6205

skipif mysql # not compatible
query I rowsort label-5072
SELECT DISTINCT ( + ( SUM ( 73 ) ) ) * + 85
----
6205

onlyif mysql # aggregate syntax: 
query I rowsort label-5073
SELECT ALL MAX( - 42 ) AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-5073
SELECT ALL MAX ( - 42 ) AS col0
----
-42

query I rowsort
SELECT 68 + - 72
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-5075
SELECT 74 DIV ( 90 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5075
SELECT 74 / ( 90 ) AS col1
----
0

query I rowsort
SELECT 77 + + 97
----
174

query I rowsort
SELECT 84 + 50 AS col1
----
134

onlyif mysql # DIV for integer division: 
query I rowsort label-5078
SELECT ALL + 18 DIV + 16
----
1

skipif mysql # not compatible
query I rowsort label-5078
SELECT ALL + 18 / + 16
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5079
SELECT - CAST( 60 AS SIGNED ) + 88 * 15 AS col1
----
1260

skipif mysql # not compatible
query I rowsort label-5079
SELECT - CAST ( 60 AS INTEGER ) + 88 * 15 AS col1
----
1260

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5080
SELECT + COALESCE ( 67, + ( 5 ) * ( CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) ) ) AS col1
----
67

skipif mysql # not compatible
query I rowsort label-5080
SELECT + COALESCE ( 67, + ( 5 ) * ( CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) ) ) AS col1
----
67

query I rowsort
SELECT 82 * 77 + 46
----
6360

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5082
SELECT DISTINCT + 91 * + CASE 46 * - 79 WHEN 64 * - 13 THEN - CAST( NULL AS DECIMAL ) - 9 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5082
SELECT DISTINCT + 91 * + CASE 46 * - 79 WHEN 64 * - 13 THEN - CAST ( NULL AS REAL ) - 9 END AS col2
----
NULL

query I rowsort
SELECT DISTINCT 96 * 23 + - 82 AS col0
----
2126

query I rowsort
SELECT ALL 64 * + 43 + 73 AS col0
----
2825

onlyif mysql # aggregate syntax: 
query I rowsort label-5085
SELECT COALESCE ( 27, 42, + COUNT( * ) ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-5085
SELECT COALESCE ( 27, 42, + COUNT ( * ) ) AS col2
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-5086
SELECT - 9 DIV 65 col2
----
0

skipif mysql # not compatible
query I rowsort label-5086
SELECT - 9 / 65 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5087
SELECT ALL 70 * 90 + MIN( ( - 88 ) ) AS col1
----
6212

skipif mysql # not compatible
query I rowsort label-5087
SELECT ALL 70 * 90 + MIN ( ( - 88 ) ) AS col1
----
6212

onlyif mysql # aggregate syntax: 
query I rowsort label-5088
SELECT ALL - COUNT( * ) * + MAX( + ( 36 ) ) + - 83
----
-119

skipif mysql # not compatible
query I rowsort label-5088
SELECT ALL - COUNT ( * ) * + MAX ( + ( 36 ) ) + - 83
----
-119

onlyif mysql # aggregate syntax: 
query I rowsort label-5089
SELECT COUNT( * ) * COALESCE ( + 53, - 63 ) + - 3 AS col0
----
50

skipif mysql # not compatible
query I rowsort label-5089
SELECT COUNT ( * ) * COALESCE ( + 53, - 63 ) + - 3 AS col0
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5090
SELECT DISTINCT - + 67 * 88 + - CAST( - AVG ( ( 76 ) ) + - AVG ( 54 ) AS SIGNED )
----
-5766

skipif mysql # not compatible
query I rowsort label-5090
SELECT DISTINCT - + 67 * 88 + - CAST ( - AVG ( ( 76 ) ) + - AVG ( 54 ) AS INTEGER )
----
-5766

query I rowsort
SELECT ALL + - 2 * - 88 + 47 * + 46
----
2338

onlyif mysql # aggregate syntax: 
query I rowsort label-5092
SELECT - SUM( DISTINCT + ( 23 ) ) - + 56 AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-5092
SELECT - SUM ( DISTINCT + ( 23 ) ) - + 56 AS col1
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-5093
SELECT + COUNT( * ) * + 88 + COUNT( * ) * 28 AS col1
----
116

skipif mysql # not compatible
query I rowsort label-5093
SELECT + COUNT ( * ) * + 88 + COUNT ( * ) * 28 AS col1
----
116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5094
SELECT ALL + 88 DIV + CAST( 66 DIV + CAST( - NULLIF ( - COUNT( DISTINCT 50 ), 13 + + 1 ) AS SIGNED ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-5094
SELECT ALL + 88 / + CAST ( 66 / + CAST ( - NULLIF ( - COUNT ( DISTINCT 50 ), 13 + + 1 ) AS INTEGER ) AS INTEGER )
----
1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5095
SELECT ALL 21 - - COALESCE ( + 82, CASE AVG ( - 92 ) WHEN 76 * + ( - CAST( NULL AS DECIMAL ) ) + + 5 THEN CAST( 7 AS SIGNED ) WHEN - ( 36 ) THEN NULL END )
----
103

skipif mysql # not compatible
query I rowsort label-5095
SELECT ALL 21 - - COALESCE ( + 82, CASE AVG ( - 92 ) WHEN 76 * + ( - CAST ( NULL AS REAL ) ) + + 5 THEN CAST ( 7 AS INTEGER ) WHEN - ( 36 ) THEN NULL END )
----
103

query I rowsort
SELECT + 4 + 5 * 58
----
294

onlyif mysql # aggregate syntax: 
query I rowsort label-5097
SELECT + 9 * CASE + 80 WHEN COUNT( 50 ) * 59 THEN NULL WHEN 74 * - 83 THEN NULL ELSE - 65 * 80 END AS col1
----
-46800

skipif mysql # not compatible
query I rowsort label-5097
SELECT + 9 * CASE + 80 WHEN COUNT ( 50 ) * 59 THEN NULL WHEN 74 * - 83 THEN NULL ELSE - 65 * 80 END AS col1
----
-46800

query I rowsort
SELECT ALL + + 76 * 29
----
2204

onlyif mysql # aggregate syntax: 
query I rowsort label-5099
SELECT + 31 + - COUNT( * ) AS col2
----
30

skipif mysql # not compatible
query I rowsort label-5099
SELECT + 31 + - COUNT ( * ) AS col2
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5100
SELECT MIN( - 7 ) AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-5100
SELECT MIN ( - 7 ) AS col2
----
-7

query I rowsort
SELECT - 75 * + 78
----
-5850

onlyif mysql # aggregate syntax: 
query I rowsort label-5102
SELECT ALL - MIN( DISTINCT 52 )
----
-52

skipif mysql # not compatible
query I rowsort label-5102
SELECT ALL - MIN ( DISTINCT 52 )
----
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-5103
SELECT DISTINCT - 39 DIV - 80 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5103
SELECT DISTINCT - 39 / - 80 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5104
SELECT ALL 12 DIV - 57 * - 71 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5104
SELECT ALL 12 / - 57 * - 71 AS col1
----
0

query I rowsort
SELECT + 23 * + - 90 col0
----
-2070

onlyif mysql # aggregate syntax: 
query I rowsort label-5106
SELECT ALL 35 * - - COUNT( * ) * 11
----
385

skipif mysql # not compatible
query I rowsort label-5106
SELECT ALL 35 * - - COUNT ( * ) * 11
----
385

onlyif mysql # DIV for integer division: 
query I rowsort label-5107
SELECT DISTINCT 47 DIV + 58
----
0

skipif mysql # not compatible
query I rowsort label-5107
SELECT DISTINCT 47 / + 58
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5108
SELECT - MIN( 96 )
----
-96

skipif mysql # not compatible
query I rowsort label-5108
SELECT - MIN ( 96 )
----
-96

query I rowsort
SELECT DISTINCT 40 + 86
----
126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5110
SELECT - COALESCE ( - COUNT( * ), - 52, CAST( NULL AS SIGNED ) - - 16 )
----
1

skipif mysql # not compatible
query I rowsort label-5110
SELECT - COALESCE ( - COUNT ( * ), - 52, CAST ( NULL AS INTEGER ) - - 16 )
----
1

query I rowsort
SELECT + CASE 71 WHEN 93 * 96 THEN 48 * 39 END * - 5
----
NULL

query I rowsort
SELECT - 70 * - - 5 * 44 AS col2
----
-15400

query I rowsort
SELECT + ( 27 ) - - 50 * 17
----
877

query I rowsort
SELECT DISTINCT 4 + + 21 AS col2
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5115
SELECT + CAST( NULL AS SIGNED ) * MAX( ALL 89 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5115
SELECT + CAST ( NULL AS INTEGER ) * MAX ( ALL 89 ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5116
SELECT + CAST( 26 AS SIGNED ) AS col2
----
26

skipif mysql # not compatible
query I rowsort label-5116
SELECT + CAST ( 26 AS INTEGER ) AS col2
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5117
SELECT CAST( - - SUM( ALL - 12 ) AS SIGNED ) AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-5117
SELECT CAST ( - - SUM ( ALL - 12 ) AS INTEGER ) AS col1
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-5118
SELECT ALL - 78 DIV 78 + 26 col1
----
25

skipif mysql # not compatible
query I rowsort label-5118
SELECT ALL - 78 / 78 + 26 col1
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5119
SELECT ALL CAST( NULL AS SIGNED ) / 86 + + 36 * - 6 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5119
SELECT ALL CAST ( NULL AS INTEGER ) / 86 + + 36 * - 6 AS col0
----
NULL

query I rowsort
SELECT - 3 - 28
----
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5121
SELECT ALL + + 25 DIV SUM( DISTINCT 19 ) - - 15
----
16

skipif mysql # not compatible
query I rowsort label-5121
SELECT ALL + + 25 / SUM ( DISTINCT 19 ) - - 15
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-5122
SELECT + + 72 * - COUNT( * ) * - 32
----
2304

skipif mysql # not compatible
query I rowsort label-5122
SELECT + + 72 * - COUNT ( * ) * - 32
----
2304

onlyif mysql # aggregate syntax: 
query I rowsort label-5123
SELECT ALL - + COALESCE ( - 88, - COUNT( * ), - 36 ) * 53
----
4664

skipif mysql # not compatible
query I rowsort label-5123
SELECT ALL - + COALESCE ( - 88, - COUNT ( * ), - 36 ) * 53
----
4664

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5124
SELECT ALL + 87 * COUNT( DISTINCT + ( 1 ) ) DIV + 66 - 93
----
-92

skipif mysql # not compatible
query I rowsort label-5124
SELECT ALL + 87 * COUNT ( DISTINCT + ( 1 ) ) / + 66 - 93
----
-92

query I rowsort
SELECT + 44 * - - 29 + - 23 * + 6
----
1138

onlyif mysql # aggregate syntax: 
query I rowsort label-5126
SELECT ALL - 39 * + CASE COUNT( * ) WHEN - 98 THEN NULL WHEN 83 * - 13 THEN + 93 * - NULLIF ( - 67, - 79 - - 15 ) END + + 48 - 19 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5126
SELECT ALL - 39 * + CASE COUNT ( * ) WHEN - 98 THEN NULL WHEN 83 * - 13 THEN + 93 * - NULLIF ( - 67, - 79 - - 15 ) END + + 48 - 19 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 59 * - 21 * 82 col0
----
-101598

query I rowsort
SELECT ALL + - 23 * + 75 * 21 AS col2
----
-36225

query I rowsort
SELECT DISTINCT + - 67 AS col0
----
-67

query I rowsort
SELECT - + 71 * - 33 + 36
----
2379

onlyif mysql # aggregate syntax: 
query I rowsort label-5131
SELECT ALL NULLIF ( + + COUNT( 5 ), - COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5131
SELECT ALL NULLIF ( + + COUNT ( 5 ), - COUNT ( * ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5132
SELECT MAX( DISTINCT 44 ) AS col0
----
44

skipif mysql # not compatible
query I rowsort label-5132
SELECT MAX ( DISTINCT 44 ) AS col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-5133
SELECT ALL + COUNT( ALL - + 82 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5133
SELECT ALL + COUNT ( ALL - + 82 ) AS col2
----
1

query I rowsort
SELECT - 68 - 2
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-5135
SELECT ALL - - 48 * - - COUNT( * ) + 3 AS col2
----
51

skipif mysql # not compatible
query I rowsort label-5135
SELECT ALL - - 48 * - - COUNT ( * ) + 3 AS col2
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5136
SELECT - 82 * - CAST( - AVG ( - 54 ) AS SIGNED )
----
4428

skipif mysql # not compatible
query I rowsort label-5136
SELECT - 82 * - CAST ( - AVG ( - 54 ) AS INTEGER )
----
4428

onlyif mysql # aggregate syntax: 
query I rowsort label-5137
SELECT ALL 21 * - MAX( ALL 92 ) * + COUNT( * ) AS col1
----
-1932

skipif mysql # not compatible
query I rowsort label-5137
SELECT ALL 21 * - MAX ( ALL 92 ) * + COUNT ( * ) AS col1
----
-1932

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5138
SELECT DISTINCT - 83 * - COUNT( * ) - 20 DIV + 28 AS col2
----
83

skipif mysql # not compatible
query I rowsort label-5138
SELECT DISTINCT - 83 * - COUNT ( * ) - 20 / + 28 AS col2
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5139
SELECT DISTINCT CAST( + 7 AS SIGNED ) AS col2
----
7

skipif mysql # not compatible
query I rowsort label-5139
SELECT DISTINCT CAST ( + 7 AS INTEGER ) AS col2
----
7

query I rowsort
SELECT ALL - 18 + + 98
----
80

query I rowsort
SELECT - 12 + 59 * + 43
----
2525

query I rowsort
SELECT 84 - - 56
----
140

onlyif mysql # DIV for integer division: 
query I rowsort label-5143
SELECT 67 DIV + + 13 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-5143
SELECT 67 / + + 13 AS col2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5144
SELECT 3 * - 27 * MAX( ALL 17 ) * 70 AS col1
----
-96390

skipif mysql # not compatible
query I rowsort label-5144
SELECT 3 * - 27 * MAX ( ALL 17 ) * 70 AS col1
----
-96390

query II rowsort
SELECT 43 AS col2, ( - 63 )
----
43
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-5146
SELECT MIN( ALL + 32 ) + 58
----
90

skipif mysql # not compatible
query I rowsort label-5146
SELECT MIN ( ALL + 32 ) + 58
----
90

query I rowsort
SELECT ALL + 46 + + - 59 + - 14 + - 59 * - 82 AS col2
----
4811

query I rowsort
SELECT ALL 28 + - 42 * + 5 AS col0
----
-182

query I rowsort
SELECT 93 + - 40 + + 92
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-5150
SELECT ALL 46 * MIN( + + 43 ) col1
----
1978

skipif mysql # not compatible
query I rowsort label-5150
SELECT ALL 46 * MIN ( + + 43 ) col1
----
1978

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5151
SELECT DISTINCT - 74 DIV - MAX( DISTINCT - 3 ) AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-5151
SELECT DISTINCT - 74 / - MAX ( DISTINCT - 3 ) AS col1
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5152
SELECT ALL ( - SUM( CAST( NULL AS SIGNED ) ) ) + - 93
----
NULL

skipif mysql # not compatible
query I rowsort label-5152
SELECT ALL ( - SUM ( CAST ( NULL AS INTEGER ) ) ) + - 93
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5153
SELECT COUNT( * ) + + 72 + - 32 * 44 AS col1
----
-1335

skipif mysql # not compatible
query I rowsort label-5153
SELECT COUNT ( * ) + + 72 + - 32 * 44 AS col1
----
-1335

onlyif mysql # aggregate syntax: 
query I rowsort label-5154
SELECT DISTINCT COUNT( * ) + - 36
----
-35

skipif mysql # not compatible
query I rowsort label-5154
SELECT DISTINCT COUNT ( * ) + - 36
----
-35

query II rowsort
SELECT 56, + 63 AS col2
----
56
63

onlyif mysql # aggregate syntax: 
query II rowsort label-5156
SELECT 91, MAX( ALL ( ( COALESCE ( + 10, - 34 * 8 ) ) ) ) + + 57 AS col0
----
91
67

skipif mysql # not compatible
query II rowsort label-5156
SELECT 91, MAX ( ALL ( ( COALESCE ( + 10, - 34 * 8 ) ) ) ) + + 57 AS col0
----
91
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5157
SELECT ALL - + MAX( + - 71 )
----
71

skipif mysql # not compatible
query I rowsort label-5157
SELECT ALL - + MAX ( + - 71 )
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-5158
SELECT ( + COUNT( - - 93 ) ) * + MAX( DISTINCT + 80 ) AS col1
----
80

skipif mysql # not compatible
query I rowsort label-5158
SELECT ( + COUNT ( - - 93 ) ) * + MAX ( DISTINCT + 80 ) AS col1
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-5159
SELECT ALL MAX( DISTINCT 72 ) * - 10
----
-720

skipif mysql # not compatible
query I rowsort label-5159
SELECT ALL MAX ( DISTINCT 72 ) * - 10
----
-720

onlyif mysql # aggregate syntax: 
query II rowsort label-5160
SELECT 43 AS col1, - COUNT( * ) AS col0
----
43
-1

skipif mysql # not compatible
query II rowsort label-5160
SELECT 43 AS col1, - COUNT ( * ) AS col0
----
43
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5161
SELECT + + 97 AS col1, CASE - - CAST( + 69 AS SIGNED ) WHEN 83 * + 28 + 6 * - 75 THEN - 66 WHEN + 75 THEN + 80 WHEN - 56 * 42 THEN NULL ELSE NULL END
----
97
NULL

skipif mysql # not compatible
query II rowsort label-5161
SELECT + + 97 AS col1, CASE - - CAST ( + 69 AS INTEGER ) WHEN 83 * + 28 + 6 * - 75 THEN - 66 WHEN + 75 THEN + 80 WHEN - 56 * 42 THEN NULL ELSE NULL END
----
97
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5162
SELECT ALL - 71, COUNT( + + 72 ) AS col2
----
-71
1

skipif mysql # not compatible
query II rowsort label-5162
SELECT ALL - 71, COUNT ( + + 72 ) AS col2
----
-71
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5163
SELECT + - SUM( ALL 51 ) col2
----
-51

skipif mysql # not compatible
query I rowsort label-5163
SELECT + - SUM ( ALL 51 ) col2
----
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-5164
SELECT 80 AS col2, ( + - 73 ) * + COUNT( * )
----
80
-73

skipif mysql # not compatible
query II rowsort label-5164
SELECT 80 AS col2, ( + - 73 ) * + COUNT ( * )
----
80
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5165
SELECT + ( - 89 ) * 67 * - ( CAST( ( 80 ) AS SIGNED ) ) + 89 * 8
----
477752

skipif mysql # not compatible
query I rowsort label-5165
SELECT + ( - 89 ) * 67 * - ( CAST ( ( 80 ) AS INTEGER ) ) + 89 * 8
----
477752

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5166
SELECT ALL - COUNT( * ) DIV NULLIF ( - - 51, + 51 + + 79 ) - 63 * 17
----
-1071

skipif mysql # not compatible
query I rowsort label-5166
SELECT ALL - COUNT ( * ) / NULLIF ( - - 51, + 51 + + 79 ) - 63 * 17
----
-1071

query I rowsort
SELECT + 30 * 50 AS col2
----
1500

query II rowsort
SELECT ALL - 40 AS col0, - 23 * - 28 col0
----
-40
644

query I rowsort
SELECT ALL 27 * 94 AS col1
----
2538

query I rowsort
SELECT - 0 * - ( - 47 ) + 11
----
11

query I rowsort
SELECT DISTINCT - 12 * - - ( + 18 ) AS col0
----
-216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5172
SELECT ALL - 53 + CAST( + AVG ( + 15 ) AS SIGNED ) AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-5172
SELECT ALL - 53 + CAST ( + AVG ( + 15 ) AS INTEGER ) AS col0
----
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-5173
SELECT - 60, COUNT( * ) AS col2
----
-60
1

skipif mysql # not compatible
query II rowsort label-5173
SELECT - 60, COUNT ( * ) AS col2
----
-60
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5174
SELECT ALL + + COALESCE ( + - 55, + 62 ) + - COUNT( * ) col2
----
-56

skipif mysql # not compatible
query I rowsort label-5174
SELECT ALL + + COALESCE ( + - 55, + 62 ) + - COUNT ( * ) col2
----
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-5175
SELECT + 33 DIV - 92 col2
----
0

skipif mysql # not compatible
query I rowsort label-5175
SELECT + 33 / - 92 col2
----
0

query I rowsort
SELECT 84 + + - 19 AS col0
----
65

query I rowsort
SELECT ALL - 14 + + 12 - + + 78
----
-80

query I rowsort
SELECT DISTINCT - 5 + + - ( + 9 ) * + 94
----
-851

query I rowsort
SELECT ALL - 87 + 77 AS col2
----
-10

query I rowsort
SELECT 83 * + 62 * - + 8
----
-41168

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5181
SELECT ALL - 14 + + CAST( - 13 AS SIGNED ) AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-5181
SELECT ALL - 14 + + CAST ( - 13 AS INTEGER ) AS col2
----
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-5182
SELECT ALL + COUNT( * ) + - 26 AS col0, - 97 AS col0
----
-25
-97

skipif mysql # not compatible
query II rowsort label-5182
SELECT ALL + COUNT ( * ) + - 26 AS col0, - 97 AS col0
----
-25
-97

query I rowsort
SELECT ALL - 60 * 82 * 29 AS col2
----
-142680

onlyif mysql # aggregate syntax: 
query II rowsort label-5184
SELECT 9 * 39 AS col2, + COUNT( * ) + 35 * 79 col1
----
351
2766

skipif mysql # not compatible
query II rowsort label-5184
SELECT 9 * 39 AS col2, + COUNT ( * ) + 35 * 79 col1
----
351
2766

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5185
SELECT 83 - - ( - 77 ) + + COUNT( * ) DIV + ( + 6 + 27 ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-5185
SELECT 83 - - ( - 77 ) + + COUNT ( * ) / + ( + 6 + 27 ) AS col1
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-5186
SELECT 28 DIV + 94 * - - ( 82 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5186
SELECT 28 / + 94 * - - ( 82 ) AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5187
SELECT DISTINCT + 70 - + + 4 * - 88 * 59 DIV COUNT( DISTINCT 45 )
----
20838

skipif mysql # not compatible
query I rowsort label-5187
SELECT DISTINCT + 70 - + + 4 * - 88 * 59 / COUNT ( DISTINCT 45 )
----
20838

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5188
SELECT 18 - - - CAST( NULL AS SIGNED ) * + ( - 82 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5188
SELECT 18 - - - CAST ( NULL AS INTEGER ) * + ( - 82 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5189
SELECT ALL MIN( DISTINCT - ( 90 ) )
----
-90

skipif mysql # not compatible
query I rowsort label-5189
SELECT ALL MIN ( DISTINCT - ( 90 ) )
----
-90

query I rowsort
SELECT + 21 * ( 70 ) AS col1
----
1470

onlyif mysql # aggregate syntax: 
query I rowsort label-5191
SELECT - 39 * COUNT( * ) + - CASE - - 29 WHEN 19 + - 16 THEN ( - 96 ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5191
SELECT - 39 * COUNT ( * ) + - CASE - - 29 WHEN 19 + - 16 THEN ( - 96 ) ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5192
SELECT + 73 DIV - + 24 + - - SUM( ALL - 87 ) * 15
----
-1308

skipif mysql # not compatible
query I rowsort label-5192
SELECT + 73 / - + 24 + - - SUM ( ALL - 87 ) * 15
----
-1308

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5193
SELECT 15 * - + CAST( NULL AS SIGNED ) * - 6 - - 57 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5193
SELECT 15 * - + CAST ( NULL AS INTEGER ) * - 6 - - 57 AS col0
----
NULL

query I rowsort
SELECT 29 * 9
----
261

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5195
SELECT + 5 + 31 * - + ( + CAST( NULL AS SIGNED ) ) * 95 + - ( + COUNT( * ) ) / + 12
----
NULL

skipif mysql # not compatible
query I rowsort label-5195
SELECT + 5 + 31 * - + ( + CAST ( NULL AS INTEGER ) ) * 95 + - ( + COUNT ( * ) ) / + 12
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5196
SELECT + + MAX( DISTINCT + 92 ) * - NULLIF ( - + ( - 9 ), - 80 ) * - SUM( DISTINCT + 14 ) + 64 DIV + CAST( - 40 - - SUM( - 58 ) AS SIGNED ) - 41
----
11551

skipif mysql # not compatible
query I rowsort label-5196
SELECT + + MAX ( DISTINCT + 92 ) * - NULLIF ( - + ( - 9 ), - 80 ) * - SUM ( DISTINCT + 14 ) + 64 / + CAST ( - 40 - - SUM ( - 58 ) AS INTEGER ) - 41
----
11551

query I rowsort
SELECT - ( - 56 ) col1
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5198
SELECT ALL 67 * NULLIF ( - 3, + + ( + 95 ) + 28 * 3 ) * - 29 + COALESCE ( + CASE NULLIF ( + 14, + 19 * - 73 + + 14 ) WHEN 16 THEN + CASE WHEN NULL IS NULL THEN - COUNT( 32 ) END * + 50 WHEN + MAX( 1 ) THEN NULL END, 69 DIV CASE - 9 WHEN - 71 THEN - 8 + - 21 * 5 WHEN - 61 * - 38 THEN NULL END + 0 DIV ( 4 * 72 ), - 62 * - 68 + 19 * + 87 ) * - ( 43 DIV + 21 )
----
-5909

skipif mysql # not compatible
query I rowsort label-5198
SELECT ALL 67 * NULLIF ( - 3, + + ( + 95 ) + 28 * 3 ) * - 29 + COALESCE ( + CASE NULLIF ( + 14, + 19 * - 73 + + 14 ) WHEN 16 THEN + CASE WHEN NULL IS NULL THEN - COUNT ( 32 ) END * + 50 WHEN + MAX ( 1 ) THEN NULL END, 69 / CASE - 9 WHEN - 71 THEN - 8 + - 21 * 5 WHEN - 61 * - 38 THEN NULL END + 0 / ( 4 * 72 ), - 62 * - 68 + 19 * + 87 ) * - ( 43 / + 21 )
----
-5909

onlyif mysql # aggregate syntax: 
query I rowsort label-5199
SELECT + COUNT( * ) * + 39 col0
----
39

skipif mysql # not compatible
query I rowsort label-5199
SELECT + COUNT ( * ) * + 39 col0
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5200
SELECT + - ( 31 ) * - + 85 + - 71 + COUNT( * ) DIV - 98
----
2564

skipif mysql # not compatible
query I rowsort label-5200
SELECT + - ( 31 ) * - + 85 + - 71 + COUNT ( * ) / - 98
----
2564

onlyif mysql # aggregate syntax: 
query I rowsort label-5201
SELECT DISTINCT 16 * NULLIF ( + + COUNT( * ), 1 - 4 )
----
16

skipif mysql # not compatible
query I rowsort label-5201
SELECT DISTINCT 16 * NULLIF ( + + COUNT ( * ), 1 - 4 )
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-5202
SELECT + COUNT( * ) + - 12 * - 48 AS col2
----
577

skipif mysql # not compatible
query I rowsort label-5202
SELECT + COUNT ( * ) + - 12 * - 48 AS col2
----
577

query II rowsort
SELECT - ( + 29 ) AS col2, ( + + 53 )
----
-29
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5204
SELECT + COUNT( * ) + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5204
SELECT + COUNT ( * ) + + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 18 * + 4
----
72

query I rowsort
SELECT ALL 76 + + 38 + 92 + - - 3
----
209

onlyif mysql # aggregate syntax: 
query I rowsort label-5207
SELECT ( - 43 ) * - CASE 96 WHEN + + 44 THEN NULL ELSE COUNT( * ) END - - COUNT( ALL 59 ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-5207
SELECT ( - 43 ) * - CASE 96 WHEN + + 44 THEN NULL ELSE COUNT ( * ) END - - COUNT ( ALL 59 ) AS col1
----
44

query I rowsort
SELECT ALL + 55 * 80 * ( + + 17 ) AS col1
----
74800

onlyif mysql # aggregate syntax: 
query I rowsort label-5209
SELECT ALL - COUNT( DISTINCT 22 ) + - 1 + - 64 + + CASE WHEN ( - 60 ) IN ( - 84 ) THEN NULL ELSE ( - 73 ) END
----
-139

skipif mysql # not compatible
query I rowsort label-5209
SELECT ALL - COUNT ( DISTINCT 22 ) + - 1 + - 64 + + CASE WHEN ( - 60 ) IN ( - 84 ) THEN NULL ELSE ( - 73 ) END
----
-139

onlyif mysql # aggregate syntax: 
query I rowsort label-5210
SELECT ALL SUM( + 72 )
----
72

skipif mysql # not compatible
query I rowsort label-5210
SELECT ALL SUM ( + 72 )
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-5211
SELECT ALL COUNT( * ) * + + 53 AS col0
----
53

skipif mysql # not compatible
query I rowsort label-5211
SELECT ALL COUNT ( * ) * + + 53 AS col0
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5212
SELECT + ( CAST( + 52 AS SIGNED ) ) + 55 AS col2
----
107

skipif mysql # not compatible
query I rowsort label-5212
SELECT + ( CAST ( + 52 AS INTEGER ) ) + 55 AS col2
----
107

query I rowsort
SELECT - 28 - + 87
----
-115

query II rowsort
SELECT + 99 + 38 * - 20 col2, 55 AS col0
----
-661
55

onlyif mysql # aggregate syntax: 
query I rowsort label-5215
SELECT ALL MIN( ALL + ( + + 68 ) )
----
68

skipif mysql # not compatible
query I rowsort label-5215
SELECT ALL MIN ( ALL + ( + + 68 ) )
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5216
SELECT + CAST( - - 93 AS SIGNED ) + + - 86 AS col0, 86 + + 61 AS col0
----
7
147

skipif mysql # not compatible
query II rowsort label-5216
SELECT + CAST ( - - 93 AS INTEGER ) + + - 86 AS col0, 86 + + 61 AS col0
----
7
147

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5217
SELECT - 81 + + CAST( + + COALESCE ( - 1, + 36, - COUNT( * ) * + 57, 48 ) AS SIGNED ) col2
----
-82

skipif mysql # not compatible
query I rowsort label-5217
SELECT - 81 + + CAST ( + + COALESCE ( - 1, + 36, - COUNT ( * ) * + 57, 48 ) AS INTEGER ) col2
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-5218
SELECT - ( - - COUNT( - 12 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5218
SELECT - ( - - COUNT ( - 12 ) )
----
-1

query I rowsort
SELECT - ( + 44 ) col2
----
-44

query II rowsort
SELECT - 42, - ( - - 78 ) col2
----
-42
-78

query I rowsort
SELECT - 68 + 70 - - + 24
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-5222
SELECT ALL COALESCE ( + ( + + MIN( 10 ) ), - COUNT( * ) + 20 * - COUNT( * ) ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-5222
SELECT ALL COALESCE ( + ( + + MIN ( 10 ) ), - COUNT ( * ) + 20 * - COUNT ( * ) ) AS col0
----
10

query I rowsort
SELECT - 21 + 19 * + + 37 AS col2
----
682

onlyif mysql # aggregate syntax: 
query I rowsort label-5224
SELECT ALL + COUNT( * ) * + CASE + + 91 WHEN + - COUNT( * ) * + - 4 + - 16 + CASE COUNT( DISTINCT - 93 ) WHEN 72 THEN - 43 WHEN 6 THEN NULL END THEN + 94 ELSE 29 * 57 END col2
----
1653

skipif mysql # not compatible
query I rowsort label-5224
SELECT ALL + COUNT ( * ) * + CASE + + 91 WHEN + - COUNT ( * ) * + - 4 + - 16 + CASE COUNT ( DISTINCT - 93 ) WHEN 72 THEN - 43 WHEN 6 THEN NULL END THEN + 94 ELSE 29 * 57 END col2
----
1653

onlyif mysql # aggregate syntax: 
query I rowsort label-5225
SELECT - 38 * + COUNT( * ) AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-5225
SELECT - 38 * + COUNT ( * ) AS col1
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-5226
SELECT - + 35 + - - COUNT( * )
----
-34

skipif mysql # not compatible
query I rowsort label-5226
SELECT - + 35 + - - COUNT ( * )
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5227
SELECT ALL CAST( - - ( + 16 ) AS SIGNED ) AS col1, ( 36 ) * 5 col2
----
16
180

skipif mysql # not compatible
query II rowsort label-5227
SELECT ALL CAST ( - - ( + 16 ) AS INTEGER ) AS col1, ( 36 ) * 5 col2
----
16
180

query I rowsort
SELECT - 46 + + 26
----
-20

query I rowsort
SELECT ALL + + 17 * - - 72
----
1224

query I rowsort
SELECT - 59 + 50
----
-9

query I rowsort
SELECT + COALESCE ( - ( 31 ), + ( 81 ) ) AS col0
----
-31

query I rowsort
SELECT ALL + 69 * + 92 + + 25 AS col0
----
6373

query II rowsort
SELECT - NULLIF ( + - 55, - + 19 ) AS col0, 33 AS col0
----
55
33

query I rowsort
SELECT ALL + COALESCE ( 27, 38 ) AS col1
----
27

query I rowsort
SELECT - + 92 + + 30 + 71 * - 36
----
-2618

onlyif mysql # aggregate syntax: 
query I rowsort label-5236
SELECT ALL - NULLIF ( + 86, + - COUNT( * ) ) * + + 17 + 10
----
-1452

skipif mysql # not compatible
query I rowsort label-5236
SELECT ALL - NULLIF ( + 86, + - COUNT ( * ) ) * + + 17 + 10
----
-1452

query I rowsort
SELECT DISTINCT + CASE 93 WHEN + - 46 + 11 THEN NULL ELSE + 26 END * 96 + 86
----
2582

onlyif mysql # aggregate syntax: 
query I rowsort label-5238
SELECT ALL - COUNT( * ) * + 74 + - - 95 + + + COUNT( ALL + 40 ) * 57 + + 47
----
125

skipif mysql # not compatible
query I rowsort label-5238
SELECT ALL - COUNT ( * ) * + 74 + - - 95 + + + COUNT ( ALL + 40 ) * 57 + + 47
----
125

query I rowsort
SELECT - + 48 - + 66 * + + 81 + COALESCE ( + 48, 93 * 92 ) AS col1
----
-5346

query I rowsort
SELECT + 75 * + - 98
----
-7350

onlyif mysql # aggregate syntax: 
query I rowsort label-5241
SELECT ALL + 62 * COUNT( * ) * 8 + + 46
----
542

skipif mysql # not compatible
query I rowsort label-5241
SELECT ALL + 62 * COUNT ( * ) * 8 + + 46
----
542

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5242
SELECT DISTINCT + CASE - 55 WHEN + 94 THEN - COUNT( * ) * + 45 - 86 WHEN - CAST( 22 AS SIGNED ) THEN NULL ELSE - 50 - + 12 END AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-5242
SELECT DISTINCT + CASE - 55 WHEN + 94 THEN - COUNT ( * ) * + 45 - 86 WHEN - CAST ( 22 AS INTEGER ) THEN NULL ELSE - 50 - + 12 END AS col0
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-5243
SELECT + COUNT( ALL + + ( - ( 63 ) ) ) * 40 * 22
----
880

skipif mysql # not compatible
query I rowsort label-5243
SELECT + COUNT ( ALL + + ( - ( 63 ) ) ) * 40 * 22
----
880

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5244
SELECT ALL COALESCE ( + - 29, + 39 ) * - COUNT( ALL 0 ) + + 75 DIV 63
----
30

skipif mysql # not compatible
query I rowsort label-5244
SELECT ALL COALESCE ( + - 29, + 39 ) * - COUNT ( ALL 0 ) + + 75 / 63
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5245
SELECT ALL 33 * CAST( NULL AS SIGNED ) + 34 / 48 - - COUNT( * ) * + - COUNT( - 17 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5245
SELECT ALL 33 * CAST ( NULL AS INTEGER ) + 34 / 48 - - COUNT ( * ) * + - COUNT ( - 17 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5246
SELECT + COUNT( * ) AS col1, 66 * - - 87 + - 4 * + MIN( - ( - 63 ) )
----
1
5490

skipif mysql # not compatible
query II rowsort label-5246
SELECT + COUNT ( * ) AS col1, 66 * - - 87 + - 4 * + MIN ( - ( - 63 ) )
----
1
5490

query II rowsort
SELECT ALL + 57, - 21 * - 50 * - 81 AS col1
----
57
-85050

onlyif mysql # aggregate syntax: 
query I rowsort label-5248
SELECT CASE WHEN NOT + COUNT( ALL - - 45 ) IS NOT NULL THEN + + 31 / + - 53 - + 55 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5248
SELECT CASE WHEN NOT + COUNT ( ALL - - 45 ) IS NOT NULL THEN + + 31 / + - 53 - + 55 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5249
SELECT DISTINCT CASE + 55 WHEN + 68 THEN - ( - - 37 ) * - 53 WHEN - 10 THEN NULL WHEN 2 * COUNT( * ) THEN NULL END * - ( 94 ) - 96 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5249
SELECT DISTINCT CASE + 55 WHEN + 68 THEN - ( - - 37 ) * - 53 WHEN - 10 THEN NULL WHEN 2 * COUNT ( * ) THEN NULL END * - ( 94 ) - 96 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5250
SELECT + 87 * - + MIN( - 52 ) * - COUNT( * ), - 58 + - COUNT( * ) AS col2
----
-4524
-59

skipif mysql # not compatible
query II rowsort label-5250
SELECT + 87 * - + MIN ( - 52 ) * - COUNT ( * ), - 58 + - COUNT ( * ) AS col2
----
-4524
-59

query II rowsort
SELECT ALL 29 col0, 44
----
29
44

query I rowsort
SELECT + 51 * - + 30
----
-1530

onlyif mysql # aggregate syntax: 
query II rowsort label-5253
SELECT COUNT( + 1 ) AS col1, + 11 + - 63 * + + SUM( DISTINCT 31 )
----
1
-1942

skipif mysql # not compatible
query II rowsort label-5253
SELECT COUNT ( + 1 ) AS col1, + 11 + - 63 * + + SUM ( DISTINCT 31 )
----
1
-1942

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5254
SELECT - CAST( NULL AS SIGNED ), 9 AS col1
----
NULL
9

skipif mysql # not compatible
query II rowsort label-5254
SELECT - CAST ( NULL AS INTEGER ), 9 AS col1
----
NULL
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5255
SELECT ALL - CASE + + 90 WHEN - COUNT( * ) THEN - + 99 / - + 85 * - 9 + 73 + + 25 END * 65 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5255
SELECT ALL - CASE + + 90 WHEN - COUNT ( * ) THEN - + 99 / - + 85 * - 9 + 73 + + 25 END * 65 AS col1
----
NULL

query I rowsort
SELECT ALL + 98 * + + 97 * 20 AS col1
----
190120

query I rowsort
SELECT + 21 * + 53 * - - 48
----
53424

query I rowsort
SELECT ALL ( - 45 ) * 76 AS col2
----
-3420

onlyif mysql # DIV for integer division: 
query I rowsort label-5259
SELECT + 39 DIV - - 80 col2
----
0

skipif mysql # not compatible
query I rowsort label-5259
SELECT + 39 / - - 80 col2
----
0

query I rowsort
SELECT + 9 - + + 79
----
-70

query I rowsort
SELECT ALL COALESCE ( - ( - 92 ), - + 30 + - - 56, + NULLIF ( + 71, - 41 ) ) * 60
----
5520

query II rowsort
SELECT - - 79, 61 AS col0
----
79
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5263
SELECT + CASE - COALESCE ( 15, + - 40 * - - COUNT( * ) / + + COUNT( * ) + - 67 ) WHEN - 54 / - 47 + - COUNT( * ) * 65 THEN + COALESCE ( + 12, ( + 25 ), 37 / - 56 ) - 64 ELSE + 70 / - 10 END * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5263
SELECT + CASE - COALESCE ( 15, + - 40 * - - COUNT ( * ) / + + COUNT ( * ) + - 67 ) WHEN - 54 / - 47 + - COUNT ( * ) * 65 THEN + COALESCE ( + 12, ( + 25 ), 37 / - 56 ) - 64 ELSE + 70 / - 10 END * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5264
SELECT - - SUM( + 93 ) * 81 + + 87 + + + 55 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5264
SELECT - - SUM ( + 93 ) * 81 + + 87 + + + 55 / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5265
SELECT DISTINCT + 76 + - + COUNT( * ) * - COUNT( * ) * MAX( DISTINCT - + 0 ) AS col2
----
76

skipif mysql # not compatible
query I rowsort label-5265
SELECT DISTINCT + 76 + - + COUNT ( * ) * - COUNT ( * ) * MAX ( DISTINCT - + 0 ) AS col2
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5266
SELECT ALL - 18 + - 35 + + + 53 - - MAX( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5266
SELECT ALL - 18 + - 35 + + + 53 - - MAX ( - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5267
SELECT + - ( + + 46 ) - - MIN( 21 ) * + 59 + 8
----
1201

skipif mysql # not compatible
query I rowsort label-5267
SELECT + - ( + + 46 ) - - MIN ( 21 ) * + 59 + 8
----
1201

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5268
SELECT ALL + COALESCE ( 58, + 41, - CAST( NULL AS SIGNED ) * + + ( + 23 ) - COALESCE ( 10, + NULLIF ( - 11, 88 ) * + 49 ) DIV + 42 ) AS col2
----
58

skipif mysql # not compatible
query I rowsort label-5268
SELECT ALL + COALESCE ( 58, + 41, - CAST ( NULL AS INTEGER ) * + + ( + 23 ) - COALESCE ( 10, + NULLIF ( - 11, 88 ) * + 49 ) / + 42 ) AS col2
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5269
SELECT - + 38 - + CASE + - NULLIF ( - 24, 9 + - 96 * - ( ( 73 ) + - 4 * 57 ) ) WHEN - CAST( 8 AS SIGNED ) * - 73 THEN + COUNT( * ) / + 49 + 18 WHEN 88 THEN NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5269
SELECT - + 38 - + CASE + - NULLIF ( - 24, 9 + - 96 * - ( ( 73 ) + - 4 * 57 ) ) WHEN - CAST ( 8 AS INTEGER ) * - 73 THEN + COUNT ( * ) / + 49 + 18 WHEN 88 THEN NULL END col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5270
SELECT ALL + COALESCE ( + + 72, - - 65 ) * - - 52 * - CAST( - COUNT( * ) AS SIGNED ) * 68
----
254592

skipif mysql # not compatible
query I rowsort label-5270
SELECT ALL + COALESCE ( + + 72, - - 65 ) * - - 52 * - CAST ( - COUNT ( * ) AS INTEGER ) * 68
----
254592

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5271
SELECT ALL COUNT( * ) DIV + 77 + - 96
----
-96

skipif mysql # not compatible
query I rowsort label-5271
SELECT ALL COUNT ( * ) / + 77 + - 96
----
-96

query I rowsort
SELECT - - 63 + + + 59 + 49 AS col1
----
171

query I rowsort
SELECT DISTINCT + + ( - 3 ) * 49 + - 84 AS col2
----
-231

query I rowsort
SELECT - + 28 * 14 + 93 AS col0
----
-299

query II rowsort
SELECT - 28, - 0 AS col1
----
-28
0

query I rowsort
SELECT ALL + 66 * - + 85
----
-5610

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5277
SELECT + ( + - 12 ) * + + 60 * 47 + - CAST( NULL AS SIGNED ) - 50 * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5277
SELECT + ( + - 12 ) * + + 60 * 47 + - CAST ( NULL AS INTEGER ) - 50 * + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5278
SELECT DISTINCT + 33 * 95 + - CAST( NULL AS SIGNED ) * + 28 / + 6 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5278
SELECT DISTINCT + 33 * 95 + - CAST ( NULL AS INTEGER ) * + 28 / + 6 AS col1
----
NULL

query II rowsort
SELECT DISTINCT - 75 + + 1 AS col1, 7 AS col2
----
-74
7

query I rowsort
SELECT ALL - + ( - - 89 )
----
-89

query I rowsort
SELECT ALL + - 34 - - 35 + 7 AS col0
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-5282
SELECT ALL - 97 AS col2, COUNT( * ) - + 9 col0
----
-97
-8

skipif mysql # not compatible
query II rowsort label-5282
SELECT ALL - 97 AS col2, COUNT ( * ) - + 9 col0
----
-97
-8

query I rowsort
SELECT DISTINCT - 72 * - + 30 AS col2
----
2160

query I rowsort
SELECT - 38 * 89 + - + 74
----
-3456

onlyif mysql # aggregate syntax: 
query I rowsort label-5285
SELECT 73 + + ( - 80 ) + + MAX( ALL 6 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5285
SELECT 73 + + ( - 80 ) + + MAX ( ALL 6 ) AS col2
----
-1

query I rowsort
SELECT 77 / - CASE 38 WHEN 63 THEN - 99 * - - AVG ( 56 ) + + 28 END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5287
SELECT ALL - NULLIF ( + COUNT( * ), + ( - - 59 ) * 97 ) DIV - 50 - + NULLIF ( NULLIF ( 13, - 95 ), + 62 * NULLIF ( 69, ( 58 ) ) + + 96 * - 27 ) AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-5287
SELECT ALL - NULLIF ( + COUNT ( * ), + ( - - 59 ) * 97 ) / - 50 - + NULLIF ( NULLIF ( 13, - 95 ), + 62 * NULLIF ( 69, ( 58 ) ) + + 96 * - 27 ) AS col0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-5288
SELECT COUNT( * ) * - COUNT( + 42 ) * - + 69 AS col2
----
69

skipif mysql # not compatible
query I rowsort label-5288
SELECT COUNT ( * ) * - COUNT ( + 42 ) * - + 69 AS col2
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5289
SELECT DISTINCT - 11 * 47 * + + COUNT( * ) AS col1
----
-517

skipif mysql # not compatible
query I rowsort label-5289
SELECT DISTINCT - 11 * 47 * + + COUNT ( * ) AS col1
----
-517

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5290
SELECT ALL - CAST( + + CASE + 94 WHEN 89 THEN 60 + - + 55 WHEN 7 / + 58 THEN NULL END AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5290
SELECT ALL - CAST ( + + CASE + 94 WHEN 89 THEN 60 + - + 55 WHEN 7 / + 58 THEN NULL END AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5291
SELECT COUNT( * ) * + 61 AS col2
----
61

skipif mysql # not compatible
query I rowsort label-5291
SELECT COUNT ( * ) * + 61 AS col2
----
61

query I rowsort
SELECT 27 + 97 AS col2
----
124

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5293
SELECT DISTINCT + ( 90 ) * NULLIF ( + 80, 72 * - - CAST( NULL AS SIGNED ) * - ( - COUNT( * ) ) + COUNT( * ) + 81 ) * ( 8 ) AS col0
----
57600

skipif mysql # not compatible
query I rowsort label-5293
SELECT DISTINCT + ( 90 ) * NULLIF ( + 80, 72 * - - CAST ( NULL AS INTEGER ) * - ( - COUNT ( * ) ) + COUNT ( * ) + 81 ) * ( 8 ) AS col0
----
57600

query I rowsort
SELECT ( + 21 ) * - 15 AS col1
----
-315

query II rowsort
SELECT 17 + + - 62, + 83 * + + 86 col0
----
-45
7138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5296
SELECT + 58 * - 94 + COALESCE ( - + CAST( NULL AS SIGNED ), + + COUNT( * ) )
----
-5451

skipif mysql # not compatible
query I rowsort label-5296
SELECT + 58 * - 94 + COALESCE ( - + CAST ( NULL AS INTEGER ), + + COUNT ( * ) )
----
-5451

query I rowsort
SELECT 94 + - - 79 AS col1
----
173

onlyif mysql # aggregate syntax: 
query I rowsort label-5298
SELECT - + CASE 0 WHEN - - COUNT( * ) THEN + CASE - - 86 WHEN + 78 THEN 51 * - 57 + MAX( + 57 ) END END
----
NULL

skipif mysql # not compatible
query I rowsort label-5298
SELECT - + CASE 0 WHEN - - COUNT ( * ) THEN + CASE - - 86 WHEN + 78 THEN 51 * - 57 + MAX ( + 57 ) END END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5299
SELECT ALL + 47 + + 66 + - COUNT( * ) + + 35 + COUNT( * ) * - 77 * ( 96 ) + 95 AS col0
----
-7150

skipif mysql # not compatible
query I rowsort label-5299
SELECT ALL + 47 + + 66 + - COUNT ( * ) + + 35 + COUNT ( * ) * - 77 * ( 96 ) + 95 AS col0
----
-7150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5300
SELECT - 81 + + 76 + + 71, - COALESCE ( 58, + 45 * COUNT( * ) * 58 + 29 ) * NULLIF ( + 68 / + COUNT( DISTINCT 2 ) + CAST( NULL AS SIGNED ), 48 ) AS col1
----
66
NULL

skipif mysql # not compatible
query II rowsort label-5300
SELECT - 81 + + 76 + + 71, - COALESCE ( 58, + 45 * COUNT ( * ) * 58 + 29 ) * NULLIF ( + 68 / + COUNT ( DISTINCT 2 ) + CAST ( NULL AS INTEGER ), 48 ) AS col1
----
66
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5301
SELECT ALL COALESCE ( - 14, + 4, - 52 + - CASE + + 54 WHEN - + 83 * 41 THEN NULL ELSE 91 + COUNT( * ) END * - 32 ) * - 74
----
1036

skipif mysql # not compatible
query I rowsort label-5301
SELECT ALL COALESCE ( - 14, + 4, - 52 + - CASE + + 54 WHEN - + 83 * 41 THEN NULL ELSE 91 + COUNT ( * ) END * - 32 ) * - 74
----
1036

query I rowsort
SELECT 66 + + 30 + + 88
----
184

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5303
SELECT + CAST( NULL AS SIGNED ) * + 35
----
NULL

skipif mysql # not compatible
query I rowsort label-5303
SELECT + CAST ( NULL AS INTEGER ) * + 35
----
NULL

query II rowsort
SELECT ALL + 95 * + 29, - 0 AS col2
----
2755
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5305
SELECT ALL + 46 - + COUNT( * ) * + - 18 + - ( + 41 ) + COUNT( * )
----
24

skipif mysql # not compatible
query I rowsort label-5305
SELECT ALL + 46 - + COUNT ( * ) * + - 18 + - ( + 41 ) + COUNT ( * )
----
24

query I rowsort
SELECT 22 * - 99 + - 26
----
-2204

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5307
SELECT - COUNT( * ) + ( + CASE + + 0 WHEN - - 3 THEN NULL ELSE - COUNT( * ) - - 71 + CAST( NULL AS SIGNED ) END ) * + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-5307
SELECT - COUNT ( * ) + ( + CASE + + 0 WHEN - - 3 THEN NULL ELSE - COUNT ( * ) - - 71 + CAST ( NULL AS INTEGER ) END ) * + 6
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5308
SELECT DISTINCT - + CASE - - 92 WHEN NULLIF ( ( - + COUNT( * ) ), - + 13 ) + 84 + 39 THEN MAX( DISTINCT + CAST( 41 AS SIGNED ) ) + 6 WHEN CAST( 49 AS DECIMAL ) THEN CAST( 89 AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5308
SELECT DISTINCT - + CASE - - 92 WHEN NULLIF ( ( - + COUNT ( * ) ), - + 13 ) + 84 + 39 THEN MAX ( DISTINCT + CAST ( 41 AS INTEGER ) ) + 6 WHEN CAST ( 49 AS REAL ) THEN CAST ( 89 AS INTEGER ) END
----
NULL

query I rowsort
SELECT 3 * + 95 * - 62 * 54
----
-954180

onlyif mysql # aggregate syntax: 
query I rowsort label-5310
SELECT + COUNT( DISTINCT + 86 )
----
1

skipif mysql # not compatible
query I rowsort label-5310
SELECT + COUNT ( DISTINCT + 86 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5311
SELECT 22 DIV + - 27 col1
----
0

skipif mysql # not compatible
query I rowsort label-5311
SELECT 22 / + - 27 col1
----
0

query I rowsort
SELECT 93 * + ( + 69 )
----
6417

query I rowsort
SELECT ALL - NULLIF ( + 78, 91 ) * + 75 AS col2
----
-5850

onlyif mysql # aggregate syntax: 
query I rowsort label-5314
SELECT DISTINCT - ( + SUM( DISTINCT ( - ( - 31 ) ) ) ) col0
----
-31

skipif mysql # not compatible
query I rowsort label-5314
SELECT DISTINCT - ( + SUM ( DISTINCT ( - ( - 31 ) ) ) ) col0
----
-31

query I rowsort
SELECT ALL - 25 * - 16
----
400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5316
SELECT ALL - CAST( 33 AS SIGNED ) AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-5316
SELECT ALL - CAST ( 33 AS INTEGER ) AS col0
----
-33

query I rowsort
SELECT DISTINCT - ( - CASE + 64 WHEN + 46 + 75 * ( + 48 ) THEN NULL WHEN - 86 THEN 17 END )
----
NULL

query I rowsort
SELECT 8 * 50
----
400

onlyif mysql # aggregate syntax: 
query II rowsort label-5319
SELECT - 93, - MIN( DISTINCT + 41 ) - + 48 AS col0
----
-93
-89

skipif mysql # not compatible
query II rowsort label-5319
SELECT - 93, - MIN ( DISTINCT + 41 ) - + 48 AS col0
----
-93
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-5320
SELECT ALL + ( + 70 ) + + COUNT( * ) * - 36 + - NULLIF ( + SUM( DISTINCT 80 ), + NULLIF ( COALESCE ( 80, COALESCE ( + ( - 85 ), 94 / - 69 ) - + 86, 92 + + 54 ), 18 + + 72 ) + 6 ) * - 31 col1
----
2514

skipif mysql # not compatible
query I rowsort label-5320
SELECT ALL + ( + 70 ) + + COUNT ( * ) * - 36 + - NULLIF ( + SUM ( DISTINCT 80 ), + NULLIF ( COALESCE ( 80, COALESCE ( + ( - 85 ), 94 / - 69 ) - + 86, 92 + + 54 ), 18 + + 72 ) + 6 ) * - 31 col1
----
2514

query II rowsort
SELECT - 95, 2 AS col2
----
-95
2

onlyif mysql # DIV for integer division: 
query I rowsort label-5322
SELECT 27 DIV - - 22 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5322
SELECT 27 / - - 22 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5323
SELECT + ( 89 ) * + COUNT( ALL + + 4 ) * + - 6 * COUNT( ALL + 87 ) + - + NULLIF ( + 97, + 1 )
----
-631

skipif mysql # not compatible
query I rowsort label-5323
SELECT + ( 89 ) * + COUNT ( ALL + + 4 ) * + - 6 * COUNT ( ALL + 87 ) + - + NULLIF ( + 97, + 1 )
----
-631

query I rowsort
SELECT 33 * - 1
----
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5325
SELECT DISTINCT + ( 63 ) DIV MAX( - 51 )
----
-1

skipif mysql # not compatible
query I rowsort label-5325
SELECT DISTINCT + ( 63 ) / MAX ( - 51 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5326
SELECT ALL - COUNT( * ) + 71 AS col0
----
70

skipif mysql # not compatible
query I rowsort label-5326
SELECT ALL - COUNT ( * ) + 71 AS col0
----
70

query II rowsort
SELECT DISTINCT + 60 * - 59 + 44, 98 AS col0
----
-3496
98

onlyif mysql # aggregate syntax: 
query II rowsort label-5328
SELECT 88 * - COALESCE ( + COUNT( * ), + NULLIF ( - 48, 43 ) ) AS col0, + CASE COUNT( * ) WHEN 99 THEN + 52 END + 83
----
-88
NULL

skipif mysql # not compatible
query II rowsort label-5328
SELECT 88 * - COALESCE ( + COUNT ( * ), + NULLIF ( - 48, 43 ) ) AS col0, + CASE COUNT ( * ) WHEN 99 THEN + 52 END + 83
----
-88
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5329
SELECT ALL + 10 + + ( + + 35 ) - - 34 + + SUM( - 57 ) + - SUM( DISTINCT 93 ) * + 94
----
-8720

skipif mysql # not compatible
query I rowsort label-5329
SELECT ALL + 10 + + ( + + 35 ) - - 34 + + SUM ( - 57 ) + - SUM ( DISTINCT 93 ) * + 94
----
-8720

query I rowsort
SELECT - - 35 - + + ( - 54 )
----
89

query I rowsort
SELECT - COALESCE ( ( 56 ), 95 ) AS col0
----
-56

query I rowsort
SELECT ALL + COALESCE ( 58, 10 ) AS col0
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-5333
SELECT - + MIN( + 32 ) + + - 7, + 16 + 47 AS col1
----
-39
63

skipif mysql # not compatible
query II rowsort label-5333
SELECT - + MIN ( + 32 ) + + - 7, + 16 + 47 AS col1
----
-39
63

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5334
SELECT + + 55 * + COUNT( * ) / + + 37 + - - CAST( NULL AS DECIMAL ) - 35
----
NULL

skipif mysql # not compatible
query I rowsort label-5334
SELECT + + 55 * + COUNT ( * ) / + + 37 + - - CAST ( NULL AS REAL ) - 35
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5335
SELECT - - 98 AS col1, NULLIF ( - MAX( + 69 ), AVG ( + 3 ) ) col0
----
98
-69

skipif mysql # not compatible
query II rowsort label-5335
SELECT - - 98 AS col1, NULLIF ( - MAX ( + 69 ), AVG ( + 3 ) ) col0
----
98
-69

query I rowsort
SELECT - ( 23 ) AS col0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-5337
SELECT - - MIN( DISTINCT + + 86 )
----
86

skipif mysql # not compatible
query I rowsort label-5337
SELECT - - MIN ( DISTINCT + + 86 )
----
86

query I rowsort
SELECT ALL 11 - + + 5 AS col1
----
6

query I rowsort
SELECT + 95 - - + 12 + - 78 * - 96 * 98
----
733931

query I rowsort
SELECT ALL - 83 * + 49 col0
----
-4067

query I rowsort
SELECT + 8 - + CASE - 30 WHEN - 64 * - 81 + - - 75 + - 64 - + 48 THEN + 87 * - 99 END + 17 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5342
SELECT ALL ( - 60 ) - - - 65 DIV - 38 AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-5342
SELECT ALL ( - 60 ) - - - 65 / - 38 AS col1
----
-59

query I rowsort
SELECT + 22 + + COALESCE ( + + 81, - - 9 * 17 + + + 38 + + + 34 ) + - - ( ( 22 ) ) + + 99
----
224

onlyif mysql # aggregate syntax: 
query I rowsort label-5344
SELECT ALL + 23 * + COUNT( - 77 ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-5344
SELECT ALL + 23 * + COUNT ( - 77 ) AS col1
----
23

query I rowsort
SELECT + 88 * + 1 AS col0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-5346
SELECT + CASE + 30 WHEN - + 31 THEN 23 * - ( + - 89 ) WHEN + 5 * + + 74 + + 27 + - COUNT( * ) THEN 67 END / - 83 + + 2 * 46
----
NULL

skipif mysql # not compatible
query I rowsort label-5346
SELECT + CASE + 30 WHEN - + 31 THEN 23 * - ( + - 89 ) WHEN + 5 * + + 74 + + 27 + - COUNT ( * ) THEN 67 END / - 83 + + 2 * 46
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5347
SELECT - 89 * 46 * + + COUNT( * ) - - - 55 AS col2, 71
----
-4149
71

skipif mysql # not compatible
query II rowsort label-5347
SELECT - 89 * 46 * + + COUNT ( * ) - - - 55 AS col2, 71
----
-4149
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5348
SELECT + ( + 41 ) DIV 44 * MIN( - ( CASE + 51 WHEN + 68 * - + 21 THEN NULL ELSE + 6 * 94 END ) )
----
0

skipif mysql # not compatible
query I rowsort label-5348
SELECT + ( + 41 ) / 44 * MIN ( - ( CASE + 51 WHEN + 68 * - + 21 THEN NULL ELSE + 6 * 94 END ) )
----
0

query I rowsort
SELECT - 82 * - NULLIF ( 39, - + 96 * + - AVG ( DISTINCT + + ( + 81 ) ) + - ( 56 ) ) AS col2
----
3198

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5350
SELECT 74 / + 41 - + CAST( NULL AS DECIMAL ) + 1
----
NULL

skipif mysql # not compatible
query I rowsort label-5350
SELECT 74 / + 41 - + CAST ( NULL AS REAL ) + 1
----
NULL

query I rowsort
SELECT + 52 * + 44
----
2288

onlyif mysql # aggregate syntax: 
query I rowsort label-5352
SELECT ALL + MIN( DISTINCT + 79 )
----
79

skipif mysql # not compatible
query I rowsort label-5352
SELECT ALL + MIN ( DISTINCT + 79 )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-5353
SELECT CASE + 34 WHEN 72 + - - 22 THEN NULL WHEN + 50 * + 89 + 61 + + 22 * + 21 * - 66 THEN - 63 * COUNT( * ) WHEN - ( + 34 ) + 36 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5353
SELECT CASE + 34 WHEN 72 + - - 22 THEN NULL WHEN + 50 * + 89 + 61 + + 22 * + 21 * - 66 THEN - 63 * COUNT ( * ) WHEN - ( + 34 ) + 36 THEN NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5354
SELECT 75 * + 71 + + + CAST( NULL AS DECIMAL ) * + + COUNT( * ) + COALESCE ( - + 63, - 29, 75 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5354
SELECT 75 * + 71 + + + CAST ( NULL AS REAL ) * + + COUNT ( * ) + COALESCE ( - + 63, - 29, 75 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5355
SELECT + 22 * + - SUM( DISTINCT - 38 ) AS col0
----
836

skipif mysql # not compatible
query I rowsort label-5355
SELECT + 22 * + - SUM ( DISTINCT - 38 ) AS col0
----
836

query I rowsort
SELECT ALL - ( + - 32 ) * - 36 + - 72 + + 99 AS col0
----
-1125

query I rowsort
SELECT NULLIF ( + - 14, 90 ) AS col1
----
-14

query I rowsort
SELECT + 86 + - + ( - - 42 )
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5359
SELECT - 92 * COUNT( * ) DIV - - 13
----
-7

skipif mysql # not compatible
query I rowsort label-5359
SELECT - 92 * COUNT ( * ) / - - 13
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5360
SELECT - 12 * 20 DIV 5 + - 84, - MAX( - - 65 ) AS col0
----
-132
-65

skipif mysql # not compatible
query II rowsort label-5360
SELECT - 12 * 20 / 5 + - 84, - MAX ( - - 65 ) AS col0
----
-132
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-5361
SELECT ALL COUNT( * ) * 47 col1
----
47

skipif mysql # not compatible
query I rowsort label-5361
SELECT ALL COUNT ( * ) * 47 col1
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5362
SELECT DISTINCT - 6 * - COALESCE ( - 42, - - 99 * + 38 DIV + - 8 * 38 + + 94, - NULLIF ( 90, 29 * - 75 ) ) * - ( COUNT( * ) * + 57 ) + 28 AS col1
----
14392

skipif mysql # not compatible
query I rowsort label-5362
SELECT DISTINCT - 6 * - COALESCE ( - 42, - - 99 * + 38 / + - 8 * 38 + + 94, - NULLIF ( 90, 29 * - 75 ) ) * - ( COUNT ( * ) * + 57 ) + 28 AS col1
----
14392

query I rowsort
SELECT ALL NULLIF ( - 91, 19 ) AS col1
----
-91

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5364
SELECT - + 25 + CAST( NULL AS DECIMAL ) / + 31
----
NULL

skipif mysql # not compatible
query I rowsort label-5364
SELECT - + 25 + CAST ( NULL AS REAL ) / + 31
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5365
SELECT ALL + 39 + + 47 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5365
SELECT ALL + 39 + + 47 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL - ( - 56 ) AS col1
----
56

query I rowsort
SELECT + + 64 + - 10 * - - 79 + 57 AS col2
----
-669

onlyif mysql # aggregate syntax: 
query I rowsort label-5368
SELECT - MIN( ALL 9 ) - - 90 AS col2
----
81

skipif mysql # not compatible
query I rowsort label-5368
SELECT - MIN ( ALL 9 ) - - 90 AS col2
----
81

query I rowsort
SELECT - - 1 * + ( - 86 ) col2
----
-86

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5370
SELECT - 43 + - 3, + CAST( NULL AS SIGNED ) col0
----
-46
NULL

skipif mysql # not compatible
query II rowsort label-5370
SELECT - 43 + - 3, + CAST ( NULL AS INTEGER ) col0
----
-46
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5371
SELECT - COUNT( * ) + + 67 - - 64 + 38 DIV 72 DIV + 95
----
130

skipif mysql # not compatible
query I rowsort label-5371
SELECT - COUNT ( * ) + + 67 - - 64 + 38 / 72 / + 95
----
130

query I rowsort
SELECT - 26 + + 70 AS col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-5373
SELECT - 65 * + - 96 + COUNT( * ) AS col2
----
6241

skipif mysql # not compatible
query I rowsort label-5373
SELECT - 65 * + - 96 + COUNT ( * ) AS col2
----
6241

onlyif mysql # aggregate syntax: 
query I rowsort label-5374
SELECT - 70 * SUM( DISTINCT - 3 ) AS col2
----
210

skipif mysql # not compatible
query I rowsort label-5374
SELECT - 70 * SUM ( DISTINCT - 3 ) AS col2
----
210

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5375
SELECT ALL + COUNT( * ) DIV + 89 - + + 48 - - COUNT( * ) * + + 30 DIV CAST( - 82 AS SIGNED ) + COUNT( * ) col1
----
-47

skipif mysql # not compatible
query I rowsort label-5375
SELECT ALL + COUNT ( * ) / + 89 - + + 48 - - COUNT ( * ) * + + 30 / CAST ( - 82 AS INTEGER ) + COUNT ( * ) col1
----
-47

query I rowsort
SELECT - - 49 + + 9 AS col2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5377
SELECT - + 74 + + - 18 - + COUNT( * ) + - - 83 * - ( + - 88 ) * NULLIF ( 90, 69 / + MIN( DISTINCT - 35 ) ) * - COUNT( * )
----
-657453

skipif mysql # not compatible
query I rowsort label-5377
SELECT - + 74 + + - 18 - + COUNT ( * ) + - - 83 * - ( + - 88 ) * NULLIF ( 90, 69 / + MIN ( DISTINCT - 35 ) ) * - COUNT ( * )
----
-657453

query I rowsort
SELECT + - 99 * 71 + + - 14 AS col2
----
-7043

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5379
SELECT ALL - MAX( DISTINCT + - 8 ) * - 3 + - NULLIF ( CAST( - ( - 41 ) AS SIGNED ), 36 + - 76 / - 58 ) + - 28 AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-5379
SELECT ALL - MAX ( DISTINCT + - 8 ) * - 3 + - NULLIF ( CAST ( - ( - 41 ) AS INTEGER ), 36 + - 76 / - 58 ) + - 28 AS col0
----
-93

onlyif mysql # DIV for integer division: 
query II rowsort label-5380
SELECT + 42 + - - ( + + 63 ) + - 6 AS col0, + 63 + + 70 + 92 DIV + + 3 AS col2
----
99
163

skipif mysql # not compatible
query II rowsort label-5380
SELECT + 42 + - - ( + + 63 ) + - 6 AS col0, + 63 + + 70 + 92 / + + 3 AS col2
----
99
163

onlyif mysql # aggregate syntax: 
query I rowsort label-5381
SELECT - COALESCE ( - ( 82 ), 98 ) * + 27 * - 88 * + 92 - COUNT( * )
----
-17924545

skipif mysql # not compatible
query I rowsort label-5381
SELECT - COALESCE ( - ( 82 ), 98 ) * + 27 * - 88 * + 92 - COUNT ( * )
----
-17924545

query I rowsort
SELECT - 22 * - + 84 + + 53
----
1901

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5383
SELECT ALL + ( 88 ) DIV - 53 + + - NULLIF ( + NULLIF ( - MAX( 68 ), - 14 ), 5 ) col1
----
67

skipif mysql # not compatible
query I rowsort label-5383
SELECT ALL + ( 88 ) / - 53 + + - NULLIF ( + NULLIF ( - MAX ( 68 ), - 14 ), 5 ) col1
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5384
SELECT 97 DIV + + 12 + + 43 - CASE COALESCE ( + 87, CAST( NULL AS SIGNED ) ) WHEN + 78 THEN + 76 ELSE 62 END + 94 * COUNT( * )
----
83

skipif mysql # not compatible
query I rowsort label-5384
SELECT 97 / + + 12 + + 43 - CASE COALESCE ( + 87, CAST ( NULL AS INTEGER ) ) WHEN + 78 THEN + 76 ELSE 62 END + 94 * COUNT ( * )
----
83

query I rowsort
SELECT + 5 * + 30 AS col2
----
150

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5386
SELECT DISTINCT + 60 AS col0, - 25 DIV 49 * + ( + MIN( ALL 79 ) ) DIV + COALESCE ( + SUM( ALL 19 ), - + NULLIF ( - 10, COUNT( * ) * 36 ) ) + 76
----
60
76

skipif mysql # not compatible
query II rowsort label-5386
SELECT DISTINCT + 60 AS col0, - 25 / 49 * + ( + MIN ( ALL 79 ) ) / + COALESCE ( + SUM ( ALL 19 ), - + NULLIF ( - 10, COUNT ( * ) * 36 ) ) + 76
----
60
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5387
SELECT CAST( + - 13 AS SIGNED ) AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-5387
SELECT CAST ( + - 13 AS INTEGER ) AS col1
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-5388
SELECT ALL - 72 DIV - 74 + - + 3 + + 44 AS col0
----
41

skipif mysql # not compatible
query I rowsort label-5388
SELECT ALL - 72 / - 74 + - + 3 + + 44 AS col0
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5389
SELECT - 69 - - + 95 * 13 + + 91 + 64 DIV 85 - + - 64 DIV - 1 * + - COUNT( * ) + + - 7 AS col2
----
1314

skipif mysql # not compatible
query I rowsort label-5389
SELECT - 69 - - + 95 * 13 + + 91 + 64 / 85 - + - 64 / - 1 * + - COUNT ( * ) + + - 7 AS col2
----
1314

onlyif mysql # DIV for integer division: 
query I rowsort label-5390
SELECT + 86 DIV - 75 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5390
SELECT + 86 / - 75 AS col0
----
-1

query I rowsort
SELECT + ( ( + + ( + 51 ) ) ) col2
----
51

query I rowsort
SELECT ALL 71 * + - 80 + - - 50 + - 56 - 8 * + 34
----
-5958

query I rowsort
SELECT DISTINCT + 63 + + 37
----
100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5394
SELECT ALL - - 43 - - COUNT( * ) + MAX( ALL CAST( + + 50 AS SIGNED ) ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-5394
SELECT ALL - - 43 - - COUNT ( * ) + MAX ( ALL CAST ( + + 50 AS INTEGER ) ) AS col2
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5395
SELECT 28 * 99 * - - 55 col1, 33 + - COUNT( * ) - + - COUNT( ALL + 13 ) + - + CAST( NULL AS SIGNED ) * 64 * ( + 0 ) + 68
----
152460
NULL

skipif mysql # not compatible
query II rowsort label-5395
SELECT 28 * 99 * - - 55 col1, 33 + - COUNT ( * ) - + - COUNT ( ALL + 13 ) + - + CAST ( NULL AS INTEGER ) * 64 * ( + 0 ) + 68
----
152460
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5396
SELECT - 83 + + - 38 * - + COUNT( * ) * 84 AS col1
----
3109

skipif mysql # not compatible
query I rowsort label-5396
SELECT - 83 + + - 38 * - + COUNT ( * ) * 84 AS col1
----
3109

query I rowsort
SELECT 48 + - 54
----
-6

query I rowsort
SELECT ALL - ( - 94 ) - - 66 * 35 AS col2
----
2404

query I rowsort
SELECT ALL 71 * + 0 AS col2
----
0

query I rowsort
SELECT ( - + 31 ) * 22
----
-682

onlyif mysql # aggregate syntax: 
query I rowsort label-5401
SELECT ALL COALESCE ( + ( COUNT( * ) ), + 82 )
----
1

skipif mysql # not compatible
query I rowsort label-5401
SELECT ALL COALESCE ( + ( COUNT ( * ) ), + 82 )
----
1

query II rowsort
SELECT ALL 36 AS col1, - 78 + - 37 * - 22 AS col2
----
36
736

onlyif mysql # aggregate syntax: 
query II rowsort label-5403
SELECT 7 - + + ( + 74 ) - ( + 81 ) AS col2, - COUNT( * )
----
-148
-1

skipif mysql # not compatible
query II rowsort label-5403
SELECT 7 - + + ( + 74 ) - ( + 81 ) AS col2, - COUNT ( * )
----
-148
-1

query I rowsort
SELECT 66 * + 75
----
4950

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5405
SELECT - NULLIF ( - + CAST( CAST( + - 23 AS SIGNED ) AS SIGNED ), - - 36 ) + + + CASE 77 WHEN ( + - 65 ) * + 89 THEN ( 9 ) ELSE - MIN( - 29 ) END + 34 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5405
SELECT - NULLIF ( - + CAST ( CAST ( + - 23 AS INTEGER ) AS INTEGER ), - - 36 ) + + + CASE 77 WHEN ( + - 65 ) * + 89 THEN ( 9 ) ELSE - MIN ( - 29 ) END + 34 / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5406
SELECT 0 + - COUNT( ALL 89 ) + + - 74
----
-75

skipif mysql # not compatible
query I rowsort label-5406
SELECT 0 + - COUNT ( ALL 89 ) + + - 74
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5407
SELECT COALESCE ( - 27, 15 + + 57 * - CAST( - 87 AS SIGNED ) ) * + + NULLIF ( 86, + 3 / + 47 ) * - 85 AS col1
----
197370

skipif mysql # not compatible
query I rowsort label-5407
SELECT COALESCE ( - 27, 15 + + 57 * - CAST ( - 87 AS INTEGER ) ) * + + NULLIF ( 86, + 3 / + 47 ) * - 85 AS col1
----
197370

onlyif mysql # aggregate syntax: 
query I rowsort label-5408
SELECT 89 * - MAX( ALL - + 4 ) col0
----
356

skipif mysql # not compatible
query I rowsort label-5408
SELECT 89 * - MAX ( ALL - + 4 ) col0
----
356

onlyif mysql # aggregate syntax: 
query I rowsort label-5409
SELECT ALL + 11 + - COALESCE ( - MIN( ALL + 9 ), 88 ) * - ( - 22 ) AS col0
----
209

skipif mysql # not compatible
query I rowsort label-5409
SELECT ALL + 11 + - COALESCE ( - MIN ( ALL + 9 ), 88 ) * - ( - 22 ) AS col0
----
209

query I rowsort
SELECT 12 - + + 14
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5411
SELECT 18 * NULLIF ( + 29, 25 ) AS col2, COUNT( * ) DIV - + 12 AS col0
----
522
0

skipif mysql # not compatible
query II rowsort label-5411
SELECT 18 * NULLIF ( + 29, 25 ) AS col2, COUNT ( * ) / - + 12 AS col0
----
522
0

query I rowsort
SELECT 21 + - + 66
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5413
SELECT 8 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5413
SELECT 8 * + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT 56, - 3 AS col2
----
56
-3

query I rowsort
SELECT + 42 * - 25 - + 21
----
-1071

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5416
SELECT ALL - CAST( - 14 AS SIGNED ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-5416
SELECT ALL - CAST ( - 14 AS INTEGER ) AS col2
----
14

query II rowsort
SELECT + 81 AS col2, - 82 AS col2
----
81
-82

query I rowsort
SELECT ALL - 48 + + ( - - 32 )
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5419
SELECT ALL - 7 AS col0, CAST( - NULLIF ( 32, + 11 ) AS SIGNED ) * + 19 * - MIN( + + 94 ) * + 77 * - 34 + - 47 AS col2
----
-7
-149623983

skipif mysql # not compatible
query II rowsort label-5419
SELECT ALL - 7 AS col0, CAST ( - NULLIF ( 32, + 11 ) AS INTEGER ) * + 19 * - MIN ( + + 94 ) * + 77 * - 34 + - 47 AS col2
----
-7
-149623983

query I rowsort
SELECT ALL 9 - + 34 + - ( + 75 )
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-5421
SELECT - 79 * - 32 + ( SUM( - 66 ) ) + + COUNT( * ) * + 12
----
2474

skipif mysql # not compatible
query I rowsort label-5421
SELECT - 79 * - 32 + ( SUM ( - 66 ) ) + + COUNT ( * ) * + 12
----
2474

onlyif mysql # aggregate syntax: 
query II rowsort label-5422
SELECT ALL - CASE - 26 WHEN - 30 * + + ( 90 ) * + + 35 THEN - 23 + + COUNT( * ) WHEN + 96 THEN NULL END AS col1, - 78 AS col0
----
NULL
-78

skipif mysql # not compatible
query II rowsort label-5422
SELECT ALL - CASE - 26 WHEN - 30 * + + ( 90 ) * + + 35 THEN - 23 + + COUNT ( * ) WHEN + 96 THEN NULL END AS col1, - 78 AS col0
----
NULL
-78

query I rowsort
SELECT 72 * + 74 AS col0
----
5328

query II rowsort
SELECT 42 + + + 39 AS col1, 89
----
81
89

onlyif mysql # DIV for integer division: 
query II rowsort label-5425
SELECT + 67 DIV - 3 AS col2, - 94 AS col2
----
-22
-94

skipif mysql # not compatible
query II rowsort label-5425
SELECT + 67 / - 3 AS col2, - 94 AS col2
----
-22
-94

query I rowsort
SELECT + - 50 * - - ( 95 ) + 61
----
-4689

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5427
SELECT - CAST( + 92 AS SIGNED ) * + 53 + 23 * + 3 col0
----
-4807

skipif mysql # not compatible
query I rowsort label-5427
SELECT - CAST ( + 92 AS INTEGER ) * + 53 + 23 * + 3 col0
----
-4807

onlyif mysql # aggregate syntax: 
query I rowsort label-5428
SELECT - 40 * - CASE + + 16 WHEN - COUNT( * ) + + - 30 * - - SUM( + - 24 ) THEN NULL ELSE - NULLIF ( 48, MIN( ALL + 62 ) ) * + 5 + 81 END + - 45 col1
----
-6405

skipif mysql # not compatible
query I rowsort label-5428
SELECT - 40 * - CASE + + 16 WHEN - COUNT ( * ) + + - 30 * - - SUM ( + - 24 ) THEN NULL ELSE - NULLIF ( 48, MIN ( ALL + 62 ) ) * + 5 + 81 END + - 45 col1
----
-6405

onlyif mysql # aggregate syntax: 
query I rowsort label-5429
SELECT 63 * + - 41 * - COUNT( * )
----
2583

skipif mysql # not compatible
query I rowsort label-5429
SELECT 63 * + - 41 * - COUNT ( * )
----
2583

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5430
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + + 14 + + CAST( + 81 AS SIGNED ) + - 85 * + 36 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5430
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + + 14 + + CAST ( + 81 AS INTEGER ) + - 85 * + 36 AS col0
----
NULL

query I rowsort
SELECT 97 + + ( - 81 ) * 7
----
-470

onlyif mysql # aggregate syntax: 
query II rowsort label-5432
SELECT ALL COUNT( * ) * - - 93 AS col1, 38
----
93
38

skipif mysql # not compatible
query II rowsort label-5432
SELECT ALL COUNT ( * ) * - - 93 AS col1, 38
----
93
38

query II rowsort
SELECT ALL 9 AS col1, - 29
----
9
-29

query I rowsort
SELECT 43 + - 45 AS col0
----
-2

query II rowsort
SELECT DISTINCT ( - 16 ), ( - 11 ) AS col1
----
-16
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5436
SELECT + - 35 * CAST( NULL AS SIGNED ) + + ( + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5436
SELECT + - 35 * CAST ( NULL AS INTEGER ) + + ( + COUNT ( * ) )
----
NULL

query I rowsort
SELECT 35 + 41 * - + 68 AS col1
----
-2753

onlyif mysql # aggregate syntax: 
query I rowsort label-5438
SELECT COUNT( * ) + - ( + 55 ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-5438
SELECT COUNT ( * ) + - ( + 55 ) AS col2
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-5439
SELECT 12 + + + COALESCE ( + COUNT( * ), CASE + COUNT( * ) WHEN - - 10 THEN - 65 * + ( 31 ) ELSE NULL END ) + - 86 + 35 - - 99 * + 55 AS col2
----
5407

skipif mysql # not compatible
query I rowsort label-5439
SELECT 12 + + + COALESCE ( + COUNT ( * ), CASE + COUNT ( * ) WHEN - - 10 THEN - 65 * + ( 31 ) ELSE NULL END ) + - 86 + 35 - - 99 * + 55 AS col2
----
5407

query II rowsort
SELECT - 55, 17 * + 80 * + 88 col0
----
-55
119680

onlyif mysql # aggregate syntax: 
query I rowsort label-5441
SELECT DISTINCT ( - 66 ) + COUNT( * ) + - - 67 + + + 42 AS col0
----
44

skipif mysql # not compatible
query I rowsort label-5441
SELECT DISTINCT ( - 66 ) + COUNT ( * ) + - - 67 + + + 42 AS col0
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5442
SELECT ALL - 11 + - SUM( DISTINCT - 59 ) * - + CAST( NULL AS SIGNED ) * 86
----
NULL

skipif mysql # not compatible
query I rowsort label-5442
SELECT ALL - 11 + - SUM ( DISTINCT - 59 ) * - + CAST ( NULL AS INTEGER ) * 86
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5443
SELECT 91 + - + 7 + + + 70 DIV 46 - + - 50 AS col0
----
135

skipif mysql # not compatible
query I rowsort label-5443
SELECT 91 + - + 7 + + + 70 / 46 - + - 50 AS col0
----
135

query I rowsort
SELECT NULLIF ( ( + 15 ), - - 52 ) + + 6
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5445
SELECT DISTINCT COUNT( * ) + - MAX( ALL + 26 )
----
-25

skipif mysql # not compatible
query I rowsort label-5445
SELECT DISTINCT COUNT ( * ) + - MAX ( ALL + 26 )
----
-25

query I rowsort
SELECT 2 * - 55
----
-110

query I rowsort
SELECT DISTINCT - 61 + + - 25 AS col0
----
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-5448
SELECT 21 DIV + 58 * 29
----
0

skipif mysql # not compatible
query I rowsort label-5448
SELECT 21 / + 58 * 29
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5449
SELECT 27 * - 49 / - NULLIF ( - NULLIF ( + + CAST( NULL AS SIGNED ), + 1 ), + + MAX( - CAST( NULL AS SIGNED ) ) * - 2 + + + 83 * - 31 + + 79 * + 10 ) * MIN( 9 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5449
SELECT 27 * - 49 / - NULLIF ( - NULLIF ( + + CAST ( NULL AS INTEGER ), + 1 ), + + MAX ( - CAST ( NULL AS INTEGER ) ) * - 2 + + + 83 * - 31 + + 79 * + 10 ) * MIN ( 9 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5450
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - - 45
----
NULL

skipif mysql # not compatible
query I rowsort label-5450
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - - 45
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5451
SELECT ALL 94 * - ( + + 46 ) - COUNT( * )
----
-4325

skipif mysql # not compatible
query I rowsort label-5451
SELECT ALL 94 * - ( + + 46 ) - COUNT ( * )
----
-4325

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5452
SELECT ALL 21 DIV COUNT( * )
----
21

skipif mysql # not compatible
query I rowsort label-5452
SELECT ALL 21 / COUNT ( * )
----
21

query II rowsort
SELECT ALL + 44 * + 64 AS col2, - 12 * 49 * 65 + - 50 * - 26
----
2816
-36920

query II rowsort
SELECT ALL + 72 * + + 89 AS col0, 16 + - 90 + - 84 + - + 66 * + + 45 * - + 22
----
6408
65182

onlyif mysql # aggregate syntax: 
query I rowsort label-5455
SELECT ALL 31 * 20 - - - MIN( DISTINCT 79 ) AS col1
----
541

skipif mysql # not compatible
query I rowsort label-5455
SELECT ALL 31 * 20 - - - MIN ( DISTINCT 79 ) AS col1
----
541

query I rowsort
SELECT ( + - 37 ) * + 86 + + 24 + - 64
----
-3222

onlyif mysql # aggregate syntax: 
query I rowsort label-5457
SELECT + COUNT( + 46 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5457
SELECT + COUNT ( + 46 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5458
SELECT ALL + - ( COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5458
SELECT ALL + - ( COUNT ( * ) ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5459
SELECT DISTINCT + COUNT( DISTINCT + 84 )
----
1

skipif mysql # not compatible
query I rowsort label-5459
SELECT DISTINCT + COUNT ( DISTINCT + 84 )
----
1

query I rowsort
SELECT DISTINCT + ( ( 90 ) ) AS col0
----
90

query I rowsort
SELECT ALL 89 * - 64 AS col1
----
-5696

query I rowsort
SELECT + 59 * - 94 + 5
----
-5541

onlyif mysql # aggregate syntax: 
query I rowsort label-5463
SELECT - CASE + 96 WHEN - + COUNT( * ) THEN + - ( + - SUM( DISTINCT + 29 ) ) + - 3 * - 35 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5463
SELECT - CASE + 96 WHEN - + COUNT ( * ) THEN + - ( + - SUM ( DISTINCT + 29 ) ) + - 3 * - 35 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5464
SELECT + + COALESCE ( + 76, - - 5 + - COUNT( * ) ) AS col0
----
76

skipif mysql # not compatible
query I rowsort label-5464
SELECT + + COALESCE ( + 76, - - 5 + - COUNT ( * ) ) AS col0
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5465
SELECT ( - 84 ), + ( COUNT( * ) ) + 40 + - ( + - ( - + 34 ) ) * - CAST( NULL AS SIGNED ) + + COUNT( * ) AS col0
----
-84
NULL

skipif mysql # not compatible
query II rowsort label-5465
SELECT ( - 84 ), + ( COUNT ( * ) ) + 40 + - ( + - ( - + 34 ) ) * - CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col0
----
-84
NULL

query I rowsort
SELECT ALL - NULLIF ( + 63, + - 53 ) * - - 22 * 62 * + 4 col0
----
-343728

onlyif mysql # aggregate syntax: 
query I rowsort label-5467
SELECT - + 1 * + 45 * - COUNT( * ) * - + 87
----
-3915

skipif mysql # not compatible
query I rowsort label-5467
SELECT - + 1 * + 45 * - COUNT ( * ) * - + 87
----
-3915

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5468
SELECT + + CAST( 15 AS SIGNED ) * COUNT( DISTINCT + - 75 )
----
15

skipif mysql # not compatible
query I rowsort label-5468
SELECT + + CAST ( 15 AS INTEGER ) * COUNT ( DISTINCT + - 75 )
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5469
SELECT - - COUNT( * ) * + 52 * - 83 AS col2
----
-4316

skipif mysql # not compatible
query I rowsort label-5469
SELECT - - COUNT ( * ) * + 52 * - 83 AS col2
----
-4316

query II rowsort
SELECT ALL 78 + 75 AS col2, 99 AS col1
----
153
99

query I rowsort
SELECT + 48 - + 47 + - 84 AS col2
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-5472
SELECT ALL + + 0 * 80 * + MIN( 92 )
----
0

skipif mysql # not compatible
query I rowsort label-5472
SELECT ALL + + 0 * 80 * + MIN ( 92 )
----
0

query II rowsort
SELECT + ( - - 26 ) * - 69 AS col2, + 90 AS col0
----
-1794
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5474
SELECT DISTINCT - 13 + - + ( COUNT( * ) ) * - COUNT( * ) AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-5474
SELECT DISTINCT - 13 + - + ( COUNT ( * ) ) * - COUNT ( * ) AS col2
----
-12

query II rowsort
SELECT 76 AS col2, 69 + + 18
----
76
87

onlyif mysql # aggregate syntax: 
query I rowsort label-5476
SELECT ALL MIN( ALL - + 16 ) + MAX( DISTINCT 30 ) * + + 47
----
1394

skipif mysql # not compatible
query I rowsort label-5476
SELECT ALL MIN ( ALL - + 16 ) + MAX ( DISTINCT 30 ) * + + 47
----
1394

query I rowsort
SELECT - 94 + + 26
----
-68

query I rowsort
SELECT - ( - 77 ) AS col0
----
77

query I rowsort
SELECT + 70 + - 84 + - 63 * 8 * + - 85 AS col2
----
42826

query I rowsort
SELECT + 76 * - ( + 86 )
----
-6536

query I rowsort
SELECT - ( + ( 78 ) ) AS col2
----
-78

query I rowsort
SELECT + 40 * 49
----
1960

query I rowsort
SELECT ALL 46 * - 85 AS col1
----
-3910

onlyif mysql # aggregate syntax: 
query II rowsort label-5484
SELECT + COUNT( * ) + + 74 + + 84 + 70 AS col2, COALESCE ( - 91, COUNT( * ), - - COUNT( * ) + + 7 )
----
229
-91

skipif mysql # not compatible
query II rowsort label-5484
SELECT + COUNT ( * ) + + 74 + + 84 + 70 AS col2, COALESCE ( - 91, COUNT ( * ), - - COUNT ( * ) + + 7 )
----
229
-91

query II rowsort
SELECT 89 AS col1, 7
----
89
7

query I rowsort
SELECT + 10 * + 28 col0
----
280

onlyif mysql # aggregate syntax: 
query II rowsort label-5487
SELECT ALL + COUNT( * ) col1, 73
----
1
73

skipif mysql # not compatible
query II rowsort label-5487
SELECT ALL + COUNT ( * ) col1, 73
----
1
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5488
SELECT CAST( ( 11 ) AS SIGNED )
----
11

skipif mysql # not compatible
query I rowsort label-5488
SELECT CAST ( ( 11 ) AS INTEGER )
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5489
SELECT 86 DIV - 25 + + 47 - - + SUM( - + COALESCE ( - - 65, ( 98 ) - - + 23 * - COALESCE ( + - 39, + - 62 + + - COALESCE ( 1, 36 - + 76 DIV 26 ) DIV + 57, - 86 + 81, - 73 ), 13 ) ) DIV + 99 AS col2
----
44

skipif mysql # not compatible
query I rowsort label-5489
SELECT 86 / - 25 + + 47 - - + SUM ( - + COALESCE ( - - 65, ( 98 ) - - + 23 * - COALESCE ( + - 39, + - 62 + + - COALESCE ( 1, 36 - + 76 / 26 ) / + 57, - 86 + 81, - 73 ), 13 ) ) / + 99 AS col2
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-5490
SELECT + COUNT( DISTINCT 69 ) * - + COUNT( * ) - + 18
----
-19

skipif mysql # not compatible
query I rowsort label-5490
SELECT + COUNT ( DISTINCT 69 ) * - + COUNT ( * ) - + 18
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5491
SELECT + CAST( + - 35 AS SIGNED )
----
-35

skipif mysql # not compatible
query I rowsort label-5491
SELECT + CAST ( + - 35 AS INTEGER )
----
-35

query II rowsort
SELECT ALL + 62 * + NULLIF ( - + 55, + + COALESCE ( + 72, + ( 61 ) + + 49 ) ), - 95 col2
----
-3410
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5493
SELECT ALL MIN( DISTINCT - 17 ) DIV 22 + + + 40 AS col1
----
40

skipif mysql # not compatible
query I rowsort label-5493
SELECT ALL MIN ( DISTINCT - 17 ) / 22 + + + 40 AS col1
----
40

query I rowsort
SELECT 82 * - - ( 73 ) * 15 + + 56
----
89846

query I rowsort
SELECT ALL - 71 * - - 61 col2
----
-4331

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5496
SELECT ALL ( - CAST( NULL AS SIGNED ) ) * + 54 + 25
----
NULL

skipif mysql # not compatible
query I rowsort label-5496
SELECT ALL ( - CAST ( NULL AS INTEGER ) ) * + 54 + 25
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5497
SELECT + 82 + + ( 16 ) * - 4 DIV - 75 * 42
----
82

skipif mysql # not compatible
query I rowsort label-5497
SELECT + 82 + + ( 16 ) * - 4 / - 75 * 42
----
82

query I rowsort
SELECT + ( + NULLIF ( + 37, + 66 + + 63 ) ) AS col0
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5499
SELECT + AVG ( ALL - - 74 ) + 48 + + 24 + - - CAST( NULL AS DECIMAL ) + - MIN( ALL + - 19 ) + + + COALESCE ( + 64, 34 * - - 30 * + MIN( ALL CAST( NULL AS SIGNED ) ) ) * 69 * - 35 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5499
SELECT + AVG ( ALL - - 74 ) + 48 + + 24 + - - CAST ( NULL AS REAL ) + - MIN ( ALL + - 19 ) + + + COALESCE ( + 64, 34 * - - 30 * + MIN ( ALL CAST ( NULL AS INTEGER ) ) ) * 69 * - 35 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5500
SELECT - ( + CAST( COUNT( * ) AS SIGNED ) ) * - + 38 - 39 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5500
SELECT - ( + CAST ( COUNT ( * ) AS INTEGER ) ) * - + 38 - 39 AS col1
----
-1

query II rowsort
SELECT ALL + - 40, + 53 AS col0
----
-40
53

query I rowsort
SELECT + 81 * 27 + - 53 * - 80 * + + 0 AS col1
----
2187

query II rowsort
SELECT NULLIF ( - 37, + + 90 ), + 92 + + + 32 AS col2
----
-37
124

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5504
SELECT ALL - - ( - ( 18 ) ) * + 83 * SUM( DISTINCT ( 63 ) ) + - 0, - 19 + + 81 DIV + 3 AS col1
----
-94122
8

skipif mysql # not compatible
query II rowsort label-5504
SELECT ALL - - ( - ( 18 ) ) * + 83 * SUM ( DISTINCT ( 63 ) ) + - 0, - 19 + + 81 / + 3 AS col1
----
-94122
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5505
SELECT DISTINCT - 5 * - 67 + COUNT( * ) * + 72 + - 73 * + 9 + - MAX( DISTINCT 43 ) + CASE - 81 WHEN + + 1 THEN + 2 WHEN - 14 * 55 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5505
SELECT DISTINCT - 5 * - 67 + COUNT ( * ) * + 72 + - 73 * + 9 + - MAX ( DISTINCT 43 ) + CASE - 81 WHEN + + 1 THEN + 2 WHEN - 14 * 55 THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5506
SELECT DISTINCT + ( + - CASE + + 56 WHEN ( - MIN( ALL - 60 ) ) THEN + COUNT( * ) WHEN - 73 THEN NULL END ) AS col2, 39 + - 39 AS col1
----
NULL
0

skipif mysql # not compatible
query II rowsort label-5506
SELECT DISTINCT + ( + - CASE + + 56 WHEN ( - MIN ( ALL - 60 ) ) THEN + COUNT ( * ) WHEN - 73 THEN NULL END ) AS col2, 39 + - 39 AS col1
----
NULL
0

query I rowsort
SELECT - 5 * + 50 + + 56
----
-194

onlyif mysql # aggregate syntax: 
query II rowsort label-5508
SELECT DISTINCT 96 AS col2, COUNT( * ) * - 86 AS col0
----
96
-86

skipif mysql # not compatible
query II rowsort label-5508
SELECT DISTINCT 96 AS col2, COUNT ( * ) * - 86 AS col0
----
96
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-5509
SELECT - 70 DIV 2 AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-5509
SELECT - 70 / 2 AS col2
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5510
SELECT - MAX( - - CAST( NULL AS SIGNED ) ), - 18 col2
----
NULL
-18

skipif mysql # not compatible
query II rowsort label-5510
SELECT - MAX ( - - CAST ( NULL AS INTEGER ) ), - 18 col2
----
NULL
-18

query I rowsort
SELECT ALL 34 - + 87 AS col2
----
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5512
SELECT - 40 DIV + + 13 * - COUNT( * ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-5512
SELECT - 40 / + + 13 * - COUNT ( * ) AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5513
SELECT ALL + COUNT( * ) * + - ( + 97 ) * - 33 AS col0
----
3201

skipif mysql # not compatible
query I rowsort label-5513
SELECT ALL + COUNT ( * ) * + - ( + 97 ) * - 33 AS col0
----
3201

query I rowsort
SELECT ALL - 89 * + 65 * + 6
----
-34710

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5515
SELECT ALL 87 DIV + COUNT( * ) AS col2, - 7
----
87
-7

skipif mysql # not compatible
query II rowsort label-5515
SELECT ALL 87 / + COUNT ( * ) AS col2, - 7
----
87
-7

query I rowsort
SELECT 43 + + 21
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5517
SELECT MAX( ALL - 91 ) + - - 47 DIV - 98, - 59 AS col1
----
-91
-59

skipif mysql # not compatible
query II rowsort label-5517
SELECT MAX ( ALL - 91 ) + - - 47 / - 98, - 59 AS col1
----
-91
-59

query I rowsort
SELECT 62 * + - 53 AS col2
----
-3286

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5519
SELECT DISTINCT 79 * CAST( - 89 AS SIGNED ) AS col1
----
-7031

skipif mysql # not compatible
query I rowsort label-5519
SELECT DISTINCT 79 * CAST ( - 89 AS INTEGER ) AS col1
----
-7031

onlyif mysql # aggregate syntax: 
query II rowsort label-5520
SELECT ALL 83 + - MAX( - - ( - 45 ) ) AS col2, COUNT( * ) * + 24
----
128
24

skipif mysql # not compatible
query II rowsort label-5520
SELECT ALL 83 + - MAX ( - - ( - 45 ) ) AS col2, COUNT ( * ) * + 24
----
128
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5521
SELECT ALL 10 + 9, CAST( COUNT( * ) AS SIGNED ) AS col2
----
19
1

skipif mysql # not compatible
query II rowsort label-5521
SELECT ALL 10 + 9, CAST ( COUNT ( * ) AS INTEGER ) AS col2
----
19
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5522
SELECT 28 * - + CASE + 77 WHEN - 41 THEN - + 59 WHEN + 91 + COUNT( * ) THEN NULL ELSE - 20 END AS col0
----
560

skipif mysql # not compatible
query I rowsort label-5522
SELECT 28 * - + CASE + 77 WHEN - 41 THEN - + 59 WHEN + 91 + COUNT ( * ) THEN NULL ELSE - 20 END AS col0
----
560

query I rowsort
SELECT - + 8 * + 24 * 7 + 5 + + 40 + + 73 AS col1
----
-1226

onlyif mysql # aggregate syntax: 
query I rowsort label-5524
SELECT - COUNT( * ) * - ( + - COUNT( * ) ) + + 85 + + 5 + - 2 + COUNT( * ) + + 93 + - COUNT( * ) - + CASE - - 43 WHEN + 25 - 27 THEN + 33 + - 24 ELSE NULL END + 1 / - 96 * - ( 61 / 41 + + 27 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5524
SELECT - COUNT ( * ) * - ( + - COUNT ( * ) ) + + 85 + + 5 + - 2 + COUNT ( * ) + + 93 + - COUNT ( * ) - + CASE - - 43 WHEN + 25 - 27 THEN + 33 + - 24 ELSE NULL END + 1 / - 96 * - ( 61 / 41 + + 27 ) AS col0
----
NULL

query I rowsort
SELECT ALL + 48 + - + 4 AS col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-5526
SELECT + SUM( + 23 ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-5526
SELECT + SUM ( + 23 ) AS col0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5527
SELECT ALL - COALESCE ( - + 10, - COUNT( * ) * 50 )
----
10

skipif mysql # not compatible
query I rowsort label-5527
SELECT ALL - COALESCE ( - + 10, - COUNT ( * ) * 50 )
----
10

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5528
SELECT DISTINCT 95 + + 29 + - + NULLIF ( - - 41, 47 ) DIV - CAST( 74 AS SIGNED ) * 48 * - CAST( 38 AS SIGNED ) - + 12 + 3 * - ( - 97 ) AS col2
----
403

skipif mysql # not compatible
query I rowsort label-5528
SELECT DISTINCT 95 + + 29 + - + NULLIF ( - - 41, 47 ) / - CAST ( 74 AS INTEGER ) * 48 * - CAST ( 38 AS INTEGER ) - + 12 + 3 * - ( - 97 ) AS col2
----
403

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5529
SELECT ALL 99 + - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5529
SELECT ALL 99 + - CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT ALL + 24 * - 47 * + 77 AS col0
----
-86856

query I rowsort
SELECT DISTINCT - + 17 col2
----
-17

query II rowsort
SELECT 76 - CASE 40 WHEN 6 THEN + + 92 END AS col0, + 13 - + 49 col0
----
NULL
-36

query I rowsort
SELECT 20 * - 15 + - + 70
----
-370

onlyif mysql # aggregate syntax: 
query I rowsort label-5534
SELECT + - SUM( DISTINCT + 9 ) AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-5534
SELECT + - SUM ( DISTINCT + 9 ) AS col1
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5535
SELECT ALL 7 AS col1, NULLIF ( + COUNT( * ), + CASE - - CAST( 35 AS SIGNED ) WHEN 55 - - 32 + + 65 THEN + - 45 END ) * + COUNT( * ) * + - 75 + - ( COUNT( * ) ) * + - 0
----
7
-75

skipif mysql # not compatible
query II rowsort label-5535
SELECT ALL 7 AS col1, NULLIF ( + COUNT ( * ), + CASE - - CAST ( 35 AS INTEGER ) WHEN 55 - - 32 + + 65 THEN + - 45 END ) * + COUNT ( * ) * + - 75 + - ( COUNT ( * ) ) * + - 0
----
7
-75

query I rowsort
SELECT 37 - - ( - 89 ) AS col1
----
-52

query I rowsort
SELECT ALL + 49 - - 12
----
61

query I rowsort
SELECT DISTINCT + 3 * - - 46 AS col1
----
138

onlyif mysql # DIV for integer division: 
query I rowsort label-5539
SELECT 36 + - 53 + 87 DIV - 82
----
-18

skipif mysql # not compatible
query I rowsort label-5539
SELECT 36 + - 53 + 87 / - 82
----
-18

query I rowsort
SELECT 46 + - 6
----
40

query I rowsort
SELECT ALL - 59 + - 6 AS col0
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5542
SELECT DISTINCT 91, ( - CAST( NULL AS SIGNED ) ) col0
----
91
NULL

skipif mysql # not compatible
query II rowsort label-5542
SELECT DISTINCT 91, ( - CAST ( NULL AS INTEGER ) ) col0
----
91
NULL

query I rowsort
SELECT ALL 38 + - 10 col0
----
28

query I rowsort
SELECT DISTINCT - 41 + - 29 + + - 35 AS col1
----
-105

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5545
SELECT 90 + 13 * - - COALESCE ( 37, - ( COUNT( * ) ) * - + 57 * 44 DIV - 26 )
----
571

skipif mysql # not compatible
query I rowsort label-5545
SELECT 90 + 13 * - - COALESCE ( 37, - ( COUNT ( * ) ) * - + 57 * 44 / - 26 )
----
571

query I rowsort
SELECT ALL + 23 + + 38 AS col0
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5547
SELECT DISTINCT COALESCE ( - 70, - CAST( NULL AS SIGNED ) * + 71, 99 - + - 86 * + 84 )
----
-70

skipif mysql # not compatible
query I rowsort label-5547
SELECT DISTINCT COALESCE ( - 70, - CAST ( NULL AS INTEGER ) * + 71, 99 - + - 86 * + 84 )
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-5548
SELECT ( - COUNT( - 12 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5548
SELECT ( - COUNT ( - 12 ) ) AS col0
----
-1

query II rowsort
SELECT + + 43 AS col0, 32 AS col1
----
43
32

onlyif mysql # aggregate syntax: 
query I rowsort label-5550
SELECT MIN( DISTINCT + 4 ) * + MIN( - - 27 ) AS col1
----
108

skipif mysql # not compatible
query I rowsort label-5550
SELECT MIN ( DISTINCT + 4 ) * + MIN ( - - 27 ) AS col1
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-5551
SELECT DISTINCT COUNT( * ) * - 30 + 8 * + 98 AS col2
----
754

skipif mysql # not compatible
query I rowsort label-5551
SELECT DISTINCT COUNT ( * ) * - 30 + 8 * + 98 AS col2
----
754

query I rowsort
SELECT ALL 44 * - 78
----
-3432

query I rowsort
SELECT 66 * - 65 AS col0
----
-4290

onlyif mysql # aggregate syntax: 
query I rowsort label-5554
SELECT 14 * + - COUNT( * ) AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-5554
SELECT 14 * + - COUNT ( * ) AS col2
----
-14

query II rowsort
SELECT COALESCE ( + 46, COALESCE ( + 3, 51, + - ( + 34 ) ) ) + - 50 + 51 * + ( + 8 ) AS col0, 50 + - - 90 + - 27
----
404
113

onlyif mysql # DIV for integer division: 
query I rowsort label-5556
SELECT - + 31 * 12 * 56 * 21 DIV 74 - - - 38 AS col1
----
-5949

skipif mysql # not compatible
query I rowsort label-5556
SELECT - + 31 * 12 * 56 * 21 / 74 - - - 38 AS col1
----
-5949

onlyif mysql # aggregate syntax: 
query I rowsort label-5557
SELECT + COUNT( + 16 ) + 71 * - - 56
----
3977

skipif mysql # not compatible
query I rowsort label-5557
SELECT + COUNT ( + 16 ) + 71 * - - 56
----
3977

onlyif mysql # aggregate syntax: 
query I rowsort label-5558
SELECT - MAX( DISTINCT + 52 ) * + 60 * CASE + + 37 WHEN 33 THEN + 52 ELSE + COUNT( ALL 51 ) * + 69 * - - COUNT( * ) * + 31 END + + + 25 + + + 93 + - 43
----
-6673605

skipif mysql # not compatible
query I rowsort label-5558
SELECT - MAX ( DISTINCT + 52 ) * + 60 * CASE + + 37 WHEN 33 THEN + 52 ELSE + COUNT ( ALL 51 ) * + 69 * - - COUNT ( * ) * + 31 END + + + 25 + + + 93 + - 43
----
-6673605

onlyif mysql # aggregate syntax: 
query I rowsort label-5559
SELECT + COUNT( ALL 65 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5559
SELECT + COUNT ( ALL 65 ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5560
SELECT - 17 DIV - 18
----
0

skipif mysql # not compatible
query I rowsort label-5560
SELECT - 17 / - 18
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5561
SELECT + 99 DIV + + 90
----
1

skipif mysql # not compatible
query I rowsort label-5561
SELECT + 99 / + + 90
----
1

query I rowsort
SELECT ALL - 89 * COALESCE ( + - NULLIF ( + 85, - 47 ), 92 - + CASE + + 45 WHEN - 46 THEN ( 72 ) * - - NULLIF ( - - 67, 73 ) + + 56 + ( - 1 ) WHEN 2 THEN 36 END ) * 7 AS col2
----
52955

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5563
SELECT + 17 + - NULLIF ( + - 39, CAST( NULL AS SIGNED ) * 89 * - 96 )
----
56

skipif mysql # not compatible
query I rowsort label-5563
SELECT + 17 + - NULLIF ( + - 39, CAST ( NULL AS INTEGER ) * 89 * - 96 )
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-5564
SELECT ALL 23 DIV 7
----
3

skipif mysql # not compatible
query I rowsort label-5564
SELECT ALL 23 / 7
----
3

query I rowsort
SELECT ALL + 17 * + 11 * - 55 * - 86
----
884510

onlyif mysql # aggregate syntax: 
query I rowsort label-5566
SELECT - COUNT( * ) * + + 72 * - 53 AS col1
----
3816

skipif mysql # not compatible
query I rowsort label-5566
SELECT - COUNT ( * ) * + + 72 * - 53 AS col1
----
3816

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5567
SELECT NULLIF ( - - 68, + 60 * - + CAST( NULL AS SIGNED ) ) * 91 * - 47 + + - COALESCE ( + MIN( 34 ), - - 19 DIV - COUNT( * ) DIV 89 ) * + 61 AS col0
----
-292910

skipif mysql # not compatible
query I rowsort label-5567
SELECT NULLIF ( - - 68, + 60 * - + CAST ( NULL AS INTEGER ) ) * 91 * - 47 + + - COALESCE ( + MIN ( 34 ), - - 19 / - COUNT ( * ) / 89 ) * + 61 AS col0
----
-292910

onlyif mysql # aggregate syntax: 
query II rowsort label-5568
SELECT 78, ( - - COUNT( * ) ) AS col0
----
78
1

skipif mysql # not compatible
query II rowsort label-5568
SELECT 78, ( - - COUNT ( * ) ) AS col0
----
78
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5569
SELECT - COALESCE ( + 28, 9 + - 67 + - 94 ) * COALESCE ( + 83, 58 + 23 + - + 29 * - - COUNT( * ) * - + 0 ) col0
----
-2324

skipif mysql # not compatible
query I rowsort label-5569
SELECT - COALESCE ( + 28, 9 + - 67 + - 94 ) * COALESCE ( + 83, 58 + 23 + - + 29 * - - COUNT ( * ) * - + 0 ) col0
----
-2324

query I rowsort
SELECT - ( - 0 ) + - 22
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-5571
SELECT - ( + - NULLIF ( - + ( - + 49 ), + + 63 / - 89 + + - COUNT( * ) ) )
----
49

skipif mysql # not compatible
query I rowsort label-5571
SELECT - ( + - NULLIF ( - + ( - + 49 ), + + 63 / - 89 + + - COUNT ( * ) ) )
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5572
SELECT ALL 15 + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5572
SELECT ALL 15 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL + 82 + + 14
----
96

query I rowsort
SELECT ALL - NULLIF ( 85, - - 26 ) + + - 69 + 2
----
-152

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5575
SELECT - ( + COALESCE ( + COALESCE ( + 55, - 39 + - MAX( + + 85 ) + COUNT( - 40 ) DIV + + 24 * CAST( + + 64 AS SIGNED ) * - ( - COUNT( * ) ), - - NULLIF ( + - 83, + 24 * 53 ) + + COUNT( * ) * - COUNT( * ) ), - 28, 3 * 56 ) )
----
-55

skipif mysql # not compatible
query I rowsort label-5575
SELECT - ( + COALESCE ( + COALESCE ( + 55, - 39 + - MAX ( + + 85 ) + COUNT ( - 40 ) / + + 24 * CAST ( + + 64 AS INTEGER ) * - ( - COUNT ( * ) ), - - NULLIF ( + - 83, + 24 * 53 ) + + COUNT ( * ) * - COUNT ( * ) ), - 28, 3 * 56 ) )
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5576
SELECT ALL + 82 + - CAST( NULL AS SIGNED ) * + 83 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5576
SELECT ALL + 82 + - CAST ( NULL AS INTEGER ) * + 83 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5577
SELECT - COUNT( ALL + - 29 ) - - + 12
----
11

skipif mysql # not compatible
query I rowsort label-5577
SELECT - COUNT ( ALL + - 29 ) - - + 12
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-5578
SELECT - + 28 * + + COUNT( * ) AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-5578
SELECT - + 28 * + + COUNT ( * ) AS col0
----
-28

query II rowsort
SELECT 76, - 24 AS col1
----
76
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-5580
SELECT DISTINCT - - COUNT( * ) + 81 AS col2
----
82

skipif mysql # not compatible
query I rowsort label-5580
SELECT DISTINCT - - COUNT ( * ) + 81 AS col2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5581
SELECT DISTINCT 41 * + 61 * + 25 - - CASE 71 WHEN - COUNT( * ) - + + ( - CASE + MIN( ALL - 9 ) WHEN + COUNT( * ) * + 26 THEN NULL ELSE - - 3 * - + 50 * + 6 + 11 * - 16 END ) THEN + 21 * 15 ELSE - 67 END * 65 AS col1
----
58170

skipif mysql # not compatible
query I rowsort label-5581
SELECT DISTINCT 41 * + 61 * + 25 - - CASE 71 WHEN - COUNT ( * ) - + + ( - CASE + MIN ( ALL - 9 ) WHEN + COUNT ( * ) * + 26 THEN NULL ELSE - - 3 * - + 50 * + 6 + 11 * - 16 END ) THEN + 21 * 15 ELSE - 67 END * 65 AS col1
----
58170

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5582
SELECT SUM( DISTINCT - 3 ) DIV + 60 + + - 58 AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-5582
SELECT SUM ( DISTINCT - 3 ) / + 60 + + - 58 AS col0
----
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5583
SELECT DISTINCT + 6 * - - COUNT( * ) * - 41 - - 27 DIV 54 AS col0
----
-246

skipif mysql # not compatible
query I rowsort label-5583
SELECT DISTINCT + 6 * - - COUNT ( * ) * - 41 - - 27 / 54 AS col0
----
-246

query I rowsort
SELECT ALL + ( - 51 ) * 15 AS col2
----
-765

query I rowsort
SELECT DISTINCT + ( 30 ) AS col1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5586
SELECT DISTINCT - + 68 * 56 * + - MIN( - - ( - 53 ) ) + - 86 - - + COUNT( * ) AS col1
----
-201909

skipif mysql # not compatible
query I rowsort label-5586
SELECT DISTINCT - + 68 * 56 * + - MIN ( - - ( - 53 ) ) + - 86 - - + COUNT ( * ) AS col1
----
-201909

query I rowsort
SELECT - 56 * - 74 AS col0
----
4144

onlyif mysql # DIV for integer division: 
query I rowsort label-5588
SELECT + - 1 * - - COALESCE ( - 95, - + 98 ) - + 10 + - - ( 96 ) DIV + - 93 AS col0
----
84

skipif mysql # not compatible
query I rowsort label-5588
SELECT + - 1 * - - COALESCE ( - 95, - + 98 ) - + 10 + - - ( 96 ) / + - 93 AS col0
----
84

query II rowsort
SELECT ALL + 70 col2, 90
----
70
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5590
SELECT + - CAST( 99 AS SIGNED )
----
-99

skipif mysql # not compatible
query I rowsort label-5590
SELECT + - CAST ( 99 AS INTEGER )
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5591
SELECT - 74 * + + 37 + - COUNT( * ) - - 85 + + + NULLIF ( + + 69, + 43 * 67 + + NULLIF ( ( + - 38 ), + NULLIF ( - - 43, COUNT( * ) ) ) ) * + 15
----
-1619

skipif mysql # not compatible
query I rowsort label-5591
SELECT - 74 * + + 37 + - COUNT ( * ) - - 85 + + + NULLIF ( + + 69, + 43 * 67 + + NULLIF ( ( + - 38 ), + NULLIF ( - - 43, COUNT ( * ) ) ) ) * + 15
----
-1619

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5592
SELECT DISTINCT + 13 * 33 + + 80 + CAST( NULLIF ( + - CAST( NULL AS SIGNED ), - - 32 + 27 ) AS SIGNED ) - + - 53 + - + COALESCE ( + - 6, + 97, - COUNT( * ) ) / - 41
----
NULL

skipif mysql # not compatible
query I rowsort label-5592
SELECT DISTINCT + 13 * 33 + + 80 + CAST ( NULLIF ( + - CAST ( NULL AS INTEGER ), - - 32 + 27 ) AS INTEGER ) - + - 53 + - + COALESCE ( + - 6, + 97, - COUNT ( * ) ) / - 41
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5593
SELECT - 86 / + + 1 + - 88 + + 83 * - 31 - - 23 * - - 63 + - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5593
SELECT - 86 / + + 1 + - 88 + + 83 * - 31 - - 23 * - - 63 + - CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5594
SELECT ALL + - 75 col1, 42 DIV + 50 * - + 3 - 84
----
-75
-84

skipif mysql # not compatible
query II rowsort label-5594
SELECT ALL + - 75 col1, 42 / + 50 * - + 3 - 84
----
-75
-84

onlyif mysql # aggregate syntax: 
query II rowsort label-5595
SELECT DISTINCT + 11 AS col0, + COUNT( * ) + - + NULLIF ( 96, - 99 ) AS col1
----
11
-95

skipif mysql # not compatible
query II rowsort label-5595
SELECT DISTINCT + 11 AS col0, + COUNT ( * ) + - + NULLIF ( 96, - 99 ) AS col1
----
11
-95

query II rowsort
SELECT DISTINCT + 26 AS col2, 93 + + 7 * ( - + 1 ) * 24 + + 78
----
26
3

query I rowsort
SELECT ALL + - CASE 95 WHEN - 39 THEN 33 ELSE + 72 END AS col2
----
-72

query I rowsort
SELECT ALL + CASE + 7 WHEN 14 THEN NULL ELSE - 54 END
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5599
SELECT ALL - ( - 59 ) * - COUNT( DISTINCT 54 ) DIV 21 DIV + 16 + - COUNT( ALL 12 ) DIV 12 * + CAST( 83 AS SIGNED ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5599
SELECT ALL - ( - 59 ) * - COUNT ( DISTINCT 54 ) / 21 / + 16 + - COUNT ( ALL 12 ) / 12 * + CAST ( 83 AS INTEGER ) AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-5600
SELECT + 93 * - 39 AS col1, - COUNT( * ) - - 10 DIV - 92 AS col1, - 61 - - COUNT( * ) * + 42
----
-3627
-1
-19

skipif mysql # not compatible
query III rowsort label-5600
SELECT + 93 * - 39 AS col1, - COUNT ( * ) - - 10 / - 92 AS col1, - 61 - - COUNT ( * ) * + 42
----
-3627
-1
-19

query II rowsort
SELECT - 5 - + 13 * + 24 AS col2, - 58
----
-317
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5602
SELECT + MAX( ALL + 10 ) AS col1
----
10

skipif mysql # not compatible
query I rowsort label-5602
SELECT + MAX ( ALL + 10 ) AS col1
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-5603
SELECT + 46 DIV 27 * - 77
----
-77

skipif mysql # not compatible
query I rowsort label-5603
SELECT + 46 / 27 * - 77
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5604
SELECT - CAST( 61 AS SIGNED ) col2, 89 AS col1
----
-61
89

skipif mysql # not compatible
query II rowsort label-5604
SELECT - CAST ( 61 AS INTEGER ) col2, 89 AS col1
----
-61
89

onlyif mysql # aggregate syntax: 
query I rowsort label-5605
SELECT SUM( DISTINCT + NULLIF ( 95, + 98 ) ) AS col2
----
95

skipif mysql # not compatible
query I rowsort label-5605
SELECT SUM ( DISTINCT + NULLIF ( 95, + 98 ) ) AS col2
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-5606
SELECT + 10 DIV - 89 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5606
SELECT + 10 / - 89 AS col1
----
0

onlyif mysql # aggregate syntax: 
query III rowsort label-5607
SELECT ALL 11 * + NULLIF ( - - COUNT( * ), + 59 ) + - 77 col0, + AVG ( ALL - 95 ) * - - CASE - 93 WHEN 54 * + + COUNT( * ) THEN 8 END + - 66 AS col0, - 22
----
-66
NULL
-22

skipif mysql # not compatible
query III rowsort label-5607
SELECT ALL 11 * + NULLIF ( - - COUNT ( * ), + 59 ) + - 77 col0, + AVG ( ALL - 95 ) * - - CASE - 93 WHEN 54 * + + COUNT ( * ) THEN 8 END + - 66 AS col0, - 22
----
-66
NULL
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-5608
SELECT DISTINCT SUM( + - 94 ) * - 0 * 7 + + 69
----
69

skipif mysql # not compatible
query I rowsort label-5608
SELECT DISTINCT SUM ( + - 94 ) * - 0 * 7 + + 69
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5609
SELECT ALL + CASE + MIN( DISTINCT + 37 ) WHEN 50 / + 80 * - 33 THEN - - 94 * - 85 * + 50 * - 12 - MAX( ALL + 19 ) + - COUNT( * ) END + + 30 + - 84 + - 45 / COUNT( * ) * - 9 * 53 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5609
SELECT ALL + CASE + MIN ( DISTINCT + 37 ) WHEN 50 / + 80 * - 33 THEN - - 94 * - 85 * + 50 * - 12 - MAX ( ALL + 19 ) + - COUNT ( * ) END + + 30 + - 84 + - 45 / COUNT ( * ) * - 9 * 53 AS col0
----
NULL

query I rowsort
SELECT + ( + 86 ) - + 91
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5611
SELECT DISTINCT 27 + + SUM( DISTINCT + - 39 )
----
-12

skipif mysql # not compatible
query I rowsort label-5611
SELECT DISTINCT 27 + + SUM ( DISTINCT + - 39 )
----
-12

query I rowsort
SELECT + 91 * 72
----
6552

onlyif mysql # aggregate syntax: 
query I rowsort label-5613
SELECT ALL 3 * + MAX( 69 ) col2
----
207

skipif mysql # not compatible
query I rowsort label-5613
SELECT ALL 3 * + MAX ( 69 ) col2
----
207

onlyif mysql # aggregate syntax: 
query I rowsort label-5614
SELECT ALL COUNT( ALL + + ( + 9 ) ) + + NULLIF ( + 61, - 81 ) - + 24
----
38

skipif mysql # not compatible
query I rowsort label-5614
SELECT ALL COUNT ( ALL + + ( + 9 ) ) + + NULLIF ( + 61, - 81 ) - + 24
----
38

query I rowsort
SELECT - ( - 75 ) AS col0
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5616
SELECT + COUNT( * ) + 76 DIV 52, - 60 AS col0
----
2
-60

skipif mysql # not compatible
query II rowsort label-5616
SELECT + COUNT ( * ) + 76 / 52, - 60 AS col0
----
2
-60

query II rowsort
SELECT - 50 - 37 * - 40, 49 AS col0
----
1430
49

query I rowsort
SELECT - 87 + - 28 + - 85 - - 45 AS col0
----
-155

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5619
SELECT - ( - 8 ), + ( - + 15 ) * - + 77 * - 55 / - MAX( - - 54 ) + - COUNT( * ) * + CASE 75 WHEN - - 83 THEN + 93 * - 34 WHEN - CAST( NULL AS DECIMAL ) * + + 4 + + NULLIF ( + 16, 74 + 79 ) * + COUNT( 44 ) THEN 32 END + 80 AS col1
----
8
NULL

skipif mysql # not compatible
query II rowsort label-5619
SELECT - ( - 8 ), + ( - + 15 ) * - + 77 * - 55 / - MAX ( - - 54 ) + - COUNT ( * ) * + CASE 75 WHEN - - 83 THEN + 93 * - 34 WHEN - CAST ( NULL AS REAL ) * + + 4 + + NULLIF ( + 16, 74 + 79 ) * + COUNT ( 44 ) THEN 32 END + 80 AS col1
----
8
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5620
SELECT ALL COALESCE ( + ( 44 ), - 5, - 75 + - + 12 * 22 * - COUNT( * ) )
----
44

skipif mysql # not compatible
query I rowsort label-5620
SELECT ALL COALESCE ( + ( 44 ), - 5, - 75 + - + 12 * 22 * - COUNT ( * ) )
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5621
SELECT + CAST( NULL AS SIGNED ) + - 30 / + COALESCE ( + COALESCE ( + COUNT( * ), + - MAX( ALL + + 32 ) ), + - 86 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5621
SELECT + CAST ( NULL AS INTEGER ) + - 30 / + COALESCE ( + COALESCE ( + COUNT ( * ), + - MAX ( ALL + + 32 ) ), + - 86 ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5622
SELECT + - CASE 48 WHEN + 51 * + ( - 86 ) * + 14 * - CAST( - 69 AS SIGNED ) + - 99 + + 41 / + 56 + + + 75 * - - 60 * + 7 * - ( 44 ) THEN + 45 WHEN - 35 THEN NULL END / - CAST( + 73 * 44 AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5622
SELECT + - CASE 48 WHEN + 51 * + ( - 86 ) * + 14 * - CAST ( - 69 AS INTEGER ) + - 99 + + 41 / + 56 + + + 75 * - - 60 * + 7 * - ( 44 ) THEN + 45 WHEN - 35 THEN NULL END / - CAST ( + 73 * 44 AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - - 56 * + ( + 2 ) * - 98
----
-10976

onlyif mysql # aggregate syntax: 
query I rowsort label-5624
SELECT + MIN( DISTINCT + 6 )
----
6

skipif mysql # not compatible
query I rowsort label-5624
SELECT + MIN ( DISTINCT + 6 )
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5625
SELECT ALL 50 / + COUNT( * ) + CASE - ( - + COUNT( * ) ) WHEN + 48 THEN - 45 WHEN COALESCE ( - COUNT( * ), - 2 ) THEN NULL WHEN + ( + 88 ) * - - CASE 68 WHEN + + CASE + 28 WHEN 11 + MIN( DISTINCT + ( CAST( NULL AS SIGNED ) ) ) THEN + 44 + MIN( DISTINCT - 80 ) WHEN NULLIF ( + NULLIF ( 8, COALESCE ( + 68, - 38 - 67 * - COUNT( * ) ) ), - COALESCE ( + 29, COUNT( * ), 93 * + 14 ) ) + 7 THEN - 92 * + 70 WHEN COUNT( * ) THEN + 86 WHEN + COUNT( * ) THEN NULL ELSE 45 * MAX( + 3 / 28 ) - - 72 END THEN + 61 WHEN 38 * COUNT( * ) THEN 16 END THEN 90 END + - COALESCE ( 83, - 0 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5625
SELECT ALL 50 / + COUNT ( * ) + CASE - ( - + COUNT ( * ) ) WHEN + 48 THEN - 45 WHEN COALESCE ( - COUNT ( * ), - 2 ) THEN NULL WHEN + ( + 88 ) * - - CASE 68 WHEN + + CASE + 28 WHEN 11 + MIN ( DISTINCT + ( CAST ( NULL AS INTEGER ) ) ) THEN + 44 + MIN ( DISTINCT - 80 ) WHEN NULLIF ( + NULLIF ( 8, COALESCE ( + 68, - 38 - 67 * - COUNT ( * ) ) ), - COALESCE ( + 29, COUNT ( * ), 93 * + 14 ) ) + 7 THEN - 92 * + 70 WHEN COUNT ( * ) THEN + 86 WHEN + COUNT ( * ) THEN NULL ELSE 45 * MAX ( + 3 / 28 ) - - 72 END THEN + 61 WHEN 38 * COUNT ( * ) THEN 16 END THEN 90 END + - COALESCE ( 83, - 0 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5626
SELECT DISTINCT - + NULLIF ( + COUNT( * ), - COUNT( * ) * 33 + - + 34 ) * - + 29 AS col0
----
29

skipif mysql # not compatible
query I rowsort label-5626
SELECT DISTINCT - + NULLIF ( + COUNT ( * ), - COUNT ( * ) * 33 + - + 34 ) * - + 29 AS col0
----
29

onlyif mysql # aggregate syntax: 
query II rowsort label-5627
SELECT + COUNT( * ) + + - COUNT( * ), COALESCE ( - 49, 19 ) * - 63 - - COALESCE ( - ( + COUNT( * ) ), - 41 * 72, - 49 ) AS col1
----
0
3086

skipif mysql # not compatible
query II rowsort label-5627
SELECT + COUNT ( * ) + + - COUNT ( * ), COALESCE ( - 49, 19 ) * - 63 - - COALESCE ( - ( + COUNT ( * ) ), - 41 * 72, - 49 ) AS col1
----
0
3086

onlyif mysql # DIV for integer division: 
query I rowsort label-5628
SELECT DISTINCT - CASE + 19 WHEN + 95 THEN 66 ELSE + - 9 DIV COALESCE ( + - 31, 58 + + - 41 ) - + ( - 96 ) END
----
-96

skipif mysql # not compatible
query I rowsort label-5628
SELECT DISTINCT - CASE + 19 WHEN + 95 THEN 66 ELSE + - 9 / COALESCE ( + - 31, 58 + + - 41 ) - + ( - 96 ) END
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5629
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * + 38 / - + COUNT( * ) + + 61 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5629
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * + 38 / - + COUNT ( * ) + + 61 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5630
SELECT - 2 * - 5 + - COUNT( * ) + + 24
----
33

skipif mysql # not compatible
query I rowsort label-5630
SELECT - 2 * - 5 + - COUNT ( * ) + + 24
----
33

query II rowsort
SELECT 65 * + + 57 * + 28 col2, 34 + + 10 + 81 AS col0
----
103740
125

query II rowsort
SELECT ALL - 26 + + 28 * + 80 AS col0, 2
----
2214
2

onlyif mysql # DIV for integer division: 
query I rowsort label-5633
SELECT 36 + + + 31 DIV - ( + + 80 ) - + 3 + 87
----
120

skipif mysql # not compatible
query I rowsort label-5633
SELECT 36 + + + 31 / - ( + + 80 ) - + 3 + 87
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-5634
SELECT ( CASE + + 46 WHEN + 85 THEN NULL WHEN 47 * - + COUNT( * ) + - 59 / + 24 / + 21 + 43 THEN - 31 / + COUNT( * ) ELSE NULL END ) * - + 11 - + 91 - + - 58 + MAX( ALL - - 86 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5634
SELECT ( CASE + + 46 WHEN + 85 THEN NULL WHEN 47 * - + COUNT ( * ) + - 59 / + 24 / + 21 + 43 THEN - 31 / + COUNT ( * ) ELSE NULL END ) * - + 11 - + 91 - + - 58 + MAX ( ALL - - 86 )
----
NULL

query II rowsort
SELECT 54 AS col2, 92 - - 30 + - COALESCE ( 10, 28 ) AS col2
----
54
112

query I rowsort
SELECT 46 + - 77
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-5637
SELECT ALL + 54 + COUNT( * )
----
55

skipif mysql # not compatible
query I rowsort label-5637
SELECT ALL + 54 + COUNT ( * )
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-5638
SELECT 63 * - SUM( DISTINCT - ( - 27 ) ) + - + 30 AS col2
----
-1731

skipif mysql # not compatible
query I rowsort label-5638
SELECT 63 * - SUM ( DISTINCT - ( - 27 ) ) + - + 30 AS col2
----
-1731

query I rowsort
SELECT 91 * + ( - + 30 )
----
-2730

query I rowsort
SELECT ALL 22 + 8
----
30

query I rowsort
SELECT 81 + + - ( + + 58 ) + + 73 + + + 6
----
102

query I rowsort
SELECT ALL 15 * + - 83 AS col2
----
-1245

onlyif mysql # aggregate syntax: 
query I rowsort label-5643
SELECT DISTINCT - 82 * - COUNT( * ) AS col0
----
82

skipif mysql # not compatible
query I rowsort label-5643
SELECT DISTINCT - 82 * - COUNT ( * ) AS col0
----
82

query I rowsort
SELECT ALL + 27 + 7 - - 28 * - + 96 * - 5
----
13474

query I rowsort
SELECT 0 * + 94 + + 72
----
72

query I rowsort
SELECT ALL 62 + 4 * - 0 AS col2
----
62

query I rowsort
SELECT 71 * - + 17 col0
----
-1207

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5648
SELECT CAST( NULL AS SIGNED ) + + 33 - + 56 + 47 + - ( - SUM( - CAST( NULL AS SIGNED ) ) ) + - - MIN( - - 43 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5648
SELECT CAST ( NULL AS INTEGER ) + + 33 - + 56 + 47 + - ( - SUM ( - CAST ( NULL AS INTEGER ) ) ) + - - MIN ( - - 43 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5649
SELECT 54 col1, 69 + + 86 * + COUNT( * ) + - 12 AS col2
----
54
143

skipif mysql # not compatible
query II rowsort label-5649
SELECT 54 col1, 69 + + 86 * + COUNT ( * ) + - 12 AS col2
----
54
143

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5650
SELECT ALL - 65 - + CASE - - CAST( NULL AS SIGNED ) WHEN - + MIN( 71 ) THEN + + COALESCE ( 89, - COUNT( * ), - 12 ) WHEN 29 * + - 51 THEN + - COUNT( * ) * - 7 WHEN 46 * - - 33 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5650
SELECT ALL - 65 - + CASE - - CAST ( NULL AS INTEGER ) WHEN - + MIN ( 71 ) THEN + + COALESCE ( 89, - COUNT ( * ), - 12 ) WHEN 29 * + - 51 THEN + - COUNT ( * ) * - 7 WHEN 46 * - - 33 THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5651
SELECT ALL COUNT( ALL 75 )
----
1

skipif mysql # not compatible
query I rowsort label-5651
SELECT ALL COUNT ( ALL 75 )
----
1

query I rowsort
SELECT ALL ( + + ( - COALESCE ( 51, - + 32 + ( - 43 ) ) ) ) col0
----
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-5653
SELECT DISTINCT COUNT( * ) - + - 27 * 96 AS col2, + ( - COALESCE ( COUNT( * ), COUNT( * ) ) )
----
2593
-1

skipif mysql # not compatible
query II rowsort label-5653
SELECT DISTINCT COUNT ( * ) - + - 27 * 96 AS col2, + ( - COALESCE ( COUNT ( * ), COUNT ( * ) ) )
----
2593
-1

query I rowsort
SELECT ALL + 96 * + 15
----
1440

onlyif mysql # aggregate syntax: 
query I rowsort label-5655
SELECT ALL CASE 60 WHEN + 8 THEN - 15 / + 32 - - + 81 / - COUNT( * ) + + - COALESCE ( + COUNT( * ), - + 64 ) END * + + 86 * + 50 + + 74 + + - 49 - - 83
----
NULL

skipif mysql # not compatible
query I rowsort label-5655
SELECT ALL CASE 60 WHEN + 8 THEN - 15 / + 32 - - + 81 / - COUNT ( * ) + + - COALESCE ( + COUNT ( * ), - + 64 ) END * + + 86 * + 50 + + 74 + + - 49 - - 83
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5656
SELECT COUNT( * ), - COALESCE ( MAX( ALL - 79 ), 42 * 73, - SUM( DISTINCT - - 48 ) ) AS col0
----
1
79

skipif mysql # not compatible
query II rowsort label-5656
SELECT COUNT ( * ), - COALESCE ( MAX ( ALL - 79 ), 42 * 73, - SUM ( DISTINCT - - 48 ) ) AS col0
----
1
79

query I rowsort
SELECT ALL 91 * - 37 AS col1
----
-3367

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5658
SELECT + COALESCE ( 73, + 5 * + 64 * ( + 43 ) - + 11 * + + COUNT( * ) ) + + 90 - 7 DIV 70 DIV 98 * 72 * 46 AS col2
----
163

skipif mysql # not compatible
query I rowsort label-5658
SELECT + COALESCE ( 73, + 5 * + 64 * ( + 43 ) - + 11 * + + COUNT ( * ) ) + + 90 - 7 / 70 / 98 * 72 * 46 AS col2
----
163

onlyif mysql # aggregate syntax: 
query I rowsort label-5659
SELECT DISTINCT + 77 * + 2 + 49 + 14 * - 29 - + COUNT( * ) AS col0
----
-204

skipif mysql # not compatible
query I rowsort label-5659
SELECT DISTINCT + 77 * + 2 + 49 + 14 * - 29 - + COUNT ( * ) AS col0
----
-204

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5660
SELECT ALL COALESCE ( + 60, CAST( - CASE ( + - CAST( NULL AS SIGNED ) ) WHEN - 93 THEN 26 + 34 + - 82 WHEN + 17 * - COUNT( * ) THEN + 70 ELSE NULL END AS SIGNED ) * - 16 * + - ( 5 ) + 13 * - + COUNT( * ) )
----
60

skipif mysql # not compatible
query I rowsort label-5660
SELECT ALL COALESCE ( + 60, CAST ( - CASE ( + - CAST ( NULL AS INTEGER ) ) WHEN - 93 THEN 26 + 34 + - 82 WHEN + 17 * - COUNT ( * ) THEN + 70 ELSE NULL END AS INTEGER ) * - 16 * + - ( 5 ) + 13 * - + COUNT ( * ) )
----
60

query II rowsort
SELECT ALL + NULLIF ( + 0, - - 51 + - + 43 + - + 96 ) * 48 AS col0, 31 * 71 * + 48 AS col0
----
0
105648

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5662
SELECT DISTINCT CAST( - 88 AS SIGNED ) + + - COUNT( * )
----
-89

skipif mysql # not compatible
query I rowsort label-5662
SELECT DISTINCT CAST ( - 88 AS INTEGER ) + + - COUNT ( * )
----
-89

query I rowsort
SELECT 81 - + - 9 AS col2
----
90

query I rowsort
SELECT ALL 80 + + - 40 + + 77 col2
----
117

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5665
SELECT 58 / + 21 + - - CAST( NULL AS DECIMAL ) * - 69 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5665
SELECT 58 / + 21 + - - CAST ( NULL AS REAL ) * - 69 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5666
SELECT COUNT( * ) * + - ( + ( 40 ) ) AS col0, + 58 + + 15
----
-40
73

skipif mysql # not compatible
query II rowsort label-5666
SELECT COUNT ( * ) * + - ( + ( 40 ) ) AS col0, + 58 + + 15
----
-40
73

query I rowsort
SELECT 72 + 3
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5668
SELECT DISTINCT + 85 DIV - - COUNT( - - 2 )
----
85

skipif mysql # not compatible
query I rowsort label-5668
SELECT DISTINCT + 85 / - - COUNT ( - - 2 )
----
85

query I rowsort
SELECT ALL - 31 + + 91
----
60

query I rowsort
SELECT DISTINCT - 13 + 16 AS col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5671
SELECT DISTINCT 99 + 79 + + 7 - + 47 + - + COUNT( * )
----
137

skipif mysql # not compatible
query I rowsort label-5671
SELECT DISTINCT 99 + 79 + + 7 - + 47 + - + COUNT ( * )
----
137

query I rowsort
SELECT ALL - 95 + - 61 * - - 55 col2
----
-3450

onlyif mysql # aggregate syntax: 
query I rowsort label-5673
SELECT DISTINCT + COUNT( * ) + - - 72 + 67 * + NULLIF ( COUNT( 85 ), - CASE + 50 WHEN - 73 THEN NULL WHEN - 83 + - - 69 * + 52 THEN + COALESCE ( 41, - 31 ) * - 61 ELSE ( + 77 ) END + - 81 ) + - 94 AS col2
----
46

skipif mysql # not compatible
query I rowsort label-5673
SELECT DISTINCT + COUNT ( * ) + - - 72 + 67 * + NULLIF ( COUNT ( 85 ), - CASE + 50 WHEN - 73 THEN NULL WHEN - 83 + - - 69 * + 52 THEN + COALESCE ( 41, - 31 ) * - 61 ELSE ( + 77 ) END + - 81 ) + - 94 AS col2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5674
SELECT ALL + 68 * - COUNT( * ) * - COUNT( * )
----
68

skipif mysql # not compatible
query I rowsort label-5674
SELECT ALL + 68 * - COUNT ( * ) * - COUNT ( * )
----
68

query I rowsort
SELECT DISTINCT - 13 + + 28
----
15

query I rowsort
SELECT ALL - ( ( + NULLIF ( - 0, NULLIF ( 23, - 6 ) ) ) )
----
0

query I rowsort
SELECT DISTINCT - NULLIF ( 99, - ( - 22 ) )
----
-99

query I rowsort
SELECT 61 - + + 10 * - + 58 AS col2
----
641

onlyif mysql # aggregate syntax: 
query I rowsort label-5679
SELECT 64 * - COUNT( DISTINCT + 38 ) AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-5679
SELECT 64 * - COUNT ( DISTINCT + 38 ) AS col2
----
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5680
SELECT COUNT( * ) DIV + 74 * + - 42 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5680
SELECT COUNT ( * ) / + 74 * + - 42 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5681
SELECT ALL + COUNT( * ) DIV + + 80 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5681
SELECT ALL + COUNT ( * ) / + + 80 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5682
SELECT 16 * + 9 AS col1, - COUNT( * ) DIV + 63
----
144
0

skipif mysql # not compatible
query II rowsort label-5682
SELECT 16 * + 9 AS col1, - COUNT ( * ) / + 63
----
144
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5683
SELECT ALL - CAST( + + 9 AS SIGNED ) col0
----
-9

skipif mysql # not compatible
query I rowsort label-5683
SELECT ALL - CAST ( + + 9 AS INTEGER ) col0
----
-9

query I rowsort
SELECT DISTINCT - 78 - + - 1 AS col0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-5685
SELECT ALL COUNT( * ) * 60 * - 13 AS col1
----
-780

skipif mysql # not compatible
query I rowsort label-5685
SELECT ALL COUNT ( * ) * 60 * - 13 AS col1
----
-780

query I rowsort
SELECT 6 - + + 38
----
-32

query I rowsort
SELECT ALL - ( 53 ) col1
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-5688
SELECT ALL - ( - COUNT( * ) ) * + 6 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-5688
SELECT ALL - ( - COUNT ( * ) ) * + 6 AS col0
----
6

query I rowsort
SELECT ALL + - 84 * 68 - + - 17
----
-5695

onlyif mysql # DIV for integer division: 
query I rowsort label-5690
SELECT - ( - + 15 ) DIV + 15
----
1

skipif mysql # not compatible
query I rowsort label-5690
SELECT - ( - + 15 ) / + 15
----
1

query I rowsort
SELECT 35 + - 32 + - 36 + 84 * + 16 AS col0
----
1311

onlyif mysql # DIV for integer division: 
query II rowsort label-5692
SELECT - ( + 58 ) + - 90 + 42 * - + 76 * 15 * 49 AS col1, 55 DIV - 97
----
-2346268
0

skipif mysql # not compatible
query II rowsort label-5692
SELECT - ( + 58 ) + - 90 + 42 * - + 76 * 15 * 49 AS col1, 55 / - 97
----
-2346268
0

query I rowsort
SELECT + 45 * - 83 * 26 + + 60 + 63
----
-96987

query I rowsort
SELECT 55 * 99
----
5445

query I rowsort
SELECT ALL ( - + 72 ) col0
----
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-5696
SELECT ALL + 84 DIV - 35 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-5696
SELECT ALL + 84 / - 35 AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5697
SELECT DISTINCT - COUNT( * ) + - + 27
----
-28

skipif mysql # not compatible
query I rowsort label-5697
SELECT DISTINCT - COUNT ( * ) + - + 27
----
-28

query I rowsort
SELECT ALL 68 + - 12 AS col1
----
56

query I rowsort
SELECT + + 1 + + - 3 * - + 95 AS col0
----
286

onlyif mysql # aggregate syntax: 
query I rowsort label-5700
SELECT COUNT( * ) * - 51 + + + 98 AS col1
----
47

skipif mysql # not compatible
query I rowsort label-5700
SELECT COUNT ( * ) * - 51 + + + 98 AS col1
----
47

query I rowsort
SELECT DISTINCT 87 * - - 8
----
696

query I rowsort
SELECT ALL 99 * + + 12 + + - ( - + 79 ) AS col0
----
1267

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5703
SELECT CASE + 26 WHEN COUNT( * ) THEN NULL WHEN - 37 + + 85 THEN 20 + - + 53 * - MAX( + ( + CASE + - 82 WHEN + - 51 * - 53 THEN - 91 ELSE NULL END ) ) * - - NULLIF ( COUNT( * ), COUNT( * ) * - 59 ) + CAST( NULL AS SIGNED ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5703
SELECT CASE + 26 WHEN COUNT ( * ) THEN NULL WHEN - 37 + + 85 THEN 20 + - + 53 * - MAX ( + ( + CASE + - 82 WHEN + - 51 * - 53 THEN - 91 ELSE NULL END ) ) * - - NULLIF ( COUNT ( * ), COUNT ( * ) * - 59 ) + CAST ( NULL AS INTEGER ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5704
SELECT + COUNT( * ) - + 99 + - 27 + - + CASE 23 WHEN 61 THEN NULL ELSE 80 END
----
-205

skipif mysql # not compatible
query I rowsort label-5704
SELECT + COUNT ( * ) - + 99 + - 27 + - + CASE 23 WHEN 61 THEN NULL ELSE 80 END
----
-205

query I rowsort
SELECT DISTINCT 51 * + - 39
----
-1989

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5706
SELECT + 68 + - CAST( NULL AS DECIMAL ) * - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5706
SELECT + 68 + - CAST ( NULL AS REAL ) * - COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT 28 * - - 82 - - 11 AS col2
----
2307

query I rowsort
SELECT - 33 * - 42 AS col1
----
1386

onlyif mysql # DIV for integer division: 
query I rowsort label-5709
SELECT ALL + 37 DIV + + 33
----
1

skipif mysql # not compatible
query I rowsort label-5709
SELECT ALL + 37 / + + 33
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5710
SELECT + 67 * + 34 + - 92 * - 14 * 25 / - + 8 + + CASE - + ( - 94 ) WHEN 59 THEN 37 + 27 END * - - ( 37 ) + + COALESCE ( - 47, - COUNT( * ) ) + - 0 / - + 2 * + 55 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5710
SELECT + 67 * + 34 + - 92 * - 14 * 25 / - + 8 + + CASE - + ( - 94 ) WHEN 59 THEN 37 + 27 END * - - ( 37 ) + + COALESCE ( - 47, - COUNT ( * ) ) + - 0 / - + 2 * + 55 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5711
SELECT - 50 - - - 95 * - COUNT( * ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-5711
SELECT - 50 - - - 95 * - COUNT ( * ) AS col2
----
45

query II rowsort
SELECT ALL + 61, 88 col0
----
61
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5713
SELECT DISTINCT + ( - NULLIF ( + + COALESCE ( + 63, MAX( ALL 82 ) ), + + 99 * - ( + - 87 ) * + 3 * + 54 + 77 * + 96 + - 88 * - 44 ) ) * 38 DIV - 79 AS col0
----
30

skipif mysql # not compatible
query I rowsort label-5713
SELECT DISTINCT + ( - NULLIF ( + + COALESCE ( + 63, MAX ( ALL 82 ) ), + + 99 * - ( + - 87 ) * + 3 * + 54 + 77 * + 96 + - 88 * - 44 ) ) * 38 / - 79 AS col0
----
30

query I rowsort
SELECT - 15 + 81
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5715
SELECT DISTINCT + CAST( + 30 AS SIGNED )
----
30

skipif mysql # not compatible
query I rowsort label-5715
SELECT DISTINCT + CAST ( + 30 AS INTEGER )
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5716
SELECT ALL - CASE + 96 WHEN CAST( 6 AS SIGNED ) THEN - - 17 WHEN + 85 * + + NULLIF ( 4, + 41 ) + - 33 + - 90 THEN NULL WHEN + MAX( DISTINCT 1 ) * COUNT( * ) + - 39 THEN - + 33 ELSE NULL END * - 76 + + + COUNT( * ) * + - 37
----
NULL

skipif mysql # not compatible
query I rowsort label-5716
SELECT ALL - CASE + 96 WHEN CAST ( 6 AS INTEGER ) THEN - - 17 WHEN + 85 * + + NULLIF ( 4, + 41 ) + - 33 + - 90 THEN NULL WHEN + MAX ( DISTINCT 1 ) * COUNT ( * ) + - 39 THEN - + 33 ELSE NULL END * - 76 + + + COUNT ( * ) * + - 37
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5717
SELECT COUNT( * ) * - 88 + + COUNT( * ) AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-5717
SELECT COUNT ( * ) * - 88 + + COUNT ( * ) AS col2
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5718
SELECT - - 18 / - CAST( NULL AS SIGNED ) * - 35
----
NULL

skipif mysql # not compatible
query I rowsort label-5718
SELECT - - 18 / - CAST ( NULL AS INTEGER ) * - 35
----
NULL

query I rowsort
SELECT - + ( - + 6 )
----
6

query I rowsort
SELECT - - 32 + - 37
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5721
SELECT - - 74 * + - CASE + 71 WHEN ( COALESCE ( + 57, 32 / + 71, ( 78 ) * 54 + + CAST( NULL AS SIGNED ) + + 9, - 33 * 73 * - COUNT( * ) - + 44 * + + 8 + 62 ) ) * - COUNT( * ) THEN NULL WHEN 53 + 44 THEN + 37 + 19 WHEN 8 THEN NULL END + 67 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5721
SELECT - - 74 * + - CASE + 71 WHEN ( COALESCE ( + 57, 32 / + 71, ( 78 ) * 54 + + CAST ( NULL AS INTEGER ) + + 9, - 33 * 73 * - COUNT ( * ) - + 44 * + + 8 + 62 ) ) * - COUNT ( * ) THEN NULL WHEN 53 + 44 THEN + 37 + 19 WHEN 8 THEN NULL END + 67 col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5722
SELECT - - CAST( + ( COUNT( * ) ) AS SIGNED ) + + 76
----
77

skipif mysql # not compatible
query I rowsort label-5722
SELECT - - CAST ( + ( COUNT ( * ) ) AS INTEGER ) + + 76
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5723
SELECT - + SUM( DISTINCT 56 ) * - CASE 52 WHEN - COUNT( * ) * 95 + + 59 + - - AVG ( DISTINCT 59 ) * + 47 / - COALESCE ( + 83, 51 + + MIN( 3 ), AVG ( 59 ) + - AVG ( ALL - 81 ) + + 17 ) + + 54 * 64 THEN - 90 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5723
SELECT - + SUM ( DISTINCT 56 ) * - CASE 52 WHEN - COUNT ( * ) * 95 + + 59 + - - AVG ( DISTINCT 59 ) * + 47 / - COALESCE ( + 83, 51 + + MIN ( 3 ), AVG ( 59 ) + - AVG ( ALL - 81 ) + + 17 ) + + 54 * 64 THEN - 90 END col2
----
NULL

query I rowsort
SELECT DISTINCT - 86 + + 84
----
-2

query I rowsort
SELECT ALL + 27 + - + 78
----
-51

query I rowsort
SELECT ALL - - 77 + - 65
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-5727
SELECT ALL + + CASE 54 WHEN - CASE - COUNT( + 5 ) WHEN - 50 THEN 98 * - - COUNT( * ) END * 30 / + COUNT( * ) THEN NULL WHEN - 8 THEN - ( - 19 ) + + 68 + 66 END * + 76 + - - COUNT( * ) - - 2 * - - 44 * - AVG ( - ( + 87 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5727
SELECT ALL + + CASE 54 WHEN - CASE - COUNT ( + 5 ) WHEN - 50 THEN 98 * - - COUNT ( * ) END * 30 / + COUNT ( * ) THEN NULL WHEN - 8 THEN - ( - 19 ) + + 68 + 66 END * + 76 + - - COUNT ( * ) - - 2 * - - 44 * - AVG ( - ( + 87 ) )
----
NULL

query I rowsort
SELECT DISTINCT + 3 + - 39
----
-36

query I rowsort
SELECT - + 98 - - 69 + 53 * - - ( + + ( - ( - 73 ) ) ) col2
----
3840

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5730
SELECT ALL SUM( DISTINCT - - COALESCE ( - 24, + CAST( NULL AS DECIMAL ) ) ) + + 37 + - CASE 28 WHEN NULLIF ( - ( - + 56 ), - 95 ) + + 98 THEN - 77 END * - - CAST( - AVG ( + 14 ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5730
SELECT ALL SUM ( DISTINCT - - COALESCE ( - 24, + CAST ( NULL AS REAL ) ) ) + + 37 + - CASE 28 WHEN NULLIF ( - ( - + 56 ), - 95 ) + + 98 THEN - 77 END * - - CAST ( - AVG ( + 14 ) AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5731
SELECT ALL COUNT( * ) + 67 * + 77 + + 9
----
5169

skipif mysql # not compatible
query I rowsort label-5731
SELECT ALL COUNT ( * ) + 67 * + 77 + + 9
----
5169

query I rowsort
SELECT - 11 * NULLIF ( + 72, + 42 )
----
-792

query I rowsort
SELECT DISTINCT + 13 + - - ( + 68 ) AS col0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5734
SELECT CAST( - 77 AS SIGNED ) AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-5734
SELECT CAST ( - 77 AS INTEGER ) AS col2
----
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-5735
SELECT ALL 64 DIV - + 47 - - 29 AS col2
----
28

skipif mysql # not compatible
query I rowsort label-5735
SELECT ALL 64 / - + 47 - - 29 AS col2
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5736
SELECT CAST( + 31 AS SIGNED )
----
31

skipif mysql # not compatible
query I rowsort label-5736
SELECT CAST ( + 31 AS INTEGER )
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5737
SELECT - 93 DIV + + COUNT( * )
----
-93

skipif mysql # not compatible
query I rowsort label-5737
SELECT - 93 / + + COUNT ( * )
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-5738
SELECT + SUM( ALL + 3 ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-5738
SELECT + SUM ( ALL + 3 ) AS col1
----
3

query I rowsort
SELECT + ( + - NULLIF ( + 0, + + 16 / - 11 ) )
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-5740
SELECT ALL + 35 col2, - 20 DIV - + 15
----
35
1

skipif mysql # not compatible
query II rowsort label-5740
SELECT ALL + 35 col2, - 20 / - + 15
----
35
1

query I rowsort
SELECT + CASE + + 90 WHEN + 34 THEN - 75 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT + 33 * - ( - 0 ) AS col2
----
0

query I rowsort
SELECT ALL 39 * + 88 AS col0
----
3432

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5744
SELECT CAST( + 37 AS SIGNED ), + 85 + 58 + 36 AS col0
----
37
179

skipif mysql # not compatible
query II rowsort label-5744
SELECT CAST ( + 37 AS INTEGER ), + 85 + 58 + 36 AS col0
----
37
179

query I rowsort
SELECT 32 * + 40 + + 50 * + 54 AS col0
----
3980

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5746
SELECT DISTINCT + 22 AS col2, COUNT( - CAST( NULL AS SIGNED ) ) col0
----
22
0

skipif mysql # not compatible
query II rowsort label-5746
SELECT DISTINCT + 22 AS col2, COUNT ( - CAST ( NULL AS INTEGER ) ) col0
----
22
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5747
SELECT ALL NULLIF ( - 9, + COALESCE ( + 40, 8 - + - COUNT( * ) * - - 88 / + - MAX( 20 ) * - 23 ) ) * + - 65
----
585

skipif mysql # not compatible
query I rowsort label-5747
SELECT ALL NULLIF ( - 9, + COALESCE ( + 40, 8 - + - COUNT ( * ) * - - 88 / + - MAX ( 20 ) * - 23 ) ) * + - 65
----
585

query I rowsort
SELECT DISTINCT 44 * + 92 * 54
----
218592

onlyif mysql # aggregate syntax: 
query I rowsort label-5749
SELECT DISTINCT + MIN( + 96 ) col2
----
96

skipif mysql # not compatible
query I rowsort label-5749
SELECT DISTINCT + MIN ( + 96 ) col2
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5750
SELECT + CAST( - + AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5750
SELECT + CAST ( - + AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS INTEGER )
----
NULL

query II rowsort
SELECT ALL + 51 AS col0, + 28 AS col0
----
51
28

query II rowsort
SELECT DISTINCT + 54 AS col1, 4 * - 33 + + - 69 col0
----
54
-201

onlyif mysql # aggregate syntax: 
query II rowsort label-5753
SELECT ( + - COUNT( * ) ), + COUNT( * ) AS col1
----
-1
1

skipif mysql # not compatible
query II rowsort label-5753
SELECT ( + - COUNT ( * ) ), + COUNT ( * ) AS col1
----
-1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5754
SELECT + CASE 38 WHEN - - 52 THEN MIN( DISTINCT + 3 ) WHEN + 37 THEN NULL WHEN - + 89 THEN NULL END - + - ( - + COUNT( * ) ) + + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-5754
SELECT + CASE 38 WHEN - - 52 THEN MIN ( DISTINCT + 3 ) WHEN + 37 THEN NULL WHEN - + 89 THEN NULL END - + - ( - + COUNT ( * ) ) + + 6
----
NULL

query I rowsort
SELECT ( + - 50 ) AS col2
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5756
SELECT ALL - 85 * CAST( NULL AS SIGNED ) + - 43 + - 62 * - - COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5756
SELECT ALL - 85 * CAST ( NULL AS INTEGER ) + - 43 + - 62 * - - COUNT ( * ) col1
----
NULL

query I rowsort
SELECT ( - 50 ) * - - 95 - 23 * - 79
----
-2933

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5758
SELECT DISTINCT COUNT( DISTINCT CAST( NULL AS DECIMAL ) ) + + - ( + - 69 ) * 95
----
6555

skipif mysql # not compatible
query I rowsort label-5758
SELECT DISTINCT COUNT ( DISTINCT CAST ( NULL AS REAL ) ) + + - ( + - 69 ) * 95
----
6555

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5759
SELECT ALL - + 16 + - 30 DIV + COUNT( DISTINCT + - 1 )
----
-46

skipif mysql # not compatible
query I rowsort label-5759
SELECT ALL - + 16 + - 30 / + COUNT ( DISTINCT + - 1 )
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5760
SELECT DISTINCT - CAST( - ( 73 ) AS SIGNED )
----
73

skipif mysql # not compatible
query I rowsort label-5760
SELECT DISTINCT - CAST ( - ( 73 ) AS INTEGER )
----
73

query I rowsort
SELECT DISTINCT 28 * + - 89 * + - 14
----
34888

query I rowsort
SELECT ALL - - 49 + + 81 * + 49
----
4018

query I rowsort
SELECT + 90 * - 15 AS col2
----
-1350

query I rowsort
SELECT DISTINCT ( + ( - ( + 57 ) ) )
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-5765
SELECT COUNT( * ) + + - 74 + + - COUNT( * ) AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-5765
SELECT COUNT ( * ) + + - 74 + + - COUNT ( * ) AS col0
----
-74

query I rowsort
SELECT DISTINCT + CASE 35 WHEN + 68 THEN 72 WHEN - COALESCE ( - 6, 4 ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5767
SELECT ALL COUNT( + + 0 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5767
SELECT ALL COUNT ( + + 0 ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5768
SELECT ALL ( - + 21 ), 76 + - 3 + + CASE - - CAST( NULL AS DECIMAL ) WHEN - 8 THEN NULL WHEN + AVG ( 17 ) THEN 17 * - COUNT( * ) + + 38 END col1
----
-21
NULL

skipif mysql # not compatible
query II rowsort label-5768
SELECT ALL ( - + 21 ), 76 + - 3 + + CASE - - CAST ( NULL AS REAL ) WHEN - 8 THEN NULL WHEN + AVG ( 17 ) THEN 17 * - COUNT ( * ) + + 38 END col1
----
-21
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5769
SELECT DISTINCT - 27 - 39 * - - ( CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5769
SELECT DISTINCT - 27 - 39 * - - ( CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5770
SELECT 84 + + MAX( - ( + - 38 ) )
----
122

skipif mysql # not compatible
query I rowsort label-5770
SELECT 84 + + MAX ( - ( + - 38 ) )
----
122

onlyif mysql # aggregate syntax: 
query II rowsort label-5771
SELECT DISTINCT - 54 * - COUNT( * ) col0, 94 * 6
----
54
564

skipif mysql # not compatible
query II rowsort label-5771
SELECT DISTINCT - 54 * - COUNT ( * ) col0, 94 * 6
----
54
564

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5772
SELECT 61 + - 46 * + - COUNT( * ), - 43 DIV - - 20 AS col1
----
107
-2

skipif mysql # not compatible
query II rowsort label-5772
SELECT 61 + - 46 * + - COUNT ( * ), - 43 / - - 20 AS col1
----
107
-2

query I rowsort
SELECT 65 * - NULLIF ( + - 50, + - 34 )
----
3250

query I rowsort
SELECT 0 * + + 96 col2
----
0

query I rowsort
SELECT 71 + 31
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-5776
SELECT + 22 * + COUNT( * ) * 18 + + 80 AS col0
----
476

skipif mysql # not compatible
query I rowsort label-5776
SELECT + 22 * + COUNT ( * ) * 18 + + 80 AS col0
----
476

query II rowsort
SELECT ALL - ( + + 52 ) AS col0, + 29
----
-52
29

query I rowsort
SELECT DISTINCT - COALESCE ( - 11, - - 17 * - 34 ) AS col0
----
11

query II rowsort
SELECT ALL - 37 * - 16 AS col1, - 68 * - 50
----
592
3400

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5780
SELECT SUM( DISTINCT - ( + 73 ) ) DIV ( - 29 ) - + 15 + - 32 AS col2, 2 AS col2
----
-45
2

skipif mysql # not compatible
query II rowsort label-5780
SELECT SUM ( DISTINCT - ( + 73 ) ) / ( - 29 ) - + 15 + - 32 AS col2, 2 AS col2
----
-45
2

onlyif mysql # aggregate syntax: 
query II rowsort label-5781
SELECT COUNT( * ) + - 61, - COUNT( * ) AS col2
----
-60
-1

skipif mysql # not compatible
query II rowsort label-5781
SELECT COUNT ( * ) + - 61, - COUNT ( * ) AS col2
----
-60
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5782
SELECT ALL 86 DIV + + COALESCE ( + + 82, - 47 + - 47 + 1 * - + 72 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5782
SELECT ALL 86 / + + COALESCE ( + + 82, - 47 + - 47 + 1 * - + 72 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5783
SELECT 38 * + COALESCE ( - COUNT( * ), 86 ) * - - 75 + 61 * MIN( 66 ) - 27 + 22, - 70 * + 11 AS col2
----
1171
-770

skipif mysql # not compatible
query II rowsort label-5783
SELECT 38 * + COALESCE ( - COUNT ( * ), 86 ) * - - 75 + 61 * MIN ( 66 ) - 27 + 22, - 70 * + 11 AS col2
----
1171
-770

onlyif mysql # aggregate syntax: 
query I rowsort label-5784
SELECT ALL - COUNT( - + 14 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5784
SELECT ALL - COUNT ( - + 14 ) AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5785
SELECT ALL - CAST( - + AVG ( 33 ) AS SIGNED )
----
33

skipif mysql # not compatible
query I rowsort label-5785
SELECT ALL - CAST ( - + AVG ( 33 ) AS INTEGER )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-5786
SELECT SUM( + + 81 ) + - SUM( 97 )
----
-16

skipif mysql # not compatible
query I rowsort label-5786
SELECT SUM ( + + 81 ) + - SUM ( 97 )
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5787
SELECT 2 / - 7 - + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5787
SELECT 2 / - 7 - + CAST ( NULL AS INTEGER ) col2
----
NULL

query II rowsort
SELECT 30 + - 19, 13 col2
----
11
13

onlyif mysql # aggregate syntax: 
query I rowsort label-5789
SELECT ALL + CASE - 66 WHEN - 87 THEN NULL WHEN + ( + 77 ) THEN - + NULLIF ( + - 34, - 20 + - + 65 ) WHEN - COUNT( * ) * 17 * + + 53 THEN NULL ELSE NULL END + ( 47 ) * - 47 * + + 10 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5789
SELECT ALL + CASE - 66 WHEN - 87 THEN NULL WHEN + ( + 77 ) THEN - + NULLIF ( + - 34, - 20 + - + 65 ) WHEN - COUNT ( * ) * 17 * + + 53 THEN NULL ELSE NULL END + ( 47 ) * - 47 * + + 10 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5790
SELECT ALL + COUNT( - + 86 ) + - - 80 * CASE 89 WHEN - + ( + - 43 ) THEN + NULLIF ( - 17, CAST( + + ( + - NULLIF ( - COUNT( * ), 81 + - COUNT( DISTINCT - 30 ) + + - CAST( - 89 AS SIGNED ) + - + 31 * + 93 * NULLIF ( + 57, COUNT( * ) ) * 11 + + 17 ) ) AS SIGNED ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5790
SELECT ALL + COUNT ( - + 86 ) + - - 80 * CASE 89 WHEN - + ( + - 43 ) THEN + NULLIF ( - 17, CAST ( + + ( + - NULLIF ( - COUNT ( * ), 81 + - COUNT ( DISTINCT - 30 ) + + - CAST ( - 89 AS INTEGER ) + - + 31 * + 93 * NULLIF ( + 57, COUNT ( * ) ) * 11 + + 17 ) ) AS INTEGER ) ) END
----
NULL

query II rowsort
SELECT ALL - 97 + 65 AS col0, - 45 AS col1
----
-32
-45

query I rowsort
SELECT ALL - 86 + - 88
----
-174

onlyif mysql # aggregate syntax: 
query I rowsort label-5793
SELECT - 6 * - - COUNT( * ) + - 19 + - 10 + - + 8
----
-43

skipif mysql # not compatible
query I rowsort label-5793
SELECT - 6 * - - COUNT ( * ) + - 19 + - 10 + - + 8
----
-43

query I rowsort
SELECT 89 * - 51 * 84 + - 50 + + 81 * - 73 * + - 63
----
-8807

query I rowsort
SELECT - NULLIF ( + 97, + ( - 40 ) ) AS col0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5796
SELECT ALL COUNT( * ) + + 0
----
1

skipif mysql # not compatible
query I rowsort label-5796
SELECT ALL COUNT ( * ) + + 0
----
1

query I rowsort
SELECT DISTINCT + 78 + - 36 AS col0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5798
SELECT ALL 57 * 76 * - NULLIF ( + COUNT( * ), 84 * - 26 * - 52 ) * MAX( - - ( CASE - 85 WHEN - - 33 + 49 + - 91 THEN NULL WHEN - 21 THEN NULL WHEN ( 91 ) THEN ( + + 82 ) * + 82 END ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5798
SELECT ALL 57 * 76 * - NULLIF ( + COUNT ( * ), 84 * - 26 * - 52 ) * MAX ( - - ( CASE - 85 WHEN - - 33 + 49 + - 91 THEN NULL WHEN - 21 THEN NULL WHEN ( 91 ) THEN ( + + 82 ) * + 82 END ) )
----
NULL

query I rowsort
SELECT ALL COALESCE ( - 33, - 54 )
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5800
SELECT DISTINCT - - 47 * - 36 * CAST( NULL AS SIGNED ) + - + 67
----
NULL

skipif mysql # not compatible
query I rowsort label-5800
SELECT DISTINCT - - 47 * - 36 * CAST ( NULL AS INTEGER ) + - + 67
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5801
SELECT ALL ( - MIN( - 26 ) ), + 12 AS col1
----
26
12

skipif mysql # not compatible
query II rowsort label-5801
SELECT ALL ( - MIN ( - 26 ) ), + 12 AS col1
----
26
12

onlyif mysql # aggregate syntax: 
query I rowsort label-5802
SELECT ALL - 84 * + 86 / - - ( CASE 57 WHEN + + 60 THEN - + CASE + - 93 WHEN + 80 THEN NULL ELSE + ( ( COUNT( * ) ) ) * MAX( ALL - 66 ) + + 54 * 40 * 89 * - 30 - - + 79 + - 96 * - 62 END WHEN 45 THEN NULL END ) / + ( + 43 ) + + 7 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5802
SELECT ALL - 84 * + 86 / - - ( CASE 57 WHEN + + 60 THEN - + CASE + - 93 WHEN + 80 THEN NULL ELSE + ( ( COUNT ( * ) ) ) * MAX ( ALL - 66 ) + + 54 * 40 * 89 * - 30 - - + 79 + - 96 * - 62 END WHEN 45 THEN NULL END ) / + ( + 43 ) + + 7 AS col1
----
NULL

query I rowsort
SELECT - 63 + + - 70 * 6 * - 20 AS col1
----
8337

onlyif mysql # aggregate syntax: 
query I rowsort label-5804
SELECT ALL 87 * - COUNT( * ) * - 63 AS col1
----
5481

skipif mysql # not compatible
query I rowsort label-5804
SELECT ALL 87 * - COUNT ( * ) * - 63 AS col1
----
5481

query I rowsort
SELECT 0 * - 31 AS col1
----
0

query I rowsort
SELECT 74 - 10
----
64

query I rowsort
SELECT 10 * 57
----
570

query II rowsort
SELECT 95, 13 AS col1
----
95
13

onlyif mysql # DIV for integer division: 
query I rowsort label-5809
SELECT 90 DIV + 12
----
7

skipif mysql # not compatible
query I rowsort label-5809
SELECT 90 / + 12
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-5810
SELECT DISTINCT 17, - COUNT( * ) * + - 64 * ( 31 ) AS col1
----
17
1984

skipif mysql # not compatible
query II rowsort label-5810
SELECT DISTINCT 17, - COUNT ( * ) * + - 64 * ( 31 ) AS col1
----
17
1984

onlyif mysql # aggregate syntax: 
query II rowsort label-5811
SELECT DISTINCT 71, COUNT( DISTINCT + - 2 ) AS col0
----
71
1

skipif mysql # not compatible
query II rowsort label-5811
SELECT DISTINCT 71, COUNT ( DISTINCT + - 2 ) AS col0
----
71
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5812
SELECT DISTINCT SUM( DISTINCT + 66 )
----
66

skipif mysql # not compatible
query I rowsort label-5812
SELECT DISTINCT SUM ( DISTINCT + 66 )
----
66

query II rowsort
SELECT 19 AS col0, 82
----
19
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5814
SELECT DISTINCT - CAST( + 63 AS SIGNED )
----
-63

skipif mysql # not compatible
query I rowsort label-5814
SELECT DISTINCT - CAST ( + 63 AS INTEGER )
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-5815
SELECT SUM( DISTINCT + 61 ) * + - 76 + + + 1
----
-4635

skipif mysql # not compatible
query I rowsort label-5815
SELECT SUM ( DISTINCT + 61 ) * + - 76 + + + 1
----
-4635

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5816
SELECT ALL + 88 * + COUNT( * ) + + 17 + - + 19 * - 0 DIV + 82 - + + 17 * + 59, 0 AS col1
----
-898
0

skipif mysql # not compatible
query II rowsort label-5816
SELECT ALL + 88 * + COUNT ( * ) + + 17 + - + 19 * - 0 / + 82 - + + 17 * + 59, 0 AS col1
----
-898
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5817
SELECT + 32 col1, - 17 * + + NULLIF ( + ( - 27 ), - CASE - - 98 WHEN + + CASE NULLIF ( + COUNT( * ), + + 65 ) WHEN - + 29 / - - 92 * CASE + 17 WHEN - MAX( + 73 ) THEN - - 34 * + 11 * NULLIF ( MAX( ALL - ( - - 93 ) ), 53 + - 70 * + 26 ) END - 38 THEN 15 ELSE MIN( - 2 ) END * 44 + + 14 THEN 86 ELSE 57 END - - COALESCE ( 8, 49 / 73 + - 70 ) * + COUNT( * ) ) AS col0
----
32
459

skipif mysql # not compatible
query II rowsort label-5817
SELECT + 32 col1, - 17 * + + NULLIF ( + ( - 27 ), - CASE - - 98 WHEN + + CASE NULLIF ( + COUNT ( * ), + + 65 ) WHEN - + 29 / - - 92 * CASE + 17 WHEN - MAX ( + 73 ) THEN - - 34 * + 11 * NULLIF ( MAX ( ALL - ( - - 93 ) ), 53 + - 70 * + 26 ) END - 38 THEN 15 ELSE MIN ( - 2 ) END * 44 + + 14 THEN 86 ELSE 57 END - - COALESCE ( 8, 49 / 73 + - 70 ) * + COUNT ( * ) ) AS col0
----
32
459

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5818
SELECT DISTINCT - CAST( - 31 AS SIGNED ) col0
----
31

skipif mysql # not compatible
query I rowsort label-5818
SELECT DISTINCT - CAST ( - 31 AS INTEGER ) col0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5819
SELECT ALL - NULLIF ( - CASE + 4 WHEN + 43 * - COUNT( * ) THEN + 52 WHEN 32 THEN - 23 - + 69 * - COUNT( + 6 ) END, ( 81 ) ) * 52 + - + 38 / AVG ( - 64 ) * COUNT( * ) + 28
----
NULL

skipif mysql # not compatible
query I rowsort label-5819
SELECT ALL - NULLIF ( - CASE + 4 WHEN + 43 * - COUNT ( * ) THEN + 52 WHEN 32 THEN - 23 - + 69 * - COUNT ( + 6 ) END, ( 81 ) ) * 52 + - + 38 / AVG ( - 64 ) * COUNT ( * ) + 28
----
NULL

query I rowsort
SELECT DISTINCT + 27 * - 60 + + 8 + + - 8 col0
----
-1620

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5821
SELECT DISTINCT + - 87 * 55 DIV 80 + + - 1 + - + 85 * SUM( 80 )
----
-6860

skipif mysql # not compatible
query I rowsort label-5821
SELECT DISTINCT + - 87 * 55 / 80 + + - 1 + - + 85 * SUM ( 80 )
----
-6860

query I rowsort
SELECT - - 95 * - 30
----
-2850

onlyif mysql # aggregate syntax: 
query I rowsort label-5823
SELECT ALL - + 22 * - ( + 36 ) * - 61 * 63 + - ( - - 15 ) + - - 27 * + COUNT( * ) * 11 AS col2
----
-3043374

skipif mysql # not compatible
query I rowsort label-5823
SELECT ALL - + 22 * - ( + 36 ) * - 61 * 63 + - ( - - 15 ) + - - 27 * + COUNT ( * ) * 11 AS col2
----
-3043374

onlyif mysql # aggregate syntax: 
query I rowsort label-5824
SELECT ALL + COALESCE ( - 69, ( + + 52 ) + - COUNT( * ) * - 47 )
----
-69

skipif mysql # not compatible
query I rowsort label-5824
SELECT ALL + COALESCE ( - 69, ( + + 52 ) + - COUNT ( * ) * - 47 )
----
-69

query I rowsort
SELECT DISTINCT + ( 33 ) * - 59 + + - ( - - 41 )
----
-1988

query I rowsort
SELECT ( 94 ) AS col1
----
94

query II rowsort
SELECT + 23, NULLIF ( - 83, - + 24 ) * 8 AS col2
----
23
-664

query I rowsort
SELECT + 45 * + 95 AS col1
----
4275

onlyif mysql # aggregate syntax: 
query II rowsort label-5829
SELECT + 84, MAX( ALL - 51 ) + - - 46 col2
----
84
-5

skipif mysql # not compatible
query II rowsort label-5829
SELECT + 84, MAX ( ALL - 51 ) + - - 46 col2
----
84
-5

query I rowsort
SELECT ALL + - ( + 32 ) AS col2
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-5831
SELECT 60 * + + 20 + - 47 * + - SUM( DISTINCT 25 ) AS col2
----
2375

skipif mysql # not compatible
query I rowsort label-5831
SELECT 60 * + + 20 + - 47 * + - SUM ( DISTINCT 25 ) AS col2
----
2375

onlyif mysql # aggregate syntax: 
query I rowsort label-5832
SELECT - COUNT( * ) + 98 * 42
----
4115

skipif mysql # not compatible
query I rowsort label-5832
SELECT - COUNT ( * ) + 98 * 42
----
4115

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5833
SELECT DISTINCT + NULLIF ( + + 43, + 32 * COUNT( * ) DIV 24 ) - - - 34 + + + MIN( ALL + - 32 ) * 0 DIV 9
----
9

skipif mysql # not compatible
query I rowsort label-5833
SELECT DISTINCT + NULLIF ( + + 43, + 32 * COUNT ( * ) / 24 ) - - - 34 + + + MIN ( ALL + - 32 ) * 0 / 9
----
9

query II rowsort
SELECT ALL 63, 90 + - 78 AS col1
----
63
12

query I rowsort
SELECT ALL + ( + 25 )
----
25

query I rowsort
SELECT DISTINCT - 55 * 7 AS col2
----
-385

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5837
SELECT - 91 * - CAST( + - 61 AS SIGNED ) + - ( 31 ) * + - 53 - + - 95
----
-3813

skipif mysql # not compatible
query I rowsort label-5837
SELECT - 91 * - CAST ( + - 61 AS INTEGER ) + - ( 31 ) * + - 53 - + - 95
----
-3813

onlyif mysql # aggregate syntax: 
query I rowsort label-5838
SELECT + COUNT( * ) + + + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-5838
SELECT + COUNT ( * ) + + + COUNT ( * )
----
2

query II rowsort
SELECT + COALESCE ( + 45, - ( - ( NULLIF ( 90, - - 9 + + 15 ) ) ) ) * + - 76 AS col2, - 75 AS col0
----
-3420
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-5840
SELECT - 52 * 12 DIV - 17 AS col0
----
36

skipif mysql # not compatible
query I rowsort label-5840
SELECT - 52 * 12 / - 17 AS col0
----
36

query I rowsort
SELECT ALL + 74 + 52 AS col1
----
126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5842
SELECT + 16 * 42 * + - CASE + CASE + - 68 WHEN + MAX( DISTINCT + 84 ) THEN NULL WHEN - ( - COUNT( * ) ) + + 48 * - + 44 THEN 82 WHEN 25 * - 0 + - 46 THEN 0 WHEN + + 67 THEN 41 * - + 46 - - 5 DIV 12 END WHEN + CAST( + 16 AS SIGNED ) THEN NULL WHEN + 12 THEN - 32 DIV COUNT( * ) ELSE - 1 END AS col2
----
672

skipif mysql # not compatible
query I rowsort label-5842
SELECT + 16 * 42 * + - CASE + CASE + - 68 WHEN + MAX ( DISTINCT + 84 ) THEN NULL WHEN - ( - COUNT ( * ) ) + + 48 * - + 44 THEN 82 WHEN 25 * - 0 + - 46 THEN 0 WHEN + + 67 THEN 41 * - + 46 - - 5 / 12 END WHEN + CAST ( + 16 AS INTEGER ) THEN NULL WHEN + 12 THEN - 32 / COUNT ( * ) ELSE - 1 END AS col2
----
672

onlyif mysql # aggregate syntax: 
query I rowsort label-5843
SELECT DISTINCT 22 * + SUM( ALL 65 ) AS col0
----
1430

skipif mysql # not compatible
query I rowsort label-5843
SELECT DISTINCT 22 * + SUM ( ALL 65 ) AS col0
----
1430

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5844
SELECT DISTINCT COUNT( * ) + + COALESCE ( 96, - 6 + COALESCE ( COUNT( * ), + MAX( 20 ) - - - 95 + - + 91, + ( 25 ) * - 35 ) - - CASE 8 WHEN + - 65 * ( - 74 ) THEN + + 95 * - 96 * + + 56 + + 87 - - 68 END ) DIV - CAST( 6 AS SIGNED )
----
-15

skipif mysql # not compatible
query I rowsort label-5844
SELECT DISTINCT COUNT ( * ) + + COALESCE ( 96, - 6 + COALESCE ( COUNT ( * ), + MAX ( 20 ) - - - 95 + - + 91, + ( 25 ) * - 35 ) - - CASE 8 WHEN + - 65 * ( - 74 ) THEN + + 95 * - 96 * + + 56 + + 87 - - 68 END ) / - CAST ( 6 AS INTEGER )
----
-15

query I rowsort
SELECT + 51 + - 58 + - 18 AS col2
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5846
SELECT + CAST( + 21 AS SIGNED ) + + 1
----
22

skipif mysql # not compatible
query I rowsort label-5846
SELECT + CAST ( + 21 AS INTEGER ) + + 1
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5847
SELECT - COALESCE ( 17, + + 67 * + ( - COUNT( * ) ), CASE - 45 WHEN 47 / - 60 THEN + ( - ( + 85 ) ) WHEN - CAST( NULL AS SIGNED ) THEN NULL END * + CAST( NULL AS SIGNED ) + + COUNT( * ) + + MAX( ALL 68 ) - 30 * 55 + + 39 )
----
-17

skipif mysql # not compatible
query I rowsort label-5847
SELECT - COALESCE ( 17, + + 67 * + ( - COUNT ( * ) ), CASE - 45 WHEN 47 / - 60 THEN + ( - ( + 85 ) ) WHEN - CAST ( NULL AS INTEGER ) THEN NULL END * + CAST ( NULL AS INTEGER ) + + COUNT ( * ) + + MAX ( ALL 68 ) - 30 * 55 + + 39 )
----
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-5848
SELECT + 56 + COUNT( * ) + - 39 * - + ( + 4 ) + ( - - 11 ) col1, 91 AS col1
----
224
91

skipif mysql # not compatible
query II rowsort label-5848
SELECT + 56 + COUNT ( * ) + - 39 * - + ( + 4 ) + ( - - 11 ) col1, 91 AS col1
----
224
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5849
SELECT ALL + CASE - NULLIF ( - 68, 95 ) WHEN + 84 THEN COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5849
SELECT ALL + CASE - NULLIF ( - 68, 95 ) WHEN + 84 THEN COUNT ( * ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5850
SELECT - 75 / - + 74 + - + CASE - 80 WHEN 23 * + 89 + 62 THEN NULL WHEN - 25 / - 33 THEN - 44 * - AVG ( + 12 ) * + 21 + + SUM( ALL - ( + - 17 ) ) + - + 93 * - + 37 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5850
SELECT - 75 / - + 74 + - + CASE - 80 WHEN 23 * + 89 + 62 THEN NULL WHEN - 25 / - 33 THEN - 44 * - AVG ( + 12 ) * + 21 + + SUM ( ALL - ( + - 17 ) ) + - + 93 * - + 37 END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5851
SELECT CAST( + 16 AS SIGNED ) AS col0, 91
----
16
91

skipif mysql # not compatible
query II rowsort label-5851
SELECT CAST ( + 16 AS INTEGER ) AS col0, 91
----
16
91

onlyif mysql # DIV for integer division: 
query II rowsort label-5852
SELECT 39 DIV + 31 DIV 6 * + COALESCE ( ( - 18 ), + 10 ) * - 13 + + 9 * - 92 * + + 74 + + + 68 AS col2, 31 AS col0
----
-61204
31

skipif mysql # not compatible
query II rowsort label-5852
SELECT 39 / + 31 / 6 * + COALESCE ( ( - 18 ), + 10 ) * - 13 + + 9 * - 92 * + + 74 + + + 68 AS col2, 31 AS col0
----
-61204
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5853
SELECT - MAX( + 63 ) + - - 62 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5853
SELECT - MAX ( + 63 ) + - - 62 AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5854
SELECT ALL - - 44 DIV 50 + - + 77 AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-5854
SELECT ALL - - 44 / 50 + - + 77 AS col2
----
-77

query II rowsort
SELECT + - 65 * + 89 * - 25 + - 70, 65 + + - 61 col1
----
144555
4

query I rowsort
SELECT DISTINCT + + ( - 9 ) AS col2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5857
SELECT + - 64 + - COUNT( * ) AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-5857
SELECT + - 64 + - COUNT ( * ) AS col2
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-5858
SELECT - + 83 - - ( + 71 ) + + + 33 + - + ( COUNT( * ) ) + + CASE + - 49 WHEN + 36 / 27 + 45 THEN NULL ELSE - - 34 END + - 70 * - 7 + 18 + - 26 * - NULLIF ( 9, COUNT( * ) ) * 12 + + - MIN( ALL - ( - 12 ) )
----
3358

skipif mysql # not compatible
query I rowsort label-5858
SELECT - + 83 - - ( + 71 ) + + + 33 + - + ( COUNT ( * ) ) + + CASE + - 49 WHEN + 36 / 27 + 45 THEN NULL ELSE - - 34 END + - 70 * - 7 + 18 + - 26 * - NULLIF ( 9, COUNT ( * ) ) * 12 + + - MIN ( ALL - ( - 12 ) )
----
3358

onlyif mysql # aggregate syntax: 
query I rowsort label-5859
SELECT - - COUNT( * ) + 23 AS col0
----
24

skipif mysql # not compatible
query I rowsort label-5859
SELECT - - COUNT ( * ) + 23 AS col0
----
24

query II rowsort
SELECT DISTINCT + + 62 * - 95 + 18 + - - 76 - 83 * 75 * + 88 AS col0, ( - 20 ) + - ( 78 ) AS col0
----
-553596
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-5861
SELECT - - ( - 14 ) DIV + 21
----
0

skipif mysql # not compatible
query I rowsort label-5861
SELECT - - ( - 14 ) / + 21
----
0

query I rowsort
SELECT - - 57 * 96 + - 66 * - + 18
----
6660

onlyif mysql # DIV for integer division: 
query II rowsort label-5863
SELECT DISTINCT + + 88 DIV - 36, - 37 AS col0
----
-2
-37

skipif mysql # not compatible
query II rowsort label-5863
SELECT DISTINCT + + 88 / - 36, - 37 AS col0
----
-2
-37

query I rowsort
SELECT + - 7 + - + 37
----
-44

query I rowsort
SELECT ALL + 78 * - + 48
----
-3744

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5866
SELECT - CAST( NULL AS SIGNED ) / + + SUM( + 55 ) AS col1, + 97 col0
----
NULL
97

skipif mysql # not compatible
query II rowsort label-5866
SELECT - CAST ( NULL AS INTEGER ) / + + SUM ( + 55 ) AS col1, + 97 col0
----
NULL
97

query I rowsort
SELECT ALL ( + - 38 ) AS col1
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5868
SELECT - COALESCE ( 13, + + ( + - ( - ( 24 ) ) ) * + 96 * - 33 * NULLIF ( - 32, + 49 / + 39 * MAX( + + 57 ) + - NULLIF ( - 92, + ( - - COUNT( * ) ) - + 17 + - + 80 + - 85 * - - 71 / - + 87 + - - 92 ) + + 15 / - CAST( NULL AS SIGNED ) ) + NULLIF ( 91, 43 * 24 + NULLIF ( - 18, 30 ) ) ) * - 50 AS col2
----
650

skipif mysql # not compatible
query I rowsort label-5868
SELECT - COALESCE ( 13, + + ( + - ( - ( 24 ) ) ) * + 96 * - 33 * NULLIF ( - 32, + 49 / + 39 * MAX ( + + 57 ) + - NULLIF ( - 92, + ( - - COUNT ( * ) ) - + 17 + - + 80 + - 85 * - - 71 / - + 87 + - - 92 ) + + 15 / - CAST ( NULL AS INTEGER ) ) + NULLIF ( 91, 43 * 24 + NULLIF ( - 18, 30 ) ) ) * - 50 AS col2
----
650

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5869
SELECT DISTINCT - 26 * 2 + - COUNT( * ) + + 52 DIV + - 80 + + ( + 75 )
----
22

skipif mysql # not compatible
query I rowsort label-5869
SELECT DISTINCT - 26 * 2 + - COUNT ( * ) + + 52 / + - 80 + + ( + 75 )
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5870
SELECT DISTINCT CAST( COUNT( * ) AS SIGNED ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5870
SELECT DISTINCT CAST ( COUNT ( * ) AS INTEGER ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5871
SELECT ALL - 78 * COUNT( * ) col0
----
-78

skipif mysql # not compatible
query I rowsort label-5871
SELECT ALL - 78 * COUNT ( * ) col0
----
-78

query I rowsort
SELECT DISTINCT + COALESCE ( - + 68, + 99, - ( + 48 ), 6 ) + + - 26
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-5873
SELECT ALL 74 + - 74 + COUNT( * ) * + 59 AS col1
----
59

skipif mysql # not compatible
query I rowsort label-5873
SELECT ALL 74 + - 74 + COUNT ( * ) * + 59 AS col1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5874
SELECT ALL COALESCE ( - 68, + ( - 35 ) * - - 87 - 4 + - 61 * 16 ) + - COUNT( * ) + - 39 + - 60 + - 13 - + + 38 * - 18 * - 86 * - 29 AS col0
----
1705715

skipif mysql # not compatible
query I rowsort label-5874
SELECT ALL COALESCE ( - 68, + ( - 35 ) * - - 87 - 4 + - 61 * 16 ) + - COUNT ( * ) + - 39 + - 60 + - 13 - + + 38 * - 18 * - 86 * - 29 AS col0
----
1705715

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5875
SELECT - CAST( + + 49 AS SIGNED ) AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-5875
SELECT - CAST ( + + 49 AS INTEGER ) AS col0
----
-49

query I rowsort
SELECT + 56 * + 26
----
1456

onlyif mysql # aggregate syntax: 
query I rowsort label-5877
SELECT ( + + 22 ) + + + 2 + - SUM( - + 32 ) * 54 + - COALESCE ( + - 12, - + 43, - 38 * + 4 ) AS col1
----
1764

skipif mysql # not compatible
query I rowsort label-5877
SELECT ( + + 22 ) + + + 2 + - SUM ( - + 32 ) * 54 + - COALESCE ( + - 12, - + 43, - 38 * + 4 ) AS col1
----
1764

onlyif mysql # aggregate syntax: 
query I rowsort label-5878
SELECT DISTINCT ( + 47 ) + SUM( DISTINCT 53 )
----
100

skipif mysql # not compatible
query I rowsort label-5878
SELECT DISTINCT ( + 47 ) + SUM ( DISTINCT 53 )
----
100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5879
SELECT ALL + CASE + COALESCE ( + + 58, - CAST( NULL AS SIGNED ) / NULLIF ( + 75, 13 ) + - COUNT( * ) + + - 99 + + COUNT( + ( - 8 ) ) + - 49 + COUNT( * ) - - 75 * ( + + 37 ) * ( - - 64 ), - CASE - 19 WHEN - 49 THEN NULL WHEN + - COUNT( * ) - 62 THEN 31 END * 5 ) WHEN + COUNT( * ) * 13 THEN 7 WHEN 25 / - 62 THEN + ( - 77 ) + 45 ELSE NULL END + 47 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5879
SELECT ALL + CASE + COALESCE ( + + 58, - CAST ( NULL AS INTEGER ) / NULLIF ( + 75, 13 ) + - COUNT ( * ) + + - 99 + + COUNT ( + ( - 8 ) ) + - 49 + COUNT ( * ) - - 75 * ( + + 37 ) * ( - - 64 ), - CASE - 19 WHEN - 49 THEN NULL WHEN + - COUNT ( * ) - 62 THEN 31 END * 5 ) WHEN + COUNT ( * ) * 13 THEN 7 WHEN 25 / - 62 THEN + ( - 77 ) + 45 ELSE NULL END + 47 col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5880
SELECT ALL CAST( NULL AS SIGNED ) + - 3 + - 67 AS col0, 84 * - 60
----
NULL
-5040

skipif mysql # not compatible
query II rowsort label-5880
SELECT ALL CAST ( NULL AS INTEGER ) + - 3 + - 67 AS col0, 84 * - 60
----
NULL
-5040

onlyif mysql # aggregate syntax: 
query I rowsort label-5881
SELECT ( + 95 ) * + + COUNT( * )
----
95

skipif mysql # not compatible
query I rowsort label-5881
SELECT ( + 95 ) * + + COUNT ( * )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-5882
SELECT DISTINCT 55 - + NULLIF ( + 23, + COUNT( * ) ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-5882
SELECT DISTINCT 55 - + NULLIF ( + 23, + COUNT ( * ) ) AS col0
----
32

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5883
SELECT CAST( NULL AS DECIMAL ) - - 64 - + 68 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5883
SELECT CAST ( NULL AS REAL ) - - 64 - + 68 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5884
SELECT ALL CAST( + 82 AS SIGNED ) * + 94 * + 97 + 44
----
747720

skipif mysql # not compatible
query I rowsort label-5884
SELECT ALL CAST ( + 82 AS INTEGER ) * + 94 * + 97 + 44
----
747720

onlyif mysql # aggregate syntax: 
query I rowsort label-5885
SELECT ALL + 16 * + ( + COUNT( * ) )
----
16

skipif mysql # not compatible
query I rowsort label-5885
SELECT ALL + 16 * + ( + COUNT ( * ) )
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-5886
SELECT ALL - 73 - COUNT( * ) * - 18
----
-55

skipif mysql # not compatible
query I rowsort label-5886
SELECT ALL - 73 - COUNT ( * ) * - 18
----
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-5887
SELECT + 35 AS col2, + COUNT( * ) + + - ( + 56 ) - - COUNT( * ) AS col2
----
35
-54

skipif mysql # not compatible
query II rowsort label-5887
SELECT + 35 AS col2, + COUNT ( * ) + + - ( + 56 ) - - COUNT ( * ) AS col2
----
35
-54

query I rowsort
SELECT + - ( + 54 )
----
-54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5889
SELECT + 48 * 25 DIV MAX( - + 38 ) * + + 24 col2
----
-744

skipif mysql # not compatible
query I rowsort label-5889
SELECT + 48 * 25 / MAX ( - + 38 ) * + + 24 col2
----
-744

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5890
SELECT + NULLIF ( AVG ( ALL + 26 ), + - 90 ) * + CASE - 48 WHEN NULLIF ( - 5, - - CAST( NULL AS DECIMAL ) * CASE 48 WHEN + - 94 THEN NULL WHEN + ( 63 ) * + 16 * - 1 + - + ( + 62 ) / - ( - + COUNT( * ) ) THEN + + 43 END + MAX( + NULLIF ( + + 97, + + 28 / 79 ) ) ) THEN + 87 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5890
SELECT + NULLIF ( AVG ( ALL + 26 ), + - 90 ) * + CASE - 48 WHEN NULLIF ( - 5, - - CAST ( NULL AS REAL ) * CASE 48 WHEN + - 94 THEN NULL WHEN + ( 63 ) * + 16 * - 1 + - + ( + 62 ) / - ( - + COUNT ( * ) ) THEN + + 43 END + MAX ( + NULLIF ( + + 97, + + 28 / 79 ) ) ) THEN + 87 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5891
SELECT + CAST( NULL AS SIGNED ), 61 AS col1
----
NULL
61

skipif mysql # not compatible
query II rowsort label-5891
SELECT + CAST ( NULL AS INTEGER ), 61 AS col1
----
NULL
61

onlyif mysql # aggregate syntax: 
query I rowsort label-5892
SELECT 12 * - - 75 + COUNT( * ) AS col1
----
901

skipif mysql # not compatible
query I rowsort label-5892
SELECT 12 * - - 75 + COUNT ( * ) AS col1
----
901

query I rowsort
SELECT + ( + + 53 ) AS col1
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5894
SELECT ALL 40 * CASE 39 WHEN - 17 THEN - CAST( NULL AS SIGNED ) * 15 * + - NULLIF ( MIN( 25 ), - CAST( - COALESCE ( + - 33, - - 13, MAX( ALL 4 ), 79 - + 43 * + 85 * + + 8 * - - 34 - + 7 ) AS SIGNED ) ) * 48 + 91 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5894
SELECT ALL 40 * CASE 39 WHEN - 17 THEN - CAST ( NULL AS INTEGER ) * 15 * + - NULLIF ( MIN ( 25 ), - CAST ( - COALESCE ( + - 33, - - 13, MAX ( ALL 4 ), 79 - + 43 * + 85 * + + 8 * - - 34 - + 7 ) AS INTEGER ) ) * 48 + 91 END
----
NULL

query I rowsort
SELECT DISTINCT + 79 - + 60 AS col1
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-5896
SELECT ALL - 57 DIV + - 26 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-5896
SELECT ALL - 57 / + - 26 AS col2
----
2

query II rowsort
SELECT ALL - - 67 AS col1, 9 - - 78
----
67
87

query II rowsort
SELECT + + 10, 93 AS col1
----
10
93

onlyif mysql # aggregate syntax: 
query I rowsort label-5899
SELECT + MIN( DISTINCT ( 11 ) )
----
11

skipif mysql # not compatible
query I rowsort label-5899
SELECT + MIN ( DISTINCT ( 11 ) )
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5900
SELECT + - CAST( - 90 AS SIGNED ) AS col0
----
90

skipif mysql # not compatible
query I rowsort label-5900
SELECT + - CAST ( - 90 AS INTEGER ) AS col0
----
90

query II rowsort
SELECT + 34 * ( - 99 ), 65 + - 97 AS col1
----
-3366
-32

query I rowsort
SELECT ALL + 22 * - 21 * - 98 * 10
----
452760

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5903
SELECT + + 59 * - COALESCE ( + - 45, + - ( + COUNT( * ) ) * - - 92 ) + - + COUNT( * ) + 79 + + 43 + - 40 + + 20 * 13 + + ( + 15 ) - + ( COALESCE ( - + CAST( NULL AS SIGNED ), COUNT( * ) * + + 77, 31 ) ) * - 80
----
9171

skipif mysql # not compatible
query I rowsort label-5903
SELECT + + 59 * - COALESCE ( + - 45, + - ( + COUNT ( * ) ) * - - 92 ) + - + COUNT ( * ) + 79 + + 43 + - 40 + + 20 * 13 + + ( + 15 ) - + ( COALESCE ( - + CAST ( NULL AS INTEGER ), COUNT ( * ) * + + 77, 31 ) ) * - 80
----
9171

onlyif mysql # aggregate syntax: 
query II rowsort label-5904
SELECT + 10 AS col2, MIN( DISTINCT 24 ) col0
----
10
24

skipif mysql # not compatible
query II rowsort label-5904
SELECT + 10 AS col2, MIN ( DISTINCT 24 ) col0
----
10
24

query I rowsort
SELECT - 0 + 21 AS col1
----
21

query I rowsort
SELECT ALL 70 + - 79
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5907
SELECT 93 + 55 / SUM( - 46 ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5907
SELECT 93 + 55 / SUM ( - 46 ) + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - 92 + 8 AS col0
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5909
SELECT DISTINCT - CASE ( 72 ) WHEN 4 THEN - + CAST( NULL AS SIGNED ) * + 9 * - 87 END + - - MIN( DISTINCT + 2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5909
SELECT DISTINCT - CASE ( 72 ) WHEN 4 THEN - + CAST ( NULL AS INTEGER ) * + 9 * - 87 END + - - MIN ( DISTINCT + 2 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5910
SELECT ALL + COUNT( * ) + - 9 AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-5910
SELECT ALL + COUNT ( * ) + - 9 AS col2
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-5911
SELECT 6 col2, + NULLIF ( + COUNT( * ), 57 ) AS col2
----
6
1

skipif mysql # not compatible
query II rowsort label-5911
SELECT 6 col2, + NULLIF ( + COUNT ( * ), 57 ) AS col2
----
6
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5912
SELECT ALL - 56 + + CASE + COUNT( * ) WHEN + 94 THEN 57 ELSE NULL END + MIN( - 86 ) * 40
----
NULL

skipif mysql # not compatible
query I rowsort label-5912
SELECT ALL - 56 + + CASE + COUNT ( * ) WHEN + 94 THEN 57 ELSE NULL END + MIN ( - 86 ) * 40
----
NULL

query I rowsort
SELECT 99 + + 49
----
148

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5914
SELECT ALL - COUNT( * ) DIV 37
----
0

skipif mysql # not compatible
query I rowsort label-5914
SELECT ALL - COUNT ( * ) / 37
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5915
SELECT 6 DIV - 30
----
0

skipif mysql # not compatible
query I rowsort label-5915
SELECT 6 / - 30
----
0

query I rowsort
SELECT 9 + - 34 AS col2
----
-25

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5917
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * - 57 * - COALESCE ( + 25, + 40 * + + 37 / - + COUNT( * ) ) / - 50 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5917
SELECT DISTINCT - CAST ( NULL AS REAL ) * - 57 * - COALESCE ( + 25, + 40 * + + 37 / - + COUNT ( * ) ) / - 50 AS col1
----
NULL

query I rowsort
SELECT 25 * 43
----
1075

query II rowsort
SELECT ALL 29 AS col1, - 67 AS col1
----
29
-67

query II rowsort
SELECT 43 AS col0, + 16 + + - 85 * + 38
----
43
-3214

onlyif mysql # aggregate syntax: 
query I rowsort label-5921
SELECT DISTINCT - COUNT( * ) * - NULLIF ( + COUNT( * ), + + 64 + - 51 )
----
1

skipif mysql # not compatible
query I rowsort label-5921
SELECT DISTINCT - COUNT ( * ) * - NULLIF ( + COUNT ( * ), + + 64 + - 51 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5922
SELECT ALL COUNT( * ) AS col2, + 75 DIV + 31 col1
----
1
2

skipif mysql # not compatible
query II rowsort label-5922
SELECT ALL COUNT ( * ) AS col2, + 75 / + 31 col1
----
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5923
SELECT ALL + SUM( DISTINCT + 99 ) - + 64
----
35

skipif mysql # not compatible
query I rowsort label-5923
SELECT ALL + SUM ( DISTINCT + 99 ) - + 64
----
35

query I rowsort
SELECT 24 * 7
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-5925
SELECT - COALESCE ( - 94, + - 84 + - - 78 + - 65, + 28 + + MIN( DISTINCT + 14 ) ) AS col1
----
94

skipif mysql # not compatible
query I rowsort label-5925
SELECT - COALESCE ( - 94, + - 84 + - - 78 + - 65, + 28 + + MIN ( DISTINCT + 14 ) ) AS col1
----
94

query II rowsort
SELECT ALL 63 AS col1, - 80
----
63
-80

query II rowsort
SELECT - 86 AS col1, - 23 * + + 59
----
-86
-1357

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5928
SELECT + ( 75 ) DIV - 90 - - COUNT( * ) + + - 57 + SUM( ALL + - 22 ) col1, - 32 * - MAX( DISTINCT - + 74 ) + 84
----
-78
-2284

skipif mysql # not compatible
query II rowsort label-5928
SELECT + ( 75 ) / - 90 - - COUNT ( * ) + + - 57 + SUM ( ALL + - 22 ) col1, - 32 * - MAX ( DISTINCT - + 74 ) + 84
----
-78
-2284

query II rowsort
SELECT DISTINCT - - 56 AS col0, 92 * - 52 AS col2
----
56
-4784

query I rowsort
SELECT DISTINCT COALESCE ( - - 85, 92 * 5 + - - 49 ) * + 43 AS col2
----
3655

query I rowsort
SELECT DISTINCT 70 * - - 48 AS col0
----
3360

onlyif mysql # aggregate syntax: 
query I rowsort label-5932
SELECT DISTINCT - ( + CASE - COUNT( * ) WHEN + 46 * - ( - 40 ) + - MAX( DISTINCT 94 ) * + 94 THEN - 96 * + 36 ELSE NULL END ) * + NULLIF ( + 11, 99 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5932
SELECT DISTINCT - ( + CASE - COUNT ( * ) WHEN + 46 * - ( - 40 ) + - MAX ( DISTINCT 94 ) * + 94 THEN - 96 * + 36 ELSE NULL END ) * + NULLIF ( + 11, 99 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5933
SELECT DISTINCT 97 * - 34 + ( - CASE + COUNT( * ) WHEN + 85 THEN - - 91 - + CAST( - COUNT( * ) AS SIGNED ) / + 78 WHEN AVG ( ALL + - 90 ) * + 89 THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-5933
SELECT DISTINCT 97 * - 34 + ( - CASE + COUNT ( * ) WHEN + 85 THEN - - 91 - + CAST ( - COUNT ( * ) AS INTEGER ) / + 78 WHEN AVG ( ALL + - 90 ) * + 89 THEN NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5934
SELECT ALL 1 + - + 28 + + COUNT( * ) * - COUNT( * ) AS col2, + 42 AS col1
----
-28
42

skipif mysql # not compatible
query II rowsort label-5934
SELECT ALL 1 + - + 28 + + COUNT ( * ) * - COUNT ( * ) AS col2, + 42 AS col1
----
-28
42

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5935
SELECT 51 / + 12 - + 44 - 91 * - 93 - 10 + 85 * + - 10 + - 18 + + - 86 + 16 + - 19 + - - CAST( NULL AS DECIMAL ) / 70 * - + 86 * + + NULLIF ( - - 93, - - 29 * 56 * AVG ( + 36 ) + - 35 + - - 48 + - 6 ) AS col1, - 97 AS col0
----
NULL
-97

skipif mysql # not compatible
query II rowsort label-5935
SELECT 51 / + 12 - + 44 - 91 * - 93 - 10 + 85 * + - 10 + - 18 + + - 86 + 16 + - 19 + - - CAST ( NULL AS REAL ) / 70 * - + 86 * + + NULLIF ( - - 93, - - 29 * 56 * AVG ( + 36 ) + - 35 + - - 48 + - 6 ) AS col1, - 97 AS col0
----
NULL
-97

query II rowsort
SELECT ALL - + 63 AS col2, 77 - 49 AS col0
----
-63
28

onlyif mysql # aggregate syntax: 
query I rowsort label-5937
SELECT ALL + + 83 + + + COUNT( * ) AS col2
----
84

skipif mysql # not compatible
query I rowsort label-5937
SELECT ALL + + 83 + + + COUNT ( * ) AS col2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5938
SELECT ALL - CASE + + COUNT( * ) WHEN - 90 - + - 20 THEN - 19 WHEN - 55 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5938
SELECT ALL - CASE + + COUNT ( * ) WHEN - 90 - + - 20 THEN - 19 WHEN - 55 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5939
SELECT DISTINCT COUNT( * ) + + 61
----
62

skipif mysql # not compatible
query I rowsort label-5939
SELECT DISTINCT COUNT ( * ) + + 61
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-5940
SELECT ALL - COUNT( + - 19 ), + COUNT( * ) AS col1
----
-1
1

skipif mysql # not compatible
query II rowsort label-5940
SELECT ALL - COUNT ( + - 19 ), + COUNT ( * ) AS col1
----
-1
1

query I rowsort
SELECT 83 * 74 * + 52 col2
----
319384

query I rowsort
SELECT DISTINCT - ( 2 ) * - + 59
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-5943
SELECT + 16 * - ( - COUNT( * ) )
----
16

skipif mysql # not compatible
query I rowsort label-5943
SELECT + 16 * - ( - COUNT ( * ) )
----
16

query II rowsort
SELECT ALL + 88 - - 79, 26 AS col1
----
167
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5945
SELECT ALL - CAST( NULL AS SIGNED ) - + 3 * - 57 * + - CAST( - - ( + - 95 ) AS SIGNED ) + - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5945
SELECT ALL - CAST ( NULL AS INTEGER ) - + 3 * - 57 * + - CAST ( - - ( + - 95 ) AS INTEGER ) + - - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5946
SELECT ALL NULLIF ( - COUNT( * ), - - 64 + - 99 )
----
-1

skipif mysql # not compatible
query I rowsort label-5946
SELECT ALL NULLIF ( - COUNT ( * ), - - 64 + - 99 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5947
SELECT - 3 + + CAST( + + 43 AS SIGNED )
----
40

skipif mysql # not compatible
query I rowsort label-5947
SELECT - 3 + + CAST ( + + 43 AS INTEGER )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5948
SELECT ALL COUNT( DISTINCT - NULLIF ( + 35, + 0 / - - 36 ) )
----
1

skipif mysql # not compatible
query I rowsort label-5948
SELECT ALL COUNT ( DISTINCT - NULLIF ( + 35, + 0 / - - 36 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5949
SELECT ALL - COUNT( * ) - - - 98 * COUNT( * )
----
-99

skipif mysql # not compatible
query I rowsort label-5949
SELECT ALL - COUNT ( * ) - - - 98 * COUNT ( * )
----
-99

query I rowsort
SELECT - 55 * - 84 * 26 AS col0
----
120120

onlyif mysql # aggregate syntax: 
query I rowsort label-5951
SELECT - COUNT( * ) - - 36 AS col0
----
35

skipif mysql # not compatible
query I rowsort label-5951
SELECT - COUNT ( * ) - - 36 AS col0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-5952
SELECT DISTINCT - 99 / CASE CASE - COUNT( + CASE 1 WHEN 37 THEN NULL WHEN - 50 THEN + 8 / 33 WHEN 72 THEN NULL END ) WHEN + 0 THEN + 47 * - + MIN( - + ( + 74 ) ) ELSE 32 END WHEN + 28 * - + 72 THEN - 21 WHEN + 81 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5952
SELECT DISTINCT - 99 / CASE CASE - COUNT ( + CASE 1 WHEN 37 THEN NULL WHEN - 50 THEN + 8 / 33 WHEN 72 THEN NULL END ) WHEN + 0 THEN + 47 * - + MIN ( - + ( + 74 ) ) ELSE 32 END WHEN + 28 * - + 72 THEN - 21 WHEN + 81 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5953
SELECT + 0 / CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5953
SELECT + 0 / CAST ( NULL AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT ALL - 90 * + 50 - + + 78 + 14 * - 56 AS col2, 49
----
-5362
49

onlyif mysql # aggregate syntax: 
query I rowsort label-5955
SELECT ALL + COUNT( ALL + 75 )
----
1

skipif mysql # not compatible
query I rowsort label-5955
SELECT ALL + COUNT ( ALL + 75 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5956
SELECT - + 52 DIV + 36
----
-1

skipif mysql # not compatible
query I rowsort label-5956
SELECT - + 52 / + 36
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5957
SELECT - 75 * COUNT( * ) * - 12
----
900

skipif mysql # not compatible
query I rowsort label-5957
SELECT - 75 * COUNT ( * ) * - 12
----
900

onlyif mysql # aggregate syntax: 
query II rowsort label-5958
SELECT ALL + COUNT( * ) * - 52, - 8 - - 69 * 44 AS col0
----
-52
3028

skipif mysql # not compatible
query II rowsort label-5958
SELECT ALL + COUNT ( * ) * - 52, - 8 - - 69 * 44 AS col0
----
-52
3028

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5959
SELECT + 10 * + - 22 - + 56 * - MIN( DISTINCT - 14 ) - - ( + CAST( NULL AS SIGNED ) ) - + 19 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5959
SELECT + 10 * + - 22 - + 56 * - MIN ( DISTINCT - 14 ) - - ( + CAST ( NULL AS INTEGER ) ) - + 19 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - COALESCE ( - - 85, 2 * + + 89 * + + 45 ) * + 99 AS col2
----
-8415

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5961
SELECT ALL 44 * 94 + - + ( + COUNT( * ) ) DIV - 44
----
4136

skipif mysql # not compatible
query I rowsort label-5961
SELECT ALL 44 * 94 + - + ( + COUNT ( * ) ) / - 44
----
4136

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5962
SELECT - CAST( 19 AS SIGNED ) AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-5962
SELECT - CAST ( 19 AS INTEGER ) AS col2
----
-19

query I rowsort
SELECT ALL 52 * - 90 + 27 + + - 70 AS col2
----
-4723

onlyif mysql # aggregate syntax: 
query II rowsort label-5964
SELECT DISTINCT COUNT( * ) * + 25, - COUNT( * ) + 47 - + - NULLIF ( - + 69, - 56 ) - + + 99 col0
----
25
-122

skipif mysql # not compatible
query II rowsort label-5964
SELECT DISTINCT COUNT ( * ) * + 25, - COUNT ( * ) + 47 - + - NULLIF ( - + 69, - 56 ) - + + 99 col0
----
25
-122

onlyif mysql # aggregate syntax: 
query I rowsort label-5965
SELECT ALL + COUNT( * ) * 86 + - ( - 14 ) + - 86 + + 92 AS col1
----
106

skipif mysql # not compatible
query I rowsort label-5965
SELECT ALL + COUNT ( * ) * 86 + - ( - 14 ) + - 86 + + 92 AS col1
----
106

onlyif mysql # DIV for integer division: 
query I rowsort label-5966
SELECT + 52 DIV - - 84 col1
----
0

skipif mysql # not compatible
query I rowsort label-5966
SELECT + 52 / - - 84 col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5967
SELECT + ( - - CASE + AVG ( 60 ) WHEN + + 2 THEN NULL WHEN CAST( NULL AS SIGNED ) THEN - COUNT( * ) + - - CAST( NULL AS SIGNED ) - 70 * - 2 * - 69 * - 43 * - ( + - COUNT( ALL 41 ) ) + - 97 * 38 * ( 50 ) * - CASE - + 37 WHEN - + 81 * - 80 * + COUNT( * ) * + + 29 THEN NULL WHEN MAX( DISTINCT CASE - 96 WHEN 16 * 73 + + 23 THEN NULL ELSE 57 END ) THEN NULL WHEN - 57 / - 72 THEN 6 ELSE + COUNT( * ) END ELSE - 74 + 40 END ) AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-5967
SELECT + ( - - CASE + AVG ( 60 ) WHEN + + 2 THEN NULL WHEN CAST ( NULL AS INTEGER ) THEN - COUNT ( * ) + - - CAST ( NULL AS INTEGER ) - 70 * - 2 * - 69 * - 43 * - ( + - COUNT ( ALL 41 ) ) + - 97 * 38 * ( 50 ) * - CASE - + 37 WHEN - + 81 * - 80 * + COUNT ( * ) * + + 29 THEN NULL WHEN MAX ( DISTINCT CASE - 96 WHEN 16 * 73 + + 23 THEN NULL ELSE 57 END ) THEN NULL WHEN - 57 / - 72 THEN 6 ELSE + COUNT ( * ) END ELSE - 74 + 40 END ) AS col1
----
-34

query I rowsort
SELECT CASE 33 WHEN + - 87 THEN + 61 END AS col0
----
NULL

query I rowsort
SELECT - 47 * 15 + - + 83 + + 84 * - 84 * + 97 * 54 col1
----
-36960116

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5970
SELECT + 22 DIV + + COUNT( * ) AS col2
----
22

skipif mysql # not compatible
query I rowsort label-5970
SELECT + 22 / + + COUNT ( * ) AS col2
----
22

query I rowsort
SELECT + 92 + - 18 + + 86
----
160

onlyif mysql # DIV for integer division: 
query I rowsort label-5972
SELECT ALL + 84 DIV - 35 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-5972
SELECT ALL + 84 / - 35 AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5973
SELECT ALL NULLIF ( + MAX( ALL + 53 ), 68 )
----
53

skipif mysql # not compatible
query I rowsort label-5973
SELECT ALL NULLIF ( + MAX ( ALL + 53 ), 68 )
----
53

query I rowsort
SELECT 93 * - ( - - NULLIF ( 80, - 9 * - 80 + - 32 ) ) + - 99
----
-7539

query II rowsort
SELECT ALL 24 AS col0, 9 + - - 80 AS col1
----
24
89

onlyif mysql # aggregate syntax: 
query I rowsort label-5976
SELECT MAX( + 60 ) AS col2
----
60

skipif mysql # not compatible
query I rowsort label-5976
SELECT MAX ( + 60 ) AS col2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-5977
SELECT ALL COUNT( DISTINCT + + 28 )
----
1

skipif mysql # not compatible
query I rowsort label-5977
SELECT ALL COUNT ( DISTINCT + + 28 )
----
1

query I rowsort
SELECT - 32 * + - NULLIF ( + 59, + 0 * AVG ( ALL 41 ) ) AS col2
----
1888

onlyif mysql # aggregate syntax: 
query I rowsort label-5979
SELECT + COUNT( * ) + + 91 AS col2
----
92

skipif mysql # not compatible
query I rowsort label-5979
SELECT + COUNT ( * ) + + 91 AS col2
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5980
SELECT + + 56 * - + SUM( - - 81 ) AS col1
----
-4536

skipif mysql # not compatible
query I rowsort label-5980
SELECT + + 56 * - + SUM ( - - 81 ) AS col1
----
-4536

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5981
SELECT ALL CAST( NULL AS SIGNED ) * + 54 * - - MIN( DISTINCT - + 53 ) * + 1 * 52 AS col0, + 12 * + COUNT( * ) * + + 93 AS col2
----
NULL
1116

skipif mysql # not compatible
query II rowsort label-5981
SELECT ALL CAST ( NULL AS INTEGER ) * + 54 * - - MIN ( DISTINCT - + 53 ) * + 1 * 52 AS col0, + 12 * + COUNT ( * ) * + + 93 AS col2
----
NULL
1116

query I rowsort
SELECT - 46 - 34
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-5983
SELECT ALL - + ( + - 16 ) + + MAX( DISTINCT - 87 ) * - 38 AS col2
----
3322

skipif mysql # not compatible
query I rowsort label-5983
SELECT ALL - + ( + - 16 ) + + MAX ( DISTINCT - 87 ) * - 38 AS col2
----
3322

onlyif mysql # aggregate syntax: 
query II rowsort label-5984
SELECT + 71, 54 + - COUNT( * ) AS col2
----
71
53

skipif mysql # not compatible
query II rowsort label-5984
SELECT + 71, 54 + - COUNT ( * ) AS col2
----
71
53

onlyif mysql # aggregate syntax: 
query I rowsort label-5985
SELECT ALL - MAX( DISTINCT - - 16 ) AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-5985
SELECT ALL - MAX ( DISTINCT - - 16 ) AS col0
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5986
SELECT - 73 * + + ( + + CAST( + 29 AS SIGNED ) )
----
-2117

skipif mysql # not compatible
query I rowsort label-5986
SELECT - 73 * + + ( + + CAST ( + 29 AS INTEGER ) )
----
-2117

onlyif mysql # aggregate syntax: 
query I rowsort label-5987
SELECT - SUM( - - 1 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5987
SELECT - SUM ( - - 1 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5988
SELECT - - SUM( - 24 ) - COUNT( * )
----
-25

skipif mysql # not compatible
query I rowsort label-5988
SELECT - - SUM ( - 24 ) - COUNT ( * )
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5989
SELECT - + 23 * - 44 + + - CAST( NULL AS SIGNED ) * 51
----
NULL

skipif mysql # not compatible
query I rowsort label-5989
SELECT - + 23 * - 44 + + - CAST ( NULL AS INTEGER ) * 51
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5990
SELECT ALL - - ( 37 ) DIV 84 + - 66
----
-66

skipif mysql # not compatible
query I rowsort label-5990
SELECT ALL - - ( 37 ) / 84 + - 66
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-5991
SELECT DISTINCT - - 66 * - COUNT( * ) AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-5991
SELECT DISTINCT - - 66 * - COUNT ( * ) AS col0
----
-66

query II rowsort
SELECT DISTINCT + 52, + 85 col1
----
52
85

query I rowsort
SELECT - 89 + + 20 - + + 84
----
-153

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5994
SELECT ALL + CAST( NULL AS SIGNED ) / - 44 + COUNT( * ) + + COUNT( * ) + + 52 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5994
SELECT ALL + CAST ( NULL AS INTEGER ) / - 44 + COUNT ( * ) + + COUNT ( * ) + + 52 col0
----
NULL

query I rowsort
SELECT ALL + + 37 * 69 + - 26 + - + 53 AS col0
----
2474

query I rowsort
SELECT - - 89 * + 16 + NULLIF ( + 45, - 29 * - 35 ) + + 26
----
1495

query II rowsort
SELECT + + 88, 57 AS col2
----
88
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5998
SELECT ALL - MAX( DISTINCT - 70 )
----
70

skipif mysql # not compatible
query I rowsort label-5998
SELECT ALL - MAX ( DISTINCT - 70 )
----
70

query I rowsort
SELECT 99 * 38 * + 63
----
237006

query I rowsort
SELECT 35 * 10
----
350

query I rowsort
SELECT DISTINCT + NULLIF ( + + 89, + - 91 ) - - 0 + + - 90
----
-1

query I rowsort
SELECT 25 * + 0
----
0

query I rowsort
SELECT ALL 57 * - 88
----
-5016

onlyif mysql # aggregate syntax: 
query I rowsort label-6004
SELECT ALL + NULLIF ( + 26, + + 10 - + 21 ) - 64 * - - COUNT( * ) * 28 AS col0
----
-1766

skipif mysql # not compatible
query I rowsort label-6004
SELECT ALL + NULLIF ( + 26, + + 10 - + 21 ) - 64 * - - COUNT ( * ) * 28 AS col0
----
-1766

query I rowsort
SELECT 15 * + + 37 * 29
----
16095

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6006
SELECT CASE COUNT( * ) WHEN - + 29 * + + CAST( NULLIF ( - COUNT( * ), + NULLIF ( + CASE - + 57 WHEN - + 33 THEN NULL WHEN 42 THEN - AVG ( DISTINCT + + 8 ) WHEN - 20 THEN NULL END, + 31 ) ) AS SIGNED ) * - 2 * - 22 + CAST( NULL AS SIGNED ) / + ( + ( - COALESCE ( - + COUNT( * ), + + COUNT( * ) * - 45 - 9 * - 72 * 7 * - CASE + 48 WHEN CASE COUNT( * ) WHEN 17 THEN 70 ELSE 1 * + 4 END * 24 - 73 * + 91 THEN 34 ELSE NULL END + 31 ) ) ) * - 92 + ( 95 + + 45 * COUNT( * ) ) THEN 2 / COUNT( * ) ELSE NULL END * ( 35 + 22 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6006
SELECT CASE COUNT ( * ) WHEN - + 29 * + + CAST ( NULLIF ( - COUNT ( * ), + NULLIF ( + CASE - + 57 WHEN - + 33 THEN NULL WHEN 42 THEN - AVG ( DISTINCT + + 8 ) WHEN - 20 THEN NULL END, + 31 ) ) AS INTEGER ) * - 2 * - 22 + CAST ( NULL AS INTEGER ) / + ( + ( - COALESCE ( - + COUNT ( * ), + + COUNT ( * ) * - 45 - 9 * - 72 * 7 * - CASE + 48 WHEN CASE COUNT ( * ) WHEN 17 THEN 70 ELSE 1 * + 4 END * 24 - 73 * + 91 THEN 34 ELSE NULL END + 31 ) ) ) * - 92 + ( 95 + + 45 * COUNT ( * ) ) THEN 2 / COUNT ( * ) ELSE NULL END * ( 35 + 22 ) AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6007
SELECT ALL CAST( NULL AS DECIMAL ) * - - 71 * + + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-6007
SELECT ALL CAST ( NULL AS REAL ) * - - 71 * + + 26
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6008
SELECT COUNT( * ) + COUNT( * ) AS col0, MIN( - 52 ) - 54
----
2
-106

skipif mysql # not compatible
query II rowsort label-6008
SELECT COUNT ( * ) + COUNT ( * ) AS col0, MIN ( - 52 ) - 54
----
2
-106

query I rowsort
SELECT DISTINCT + COALESCE ( 93, + 69 * - ( + 77 ) ) * + - 6
----
-558

onlyif mysql # aggregate syntax: 
query I rowsort label-6010
SELECT ALL 8 + + 79 + + + 9 * + + 14 + 13 * + - COUNT( * ) * + NULLIF ( + 16, - 75 + + + 24 ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-6010
SELECT ALL 8 + + 79 + + + 9 * + + 14 + 13 * + - COUNT ( * ) * + NULLIF ( + 16, - 75 + + + 24 ) AS col2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6011
SELECT DISTINCT CASE + 75 WHEN - 30 + - 15 + + COUNT( * ) / - CASE - + 74 WHEN 22 * COUNT( ALL - + 40 ) * 89 THEN + 60 ELSE NULL END THEN 17 WHEN + + 89 / 9 THEN + 1 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6011
SELECT DISTINCT CASE + 75 WHEN - 30 + - 15 + + COUNT ( * ) / - CASE - + 74 WHEN 22 * COUNT ( ALL - + 40 ) * 89 THEN + 60 ELSE NULL END THEN 17 WHEN + + 89 / 9 THEN + 1 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6012
SELECT ALL 74 + COUNT( * ) * + MAX( + + 99 ) AS col2
----
173

skipif mysql # not compatible
query I rowsort label-6012
SELECT ALL 74 + COUNT ( * ) * + MAX ( + + 99 ) AS col2
----
173

query I rowsort
SELECT + 44 + 88 * - - 80 - - 65 * 49 AS col2
----
10269

onlyif mysql # aggregate syntax: 
query I rowsort label-6014
SELECT - 48 * SUM( DISTINCT - 43 ) AS col1
----
2064

skipif mysql # not compatible
query I rowsort label-6014
SELECT - 48 * SUM ( DISTINCT - 43 ) AS col1
----
2064

onlyif mysql # DIV for integer division: 
query I rowsort label-6015
SELECT ALL 18 DIV ( 30 ) + 75 AS col2
----
75

skipif mysql # not compatible
query I rowsort label-6015
SELECT ALL 18 / ( 30 ) + 75 AS col2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6016
SELECT - - COUNT( + 30 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6016
SELECT - - COUNT ( + 30 ) AS col0
----
1

query II rowsort
SELECT + 57 + - 17 AS col1, 28 * 42 AS col0
----
40
1176

onlyif mysql # aggregate syntax: 
query I rowsort label-6018
SELECT + COUNT( * ) * 32
----
32

skipif mysql # not compatible
query I rowsort label-6018
SELECT + COUNT ( * ) * 32
----
32

query I rowsort
SELECT - CASE + - 56 WHEN - 1 THEN - - 61 WHEN + ( + ( + - 78 ) ) / - 60 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6020
SELECT DISTINCT 63 + + 77 - - + COUNT( - NULLIF ( + + 92, - - 98 ) )
----
141

skipif mysql # not compatible
query I rowsort label-6020
SELECT DISTINCT 63 + + 77 - - + COUNT ( - NULLIF ( + + 92, - - 98 ) )
----
141

query I rowsort
SELECT ALL - 89 * + 57 AS col2
----
-5073

query I rowsort
SELECT ALL 7 + 85 * + 28 AS col1
----
2387

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6023
SELECT ALL - CAST( + 19 AS SIGNED ) + + 1 + - 44
----
-62

skipif mysql # not compatible
query I rowsort label-6023
SELECT ALL - CAST ( + 19 AS INTEGER ) + + 1 + - 44
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-6024
SELECT 49 * - - MIN( 99 )
----
4851

skipif mysql # not compatible
query I rowsort label-6024
SELECT 49 * - - MIN ( 99 )
----
4851

onlyif mysql # DIV for integer division: 
query I rowsort label-6025
SELECT + ( + 47 ) DIV + - 31 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6025
SELECT + ( + 47 ) / + - 31 AS col0
----
-1

query I rowsort
SELECT - 64 * 72 - - 57 col1
----
-4551

onlyif mysql # aggregate syntax: 
query II rowsort label-6027
SELECT NULLIF ( - 24, + 11 ) * - 11 * + 96 * - COUNT( * ) * - - 14 AS col0, - 64
----
-354816
-64

skipif mysql # not compatible
query II rowsort label-6027
SELECT NULLIF ( - 24, + 11 ) * - 11 * + 96 * - COUNT ( * ) * - - 14 AS col0, - 64
----
-354816
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-6028
SELECT + 40 DIV + 34 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6028
SELECT + 40 / + 34 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6029
SELECT DISTINCT + COALESCE ( 98, 9 + - - 42 + CASE - - 25 WHEN 44 * + AVG ( ALL + - 78 ) THEN NULL ELSE + COUNT( * ) / SUM( + + 49 ) * - AVG ( DISTINCT 98 ) END * - ( - COALESCE ( + 66, + MAX( + + 50 ) ) ) + - + ( 1 ), - 12 - 13 ) / + CASE 95 WHEN 93 * + + 28 THEN - 11 END + 83 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6029
SELECT DISTINCT + COALESCE ( 98, 9 + - - 42 + CASE - - 25 WHEN 44 * + AVG ( ALL + - 78 ) THEN NULL ELSE + COUNT ( * ) / SUM ( + + 49 ) * - AVG ( DISTINCT 98 ) END * - ( - COALESCE ( + 66, + MAX ( + + 50 ) ) ) + - + ( 1 ), - 12 - 13 ) / + CASE 95 WHEN 93 * + + 28 THEN - 11 END + 83 AS col1
----
NULL

query I rowsort
SELECT ALL - 56 - + + 92 + + 93
----
-55

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6031
SELECT ALL + CAST( NULL AS DECIMAL ) * + 87
----
NULL

skipif mysql # not compatible
query I rowsort label-6031
SELECT ALL + CAST ( NULL AS REAL ) * + 87
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6032
SELECT ALL - COUNT( - 43 )
----
-1

skipif mysql # not compatible
query I rowsort label-6032
SELECT ALL - COUNT ( - 43 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6033
SELECT 25 DIV - 71 * 3 col2
----
0

skipif mysql # not compatible
query I rowsort label-6033
SELECT 25 / - 71 * 3 col2
----
0

query I rowsort
SELECT DISTINCT - 84 * + - 55 * + COALESCE ( - ( 6 ), + + 69 ) * + - 77
----
2134440

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6035
SELECT ALL + CAST( NULL AS SIGNED ) * - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6035
SELECT ALL + CAST ( NULL AS INTEGER ) * - - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6036
SELECT ALL - COUNT( DISTINCT - + 85 )
----
-1

skipif mysql # not compatible
query I rowsort label-6036
SELECT ALL - COUNT ( DISTINCT - + 85 )
----
-1

query I rowsort
SELECT DISTINCT - ( + 10 ) AS col0
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6038
SELECT 15 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6038
SELECT 15 / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6039
SELECT 24 + ( - COUNT( * ) ) * CAST( 88 AS SIGNED ) DIV + + 72 - 12 + + 96 + 1
----
108

skipif mysql # not compatible
query I rowsort label-6039
SELECT 24 + ( - COUNT ( * ) ) * CAST ( 88 AS INTEGER ) / + + 72 - 12 + + 96 + 1
----
108

query II rowsort
SELECT ALL - 98, 44 AS col1
----
-98
44

query I rowsort
SELECT 43 + 80 AS col1
----
123

query I rowsort
SELECT 50 * + 74 AS col0
----
3700

query I rowsort
SELECT ALL 8 + + 52
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6044
SELECT ALL SUM( - 29 ) + 46 DIV - - 38
----
-28

skipif mysql # not compatible
query I rowsort label-6044
SELECT ALL SUM ( - 29 ) + 46 / - - 38
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-6045
SELECT SUM( 22 ) + + + 83 AS col2
----
105

skipif mysql # not compatible
query I rowsort label-6045
SELECT SUM ( 22 ) + + + 83 AS col2
----
105

query I rowsort
SELECT ( + 48 ) col1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-6047
SELECT - + MIN( - COALESCE ( - ( - + 73 ), + 84 * + ( + 54 ) ) )
----
73

skipif mysql # not compatible
query I rowsort label-6047
SELECT - + MIN ( - COALESCE ( - ( - + 73 ), + 84 * + ( + 54 ) ) )
----
73

query I rowsort
SELECT ALL - 42 + 37 AS col1
----
-5

query I rowsort
SELECT - ( + - 85 ) AS col0
----
85

query II rowsort
SELECT 6, 71 * - 64 + 54 AS col1
----
6
-4490

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6051
SELECT CAST( + 50 AS SIGNED ) + + 59 AS col2
----
109

skipif mysql # not compatible
query I rowsort label-6051
SELECT CAST ( + 50 AS INTEGER ) + + 59 AS col2
----
109

query II rowsort
SELECT DISTINCT + 97 AS col2, 94 + + 28 + - 40 * - - ( 75 ) + - 25
----
97
-2903

query I rowsort
SELECT ALL + CASE + + 95 WHEN + + 98 * 0 + 36 THEN - 1 WHEN - 10 THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6054
SELECT SUM( DISTINCT + 79 ) + + + 35 AS col1
----
114

skipif mysql # not compatible
query I rowsort label-6054
SELECT SUM ( DISTINCT + 79 ) + + + 35 AS col1
----
114

onlyif mysql # DIV for integer division: 
query I rowsort label-6055
SELECT DISTINCT 36 DIV 41 + 66
----
66

skipif mysql # not compatible
query I rowsort label-6055
SELECT DISTINCT 36 / 41 + 66
----
66

query I rowsort
SELECT + - 2 * - + 70
----
140

query I rowsort
SELECT + 24 + + + 72 AS col2
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6058
SELECT + CAST( - 15 AS SIGNED ) * - MIN( ALL 44 ) AS col2
----
660

skipif mysql # not compatible
query I rowsort label-6058
SELECT + CAST ( - 15 AS INTEGER ) * - MIN ( ALL 44 ) AS col2
----
660

onlyif mysql # DIV for integer division: 
query I rowsort label-6059
SELECT + 38 + + 50 - - 7 DIV + 55
----
88

skipif mysql # not compatible
query I rowsort label-6059
SELECT + 38 + + 50 - - 7 / + 55
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6060
SELECT - 7 - + + COALESCE ( 34, - COUNT( * ), - + COUNT( * ) ) AS col0, + MIN( ( + + 22 ) ) * NULLIF ( 59, - - 11 * 37 * - COUNT( * ) * 43 * - 25 + 77 + COUNT( * ) ) + - CAST( 87 AS SIGNED ) AS col0
----
-41
1211

skipif mysql # not compatible
query II rowsort label-6060
SELECT - 7 - + + COALESCE ( 34, - COUNT ( * ), - + COUNT ( * ) ) AS col0, + MIN ( ( + + 22 ) ) * NULLIF ( 59, - - 11 * 37 * - COUNT ( * ) * 43 * - 25 + 77 + COUNT ( * ) ) + - CAST ( 87 AS INTEGER ) AS col0
----
-41
1211

query I rowsort
SELECT ALL - NULLIF ( + + 54, 19 ) - 81 + - 6 * 61
----
-501

onlyif mysql # DIV for integer division: 
query I rowsort label-6062
SELECT 34 DIV - 71 + - - 22
----
22

skipif mysql # not compatible
query I rowsort label-6062
SELECT 34 / - 71 + - - 22
----
22

query I rowsort
SELECT DISTINCT CASE - 3 WHEN + 62 * 53 THEN NULL WHEN - 68 THEN + - AVG ( + 56 ) * 16 + NULLIF ( ( + + 92 ), 49 ) WHEN - 71 THEN NULL END * + - 8
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6064
SELECT + SUM( ALL COALESCE ( + 22, 45 * 1, - NULLIF ( + - 20, - + 73 + + - 6 + 71 ) DIV - 0 ) ) + - 99 + - + 7 DIV + 86 AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-6064
SELECT + SUM ( ALL COALESCE ( + 22, 45 * 1, - NULLIF ( + - 20, - + 73 + + - 6 + 71 ) / - 0 ) ) + - 99 + - + 7 / + 86 AS col1
----
-77

query I rowsort
SELECT ALL 93 * 36 col0
----
3348

query II rowsort
SELECT ALL + 73 AS col2, 41 + + 42
----
73
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6067
SELECT - COUNT( * ) + 93 DIV + 96 * + + 97 * + COUNT( DISTINCT + 70 ) * - 59
----
-1

skipif mysql # not compatible
query I rowsort label-6067
SELECT - COUNT ( * ) + 93 / + 96 * + + 97 * + COUNT ( DISTINCT + 70 ) * - 59
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6068
SELECT + 34 DIV - 48 + SUM( 78 ) * - + 19
----
-1482

skipif mysql # not compatible
query I rowsort label-6068
SELECT + 34 / - 48 + SUM ( 78 ) * - + 19
----
-1482

query I rowsort
SELECT + 3 * 48 * 41 AS col1
----
5904

onlyif mysql # DIV for integer division: 
query I rowsort label-6070
SELECT ALL - 62 DIV + 8
----
-7

skipif mysql # not compatible
query I rowsort label-6070
SELECT ALL - 62 / + 8
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-6071
SELECT CASE - 86 WHEN + - 78 THEN NULL WHEN 20 THEN - 30 * - + 70 * - - ( 50 ) + + 84 + + 96 * - COUNT( * ) + - 23 ELSE - 62 + + 68 - + + 52 END
----
-46

skipif mysql # not compatible
query I rowsort label-6071
SELECT CASE - 86 WHEN + - 78 THEN NULL WHEN 20 THEN - 30 * - + 70 * - - ( 50 ) + + 84 + + 96 * - COUNT ( * ) + - 23 ELSE - 62 + + 68 - + + 52 END
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6072
SELECT DISTINCT 90 * CAST( + 44 AS SIGNED ) + + + 45 + 29
----
4034

skipif mysql # not compatible
query I rowsort label-6072
SELECT DISTINCT 90 * CAST ( + 44 AS INTEGER ) + + + 45 + 29
----
4034

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6073
SELECT ALL 65 * - - COALESCE ( + 88, + COUNT( * ) + COALESCE ( - 99, 14 * - - MAX( - - 57 ) ) ) / + ( - CAST( NULL AS SIGNED ) ) * + 97 + - 20 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6073
SELECT ALL 65 * - - COALESCE ( + 88, + COUNT ( * ) + COALESCE ( - 99, 14 * - - MAX ( - - 57 ) ) ) / + ( - CAST ( NULL AS INTEGER ) ) * + 97 + - 20 col0
----
NULL

query I rowsort
SELECT - 73 * + - ( 98 )
----
7154

query I rowsort
SELECT ALL 79 * + - 82 * 6 col2
----
-38868

onlyif mysql # aggregate syntax: 
query I rowsort label-6076
SELECT DISTINCT 58 * 33 + - 63 + - COUNT( * ) * 41 * SUM( DISTINCT 27 ) + + - 69 AS col2
----
675

skipif mysql # not compatible
query I rowsort label-6076
SELECT DISTINCT 58 * 33 + - 63 + - COUNT ( * ) * 41 * SUM ( DISTINCT 27 ) + + - 69 AS col2
----
675

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6077
SELECT COUNT( * ) AS col1, - 92 DIV - - 53 - CAST( 80 AS SIGNED ) col2
----
1
-81

skipif mysql # not compatible
query II rowsort label-6077
SELECT COUNT ( * ) AS col1, - 92 / - - 53 - CAST ( 80 AS INTEGER ) col2
----
1
-81

query I rowsort
SELECT ALL 2 * + 12 + - 49 AS col0
----
-25

query I rowsort
SELECT - 70 * 74 AS col0
----
-5180

onlyif mysql # aggregate syntax: 
query I rowsort label-6080
SELECT - 83 * NULLIF ( - 61, + 41 * COUNT( * ) )
----
5063

skipif mysql # not compatible
query I rowsort label-6080
SELECT - 83 * NULLIF ( - 61, + 41 * COUNT ( * ) )
----
5063

onlyif mysql # aggregate syntax: 
query I rowsort label-6081
SELECT - COUNT( - 58 )
----
-1

skipif mysql # not compatible
query I rowsort label-6081
SELECT - COUNT ( - 58 )
----
-1

query I rowsort
SELECT DISTINCT + + 72 + + 17
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-6083
SELECT - 42 + - 99 DIV + + 66
----
-43

skipif mysql # not compatible
query I rowsort label-6083
SELECT - 42 + - 99 / + + 66
----
-43

query I rowsort
SELECT - - 17 * 62 * 36 + + + 34 AS col1
----
37978

onlyif mysql # aggregate syntax: 
query I rowsort label-6085
SELECT - + COUNT( DISTINCT + 88 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-6085
SELECT - + COUNT ( DISTINCT + 88 ) col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6086
SELECT + - COUNT( * ) + - ( - CAST( - 18 AS SIGNED ) ) * 74 * + - 87
----
115883

skipif mysql # not compatible
query I rowsort label-6086
SELECT + - COUNT ( * ) + - ( - CAST ( - 18 AS INTEGER ) ) * 74 * + - 87
----
115883

onlyif mysql # aggregate syntax: 
query I rowsort label-6087
SELECT DISTINCT + MIN( 56 )
----
56

skipif mysql # not compatible
query I rowsort label-6087
SELECT DISTINCT + MIN ( 56 )
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-6088
SELECT ALL - + COUNT( * ) * - 85 + + COUNT( * )
----
86

skipif mysql # not compatible
query I rowsort label-6088
SELECT ALL - + COUNT ( * ) * - 85 + + COUNT ( * )
----
86

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6089
SELECT ALL 42 AS col0, - 39 * + 52 / 40 * + 88 + + CAST( + 30 AS DECIMAL ) - + + 32 * 84 / + - CAST( NULL AS SIGNED ) AS col1
----
42
NULL

skipif mysql # not compatible
query II rowsort label-6089
SELECT ALL 42 AS col0, - 39 * + 52 / 40 * + 88 + + CAST ( + 30 AS REAL ) - + + 32 * 84 / + - CAST ( NULL AS INTEGER ) AS col1
----
42
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6090
SELECT DISTINCT + + 88 * + SUM( ALL 30 ) + 83
----
2723

skipif mysql # not compatible
query I rowsort label-6090
SELECT DISTINCT + + 88 * + SUM ( ALL 30 ) + 83
----
2723

onlyif mysql # aggregate syntax: 
query I rowsort label-6091
SELECT - NULLIF ( + COUNT( DISTINCT - 66 ), 93 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6091
SELECT - NULLIF ( + COUNT ( DISTINCT - 66 ), 93 ) AS col0
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-6092
SELECT - 34 DIV 83, 83 + - - 15 AS col2
----
0
98

skipif mysql # not compatible
query II rowsort label-6092
SELECT - 34 / 83, 83 + - - 15 AS col2
----
0
98

query I rowsort
SELECT + 39 * + 97 * - 93
----
-351819

query I rowsort
SELECT - 43 * + 98 - + NULLIF ( + 73, - COALESCE ( - + 13, 37 ) )
----
-4287

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6095
SELECT CAST( COUNT( DISTINCT 22 ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-6095
SELECT CAST ( COUNT ( DISTINCT 22 ) AS INTEGER )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6096
SELECT 66 DIV COUNT( * ) - - - 8 + - - 36
----
94

skipif mysql # not compatible
query I rowsort label-6096
SELECT 66 / COUNT ( * ) - - - 8 + - - 36
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6097
SELECT + CAST( - 31 AS SIGNED ) AS col0, NULLIF ( NULLIF ( - 98, + + 30 ), + 24 ) * + 96 + + - ( + 1 ) * + CASE - 32 WHEN 50 * + ( + COUNT( * ) ) THEN NULL WHEN - 8 THEN - COUNT( * ) - + COALESCE ( - COUNT( * ), + - 98 * + 34 + 18 + - 51 / 64 * ( - AVG ( + 3 ) ) ) * + + CAST( NULL AS SIGNED ) * - - 65 END AS col0
----
-31
NULL

skipif mysql # not compatible
query II rowsort label-6097
SELECT + CAST ( - 31 AS INTEGER ) AS col0, NULLIF ( NULLIF ( - 98, + + 30 ), + 24 ) * + 96 + + - ( + 1 ) * + CASE - 32 WHEN 50 * + ( + COUNT ( * ) ) THEN NULL WHEN - 8 THEN - COUNT ( * ) - + COALESCE ( - COUNT ( * ), + - 98 * + 34 + 18 + - 51 / 64 * ( - AVG ( + 3 ) ) ) * + + CAST ( NULL AS INTEGER ) * - - 65 END AS col0
----
-31
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6098
SELECT CAST( + 3 AS SIGNED ) AS col1, COUNT( * ) DIV + 5
----
3
0

skipif mysql # not compatible
query II rowsort label-6098
SELECT CAST ( + 3 AS INTEGER ) AS col1, COUNT ( * ) / + 5
----
3
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6099
SELECT ALL - COALESCE ( + COALESCE ( + + 67, + + 43 + + + 83 ), + 75 DIV 77 * - COUNT( * ) + - 1 + + 36 + + 83 + - CASE - + 14 WHEN - - ( + 16 ) THEN + 9 * - - 7 ELSE + - 76 * + CAST( + COALESCE ( NULLIF ( + 10, + - 1 ), + 78 + 12 ) AS SIGNED ) + + 57 + - 60 + + ( + 19 ) + + 14 END + - 4 - + COALESCE ( + 20, CAST( NULL AS SIGNED ) ) DIV 78 ) DIV 88 + 13
----
13

skipif mysql # not compatible
query I rowsort label-6099
SELECT ALL - COALESCE ( + COALESCE ( + + 67, + + 43 + + + 83 ), + 75 / 77 * - COUNT ( * ) + - 1 + + 36 + + 83 + - CASE - + 14 WHEN - - ( + 16 ) THEN + 9 * - - 7 ELSE + - 76 * + CAST ( + COALESCE ( NULLIF ( + 10, + - 1 ), + 78 + 12 ) AS INTEGER ) + + 57 + - 60 + + ( + 19 ) + + 14 END + - 4 - + COALESCE ( + 20, CAST ( NULL AS INTEGER ) ) / 78 ) / 88 + 13
----
13

query I rowsort
SELECT + 80 * + 55 * 12 col1
----
52800

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6101
SELECT ALL 3 * - 10, 42 + - - ( + ( + CAST( ( - + 9 ) AS SIGNED ) ) ) AS col0
----
-30
33

skipif mysql # not compatible
query II rowsort label-6101
SELECT ALL 3 * - 10, 42 + - - ( + ( + CAST ( ( - + 9 ) AS INTEGER ) ) ) AS col0
----
-30
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6102
SELECT + COALESCE ( + CAST( NULL AS SIGNED ), - 1, + 54 + - + 27 ) * 77 - - CAST( + 93 AS SIGNED )
----
16

skipif mysql # not compatible
query I rowsort label-6102
SELECT + COALESCE ( + CAST ( NULL AS INTEGER ), - 1, + 54 + - + 27 ) * 77 - - CAST ( + 93 AS INTEGER )
----
16

query I rowsort
SELECT ALL 38 * + + 24 AS col0
----
912

onlyif mysql # DIV for integer division: 
query I rowsort label-6104
SELECT DISTINCT 54 DIV + 12 + - - 4
----
8

skipif mysql # not compatible
query I rowsort label-6104
SELECT DISTINCT 54 / + 12 + - - 4
----
8

query II rowsort
SELECT ( + 69 ), 1 AS col0
----
69
1

query I rowsort
SELECT ALL 29 * + 15 + + 56 col0
----
491

query I rowsort
SELECT + 42 * - 16 + - 11 AS col2
----
-683

query I rowsort
SELECT 4 * 68 * - 8 + - 82 + - + 3
----
-2261

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6109
SELECT - - 57 * + - 24 + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6109
SELECT - - 57 * + - 24 + - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6110
SELECT + CAST( + NULLIF ( - 86, - - 85 * + SUM( - + 33 ) ) AS SIGNED ) AS col1
----
-86

skipif mysql # not compatible
query I rowsort label-6110
SELECT + CAST ( + NULLIF ( - 86, - - 85 * + SUM ( - + 33 ) ) AS INTEGER ) AS col1
----
-86

query I rowsort
SELECT + + 87 + + ( - 39 )
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6112
SELECT ALL + 16 * - 65 + 28 + + 90 - - 50 + 19 * CAST( NULL AS SIGNED ) - + + 70 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6112
SELECT ALL + 16 * - 65 + 28 + + 90 - - 50 + 19 * CAST ( NULL AS INTEGER ) - + + 70 AS col2
----
NULL

query I rowsort
SELECT + + 96 * + - 14 * + - 12 AS col0
----
16128

query I rowsort
SELECT - 17 + + 5
----
-12

query I rowsort
SELECT ALL - 10 * - + 75 AS col0
----
750

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6116
SELECT - CAST( + 68 AS SIGNED ) * - MIN( - 4 ) AS col0
----
-272

skipif mysql # not compatible
query I rowsort label-6116
SELECT - CAST ( + 68 AS INTEGER ) * - MIN ( - 4 ) AS col0
----
-272

onlyif mysql # aggregate syntax: 
query I rowsort label-6117
SELECT 31 * SUM( 47 )
----
1457

skipif mysql # not compatible
query I rowsort label-6117
SELECT 31 * SUM ( 47 )
----
1457

query II rowsort
SELECT 34 * + - 72, 6 * + - 11 AS col0
----
-2448
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-6119
SELECT + MIN( DISTINCT 88 ) * - - 36 AS col2
----
3168

skipif mysql # not compatible
query I rowsort label-6119
SELECT + MIN ( DISTINCT 88 ) * - - 36 AS col2
----
3168

query I rowsort
SELECT - 42 - + 99
----
-141

onlyif mysql # aggregate syntax: 
query I rowsort label-6121
SELECT DISTINCT - COALESCE ( + - 15, COUNT( * ), 84, 31 + + 51 ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-6121
SELECT DISTINCT - COALESCE ( + - 15, COUNT ( * ), 84, 31 + + 51 ) AS col2
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6122
SELECT ALL MAX( ALL + 14 ) * 40 DIV 41 + - + 88
----
-75

skipif mysql # not compatible
query I rowsort label-6122
SELECT ALL MAX ( ALL + 14 ) * 40 / 41 + - + 88
----
-75

query I rowsort
SELECT 44 + + ( 96 ) AS col0
----
140

query I rowsort
SELECT 24 + - 68 * + 23 AS col2
----
-1540

onlyif mysql # DIV for integer division: 
query I rowsort label-6125
SELECT 63 DIV + 96 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6125
SELECT 63 / + 96 AS col0
----
0

query I rowsort
SELECT 34 + - 43 AS col0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6127
SELECT MAX( DISTINCT + - 21 ) - + - 53 * - 5 AS col2
----
-286

skipif mysql # not compatible
query I rowsort label-6127
SELECT MAX ( DISTINCT + - 21 ) - + - 53 * - 5 AS col2
----
-286

query I rowsort
SELECT ALL - 7 + - 14 + 33 * + 30 * + - NULLIF ( 7, + 79 )
----
-6951

query I rowsort
SELECT 43 + + 28
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6130
SELECT ALL - 35 + + - COALESCE ( + 40, + MAX( 63 ) + - COUNT( * ) - + - 3 ) + CAST( NULL AS SIGNED ) / + - COALESCE ( + COUNT( * ), + 5 ) + + + 50 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6130
SELECT ALL - 35 + + - COALESCE ( + 40, + MAX ( 63 ) + - COUNT ( * ) - + - 3 ) + CAST ( NULL AS INTEGER ) / + - COALESCE ( + COUNT ( * ), + 5 ) + + + 50 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6131
SELECT DISTINCT + CASE + 63 WHEN + 76 / - + 21 + - - 51 THEN - + 8 ELSE NULL END * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6131
SELECT DISTINCT + CASE + 63 WHEN + 76 / - + 21 + - - 51 THEN - + 8 ELSE NULL END * - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6132
SELECT DISTINCT + 62 * + COUNT( * ) AS col1
----
62

skipif mysql # not compatible
query I rowsort label-6132
SELECT DISTINCT + 62 * + COUNT ( * ) AS col1
----
62

query I rowsort
SELECT 69 + 25 AS col0
----
94

query I rowsort
SELECT ALL + 36 + NULLIF ( + - 84, 64 * - 31 / - - 97 ) * + - 29 AS col2
----
2472

query I rowsort
SELECT 49 * + 24 AS col1
----
1176

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6136
SELECT 8 DIV 17 DIV - COUNT( * ) * 44 + - 98
----
-98

skipif mysql # not compatible
query I rowsort label-6136
SELECT 8 / 17 / - COUNT ( * ) * 44 + - 98
----
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6137
SELECT - 88 DIV 35 + + 62 * - COUNT( * ) DIV COUNT( * )
----
-64

skipif mysql # not compatible
query I rowsort label-6137
SELECT - 88 / 35 + + 62 * - COUNT ( * ) / COUNT ( * )
----
-64

query II rowsort
SELECT ALL - 42 AS col0, 63
----
-42
63

onlyif mysql # aggregate syntax: 
query II rowsort label-6139
SELECT DISTINCT - 46, - SUM( ALL + 52 ) col2
----
-46
-52

skipif mysql # not compatible
query II rowsort label-6139
SELECT DISTINCT - 46, - SUM ( ALL + 52 ) col2
----
-46
-52

query I rowsort
SELECT ALL 18 - - 73
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-6141
SELECT + - 77 AS col0, + COUNT( * )
----
-77
1

skipif mysql # not compatible
query II rowsort label-6141
SELECT + - 77 AS col0, + COUNT ( * )
----
-77
1

onlyif mysql # aggregate syntax: 
query III rowsort label-6142
SELECT + 10 + + CASE + ( - 15 ) WHEN MIN( + - 47 ) THEN + 49 ELSE NULL END + 65, 15 AS col2, + ( 37 ) * + 67 AS col1
----
NULL
15
2479

skipif mysql # not compatible
query III rowsort label-6142
SELECT + 10 + + CASE + ( - 15 ) WHEN MIN ( + - 47 ) THEN + 49 ELSE NULL END + 65, 15 AS col2, + ( 37 ) * + 67 AS col1
----
NULL
15
2479

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6143
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + - 60
----
NULL

skipif mysql # not compatible
query I rowsort label-6143
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + - 60
----
NULL

query I rowsort
SELECT ALL 85 - 41 + - + 41 + + 94 AS col0
----
97

query II rowsort
SELECT + 47 AS col0, 86 * COALESCE ( - 77, 84 + - 82 ) - + 24 AS col1
----
47
-6646

query I rowsort
SELECT 46 * - 96
----
-4416

onlyif mysql # aggregate syntax: 
query I rowsort label-6147
SELECT COUNT( * ) - + 12 AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-6147
SELECT COUNT ( * ) - + 12 AS col0
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6148
SELECT - - CAST( + 92 AS SIGNED )
----
92

skipif mysql # not compatible
query I rowsort label-6148
SELECT - - CAST ( + 92 AS INTEGER )
----
92

query I rowsort
SELECT DISTINCT + - COALESCE ( - 87, - + 17 * - + 42 + + - 87 ) * 1 + + 72 AS col2
----
159

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6150
SELECT DISTINCT 92 + + CAST( + 96 AS SIGNED ) DIV + 21
----
96

skipif mysql # not compatible
query I rowsort label-6150
SELECT DISTINCT 92 + + CAST ( + 96 AS INTEGER ) / + 21
----
96

query I rowsort
SELECT NULLIF ( 15, + 85 ) + + + 86
----
101

query I rowsort
SELECT ALL + 52 + + 29
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6153
SELECT - COALESCE ( + - 46, 47 * 9 - + 64 + - 13, + 47 * - 50 * + 1 * + - COUNT( ALL - 80 ) - - 54 * - 29 DIV + + 33 )
----
46

skipif mysql # not compatible
query I rowsort label-6153
SELECT - COALESCE ( + - 46, 47 * 9 - + 64 + - 13, + 47 * - 50 * + 1 * + - COUNT ( ALL - 80 ) - - 54 * - 29 / + + 33 )
----
46

query I rowsort
SELECT DISTINCT - ( - 98 ) * 71 AS col1
----
6958

onlyif mysql # aggregate syntax: 
query II rowsort label-6155
SELECT 69 + 58 AS col1, COUNT( - 39 )
----
127
1

skipif mysql # not compatible
query II rowsort label-6155
SELECT 69 + 58 AS col1, COUNT ( - 39 )
----
127
1

query II rowsort
SELECT 43 * 59 AS col0, 27 * + 48
----
2537
1296

query I rowsort
SELECT DISTINCT - 22 + 65 AS col0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-6158
SELECT DISTINCT + COUNT( * ) * + - 16
----
-16

skipif mysql # not compatible
query I rowsort label-6158
SELECT DISTINCT + COUNT ( * ) * + - 16
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-6159
SELECT ALL - 4 - - - MAX( DISTINCT + 31 ) + 62 + - 58 + CASE + - 60 WHEN 51 / 40 THEN NULLIF ( 48, - 75 * - 56 * - 27 * 91 * + ( + COALESCE ( + ( + COUNT( * ) ), - 37, + + 11 + 92 * ( - COUNT( * ) ) ) ) * 28 - ( 82 ) + + 24 ) * + 65 WHEN - + 28 + + + 82 * - COALESCE ( - NULLIF ( + - 73, - 72 * 17 + 40 ), + AVG ( DISTINCT - 10 ) * + 30 ) * - 35 - ( + NULLIF ( 97, COALESCE ( - MIN( DISTINCT 95 ), ( - 93 ) * - COALESCE ( 92, AVG ( ALL - 55 ), - 82 ) ) * 56 ) ) THEN NULL ELSE NULL END * 67 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6159
SELECT ALL - 4 - - - MAX ( DISTINCT + 31 ) + 62 + - 58 + CASE + - 60 WHEN 51 / 40 THEN NULLIF ( 48, - 75 * - 56 * - 27 * 91 * + ( + COALESCE ( + ( + COUNT ( * ) ), - 37, + + 11 + 92 * ( - COUNT ( * ) ) ) ) * 28 - ( 82 ) + + 24 ) * + 65 WHEN - + 28 + + + 82 * - COALESCE ( - NULLIF ( + - 73, - 72 * 17 + 40 ), + AVG ( DISTINCT - 10 ) * + 30 ) * - 35 - ( + NULLIF ( 97, COALESCE ( - MIN ( DISTINCT 95 ), ( - 93 ) * - COALESCE ( 92, AVG ( ALL - 55 ), - 82 ) ) * 56 ) ) THEN NULL ELSE NULL END * 67 AS col1
----
NULL

query I rowsort
SELECT COALESCE ( + 61, + 17 * - 93 )
----
61

query I rowsort
SELECT + 96 * + 21 - - 36 + - + 56 * + 62
----
-1420

query I rowsort
SELECT DISTINCT + 31 * ( - 11 ) * - 20 * 84 + 48 + + 51 + - 34
----
572945

onlyif mysql # DIV for integer division: 
query I rowsort label-6163
SELECT 41 DIV - 95 - + + ( + 39 ) * + + 62 * + 85
----
-205530

skipif mysql # not compatible
query I rowsort label-6163
SELECT 41 / - 95 - + + ( + 39 ) * + + 62 * + 85
----
-205530

query I rowsort
SELECT ALL 33 * 41 - + 66
----
1287

onlyif mysql # aggregate syntax: 
query I rowsort label-6165
SELECT 84 * - COUNT( * ) AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-6165
SELECT 84 * - COUNT ( * ) AS col0
----
-84

query I rowsort
SELECT ALL + 90 * 95
----
8550

onlyif mysql # aggregate syntax: 
query I rowsort label-6167
SELECT + + COUNT( * ) - 58
----
-57

skipif mysql # not compatible
query I rowsort label-6167
SELECT + + COUNT ( * ) - 58
----
-57

query I rowsort
SELECT ALL + ( 43 ) AS col1
----
43

query I rowsort
SELECT + - 30 * 97 AS col0
----
-2910

query I rowsort
SELECT + 3 * 22 + + 67 AS col1
----
133

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6171
SELECT ALL + CAST( + 23 AS SIGNED ) AS col0, + 46
----
23
46

skipif mysql # not compatible
query II rowsort label-6171
SELECT ALL + CAST ( + 23 AS INTEGER ) AS col0, + 46
----
23
46

query I rowsort
SELECT + 35 - 2 - - + 42 AS col2
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6173
SELECT - SUM( - 38 ) + - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6173
SELECT - SUM ( - 38 ) + - CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6174
SELECT ALL - - 94 + COUNT( ALL + 62 ) * - 83 AS col1
----
11

skipif mysql # not compatible
query I rowsort label-6174
SELECT ALL - - 94 + COUNT ( ALL + 62 ) * - 83 AS col1
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-6175
SELECT MAX( 29 )
----
29

skipif mysql # not compatible
query I rowsort label-6175
SELECT MAX ( 29 )
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-6176
SELECT ALL + 67 + COUNT( * ) + 44 AS col1
----
112

skipif mysql # not compatible
query I rowsort label-6176
SELECT ALL + 67 + COUNT ( * ) + 44 AS col1
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-6177
SELECT DISTINCT 80 + - + COUNT( * ) * + - 10
----
90

skipif mysql # not compatible
query I rowsort label-6177
SELECT DISTINCT 80 + - + COUNT ( * ) * + - 10
----
90

query II rowsort
SELECT + - 28 + - 42, - 10 * + - 88 AS col1
----
-70
880

onlyif mysql # aggregate syntax: 
query I rowsort label-6179
SELECT + CASE - ( + 29 ) WHEN + 8 / + 93 + - 43 * + 3 - - 63 + 0 + + 34 * - 93 THEN SUM( - NULLIF ( - + 36, - 18 ) ) WHEN 39 * + 30 + + - 63 THEN + - 2 WHEN - 73 + - 47 + 22 THEN - ( - + MIN( DISTINCT + + 98 ) ) ELSE NULLIF ( 12, 7 + + 80 ) * + 74 END + 87 + - COUNT( * )
----
974

skipif mysql # not compatible
query I rowsort label-6179
SELECT + CASE - ( + 29 ) WHEN + 8 / + 93 + - 43 * + 3 - - 63 + 0 + + 34 * - 93 THEN SUM ( - NULLIF ( - + 36, - 18 ) ) WHEN 39 * + 30 + + - 63 THEN + - 2 WHEN - 73 + - 47 + 22 THEN - ( - + MIN ( DISTINCT + + 98 ) ) ELSE NULLIF ( 12, 7 + + 80 ) * + 74 END + 87 + - COUNT ( * )
----
974

onlyif mysql # aggregate syntax: 
query I rowsort label-6180
SELECT + CASE + 9 WHEN 47 THEN + COUNT( * ) + 51 ELSE NULL END + + 16 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6180
SELECT + CASE + 9 WHEN 47 THEN + COUNT ( * ) + 51 ELSE NULL END + + 16 col2
----
NULL

query I rowsort
SELECT ALL 16 + + 13 col2
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6182
SELECT ALL 47, SUM( + 63 ) * - CAST( - - 32 AS SIGNED ) AS col0
----
47
-2016

skipif mysql # not compatible
query II rowsort label-6182
SELECT ALL 47, SUM ( + 63 ) * - CAST ( - - 32 AS INTEGER ) AS col0
----
47
-2016

query I rowsort
SELECT + 57 * - 80 AS col1
----
-4560

query I rowsort
SELECT ALL - 8 * - - 18
----
-144

query II rowsort
SELECT + 74 + + 37 * + + 89, + 19 * + 66 AS col0
----
3367
1254

query I rowsort
SELECT - CASE ( + + 14 ) WHEN + 79 THEN - 40 * + 82 + - 30 + 83 * - 41 + + + 86 + + - 72 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6187
SELECT + MAX( + 43 ) + - ( - + 80 )
----
123

skipif mysql # not compatible
query I rowsort label-6187
SELECT + MAX ( + 43 ) + - ( - + 80 )
----
123

query I rowsort
SELECT + 38 + - - 47
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-6189
SELECT ALL + 45 * - CASE + 81 WHEN CASE 67 WHEN - + 29 THEN NULL WHEN - 44 THEN NULL ELSE + ( CASE - 6 WHEN 18 * 97 THEN - COUNT( * ) ELSE + 59 + - 38 END ) END THEN - 87 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6189
SELECT ALL + 45 * - CASE + 81 WHEN CASE 67 WHEN - + 29 THEN NULL WHEN - 44 THEN NULL ELSE + ( CASE - 6 WHEN 18 * 97 THEN - COUNT ( * ) ELSE + 59 + - 38 END ) END THEN - 87 ELSE NULL END
----
NULL

query I rowsort
SELECT - 20 - ( + + 39 ) AS col1
----
-59

query I rowsort
SELECT DISTINCT 38 * + 98
----
3724

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6192
SELECT - CAST( NULL AS SIGNED ), 79 AS col1
----
NULL
79

skipif mysql # not compatible
query II rowsort label-6192
SELECT - CAST ( NULL AS INTEGER ), 79 AS col1
----
NULL
79

query I rowsort
SELECT ALL 73 * + 3 AS col0
----
219

query I rowsort
SELECT - 61 + + 36
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-6195
SELECT - COUNT( - 36 ) * - ( + - 97 ) + + - 28 + + 95 * + 71
----
6620

skipif mysql # not compatible
query I rowsort label-6195
SELECT - COUNT ( - 36 ) * - ( + - 97 ) + + - 28 + + 95 * + 71
----
6620

onlyif mysql # aggregate syntax: 
query I rowsort label-6196
SELECT - COUNT( * ) * + - 66 * 45 * - 51 AS col1
----
-151470

skipif mysql # not compatible
query I rowsort label-6196
SELECT - COUNT ( * ) * + - 66 * 45 * - 51 AS col1
----
-151470

onlyif mysql # aggregate syntax: 
query I rowsort label-6197
SELECT ALL + + 35 * COUNT( * ) + 96 + - + 66 AS col2
----
65

skipif mysql # not compatible
query I rowsort label-6197
SELECT ALL + + 35 * COUNT ( * ) + 96 + - + 66 AS col2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-6198
SELECT DISTINCT + CASE + 65 WHEN - 77 + + - 28 + - 55 + + 89 * + COUNT( * ) / - - COUNT( * ) THEN - 31 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6198
SELECT DISTINCT + CASE + 65 WHEN - 77 + + - 28 + - 55 + + 89 * + COUNT ( * ) / - - COUNT ( * ) THEN - 31 END col2
----
NULL

query I rowsort
SELECT - + 56 * + ( 68 ) - 23
----
-3831

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6200
SELECT DISTINCT - 24 * + - ( - + CASE 48 WHEN 62 THEN 39 * 11 / + 15 WHEN COUNT( * ) * + CASE 88 WHEN + - COUNT( * ) * + + COALESCE ( - 87, + 20, + COUNT( * ) * + - 33 * + - 6 * - 2 / + COUNT( * ), - + 62 ) + + - 55 THEN NULL WHEN + CAST( 70 AS SIGNED ) * + + 1 * - 28 + - - COALESCE ( 66, 82 * 6 * COUNT( * ) * COUNT( * ) ) - + - 18 + - + 30 * 5 / + 56 THEN NULL ELSE + 59 END - 1 THEN NULL END ) + 77 + COUNT( - 93 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6200
SELECT DISTINCT - 24 * + - ( - + CASE 48 WHEN 62 THEN 39 * 11 / + 15 WHEN COUNT ( * ) * + CASE 88 WHEN + - COUNT ( * ) * + + COALESCE ( - 87, + 20, + COUNT ( * ) * + - 33 * + - 6 * - 2 / + COUNT ( * ), - + 62 ) + + - 55 THEN NULL WHEN + CAST ( 70 AS INTEGER ) * + + 1 * - 28 + - - COALESCE ( 66, 82 * 6 * COUNT ( * ) * COUNT ( * ) ) - + - 18 + - + 30 * 5 / + 56 THEN NULL ELSE + 59 END - 1 THEN NULL END ) + 77 + COUNT ( - 93 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6201
SELECT ALL + 19, 61 * - CAST( NULL AS SIGNED ) AS col0
----
19
NULL

skipif mysql # not compatible
query II rowsort label-6201
SELECT ALL + 19, 61 * - CAST ( NULL AS INTEGER ) AS col0
----
19
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6202
SELECT + + SUM( DISTINCT + 80 )
----
80

skipif mysql # not compatible
query I rowsort label-6202
SELECT + + SUM ( DISTINCT + 80 )
----
80

onlyif mysql # aggregate syntax: 
query II rowsort label-6203
SELECT ALL + CASE 13 WHEN - + 74 + - - 51 THEN NULL WHEN 69 THEN - 19 END * COUNT( * ) + 15, - 3 * + + 39 AS col1
----
NULL
-117

skipif mysql # not compatible
query II rowsort label-6203
SELECT ALL + CASE 13 WHEN - + 74 + - - 51 THEN NULL WHEN 69 THEN - 19 END * COUNT ( * ) + 15, - 3 * + + 39 AS col1
----
NULL
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-6204
SELECT ALL 96 * NULLIF ( - - 8, 84 / - MAX( - 54 ) ) * - - ( + - 96 ) * 87 * + 83 + - COUNT( * ) * 6 AS col0
----
-532389894

skipif mysql # not compatible
query I rowsort label-6204
SELECT ALL 96 * NULLIF ( - - 8, 84 / - MAX ( - 54 ) ) * - - ( + - 96 ) * 87 * + 83 + - COUNT ( * ) * 6 AS col0
----
-532389894

onlyif mysql # aggregate syntax: 
query II rowsort label-6205
SELECT - ( 41 ) + - 36 + MIN( 61 ) AS col2, 48 AS col2
----
-16
48

skipif mysql # not compatible
query II rowsort label-6205
SELECT - ( 41 ) + - 36 + MIN ( 61 ) AS col2, 48 AS col2
----
-16
48

onlyif mysql # aggregate syntax: 
query I rowsort label-6206
SELECT ALL - - 52 * + 63 + CASE COUNT( * ) WHEN - + 52 THEN - 73 * + + COUNT( ALL 11 ) ELSE + 12 END
----
3288

skipif mysql # not compatible
query I rowsort label-6206
SELECT ALL - - 52 * + 63 + CASE COUNT ( * ) WHEN - + 52 THEN - 73 * + + COUNT ( ALL 11 ) ELSE + 12 END
----
3288

onlyif mysql # DIV for integer division: 
query I rowsort label-6207
SELECT - 66 - - ( - 22 ) DIV + 91 AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-6207
SELECT - 66 - - ( - 22 ) / + 91 AS col2
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6208
SELECT - - CASE + 72 WHEN + 54 * - - CAST( - + 82 AS SIGNED ) THEN 85 END * 57 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6208
SELECT - - CASE + 72 WHEN + 54 * - - CAST ( - + 82 AS INTEGER ) THEN 85 END * 57 AS col0
----
NULL

query I rowsort
SELECT - 79 - 3 + - - 86 AS col0
----
4

query I rowsort
SELECT + 49 * + + 60 + - + 4
----
2936

query I rowsort
SELECT ALL 75 * 55 AS col0
----
4125

onlyif mysql # aggregate syntax: 
query I rowsort label-6212
SELECT - MIN( ALL - + ( - - 80 ) )
----
80

skipif mysql # not compatible
query I rowsort label-6212
SELECT - MIN ( ALL - + ( - - 80 ) )
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6213
SELECT ALL CAST( 67 AS SIGNED ) AS col1
----
67

skipif mysql # not compatible
query I rowsort label-6213
SELECT ALL CAST ( 67 AS INTEGER ) AS col1
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6214
SELECT DISTINCT - 29 * - 35 - + COALESCE ( 83, - + 96 * - CASE - 93 WHEN - 35 * - 42 + - 65 - + 96 * - 2 * + 34 * + CAST( NULL AS SIGNED ) * - + 96 - + NULLIF ( - + 25, - COUNT( * ) + - 54 ) THEN - 13 * + 26 ELSE + - ( - 71 ) END * - 59 + + - 16, + - 76 - NULLIF ( + - 52, + + 5 ) )
----
932

skipif mysql # not compatible
query I rowsort label-6214
SELECT DISTINCT - 29 * - 35 - + COALESCE ( 83, - + 96 * - CASE - 93 WHEN - 35 * - 42 + - 65 - + 96 * - 2 * + 34 * + CAST ( NULL AS INTEGER ) * - + 96 - + NULLIF ( - + 25, - COUNT ( * ) + - 54 ) THEN - 13 * + 26 ELSE + - ( - 71 ) END * - 59 + + - 16, + - 76 - NULLIF ( + - 52, + + 5 ) )
----
932

query I rowsort
SELECT - COALESCE ( + 21, - 1 ) AS col1
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-6216
SELECT + MIN( - - 57 ) + MIN( ALL + + 83 )
----
140

skipif mysql # not compatible
query I rowsort label-6216
SELECT + MIN ( - - 57 ) + MIN ( ALL + + 83 )
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-6217
SELECT DISTINCT 26 * + 22 - COUNT( + - 17 )
----
571

skipif mysql # not compatible
query I rowsort label-6217
SELECT DISTINCT 26 * + 22 - COUNT ( + - 17 )
----
571

query I rowsort
SELECT ALL - 49 * - - 72 AS col2
----
-3528

onlyif mysql # aggregate syntax: 
query I rowsort label-6219
SELECT - MIN( - 54 ) AS col0
----
54

skipif mysql # not compatible
query I rowsort label-6219
SELECT - MIN ( - 54 ) AS col0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-6220
SELECT + 21 + - COUNT( * ) + + 5 AS col1
----
25

skipif mysql # not compatible
query I rowsort label-6220
SELECT + 21 + - COUNT ( * ) + + 5 AS col1
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6221
SELECT DISTINCT - 32 * + CAST( NULL AS SIGNED ) * + 24 * CAST( + 23 AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6221
SELECT DISTINCT - 32 * + CAST ( NULL AS INTEGER ) * + 24 * CAST ( + 23 AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6222
SELECT ALL 61 DIV + 47, 92 * 36 * + CAST( NULL AS SIGNED ) AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-6222
SELECT ALL 61 / + 47, 92 * 36 * + CAST ( NULL AS INTEGER ) AS col2
----
1
NULL

query I rowsort
SELECT + 67 * + 14
----
938

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6224
SELECT - CAST( - 9 AS SIGNED ) AS col2
----
9

skipif mysql # not compatible
query I rowsort label-6224
SELECT - CAST ( - 9 AS INTEGER ) AS col2
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6225
SELECT ALL 25 DIV + MIN( ALL - 79 )
----
0

skipif mysql # not compatible
query I rowsort label-6225
SELECT ALL 25 / + MIN ( ALL - 79 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6226
SELECT 77 * + MIN( DISTINCT 69 )
----
5313

skipif mysql # not compatible
query I rowsort label-6226
SELECT 77 * + MIN ( DISTINCT 69 )
----
5313

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6227
SELECT COUNT( * ) * 24 / - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6227
SELECT COUNT ( * ) * 24 / - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT 63, 59 col2
----
63
59

query I rowsort
SELECT DISTINCT - 41 * + 83 AS col2
----
-3403

onlyif mysql # aggregate syntax: 
query I rowsort label-6230
SELECT ALL COUNT( + ( - + 53 ) ) + + 58 AS col1
----
59

skipif mysql # not compatible
query I rowsort label-6230
SELECT ALL COUNT ( + ( - + 53 ) ) + + 58 AS col1
----
59

query I rowsort
SELECT + 23 * - 81 - + 26 AS col0
----
-1889

onlyif mysql # DIV for integer division: 
query I rowsort label-6232
SELECT - ( 0 ) DIV + - 14
----
0

skipif mysql # not compatible
query I rowsort label-6232
SELECT - ( 0 ) / + - 14
----
0

query II rowsort
SELECT DISTINCT - 13, 55 * + 31 AS col2
----
-13
1705

query I rowsort
SELECT DISTINCT 13 + - 4
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6235
SELECT ALL + 22 + + SUM( ALL + - 21 )
----
1

skipif mysql # not compatible
query I rowsort label-6235
SELECT ALL + 22 + + SUM ( ALL + - 21 )
----
1

query II rowsort
SELECT + + 47 AS col2, 67 AS col1
----
47
67

query II rowsort
SELECT + - 54 AS col1, ( - - 80 ) AS col2
----
-54
80

onlyif mysql # aggregate syntax: 
query II rowsort label-6238
SELECT - COUNT( DISTINCT + 48 ) - + 50 + + COUNT( * ), - 71 AS col2
----
-50
-71

skipif mysql # not compatible
query II rowsort label-6238
SELECT - COUNT ( DISTINCT + 48 ) - + 50 + + COUNT ( * ), - 71 AS col2
----
-50
-71

query II rowsort
SELECT 42 AS col2, + 73 AS col0
----
42
73

query I rowsort
SELECT - 11 * 17 * 77 * + 11 + - 28 AS col1
----
-158417

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6241
SELECT 1 * + 33 + - + 95 + + - CAST( NULL AS SIGNED ) * + 7 * + - 58
----
NULL

skipif mysql # not compatible
query I rowsort label-6241
SELECT 1 * + 33 + - + 95 + + - CAST ( NULL AS INTEGER ) * + 7 * + - 58
----
NULL

query I rowsort
SELECT - 68 * + + 37 + - 54 * 90 AS col0
----
-7376

onlyif mysql # aggregate syntax: 
query II rowsort label-6243
SELECT ALL - + COUNT( * ), SUM( DISTINCT + - 67 ) AS col1
----
-1
-67

skipif mysql # not compatible
query II rowsort label-6243
SELECT ALL - + COUNT ( * ), SUM ( DISTINCT + - 67 ) AS col1
----
-1
-67

onlyif mysql # aggregate syntax: 
query III rowsort label-6244
SELECT + COUNT( * ) AS col1, 72 col1, + 24
----
1
72
24

skipif mysql # not compatible
query III rowsort label-6244
SELECT + COUNT ( * ) AS col1, 72 col1, + 24
----
1
72
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6245
SELECT + 77 + - 3 + - ( - ( + 47 ) ) DIV 53 * SUM( DISTINCT 32 ) DIV - - 93 * - + 1 + + 68 + + CAST( + ( - CAST( 15 AS SIGNED ) ) AS SIGNED )
----
127

skipif mysql # not compatible
query I rowsort label-6245
SELECT + 77 + - 3 + - ( - ( + 47 ) ) / 53 * SUM ( DISTINCT 32 ) / - - 93 * - + 1 + + 68 + + CAST ( + ( - CAST ( 15 AS INTEGER ) ) AS INTEGER )
----
127

query I rowsort
SELECT ALL - 45 - + - 42
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6247
SELECT + 86 * 14 * - + 87 + + - COALESCE ( ( - 6 ), 10 DIV + 75 * 37 ) + - + ( - - 32 ) DIV + SUM( + 55 ) + 94
----
-104648

skipif mysql # not compatible
query I rowsort label-6247
SELECT + 86 * 14 * - + 87 + + - COALESCE ( ( - 6 ), 10 / + 75 * 37 ) + - + ( - - 32 ) / + SUM ( + 55 ) + 94
----
-104648

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6248
SELECT ALL - + CAST( 29 AS SIGNED ) AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-6248
SELECT ALL - + CAST ( 29 AS INTEGER ) AS col1
----
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-6249
SELECT DISTINCT - 35 - 72 AS col2, + 81 - COUNT( * ) AS col1
----
-107
80

skipif mysql # not compatible
query II rowsort label-6249
SELECT DISTINCT - 35 - 72 AS col2, + 81 - COUNT ( * ) AS col1
----
-107
80

onlyif mysql # aggregate syntax: 
query I rowsort label-6250
SELECT 43 * + COUNT( * ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-6250
SELECT 43 * + COUNT ( * ) AS col0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-6251
SELECT 59 + + + 21 + - - COUNT( * ) + 64 + + 10 + + - 69
----
86

skipif mysql # not compatible
query I rowsort label-6251
SELECT 59 + + + 21 + - - COUNT ( * ) + 64 + + 10 + + - 69
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6252
SELECT 68 + - - ( - CASE + 8 WHEN - + 67 * 33 + + NULLIF ( - CAST( NULL AS SIGNED ), 20 / - 24 ) + + + COUNT( - + 83 ) * 55 - - 54 + + 73 * 38 THEN + - 71 / - + 91 - + 91 * 14 / + 55 ELSE NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6252
SELECT 68 + - - ( - CASE + 8 WHEN - + 67 * 33 + + NULLIF ( - CAST ( NULL AS INTEGER ), 20 / - 24 ) + + + COUNT ( - + 83 ) * 55 - - 54 + + 73 * 38 THEN + - 71 / - + 91 - + 91 * 14 / + 55 ELSE NULL END ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6253
SELECT DISTINCT + 72 DIV ( - - 44 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-6253
SELECT DISTINCT + 72 / ( - - 44 ) col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6254
SELECT 78 + - + 41 DIV + 40
----
77

skipif mysql # not compatible
query I rowsort label-6254
SELECT 78 + - + 41 / + 40
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6255
SELECT DISTINCT 20 * + 38 * - COUNT( * ) * SUM( 52 ) col0
----
-39520

skipif mysql # not compatible
query I rowsort label-6255
SELECT DISTINCT 20 * + 38 * - COUNT ( * ) * SUM ( 52 ) col0
----
-39520

query I rowsort
SELECT 3 + + 55 - + 71 AS col0
----
-13

query I rowsort
SELECT 84 + + + 95 AS col0
----
179

onlyif mysql # aggregate syntax: 
query I rowsort label-6258
SELECT 87 * 39 * - + COUNT( * )
----
-3393

skipif mysql # not compatible
query I rowsort label-6258
SELECT 87 * 39 * - + COUNT ( * )
----
-3393

query I rowsort
SELECT + 18 + 77 AS col2
----
95

query I rowsort
SELECT ALL - 51 + - ( + 42 ) AS col0
----
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6261
SELECT - CASE COUNT( * ) WHEN CAST( NULL AS SIGNED ) THEN + - 44 + 59 WHEN + + MAX( - ( - 73 ) ) THEN - + 30 ELSE NULL END + - 36
----
NULL

skipif mysql # not compatible
query I rowsort label-6261
SELECT - CASE COUNT ( * ) WHEN CAST ( NULL AS INTEGER ) THEN + - 44 + 59 WHEN + + MAX ( - ( - 73 ) ) THEN - + 30 ELSE NULL END + - 36
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6262
SELECT DISTINCT - SUM( 47 ) + CAST( NULL AS SIGNED ) * - 45 * + - 91 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6262
SELECT DISTINCT - SUM ( 47 ) + CAST ( NULL AS INTEGER ) * - 45 * + - 91 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6263
SELECT ALL + 35 + + COALESCE ( - - 80, - COUNT( * ) + + + CASE + 97 WHEN - CAST( - 50 AS SIGNED ) THEN 15 * 55 - - 82 ELSE NULL END + - 10 * 44 DIV - MIN( ALL - 59 ) * + COUNT( * ) )
----
115

skipif mysql # not compatible
query I rowsort label-6263
SELECT ALL + 35 + + COALESCE ( - - 80, - COUNT ( * ) + + + CASE + 97 WHEN - CAST ( - 50 AS INTEGER ) THEN 15 * 55 - - 82 ELSE NULL END + - 10 * 44 / - MIN ( ALL - 59 ) * + COUNT ( * ) )
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-6264
SELECT + NULLIF ( + + COUNT( * ), + - 72 + - 17 ) * - 4
----
-4

skipif mysql # not compatible
query I rowsort label-6264
SELECT + NULLIF ( + + COUNT ( * ), + - 72 + - 17 ) * - 4
----
-4

query I rowsort
SELECT 18 * 52
----
936

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6266
SELECT ALL 87 * - ( CAST( NULL AS SIGNED ) ), + CASE - 33 WHEN - SUM( DISTINCT + 67 ) THEN + - ( - CASE + 97 WHEN - + 79 THEN 78 END ) * + 10 / - 46 WHEN + 27 THEN NULL END * + + 66 AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6266
SELECT ALL 87 * - ( CAST ( NULL AS INTEGER ) ), + CASE - 33 WHEN - SUM ( DISTINCT + 67 ) THEN + - ( - CASE + 97 WHEN - + 79 THEN 78 END ) * + 10 / - 46 WHEN + 27 THEN NULL END * + + 66 AS col1
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6267
SELECT DISTINCT ( - ( + COUNT( * ) ) ) * 99 AS col1
----
-99

skipif mysql # not compatible
query I rowsort label-6267
SELECT DISTINCT ( - ( + COUNT ( * ) ) ) * 99 AS col1
----
-99

query II rowsort
SELECT ALL 31 - - 88, + 64 AS col2
----
119
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6269
SELECT DISTINCT - 16 * - 70 + ( - 56 ) - + 84 + + 81 * CASE - + 33 WHEN - 90 * - 58 THEN + CAST( NULL AS SIGNED ) END * + - 62
----
NULL

skipif mysql # not compatible
query I rowsort label-6269
SELECT DISTINCT - 16 * - 70 + ( - 56 ) - + 84 + + 81 * CASE - + 33 WHEN - 90 * - 58 THEN + CAST ( NULL AS INTEGER ) END * + - 62
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6270
SELECT ALL - + 36 - - CASE - CAST( NULL AS SIGNED ) WHEN + 86 THEN + 10 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6270
SELECT ALL - + 36 - - CASE - CAST ( NULL AS INTEGER ) WHEN + 86 THEN + 10 END col0
----
NULL

query I rowsort
SELECT 79 + - 26 AS col1
----
53

query I rowsort
SELECT 88 * 25 * 71
----
156200

onlyif mysql # aggregate syntax: 
query I rowsort label-6273
SELECT ALL - COALESCE ( + + COUNT( * ), + - ( 26 ), - 20 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6273
SELECT ALL - COALESCE ( + + COUNT ( * ), + - ( 26 ), - 20 ) AS col1
----
-1

query I rowsort
SELECT DISTINCT 15 * 97
----
1455

onlyif mysql # aggregate syntax: 
query II rowsort label-6275
SELECT ALL COUNT( * ) AS col1, + 55 AS col1
----
1
55

skipif mysql # not compatible
query II rowsort label-6275
SELECT ALL COUNT ( * ) AS col1, + 55 AS col1
----
1
55

query I rowsort
SELECT ALL + 87 * - 43
----
-3741

query I rowsort
SELECT - 62 + + 45
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6278
SELECT - 20 - + CAST( - + ( + 96 ) AS SIGNED ) AS col2
----
76

skipif mysql # not compatible
query I rowsort label-6278
SELECT - 20 - + CAST ( - + ( + 96 ) AS INTEGER ) AS col2
----
76

query I rowsort
SELECT - COALESCE ( - + 20, 68 )
----
20

query I rowsort
SELECT ALL - 14 + - 55 AS col2
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-6281
SELECT - 14 DIV + - 73 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6281
SELECT - 14 / + - 73 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6282
SELECT - 31 + + + COUNT( ALL + 20 )
----
-30

skipif mysql # not compatible
query I rowsort label-6282
SELECT - 31 + + + COUNT ( ALL + 20 )
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-6283
SELECT DISTINCT + 42 DIV ( - - 26 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6283
SELECT DISTINCT + 42 / ( - - 26 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6284
SELECT ALL - 15 + 44 + 49 * MIN( ALL + 44 ) - - + COUNT( - 53 ) AS col1
----
2186

skipif mysql # not compatible
query I rowsort label-6284
SELECT ALL - 15 + 44 + 49 * MIN ( ALL + 44 ) - - + COUNT ( - 53 ) AS col1
----
2186

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6285
SELECT - COUNT( * ) DIV + - 89 - - 37 col0
----
37

skipif mysql # not compatible
query I rowsort label-6285
SELECT - COUNT ( * ) / + - 89 - - 37 col0
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-6286
SELECT ALL + + ( - 85 ) + - 19 DIV - 8
----
-83

skipif mysql # not compatible
query I rowsort label-6286
SELECT ALL + + ( - 85 ) + - 19 / - 8
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6287
SELECT DISTINCT + 64 DIV + CAST( + COUNT( * ) AS SIGNED ) AS col0, + ( + 9 ) + + 30 col1
----
64
39

skipif mysql # not compatible
query II rowsort label-6287
SELECT DISTINCT + 64 / + CAST ( + COUNT ( * ) AS INTEGER ) AS col0, + ( + 9 ) + + 30 col1
----
64
39

onlyif mysql # aggregate syntax: 
query II rowsort label-6288
SELECT - - COUNT( * ), 55 AS col2
----
1
55

skipif mysql # not compatible
query II rowsort label-6288
SELECT - - COUNT ( * ), 55 AS col2
----
1
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6289
SELECT ALL + CASE 7 WHEN 7 + 1 THEN CAST( - 14 AS SIGNED ) + + 15 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6289
SELECT ALL + CASE 7 WHEN 7 + 1 THEN CAST ( - 14 AS INTEGER ) + + 15 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6290
SELECT - COUNT( * ) AS col2, - 71 * - 71 * COUNT( * ) * 46 + + 48
----
-1
231934

skipif mysql # not compatible
query II rowsort label-6290
SELECT - COUNT ( * ) AS col2, - 71 * - 71 * COUNT ( * ) * 46 + + 48
----
-1
231934

onlyif mysql # aggregate syntax: 
query I rowsort label-6291
SELECT CASE - - MIN( DISTINCT 52 ) WHEN 4 THEN NULL WHEN - + 9 * - + COALESCE ( - 52, + 88 ) + 82 + - 7 * 8 * + 26 / - - 95 + - 9 THEN + + COUNT( 37 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6291
SELECT CASE - - MIN ( DISTINCT 52 ) WHEN 4 THEN NULL WHEN - + 9 * - + COALESCE ( - 52, + 88 ) + 82 + - 7 * 8 * + 26 / - - 95 + - 9 THEN + + COUNT ( 37 ) END
----
NULL

query II rowsort
SELECT - 51 AS col2, 1 col0
----
-51
1

query II rowsort
SELECT 72 AS col1, 79
----
72
79

query I rowsort
SELECT ALL + + 72 - 36
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6295
SELECT - + 34 - CAST( NULL AS SIGNED ) * + 94
----
NULL

skipif mysql # not compatible
query I rowsort label-6295
SELECT - + 34 - CAST ( NULL AS INTEGER ) * + 94
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6296
SELECT - 12 col2, - CAST( NULL AS SIGNED ) col2
----
-12
NULL

skipif mysql # not compatible
query II rowsort label-6296
SELECT - 12 col2, - CAST ( NULL AS INTEGER ) col2
----
-12
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6297
SELECT 59 DIV + 99 + - - 75 - - ( COUNT( * ) ) + + 18 col0
----
94

skipif mysql # not compatible
query I rowsort label-6297
SELECT 59 / + 99 + - - 75 - - ( COUNT ( * ) ) + + 18 col0
----
94

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6298
SELECT - CAST( NULL AS DECIMAL ) + + + 54
----
NULL

skipif mysql # not compatible
query I rowsort label-6298
SELECT - CAST ( NULL AS REAL ) + + + 54
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6299
SELECT - 41 * + + 77 * - CASE - - 17 WHEN - 81 - + + 47 - - 99 * - 58 * + 6 * COUNT( * ) * 59 THEN + + 4 / 25 END, 34 AS col1
----
NULL
34

skipif mysql # not compatible
query II rowsort label-6299
SELECT - 41 * + + 77 * - CASE - - 17 WHEN - 81 - + + 47 - - 99 * - 58 * + 6 * COUNT ( * ) * 59 THEN + + 4 / 25 END, 34 AS col1
----
NULL
34

onlyif mysql # aggregate syntax: 
query I rowsort label-6300
SELECT - 46 + - - 17 + 32 * ( + SUM( DISTINCT - - 12 ) ) * + - 38 AS col0
----
-14621

skipif mysql # not compatible
query I rowsort label-6300
SELECT - 46 + - - 17 + 32 * ( + SUM ( DISTINCT - - 12 ) ) * + - 38 AS col0
----
-14621

onlyif mysql # aggregate syntax: 
query II rowsort label-6301
SELECT ALL + - COUNT( * ), ( MIN( 6 ) ) - + 42 AS col0
----
-1
-36

skipif mysql # not compatible
query II rowsort label-6301
SELECT ALL + - COUNT ( * ), ( MIN ( 6 ) ) - + 42 AS col0
----
-1
-36

query I rowsort
SELECT DISTINCT + ( + - 57 ) AS col1
----
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-6303
SELECT ALL + + 24 AS col0, - 93 + - COUNT( * ) AS col1
----
24
-94

skipif mysql # not compatible
query II rowsort label-6303
SELECT ALL + + 24 AS col0, - 93 + - COUNT ( * ) AS col1
----
24
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-6304
SELECT ALL 99 DIV 70
----
1

skipif mysql # not compatible
query I rowsort label-6304
SELECT ALL 99 / 70
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6305
SELECT DISTINCT + - COUNT( * ) AS col1, 43 * 90 AS col1
----
-1
3870

skipif mysql # not compatible
query II rowsort label-6305
SELECT DISTINCT + - COUNT ( * ) AS col1, 43 * 90 AS col1
----
-1
3870

query II rowsort
SELECT 90 AS col0, 43 * - - NULLIF ( 47, + 45 + + - 31 ) * + + 56 + - 39 - + 93
----
90
113044

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6307
SELECT DISTINCT + 30 AS col1, ( 59 ) + + ( + 45 ) DIV + COUNT( * ) + + NULLIF ( + - 39, + + 50 ) AS col2
----
30
65

skipif mysql # not compatible
query II rowsort label-6307
SELECT DISTINCT + 30 AS col1, ( 59 ) + + ( + 45 ) / + COUNT ( * ) + + NULLIF ( + - 39, + + 50 ) AS col2
----
30
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6308
SELECT + CAST( NULL AS SIGNED ) * - 87 / + 30 * + - 17 col0, 44 + + COUNT( + 0 )
----
NULL
45

skipif mysql # not compatible
query II rowsort label-6308
SELECT + CAST ( NULL AS INTEGER ) * - 87 / + 30 * + - 17 col0, 44 + + COUNT ( + 0 )
----
NULL
45

query I rowsort
SELECT ALL 10 * + 75
----
750

query I rowsort
SELECT + COALESCE ( + ( 12 ), + + 99, - 49 ) AS col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-6311
SELECT DISTINCT + NULLIF ( + - 60, NULLIF ( - 86, + ( - MIN( + 87 ) ) ) ) AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-6311
SELECT DISTINCT + NULLIF ( + - 60, NULLIF ( - 86, + ( - MIN ( + 87 ) ) ) ) AS col1
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-6312
SELECT ALL 80 * - ( - COUNT( * ) ) AS col1
----
80

skipif mysql # not compatible
query I rowsort label-6312
SELECT ALL 80 * - ( - COUNT ( * ) ) AS col1
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6313
SELECT + 92 DIV + COUNT( * )
----
92

skipif mysql # not compatible
query I rowsort label-6313
SELECT + 92 / + COUNT ( * )
----
92

query I rowsort
SELECT DISTINCT 15 * + 43 * + 55
----
35475

query I rowsort
SELECT + ( - + 0 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6316
SELECT DISTINCT COUNT( * ) * 23 + - - 70
----
93

skipif mysql # not compatible
query I rowsort label-6316
SELECT DISTINCT COUNT ( * ) * 23 + - - 70
----
93

query I rowsort
SELECT - 38 * - 60 AS col0
----
2280

onlyif mysql # aggregate syntax: 
query I rowsort label-6318
SELECT ALL COUNT( * ) * - 1 + + + 86 AS col0
----
85

skipif mysql # not compatible
query I rowsort label-6318
SELECT ALL COUNT ( * ) * - 1 + + + 86 AS col0
----
85

query I rowsort
SELECT ALL - 88 * - 10 + - 57 + + 43 * + 34 + 89 + + + 10 AS col1
----
2384

onlyif mysql # aggregate syntax: 
query I rowsort label-6320
SELECT MAX( ALL - + 92 )
----
-92

skipif mysql # not compatible
query I rowsort label-6320
SELECT MAX ( ALL - + 92 )
----
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-6321
SELECT + 26 + 24 AS col2, 34 + + 5 + + - COUNT( * ) + - COUNT( * ) * - CASE + COUNT( * ) WHEN - + 13 THEN - 43 ELSE + 6 + 72 * - - 84 + + AVG ( + 66 ) + - 62 - - + 37 + - + 64 - - 16 + COUNT( * ) * + COALESCE ( - - 18, + 51 * - 5 ) / - CASE + 53 WHEN CASE - 97 WHEN - 14 * + 9 THEN 1 END * 43 + - + ( + NULLIF ( 40, - + 32 * - 83 + - 89 ) ) THEN NULL WHEN - 43 THEN 5 ELSE NULL END - 16 END
----
50
NULL

skipif mysql # not compatible
query II rowsort label-6321
SELECT + 26 + 24 AS col2, 34 + + 5 + + - COUNT ( * ) + - COUNT ( * ) * - CASE + COUNT ( * ) WHEN - + 13 THEN - 43 ELSE + 6 + 72 * - - 84 + + AVG ( + 66 ) + - 62 - - + 37 + - + 64 - - 16 + COUNT ( * ) * + COALESCE ( - - 18, + 51 * - 5 ) / - CASE + 53 WHEN CASE - 97 WHEN - 14 * + 9 THEN 1 END * 43 + - + ( + NULLIF ( 40, - + 32 * - 83 + - 89 ) ) THEN NULL WHEN - 43 THEN 5 ELSE NULL END - 16 END
----
50
NULL

query I rowsort
SELECT + 2 + + 78 - - 4 * + - 60 col2
----
-160

onlyif mysql # aggregate syntax: 
query I rowsort label-6323
SELECT ALL COUNT( * ) + + 2 * + 12 + + 72 - + 57
----
40

skipif mysql # not compatible
query I rowsort label-6323
SELECT ALL COUNT ( * ) + + 2 * + 12 + + 72 - + 57
----
40

query I rowsort
SELECT + 78 + 94 AS col1
----
172

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6325
SELECT ALL + CAST( NULL AS SIGNED ) * 20 AS col0, 12 AS col1
----
NULL
12

skipif mysql # not compatible
query II rowsort label-6325
SELECT ALL + CAST ( NULL AS INTEGER ) * 20 AS col0, 12 AS col1
----
NULL
12

query I rowsort
SELECT - - 23 + - - 62 AS col0
----
85

query I rowsort
SELECT ALL ( - - 93 )
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-6328
SELECT DISTINCT COUNT( * ) * NULLIF ( MIN( ALL - CASE NULLIF ( + 35, + - 14 ) WHEN - ( 25 ) THEN 81 END ), 94 ) * - 29 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6328
SELECT DISTINCT COUNT ( * ) * NULLIF ( MIN ( ALL - CASE NULLIF ( + 35, + - 14 ) WHEN - ( 25 ) THEN 81 END ), 94 ) * - 29 AS col1
----
NULL

query I rowsort
SELECT ALL - + 20 - + 73 + - 66 * 56 * + 78 + - 66 AS col1
----
-288447

onlyif mysql # aggregate syntax: 
query I rowsort label-6330
SELECT - - MIN( + + NULLIF ( 2, + COALESCE ( + 29, - 70, - - 2 ) ) ) + ( - 68 )
----
-66

skipif mysql # not compatible
query I rowsort label-6330
SELECT - - MIN ( + + NULLIF ( 2, + COALESCE ( + 29, - 70, - - 2 ) ) ) + ( - 68 )
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-6331
SELECT ALL + 68 - + + COUNT( * ) AS col2
----
67

skipif mysql # not compatible
query I rowsort label-6331
SELECT ALL + 68 - + + COUNT ( * ) AS col2
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6332
SELECT + 89 + - 52 + + SUM( DISTINCT - + 18 ) * - + 61 / + + CASE - 74 WHEN - COUNT( * ) * - 43 * + + ( - - 25 ) THEN NULL WHEN + 1 THEN + 32 * + 98 END + + 45, + 67 + - 25 / CAST( NULL AS SIGNED ) AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6332
SELECT + 89 + - 52 + + SUM ( DISTINCT - + 18 ) * - + 61 / + + CASE - 74 WHEN - COUNT ( * ) * - 43 * + + ( - - 25 ) THEN NULL WHEN + 1 THEN + 32 * + 98 END + + 45, + 67 + - 25 / CAST ( NULL AS INTEGER ) AS col1
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6333
SELECT - 64 + 20 * 84 * CASE - ( - - 40 ) WHEN + 65 * - 91 * + CAST( NULL AS SIGNED ) + + - 77 THEN - 34 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6333
SELECT - 64 + 20 * 84 * CASE - ( - - 40 ) WHEN + 65 * - 91 * + CAST ( NULL AS INTEGER ) + + - 77 THEN - 34 END col0
----
NULL

query I rowsort
SELECT - 3 + - 39 + 7 + - - 40
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6335
SELECT - 73 - + COUNT( + + 69 )
----
-74

skipif mysql # not compatible
query I rowsort label-6335
SELECT - 73 - + COUNT ( + + 69 )
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-6336
SELECT - 17 + + COUNT( * ) + + 45 AS col1
----
29

skipif mysql # not compatible
query I rowsort label-6336
SELECT - 17 + + COUNT ( * ) + + 45 AS col1
----
29

query I rowsort
SELECT - + 97 * 46 * + 80 col2
----
-356960

onlyif mysql # aggregate syntax: 
query I rowsort label-6338
SELECT DISTINCT - + NULLIF ( - 18, COUNT( * ) ) * - ( + 76 )
----
-1368

skipif mysql # not compatible
query I rowsort label-6338
SELECT DISTINCT - + NULLIF ( - 18, COUNT ( * ) ) * - ( + 76 )
----
-1368

onlyif mysql # aggregate syntax: 
query I rowsort label-6339
SELECT DISTINCT - 75 - - + MAX( DISTINCT - - 66 )
----
-9

skipif mysql # not compatible
query I rowsort label-6339
SELECT DISTINCT - 75 - - + MAX ( DISTINCT - - 66 )
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6340
SELECT ALL - + 65 DIV - COUNT( * )
----
65

skipif mysql # not compatible
query I rowsort label-6340
SELECT ALL - + 65 / - COUNT ( * )
----
65

onlyif mysql # aggregate syntax: 
query II rowsort label-6341
SELECT - + COUNT( * ) + + 24, 59 AS col1
----
23
59

skipif mysql # not compatible
query II rowsort label-6341
SELECT - + COUNT ( * ) + + 24, 59 AS col1
----
23
59

onlyif mysql # aggregate syntax: 
query I rowsort label-6342
SELECT + CASE - 41 WHEN ( + ( - ( + - 24 ) ) ) THEN - COUNT( * ) END * + 51 + + 11 + - + 95 - 44 * - 73 + + + 19 - + 36
----
NULL

skipif mysql # not compatible
query I rowsort label-6342
SELECT + CASE - 41 WHEN ( + ( - ( + - 24 ) ) ) THEN - COUNT ( * ) END * + 51 + + 11 + - + 95 - 44 * - 73 + + + 19 - + 36
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6343
SELECT - MIN( + 18 ) * ( - 5 ) AS col1, + CASE + 92 WHEN + - COUNT( * ) THEN 64 WHEN + 96 THEN + + 99 END + + 11 AS col1
----
90
NULL

skipif mysql # not compatible
query II rowsort label-6343
SELECT - MIN ( + 18 ) * ( - 5 ) AS col1, + CASE + 92 WHEN + - COUNT ( * ) THEN 64 WHEN + 96 THEN + + 99 END + + 11 AS col1
----
90
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6344
SELECT DISTINCT + 34 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6344
SELECT DISTINCT + 34 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6345
SELECT - ( COUNT( * ) ) + - 19 AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-6345
SELECT - ( COUNT ( * ) ) + - 19 AS col1
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-6346
SELECT ALL + 32 + - COUNT( * ) - + 62 + + + 54 AS col2
----
23

skipif mysql # not compatible
query I rowsort label-6346
SELECT ALL + 32 + - COUNT ( * ) - + 62 + + + 54 AS col2
----
23

query I rowsort
SELECT DISTINCT 98 * 33 col2
----
3234

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6348
SELECT - COUNT( * ) * - - NULLIF ( 6, + 47 ) + 95 * - - 82 - - SUM( ALL - 38 ) + 14 + + + 49 * 50 DIV 36 AS col0
----
7828

skipif mysql # not compatible
query I rowsort label-6348
SELECT - COUNT ( * ) * - - NULLIF ( 6, + 47 ) + 95 * - - 82 - - SUM ( ALL - 38 ) + 14 + + + 49 * 50 / 36 AS col0
----
7828

query I rowsort
SELECT DISTINCT + 14 + 51
----
65

query I rowsort
SELECT DISTINCT 62 * - 8 AS col1
----
-496

query II rowsort
SELECT + 66 AS col1, 70 + 21
----
66
91

onlyif mysql # DIV for integer division: 
query I rowsort label-6352
SELECT 97 - + - 62 DIV - 65 * + 50 AS col1
----
97

skipif mysql # not compatible
query I rowsort label-6352
SELECT 97 - + - 62 / - 65 * + 50 AS col1
----
97

query II rowsort
SELECT + 19, + 8 col2
----
19
8

onlyif mysql # aggregate syntax: 
query I rowsort label-6354
SELECT COALESCE ( - + 44, - + 32 ) - - ( + SUM( - 70 ) )
----
-114

skipif mysql # not compatible
query I rowsort label-6354
SELECT COALESCE ( - + 44, - + 32 ) - - ( + SUM ( - 70 ) )
----
-114

query I rowsort
SELECT ALL + 97 + - - 46
----
143

query I rowsort
SELECT ALL 61 * 0 * - 5 * 2 * - - 35
----
0

query II rowsort
SELECT 80 AS col2, + 15
----
80
15

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6358
SELECT 52 AS col2, + CAST( + 71 AS SIGNED ) DIV 55
----
52
1

skipif mysql # not compatible
query II rowsort label-6358
SELECT 52 AS col2, + CAST ( + 71 AS INTEGER ) / 55
----
52
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6359
SELECT DISTINCT 36 * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6359
SELECT DISTINCT 36 * + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6360
SELECT - 23 * + - SUM( DISTINCT + + 78 ) + - ( + - 83 ) AS col1
----
1877

skipif mysql # not compatible
query I rowsort label-6360
SELECT - 23 * + - SUM ( DISTINCT + + 78 ) + - ( + - 83 ) AS col1
----
1877

onlyif mysql # aggregate syntax: 
query I rowsort label-6361
SELECT ALL COUNT( * ) * - - 37
----
37

skipif mysql # not compatible
query I rowsort label-6361
SELECT ALL COUNT ( * ) * - - 37
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-6362
SELECT - 90 DIV - 99 * + - ( 65 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6362
SELECT - 90 / - 99 * + - ( 65 ) AS col0
----
0

query I rowsort
SELECT - 94 + + 17 + + + 88 + - 39 * + - 69 + + + 38 AS col2
----
2740

onlyif mysql # aggregate syntax: 
query I rowsort label-6364
SELECT + 3 - MIN( - - 27 ) + + 52 col0
----
28

skipif mysql # not compatible
query I rowsort label-6364
SELECT + 3 - MIN ( - - 27 ) + + 52 col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-6365
SELECT - SUM( ALL - 90 ) col2
----
90

skipif mysql # not compatible
query I rowsort label-6365
SELECT - SUM ( ALL - 90 ) col2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-6366
SELECT ALL + CASE + + ( + - 77 ) WHEN + + 23 THEN - 44 * - 0 + + - COUNT( * ) * + 80 - - - 87 END + - 1 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6366
SELECT ALL + CASE + + ( + - 77 ) WHEN + + 23 THEN - 44 * - 0 + + - COUNT ( * ) * + 80 - - - 87 END + - 1 col1
----
NULL

query I rowsort
SELECT + 30 + + 47 AS col2
----
77

onlyif mysql # aggregate syntax: 
query II rowsort label-6368
SELECT DISTINCT - 10, + NULLIF ( COUNT( * ), + - 37 ) col0
----
-10
1

skipif mysql # not compatible
query II rowsort label-6368
SELECT DISTINCT - 10, + NULLIF ( COUNT ( * ), + - 37 ) col0
----
-10
1

query I rowsort
SELECT DISTINCT 98 + + + 39 AS col2
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-6370
SELECT ALL - COUNT( * ) + + ( + 39 )
----
38

skipif mysql # not compatible
query I rowsort label-6370
SELECT ALL - COUNT ( * ) + + ( + 39 )
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-6371
SELECT ALL + 0 + 42 * + + 6 + + 48 + - COUNT( * ) + - 97 * 58 + - 79 AS col1
----
-5406

skipif mysql # not compatible
query I rowsort label-6371
SELECT ALL + 0 + 42 * + + 6 + + 48 + - COUNT ( * ) + - 97 * 58 + - 79 AS col1
----
-5406

onlyif mysql # aggregate syntax: 
query I rowsort label-6372
SELECT DISTINCT - 45 + + COUNT( 12 ) * - - 57
----
12

skipif mysql # not compatible
query I rowsort label-6372
SELECT DISTINCT - 45 + + COUNT ( 12 ) * - - 57
----
12

query II rowsort
SELECT 4 AS col2, 24
----
4
24

query I rowsort
SELECT 16 + - 54 AS col1
----
-38

query I rowsort
SELECT ALL - 55 * - + ( - 73 ) AS col1
----
-4015

query II rowsort
SELECT 55 AS col0, 95 * + 89
----
55
8455

query II rowsort
SELECT DISTINCT - 71 AS col0, - 64 * - + 47 AS col1
----
-71
3008

query I rowsort
SELECT DISTINCT - NULLIF ( 91, + 24 + + - 27 )
----
-91

query I rowsort
SELECT 93 * + 6 + + ( + 49 )
----
607

onlyif mysql # aggregate syntax: 
query I rowsort label-6380
SELECT ALL - COUNT( * ) - + 53 * + 90 AS col0
----
-4771

skipif mysql # not compatible
query I rowsort label-6380
SELECT ALL - COUNT ( * ) - + 53 * + 90 AS col0
----
-4771

onlyif mysql # DIV for integer division: 
query I rowsort label-6381
SELECT DISTINCT - ( - - 87 ) DIV - 60 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6381
SELECT DISTINCT - ( - - 87 ) / - 60 AS col1
----
1

query I rowsort
SELECT - 62 * + 67 * + 7 + - 32 * 26 AS col2
----
-29910

query I rowsort
SELECT ALL + 52 * + + 93
----
4836

query I rowsort
SELECT + 72 + 90 AS col2
----
162

query I rowsort
SELECT ALL ( - 95 ) * 46
----
-4370

onlyif mysql # DIV for integer division: 
query II rowsort label-6386
SELECT DISTINCT 97 AS col1, 25 DIV 99 * 4
----
97
0

skipif mysql # not compatible
query II rowsort label-6386
SELECT DISTINCT 97 AS col1, 25 / 99 * 4
----
97
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6387
SELECT 69 + - - 98 AS col2, + CAST( - 78 AS SIGNED ) AS col2
----
167
-78

skipif mysql # not compatible
query II rowsort label-6387
SELECT 69 + - - 98 AS col2, + CAST ( - 78 AS INTEGER ) AS col2
----
167
-78

query I rowsort
SELECT ALL 82 * - 1 AS col1
----
-82

query I rowsort
SELECT - 21 + 18 col1
----
-3

query I rowsort
SELECT 18 * - COALESCE ( 93, + 2, 52 ) * + ( - - 34 ) + 4 * + ( - 67 ) AS col1
----
-57184

query I rowsort
SELECT - 35 + 99 col0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-6392
SELECT + 62 + + NULLIF ( + 55, - COUNT( * ) * 3 ) AS col1
----
117

skipif mysql # not compatible
query I rowsort label-6392
SELECT + 62 + + NULLIF ( + 55, - COUNT ( * ) * 3 ) AS col1
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-6393
SELECT ALL - COUNT( - 1 ) + - + 74 col2
----
-75

skipif mysql # not compatible
query I rowsort label-6393
SELECT ALL - COUNT ( - 1 ) + - + 74 col2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-6394
SELECT + ( SUM( - 39 ) ) + + NULLIF ( - + MIN( - 17 ), + + 78 * + + 43 )
----
-22

skipif mysql # not compatible
query I rowsort label-6394
SELECT + ( SUM ( - 39 ) ) + + NULLIF ( - + MIN ( - 17 ), + + 78 * + + 43 )
----
-22

query I rowsort
SELECT ALL - ( - - 25 )
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-6396
SELECT 87 * COUNT( * ) * + 55 AS col1
----
4785

skipif mysql # not compatible
query I rowsort label-6396
SELECT 87 * COUNT ( * ) * + 55 AS col1
----
4785

query I rowsort
SELECT ALL 54 * + 41 AS col1
----
2214

onlyif mysql # aggregate syntax: 
query II rowsort label-6398
SELECT - - 18, NULLIF ( - SUM( 93 ), + 19 ) AS col0
----
18
-93

skipif mysql # not compatible
query II rowsort label-6398
SELECT - - 18, NULLIF ( - SUM ( 93 ), + 19 ) AS col0
----
18
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6399
SELECT DISTINCT SUM( ALL + - NULLIF ( - + 0, CAST( NULL AS SIGNED ) ) ) + + NULLIF ( CAST( NULL AS SIGNED ), + 14 ) / - 2
----
NULL

skipif mysql # not compatible
query I rowsort label-6399
SELECT DISTINCT SUM ( ALL + - NULLIF ( - + 0, CAST ( NULL AS INTEGER ) ) ) + + NULLIF ( CAST ( NULL AS INTEGER ), + 14 ) / - 2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6400
SELECT ALL CASE - 3 WHEN + ( + 42 ) * - - 24 THEN + - CASE 16 WHEN 81 THEN COUNT( * ) END END + 36 * + MAX( DISTINCT - - 45 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6400
SELECT ALL CASE - 3 WHEN + ( + 42 ) * - - 24 THEN + - CASE 16 WHEN 81 THEN COUNT ( * ) END END + 36 * + MAX ( DISTINCT - - 45 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6401
SELECT - + MAX( 43 ) AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-6401
SELECT - + MAX ( 43 ) AS col0
----
-43

query II rowsort
SELECT ALL 51 * + - 4 AS col1, + 45 + 2 AS col2
----
-204
47

onlyif mysql # aggregate syntax: 
query II rowsort label-6403
SELECT + SUM( - 88 ) AS col0, ( - 88 ) + - - 83 * - + 26
----
-88
-2246

skipif mysql # not compatible
query II rowsort label-6403
SELECT + SUM ( - 88 ) AS col0, ( - 88 ) + - - 83 * - + 26
----
-88
-2246

query I rowsort
SELECT ALL 58 * 90 + ( ( - - 5 ) ) AS col0
----
5225

query I rowsort
SELECT COALESCE ( + + 82, + 36 + + 87 )
----
82

query III rowsort
SELECT DISTINCT + NULLIF ( - 80, + 16 ) AS col2, 12 - + 94 AS col2, - 20 AS col1
----
-80
-82
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-6407
SELECT + COALESCE ( + 66, 28 * 44, - 85 ) * + COUNT( * )
----
66

skipif mysql # not compatible
query I rowsort label-6407
SELECT + COALESCE ( + 66, 28 * 44, - 85 ) * + COUNT ( * )
----
66

query I rowsort
SELECT CASE 37 WHEN - 36 THEN - 80 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT DISTINCT 50 * 38
----
1900

onlyif mysql # DIV for integer division: 
query I rowsort label-6410
SELECT + 62 DIV + 39 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6410
SELECT + 62 / + 39 AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6411
SELECT - 79 * - COALESCE ( - SUM( DISTINCT - 8 ), 41 ), - 49 AS col2
----
632
-49

skipif mysql # not compatible
query II rowsort label-6411
SELECT - 79 * - COALESCE ( - SUM ( DISTINCT - 8 ), 41 ), - 49 AS col2
----
632
-49

query I rowsort
SELECT ALL - 29 * - 46 - 74 AS col2
----
1260

onlyif mysql # aggregate syntax: 
query I rowsort label-6413
SELECT DISTINCT + 79 * + - ( + + MAX( - - 79 ) ) * - 89 + - 57 + + 93 + + 11 col1
----
555496

skipif mysql # not compatible
query I rowsort label-6413
SELECT DISTINCT + 79 * + - ( + + MAX ( - - 79 ) ) * - 89 + - 57 + + 93 + + 11 col1
----
555496

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6414
SELECT DISTINCT COUNT( * ) DIV + 14 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6414
SELECT DISTINCT COUNT ( * ) / + 14 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6415
SELECT ALL + 97 DIV - + 73
----
-1

skipif mysql # not compatible
query I rowsort label-6415
SELECT ALL + 97 / - + 73
----
-1

query I rowsort
SELECT + 43 * + 84 AS col2
----
3612

onlyif mysql # aggregate syntax: 
query I rowsort label-6417
SELECT - COUNT( * ) + + 74
----
73

skipif mysql # not compatible
query I rowsort label-6417
SELECT - COUNT ( * ) + + 74
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-6418
SELECT ALL + ( + 36 ), COUNT( * ) AS col2
----
36
1

skipif mysql # not compatible
query II rowsort label-6418
SELECT ALL + ( + 36 ), COUNT ( * ) AS col2
----
36
1

query I rowsort
SELECT ALL + 12 * - 29 + 78 + - + 30
----
-300

onlyif mysql # aggregate syntax: 
query I rowsort label-6420
SELECT NULLIF ( MIN( 62 ), + 2 )
----
62

skipif mysql # not compatible
query I rowsort label-6420
SELECT NULLIF ( MIN ( 62 ), + 2 )
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-6421
SELECT COUNT( ALL + ( - + 52 ) ) col2
----
1

skipif mysql # not compatible
query I rowsort label-6421
SELECT COUNT ( ALL + ( - + 52 ) ) col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6422
SELECT - - 90 DIV - - 97 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6422
SELECT - - 90 / - - 97 AS col0
----
0

query I rowsort
SELECT + - 85 * - - 82
----
-6970

query I rowsort
SELECT - + ( + 89 ) AS col0
----
-89

query I rowsort
SELECT DISTINCT - 46 + - - 12 * - 95 - + 41
----
-1227

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6426
SELECT ALL + COUNT( * ) DIV - ( MAX( DISTINCT + 61 ) )
----
0

skipif mysql # not compatible
query I rowsort label-6426
SELECT ALL + COUNT ( * ) / - ( MAX ( DISTINCT + 61 ) )
----
0

query I rowsort
SELECT DISTINCT + 2 * NULLIF ( - 94, + 34 ) * 8 + + 93 * - 25 + + ( + 53 )
----
-3776

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-6428
SELECT ALL - COUNT( * ) + - CAST( NULL AS DECIMAL ), 24 DIV + + MIN( 60 ) - - + 2 col0
----
NULL
2

skipif mysql # not compatible
query II rowsort label-6428
SELECT ALL - COUNT ( * ) + - CAST ( NULL AS REAL ), 24 / + + MIN ( 60 ) - - + 2 col0
----
NULL
2

query I rowsort
SELECT DISTINCT + ( - 58 ) col0
----
-58

query I rowsort
SELECT + - 58 * - - 67 + 60
----
-3826

onlyif mysql # aggregate syntax: 
query II rowsort label-6431
SELECT - 16 + 68 + - + 81 + + - 68 AS col2, MIN( DISTINCT - - 5 )
----
-97
5

skipif mysql # not compatible
query II rowsort label-6431
SELECT - 16 + 68 + - + 81 + + - 68 AS col2, MIN ( DISTINCT - - 5 )
----
-97
5

query I rowsort
SELECT + 22 * + 71 AS col2
----
1562

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6433
SELECT - CAST( 2 AS SIGNED ) + ( 79 ) AS col1
----
77

skipif mysql # not compatible
query I rowsort label-6433
SELECT - CAST ( 2 AS INTEGER ) + ( 79 ) AS col1
----
77

query I rowsort
SELECT ALL NULLIF ( + + 87, + ( - 49 ) ) + - + 43
----
44

query II rowsort
SELECT ALL 48 AS col2, 9 + - ( 26 ) AS col0
----
48
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6436
SELECT - ( - + COUNT( * ) ) * + 32 - + COUNT( 69 ) DIV - 86
----
32

skipif mysql # not compatible
query I rowsort label-6436
SELECT - ( - + COUNT ( * ) ) * + 32 - + COUNT ( 69 ) / - 86
----
32

query II rowsort
SELECT ALL + 68 AS col2, 76 AS col1
----
68
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6438
SELECT CAST( + 70 AS SIGNED ) AS col1
----
70

skipif mysql # not compatible
query I rowsort label-6438
SELECT CAST ( + 70 AS INTEGER ) AS col1
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6439
SELECT ALL + ( 77 ) * - - 78 + - CAST( NULL AS SIGNED ) - + 58 * - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6439
SELECT ALL + ( 77 ) * - - 78 + - CAST ( NULL AS INTEGER ) - + 58 * - + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6440
SELECT DISTINCT MAX( + 16 ) * + 15
----
240

skipif mysql # not compatible
query I rowsort label-6440
SELECT DISTINCT MAX ( + 16 ) * + 15
----
240

query I rowsort
SELECT + NULLIF ( + 37, + - 34 * 97 ) AS col1
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6442
SELECT + CAST( NULL AS SIGNED ) AS col0, + NULLIF ( 91, + - 30 + 25 )
----
NULL
91

skipif mysql # not compatible
query II rowsort label-6442
SELECT + CAST ( NULL AS INTEGER ) AS col0, + NULLIF ( 91, + - 30 + 25 )
----
NULL
91

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6443
SELECT - 71 / - 28 + + 35 * + ( - 58 ) - + ( - + 71 ) * + 42 * COUNT( * ) / + + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6443
SELECT - 71 / - 28 + + 35 * + ( - 58 ) - + ( - + 71 ) * + 42 * COUNT ( * ) / + + CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT + 20 * + + ( + 21 )
----
420

onlyif mysql # aggregate syntax: 
query I rowsort label-6445
SELECT - COUNT( * ) * 2 * + 8
----
-16

skipif mysql # not compatible
query I rowsort label-6445
SELECT - COUNT ( * ) * 2 * + 8
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-6446
SELECT + ( + + CASE - SUM( + - 95 ) WHEN AVG ( - - ( 28 ) ) THEN - COUNT( + 58 ) WHEN + 92 THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-6446
SELECT + ( + + CASE - SUM ( + - 95 ) WHEN AVG ( - - ( 28 ) ) THEN - COUNT ( + 58 ) WHEN + 92 THEN NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6447
SELECT ( - COUNT( 52 ) ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-6447
SELECT ( - COUNT ( 52 ) ) col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6448
SELECT ALL + SUM( DISTINCT + 91 )
----
91

skipif mysql # not compatible
query I rowsort label-6448
SELECT ALL + SUM ( DISTINCT + 91 )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6449
SELECT ALL CASE 95 WHEN - - 50 / - - 73 * COUNT( * ) THEN 13 END * + 40
----
NULL

skipif mysql # not compatible
query I rowsort label-6449
SELECT ALL CASE 95 WHEN - - 50 / - - 73 * COUNT ( * ) THEN 13 END * + 40
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6450
SELECT ALL + COALESCE ( 66, - + COALESCE ( + 24, 24 + COUNT( * ) * - + 89 ), 40 )
----
66

skipif mysql # not compatible
query I rowsort label-6450
SELECT ALL + COALESCE ( 66, - + COALESCE ( + 24, 24 + COUNT ( * ) * - + 89 ), 40 )
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-6451
SELECT + MAX( + + 77 ) * + ( + + 53 )
----
4081

skipif mysql # not compatible
query I rowsort label-6451
SELECT + MAX ( + + 77 ) * + ( + + 53 )
----
4081

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6452
SELECT + SUM( 65 ) + CASE - 20 WHEN - 73 DIV + 93 * 29 * - - 78 + - 39 THEN - - 26 + + - 79 ELSE + - 44 * 96 + 41 * - + 76 DIV + + 38 END DIV - + 91 - COUNT( * ) - + - 98 AS col2
----
209

skipif mysql # not compatible
query I rowsort label-6452
SELECT + SUM ( 65 ) + CASE - 20 WHEN - 73 / + 93 * 29 * - - 78 + - 39 THEN - - 26 + + - 79 ELSE + - 44 * 96 + 41 * - + 76 / + + 38 END / - + 91 - COUNT ( * ) - + - 98 AS col2
----
209

query I rowsort
SELECT CASE - 19 WHEN + - ( - 40 ) THEN NULL ELSE + 8 END
----
8

query I rowsort
SELECT ALL 98 * - + NULLIF ( - 2, - + 72 * + 50 ) + - + 74 * - 4
----
492

onlyif mysql # DIV for integer division: 
query I rowsort label-6455
SELECT DISTINCT 59 DIV + 18
----
3

skipif mysql # not compatible
query I rowsort label-6455
SELECT DISTINCT 59 / + 18
----
3

query I rowsort
SELECT 94 * + 53 + ( - + 58 )
----
4924

query I rowsort
SELECT ALL + 32 * - 56 + + 35 + + 60
----
-1697

query I rowsort
SELECT + 56 + - - 88
----
144

query I rowsort
SELECT - + 23 - - 51
----
28

query I rowsort
SELECT DISTINCT + + 94 * + - 96 + + 64
----
-8960

query I rowsort
SELECT DISTINCT - 6 * - - 10
----
-60

query I rowsort
SELECT ALL + - COALESCE ( + 91, - + NULLIF ( - 60, - 83 + - 92 ) ) + - 72 AS col1
----
-163

onlyif mysql # aggregate syntax: 
query I rowsort label-6463
SELECT DISTINCT - 15 + - NULLIF ( 57, - - 19 ) * - COUNT( * ) AS col1
----
42

skipif mysql # not compatible
query I rowsort label-6463
SELECT DISTINCT - 15 + - NULLIF ( 57, - - 19 ) * - COUNT ( * ) AS col1
----
42

query I rowsort
SELECT ALL - 93 + + - 85 AS col1
----
-178

query I rowsort
SELECT - 33 + + 55 AS col1
----
22

query I rowsort
SELECT - 72 * 68 * + 1
----
-4896

onlyif mysql # aggregate syntax: 
query I rowsort label-6467
SELECT ALL - 69 - - COUNT( * )
----
-68

skipif mysql # not compatible
query I rowsort label-6467
SELECT ALL - 69 - - COUNT ( * )
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6468
SELECT DISTINCT + COUNT( * ) / + 20 * + + 17 * 20 * + CAST( 74 AS SIGNED ) / + 59 * - + CAST( NULL AS SIGNED ) + + 98
----
NULL

skipif mysql # not compatible
query I rowsort label-6468
SELECT DISTINCT + COUNT ( * ) / + 20 * + + 17 * 20 * + CAST ( 74 AS INTEGER ) / + 59 * - + CAST ( NULL AS INTEGER ) + + 98
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6469
SELECT COALESCE ( + 33, - 8 + - + 33 ) + CAST( 32 AS SIGNED )
----
65

skipif mysql # not compatible
query I rowsort label-6469
SELECT COALESCE ( + 33, - 8 + - + 33 ) + CAST ( 32 AS INTEGER )
----
65

query I rowsort
SELECT DISTINCT - 51 - ( + 10 ) + - - 13 col2
----
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-6471
SELECT DISTINCT + 24 DIV + 91
----
0

skipif mysql # not compatible
query I rowsort label-6471
SELECT DISTINCT + 24 / + 91
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6472
SELECT DISTINCT 33 * - + 11, SUM( ALL - 32 ) DIV + 56 + + ( + COUNT( * ) ) col1
----
-363
1

skipif mysql # not compatible
query II rowsort label-6472
SELECT DISTINCT 33 * - + 11, SUM ( ALL - 32 ) / + 56 + + ( + COUNT ( * ) ) col1
----
-363
1

query I rowsort
SELECT 16 * 22 AS col0
----
352

query I rowsort
SELECT ALL + 33 * 74
----
2442

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6475
SELECT 6 * - CAST( NULL AS SIGNED ), + CAST( + + ( - 16 ) AS SIGNED ) * - COUNT( * ) / + 33 + CAST( NULL AS SIGNED ) + - - 87 * + CAST( - 3 AS SIGNED ) - + + 95 + - 47 AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6475
SELECT 6 * - CAST ( NULL AS INTEGER ), + CAST ( + + ( - 16 ) AS INTEGER ) * - COUNT ( * ) / + 33 + CAST ( NULL AS INTEGER ) + - - 87 * + CAST ( - 3 AS INTEGER ) - + + 95 + - 47 AS col1
----
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6476
SELECT 12 DIV - 62 * + COUNT( * ) DIV - CAST( - 1 AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6476
SELECT 12 / - 62 * + COUNT ( * ) / - CAST ( - 1 AS INTEGER ) AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6477
SELECT COUNT( * ) - 84 DIV 38
----
-1

skipif mysql # not compatible
query I rowsort label-6477
SELECT COUNT ( * ) - 84 / 38
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6478
SELECT COALESCE ( + + 25, - 79 ) * - - 97 * + 43 + COUNT( * ) * - + 78 + - - 21
----
104218

skipif mysql # not compatible
query I rowsort label-6478
SELECT COALESCE ( + + 25, - 79 ) * - - 97 * + 43 + COUNT ( * ) * - + 78 + - - 21
----
104218

query I rowsort
SELECT DISTINCT - - 30 AS col1
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6480
SELECT 24 / - CAST( NULL AS SIGNED ) * 56
----
NULL

skipif mysql # not compatible
query I rowsort label-6480
SELECT 24 / - CAST ( NULL AS INTEGER ) * 56
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6481
SELECT ALL 57 + - MAX( ALL + 49 ) + - 4 + - + 49 AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-6481
SELECT ALL 57 + - MAX ( ALL + 49 ) + - 4 + - + 49 AS col1
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6482
SELECT ALL MAX( DISTINCT - - CAST( 48 AS SIGNED ) ) + + 93 col0, - 57
----
141
-57

skipif mysql # not compatible
query II rowsort label-6482
SELECT ALL MAX ( DISTINCT - - CAST ( 48 AS INTEGER ) ) + + 93 col0, - 57
----
141
-57

query I rowsort
SELECT 62 + - ( - 0 ) + + 37 * - 77
----
-2787

onlyif mysql # aggregate syntax: 
query II rowsort label-6484
SELECT ALL - + COUNT( DISTINCT 34 ) AS col1, 6
----
-1
6

skipif mysql # not compatible
query II rowsort label-6484
SELECT ALL - + COUNT ( DISTINCT 34 ) AS col1, 6
----
-1
6

query I rowsort
SELECT ALL - 19 + + 27 col0
----
8

query II rowsort
SELECT ALL - - 79 + - 24 AS col1, + 0 AS col2
----
55
0

query I rowsort
SELECT ALL ( + NULLIF ( + - 91, - 16 + - 61 ) ) AS col1
----
-91

query I rowsort
SELECT 31 * 74
----
2294

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6489
SELECT DISTINCT + COUNT( ALL COALESCE ( + CAST( NULL AS SIGNED ), + 86 * + 44 + + 90 + 54 * - 27 + - + 92 + + 19 + + - 8 * - - 99 + - 46 + - 46 ) ), CASE 72 WHEN - ( + COALESCE ( - - CASE - 11 WHEN + 84 THEN 31 WHEN + 9 + 59 / - - 61 THEN NULL ELSE NULL END, + 86 - 86 ) ) + - 57 + - - 92 * + + 22 THEN + 73 * + - 24 * - 3 WHEN + - ( 42 ) * 45 * + ( - 61 ) + + COUNT( * ) + - - 4 THEN NULL WHEN - 86 THEN NULL ELSE NULL END AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-6489
SELECT DISTINCT + COUNT ( ALL COALESCE ( + CAST ( NULL AS INTEGER ), + 86 * + 44 + + 90 + 54 * - 27 + - + 92 + + 19 + + - 8 * - - 99 + - 46 + - 46 ) ), CASE 72 WHEN - ( + COALESCE ( - - CASE - 11 WHEN + 84 THEN 31 WHEN + 9 + 59 / - - 61 THEN NULL ELSE NULL END, + 86 - 86 ) ) + - 57 + - - 92 * + + 22 THEN + 73 * + - 24 * - 3 WHEN + - ( 42 ) * 45 * + ( - 61 ) + + COUNT ( * ) + - - 4 THEN NULL WHEN - 86 THEN NULL ELSE NULL END AS col0
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6490
SELECT ALL 87 - + ( - + 24 ) + 35 + 80 * + COUNT( * )
----
226

skipif mysql # not compatible
query I rowsort label-6490
SELECT ALL 87 - + ( - + 24 ) + 35 + 80 * + COUNT ( * )
----
226

query I rowsort
SELECT + 40 * + - 69
----
-2760

query I rowsort
SELECT DISTINCT + + 74 * + - 10 * 33
----
-24420

onlyif mysql # aggregate syntax: 
query I rowsort label-6493
SELECT ALL + COUNT( * ) * - 17 AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-6493
SELECT ALL + COUNT ( * ) * - 17 AS col1
----
-17

query I rowsort
SELECT 13 * + + 77
----
1001

query I rowsort
SELECT 25 * 61 AS col2
----
1525

onlyif mysql # DIV for integer division: 
query I rowsort label-6496
SELECT 3 * + 67 DIV + + 58 col0
----
3

skipif mysql # not compatible
query I rowsort label-6496
SELECT 3 * + 67 / + + 58 col0
----
3

query I rowsort
SELECT 6 + 21 AS col1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-6498
SELECT 51 * - - SUM( DISTINCT + - ( 27 ) ) AS col1
----
-1377

skipif mysql # not compatible
query I rowsort label-6498
SELECT 51 * - - SUM ( DISTINCT + - ( 27 ) ) AS col1
----
-1377

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6499
SELECT ALL - CAST( - COUNT( * ) AS SIGNED ) DIV + SUM( + 68 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6499
SELECT ALL - CAST ( - COUNT ( * ) AS INTEGER ) / + SUM ( + 68 ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6500
SELECT 22 + - COUNT( * ) * - 41 + + COUNT( ALL CAST( 41 AS SIGNED ) )
----
64

skipif mysql # not compatible
query I rowsort label-6500
SELECT 22 + - COUNT ( * ) * - 41 + + COUNT ( ALL CAST ( 41 AS INTEGER ) )
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-6501
SELECT ALL - 66 DIV - 98 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6501
SELECT ALL - 66 / - 98 AS col1
----
0

query I rowsort
SELECT ALL - ( NULLIF ( - 34, + 59 * + - 38 + + 86 ) )
----
34

query II rowsort
SELECT + 70, - 41 AS col1
----
70
-41

query II rowsort
SELECT DISTINCT + 88 * - 24 + + 98, + 53 * + - 8 AS col2
----
-2014
-424

onlyif mysql # aggregate syntax: 
query I rowsort label-6505
SELECT ALL 0 * - COUNT( * ) + + 12 AS col0
----
12

skipif mysql # not compatible
query I rowsort label-6505
SELECT ALL 0 * - COUNT ( * ) + + 12 AS col0
----
12

query I rowsort
SELECT ALL - ( - 72 ) AS col1
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6507
SELECT DISTINCT - NULLIF ( - COUNT( * ), + - 59 + - 41 + - NULLIF ( - + 0, + + 20 ) + + CAST( + 30 AS SIGNED ) + 23 * - 19 * + 36 * - - COUNT( 4 ) ) * + ( - CAST( + + 82 AS SIGNED ) ) + 69 * - - 29 AS col2
----
1919

skipif mysql # not compatible
query I rowsort label-6507
SELECT DISTINCT - NULLIF ( - COUNT ( * ), + - 59 + - 41 + - NULLIF ( - + 0, + + 20 ) + + CAST ( + 30 AS INTEGER ) + 23 * - 19 * + 36 * - - COUNT ( 4 ) ) * + ( - CAST ( + + 82 AS INTEGER ) ) + 69 * - - 29 AS col2
----
1919

query I rowsort
SELECT 31 * + 17 AS col0
----
527

query I rowsort
SELECT DISTINCT + + 77 * - - 58
----
4466

query I rowsort
SELECT ALL - CASE - 7 WHEN 56 THEN + 22 END * 97 + 46 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6511
SELECT DISTINCT - - MIN( - - 24 )
----
24

skipif mysql # not compatible
query I rowsort label-6511
SELECT DISTINCT - - MIN ( - - 24 )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6512
SELECT DISTINCT - 2 * + 20 + - 13 * - 1 + + COUNT( * ) * - + 71 AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-6512
SELECT DISTINCT - 2 * + 20 + - 13 * - 1 + + COUNT ( * ) * - + 71 AS col0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-6513
SELECT + - MIN( - - 8 )
----
-8

skipif mysql # not compatible
query I rowsort label-6513
SELECT + - MIN ( - - 8 )
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6514
SELECT DISTINCT 26 * 22 + + CAST( NULL AS SIGNED ) + + 95 / - 9
----
NULL

skipif mysql # not compatible
query I rowsort label-6514
SELECT DISTINCT 26 * 22 + + CAST ( NULL AS INTEGER ) + + 95 / - 9
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6515
SELECT DISTINCT + - COUNT( * ) AS col0, COUNT( * ) * - ( + + MIN( ALL - ( 74 ) ) ) * ( + - 12 ) DIV 21 DIV - COALESCE ( + 14, 83, CAST( NULL AS SIGNED ) + COUNT( * ) + - 19 ) col2
----
-1
3

skipif mysql # not compatible
query II rowsort label-6515
SELECT DISTINCT + - COUNT ( * ) AS col0, COUNT ( * ) * - ( + + MIN ( ALL - ( 74 ) ) ) * ( + - 12 ) / 21 / - COALESCE ( + 14, 83, CAST ( NULL AS INTEGER ) + COUNT ( * ) + - 19 ) col2
----
-1
3

query I rowsort
SELECT + 79 * + + 25 AS col2
----
1975

query I rowsort
SELECT DISTINCT + + 53 AS col2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-6518
SELECT DISTINCT - COUNT( * ) * - 81 * - + MAX( 89 )
----
-7209

skipif mysql # not compatible
query I rowsort label-6518
SELECT DISTINCT - COUNT ( * ) * - 81 * - + MAX ( 89 )
----
-7209

query I rowsort
SELECT + 45 * + 94
----
4230

onlyif mysql # aggregate syntax: 
query I rowsort label-6520
SELECT + + MIN( 29 ) + 76 - + 95 - + 42
----
-32

skipif mysql # not compatible
query I rowsort label-6520
SELECT + + MIN ( 29 ) + 76 - + 95 - + 42
----
-32

query I rowsort
SELECT ( - + CASE 92 WHEN 69 THEN NULL WHEN - + 32 THEN NULL ELSE + 25 * 58 END ) AS col0
----
-1450

query I rowsort
SELECT + - 10 + 61 AS col1
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6523
SELECT + 63 + - CASE - - 43 WHEN + - COUNT( * ) * + 53 THEN - + 21 * - + 86 + - - 6 WHEN + - ( 96 ) + - + 82 + - + MIN( ALL + 13 ) + COUNT( * ) * + 83 * + - 24 THEN NULL ELSE + CASE + COUNT( * ) WHEN + + CASE + 92 WHEN 27 THEN - CAST( NULL AS SIGNED ) / - + 31 + - + ( - 88 ) + - 99 - + + 32 ELSE 86 / 78 / - 85 + MIN( - - 33 ) END + - COUNT( * ) * - 81 / 86 * - 24 THEN + + 85 ELSE NULL END + + 95 END * + + MAX( + + 47 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6523
SELECT + 63 + - CASE - - 43 WHEN + - COUNT ( * ) * + 53 THEN - + 21 * - + 86 + - - 6 WHEN + - ( 96 ) + - + 82 + - + MIN ( ALL + 13 ) + COUNT ( * ) * + 83 * + - 24 THEN NULL ELSE + CASE + COUNT ( * ) WHEN + + CASE + 92 WHEN 27 THEN - CAST ( NULL AS INTEGER ) / - + 31 + - + ( - 88 ) + - 99 - + + 32 ELSE 86 / 78 / - 85 + MIN ( - - 33 ) END + - COUNT ( * ) * - 81 / 86 * - 24 THEN + + 85 ELSE NULL END + + 95 END * + + MAX ( + + 47 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6524
SELECT ALL 69 * CASE - COUNT( * ) WHEN + - 83 THEN 90 + - - COUNT( ALL - ( 1 ) ) - + - COALESCE ( 67, - + ( + + MIN( ALL - - 95 ) ) * - 72 * + 14 * + - 72 ) - + - COUNT( * ) * + 59 + + ( - + 40 ) * 74 * 17 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6524
SELECT ALL 69 * CASE - COUNT ( * ) WHEN + - 83 THEN 90 + - - COUNT ( ALL - ( 1 ) ) - + - COALESCE ( 67, - + ( + + MIN ( ALL - - 95 ) ) * - 72 * + 14 * + - 72 ) - + - COUNT ( * ) * + 59 + + ( - + 40 ) * 74 * 17 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6525
SELECT ALL COUNT( ALL - + 96 )
----
1

skipif mysql # not compatible
query I rowsort label-6525
SELECT ALL COUNT ( ALL - + 96 )
----
1

query I rowsort
SELECT + 57 + - + 23
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6527
SELECT + NULLIF ( + 11, - 24 ) * - + COUNT( * ) * - + CASE 22 WHEN 65 + + ( + 26 ) THEN + 83 WHEN - 47 * - 6 THEN NULL WHEN + + 98 THEN NULL ELSE NULLIF ( - 64, 99 ) + - 47 END + - 61 * + COALESCE ( + ( - 87 ), + COUNT( * ) * + + MAX( 72 ) DIV - 8 * + - ( ( + ( + + 79 ) ) ) - - 12, COUNT( * ) * - 19 * + + ( + 90 ) + + - COUNT( * ) + + ( - 60 ) )
----
4086

skipif mysql # not compatible
query I rowsort label-6527
SELECT + NULLIF ( + 11, - 24 ) * - + COUNT ( * ) * - + CASE 22 WHEN 65 + + ( + 26 ) THEN + 83 WHEN - 47 * - 6 THEN NULL WHEN + + 98 THEN NULL ELSE NULLIF ( - 64, 99 ) + - 47 END + - 61 * + COALESCE ( + ( - 87 ), + COUNT ( * ) * + + MAX ( 72 ) / - 8 * + - ( ( + ( + + 79 ) ) ) - - 12, COUNT ( * ) * - 19 * + + ( + 90 ) + + - COUNT ( * ) + + ( - 60 ) )
----
4086

onlyif mysql # aggregate syntax: 
query I rowsort label-6528
SELECT - 9 + - + MAX( 5 ) AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-6528
SELECT - 9 + - + MAX ( 5 ) AS col2
----
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-6529
SELECT ALL 1 AS col1, 50 + + COUNT( * )
----
1
51

skipif mysql # not compatible
query II rowsort label-6529
SELECT ALL 1 AS col1, 50 + + COUNT ( * )
----
1
51

query I rowsort
SELECT - 27 * + 69 AS col2
----
-1863

query II rowsort
SELECT 82 AS col0, 69
----
82
69

onlyif mysql # aggregate syntax: 
query I rowsort label-6532
SELECT ALL COUNT( + + ( 83 ) )
----
1

skipif mysql # not compatible
query I rowsort label-6532
SELECT ALL COUNT ( + + ( 83 ) )
----
1

query I rowsort
SELECT + 91 * 26
----
2366

onlyif mysql # aggregate syntax: 
query I rowsort label-6534
SELECT ALL + 7 + MIN( ALL 18 ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-6534
SELECT ALL + 7 + MIN ( ALL 18 ) AS col0
----
25

query I rowsort
SELECT ALL - 44 + + - 59
----
-103

query I rowsort
SELECT ALL + 16 + - + 94 AS col2
----
-78

query I rowsort
SELECT - ( - 1 ) AS col1
----
1

query II rowsort
SELECT 20 AS col1, 50
----
20
50

query I rowsort
SELECT + ( - 3 ) col0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6540
SELECT ALL - 41 DIV + MIN( + ( + + 21 ) ) - + 68 * - + 36 * 60 + + MIN( - 6 )
----
146873

skipif mysql # not compatible
query I rowsort label-6540
SELECT ALL - 41 / + MIN ( + ( + + 21 ) ) - + 68 * - + 36 * 60 + + MIN ( - 6 )
----
146873

query I rowsort
SELECT DISTINCT + - COALESCE ( + 61, - 80, + 89 * - 89 )
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6542
SELECT + - CASE - 86 WHEN + - 0 * 17 * - CAST( 4 AS SIGNED ) THEN + 61 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6542
SELECT + - CASE - 86 WHEN + - 0 * 17 * - CAST ( 4 AS INTEGER ) THEN + 61 END
----
NULL

query I rowsort
SELECT - - 32 - - 44 + - 88 AS col0
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-6544
SELECT + - 97 AS col0, ( - COUNT( + 11 ) ) AS col1
----
-97
-1

skipif mysql # not compatible
query II rowsort label-6544
SELECT + - 97 AS col0, ( - COUNT ( + 11 ) ) AS col1
----
-97
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-6545
SELECT ALL + - 53, - MAX( 94 ) col1
----
-53
-94

skipif mysql # not compatible
query II rowsort label-6545
SELECT ALL + - 53, - MAX ( 94 ) col1
----
-53
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6546
SELECT - COUNT( * ) + + CAST( - + 4 AS SIGNED ) + + NULLIF ( + + 34, 3 * 70 ) - - COUNT( * )
----
30

skipif mysql # not compatible
query I rowsort label-6546
SELECT - COUNT ( * ) + + CAST ( - + 4 AS INTEGER ) + + NULLIF ( + + 34, 3 * 70 ) - - COUNT ( * )
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6547
SELECT DISTINCT - - MAX( + - 78 ) * + - 20 + 31 DIV 95 + - - 76, 9 AS col0
----
1636
9

skipif mysql # not compatible
query II rowsort label-6547
SELECT DISTINCT - - MAX ( + - 78 ) * + - 20 + 31 / 95 + - - 76, 9 AS col0
----
1636
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6548
SELECT ALL - 4 * + CASE ( - COUNT( * ) ) WHEN + - 59 - - 97 THEN 25 WHEN - 30 THEN NULL ELSE ( - 25 ) END + - + COUNT( * ) - + + NULLIF ( 14, 16 + + SUM( + - 87 ) )
----
85

skipif mysql # not compatible
query I rowsort label-6548
SELECT ALL - 4 * + CASE ( - COUNT ( * ) ) WHEN + - 59 - - 97 THEN 25 WHEN - 30 THEN NULL ELSE ( - 25 ) END + - + COUNT ( * ) - + + NULLIF ( 14, 16 + + SUM ( + - 87 ) )
----
85

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6549
SELECT ALL - + 91 * MIN( + 71 ) - - - 34 * + CAST( NULL AS DECIMAL ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6549
SELECT ALL - + 91 * MIN ( + 71 ) - - - 34 * + CAST ( NULL AS REAL ) col2
----
NULL

query I rowsort
SELECT - 63 * - - 16 - 31
----
-1039

onlyif mysql # aggregate syntax: 
query I rowsort label-6551
SELECT ALL + 86 * + COUNT( * )
----
86

skipif mysql # not compatible
query I rowsort label-6551
SELECT ALL + 86 * + COUNT ( * )
----
86

query II rowsort
SELECT DISTINCT + - 37, 91 * + 78 AS col1
----
-37
7098

query I rowsort
SELECT - 77 - + 5
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6554
SELECT - + CAST( NULL AS SIGNED ) + + 50 + + 70 DIV - 28 * - COUNT( * ) + - 7, - 44 DIV - 63 AS col0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-6554
SELECT - + CAST ( NULL AS INTEGER ) + + 50 + + 70 / - 28 * - COUNT ( * ) + - 7, - 44 / - 63 AS col0
----
NULL
0

query I rowsort
SELECT ALL - - NULLIF ( - 50, - 52 - + + 18 ) * - - ( - 58 )
----
2900

query I rowsort
SELECT - - 30 * + 35 AS col0
----
1050

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6557
SELECT + - NULLIF ( + 53, - CAST( NULL AS SIGNED ) + - - 43 ) * + NULLIF ( - + CAST( NULL AS SIGNED ), + 95 ), ( - COUNT( * ) ) AS col1
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-6557
SELECT + - NULLIF ( + 53, - CAST ( NULL AS INTEGER ) + - - 43 ) * + NULLIF ( - + CAST ( NULL AS INTEGER ), + 95 ), ( - COUNT ( * ) ) AS col1
----
NULL
-1

query I rowsort
SELECT - + 56 * ( - 14 )
----
784

query I rowsort
SELECT + + 50 * 26 + - 29
----
1271

query I rowsort
SELECT DISTINCT + + 87 col2
----
87

query I rowsort
SELECT DISTINCT + + NULLIF ( 21, 26 ) AS col1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-6562
SELECT + ( COUNT( * ) ) * + NULLIF ( 16, + 5 ) * + + COUNT( * ) * + 84 + - - ( + 59 )
----
1403

skipif mysql # not compatible
query I rowsort label-6562
SELECT + ( COUNT ( * ) ) * + NULLIF ( 16, + 5 ) * + + COUNT ( * ) * + 84 + - - ( + 59 )
----
1403

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6563
SELECT ALL CAST( + 40 AS SIGNED ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-6563
SELECT ALL CAST ( + 40 AS INTEGER ) AS col0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-6564
SELECT - ( - SUM( 63 ) ) AS col0
----
63

skipif mysql # not compatible
query I rowsort label-6564
SELECT - ( - SUM ( 63 ) ) AS col0
----
63

query I rowsort
SELECT - 4 * 12 AS col2
----
-48

query II rowsort
SELECT - 21 - + + 58, - 99 AS col1
----
-79
-99

query II rowsort
SELECT + 97 - + 93, + ( - 18 ) * 69 AS col2
----
4
-1242

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6568
SELECT + 73 * CAST( NULL AS SIGNED ) * 68
----
NULL

skipif mysql # not compatible
query I rowsort label-6568
SELECT + 73 * CAST ( NULL AS INTEGER ) * 68
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6569
SELECT DISTINCT + 3 DIV - 61 * - - 91 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6569
SELECT DISTINCT + 3 / - 61 * - - 91 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6570
SELECT + 14 + 52 + COUNT( - 41 )
----
67

skipif mysql # not compatible
query I rowsort label-6570
SELECT + 14 + 52 + COUNT ( - 41 )
----
67

query I rowsort
SELECT + 19 - + 5
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-6572
SELECT + COUNT( DISTINCT - 83 ) + COUNT( * ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-6572
SELECT + COUNT ( DISTINCT - 83 ) + COUNT ( * ) AS col0
----
2

query I rowsort
SELECT ALL 2 + - CASE - 70 WHEN 15 + + + 66 THEN + - 50 WHEN + 62 + - 89 THEN - + 24 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6574
SELECT + COUNT( * ) * - - 95 AS col2, 85 * - - 32 AS col1
----
95
2720

skipif mysql # not compatible
query II rowsort label-6574
SELECT + COUNT ( * ) * - - 95 AS col2, 85 * - - 32 AS col1
----
95
2720

query I rowsort
SELECT DISTINCT 19 * 9 AS col0
----
171

query I rowsort
SELECT + 84 + - - ( + + 42 ) + - + 56
----
70

query I rowsort
SELECT ALL 37 * + 89
----
3293

query I rowsort
SELECT 68 + - - 38 AS col1
----
106

query I rowsort
SELECT ALL 81 - 36 + 71 + - 62 * + 27 AS col2
----
-1558

onlyif mysql # aggregate syntax: 
query III rowsort label-6580
SELECT - 25 + 40, 38 AS col0, - + COUNT( * ) AS col2
----
15
38
-1

skipif mysql # not compatible
query III rowsort label-6580
SELECT - 25 + 40, 38 AS col0, - + COUNT ( * ) AS col2
----
15
38
-1

query II rowsort
SELECT DISTINCT - - ( + 33 ) AS col0, 68 AS col2
----
33
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6582
SELECT DISTINCT - - SUM( 10 ) AS col1
----
10

skipif mysql # not compatible
query I rowsort label-6582
SELECT DISTINCT - - SUM ( 10 ) AS col1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6583
SELECT + SUM( ALL - + 9 )
----
-9

skipif mysql # not compatible
query I rowsort label-6583
SELECT + SUM ( ALL - + 9 )
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6584
SELECT - 1 DIV + COUNT( * ) + 92 - 86 * - + 70 * - ( 36 ), 16 AS col1
----
-216629
16

skipif mysql # not compatible
query II rowsort label-6584
SELECT - 1 / + COUNT ( * ) + 92 - 86 * - + 70 * - ( 36 ), 16 AS col1
----
-216629
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6585
SELECT + 0 * - COUNT( * ) DIV + 25 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6585
SELECT + 0 * - COUNT ( * ) / + 25 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6586
SELECT + SUM( - 93 ) + - - MIN( - 57 ) + + - CAST( MIN( 72 ) AS SIGNED ) * + 59 + 18 + 99 DIV + 72
----
-4379

skipif mysql # not compatible
query I rowsort label-6586
SELECT + SUM ( - 93 ) + - - MIN ( - 57 ) + + - CAST ( MIN ( 72 ) AS INTEGER ) * + 59 + 18 + 99 / + 72
----
-4379

onlyif mysql # aggregate syntax: 
query II rowsort label-6587
SELECT 1 + - 14, COUNT( * ) AS col0
----
-13
1

skipif mysql # not compatible
query II rowsort label-6587
SELECT 1 + - 14, COUNT ( * ) AS col0
----
-13
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6588
SELECT ALL + 74 DIV + - COALESCE ( 35, + + 52 * - - 61 )
----
-2

skipif mysql # not compatible
query I rowsort label-6588
SELECT ALL + 74 / + - COALESCE ( 35, + + 52 * - - 61 )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6589
SELECT DISTINCT + - CASE + 73 WHEN - 62 THEN - 35 + + COUNT( * ) + - 9 * + COUNT( * ) ELSE 54 END * MIN( DISTINCT + 8 )
----
-432

skipif mysql # not compatible
query I rowsort label-6589
SELECT DISTINCT + - CASE + 73 WHEN - 62 THEN - 35 + + COUNT ( * ) + - 9 * + COUNT ( * ) ELSE 54 END * MIN ( DISTINCT + 8 )
----
-432

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6590
SELECT COUNT( * ) DIV - 44 col2
----
0

skipif mysql # not compatible
query I rowsort label-6590
SELECT COUNT ( * ) / - 44 col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6591
SELECT DISTINCT - MAX( ALL - 47 ) col2, - 48
----
47
-48

skipif mysql # not compatible
query II rowsort label-6591
SELECT DISTINCT - MAX ( ALL - 47 ) col2, - 48
----
47
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-6592
SELECT 79 * - - 89 + ( - - 9 ) + - COUNT( - - 90 ) - + + 79 + + 16 * + COUNT( * ) + - 82 AS col2
----
6894

skipif mysql # not compatible
query I rowsort label-6592
SELECT 79 * - - 89 + ( - - 9 ) + - COUNT ( - - 90 ) - + + 79 + + 16 * + COUNT ( * ) + - 82 AS col2
----
6894

query I rowsort
SELECT 32 + - 78 AS col2
----
-46

query I rowsort
SELECT ALL - 6 * + 9 AS col0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-6595
SELECT ALL + ( - ( 32 ) ) * 49 + 88 + + 82 - - + 66 * + + COUNT( * ) + - 50 col2
----
-1382

skipif mysql # not compatible
query I rowsort label-6595
SELECT ALL + ( - ( 32 ) ) * 49 + 88 + + 82 - - + 66 * + + COUNT ( * ) + - 50 col2
----
-1382

onlyif mysql # DIV for integer division: 
query I rowsort label-6596
SELECT 6 DIV 77
----
0

skipif mysql # not compatible
query I rowsort label-6596
SELECT 6 / 77
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6597
SELECT COUNT( * ) * 24 * - 28 AS col0, 4 AS col2
----
-672
4

skipif mysql # not compatible
query II rowsort label-6597
SELECT COUNT ( * ) * 24 * - 28 AS col0, 4 AS col2
----
-672
4

query I rowsort
SELECT - 33 * - 86 * 29 * + 54 + - - 8 col2
----
4444316

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6599
SELECT DISTINCT - CAST( - - 51 AS SIGNED ) col1
----
-51

skipif mysql # not compatible
query I rowsort label-6599
SELECT DISTINCT - CAST ( - - 51 AS INTEGER ) col1
----
-51

query I rowsort
SELECT ALL + ( - 61 ) + - 94 * 53 + 20 + - + 64
----
-5087

onlyif mysql # aggregate syntax: 
query I rowsort label-6601
SELECT COUNT( * ) + - 80 + - 58 * 86
----
-5067

skipif mysql # not compatible
query I rowsort label-6601
SELECT COUNT ( * ) + - 80 + - 58 * 86
----
-5067

query I rowsort
SELECT DISTINCT 79 * + NULLIF ( + 86, - 93 )
----
6794

query II rowsort
SELECT 53 AS col2, - 97 * - 20 * 45 + - + 44 + 89 + - 11 col0
----
53
87334

onlyif mysql # aggregate syntax: 
query I rowsort label-6604
SELECT MAX( ALL + + 68 ) + NULLIF ( 6, + COUNT( * ) )
----
74

skipif mysql # not compatible
query I rowsort label-6604
SELECT MAX ( ALL + + 68 ) + NULLIF ( 6, + COUNT ( * ) )
----
74

query I rowsort
SELECT ALL + 44 + + 38 AS col1
----
82

query I rowsort
SELECT 76 + ( - 83 ) AS col0
----
-7

query I rowsort
SELECT DISTINCT 61 * ( - 21 )
----
-1281

query I rowsort
SELECT ALL 78 * - 55
----
-4290

onlyif mysql # aggregate syntax: 
query I rowsort label-6609
SELECT COUNT( ALL + ( - CASE + 73 WHEN 12 - - 7 THEN - - 45 + 80 END ) ) * + 7
----
0

skipif mysql # not compatible
query I rowsort label-6609
SELECT COUNT ( ALL + ( - CASE + 73 WHEN 12 - - 7 THEN - - 45 + 80 END ) ) * + 7
----
0

query I rowsort
SELECT DISTINCT 13 - - 17 AS col0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-6611
SELECT ALL - COUNT( * ) - + 22
----
-23

skipif mysql # not compatible
query I rowsort label-6611
SELECT ALL - COUNT ( * ) - + 22
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-6612
SELECT NULLIF ( 14, + 5 ) * + COUNT( * )
----
14

skipif mysql # not compatible
query I rowsort label-6612
SELECT NULLIF ( 14, + 5 ) * + COUNT ( * )
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-6613
SELECT DISTINCT 57 DIV - 40 col0
----
-1

skipif mysql # not compatible
query I rowsort label-6613
SELECT DISTINCT 57 / - 40 col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6614
SELECT DISTINCT CAST( - - COUNT( ALL - 48 ) AS SIGNED ) - + 32 AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-6614
SELECT DISTINCT CAST ( - - COUNT ( ALL - 48 ) AS INTEGER ) - + 32 AS col2
----
-31

query I rowsort
SELECT - COALESCE ( + + 55, 75 )
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6616
SELECT 99 AS col2, + ( - ( CAST( NULL AS SIGNED ) ) ) col1
----
99
NULL

skipif mysql # not compatible
query II rowsort label-6616
SELECT 99 AS col2, + ( - ( CAST ( NULL AS INTEGER ) ) ) col1
----
99
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6617
SELECT ALL COUNT( * ) DIV + ( 80 )
----
0

skipif mysql # not compatible
query I rowsort label-6617
SELECT ALL COUNT ( * ) / + ( 80 )
----
0

query I rowsort
SELECT 93 * + - NULLIF ( + - 9, + + AVG ( ALL - + 58 ) )
----
837

onlyif mysql # aggregate syntax: 
query II rowsort label-6619
SELECT + 36 col1, + COUNT( * ) - - 78 col0
----
36
79

skipif mysql # not compatible
query II rowsort label-6619
SELECT + 36 col1, + COUNT ( * ) - - 78 col0
----
36
79

query I rowsort
SELECT 85 - - 98
----
183

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6621
SELECT - 81 DIV - 96 + + ( - ( + ( 97 ) ) ) + + NULLIF ( - 13, - - ( MIN( + + 8 ) ) ) * - - 61 AS col1
----
-890

skipif mysql # not compatible
query I rowsort label-6621
SELECT - 81 / - 96 + + ( - ( + ( 97 ) ) ) + + NULLIF ( - 13, - - ( MIN ( + + 8 ) ) ) * - - 61 AS col1
----
-890

query I rowsort
SELECT 16 * ( + 97 ) + - 72 + - 30 col2
----
1450

onlyif mysql # aggregate syntax: 
query I rowsort label-6623
SELECT - 82 * + MAX( ALL 80 ) - MAX( + 59 ) * - + 23
----
-5203

skipif mysql # not compatible
query I rowsort label-6623
SELECT - 82 * + MAX ( ALL 80 ) - MAX ( + 59 ) * - + 23
----
-5203

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6624
SELECT ALL - CAST( - 68 AS SIGNED )
----
68

skipif mysql # not compatible
query I rowsort label-6624
SELECT ALL - CAST ( - 68 AS INTEGER )
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6625
SELECT + CAST( NULL AS SIGNED ), + 63 * - + 13 + + 49 AS col1
----
NULL
-770

skipif mysql # not compatible
query II rowsort label-6625
SELECT + CAST ( NULL AS INTEGER ), + 63 * - + 13 + + 49 AS col1
----
NULL
-770

onlyif mysql # aggregate syntax: 
query I rowsort label-6626
SELECT ALL - 42 + + 13 + + CASE MIN( DISTINCT 5 ) WHEN + COUNT( * ) THEN - + 48 + COALESCE ( 75, COUNT( * ), + 73 + CASE - + 72 WHEN + 23 THEN - + COUNT( * ) END, 81 ) ELSE + 62 END * - - COUNT( * )
----
33

skipif mysql # not compatible
query I rowsort label-6626
SELECT ALL - 42 + + 13 + + CASE MIN ( DISTINCT 5 ) WHEN + COUNT ( * ) THEN - + 48 + COALESCE ( 75, COUNT ( * ), + 73 + CASE - + 72 WHEN + 23 THEN - + COUNT ( * ) END, 81 ) ELSE + 62 END * - - COUNT ( * )
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6627
SELECT ALL - CAST( NULL AS SIGNED ) + - 45 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6627
SELECT ALL - CAST ( NULL AS INTEGER ) + - 45 AS col2
----
NULL

query II rowsort
SELECT 92 AS col2, 25 - - + 50 + 92 * - 74
----
92
-6733

query I rowsort
SELECT 41 * - 85 + - + 80 col2
----
-3565

onlyif mysql # aggregate syntax: 
query I rowsort label-6630
SELECT - + MIN( DISTINCT + + ( - 64 ) ) * 37 + + 36 + - + 37 * + 83 + + - 3 - - - ( - - 24 ) AS col2
----
-694

skipif mysql # not compatible
query I rowsort label-6630
SELECT - + MIN ( DISTINCT + + ( - 64 ) ) * 37 + + 36 + - + 37 * + 83 + + - 3 - - - ( - - 24 ) AS col2
----
-694

query I rowsort
SELECT DISTINCT 40 + + 54
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-6632
SELECT DISTINCT - COUNT( * ) + 21 + + + 98 * 18 * 48 * 31 * 21 + 82
----
55121574

skipif mysql # not compatible
query I rowsort label-6632
SELECT DISTINCT - COUNT ( * ) + 21 + + + 98 * 18 * 48 * 31 * 21 + 82
----
55121574

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6633
SELECT ALL + CAST( NULL AS SIGNED ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6633
SELECT ALL + CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + 29 + + + 25
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6635
SELECT DISTINCT - 75 + COUNT( * ) DIV 95 + - 41 * + - 55
----
2180

skipif mysql # not compatible
query I rowsort label-6635
SELECT DISTINCT - 75 + COUNT ( * ) / 95 + - 41 * + - 55
----
2180

query I rowsort
SELECT ALL + 20 * - - 99 * + - 87
----
-172260

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6637
SELECT ALL CAST( 47 AS SIGNED ) + - - 87 * + NULLIF ( 9, - MIN( - + 46 ) * + + 37 ) AS col1
----
830

skipif mysql # not compatible
query I rowsort label-6637
SELECT ALL CAST ( 47 AS INTEGER ) + - - 87 * + NULLIF ( 9, - MIN ( - + 46 ) * + + 37 ) AS col1
----
830

query I rowsort
SELECT 60 * + 30 AS col1
----
1800

query I rowsort
SELECT DISTINCT - 3 * + 51
----
-153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6640
SELECT 47 - - CAST( - 47 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-6640
SELECT 47 - - CAST ( - 47 AS INTEGER )
----
0

query I rowsort
SELECT 50 * + 10 AS col0
----
500

onlyif mysql # aggregate syntax: 
query I rowsort label-6642
SELECT 56 - + 12 * - + COUNT( * ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-6642
SELECT 56 - + 12 * - + COUNT ( * ) AS col2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6643
SELECT ALL + CASE + COUNT( * ) WHEN - 15 * + - 64 + - 21 - - - 99 THEN 78 - + + 56 WHEN + 59 THEN - MIN( - 6 ) WHEN + 34 THEN - 63 END * + 7 - - - CASE + 40 WHEN - - 36 THEN 65 ELSE + ( - 59 ) END * COUNT( * ) - - 58 - 11 * 78 * + 34 + - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6643
SELECT ALL + CASE + COUNT ( * ) WHEN - 15 * + - 64 + - 21 - - - 99 THEN 78 - + + 56 WHEN + 59 THEN - MIN ( - 6 ) WHEN + 34 THEN - 63 END * + 7 - - - CASE + 40 WHEN - - 36 THEN 65 ELSE + ( - 59 ) END * COUNT ( * ) - - 58 - 11 * 78 * + 34 + - + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL NULLIF ( 0, - ( + 0 ) + - 86 + 43 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6645
SELECT DISTINCT ( - COUNT( DISTINCT 92 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-6645
SELECT DISTINCT ( - COUNT ( DISTINCT 92 ) )
----
-1

query I rowsort
SELECT - 16 - 90
----
-106

onlyif mysql # aggregate syntax: 
query I rowsort label-6647
SELECT - 55 * + + NULLIF ( - COUNT( * ), - + ( - 10 ) ) * - + NULLIF ( - + 40, COUNT( * ) ) + 24 * + COUNT( * ) + + 4
----
2228

skipif mysql # not compatible
query I rowsort label-6647
SELECT - 55 * + + NULLIF ( - COUNT ( * ), - + ( - 10 ) ) * - + NULLIF ( - + 40, COUNT ( * ) ) + 24 * + COUNT ( * ) + + 4
----
2228

query I rowsort
SELECT + 29 - + ( + 56 ) AS col2
----
-27

query II rowsort
SELECT DISTINCT + 40 * - 18 + - 41 * - 46, 93 AS col2
----
1166
93

query I rowsort
SELECT + + 12 * + 38
----
456

onlyif mysql # DIV for integer division: 
query I rowsort label-6651
SELECT ALL - 7 * + 60 DIV - 29
----
14

skipif mysql # not compatible
query I rowsort label-6651
SELECT ALL - 7 * + 60 / - 29
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-6652
SELECT - - NULLIF ( + ( - + 85 ), 48 ) + COUNT( * ) - 48 + + 52 AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-6652
SELECT - - NULLIF ( + ( - + 85 ), 48 ) + COUNT ( * ) - 48 + + 52 AS col0
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-6653
SELECT ALL + SUM( 86 ) AS col1
----
86

skipif mysql # not compatible
query I rowsort label-6653
SELECT ALL + SUM ( 86 ) AS col1
----
86

query I rowsort
SELECT - + 68 + ( + - 84 )
----
-152

query I rowsort
SELECT ALL + 48 * - + ( + 37 ) + 33 AS col2
----
-1743

onlyif mysql # aggregate syntax: 
query I rowsort label-6656
SELECT ALL + COUNT( * ) * ( - + MAX( DISTINCT - + 14 ) ) + - 77
----
-63

skipif mysql # not compatible
query I rowsort label-6656
SELECT ALL + COUNT ( * ) * ( - + MAX ( DISTINCT - + 14 ) ) + - 77
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6657
SELECT DISTINCT + COALESCE ( 57, 47, NULLIF ( - + 3, - + COALESCE ( + 55, - 54, + COUNT( * ), - 30 ) ) * - COUNT( * ) - - + MIN( DISTINCT - + 12 ) + - 5 + - 58 - + - 63 + - 3 + 70 * - 81 * + 70 DIV 41 + + ( CASE - 90 WHEN - 14 - - COUNT( * ) + - + 31 * 89 * + - 54 THEN - 87 WHEN + - 77 DIV + + 91 + - ( CASE + CAST( NULL AS SIGNED ) WHEN 76 * + 69 THEN NULL ELSE - 52 END ) * + 23 THEN - 76 * + 80 * - + 58 END ) DIV + - 64 * SUM( + 38 ) )
----
57

skipif mysql # not compatible
query I rowsort label-6657
SELECT DISTINCT + COALESCE ( 57, 47, NULLIF ( - + 3, - + COALESCE ( + 55, - 54, + COUNT ( * ), - 30 ) ) * - COUNT ( * ) - - + MIN ( DISTINCT - + 12 ) + - 5 + - 58 - + - 63 + - 3 + 70 * - 81 * + 70 / 41 + + ( CASE - 90 WHEN - 14 - - COUNT ( * ) + - + 31 * 89 * + - 54 THEN - 87 WHEN + - 77 / + + 91 + - ( CASE + CAST ( NULL AS INTEGER ) WHEN 76 * + 69 THEN NULL ELSE - 52 END ) * + 23 THEN - 76 * + 80 * - + 58 END ) / + - 64 * SUM ( + 38 ) )
----
57

query I rowsort
SELECT ALL + + 78 * + 19 + - 31 * 99 AS col0
----
-1587

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6659
SELECT DISTINCT 33 DIV + - 41 * COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-6659
SELECT DISTINCT 33 / + - 41 * COUNT ( * )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6660
SELECT ALL + - 59 * + + CAST( - COUNT( * ) AS SIGNED ) + 77 col1
----
136

skipif mysql # not compatible
query I rowsort label-6660
SELECT ALL + - 59 * + + CAST ( - COUNT ( * ) AS INTEGER ) + 77 col1
----
136

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6661
SELECT + 98 + 24 DIV + COUNT( * ) AS col1
----
122

skipif mysql # not compatible
query I rowsort label-6661
SELECT + 98 + 24 / + COUNT ( * ) AS col1
----
122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6662
SELECT DISTINCT 21 DIV COALESCE ( COUNT( * ), + 51 + CAST( NULL AS SIGNED ) - 54 )
----
21

skipif mysql # not compatible
query I rowsort label-6662
SELECT DISTINCT 21 / COALESCE ( COUNT ( * ), + 51 + CAST ( NULL AS INTEGER ) - 54 )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-6663
SELECT DISTINCT COUNT( * ) * - 55 + + 44 + + MAX( DISTINCT - 91 ) AS col0
----
-102

skipif mysql # not compatible
query I rowsort label-6663
SELECT DISTINCT COUNT ( * ) * - 55 + + 44 + + MAX ( DISTINCT - 91 ) AS col0
----
-102

query I rowsort
SELECT + NULLIF ( 73, + 20 ) AS col2
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-6665
SELECT + COUNT( * ) + 5 + 48
----
54

skipif mysql # not compatible
query I rowsort label-6665
SELECT + COUNT ( * ) + 5 + 48
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6666
SELECT CAST( + - 8 AS SIGNED ) * COALESCE ( - + 45, 20 ) - CAST( NULL AS SIGNED ) * - 77 + - 20
----
NULL

skipif mysql # not compatible
query I rowsort label-6666
SELECT CAST ( + - 8 AS INTEGER ) * COALESCE ( - + 45, 20 ) - CAST ( NULL AS INTEGER ) * - 77 + - 20
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6667
SELECT 80 * + + CASE 25 WHEN - 88 + - + SUM( - 40 ) + + 50 - ( 67 ) THEN + AVG ( + ( + + 25 ) ) * - COUNT( * ) ELSE NULL END + - 18 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6667
SELECT 80 * + + CASE 25 WHEN - 88 + - + SUM ( - 40 ) + + 50 - ( 67 ) THEN + AVG ( + ( + + 25 ) ) * - COUNT ( * ) ELSE NULL END + - 18 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6668
SELECT SUM( DISTINCT + ( ( + 11 ) ) ) AS col0
----
11

skipif mysql # not compatible
query I rowsort label-6668
SELECT SUM ( DISTINCT + ( ( + 11 ) ) ) AS col0
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-6669
SELECT ALL + COUNT( * ) AS col0, 27
----
1
27

skipif mysql # not compatible
query II rowsort label-6669
SELECT ALL + COUNT ( * ) AS col0, 27
----
1
27

onlyif mysql # aggregate syntax: 
query I rowsort label-6670
SELECT + 61 + + - 43 + 57 * + MAX( 31 ) * 22 + + 17 col0
----
38909

skipif mysql # not compatible
query I rowsort label-6670
SELECT + 61 + + - 43 + 57 * + MAX ( 31 ) * 22 + + 17 col0
----
38909

query I rowsort
SELECT ALL - 81 * - 97 AS col1
----
7857

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6672
SELECT ALL CASE - 92 WHEN - 58 THEN + 10 - CAST( NULL AS SIGNED ) WHEN + 22 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6672
SELECT ALL CASE - 92 WHEN - 58 THEN + 10 - CAST ( NULL AS INTEGER ) WHEN + 22 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6673
SELECT DISTINCT 1 DIV + 56
----
0

skipif mysql # not compatible
query I rowsort label-6673
SELECT DISTINCT 1 / + 56
----
0

query I rowsort
SELECT - 13 * 8 * + - 65 AS col2
----
6760

query I rowsort
SELECT ALL - 54 * - 68 AS col0
----
3672

onlyif mysql # aggregate syntax: 
query I rowsort label-6676
SELECT ALL 36 * + - COUNT( * ) AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-6676
SELECT ALL 36 * + - COUNT ( * ) AS col1
----
-36

query I rowsort
SELECT - 7 + - 82 col2
----
-89

query I rowsort
SELECT + 77 * 45 AS col0
----
3465

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6679
SELECT ALL NULLIF ( + CAST( 23 AS SIGNED ), CASE + 55 WHEN ( 2 ) * 69 THEN + 23 WHEN NULLIF ( + MIN( ALL 27 ), COUNT( * ) * COALESCE ( 37, - 78 + - 84 ) ) THEN NULL END )
----
23

skipif mysql # not compatible
query I rowsort label-6679
SELECT ALL NULLIF ( + CAST ( 23 AS INTEGER ), CASE + 55 WHEN ( 2 ) * 69 THEN + 23 WHEN NULLIF ( + MIN ( ALL 27 ), COUNT ( * ) * COALESCE ( 37, - 78 + - 84 ) ) THEN NULL END )
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-6680
SELECT - 0 DIV + 36
----
0

skipif mysql # not compatible
query I rowsort label-6680
SELECT - 0 / + 36
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6681
SELECT - 59 + - COUNT( * )
----
-60

skipif mysql # not compatible
query I rowsort label-6681
SELECT - 59 + - COUNT ( * )
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-6682
SELECT ALL + SUM( DISTINCT + 0 ) + - 43
----
-43

skipif mysql # not compatible
query I rowsort label-6682
SELECT ALL + SUM ( DISTINCT + 0 ) + - 43
----
-43

query I rowsort
SELECT DISTINCT ( + 36 ) col2
----
36

query I rowsort
SELECT ALL ( 61 ) AS col2
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-6685
SELECT DISTINCT - 64 + 66 DIV + 19 AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-6685
SELECT DISTINCT - 64 + 66 / + 19 AS col1
----
-61

query I rowsort
SELECT - 23 * 14
----
-322

query I rowsort
SELECT ALL - 92 + + 58
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-6688
SELECT DISTINCT CASE - 16 WHEN ( - MIN( DISTINCT - 34 ) ) * - 12 THEN + COUNT( * ) / - 84 + 50 / + ( - CASE SUM( 6 ) WHEN - COUNT( * ) THEN - 61 + - 49 ELSE 28 * 18 + - 59 * 1 END ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6688
SELECT DISTINCT CASE - 16 WHEN ( - MIN ( DISTINCT - 34 ) ) * - 12 THEN + COUNT ( * ) / - 84 + 50 / + ( - CASE SUM ( 6 ) WHEN - COUNT ( * ) THEN - 61 + - 49 ELSE 28 * 18 + - 59 * 1 END ) ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6689
SELECT DISTINCT - COALESCE ( 34, 89 - 25, - 49 * - 62 ) + 0 * + COUNT( * ) AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-6689
SELECT DISTINCT - COALESCE ( 34, 89 - 25, - 49 * - 62 ) + 0 * + COUNT ( * ) AS col0
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-6690
SELECT DISTINCT - CASE 48 WHEN - 50 * COUNT( * ) THEN 36 END + - 62 / 37
----
NULL

skipif mysql # not compatible
query I rowsort label-6690
SELECT DISTINCT - CASE 48 WHEN - 50 * COUNT ( * ) THEN 36 END + - 62 / 37
----
NULL

query I rowsort
SELECT - 87 * 94 AS col2
----
-8178

query I rowsort
SELECT - 93 * + 43 AS col0
----
-3999

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6693
SELECT - 57 - 0 DIV CAST( ( + 76 ) AS SIGNED )
----
-57

skipif mysql # not compatible
query I rowsort label-6693
SELECT - 57 - 0 / CAST ( ( + 76 ) AS INTEGER )
----
-57

query I rowsort
SELECT ALL 69 * 4
----
276

onlyif mysql # DIV for integer division: 
query I rowsort label-6695
SELECT ALL + 90 DIV + ( - 26 * 16 ) + 31 col0
----
31

skipif mysql # not compatible
query I rowsort label-6695
SELECT ALL + 90 / + ( - 26 * 16 ) + 31 col0
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6696
SELECT ALL MIN( DISTINCT 87 ) / - 22 - 44 / + NULLIF ( 47 + CASE - 19 + ( - 21 ) * + ( 86 ) WHEN 11 * COUNT( * ) THEN ( 36 ) WHEN - CAST( AVG ( DISTINCT 85 ) AS DECIMAL ) THEN NULL ELSE NULL END, CASE CAST( 52 AS SIGNED ) WHEN + 54 * 62 + 51 THEN ( COUNT( * ) ) * 84 WHEN + 38 * - COUNT( * ) THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-6696
SELECT ALL MIN ( DISTINCT 87 ) / - 22 - 44 / + NULLIF ( 47 + CASE - 19 + ( - 21 ) * + ( 86 ) WHEN 11 * COUNT ( * ) THEN ( 36 ) WHEN - CAST ( AVG ( DISTINCT 85 ) AS REAL ) THEN NULL ELSE NULL END, CASE CAST ( 52 AS INTEGER ) WHEN + 54 * 62 + 51 THEN ( COUNT ( * ) ) * 84 WHEN + 38 * - COUNT ( * ) THEN NULL END )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6697
SELECT DISTINCT + CAST( ( - 80 ) AS SIGNED ) AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-6697
SELECT DISTINCT + CAST ( ( - 80 ) AS INTEGER ) AS col0
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-6698
SELECT 48 * - COUNT( * ) + ( 7 + - 19 * + 48 ) * - 7
----
6287

skipif mysql # not compatible
query I rowsort label-6698
SELECT 48 * - COUNT ( * ) + ( 7 + - 19 * + 48 ) * - 7
----
6287

onlyif mysql # aggregate syntax: 
query I rowsort label-6699
SELECT + MAX( DISTINCT - 60 ) - 66
----
-126

skipif mysql # not compatible
query I rowsort label-6699
SELECT + MAX ( DISTINCT - 60 ) - 66
----
-126

query I rowsort
SELECT - 91 * + 12 AS col1
----
-1092

onlyif mysql # DIV for integer division: 
query I rowsort label-6701
SELECT ALL 3 DIV - 51 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6701
SELECT ALL 3 / - 51 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6702
SELECT - 9 DIV 50
----
0

skipif mysql # not compatible
query I rowsort label-6702
SELECT - 9 / 50
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6703
SELECT + COALESCE ( MIN( DISTINCT 49 ), 6, 91 ) AS col1
----
49

skipif mysql # not compatible
query I rowsort label-6703
SELECT + COALESCE ( MIN ( DISTINCT 49 ), 6, 91 ) AS col1
----
49

query I rowsort
SELECT ALL 55 * - 79
----
-4345

onlyif mysql # aggregate syntax: 
query I rowsort label-6705
SELECT SUM( 62 ) * 60 AS col0
----
3720

skipif mysql # not compatible
query I rowsort label-6705
SELECT SUM ( 62 ) * 60 AS col0
----
3720

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6706
SELECT ALL + 85 DIV COUNT( * ) AS col0
----
85

skipif mysql # not compatible
query I rowsort label-6706
SELECT ALL + 85 / COUNT ( * ) AS col0
----
85

query I rowsort
SELECT DISTINCT 60 * 63
----
3780

onlyif mysql # aggregate syntax: 
query I rowsort label-6708
SELECT 95 * - COUNT( DISTINCT 66 )
----
-95

skipif mysql # not compatible
query I rowsort label-6708
SELECT 95 * - COUNT ( DISTINCT 66 )
----
-95

query I rowsort
SELECT ALL 95 * + 58 AS col0
----
5510

query I rowsort
SELECT 65 + - 67 AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6711
SELECT - + NULLIF ( COUNT( * ), COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6711
SELECT - + NULLIF ( COUNT ( * ), COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6712
SELECT - SUM( 92 ) - - 25 col1
----
-67

skipif mysql # not compatible
query I rowsort label-6712
SELECT - SUM ( 92 ) - - 25 col1
----
-67

query I rowsort
SELECT + 25 * ( 41 + 57 )
----
2450

query I rowsort
SELECT 91 - + 4
----
87

query I rowsort
SELECT ALL + + 71 + + 17
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6716
SELECT - MAX( DISTINCT 99 ) + CAST( + 81 AS SIGNED ) AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-6716
SELECT - MAX ( DISTINCT 99 ) + CAST ( + 81 AS INTEGER ) AS col2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-6717
SELECT ALL 47 + ( + NULLIF ( + ( ( COUNT( * ) ) ), - 47 ) ) AS col2
----
48

skipif mysql # not compatible
query I rowsort label-6717
SELECT ALL 47 + ( + NULLIF ( + ( ( COUNT ( * ) ) ), - 47 ) ) AS col2
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-6718
SELECT MAX( DISTINCT + 99 )
----
99

skipif mysql # not compatible
query I rowsort label-6718
SELECT MAX ( DISTINCT + 99 )
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6719
SELECT ALL - + 58 + - SUM( DISTINCT + 25 + - 83 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6719
SELECT ALL - + 58 + - SUM ( DISTINCT + 25 + - 83 ) AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6720
SELECT ALL + COUNT( * ) DIV 96 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6720
SELECT ALL + COUNT ( * ) / 96 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6721
SELECT + 44 + - COUNT( * ) * 54
----
-10

skipif mysql # not compatible
query I rowsort label-6721
SELECT + 44 + - COUNT ( * ) * 54
----
-10

query I rowsort
SELECT 60 - + 50
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6723
SELECT + COUNT( ALL - 61 ) + + 46
----
47

skipif mysql # not compatible
query I rowsort label-6723
SELECT + COUNT ( ALL - 61 ) + + 46
----
47

query I rowsort
SELECT + 27 - 72 * - 18
----
1323

query I rowsort
SELECT DISTINCT + 64 + 54
----
118

query I rowsort
SELECT ALL - 5 + 5
----
0

query I rowsort
SELECT - 94 + 66 AS col1
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-6728
SELECT DISTINCT - SUM( + 17 ) AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-6728
SELECT DISTINCT - SUM ( + 17 ) AS col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-6729
SELECT COUNT( * ) * + - 24 AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-6729
SELECT COUNT ( * ) * + - 24 AS col2
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6730
SELECT + CAST( 10 AS SIGNED ) DIV - 32 + SUM( + ( 54 ) ) * COUNT( * )
----
54

skipif mysql # not compatible
query I rowsort label-6730
SELECT + CAST ( 10 AS INTEGER ) / - 32 + SUM ( + ( 54 ) ) * COUNT ( * )
----
54

query I rowsort
SELECT ALL - 98 * + + 23 AS col0
----
-2254

query I rowsort
SELECT 50 * + 79
----
3950

onlyif mysql # aggregate syntax: 
query I rowsort label-6733
SELECT 86 * - + 24 * - CASE 74 WHEN COUNT( * ) + 50 THEN 41 * 32 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6733
SELECT 86 * - + 24 * - CASE 74 WHEN COUNT ( * ) + 50 THEN 41 * 32 END AS col2
----
NULL

query I rowsort
SELECT 57 + - 3 * - 32
----
153

query I rowsort
SELECT DISTINCT + 81 * + + 7 * 46
----
26082

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6736
SELECT MIN( ALL - 8 ) * CAST( NULL AS SIGNED ) + + 65 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6736
SELECT MIN ( ALL - 8 ) * CAST ( NULL AS INTEGER ) + + 65 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6737
SELECT ALL + 99 * COUNT( * )
----
99

skipif mysql # not compatible
query I rowsort label-6737
SELECT ALL + 99 * COUNT ( * )
----
99

query I rowsort
SELECT 76 + - 3
----
73

query I rowsort
SELECT DISTINCT + 81 * - 23
----
-1863

query I rowsort
SELECT 91 + + 78 AS col0
----
169

query I rowsort
SELECT 66 * 8
----
528

query I rowsort
SELECT NULLIF ( - ( + ( + 50 ) ), 45 * + ( + 36 ) ) + 75
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-6743
SELECT 81 + + 80 * - ( - 41 * + 35 + COALESCE ( + 17 + COUNT( * ), + 30 ) )
----
113441

skipif mysql # not compatible
query I rowsort label-6743
SELECT 81 + + 80 * - ( - 41 * + 35 + COALESCE ( + 17 + COUNT ( * ), + 30 ) )
----
113441

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6744
SELECT - NULLIF ( - 1, - 86 ) / CASE 85 WHEN + 30 + + CAST( + COUNT( * ) + - 6 * 13 AS SIGNED ) THEN + 84 * SUM( 32 * + 74 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6744
SELECT - NULLIF ( - 1, - 86 ) / CASE 85 WHEN + 30 + + CAST ( + COUNT ( * ) + - 6 * 13 AS INTEGER ) THEN + 84 * SUM ( 32 * + 74 ) END
----
NULL

query I rowsort
SELECT DISTINCT - + 65 + - - 6
----
-59

query I rowsort
SELECT ALL 92 + - + 5 col2
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6747
SELECT ALL - - 15 + + CASE + 32 WHEN - CAST( - COUNT( * ) AS SIGNED ) THEN NULL ELSE 92 END * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6747
SELECT ALL - - 15 + + CASE + 32 WHEN - CAST ( - COUNT ( * ) AS INTEGER ) THEN NULL ELSE 92 END * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6748
SELECT DISTINCT + + MAX( 87 ) DIV 67 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6748
SELECT DISTINCT + + MAX ( 87 ) / 67 AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6749
SELECT + 76 DIV - 58
----
-1

skipif mysql # not compatible
query I rowsort label-6749
SELECT + 76 / - 58
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6750
SELECT ALL - 70 + - + CAST( 92 AS SIGNED )
----
-162

skipif mysql # not compatible
query I rowsort label-6750
SELECT ALL - 70 + - + CAST ( 92 AS INTEGER )
----
-162

query I rowsort
SELECT - COALESCE ( 39, + 54 ) col1
----
-39

query I rowsort
SELECT ALL + 1 + + - 53 AS col2
----
-52

query I rowsort
SELECT ( - + ( + 34 ) ) * 23 col0
----
-782

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6754
SELECT DISTINCT - 67 + - + 84 DIV MAX( 66 )
----
-68

skipif mysql # not compatible
query I rowsort label-6754
SELECT DISTINCT - 67 + - + 84 / MAX ( 66 )
----
-68

query I rowsort
SELECT ALL 81 + + 64 + 58 AS col1
----
203

query I rowsort
SELECT - 25 + 53
----
28

query I rowsort
SELECT - 65 * - 97
----
6305

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6758
SELECT DISTINCT + COUNT( * ) - - - 72 + - 60 DIV - 30
----
-69

skipif mysql # not compatible
query I rowsort label-6758
SELECT DISTINCT + COUNT ( * ) - - - 72 + - 60 / - 30
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-6759
SELECT ALL + NULLIF ( - ( - COUNT( * ) ), 29 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6759
SELECT ALL + NULLIF ( - ( - COUNT ( * ) ), 29 ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6760
SELECT CAST( - - COUNT( * ) AS SIGNED ) + - 47 * COUNT( * )
----
-46

skipif mysql # not compatible
query I rowsort label-6760
SELECT CAST ( - - COUNT ( * ) AS INTEGER ) + - 47 * COUNT ( * )
----
-46

query I rowsort
SELECT DISTINCT 26 - - ( + 67 ) - + 31 AS col0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-6762
SELECT + 1 * - COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6762
SELECT + 1 * - COUNT ( * ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6763
SELECT ALL - - SUM( - + 51 ) - COUNT( DISTINCT 59 ) AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-6763
SELECT ALL - - SUM ( - + 51 ) - COUNT ( DISTINCT 59 ) AS col0
----
-52

query I rowsort
SELECT DISTINCT + - 89 * + 36
----
-3204

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6765
SELECT ALL - COUNT( * ) DIV - - 6 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6765
SELECT ALL - COUNT ( * ) / - - 6 AS col0
----
0

query I rowsort
SELECT + 58 - - ( - 28 )
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-6767
SELECT 60 DIV 98
----
0

skipif mysql # not compatible
query I rowsort label-6767
SELECT 60 / 98
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6768
SELECT ( - 35 ) * - 13 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6768
SELECT ( - 35 ) * - 13 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 67 + + 96 + + 8
----
171

onlyif mysql # aggregate syntax: 
query I rowsort label-6770
SELECT DISTINCT 27 * + NULLIF ( + 45, COUNT( * ) )
----
1215

skipif mysql # not compatible
query I rowsort label-6770
SELECT DISTINCT 27 * + NULLIF ( + 45, COUNT ( * ) )
----
1215

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6771
SELECT CAST( + 88 AS SIGNED ) * 69 * - 47 + 5
----
-285379

skipif mysql # not compatible
query I rowsort label-6771
SELECT CAST ( + 88 AS INTEGER ) * 69 * - 47 + 5
----
-285379

query I rowsort
SELECT ALL + 67 * - 3
----
-201

query I rowsort
SELECT ALL + COALESCE ( - 19, 21, - 4 ) AS col0
----
-19

query I rowsort
SELECT NULLIF ( - 41, + 10 * ( 68 ) ) AS col0
----
-41

query I rowsort
SELECT 3 * + 3 - - 6
----
15

query I rowsort
SELECT DISTINCT 85 * - 83 * + - 76
----
536180

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6777
SELECT ALL - 22 DIV COUNT( * ) * - 29
----
638

skipif mysql # not compatible
query I rowsort label-6777
SELECT ALL - 22 / COUNT ( * ) * - 29
----
638

onlyif mysql # DIV for integer division: 
query II rowsort label-6778
SELECT + 57 AS col2, + 8 DIV + + 36 + + 67 DIV - 29 AS col2
----
57
-2

skipif mysql # not compatible
query II rowsort label-6778
SELECT + 57 AS col2, + 8 / + + 36 + + 67 / - 29 AS col2
----
57
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6779
SELECT + COUNT( * ) * - + COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6779
SELECT + COUNT ( * ) * - + COUNT ( * ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6780
SELECT + 30 * - 87 + + ( 15 ) * COUNT( * ) AS col1
----
-2595

skipif mysql # not compatible
query I rowsort label-6780
SELECT + 30 * - 87 + + ( 15 ) * COUNT ( * ) AS col1
----
-2595

onlyif mysql # aggregate syntax: 
query I rowsort label-6781
SELECT NULLIF ( - 65, + ( + COUNT( * ) ) * - 95 + - 42 * 8 )
----
-65

skipif mysql # not compatible
query I rowsort label-6781
SELECT NULLIF ( - 65, + ( + COUNT ( * ) ) * - 95 + - 42 * 8 )
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-6782
SELECT ALL 49 * 84 + - COUNT( 73 )
----
4115

skipif mysql # not compatible
query I rowsort label-6782
SELECT ALL 49 * 84 + - COUNT ( 73 )
----
4115

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6783
SELECT ALL + COALESCE ( + - 58, + CAST( + 74 AS SIGNED ) DIV 50 )
----
-58

skipif mysql # not compatible
query I rowsort label-6783
SELECT ALL + COALESCE ( + - 58, + CAST ( + 74 AS INTEGER ) / 50 )
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-6784
SELECT - 84 * - 92 * - COUNT( * ) AS col0
----
-7728

skipif mysql # not compatible
query I rowsort label-6784
SELECT - 84 * - 92 * - COUNT ( * ) AS col0
----
-7728

query I rowsort
SELECT DISTINCT 23 * + 44 + - - 11 AS col1
----
1023

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6786
SELECT ALL + ( + 2 ) * CAST( - 82 AS SIGNED ) + 54
----
-110

skipif mysql # not compatible
query I rowsort label-6786
SELECT ALL + ( + 2 ) * CAST ( - 82 AS INTEGER ) + 54
----
-110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6787
SELECT ALL 86 * + 47 + + CAST( + 60 AS SIGNED ) + 79 * CASE - CAST( + COUNT( ALL CAST( 69 AS SIGNED ) ) AS SIGNED ) WHEN - 78 THEN - 43 ELSE SUM( ALL 94 ) + 87 END col1
----
18401

skipif mysql # not compatible
query I rowsort label-6787
SELECT ALL 86 * + 47 + + CAST ( + 60 AS INTEGER ) + 79 * CASE - CAST ( + COUNT ( ALL CAST ( 69 AS INTEGER ) ) AS INTEGER ) WHEN - 78 THEN - 43 ELSE SUM ( ALL 94 ) + 87 END col1
----
18401

query I rowsort
SELECT ALL + - ( - 56 ) * - + 33 * 49 AS col1
----
-90552

onlyif mysql # aggregate syntax: 
query I rowsort label-6789
SELECT ALL + + COUNT( * ) * COUNT( * ) + - 6
----
-5

skipif mysql # not compatible
query I rowsort label-6789
SELECT ALL + + COUNT ( * ) * COUNT ( * ) + - 6
----
-5

query I rowsort
SELECT DISTINCT + - 50 * + 30 + + + 26
----
-1474

query II rowsort
SELECT 23 AS col2, 41 * + - NULLIF ( COALESCE ( 36, - 92 ), 33 )
----
23
-1476

onlyif mysql # DIV for integer division: 
query I rowsort label-6792
SELECT ALL + 30 * 20 * + + 29 * + NULLIF ( ( + 73 ) DIV - 6, + 58 ) col1
----
-208800

skipif mysql # not compatible
query I rowsort label-6792
SELECT ALL + 30 * 20 * + + 29 * + NULLIF ( ( + 73 ) / - 6, + 58 ) col1
----
-208800

query I rowsort
SELECT - 13 + - 5
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6794
SELECT - 26 + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6794
SELECT - 26 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6795
SELECT ALL - ( + COUNT( 35 ) ) - + 63 AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-6795
SELECT ALL - ( + COUNT ( 35 ) ) - + 63 AS col2
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-6796
SELECT + + 52 * + 64 + + - COALESCE ( - 45, MIN( - 35 ) ) AS col1
----
3373

skipif mysql # not compatible
query I rowsort label-6796
SELECT + + 52 * + 64 + + - COALESCE ( - 45, MIN ( - 35 ) ) AS col1
----
3373

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6797
SELECT DISTINCT + COALESCE ( 82, + 7 * 13 ) DIV + COUNT( * )
----
82

skipif mysql # not compatible
query I rowsort label-6797
SELECT DISTINCT + COALESCE ( 82, + 7 * 13 ) / + COUNT ( * )
----
82

query II rowsort
SELECT ALL - 79 AS col2, + 99 * - 74
----
-79
-7326

query I rowsort
SELECT - - 83 + - 13 AS col1
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-6800
SELECT ALL + 78 - + + ( - 29 ) DIV 99
----
78

skipif mysql # not compatible
query I rowsort label-6800
SELECT ALL + 78 - + + ( - 29 ) / 99
----
78

query I rowsort
SELECT ALL + 14 * 5 - + + 88
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-6802
SELECT - + NULLIF ( 70, COALESCE ( + 74, + 50 + MAX( ALL + 52 ) ) ) + - 95 AS col1
----
-165

skipif mysql # not compatible
query I rowsort label-6802
SELECT - + NULLIF ( 70, COALESCE ( + 74, + 50 + MAX ( ALL + 52 ) ) ) + - 95 AS col1
----
-165

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6803
SELECT ALL COALESCE ( - 95, - MIN( 62 ) + 27 DIV 67 ) * COUNT( * ) AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-6803
SELECT ALL COALESCE ( - 95, - MIN ( 62 ) + 27 / 67 ) * COUNT ( * ) AS col2
----
-95

query I rowsort
SELECT + 85 * + 47 AS col2
----
3995

onlyif mysql # DIV for integer division: 
query I rowsort label-6805
SELECT DISTINCT - 86 DIV - - NULLIF ( + 73, 72 * 33 )
----
-1

skipif mysql # not compatible
query I rowsort label-6805
SELECT DISTINCT - 86 / - - NULLIF ( + 73, 72 * 33 )
----
-1

query I rowsort
SELECT ALL 29 * 2 * 37 * 80 col0
----
171680

query I rowsort
SELECT + 98 * 72
----
7056

onlyif mysql # aggregate syntax: 
query I rowsort label-6808
SELECT - COUNT( * ) + + 50 + - COUNT( - ( 41 ) ) + 28
----
76

skipif mysql # not compatible
query I rowsort label-6808
SELECT - COUNT ( * ) + + 50 + - COUNT ( - ( 41 ) ) + 28
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-6809
SELECT - SUM( + 25 ) + - 14
----
-39

skipif mysql # not compatible
query I rowsort label-6809
SELECT - SUM ( + 25 ) + - 14
----
-39

query I rowsort
SELECT ALL 86 * - 76 * + 92
----
-601312

query I rowsort
SELECT + ( + 65 ) * + - 82 + - 63 * + 52
----
-8606

onlyif mysql # aggregate syntax: 
query I rowsort label-6812
SELECT + ( + 33 ) * + 10 * - MIN( + 53 ) AS col2
----
-17490

skipif mysql # not compatible
query I rowsort label-6812
SELECT + ( + 33 ) * + 10 * - MIN ( + 53 ) AS col2
----
-17490

onlyif mysql # aggregate syntax: 
query I rowsort label-6813
SELECT + COUNT( * ) + + COUNT( * ) * + - 44 AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-6813
SELECT + COUNT ( * ) + + COUNT ( * ) * + - 44 AS col2
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6814
SELECT CAST( + - COUNT( + 90 ) AS SIGNED ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6814
SELECT CAST ( + - COUNT ( + 90 ) AS INTEGER ) AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6815
SELECT ALL 26 DIV - + 41 + - 95 + - - COUNT( * )
----
-94

skipif mysql # not compatible
query I rowsort label-6815
SELECT ALL 26 / - + 41 + - 95 + - - COUNT ( * )
----
-94

query II rowsort
SELECT ALL - 36 * 37, 29 AS col1
----
-1332
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6817
SELECT CAST( 69 AS SIGNED ) AS col1
----
69

skipif mysql # not compatible
query I rowsort label-6817
SELECT CAST ( 69 AS INTEGER ) AS col1
----
69

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6818
SELECT + 51 DIV + - 51 + - - ( + - CAST( 68 AS SIGNED ) ) AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-6818
SELECT + 51 / + - 51 + - - ( + - CAST ( 68 AS INTEGER ) ) AS col2
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6819
SELECT + CAST( - 12 AS SIGNED ), 24 + + - 72 + 61 AS col2
----
-12
13

skipif mysql # not compatible
query II rowsort label-6819
SELECT + CAST ( - 12 AS INTEGER ), 24 + + - 72 + 61 AS col2
----
-12
13

query I rowsort
SELECT - 67 + 40 AS col2
----
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6821
SELECT - 84 DIV + - MIN( + 87 ) * + + 3 * + 97 + NULLIF ( ( - 27 ) + 28, - 43 * - 25 )
----
1

skipif mysql # not compatible
query I rowsort label-6821
SELECT - 84 / + - MIN ( + 87 ) * + + 3 * + 97 + NULLIF ( ( - 27 ) + 28, - 43 * - 25 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6822
SELECT + ( + + COUNT( - + 47 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6822
SELECT + ( + + COUNT ( - + 47 ) ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6823
SELECT ALL + COALESCE ( - 28, + 80 * - 34 + CAST( NULL AS SIGNED ) + - 3 ) DIV - 78 + MIN( DISTINCT 81 )
----
81

skipif mysql # not compatible
query I rowsort label-6823
SELECT ALL + COALESCE ( - 28, + 80 * - 34 + CAST ( NULL AS INTEGER ) + - 3 ) / - 78 + MIN ( DISTINCT 81 )
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6824
SELECT + 1 * 75 + + COUNT( * ) * - ( - 79 )
----
154

skipif mysql # not compatible
query I rowsort label-6824
SELECT + 1 * 75 + + COUNT ( * ) * - ( - 79 )
----
154

query I rowsort
SELECT ALL 37 * 0 * 54
----
0

query I rowsort
SELECT 64 * 57 + - 50
----
3598

onlyif mysql # aggregate syntax: 
query I rowsort label-6827
SELECT ALL + MAX( ALL - 80 ) * 24 + ( 27 ) + 8 AS col2
----
-1885

skipif mysql # not compatible
query I rowsort label-6827
SELECT ALL + MAX ( ALL - 80 ) * 24 + ( 27 ) + 8 AS col2
----
-1885

query I rowsort
SELECT - 24 + - 75 + - 82 AS col2
----
-181

onlyif mysql # aggregate syntax: 
query I rowsort label-6829
SELECT - 31 * MIN( 30 ) + - + 96
----
-1026

skipif mysql # not compatible
query I rowsort label-6829
SELECT - 31 * MIN ( 30 ) + - + 96
----
-1026

onlyif mysql # aggregate syntax: 
query I rowsort label-6830
SELECT + MAX( DISTINCT 49 ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-6830
SELECT + MAX ( DISTINCT 49 ) AS col2
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-6831
SELECT - + NULLIF ( - 52, + COALESCE ( COUNT( * ), + 92 * 77, + 35 ) ) + COUNT( * ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-6831
SELECT - + NULLIF ( - 52, + COALESCE ( COUNT ( * ), + 92 * 77, + 35 ) ) + COUNT ( * ) AS col1
----
53

query I rowsort
SELECT ALL - 63 * 10 - 44 AS col1
----
-674

query I rowsort
SELECT - ( + 61 ) * 15 + - - 58 * ( 0 ) AS col1
----
-915

onlyif mysql # aggregate syntax: 
query I rowsort label-6834
SELECT + + 62 * 25 * + COUNT( * ) - + COUNT( * )
----
1549

skipif mysql # not compatible
query I rowsort label-6834
SELECT + + 62 * 25 * + COUNT ( * ) - + COUNT ( * )
----
1549

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6835
SELECT - - 29 * + + CAST( - 2 AS SIGNED )
----
-58

skipif mysql # not compatible
query I rowsort label-6835
SELECT - - 29 * + + CAST ( - 2 AS INTEGER )
----
-58

query I rowsort
SELECT ALL - - 72 * - 58 AS col2
----
-4176

query I rowsort
SELECT - + COALESCE ( 0, + 2 ) + 46
----
46

query I rowsort
SELECT ALL + 26 * + 8 + + - 51 - + NULLIF ( 71, + 21 )
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6839
SELECT ALL ( - CAST( 18 AS SIGNED ) )
----
-18

skipif mysql # not compatible
query I rowsort label-6839
SELECT ALL ( - CAST ( 18 AS INTEGER ) )
----
-18

query I rowsort
SELECT DISTINCT - 85 * - 32 + + 60 AS col1
----
2780

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6841
SELECT ALL CAST( 23 AS SIGNED ) AS col2
----
23

skipif mysql # not compatible
query I rowsort label-6841
SELECT ALL CAST ( 23 AS INTEGER ) AS col2
----
23

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6842
SELECT - ( 60 ) * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6842
SELECT - ( 60 ) * - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6843
SELECT ALL - - 80 * - COUNT( * ) * - CAST( + - 86 AS SIGNED ) - + 60
----
-6940

skipif mysql # not compatible
query I rowsort label-6843
SELECT ALL - - 80 * - COUNT ( * ) * - CAST ( + - 86 AS INTEGER ) - + 60
----
-6940

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6844
SELECT - CAST( COALESCE ( - 60, + 89 + - 50, + 74 + 20 / 28, 30 * + 62 + 13 ) AS SIGNED ) AS col1
----
60

skipif mysql # not compatible
query I rowsort label-6844
SELECT - CAST ( COALESCE ( - 60, + 89 + - 50, + 74 + 20 / 28, 30 * + 62 + 13 ) AS INTEGER ) AS col1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-6845
SELECT - ( - - CASE - COUNT( * ) WHEN - - 20 - + 41 THEN - NULLIF ( + 39, - 85 ) - - 21 WHEN + 14 / + 98 + - COUNT( * ) * 76 THEN NULL END ) * 35 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6845
SELECT - ( - - CASE - COUNT ( * ) WHEN - - 20 - + 41 THEN - NULLIF ( + 39, - 85 ) - - 21 WHEN + 14 / + 98 + - COUNT ( * ) * 76 THEN NULL END ) * 35 col0
----
NULL

query I rowsort
SELECT + 19 * + + 71 AS col0
----
1349

query II rowsort
SELECT 25 AS col2, - 58
----
25
-58

query II rowsort
SELECT - 79 AS col0, 82 AS col0
----
-79
82

query I rowsort
SELECT ALL - 39 + - ( 63 )
----
-102

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6850
SELECT DISTINCT 91 * - ( - CAST( NULL AS SIGNED ) ) AS col1, - 86 AS col0
----
NULL
-86

skipif mysql # not compatible
query II rowsort label-6850
SELECT DISTINCT 91 * - ( - CAST ( NULL AS INTEGER ) ) AS col1, - 86 AS col0
----
NULL
-86

query I rowsort
SELECT ALL - 40 + + ( - 78 ) + - 88
----
-206

query I rowsort
SELECT 59 + 43 * 96
----
4187

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6853
SELECT - 55 col2, + CAST( NULL AS SIGNED ) AS col2
----
-55
NULL

skipif mysql # not compatible
query II rowsort label-6853
SELECT - 55 col2, + CAST ( NULL AS INTEGER ) AS col2
----
-55
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6854
SELECT 91 * + CASE + 18 WHEN 41 / - + 96 + - 76 * 34 - 43 THEN NULL WHEN 7 THEN + 71 + - COUNT( * ) * + 94 ELSE 74 * CASE WHEN ( + 79 * + 73 ) IS NULL THEN 80 END - + 9 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6854
SELECT 91 * + CASE + 18 WHEN 41 / - + 96 + - 76 * 34 - 43 THEN NULL WHEN 7 THEN + 71 + - COUNT ( * ) * + 94 ELSE 74 * CASE WHEN ( + 79 * + 73 ) IS NULL THEN 80 END - + 9 END
----
NULL

query I rowsort
SELECT + 97 * + 3 - + - 27 * NULLIF ( - + 68, + 13 ) col1
----
-1545

onlyif mysql # DIV for integer division: 
query I rowsort label-6856
SELECT ALL 19 DIV - 72
----
0

skipif mysql # not compatible
query I rowsort label-6856
SELECT ALL 19 / - 72
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6857
SELECT DISTINCT SUM( + 35 ) - - 58 AS col1, COALESCE ( 33, - 10 ) + - 42 col2
----
93
-9

skipif mysql # not compatible
query II rowsort label-6857
SELECT DISTINCT SUM ( + 35 ) - - 58 AS col1, COALESCE ( 33, - 10 ) + - 42 col2
----
93
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-6858
SELECT ALL + 13 DIV - ( 30 ) + - 69 AS col0
----
-69

skipif mysql # not compatible
query I rowsort label-6858
SELECT ALL + 13 / - ( 30 ) + - 69 AS col0
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6859
SELECT CASE + 22 WHEN - CAST( + 30 AS SIGNED ) THEN NULL ELSE 78 END
----
78

skipif mysql # not compatible
query I rowsort label-6859
SELECT CASE + 22 WHEN - CAST ( + 30 AS INTEGER ) THEN NULL ELSE 78 END
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6860
SELECT CAST( NULL AS SIGNED ) * 23 * - CASE 28 WHEN + COUNT( * ) THEN 16 + 81 / 91 END * 56 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6860
SELECT CAST ( NULL AS INTEGER ) * 23 * - CASE 28 WHEN + COUNT ( * ) THEN 16 + 81 / 91 END * 56 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 19 * - 20 * 76 + 51
----
-28829

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6862
SELECT + 53 * - 16 + + CASE - 64 WHEN - - NULLIF ( - 64, COUNT( * ) ) THEN 80 DIV - MAX( DISTINCT 5 ) WHEN - 23 THEN NULL END
----
-864

skipif mysql # not compatible
query I rowsort label-6862
SELECT + 53 * - 16 + + CASE - 64 WHEN - - NULLIF ( - 64, COUNT ( * ) ) THEN 80 / - MAX ( DISTINCT 5 ) WHEN - 23 THEN NULL END
----
-864

query I rowsort
SELECT 52 * + + 37
----
1924

query I rowsort
SELECT + CASE - 39 WHEN + 68 * - 3 THEN NULL ELSE + 42 END - + 75
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-6865
SELECT SUM( 43 ) * + + 53 + - - COUNT( * ) * + COUNT( * )
----
2280

skipif mysql # not compatible
query I rowsort label-6865
SELECT SUM ( 43 ) * + + 53 + - - COUNT ( * ) * + COUNT ( * )
----
2280

query I rowsort
SELECT - 20 * - 11 AS col0
----
220

onlyif mysql # aggregate syntax: 
query I rowsort label-6867
SELECT + 69 * - 61 + + - 77 - - COUNT( * ) + 92 AS col2
----
-4193

skipif mysql # not compatible
query I rowsort label-6867
SELECT + 69 * - 61 + + - 77 - - COUNT ( * ) + 92 AS col2
----
-4193

query I rowsort
SELECT 21 * 53 AS col1
----
1113

onlyif mysql # aggregate syntax: 
query I rowsort label-6869
SELECT ALL - COALESCE ( COUNT( * ), + - 3 ) + 14 + 86 AS col1
----
99

skipif mysql # not compatible
query I rowsort label-6869
SELECT ALL - COALESCE ( COUNT ( * ), + - 3 ) + 14 + 86 AS col1
----
99

query I rowsort
SELECT 8 + 75
----
83

query I rowsort
SELECT DISTINCT 68 + - 90 AS col0
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6872
SELECT ALL - 35 * + - 84 * - - 33 * - - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6872
SELECT ALL - 35 * + - 84 * - - 33 * - - CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6873
SELECT - MIN( - - 0 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6873
SELECT - MIN ( - - 0 ) AS col2
----
0

query I rowsort
SELECT 69 + - + 99 AS col2
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-6875
SELECT COUNT( * ) + - - 99
----
100

skipif mysql # not compatible
query I rowsort label-6875
SELECT COUNT ( * ) + - - 99
----
100

query II rowsort
SELECT ALL 1, + 2 AS col0
----
1
2

query I rowsort
SELECT 94 + + 51
----
145

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6878
SELECT ALL COALESCE ( - + MIN( DISTINCT 6 ), - - CAST( NULL AS SIGNED ) * 25 + - 30 ) * COUNT( * ) col0
----
-6

skipif mysql # not compatible
query I rowsort label-6878
SELECT ALL COALESCE ( - + MIN ( DISTINCT 6 ), - - CAST ( NULL AS INTEGER ) * 25 + - 30 ) * COUNT ( * ) col0
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6879
SELECT 10 * CAST( + + 53 AS SIGNED ) AS col0
----
530

skipif mysql # not compatible
query I rowsort label-6879
SELECT 10 * CAST ( + + 53 AS INTEGER ) AS col0
----
530

query I rowsort
SELECT ALL COALESCE ( + - 28, - 8 * - + 20 + COALESCE ( + 49, 31 + + 0, 25 * + 73 ) ) * - 54
----
1512

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6881
SELECT 1 DIV + + COUNT( * ) + + 87 * + 97 * + 46 - 93 AS col0
----
388102

skipif mysql # not compatible
query I rowsort label-6881
SELECT 1 / + + COUNT ( * ) + + 87 * + 97 * + 46 - 93 AS col0
----
388102

onlyif mysql # DIV for integer division: 
query I rowsort label-6882
SELECT - 79 DIV + 65 + CASE 69 WHEN 47 THEN NULL ELSE + 42 * + 41 END AS col0
----
1721

skipif mysql # not compatible
query I rowsort label-6882
SELECT - 79 / + 65 + CASE 69 WHEN 47 THEN NULL ELSE + 42 * + 41 END AS col0
----
1721

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6883
SELECT ALL - ( - - COALESCE ( 90, 74, - CASE CAST( - 73 AS DECIMAL ) WHEN + 96 THEN - 6 + - 52 ELSE NULL END ) ) AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-6883
SELECT ALL - ( - - COALESCE ( 90, 74, - CASE CAST ( - 73 AS REAL ) WHEN + 96 THEN - 6 + - 52 ELSE NULL END ) ) AS col0
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-6884
SELECT DISTINCT - COUNT( * ) * + - 16 AS col2
----
16

skipif mysql # not compatible
query I rowsort label-6884
SELECT DISTINCT - COUNT ( * ) * + - 16 AS col2
----
16

query I rowsort
SELECT ALL 32 * + 2
----
64

query I rowsort
SELECT - 2 + - - 10 AS col1
----
8

query II rowsort
SELECT + 47 AS col0, 67 * - + 99 + + + ( - - ( + 53 ) ) - - 62 AS col0
----
47
-6518

query I rowsort
SELECT 96 * + 38 + + NULLIF ( + 35, + 64 + + - AVG ( + 16 ) * 44 ) AS col2
----
3683

onlyif mysql # aggregate syntax: 
query I rowsort label-6889
SELECT ALL - SUM( + - 96 ) AS col0
----
96

skipif mysql # not compatible
query I rowsort label-6889
SELECT ALL - SUM ( + - 96 ) AS col0
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6890
SELECT DISTINCT CAST( - 11 AS SIGNED ) * - 21 * + + 35 * - COUNT( * )
----
-8085

skipif mysql # not compatible
query I rowsort label-6890
SELECT DISTINCT CAST ( - 11 AS INTEGER ) * - 21 * + + 35 * - COUNT ( * )
----
-8085

onlyif mysql # aggregate syntax: 
query I rowsort label-6891
SELECT - 51 + - 51 + - CASE - - 80 WHEN + 75 THEN + + 92 ELSE COUNT( * ) END - + SUM( + 11 ) * + 48
----
-631

skipif mysql # not compatible
query I rowsort label-6891
SELECT - 51 + - 51 + - CASE - - 80 WHEN + 75 THEN + + 92 ELSE COUNT ( * ) END - + SUM ( + 11 ) * + 48
----
-631

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6892
SELECT CASE 63 WHEN - MAX( - - 40 ) / + + 48 * - 44 - - 10 THEN NULL WHEN - 92 THEN NULL WHEN 72 / CAST( NULL AS SIGNED ) THEN 36 ELSE NULL END * ( 91 + - 10 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6892
SELECT CASE 63 WHEN - MAX ( - - 40 ) / + + 48 * - 44 - - 10 THEN NULL WHEN - 92 THEN NULL WHEN 72 / CAST ( NULL AS INTEGER ) THEN 36 ELSE NULL END * ( 91 + - 10 )
----
NULL

query I rowsort
SELECT 98 + + - 16
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6894
SELECT ALL - CAST( + COUNT( * ) AS SIGNED ), + 2 AS col2
----
-1
2

skipif mysql # not compatible
query II rowsort label-6894
SELECT ALL - CAST ( + COUNT ( * ) AS INTEGER ), + 2 AS col2
----
-1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6895
SELECT DISTINCT - COUNT( * ) + - - 28 * + COUNT( * ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-6895
SELECT DISTINCT - COUNT ( * ) + - - 28 * + COUNT ( * ) AS col2
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6896
SELECT + 22 DIV - 51, + 90 + 78 * - 15 DIV - COUNT( * ) AS col2
----
0
1260

skipif mysql # not compatible
query II rowsort label-6896
SELECT + 22 / - 51, + 90 + 78 * - 15 / - COUNT ( * ) AS col2
----
0
1260

query I rowsort
SELECT ALL 62 + - ( - 26 ) AS col0
----
88

query I rowsort
SELECT + ( 33 ) * 12 AS col1
----
396

onlyif mysql # DIV for integer division: 
query I rowsort label-6899
SELECT ALL + - 96 DIV + - 90
----
1

skipif mysql # not compatible
query I rowsort label-6899
SELECT ALL + - 96 / + - 90
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-6900
SELECT ALL 5 + - + 25 AS col1, ( 99 ) DIV - 77 + - 53 * 81 + + 53
----
-20
-4241

skipif mysql # not compatible
query II rowsort label-6900
SELECT ALL 5 + - + 25 AS col1, ( 99 ) / - 77 + - 53 * 81 + + 53
----
-20
-4241

onlyif mysql # DIV for integer division: 
query II rowsort label-6901
SELECT + 38, + 15 DIV - NULLIF ( - 84, - 76 ) * 53 AS col1
----
38
0

skipif mysql # not compatible
query II rowsort label-6901
SELECT + 38, + 15 / - NULLIF ( - 84, - 76 ) * 53 AS col1
----
38
0

query II rowsort
SELECT ALL + COALESCE ( 31, ( - - 35 ) ), 27 col2
----
31
27

query I rowsort
SELECT ALL 89 + - + 89 AS col2
----
0

query I rowsort
SELECT ALL + 14 + - 85 + + - 6 AS col0
----
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-6905
SELECT DISTINCT + 94 + - 63 - 81 AS col1, - SUM( 38 ) AS col1
----
-50
-38

skipif mysql # not compatible
query II rowsort label-6905
SELECT DISTINCT + 94 + - 63 - 81 AS col1, - SUM ( 38 ) AS col1
----
-50
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6906
SELECT ALL - 40 + CAST( NULL AS SIGNED ) * + + 6 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6906
SELECT ALL - 40 + CAST ( NULL AS INTEGER ) * + + 6 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6907
SELECT DISTINCT COUNT( * ) + - SUM( + 91 ) * + - 61 AS col0
----
5552

skipif mysql # not compatible
query I rowsort label-6907
SELECT DISTINCT COUNT ( * ) + - SUM ( + 91 ) * + - 61 AS col0
----
5552

query I rowsort
SELECT - COALESCE ( + 95, 37 )
----
-95

onlyif mysql # aggregate syntax: 
query II rowsort label-6909
SELECT ALL + COUNT( * ) * - 2, + 41 * 73 AS col0
----
-2
2993

skipif mysql # not compatible
query II rowsort label-6909
SELECT ALL + COUNT ( * ) * - 2, + 41 * 73 AS col0
----
-2
2993

onlyif mysql # aggregate syntax: 
query I rowsort label-6910
SELECT ALL 14 - - + 76 * MIN( ALL + 28 ) AS col1
----
2142

skipif mysql # not compatible
query I rowsort label-6910
SELECT ALL 14 - - + 76 * MIN ( ALL + 28 ) AS col1
----
2142

onlyif mysql # aggregate syntax: 
query I rowsort label-6911
SELECT DISTINCT + ( + 21 ) * - NULLIF ( + + SUM( + - 81 ), - 81 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6911
SELECT DISTINCT + ( + 21 ) * - NULLIF ( + + SUM ( + - 81 ), - 81 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6912
SELECT ALL COALESCE ( COALESCE ( + + COUNT( * ), 89 ), - 24 * COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6912
SELECT ALL COALESCE ( COALESCE ( + + COUNT ( * ), 89 ), - 24 * COUNT ( * ) ) AS col2
----
1

query I rowsort
SELECT - 2 * - 0
----
0

query I rowsort
SELECT ALL + 5 * 16 * - + 3 AS col1
----
-240

query I rowsort
SELECT - 19 + + - 80 AS col0
----
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-6916
SELECT DISTINCT SUM( 79 ), + 16 * + ( 18 ) AS col1
----
79
288

skipif mysql # not compatible
query II rowsort label-6916
SELECT DISTINCT SUM ( 79 ), + 16 * + ( 18 ) AS col1
----
79
288

onlyif mysql # aggregate syntax: 
query I rowsort label-6917
SELECT ALL COALESCE ( - 65, + + 53 - - + 11 + + ( - - 41 ) - - + SUM( 17 ) * COUNT( * ) )
----
-65

skipif mysql # not compatible
query I rowsort label-6917
SELECT ALL COALESCE ( - 65, + + 53 - - + 11 + + ( - - 41 ) - - + SUM ( 17 ) * COUNT ( * ) )
----
-65

query I rowsort
SELECT - 66 * + 43
----
-2838

onlyif mysql # aggregate syntax: 
query I rowsort label-6919
SELECT + - ( - + SUM( - 15 ) ) AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-6919
SELECT + - ( - + SUM ( - 15 ) ) AS col2
----
-15

query I rowsort
SELECT DISTINCT + - 25 AS col1
----
-25

query I rowsort
SELECT DISTINCT + - 65 AS col0
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6922
SELECT ALL + - 65 * + NULLIF ( 29, - CASE + - 24 WHEN 73 THEN + ( 68 ) * 65 WHEN + COALESCE ( + 87, CAST( NULL AS SIGNED ) ) THEN NULL ELSE NULL END * ( + 52 ) ) * + 99 + COUNT( * )
----
-186614

skipif mysql # not compatible
query I rowsort label-6922
SELECT ALL + - 65 * + NULLIF ( 29, - CASE + - 24 WHEN 73 THEN + ( 68 ) * 65 WHEN + COALESCE ( + 87, CAST ( NULL AS INTEGER ) ) THEN NULL ELSE NULL END * ( + 52 ) ) * + 99 + COUNT ( * )
----
-186614

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6923
SELECT - + ( - 23 ) + CAST( + + 15 AS SIGNED )
----
38

skipif mysql # not compatible
query I rowsort label-6923
SELECT - + ( - 23 ) + CAST ( + + 15 AS INTEGER )
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6924
SELECT + CAST( + + ( - + 90 ) AS SIGNED ) AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-6924
SELECT + CAST ( + + ( - + 90 ) AS INTEGER ) AS col0
----
-90

query I rowsort
SELECT ALL + + 73 * 19 AS col0
----
1387

onlyif mysql # aggregate syntax: 
query I rowsort label-6926
SELECT - 79 * + 66 + + COUNT( * ) * + 20 + 6 AS col0
----
-5188

skipif mysql # not compatible
query I rowsort label-6926
SELECT - 79 * + 66 + + COUNT ( * ) * + 20 + 6 AS col0
----
-5188

onlyif mysql # aggregate syntax: 
query I rowsort label-6927
SELECT - 49 * + - COUNT( * ) * + ( - 78 ) AS col1
----
-3822

skipif mysql # not compatible
query I rowsort label-6927
SELECT - 49 * + - COUNT ( * ) * + ( - 78 ) AS col1
----
-3822

query I rowsort
SELECT + 63 * + - 58
----
-3654

query II rowsort
SELECT - + 73 - + 61 AS col1, + 75
----
-134
75

query I rowsort
SELECT DISTINCT + + 72 * - 87 + + 74 * - + 26 AS col1
----
-8188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6931
SELECT DISTINCT + + ( + + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6931
SELECT DISTINCT + + ( + + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT + 65 - 57 * + 26
----
-1417

onlyif mysql # aggregate syntax: 
query I rowsort label-6933
SELECT + COALESCE ( + 71, MIN( ALL + NULLIF ( + 77, + 64 ) ) ) AS col2
----
71

skipif mysql # not compatible
query I rowsort label-6933
SELECT + COALESCE ( + 71, MIN ( ALL + NULLIF ( + 77, + 64 ) ) ) AS col2
----
71

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6934
SELECT - 86 + - + NULLIF ( + CAST( NULL AS DECIMAL ), 3 - - ( + 79 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6934
SELECT - 86 + - + NULLIF ( + CAST ( NULL AS REAL ), 3 - - ( + 79 ) ) AS col1
----
NULL

query I rowsort
SELECT + ( + - 84 )
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6936
SELECT - ( + 79 ) + + 34 * 29 * - COUNT( * ) + - CAST( + COUNT( * ) AS SIGNED ) AS col0
----
-1066

skipif mysql # not compatible
query I rowsort label-6936
SELECT - ( + 79 ) + + 34 * 29 * - COUNT ( * ) + - CAST ( + COUNT ( * ) AS INTEGER ) AS col0
----
-1066

onlyif mysql # DIV for integer division: 
query I rowsort label-6937
SELECT + 68 DIV 88
----
0

skipif mysql # not compatible
query I rowsort label-6937
SELECT + 68 / 88
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6938
SELECT ALL 54 * CAST( NULL AS SIGNED ) - 2
----
NULL

skipif mysql # not compatible
query I rowsort label-6938
SELECT ALL 54 * CAST ( NULL AS INTEGER ) - 2
----
NULL

query I rowsort
SELECT - ( + 53 ) * - 57
----
3021

query I rowsort
SELECT + 85 * + 29 AS col2
----
2465

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6941
SELECT + 49 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6941
SELECT + 49 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6942
SELECT + 8 + + 32 DIV + 38 * + COUNT( * )
----
8

skipif mysql # not compatible
query I rowsort label-6942
SELECT + 8 + + 32 / + 38 * + COUNT ( * )
----
8

query I rowsort
SELECT ALL 14 * - ( - 56 ) AS col1
----
784

onlyif mysql # aggregate syntax: 
query I rowsort label-6944
SELECT DISTINCT 73 * + + COUNT( * )
----
73

skipif mysql # not compatible
query I rowsort label-6944
SELECT DISTINCT 73 * + + COUNT ( * )
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6945
SELECT - COALESCE ( 0, + + 83, - + COUNT( * ) DIV 74 - COUNT( DISTINCT + + 97 ) + + 34 + 79 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6945
SELECT - COALESCE ( 0, + + 83, - + COUNT ( * ) / 74 - COUNT ( DISTINCT + + 97 ) + + 34 + 79 ) AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6946
SELECT + 2 DIV - COUNT( - 18 ) AS col0, 99 + 54
----
-2
153

skipif mysql # not compatible
query II rowsort label-6946
SELECT + 2 / - COUNT ( - 18 ) AS col0, 99 + 54
----
-2
153

query II rowsort
SELECT ALL 8 AS col1, 90
----
8
90

query I rowsort
SELECT + 78 + - ( + 78 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6949
SELECT + 90 * + 72 * + COALESCE ( + ( - ( - - 72 ) ), - 57 DIV - + COUNT( * ) + + 18 + 62 * 57 ) AS col1
----
-466560

skipif mysql # not compatible
query I rowsort label-6949
SELECT + 90 * + 72 * + COALESCE ( + ( - ( - - 72 ) ), - 57 / - + COUNT ( * ) + + 18 + 62 * 57 ) AS col1
----
-466560

onlyif mysql # DIV for integer division: 
query II rowsort label-6950
SELECT - 64, + 99 DIV - 28 col0
----
-64
-3

skipif mysql # not compatible
query II rowsort label-6950
SELECT - 64, + 99 / - 28 col0
----
-64
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6951
SELECT DISTINCT SUM( + + 50 )
----
50

skipif mysql # not compatible
query I rowsort label-6951
SELECT DISTINCT SUM ( + + 50 )
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-6952
SELECT ALL COUNT( * ) AS col1, - 9
----
1
-9

skipif mysql # not compatible
query II rowsort label-6952
SELECT ALL COUNT ( * ) AS col1, - 9
----
1
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-6953
SELECT DISTINCT - 9 AS col0, SUM( ALL - 22 ) + 61 AS col2
----
-9
39

skipif mysql # not compatible
query II rowsort label-6953
SELECT DISTINCT - 9 AS col0, SUM ( ALL - 22 ) + 61 AS col2
----
-9
39

query II rowsort
SELECT - 43, - 66 AS col2
----
-43
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-6955
SELECT ALL + CASE - COUNT( * ) WHEN + MIN( - + 74 ) THEN NULL WHEN + - CASE - 0 WHEN 26 THEN + 38 + - NULLIF ( 18, - 6 ) END THEN - 19 ELSE COALESCE ( + 85, - CASE ( + 40 ) WHEN + 62 THEN 26 * + 54 ELSE NULL END ) END * - 69 AS col2
----
-5865

skipif mysql # not compatible
query I rowsort label-6955
SELECT ALL + CASE - COUNT ( * ) WHEN + MIN ( - + 74 ) THEN NULL WHEN + - CASE - 0 WHEN 26 THEN + 38 + - NULLIF ( 18, - 6 ) END THEN - 19 ELSE COALESCE ( + 85, - CASE ( + 40 ) WHEN + 62 THEN 26 * + 54 ELSE NULL END ) END * - 69 AS col2
----
-5865

onlyif mysql # DIV for integer division: 
query I rowsort label-6956
SELECT + ( 35 ) DIV 9 * + 53 + + 53 AS col2
----
212

skipif mysql # not compatible
query I rowsort label-6956
SELECT + ( 35 ) / 9 * + 53 + + 53 AS col2
----
212

query I rowsort
SELECT + 47 * ( + ( - 28 ) ) AS col1
----
-1316

query II rowsort
SELECT ALL - + 21, + ( 30 ) col2
----
-21
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6959
SELECT + ( + CAST( + COALESCE ( ( - COUNT( * ) ), - + 31 ) AS SIGNED ) ), - 33 + - - 92 AS col1
----
-1
59

skipif mysql # not compatible
query II rowsort label-6959
SELECT + ( + CAST ( + COALESCE ( ( - COUNT ( * ) ), - + 31 ) AS INTEGER ) ), - 33 + - - 92 AS col1
----
-1
59

onlyif mysql # DIV for integer division: 
query I rowsort label-6960
SELECT ALL - 58 DIV 59 DIV - 86 * - + 84 + + 80
----
80

skipif mysql # not compatible
query I rowsort label-6960
SELECT ALL - 58 / 59 / - 86 * - + 84 + + 80
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6961
SELECT + 50 DIV COALESCE ( + + 86, COUNT( * ) * - 34, - 62 ) + - + 14 + + 66 DIV 36 + 85 * - 33
----
-2818

skipif mysql # not compatible
query I rowsort label-6961
SELECT + 50 / COALESCE ( + + 86, COUNT ( * ) * - 34, - 62 ) + - + 14 + + 66 / 36 + 85 * - 33
----
-2818

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6962
SELECT ALL + ( 71 ) + + COUNT( * ) AS col0, 60 DIV COALESCE ( - - 28, + 3 + + 60 DIV 92 ) + + 84
----
72
86

skipif mysql # not compatible
query II rowsort label-6962
SELECT ALL + ( 71 ) + + COUNT ( * ) AS col0, 60 / COALESCE ( - - 28, + 3 + + 60 / 92 ) + + 84
----
72
86

onlyif mysql # aggregate syntax: 
query II rowsort label-6963
SELECT DISTINCT - + COUNT( * ) AS col2, COUNT( DISTINCT + 2 )
----
-1
1

skipif mysql # not compatible
query II rowsort label-6963
SELECT DISTINCT - + COUNT ( * ) AS col2, COUNT ( DISTINCT + 2 )
----
-1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6964
SELECT - COUNT( 82 ) DIV - 1, ( 49 ) AS col2
----
1
49

skipif mysql # not compatible
query II rowsort label-6964
SELECT - COUNT ( 82 ) / - 1, ( 49 ) AS col2
----
1
49

query II rowsort
SELECT + + 99 AS col0, - 13
----
99
-13

query I rowsort
SELECT DISTINCT - 64 + + 20 AS col0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-6967
SELECT 13 * + 92 + - 69 - - + COUNT( * ) + - 69 AS col2
----
1059

skipif mysql # not compatible
query I rowsort label-6967
SELECT 13 * + 92 + - 69 - - + COUNT ( * ) + - 69 AS col2
----
1059

query I rowsort
SELECT 85 * + + 44
----
3740

onlyif mysql # aggregate syntax: 
query II rowsort label-6969
SELECT ALL - MAX( DISTINCT - 40 ) AS col1, + 75 * + 95
----
40
7125

skipif mysql # not compatible
query II rowsort label-6969
SELECT ALL - MAX ( DISTINCT - 40 ) AS col1, + 75 * + 95
----
40
7125

onlyif mysql # aggregate syntax: 
query I rowsort label-6970
SELECT ALL - 77 - - MAX( 94 ) + + 66 AS col1
----
83

skipif mysql # not compatible
query I rowsort label-6970
SELECT ALL - 77 - - MAX ( 94 ) + + 66 AS col1
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6971
SELECT ALL CAST( NULL AS SIGNED ) - + - COUNT( * ) + - 92 / 36
----
NULL

skipif mysql # not compatible
query I rowsort label-6971
SELECT ALL CAST ( NULL AS INTEGER ) - + - COUNT ( * ) + - 92 / 36
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6972
SELECT 0 * - ( CAST( 66 AS SIGNED ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6972
SELECT 0 * - ( CAST ( 66 AS INTEGER ) ) AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6973
SELECT 36 * - 29 AS col2, - 3 * + 32 + COUNT( * ) - 30 + 29 DIV 37 * - - 6 DIV 95 AS col1
----
-1044
-125

skipif mysql # not compatible
query II rowsort label-6973
SELECT 36 * - 29 AS col2, - 3 * + 32 + COUNT ( * ) - 30 + 29 / 37 * - - 6 / 95 AS col1
----
-1044
-125

query I rowsort
SELECT 48 * 99 AS col2
----
4752

query I rowsort
SELECT 19 - - - 80 AS col1
----
-61

query I rowsort
SELECT 26 + - 89 AS col2
----
-63

onlyif mysql # aggregate syntax: 
query II rowsort label-6977
SELECT DISTINCT - MIN( DISTINCT - 9 ) * - 45 * - SUM( ALL - + 81 ) AS col0, 14 + + + ( + 13 ) + + - 79 * + 12 AS col1
----
-32805
-921

skipif mysql # not compatible
query II rowsort label-6977
SELECT DISTINCT - MIN ( DISTINCT - 9 ) * - 45 * - SUM ( ALL - + 81 ) AS col0, 14 + + + ( + 13 ) + + - 79 * + 12 AS col1
----
-32805
-921

onlyif mysql # aggregate syntax: 
query II rowsort label-6978
SELECT - 39 + 44 col2, 89 - + COUNT( * ) AS col1
----
5
88

skipif mysql # not compatible
query II rowsort label-6978
SELECT - 39 + 44 col2, 89 - + COUNT ( * ) AS col1
----
5
88

onlyif mysql # aggregate syntax: 
query I rowsort label-6979
SELECT COUNT( * ) + - + ( - + 33 )
----
34

skipif mysql # not compatible
query I rowsort label-6979
SELECT COUNT ( * ) + - + ( - + 33 )
----
34

query I rowsort
SELECT DISTINCT 87 + + - 55 + - 90 AS col1
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-6981
SELECT ALL - 78 + - 6 + NULLIF ( - 32, COUNT( * ) + - + 62 )
----
-116

skipif mysql # not compatible
query I rowsort label-6981
SELECT ALL - 78 + - 6 + NULLIF ( - 32, COUNT ( * ) + - + 62 )
----
-116

query I rowsort
SELECT DISTINCT + 9 + + 57 col1
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6983
SELECT DISTINCT 54 + 66 + COUNT( * ) + - 87 DIV + 80 + + 49 * - 90 * - 49 + + 75 + + 83 col2
----
216368

skipif mysql # not compatible
query I rowsort label-6983
SELECT DISTINCT 54 + 66 + COUNT ( * ) + - 87 / + 80 + + 49 * - 90 * - 49 + + 75 + + 83 col2
----
216368

query I rowsort
SELECT DISTINCT - 29 + + 21
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6985
SELECT ALL - + CASE - 61 WHEN - CASE + 3 WHEN - 92 - 87 THEN - 46 + + + 78 + - 30 WHEN 71 THEN NULL ELSE NULL END THEN CASE - 84 WHEN 91 THEN 9 WHEN - 90 THEN NULL END * + CASE - 74 * 46 WHEN + COUNT( * ) + 32 * CAST( NULL AS DECIMAL ) THEN COALESCE ( + COUNT( ALL + CAST( NULL AS SIGNED ) ), 69 * 70 + 26 ) + MIN( 30 ) ELSE NULL END END + - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6985
SELECT ALL - + CASE - 61 WHEN - CASE + 3 WHEN - 92 - 87 THEN - 46 + + + 78 + - 30 WHEN 71 THEN NULL ELSE NULL END THEN CASE - 84 WHEN 91 THEN 9 WHEN - 90 THEN NULL END * + CASE - 74 * 46 WHEN + COUNT ( * ) + 32 * CAST ( NULL AS REAL ) THEN COALESCE ( + COUNT ( ALL + CAST ( NULL AS INTEGER ) ), 69 * 70 + 26 ) + MIN ( 30 ) ELSE NULL END END + - COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6986
SELECT + COUNT( * ) * - - 61 + - 13
----
48

skipif mysql # not compatible
query I rowsort label-6986
SELECT + COUNT ( * ) * - - 61 + - 13
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-6987
SELECT + ( - SUM( ALL - 24 ) )
----
24

skipif mysql # not compatible
query I rowsort label-6987
SELECT + ( - SUM ( ALL - 24 ) )
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6988
SELECT + - CAST( + - 4 AS SIGNED )
----
4

skipif mysql # not compatible
query I rowsort label-6988
SELECT + - CAST ( + - 4 AS INTEGER )
----
4

query I rowsort
SELECT ALL 17 - + 28 col1
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-6990
SELECT CASE + - 68 WHEN COUNT( * ) * - 60 * + 0 + + - 86 THEN + COUNT( * ) * + - 34 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6990
SELECT CASE + - 68 WHEN COUNT ( * ) * - 60 * + 0 + + - 86 THEN + COUNT ( * ) * + - 34 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6991
SELECT + 5 * - - 53 - - COUNT( * ) + + - 21 * COUNT( * ), + 46 AS col0
----
245
46

skipif mysql # not compatible
query II rowsort label-6991
SELECT + 5 * - - 53 - - COUNT ( * ) + + - 21 * COUNT ( * ), + 46 AS col0
----
245
46

query I rowsort
SELECT 79 * 20 * 45
----
71100

query I rowsort
SELECT ALL 62 - 57 AS col0
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-6994
SELECT 10 DIV - 82
----
0

skipif mysql # not compatible
query I rowsort label-6994
SELECT 10 / - 82
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6995
SELECT DISTINCT - 73 DIV + 18 AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-6995
SELECT DISTINCT - 73 / + 18 AS col0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-6996
SELECT ALL - COALESCE ( - 51, - 61 + 15, + 87 + - COUNT( * ) * 98 + 99 ) col1
----
51

skipif mysql # not compatible
query I rowsort label-6996
SELECT ALL - COALESCE ( - 51, - 61 + 15, + 87 + - COUNT ( * ) * 98 + 99 ) col1
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6997
SELECT - 83 * - - 88 - - 34 + + COUNT( ALL - 27 ) * - ( + COUNT( * ) ) DIV + 45 + - 15 DIV - + 33 col0
----
-7270

skipif mysql # not compatible
query I rowsort label-6997
SELECT - 83 * - - 88 - - 34 + + COUNT ( ALL - 27 ) * - ( + COUNT ( * ) ) / + 45 + - 15 / - + 33 col0
----
-7270

onlyif mysql # aggregate syntax: 
query I rowsort label-6998
SELECT ALL + NULLIF ( ( - - 79 ), + COUNT( * ) ) * - 86 - 81 AS col0
----
-6875

skipif mysql # not compatible
query I rowsort label-6998
SELECT ALL + NULLIF ( ( - - 79 ), + COUNT ( * ) ) * - 86 - 81 AS col0
----
-6875

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6999
SELECT 3 + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6999
SELECT 3 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7000
SELECT DISTINCT SUM( + 98 )
----
98

skipif mysql # not compatible
query I rowsort label-7000
SELECT DISTINCT SUM ( + 98 )
----
98

query I rowsort
SELECT ALL - 56 + + 47
----
-9

query I rowsort
SELECT 29 + - ( 30 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7003
SELECT ALL COUNT( + 9 )
----
1

skipif mysql # not compatible
query I rowsort label-7003
SELECT ALL COUNT ( + 9 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7004
SELECT ALL - ( + 37 ) + - - COUNT( - 1 ) AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-7004
SELECT ALL - ( + 37 ) + - - COUNT ( - 1 ) AS col2
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-7005
SELECT MAX( DISTINCT - 36 ) * - 7 * COUNT( + 31 )
----
252

skipif mysql # not compatible
query I rowsort label-7005
SELECT MAX ( DISTINCT - 36 ) * - 7 * COUNT ( + 31 )
----
252

query I rowsort
SELECT - + COALESCE ( - 23, NULLIF ( - 56, - 76 ) * - 96 * - - 37 - + 66 )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7007
SELECT DISTINCT - 41 + + COUNT( * ) AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-7007
SELECT DISTINCT - 41 + + COUNT ( * ) AS col1
----
-40

query I rowsort
SELECT + + 13 + - 85 AS col2
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-7009
SELECT COALESCE ( ( ( + 28 ) ), COUNT( * ) - + 61 )
----
28

skipif mysql # not compatible
query I rowsort label-7009
SELECT COALESCE ( ( ( + 28 ) ), COUNT ( * ) - + 61 )
----
28

query I rowsort
SELECT ALL 99 * + - 13 - - 76 AS col1
----
-1211

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7011
SELECT - - MIN( 89 ) + - NULLIF ( + 95, 54 ) * - - 32 + + 82 DIV - 84 col0
----
-2951

skipif mysql # not compatible
query I rowsort label-7011
SELECT - - MIN ( 89 ) + - NULLIF ( + 95, 54 ) * - - 32 + + 82 / - 84 col0
----
-2951

onlyif mysql # aggregate syntax: 
query I rowsort label-7012
SELECT DISTINCT - MAX( DISTINCT NULLIF ( - 2, - 62 ) ) + + + 52
----
54

skipif mysql # not compatible
query I rowsort label-7012
SELECT DISTINCT - MAX ( DISTINCT NULLIF ( - 2, - 62 ) ) + + + 52
----
54

query I rowsort
SELECT + 86 * + + 44
----
3784

onlyif mysql # aggregate syntax: 
query I rowsort label-7014
SELECT ALL - + 87 * + ( 65 ) * + NULLIF ( + + MAX( 46 ), 98 * + + 25 ) * - - 37
----
-9624810

skipif mysql # not compatible
query I rowsort label-7014
SELECT ALL - + 87 * + ( 65 ) * + NULLIF ( + + MAX ( 46 ), 98 * + + 25 ) * - - 37
----
-9624810

query I rowsort
SELECT + ( ( - 67 ) )
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-7016
SELECT ALL + 56 * + - COUNT( * )
----
-56

skipif mysql # not compatible
query I rowsort label-7016
SELECT ALL + 56 * + - COUNT ( * )
----
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7017
SELECT + 66 * 3 + + + 80 + - 17 * ( - 0 ) DIV + - 61 + + CASE 36 WHEN + SUM( ( + 90 ) ) THEN NULL ELSE ( 31 ) + - 81 END AS col2
----
228

skipif mysql # not compatible
query I rowsort label-7017
SELECT + 66 * 3 + + + 80 + - 17 * ( - 0 ) / + - 61 + + CASE 36 WHEN + SUM ( ( + 90 ) ) THEN NULL ELSE ( 31 ) + - 81 END AS col2
----
228

query I rowsort
SELECT + 18 - 99 AS col2
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7019
SELECT + - 86 * - CAST( - - 33 AS SIGNED ) * - + CASE - MAX( DISTINCT - - CAST( NULL AS SIGNED ) ) WHEN - 33 THEN - ( - 83 ) * COUNT( DISTINCT + 16 ) END + + 32
----
NULL

skipif mysql # not compatible
query I rowsort label-7019
SELECT + - 86 * - CAST ( - - 33 AS INTEGER ) * - + CASE - MAX ( DISTINCT - - CAST ( NULL AS INTEGER ) ) WHEN - 33 THEN - ( - 83 ) * COUNT ( DISTINCT + 16 ) END + + 32
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7020
SELECT + - COALESCE ( 70, + 69 ) * - + 37 + 68 + + + 78 * + COUNT( * ) * + - 26
----
630

skipif mysql # not compatible
query I rowsort label-7020
SELECT + - COALESCE ( 70, + 69 ) * - + 37 + 68 + + + 78 * + COUNT ( * ) * + - 26
----
630

onlyif mysql # aggregate syntax: 
query I rowsort label-7021
SELECT ALL 62 * - 63 - ( COUNT( * ) )
----
-3907

skipif mysql # not compatible
query I rowsort label-7021
SELECT ALL 62 * - 63 - ( COUNT ( * ) )
----
-3907

onlyif mysql # aggregate syntax: 
query II rowsort label-7022
SELECT + 85 AS col2, 66 * MIN( ALL + - 11 ) AS col1
----
85
-726

skipif mysql # not compatible
query II rowsort label-7022
SELECT + 85 AS col2, 66 * MIN ( ALL + - 11 ) AS col1
----
85
-726

onlyif mysql # DIV for integer division: 
query II rowsort label-7023
SELECT + - 13, + 18 DIV + - 61 + + 46 * 94 col2
----
-13
4324

skipif mysql # not compatible
query II rowsort label-7023
SELECT + - 13, + 18 / + - 61 + + 46 * 94 col2
----
-13
4324

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7024
SELECT + 84 + - 9 * - COUNT( * ) * + CAST( NULL AS SIGNED ) / 23 + + 7 + + - 11 * - 88 + 9 + + - 4 - - 95
----
NULL

skipif mysql # not compatible
query I rowsort label-7024
SELECT + 84 + - 9 * - COUNT ( * ) * + CAST ( NULL AS INTEGER ) / 23 + + 7 + + - 11 * - 88 + 9 + + - 4 - - 95
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7025
SELECT + + COALESCE ( + SUM( + + 50 ), - - 72, + + MAX( ALL + 85 ) + + + 47 + - - ( + 84 ) ) + + 83 col0
----
133

skipif mysql # not compatible
query I rowsort label-7025
SELECT + + COALESCE ( + SUM ( + + 50 ), - - 72, + + MAX ( ALL + 85 ) + + + 47 + - - ( + 84 ) ) + + 83 col0
----
133

query I rowsort
SELECT ALL + 49 * 98 - - 20 AS col0
----
4822

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7027
SELECT ALL - ( - - 14 ) * 91 * - - CAST( + + 76 AS SIGNED ) + + ( 13 ) - 89 DIV + 81
----
-96812

skipif mysql # not compatible
query I rowsort label-7027
SELECT ALL - ( - - 14 ) * 91 * - - CAST ( + + 76 AS INTEGER ) + + ( 13 ) - 89 / + 81
----
-96812

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7028
SELECT DISTINCT + 36 AS col1, ( - + 81 ) + 22 + - - CASE - - 33 WHEN + 23 THEN NULL WHEN - - NULLIF ( - 79, 74 + + 37 ) THEN NULL WHEN ( + 86 ) THEN NULL ELSE - ( COALESCE ( - 46, - COUNT( * ) DIV 43 ) ) END AS col1
----
36
-13

skipif mysql # not compatible
query II rowsort label-7028
SELECT DISTINCT + 36 AS col1, ( - + 81 ) + 22 + - - CASE - - 33 WHEN + 23 THEN NULL WHEN - - NULLIF ( - 79, 74 + + 37 ) THEN NULL WHEN ( + 86 ) THEN NULL ELSE - ( COALESCE ( - 46, - COUNT ( * ) / 43 ) ) END AS col1
----
36
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-7029
SELECT + 85 * - COUNT( * ) AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-7029
SELECT + 85 * - COUNT ( * ) AS col1
----
-85

query I rowsort
SELECT ALL 91 * + 79
----
7189

onlyif mysql # aggregate syntax: 
query II rowsort label-7031
SELECT + COUNT( * ) AS col2, - 31 - 18 AS col2
----
1
-49

skipif mysql # not compatible
query II rowsort label-7031
SELECT + COUNT ( * ) AS col2, - 31 - 18 AS col2
----
1
-49

query I rowsort
SELECT + 3 + - 27 AS col0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-7033
SELECT + CASE WHEN NOT NULL IS NOT NULL THEN NULL WHEN - 79 IS NULL THEN + + MAX( - 50 ) ELSE - 49 * 87 / + 10 * - 27 + 69 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7033
SELECT + CASE WHEN NOT NULL IS NOT NULL THEN NULL WHEN - 79 IS NULL THEN + + MAX ( - 50 ) ELSE - 49 * 87 / + 10 * - 27 + 69 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7034
SELECT - 79 + COUNT( * ) + + ( - - 19 ) - - + COUNT( * ) AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-7034
SELECT - 79 + COUNT ( * ) + + ( - - 19 ) - - + COUNT ( * ) AS col0
----
-58

query I rowsort
SELECT + 49 * 19 AS col1
----
931

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7036
SELECT 87 * 22 + CAST( + 13 AS SIGNED ) + + 30 * + SUM( DISTINCT + - 71 ) col2
----
-203

skipif mysql # not compatible
query I rowsort label-7036
SELECT 87 * 22 + CAST ( + 13 AS INTEGER ) + + 30 * + SUM ( DISTINCT + - 71 ) col2
----
-203

onlyif mysql # aggregate syntax: 
query I rowsort label-7037
SELECT MIN( + 7 )
----
7

skipif mysql # not compatible
query I rowsort label-7037
SELECT MIN ( + 7 )
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7038
SELECT DISTINCT + 81 AS col2, + 24 + - CAST( NULL AS SIGNED )
----
81
NULL

skipif mysql # not compatible
query II rowsort label-7038
SELECT DISTINCT + 81 AS col2, + 24 + - CAST ( NULL AS INTEGER )
----
81
NULL

query I rowsort
SELECT + 19 * + ( - 36 ) AS col0
----
-684

onlyif mysql # DIV for integer division: 
query I rowsort label-7040
SELECT ALL + 15 DIV + + 39 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7040
SELECT ALL + 15 / + + 39 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7041
SELECT DISTINCT - 22 * - COUNT( * ) + - 74 AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-7041
SELECT DISTINCT - 22 * - COUNT ( * ) + - 74 AS col1
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-7042
SELECT ALL - ( 17 ) * + - 36 * - + 48 * 91 * - 92 + + COUNT( ALL + 48 )
----
245935873

skipif mysql # not compatible
query I rowsort label-7042
SELECT ALL - ( 17 ) * + - 36 * - + 48 * 91 * - 92 + + COUNT ( ALL + 48 )
----
245935873

query I rowsort
SELECT DISTINCT + 97 * + 5
----
485

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7044
SELECT ALL CASE + + ( + + 49 ) WHEN + 32 + - NULLIF ( + CAST( - NULLIF ( + 81, - + 31 ) AS SIGNED ), + + 47 ) + 42 * SUM( DISTINCT + CAST( NULL AS SIGNED ) ) * + MIN( ALL 97 ) THEN - 33 + - MAX( + 1 ) ELSE - 32 + 30 * + 61 END + 33
----
1831

skipif mysql # not compatible
query I rowsort label-7044
SELECT ALL CASE + + ( + + 49 ) WHEN + 32 + - NULLIF ( + CAST ( - NULLIF ( + 81, - + 31 ) AS INTEGER ), + + 47 ) + 42 * SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) * + MIN ( ALL 97 ) THEN - 33 + - MAX ( + 1 ) ELSE - 32 + 30 * + 61 END + 33
----
1831

query I rowsort
SELECT + 83 * + 7 AS col2
----
581

onlyif mysql # aggregate syntax: 
query I rowsort label-7046
SELECT - MIN( + 37 ) * COUNT( * ) AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-7046
SELECT - MIN ( + 37 ) * COUNT ( * ) AS col1
----
-37

query II rowsort
SELECT + 61 AS col1, 25 - + ( - 22 ) * - 6 AS col2
----
61
-107

onlyif mysql # aggregate syntax: 
query II rowsort label-7048
SELECT - COUNT( * ) * + ( - + MAX( DISTINCT + + 75 ) ) AS col1, + 66 + 8 + + - 44 * 88
----
75
-3798

skipif mysql # not compatible
query II rowsort label-7048
SELECT - COUNT ( * ) * + ( - + MAX ( DISTINCT + + 75 ) ) AS col1, + 66 + 8 + + - 44 * 88
----
75
-3798

onlyif mysql # DIV for integer division: 
query I rowsort label-7049
SELECT - - 26 * 57 DIV - + 37 col1
----
-40

skipif mysql # not compatible
query I rowsort label-7049
SELECT - - 26 * 57 / - + 37 col1
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-7050
SELECT ALL + 51 * - MAX( 35 ) * + - 78 + + 74
----
139304

skipif mysql # not compatible
query I rowsort label-7050
SELECT ALL + 51 * - MAX ( 35 ) * + - 78 + + 74
----
139304

query I rowsort
SELECT DISTINCT - 29 - + - 63 AS col0
----
34

query II rowsort
SELECT - 68, 22 AS col2
----
-68
22

query I rowsort
SELECT ALL - + 60 - - 4 AS col1
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-7054
SELECT - 93 * - COUNT( * )
----
93

skipif mysql # not compatible
query I rowsort label-7054
SELECT - 93 * - COUNT ( * )
----
93

query I rowsort
SELECT - + 21 + + 9 + - 29 + - - 31 * 73 * 60 AS col1
----
135739

query I rowsort
SELECT - 16 + + - 1
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-7057
SELECT + 20 - CASE - COALESCE ( + - 41, 42 / - 97 + - 35 ) WHEN - 66 * + + ( + SUM( + 5 ) ) - - AVG ( ALL 28 ) + - COUNT( DISTINCT - 52 ) * + 2 THEN NULL ELSE 20 END
----
0

skipif mysql # not compatible
query I rowsort label-7057
SELECT + 20 - CASE - COALESCE ( + - 41, 42 / - 97 + - 35 ) WHEN - 66 * + + ( + SUM ( + 5 ) ) - - AVG ( ALL 28 ) + - COUNT ( DISTINCT - 52 ) * + 2 THEN NULL ELSE 20 END
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7058
SELECT - 60 * - 11 * - COUNT( * ) AS col0
----
-660

skipif mysql # not compatible
query I rowsort label-7058
SELECT - 60 * - 11 * - COUNT ( * ) AS col0
----
-660

query I rowsort
SELECT + + 24 + - NULLIF ( 85, + 38 + 47 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7060
SELECT - COUNT( DISTINCT - + 1 )
----
-1

skipif mysql # not compatible
query I rowsort label-7060
SELECT - COUNT ( DISTINCT - + 1 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7061
SELECT ALL + + MIN( ALL + ( - 3 ) ) / + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7061
SELECT ALL + + MIN ( ALL + ( - 3 ) ) / + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7062
SELECT - + ( - 51 ) * + 55 * - COUNT( * )
----
-2805

skipif mysql # not compatible
query I rowsort label-7062
SELECT - + ( - 51 ) * + 55 * - COUNT ( * )
----
-2805

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7063
SELECT DISTINCT COALESCE ( 35, + + CAST( - 62 AS SIGNED ) + - + COUNT( * ) - + - 61 ) * + 65 * COUNT( * ) AS col2
----
2275

skipif mysql # not compatible
query I rowsort label-7063
SELECT DISTINCT COALESCE ( 35, + + CAST ( - 62 AS INTEGER ) + - + COUNT ( * ) - + - 61 ) * + 65 * COUNT ( * ) AS col2
----
2275

query I rowsort
SELECT ALL + + 39 col2
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-7065
SELECT DISTINCT + SUM( DISTINCT - - 95 ) * - + ( + 91 )
----
-8645

skipif mysql # not compatible
query I rowsort label-7065
SELECT DISTINCT + SUM ( DISTINCT - - 95 ) * - + ( + 91 )
----
-8645

query II rowsort
SELECT - ( - 72 ) + + + 51 AS col1, - 67 col1
----
123
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-7067
SELECT + ( - NULLIF ( 70, AVG ( 68 ) * + 70 + - 81 + MIN( ALL 65 ) ) ) AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-7067
SELECT + ( - NULLIF ( 70, AVG ( 68 ) * + 70 + - 81 + MIN ( ALL 65 ) ) ) AS col0
----
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7068
SELECT ALL + CAST( + 21 AS SIGNED )
----
21

skipif mysql # not compatible
query I rowsort label-7068
SELECT ALL + CAST ( + 21 AS INTEGER )
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7069
SELECT CAST( - COUNT( ALL 90 ) AS SIGNED ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-7069
SELECT CAST ( - COUNT ( ALL 90 ) AS INTEGER ) col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7070
SELECT + MIN( ALL 17 ) DIV - 7 - - SUM( + 67 )
----
65

skipif mysql # not compatible
query I rowsort label-7070
SELECT + MIN ( ALL 17 ) / - 7 - - SUM ( + 67 )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7071
SELECT - CASE - SUM( ALL + 70 ) WHEN 64 THEN 11 WHEN + 33 * - 54 + - 48 + + COUNT( DISTINCT - + 39 ) THEN NULL ELSE - COUNT( * ) END * + MIN( + 61 ) * 71 + - 41 * + 64 - - ( - COALESCE ( - 48, + 24 + ( - 20 - - 32 ) ) ) col0
----
1755

skipif mysql # not compatible
query I rowsort label-7071
SELECT - CASE - SUM ( ALL + 70 ) WHEN 64 THEN 11 WHEN + 33 * - 54 + - 48 + + COUNT ( DISTINCT - + 39 ) THEN NULL ELSE - COUNT ( * ) END * + MIN ( + 61 ) * 71 + - 41 * + 64 - - ( - COALESCE ( - 48, + 24 + ( - 20 - - 32 ) ) ) col0
----
1755

onlyif mysql # aggregate syntax: 
query I rowsort label-7072
SELECT 19 * + ( + - CASE COUNT( * ) WHEN - + 73 THEN + 83 ELSE - ( 7 ) END ) * MAX( DISTINCT + - 32 ) - - ( + COUNT( * ) ) AS col2
----
-4255

skipif mysql # not compatible
query I rowsort label-7072
SELECT 19 * + ( + - CASE COUNT ( * ) WHEN - + 73 THEN + 83 ELSE - ( 7 ) END ) * MAX ( DISTINCT + - 32 ) - - ( + COUNT ( * ) ) AS col2
----
-4255

onlyif mysql # aggregate syntax: 
query I rowsort label-7073
SELECT ALL 90 * - 93 * COUNT( * ) AS col2
----
-8370

skipif mysql # not compatible
query I rowsort label-7073
SELECT ALL 90 * - 93 * COUNT ( * ) AS col2
----
-8370

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7074
SELECT DISTINCT + 11 * - MIN( + - COALESCE ( 76, - + 65 * - + 18 + - 70 + + ( + + CAST( NULL AS SIGNED ) ) * - 8 ) ) + 95 * + COUNT( * )
----
931

skipif mysql # not compatible
query I rowsort label-7074
SELECT DISTINCT + 11 * - MIN ( + - COALESCE ( 76, - + 65 * - + 18 + - 70 + + ( + + CAST ( NULL AS INTEGER ) ) * - 8 ) ) + 95 * + COUNT ( * )
----
931

onlyif mysql # aggregate syntax: 
query I rowsort label-7075
SELECT 19 + + COUNT( * ) * - 60 * + COALESCE ( + 96, - - 23 )
----
-5741

skipif mysql # not compatible
query I rowsort label-7075
SELECT 19 + + COUNT ( * ) * - 60 * + COALESCE ( + 96, - - 23 )
----
-5741

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7076
SELECT COUNT( * ) + - + CAST( NULL AS DECIMAL ) * + COUNT( * ) / + 32 + + 61 + COUNT( * ) * - + 53 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7076
SELECT COUNT ( * ) + - + CAST ( NULL AS REAL ) * + COUNT ( * ) / + 32 + + 61 + COUNT ( * ) * - + 53 AS col1
----
NULL

query I rowsort
SELECT ( + 42 ) - 52
----
-10

query I rowsort
SELECT - - ( + 68 ) AS col0
----
68

query I rowsort
SELECT ALL + 80 * - ( + 15 ) + 18 AS col1
----
-1182

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7080
SELECT DISTINCT + NULLIF ( 50, 80 ) DIV - 23 DIV + COUNT( * ) + + NULLIF ( + 91, - COUNT( * ) + - + COUNT( 47 ) ), 37 AS col2
----
89
37

skipif mysql # not compatible
query II rowsort label-7080
SELECT DISTINCT + NULLIF ( 50, 80 ) / - 23 / + COUNT ( * ) + + NULLIF ( + 91, - COUNT ( * ) + - + COUNT ( 47 ) ), 37 AS col2
----
89
37

onlyif mysql # aggregate syntax: 
query I rowsort label-7081
SELECT SUM( + 62 ) + - + 55 AS col2
----
7

skipif mysql # not compatible
query I rowsort label-7081
SELECT SUM ( + 62 ) + - + 55 AS col2
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7082
SELECT NULLIF ( - + COUNT( * ), - 30 ) + 40 * - 25 * - 36 + 14 DIV + 49
----
35999

skipif mysql # not compatible
query I rowsort label-7082
SELECT NULLIF ( - + COUNT ( * ), - 30 ) + 40 * - 25 * - 36 + 14 / + 49
----
35999

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7083
SELECT ( - 85 ) DIV COUNT( * )
----
-85

skipif mysql # not compatible
query I rowsort label-7083
SELECT ( - 85 ) / COUNT ( * )
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7084
SELECT + 13 * - CAST( - 37 AS SIGNED )
----
481

skipif mysql # not compatible
query I rowsort label-7084
SELECT + 13 * - CAST ( - 37 AS INTEGER )
----
481

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7085
SELECT ALL - CAST( NULL AS DECIMAL ) * + + 54 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7085
SELECT ALL - CAST ( NULL AS REAL ) * + + 54 col0
----
NULL

query I rowsort
SELECT + 57 * - + 94
----
-5358

onlyif mysql # aggregate syntax: 
query I rowsort label-7087
SELECT - ( + + COUNT( * ) ) + - 1
----
-2

skipif mysql # not compatible
query I rowsort label-7087
SELECT - ( + + COUNT ( * ) ) + - 1
----
-2

query II rowsort
SELECT 76 * - 42 * - 70, - 13 AS col1
----
223440
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-7089
SELECT 20 - + COUNT( * )
----
19

skipif mysql # not compatible
query I rowsort label-7089
SELECT 20 - + COUNT ( * )
----
19

query I rowsort
SELECT - ( + 90 ) * + 95 / + 92 + + CASE - 8 WHEN + NULLIF ( + 83, 25 ) THEN 82 WHEN + 23 THEN NULL ELSE NULL END - + 99 + - - 63
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7091
SELECT 10 + - 81 + - + CASE - + COUNT( + + 26 ) WHEN - + 1 * 96 * COALESCE ( - MIN( - 35 ), - - 45 ) + - - 53 THEN + - 30 * + 59 - COALESCE ( 61, 96 / - ( - 83 ) ) * 43 WHEN - 63 * COUNT( * ) THEN NULL END * COUNT( ALL + 1 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7091
SELECT 10 + - 81 + - + CASE - + COUNT ( + + 26 ) WHEN - + 1 * 96 * COALESCE ( - MIN ( - 35 ), - - 45 ) + - - 53 THEN + - 30 * + 59 - COALESCE ( 61, 96 / - ( - 83 ) ) * 43 WHEN - 63 * COUNT ( * ) THEN NULL END * COUNT ( ALL + 1 ) col0
----
NULL

query II rowsort
SELECT DISTINCT - 45 AS col2, 0 AS col1
----
-45
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7093
SELECT ALL - NULLIF ( 34, CAST( 69 AS SIGNED ) / 76 ) AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-7093
SELECT ALL - NULLIF ( 34, CAST ( 69 AS INTEGER ) / 76 ) AS col1
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-7094
SELECT - COUNT( * ) * - 91 + - 1 AS col0
----
90

skipif mysql # not compatible
query I rowsort label-7094
SELECT - COUNT ( * ) * - 91 + - 1 AS col0
----
90

query I rowsort
SELECT DISTINCT + NULLIF ( - 75, + - 59 * - + 16 ) * + 30 col1
----
-2250

query I rowsort
SELECT ALL - 88 + + + 67 AS col1
----
-21

query I rowsort
SELECT ALL 90 * - - 1 AS col0
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7098
SELECT COUNT( DISTINCT - 7 ) + - - 75 DIV + - 14 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-7098
SELECT COUNT ( DISTINCT - 7 ) + - - 75 / + - 14 AS col2
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-7099
SELECT ALL 48 - 41 + COALESCE ( + MAX( ALL 82 ), 60, + ( + COALESCE ( 27, + 7 + - 13 * + NULLIF ( 18, - 45 ) ) ) ) + COALESCE ( 42 + - 31 * - COUNT( * ), 54, 89 ) * 1 * 55
----
4104

skipif mysql # not compatible
query I rowsort label-7099
SELECT ALL 48 - 41 + COALESCE ( + MAX ( ALL 82 ), 60, + ( + COALESCE ( 27, + 7 + - 13 * + NULLIF ( 18, - 45 ) ) ) ) + COALESCE ( 42 + - 31 * - COUNT ( * ), 54, 89 ) * 1 * 55
----
4104

onlyif mysql # aggregate syntax: 
query I rowsort label-7100
SELECT COUNT( * ) * + + MAX( ALL - ( ( + 80 ) ) ) AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-7100
SELECT COUNT ( * ) * + + MAX ( ALL - ( ( + 80 ) ) ) AS col2
----
-80

query II rowsort
SELECT ALL - 83, - 13 * + NULLIF ( 4, 6 ) AS col2
----
-83
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-7102
SELECT ALL 65 DIV - 87 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7102
SELECT ALL 65 / - 87 AS col2
----
0

query I rowsort
SELECT ALL + + 68 - - + 46 * + 91 + + 11 AS col0
----
4265

onlyif mysql # aggregate syntax: 
query I rowsort label-7104
SELECT DISTINCT - COUNT( * ) * + 63
----
-63

skipif mysql # not compatible
query I rowsort label-7104
SELECT DISTINCT - COUNT ( * ) * + 63
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-7105
SELECT + ( 42 ) - - + SUM( ( - + 38 ) ) * - 49 AS col1
----
1904

skipif mysql # not compatible
query I rowsort label-7105
SELECT + ( 42 ) - - + SUM ( ( - + 38 ) ) * - 49 AS col1
----
1904

onlyif mysql # aggregate syntax: 
query I rowsort label-7106
SELECT ALL + SUM( ALL + - 10 ) * + - 77
----
770

skipif mysql # not compatible
query I rowsort label-7106
SELECT ALL + SUM ( ALL + - 10 ) * + - 77
----
770

query I rowsort
SELECT + 15 * + - ( - 89 )
----
1335

onlyif mysql # aggregate syntax: 
query II rowsort label-7108
SELECT - + 88 col1, COUNT( * ) + - + 37
----
-88
-36

skipif mysql # not compatible
query II rowsort label-7108
SELECT - + 88 col1, COUNT ( * ) + - + 37
----
-88
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7109
SELECT COUNT( * ) AS col2, - CASE 65 WHEN - ( - + 9 ) THEN COUNT( ALL + + 91 ) * + 45 DIV - 8 ELSE 89 DIV - 49 END AS col1
----
1
1

skipif mysql # not compatible
query II rowsort label-7109
SELECT COUNT ( * ) AS col2, - CASE 65 WHEN - ( - + 9 ) THEN COUNT ( ALL + + 91 ) * + 45 / - 8 ELSE 89 / - 49 END AS col1
----
1
1

query I rowsort
SELECT 52 + - 96 * + 78
----
-7436

onlyif mysql # aggregate syntax: 
query I rowsort label-7111
SELECT - MAX( ALL 59 ) - - 21 + 16
----
-22

skipif mysql # not compatible
query I rowsort label-7111
SELECT - MAX ( ALL 59 ) - - 21 + 16
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7112
SELECT ALL + 16 + + COALESCE ( CASE - COALESCE ( 7, 76 * 12 + 86, - 20 - 5, + 79 + - 75 * + 50 ) WHEN - 22 + COUNT( * ) / + CASE WHEN NOT - COALESCE ( 36, - 94, 43 ) IN ( 59 * + COUNT( * ) ) THEN + 60 * 82 ELSE NULL END THEN + NULLIF ( 96, 14 + CAST( ( COUNT( + 74 ) ) AS SIGNED ) ) + + 63 ELSE 78 END, + 53 ) * + 37 AS col1
----
2902

skipif mysql # not compatible
query I rowsort label-7112
SELECT ALL + 16 + + COALESCE ( CASE - COALESCE ( 7, 76 * 12 + 86, - 20 - 5, + 79 + - 75 * + 50 ) WHEN - 22 + COUNT ( * ) / + CASE WHEN NOT - COALESCE ( 36, - 94, 43 ) IN ( 59 * + COUNT ( * ) ) THEN + 60 * 82 ELSE NULL END THEN + NULLIF ( 96, 14 + CAST ( ( COUNT ( + 74 ) ) AS INTEGER ) ) + + 63 ELSE 78 END, + 53 ) * + 37 AS col1
----
2902

onlyif mysql # DIV for integer division: 
query I rowsort label-7113
SELECT - 78 DIV + ( - 48 )
----
1

skipif mysql # not compatible
query I rowsort label-7113
SELECT - 78 / + ( - 48 )
----
1

query I rowsort
SELECT ALL - - 67 + - + 71 AS col1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-7115
SELECT - COUNT( * ) + - MIN( + - 43 )
----
42

skipif mysql # not compatible
query I rowsort label-7115
SELECT - COUNT ( * ) + - MIN ( + - 43 )
----
42

query I rowsort
SELECT ALL + 67 + - + 99 * ( + + 8 )
----
-725

query I rowsort
SELECT 21 + + 86 + 10
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-7118
SELECT MAX( - - 14 )
----
14

skipif mysql # not compatible
query I rowsort label-7118
SELECT MAX ( - - 14 )
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7119
SELECT ALL - ( + 6 ) DIV - + CAST( 10 AS SIGNED ) * - + CASE WHEN ( 83 ) > COUNT( * ) * 33 THEN + 79 END
----
0

skipif mysql # not compatible
query I rowsort label-7119
SELECT ALL - ( + 6 ) / - + CAST ( 10 AS INTEGER ) * - + CASE WHEN ( 83 ) > COUNT ( * ) * 33 THEN + 79 END
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7120
SELECT + 44 DIV + COUNT( * ) DIV - COUNT( * ) AS col0, - 34 col0
----
-44
-34

skipif mysql # not compatible
query II rowsort label-7120
SELECT + 44 / + COUNT ( * ) / - COUNT ( * ) AS col0, - 34 col0
----
-44
-34

query I rowsort
SELECT 30 + - - ( + 82 ) - + 59 * 86 * + 18 AS col2
----
-91220

query I rowsort
SELECT 33 - + 15
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-7123
SELECT 39 * + MIN( + 42 )
----
1638

skipif mysql # not compatible
query I rowsort label-7123
SELECT 39 * + MIN ( + 42 )
----
1638

query I rowsort
SELECT 29 * 0 * - 65 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7125
SELECT ALL - MAX( ALL 57 ) * + 49 * - - 56 + + ( + 53 ) AS col0
----
-156355

skipif mysql # not compatible
query I rowsort label-7125
SELECT ALL - MAX ( ALL 57 ) * + 49 * - - 56 + + ( + 53 ) AS col0
----
-156355

onlyif mysql # aggregate syntax: 
query I rowsort label-7126
SELECT ALL 72 * - COUNT( * ) + - 51 + - + 8 AS col0
----
-131

skipif mysql # not compatible
query I rowsort label-7126
SELECT ALL 72 * - COUNT ( * ) + - 51 + - + 8 AS col0
----
-131

onlyif mysql # aggregate syntax: 
query I rowsort label-7127
SELECT NULLIF ( - 21, - COUNT( * ) ) AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-7127
SELECT NULLIF ( - 21, - COUNT ( * ) ) AS col0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-7128
SELECT ALL + CASE + 71 WHEN - NULLIF ( + - 94, - 60 ) THEN - 47 * - 94 WHEN + 53 * 65 THEN - 64 * 83 * - - 79 + CASE MAX( 76 ) WHEN + 18 THEN 10 WHEN - 43 THEN 52 END END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7128
SELECT ALL + CASE + 71 WHEN - NULLIF ( + - 94, - 60 ) THEN - 47 * - 94 WHEN + 53 * 65 THEN - 64 * 83 * - - 79 + CASE MAX ( 76 ) WHEN + 18 THEN 10 WHEN - 43 THEN 52 END END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7129
SELECT + 84 + + + 79 DIV 62
----
85

skipif mysql # not compatible
query I rowsort label-7129
SELECT + 84 + + + 79 / 62
----
85

query I rowsort
SELECT - 90 * + 10 col2
----
-900

query I rowsort
SELECT COALESCE ( - 87, - + 64 * 13, - - 56 )
----
-87

onlyif mysql # aggregate syntax: 
query II rowsort label-7132
SELECT ALL + MIN( DISTINCT 52 ) AS col1, + NULLIF ( 85, + 78 * - + 37 * 90 ) * 17 - - ( MAX( + 10 ) )
----
52
1455

skipif mysql # not compatible
query II rowsort label-7132
SELECT ALL + MIN ( DISTINCT 52 ) AS col1, + NULLIF ( 85, + 78 * - + 37 * 90 ) * 17 - - ( MAX ( + 10 ) )
----
52
1455

query I rowsort
SELECT 57 * 52 - + - 43 + + 70 * + - 15
----
1957

onlyif mysql # aggregate syntax: 
query I rowsort label-7134
SELECT ALL - 66 * ( + + 10 ) * - MIN( + 5 ) + + NULLIF ( - 47, - 51 )
----
3253

skipif mysql # not compatible
query I rowsort label-7134
SELECT ALL - 66 * ( + + 10 ) * - MIN ( + 5 ) + + NULLIF ( - 47, - 51 )
----
3253

query I rowsort
SELECT - 6 + - ( - 86 )
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-7136
SELECT ALL - 94 DIV - 28 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-7136
SELECT ALL - 94 / - 28 AS col2
----
3

query I rowsort
SELECT - CASE - - 71 WHEN 32 + + 89 THEN + + 66 * - + 11 / NULLIF ( - 24, - 30 * + 50 ) ELSE NULL END AS col1
----
NULL

query II rowsort
SELECT - + 34 + - 82 col1, - 13 * - 30
----
-116
390

onlyif mysql # aggregate syntax: 
query II rowsort label-7139
SELECT + + COUNT( * ) - 74 * + - SUM( DISTINCT + + 83 ) AS col0, + 6 AS col2
----
6143
6

skipif mysql # not compatible
query II rowsort label-7139
SELECT + + COUNT ( * ) - 74 * + - SUM ( DISTINCT + + 83 ) AS col0, + 6 AS col2
----
6143
6

onlyif mysql # aggregate syntax: 
query II rowsort label-7140
SELECT - NULLIF ( - + 75, + COUNT( * ) - + 42 ) + + 91, - 42 + + 94 + + NULLIF ( CASE - - 2 WHEN + - 86 THEN - 27 WHEN + 30 * - 29 * COUNT( * ) + - ( - 85 ) THEN 58 END, 13 ) AS col2
----
166
NULL

skipif mysql # not compatible
query II rowsort label-7140
SELECT - NULLIF ( - + 75, + COUNT ( * ) - + 42 ) + + 91, - 42 + + 94 + + NULLIF ( CASE - - 2 WHEN + - 86 THEN - 27 WHEN + 30 * - 29 * COUNT ( * ) + - ( - 85 ) THEN 58 END, 13 ) AS col2
----
166
NULL

query I rowsort
SELECT DISTINCT + - 73 + 83 + - 84 * - NULLIF ( + + 22, - 98 ) + 81
----
1939

onlyif mysql # aggregate syntax: 
query I rowsort label-7142
SELECT DISTINCT - 20 + COALESCE ( - COUNT( * ), - + 68 )
----
-21

skipif mysql # not compatible
query I rowsort label-7142
SELECT DISTINCT - 20 + COALESCE ( - COUNT ( * ), - + 68 )
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7143
SELECT + - MAX( ALL + 0 ) * - 74 DIV + 9 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7143
SELECT + - MAX ( ALL + 0 ) * - 74 / + 9 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7144
SELECT ALL + - 61 + - 38 + + MIN( DISTINCT 69 ) - - COUNT( + 89 ) * 22
----
-8

skipif mysql # not compatible
query I rowsort label-7144
SELECT ALL + - 61 + - 38 + + MIN ( DISTINCT 69 ) - - COUNT ( + 89 ) * 22
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7145
SELECT DISTINCT 1 + - - CAST( - - 68 AS SIGNED ) AS col0
----
69

skipif mysql # not compatible
query I rowsort label-7145
SELECT DISTINCT 1 + - - CAST ( - - 68 AS INTEGER ) AS col0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-7146
SELECT ALL + NULLIF ( - - CASE + 36 WHEN 88 * + + 33 + + + 73 THEN + 43 + + ( + + 48 ) WHEN + + 95 * + 49 * 28 + - COUNT( * ) / - 57 THEN 94 * 93 END, COUNT( * ) * 70 + 77 * - 93 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7146
SELECT ALL + NULLIF ( - - CASE + 36 WHEN 88 * + + 33 + + + 73 THEN + 43 + + ( + + 48 ) WHEN + + 95 * + 49 * 28 + - COUNT ( * ) / - 57 THEN 94 * 93 END, COUNT ( * ) * 70 + 77 * - 93 ) AS col0
----
NULL

query I rowsort
SELECT + CASE + + 17 WHEN + 30 THEN 35 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7148
SELECT + + 26 + + 28 - - - 79 * + NULLIF ( - 17, + 79 + COUNT( * ) * + - 18 ) * + 27 + + 23 + 22
----
36360

skipif mysql # not compatible
query I rowsort label-7148
SELECT + + 26 + + 28 - - - 79 * + NULLIF ( - 17, + 79 + COUNT ( * ) * + - 18 ) * + 27 + + 23 + 22
----
36360

onlyif mysql # aggregate syntax: 
query I rowsort label-7149
SELECT DISTINCT - COUNT( DISTINCT 15 ) + + 70 * - 71 - - 80 AS col2
----
-4891

skipif mysql # not compatible
query I rowsort label-7149
SELECT DISTINCT - COUNT ( DISTINCT 15 ) + + 70 * - 71 - - 80 AS col2
----
-4891

query I rowsort
SELECT COALESCE ( + 77, - 90, + - 27 * + 69 )
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7151
SELECT ALL ( + 1 ) + + 19 + CASE + CASE + + COALESCE ( + COUNT( * ), + + ( - 70 ), 17 - NULLIF ( + - 22, COUNT( * ) ), + 6 / - 63 * 14 - MAX( - 81 ) ) WHEN - ( 99 ) - NULLIF ( + 12, + CASE + NULLIF ( - 61, - 16 ) WHEN COUNT( * ) THEN NULL WHEN COUNT( * ) THEN + 93 END ) THEN + 67 * - ( - 5 ) END WHEN ( CAST( NULL AS SIGNED ) ) THEN NULL WHEN 10 * 37 + 58 * COALESCE ( 43, - 15 * - MAX( DISTINCT + 52 ), + 13, - COALESCE ( + 35, + 17 + 39, - 88 + + 26 / 30 ) ) THEN - 63 ELSE 17 + + 90 END * + 71 AS col2
----
7617

skipif mysql # not compatible
query I rowsort label-7151
SELECT ALL ( + 1 ) + + 19 + CASE + CASE + + COALESCE ( + COUNT ( * ), + + ( - 70 ), 17 - NULLIF ( + - 22, COUNT ( * ) ), + 6 / - 63 * 14 - MAX ( - 81 ) ) WHEN - ( 99 ) - NULLIF ( + 12, + CASE + NULLIF ( - 61, - 16 ) WHEN COUNT ( * ) THEN NULL WHEN COUNT ( * ) THEN + 93 END ) THEN + 67 * - ( - 5 ) END WHEN ( CAST ( NULL AS INTEGER ) ) THEN NULL WHEN 10 * 37 + 58 * COALESCE ( 43, - 15 * - MAX ( DISTINCT + 52 ), + 13, - COALESCE ( + 35, + 17 + 39, - 88 + + 26 / 30 ) ) THEN - 63 ELSE 17 + + 90 END * + 71 AS col2
----
7617

onlyif mysql # aggregate syntax: 
query I rowsort label-7152
SELECT ALL ( - MAX( + + 25 ) ) AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-7152
SELECT ALL ( - MAX ( + + 25 ) ) AS col2
----
-25

query II rowsort
SELECT DISTINCT - NULLIF ( 27, - + 92 * + 74 ) + + 42 + - NULLIF ( - + 24, 4 ) AS col2, 29
----
39
29

query I rowsort
SELECT ALL 26 + + 50 AS col0
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7155
SELECT ALL ( - - CASE WHEN NOT - 49 IS NULL THEN - SUM( ALL 64 ) ELSE - MAX( 48 ) + + 65 END ) + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7155
SELECT ALL ( - - CASE WHEN NOT - 49 IS NULL THEN - SUM ( ALL 64 ) ELSE - MAX ( 48 ) + + 65 END ) + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL + 24 - - 27 + + 35
----
86

query I rowsort
SELECT + 67 * + + 67 AS col1
----
4489

onlyif mysql # aggregate syntax: 
query I rowsort label-7158
SELECT + 73 * COUNT( DISTINCT - - ( - 22 ) )
----
73

skipif mysql # not compatible
query I rowsort label-7158
SELECT + 73 * COUNT ( DISTINCT - - ( - 22 ) )
----
73

query I rowsort
SELECT + 84 + 57 AS col0
----
141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7160
SELECT + 90 + - CAST( - 39 AS SIGNED )
----
129

skipif mysql # not compatible
query I rowsort label-7160
SELECT + 90 + - CAST ( - 39 AS INTEGER )
----
129

onlyif mysql # DIV for integer division: 
query II rowsort label-7161
SELECT ALL + 96 DIV + - 36 - 92 AS col2, - 55
----
-94
-55

skipif mysql # not compatible
query II rowsort label-7161
SELECT ALL + 96 / + - 36 - 92 AS col2, - 55
----
-94
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7162
SELECT ALL 31 * - CASE WHEN NOT + CAST( NULL AS SIGNED ) IS NOT NULL THEN 38 WHEN - 14 IS NULL THEN NULL END AS col1
----
-1178

skipif mysql # not compatible
query I rowsort label-7162
SELECT ALL 31 * - CASE WHEN NOT + CAST ( NULL AS INTEGER ) IS NOT NULL THEN 38 WHEN - 14 IS NULL THEN NULL END AS col1
----
-1178

query I rowsort
SELECT + 37 * + 28
----
1036

query I rowsort
SELECT + 54 + + 20 + - 22
----
52

query I rowsort
SELECT DISTINCT + 52 * + 78 AS col1
----
4056

onlyif mysql # aggregate syntax: 
query I rowsort label-7166
SELECT + 67 * + SUM( 61 ) + - 82 * - 56
----
8679

skipif mysql # not compatible
query I rowsort label-7166
SELECT + 67 * + SUM ( 61 ) + - 82 * - 56
----
8679

query I rowsort
SELECT ALL ( + 64 ) * 85 AS col1
----
5440

query I rowsort
SELECT DISTINCT 71 * 54
----
3834

query I rowsort
SELECT ALL + ( + 53 ) col2
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7170
SELECT - CAST( NULL AS SIGNED ) + + 13 + - 15 * - - 60 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7170
SELECT - CAST ( NULL AS INTEGER ) + + 13 + - 15 * - - 60 AS col0
----
NULL

query II rowsort
SELECT + + 66 AS col0, + 38
----
66
38

query I rowsort
SELECT + 88 * - 78
----
-6864

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7173
SELECT 57 * CAST( - 81 AS SIGNED ) + - COUNT( * )
----
-4618

skipif mysql # not compatible
query I rowsort label-7173
SELECT 57 * CAST ( - 81 AS INTEGER ) + - COUNT ( * )
----
-4618

onlyif mysql # aggregate syntax: 
query II rowsort label-7174
SELECT + - COUNT( * ) AS col0, + 95 AS col0
----
-1
95

skipif mysql # not compatible
query II rowsort label-7174
SELECT + - COUNT ( * ) AS col0, + 95 AS col0
----
-1
95

onlyif mysql # aggregate syntax: 
query II rowsort label-7175
SELECT - + COUNT( * ) * + 85 * + 89 + + ( + - 81 ), + 56 AS col1
----
-7646
56

skipif mysql # not compatible
query II rowsort label-7175
SELECT - + COUNT ( * ) * + 85 * + 89 + + ( + - 81 ), + 56 AS col1
----
-7646
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7176
SELECT - + 22 * CASE ( + 74 ) WHEN + 25 - + + 53 + 20 THEN + 56 + - - 6 ELSE - SUM( ALL + 37 ) END * - CAST( + 2 AS SIGNED ) + + - 92 / - 46 - - CAST( NULL AS SIGNED ) / CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7176
SELECT - + 22 * CASE ( + 74 ) WHEN + 25 - + + 53 + 20 THEN + 56 + - - 6 ELSE - SUM ( ALL + 37 ) END * - CAST ( + 2 AS INTEGER ) + + - 92 / - 46 - - CAST ( NULL AS INTEGER ) / CAST ( NULL AS REAL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7177
SELECT DISTINCT - 19 DIV - 32 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7177
SELECT DISTINCT - 19 / - 32 AS col1
----
0

query I rowsort
SELECT ALL + + 49 col1
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-7179
SELECT ALL + + COUNT( + 25 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-7179
SELECT ALL + + COUNT ( + 25 ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7180
SELECT DISTINCT - + 28 * 80 * + COUNT( * ) + - + 83 * - 60 AS col2
----
2740

skipif mysql # not compatible
query I rowsort label-7180
SELECT DISTINCT - + 28 * 80 * + COUNT ( * ) + - + 83 * - 60 AS col2
----
2740

query I rowsort
SELECT DISTINCT - 58 * - - 12 AS col2
----
-696

query I rowsort
SELECT ALL 96 * - 10 + + - 83 + 94
----
-949

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7183
SELECT - + CAST( NULL AS SIGNED ) - - - 46 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7183
SELECT - + CAST ( NULL AS INTEGER ) - - - 46 AS col0
----
NULL

query I rowsort
SELECT ALL + 25 * - 41 * - - 83 * - 9
----
765675

onlyif mysql # DIV for integer division: 
query I rowsort label-7185
SELECT - 99 DIV - 54 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7185
SELECT - 99 / - 54 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7186
SELECT - 4 - + 68 + 83 + + COUNT( * ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-7186
SELECT - 4 - + 68 + 83 + + COUNT ( * ) AS col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7187
SELECT - + 39 + + CASE - COUNT( * ) WHEN + + 62 / + 16 - - 54 THEN 58 WHEN - 12 * + + AVG ( - + 46 ) * 30 - COALESCE ( + COUNT( * ), - 53 * + ( - CASE - 88 WHEN + COUNT( * ) THEN ( 27 ) WHEN + ( 11 ) * - 76 - - AVG ( 93 + CASE 28 + 88 WHEN + 49 - 97 * + 99 THEN NULL WHEN 82 THEN - ( - 86 ) ELSE 97 END ) THEN NULL END ) ) + + 29 * + 47 THEN NULL WHEN ( - COUNT( * ) ) THEN NULL ELSE + 46 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7187
SELECT - + 39 + + CASE - COUNT ( * ) WHEN + + 62 / + 16 - - 54 THEN 58 WHEN - 12 * + + AVG ( - + 46 ) * 30 - COALESCE ( + COUNT ( * ), - 53 * + ( - CASE - 88 WHEN + COUNT ( * ) THEN ( 27 ) WHEN + ( 11 ) * - 76 - - AVG ( 93 + CASE 28 + 88 WHEN + 49 - 97 * + 99 THEN NULL WHEN 82 THEN - ( - 86 ) ELSE 97 END ) THEN NULL END ) ) + + 29 * + 47 THEN NULL WHEN ( - COUNT ( * ) ) THEN NULL ELSE + 46 END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7188
SELECT ALL - + 44 * - ( - 0 ) DIV - 57 * - - SUM( DISTINCT 14 ) + ( + + 71 ) + - + 31
----
40

skipif mysql # not compatible
query I rowsort label-7188
SELECT ALL - + 44 * - ( - 0 ) / - 57 * - - SUM ( DISTINCT 14 ) + ( + + 71 ) + - + 31
----
40

query II rowsort
SELECT ALL - + 54 + - 28 * - + 55, 57 AS col0
----
1486
57

query I rowsort
SELECT DISTINCT - 56 + - 77 AS col2
----
-133

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7191
SELECT ALL CAST( 51 AS SIGNED )
----
51

skipif mysql # not compatible
query I rowsort label-7191
SELECT ALL CAST ( 51 AS INTEGER )
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-7192
SELECT 43 AS col0, - NULLIF ( 49, + COUNT( * ) - - 85 ) AS col2
----
43
-49

skipif mysql # not compatible
query II rowsort label-7192
SELECT 43 AS col0, - NULLIF ( 49, + COUNT ( * ) - - 85 ) AS col2
----
43
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-7193
SELECT DISTINCT 32 - - + COUNT( * ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-7193
SELECT DISTINCT 32 - - + COUNT ( * ) AS col1
----
33

query II rowsort
SELECT - 30, - 76 + - 77 AS col2
----
-30
-153

query II rowsort
SELECT ALL 86 col0, 60
----
86
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7196
SELECT DISTINCT CAST( COALESCE ( - NULLIF ( + 57, CAST( + 37 AS SIGNED ) ), + - 75 ) AS SIGNED ) - + + COUNT( * )
----
-58

skipif mysql # not compatible
query I rowsort label-7196
SELECT DISTINCT CAST ( COALESCE ( - NULLIF ( + 57, CAST ( + 37 AS INTEGER ) ), + - 75 ) AS INTEGER ) - + + COUNT ( * )
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-7197
SELECT SUM( ( 63 ) ) + - 20 - + 47
----
-4

skipif mysql # not compatible
query I rowsort label-7197
SELECT SUM ( ( 63 ) ) + - 20 - + 47
----
-4

query I rowsort
SELECT ALL 73 * + - 58 * + + 34
----
-143956

onlyif mysql # aggregate syntax: 
query I rowsort label-7199
SELECT DISTINCT 90 * - COUNT( * ) * ( ( COUNT( * ) ) )
----
-90

skipif mysql # not compatible
query I rowsort label-7199
SELECT DISTINCT 90 * - COUNT ( * ) * ( ( COUNT ( * ) ) )
----
-90

query I rowsort
SELECT DISTINCT - 11 * + 43
----
-473

query II rowsort
SELECT 59 AS col0, 43 * + ( 57 )
----
59
2451

query II rowsort
SELECT DISTINCT - 2 col1, 26 + + + 59 AS col1
----
-2
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7203
SELECT - COUNT( * ) DIV + 24 + 79 AS col0
----
79

skipif mysql # not compatible
query I rowsort label-7203
SELECT - COUNT ( * ) / + 24 + 79 AS col0
----
79

query II rowsort
SELECT ALL - 18 AS col0, + 98 * + - 10 * - 29 + - - 34 AS col2
----
-18
28454

onlyif mysql # aggregate syntax: 
query I rowsort label-7205
SELECT SUM( DISTINCT - 30 ) * - 43 + ( + + 50 )
----
1340

skipif mysql # not compatible
query I rowsort label-7205
SELECT SUM ( DISTINCT - 30 ) * - 43 + ( + + 50 )
----
1340

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7206
SELECT + CAST( NULL AS DECIMAL ) AS col0, ( + COALESCE ( + - 7, - 90 ) ) + - - COUNT( * ) col2
----
NULL
-6

skipif mysql # not compatible
query II rowsort label-7206
SELECT + CAST ( NULL AS REAL ) AS col0, ( + COALESCE ( + - 7, - 90 ) ) + - - COUNT ( * ) col2
----
NULL
-6

query I rowsort
SELECT DISTINCT 34 * - + 17
----
-578

query II rowsort
SELECT ALL - 31 + - 78, + 43 AS col2
----
-109
43

query I rowsort
SELECT + 8 + 40 AS col1
----
48

query I rowsort
SELECT ALL 78 + + - 48 + - + 54 + - 89
----
-113

query II rowsort
SELECT DISTINCT - + 82 AS col0, 36 * + + 40
----
-82
1440

query I rowsort
SELECT ( - 41 ) + - 58 - - 26 AS col1
----
-73

query I rowsort
SELECT ALL - - 73 + 55
----
128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7214
SELECT DISTINCT 0 * + MAX( DISTINCT - CAST( - 55 AS SIGNED ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7214
SELECT DISTINCT 0 * + MAX ( DISTINCT - CAST ( - 55 AS INTEGER ) ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7215
SELECT ALL COALESCE ( - MIN( ALL 20 ), - 84 * + 62 + + + 80 ) + 48 + - 19 * - + 31 * - + 50
----
-29422

skipif mysql # not compatible
query I rowsort label-7215
SELECT ALL COALESCE ( - MIN ( ALL 20 ), - 84 * + 62 + + + 80 ) + 48 + - 19 * - + 31 * - + 50
----
-29422

onlyif mysql # aggregate syntax: 
query I rowsort label-7216
SELECT COUNT( DISTINCT - - 99 ) + - + 9
----
-8

skipif mysql # not compatible
query I rowsort label-7216
SELECT COUNT ( DISTINCT - - 99 ) + - + 9
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-7217
SELECT - CASE 27 WHEN + 71 THEN 90 * + 27 + 19 + 65 WHEN - - 84 THEN - + NULLIF ( - + COALESCE ( + 76, - SUM( 60 ) ), + 88 ) WHEN - COALESCE ( - + COUNT( * ), 99 * COUNT( DISTINCT - 2 ) + - 26 ) * - 32 THEN NULL WHEN 81 THEN NULL ELSE 70 + - COUNT( * ) END * + 94 - + 6 AS col0
----
-6492

skipif mysql # not compatible
query I rowsort label-7217
SELECT - CASE 27 WHEN + 71 THEN 90 * + 27 + 19 + 65 WHEN - - 84 THEN - + NULLIF ( - + COALESCE ( + 76, - SUM ( 60 ) ), + 88 ) WHEN - COALESCE ( - + COUNT ( * ), 99 * COUNT ( DISTINCT - 2 ) + - 26 ) * - 32 THEN NULL WHEN 81 THEN NULL ELSE 70 + - COUNT ( * ) END * + 94 - + 6 AS col0
----
-6492

onlyif mysql # DIV for integer division: 
query II rowsort label-7218
SELECT ALL - 86, - 15 DIV + 29 AS col0
----
-86
0

skipif mysql # not compatible
query II rowsort label-7218
SELECT ALL - 86, - 15 / + 29 AS col0
----
-86
0

query I rowsort
SELECT 88 - 37 + + 16 + - 50 col0
----
17

query II rowsort
SELECT 74 AS col2, - 6 AS col0
----
74
-6

query I rowsort
SELECT DISTINCT 89 - + - 87 + + 15 * + + 37 - + 74
----
657

onlyif mysql # aggregate syntax: 
query I rowsort label-7222
SELECT ALL - COALESCE ( + - 82, - MIN( ALL + ( + 79 ) ) ) AS col2
----
82

skipif mysql # not compatible
query I rowsort label-7222
SELECT ALL - COALESCE ( + - 82, - MIN ( ALL + ( + 79 ) ) ) AS col2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-7223
SELECT ALL + 69 * COALESCE ( - 54, 98 * + 19 - - - 63 + + 5 + - ( 54 ) + + COUNT( * ) + - 99 * + COUNT( * ) ) * - + 17
----
63342

skipif mysql # not compatible
query I rowsort label-7223
SELECT ALL + 69 * COALESCE ( - 54, 98 * + 19 - - - 63 + + 5 + - ( 54 ) + + COUNT ( * ) + - 99 * + COUNT ( * ) ) * - + 17
----
63342

query I rowsort
SELECT 39 * - + 39 AS col1
----
-1521

query II rowsort
SELECT ALL + 97 * + 22, + CASE - 64 WHEN + - CASE + 11 WHEN - CASE + + 12 WHEN 95 * + 64 THEN 19 END THEN NULL ELSE - 32 END * + 32 * - ( - - 70 ) THEN NULL ELSE 57 END - - 58 AS col1
----
2134
115

query I rowsort
SELECT 29 + + 23
----
52

query II rowsort
SELECT 67 + 50, - 39 + + 44 AS col0
----
117
5

query I rowsort
SELECT DISTINCT + 79 * + 33
----
2607

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7229
SELECT ALL + 34 DIV - 71 * + + COUNT( * ) * - + 70
----
0

skipif mysql # not compatible
query I rowsort label-7229
SELECT ALL + 34 / - 71 * + + COUNT ( * ) * - + 70
----
0

query I rowsort
SELECT 54 + 92 AS col2
----
146

query I rowsort
SELECT ALL 78 * - ( + 32 )
----
-2496

onlyif mysql # aggregate syntax: 
query II rowsort label-7232
SELECT ALL - 35 + + + 39 AS col0, SUM( ALL + + 54 ) * + 21 + - - 94 * COUNT( * ) AS col2
----
4
1228

skipif mysql # not compatible
query II rowsort label-7232
SELECT ALL - 35 + + + 39 AS col0, SUM ( ALL + + 54 ) * + 21 + - - 94 * COUNT ( * ) AS col2
----
4
1228

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7233
SELECT 79 + + 64 - 89 + + COALESCE ( + 37, + 36, + 57 * 69 * - + 29 ) + + COALESCE ( 6, + 67 - + - ( - 58 ) ) * CAST( + 23 AS SIGNED ) * + - 67 * - CAST( - CASE CAST( NULL AS SIGNED ) WHEN + MAX( DISTINCT - 72 ) THEN 64 END AS DECIMAL ) / - 70 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7233
SELECT 79 + + 64 - 89 + + COALESCE ( + 37, + 36, + 57 * 69 * - + 29 ) + + COALESCE ( 6, + 67 - + - ( - 58 ) ) * CAST ( + 23 AS INTEGER ) * + - 67 * - CAST ( - CASE CAST ( NULL AS INTEGER ) WHEN + MAX ( DISTINCT - 72 ) THEN 64 END AS REAL ) / - 70 AS col0
----
NULL

query I rowsort
SELECT 54 * - - NULLIF ( + 22, - 65 * 14 * + 75 / 61 + 82 * + 3 + 51 )
----
1188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7235
SELECT ALL - ( + + CAST( - 94 AS SIGNED ) ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-7235
SELECT ALL - ( + + CAST ( - 94 AS INTEGER ) ) AS col2
----
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7236
SELECT COALESCE ( 12, + + 28 * + 94 + - 5 ) DIV 59 DIV - ( + + ( + + 92 ) ) + - COUNT( * ) + + - 86
----
-87

skipif mysql # not compatible
query I rowsort label-7236
SELECT COALESCE ( 12, + + 28 * + 94 + - 5 ) / 59 / - ( + + ( + + 92 ) ) + - COUNT ( * ) + + - 86
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-7237
SELECT CASE + 56 WHEN + COUNT( * ) * - 55 + 98 THEN + 52 END / 72 + + - 88
----
NULL

skipif mysql # not compatible
query I rowsort label-7237
SELECT CASE + 56 WHEN + COUNT ( * ) * - 55 + 98 THEN + 52 END / 72 + + - 88
----
NULL

query II rowsort
SELECT DISTINCT 96 * - 92 + + 5 * ( + 56 ) AS col1, - 64 AS col0
----
-8552
-64

onlyif mysql # aggregate syntax: 
query II rowsort label-7239
SELECT - 79 + - COUNT( * ) AS col0, - COUNT( 6 ) AS col0
----
-80
-1

skipif mysql # not compatible
query II rowsort label-7239
SELECT - 79 + - COUNT ( * ) AS col0, - COUNT ( 6 ) AS col0
----
-80
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7240
SELECT ALL + 24 * + COUNT( - + 32 ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-7240
SELECT ALL + 24 * + COUNT ( - + 32 ) AS col0
----
24

query I rowsort
SELECT ALL - 49 * - 12 + - 46 - + + 38 AS col0
----
504

query I rowsort
SELECT ALL - 70 * - 66 / - 75 - + - CASE + - 86 WHEN + 49 THEN NULL WHEN 57 + 51 + + - 83 THEN + 34 END - - 73 + - + 88
----
NULL

query I rowsort
SELECT ALL + 20 * 26 * + 12 + - 92 - + 41 * 8 AS col0
----
5820

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7244
SELECT + AVG ( DISTINCT NULLIF ( CAST( NULL AS SIGNED ), + ( - 52 ) ) ) / + 36 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7244
SELECT + AVG ( DISTINCT NULLIF ( CAST ( NULL AS INTEGER ), + ( - 52 ) ) ) / + 36 AS col2
----
NULL

query I rowsort
SELECT ALL - ( - + 37 ) col2
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7246
SELECT + + CAST( - NULLIF ( + COALESCE ( + COUNT( * ), + 34 * CAST( - 77 AS DECIMAL ) + + COUNT( * ) * - + 42, + 92 + + 18 + - 34 + + 58 * - 44 * 6, - COUNT( * ) ), + - COUNT( * ) - - 84 ) AS SIGNED ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7246
SELECT + + CAST ( - NULLIF ( + COALESCE ( + COUNT ( * ), + 34 * CAST ( - 77 AS REAL ) + + COUNT ( * ) * - + 42, + 92 + + 18 + - 34 + + 58 * - 44 * 6, - COUNT ( * ) ), + - COUNT ( * ) - - 84 ) AS INTEGER ) AS col0
----
-1

query II rowsort
SELECT DISTINCT - 75 * + 63 col0, - 50 * 20 AS col1
----
-4725
-1000

query I rowsort
SELECT ALL + 59 - - 29
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-7249
SELECT 90 DIV ( - - 75 ) * + 50
----
50

skipif mysql # not compatible
query I rowsort label-7249
SELECT 90 / ( - - 75 ) * + 50
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7250
SELECT ALL MIN( 37 ) DIV COUNT( * ) * - 19
----
-703

skipif mysql # not compatible
query I rowsort label-7250
SELECT ALL MIN ( 37 ) / COUNT ( * ) * - 19
----
-703

query I rowsort
SELECT ALL 52 * + 23 * + 0 AS col2
----
0

query I rowsort
SELECT - 22 * + - 92 + + 38
----
2062

query I rowsort
SELECT DISTINCT + NULLIF ( - 1, + ( 6 ) ) col0
----
-1

query I rowsort
SELECT + - 87 * + + 46 AS col2
----
-4002

query II rowsort
SELECT ALL - 82 * 2 AS col0, - 19 AS col0
----
-164
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-7256
SELECT + MAX( DISTINCT - - 5 ) * MAX( ALL + 22 )
----
110

skipif mysql # not compatible
query I rowsort label-7256
SELECT + MAX ( DISTINCT - - 5 ) * MAX ( ALL + 22 )
----
110

onlyif mysql # DIV for integer division: 
query II rowsort label-7257
SELECT 68 AS col1, - ( + ( COALESCE ( + + 9, - - 90 DIV + 93 ) ) )
----
68
-9

skipif mysql # not compatible
query II rowsort label-7257
SELECT 68 AS col1, - ( + ( COALESCE ( + + 9, - - 90 / + 93 ) ) )
----
68
-9

query I rowsort
SELECT - 67 + - 17
----
-84

onlyif mysql # DIV for integer division: 
query II rowsort label-7259
SELECT - 81 AS col2, 68 + CASE - 83 WHEN + - ( + 35 ) * - ( + 36 ) THEN NULL ELSE - - 16 END + - 78 DIV + 62
----
-81
83

skipif mysql # not compatible
query II rowsort label-7259
SELECT - 81 AS col2, 68 + CASE - 83 WHEN + - ( + 35 ) * - ( + 36 ) THEN NULL ELSE - - 16 END + - 78 / + 62
----
-81
83

onlyif mysql # aggregate syntax: 
query I rowsort label-7260
SELECT DISTINCT + 48 * COUNT( * )
----
48

skipif mysql # not compatible
query I rowsort label-7260
SELECT DISTINCT + 48 * COUNT ( * )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-7261
SELECT ALL NULLIF ( 84, - - COUNT( ALL - 46 ) ) AS col2
----
84

skipif mysql # not compatible
query I rowsort label-7261
SELECT ALL NULLIF ( 84, - - COUNT ( ALL - 46 ) ) AS col2
----
84

query I rowsort
SELECT ALL 90 + + - 6 col1
----
84

query I rowsort
SELECT + 54 + 0 AS col1
----
54

query I rowsort
SELECT + 72 * 80
----
5760

query II rowsort
SELECT - 78 * + + ( - 23 ) AS col1, 98
----
1794
98

query II rowsort
SELECT - 60 AS col2, - 71 AS col2
----
-60
-71

query II rowsort
SELECT DISTINCT CASE 64 WHEN + 84 * - - 99 THEN NULL WHEN - 10 - - COALESCE ( - 49, ( - - ( ( - - 99 ) ) ), 15 ) * + 46 * + - 37 * + 2 THEN - 71 END col1, + 25
----
NULL
25

query I rowsort
SELECT - 76 * + 91
----
-6916

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7269
SELECT ALL + AVG ( DISTINCT + - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7269
SELECT ALL + AVG ( DISTINCT + - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT + + ( - 3 ) AS col1
----
-3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7271
SELECT + - 9 DIV 60 + + 55 + 68 + - ( 48 ) * - 92 * - - 35 + 66 - + 5 + 18 * 50 + + 92 + - 54 DIV ( 36 ) - + CAST( + + 96 AS SIGNED ) + + 64
----
155703

skipif mysql # not compatible
query I rowsort label-7271
SELECT + - 9 / 60 + + 55 + 68 + - ( 48 ) * - 92 * - - 35 + 66 - + 5 + 18 * 50 + + 92 + - 54 / ( 36 ) - + CAST ( + + 96 AS INTEGER ) + + 64
----
155703

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7272
SELECT - + 18 * + SUM( CAST( 24 AS SIGNED ) ) * COUNT( * ) + + CAST( NULL AS SIGNED ) - + 31
----
NULL

skipif mysql # not compatible
query I rowsort label-7272
SELECT - + 18 * + SUM ( CAST ( 24 AS INTEGER ) ) * COUNT ( * ) + + CAST ( NULL AS INTEGER ) - + 31
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7273
SELECT - - 48 + 47 + + 97 AS col0, - 73 DIV + - COUNT( * ) AS col1
----
192
73

skipif mysql # not compatible
query II rowsort label-7273
SELECT - - 48 + 47 + + 97 AS col0, - 73 / + - COUNT ( * ) AS col1
----
192
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7274
SELECT ALL + - 11 * 51 - 32 * CAST( - 76 AS SIGNED ) AS col1
----
1871

skipif mysql # not compatible
query I rowsort label-7274
SELECT ALL + - 11 * 51 - 32 * CAST ( - 76 AS INTEGER ) AS col1
----
1871

query I rowsort
SELECT - 79 * - + 89 AS col1
----
7031

query I rowsort
SELECT DISTINCT + 36 * 3 - 15 AS col0
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-7277
SELECT DISTINCT - ( + COUNT( * ) ) * 71 AS col0, 73 AS col1
----
-71
73

skipif mysql # not compatible
query II rowsort label-7277
SELECT DISTINCT - ( + COUNT ( * ) ) * 71 AS col0, 73 AS col1
----
-71
73

onlyif mysql # aggregate syntax: 
query I rowsort label-7278
SELECT ALL + COUNT( 25 )
----
1

skipif mysql # not compatible
query I rowsort label-7278
SELECT ALL + COUNT ( 25 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7279
SELECT ( + 81 ) * 76 + - 54 - + + COUNT( * ) DIV + - SUM( 19 ) * + + 74 DIV 8 AS col0
----
6102

skipif mysql # not compatible
query I rowsort label-7279
SELECT ( + 81 ) * 76 + - 54 - + + COUNT ( * ) / + - SUM ( 19 ) * + + 74 / 8 AS col0
----
6102

onlyif mysql # DIV for integer division: 
query I rowsort label-7280
SELECT + - 41 DIV - 99 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7280
SELECT + - 41 / - 99 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7281
SELECT + 96 * + - 6 - COUNT( * ) * 67 * 14
----
-1514

skipif mysql # not compatible
query I rowsort label-7281
SELECT + 96 * + - 6 - COUNT ( * ) * 67 * 14
----
-1514

onlyif mysql # DIV for integer division: 
query I rowsort label-7282
SELECT COALESCE ( + 28, - - 22, 91, + - 60 DIV - 8 * 32 ) col0
----
28

skipif mysql # not compatible
query I rowsort label-7282
SELECT COALESCE ( + 28, - - 22, 91, + - 60 / - 8 * 32 ) col0
----
28

query II rowsort
SELECT + ( 34 ), 98 AS col0
----
34
98

query I rowsort
SELECT + 26 + 29 AS col1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-7285
SELECT ALL 50 * - MAX( + + 26 ) * COUNT( * ) + - - 1 AS col2
----
-1299

skipif mysql # not compatible
query I rowsort label-7285
SELECT ALL 50 * - MAX ( + + 26 ) * COUNT ( * ) + - - 1 AS col2
----
-1299

query I rowsort
SELECT DISTINCT 67 * + 80
----
5360

onlyif mysql # DIV for integer division: 
query I rowsort label-7287
SELECT + 8 DIV + 52 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7287
SELECT + 8 / + 52 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7288
SELECT ALL COUNT( * ) + + 79 AS col2
----
80

skipif mysql # not compatible
query I rowsort label-7288
SELECT ALL COUNT ( * ) + + 79 AS col2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-7289
SELECT COUNT( DISTINCT 31 )
----
1

skipif mysql # not compatible
query I rowsort label-7289
SELECT COUNT ( DISTINCT 31 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7290
SELECT + MAX( - - 41 ) + + + 34
----
75

skipif mysql # not compatible
query I rowsort label-7290
SELECT + MAX ( - - 41 ) + + + 34
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7291
SELECT + 55 * + - COUNT( - - 57 ) col0
----
-55

skipif mysql # not compatible
query I rowsort label-7291
SELECT + 55 * + - COUNT ( - - 57 ) col0
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7292
SELECT DISTINCT 1 + - 61 DIV - COUNT( * )
----
62

skipif mysql # not compatible
query I rowsort label-7292
SELECT DISTINCT 1 + - 61 / - COUNT ( * )
----
62

query I rowsort
SELECT ALL 60 + - 48 + - 27
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7294
SELECT ALL 36 + + ( + CAST( NULL AS SIGNED ) ) * + 46 - + + 8 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7294
SELECT ALL 36 + + ( + CAST ( NULL AS INTEGER ) ) * + 46 - + + 8 * COUNT ( * )
----
NULL

query I rowsort
SELECT + NULLIF ( - 33, 19 ) + 76 AS col1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-7296
SELECT DISTINCT CASE - + ( COUNT( * ) ) WHEN 91 * + 14 THEN - - 91 WHEN - + 3 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7296
SELECT DISTINCT CASE - + ( COUNT ( * ) ) WHEN 91 * + 14 THEN - - 91 WHEN - + 3 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7297
SELECT DISTINCT - 99 + - COUNT( * ), + 30 * - 99 AS col0
----
-100
-2970

skipif mysql # not compatible
query II rowsort label-7297
SELECT DISTINCT - 99 + - COUNT ( * ), + 30 * - 99 AS col0
----
-100
-2970

onlyif mysql # aggregate syntax: 
query I rowsort label-7298
SELECT ALL ( COUNT( - 33 ) )
----
1

skipif mysql # not compatible
query I rowsort label-7298
SELECT ALL ( COUNT ( - 33 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7299
SELECT + - 38 + 7 - SUM( ALL - - 87 ) * - ( 74 )
----
6407

skipif mysql # not compatible
query I rowsort label-7299
SELECT + - 38 + 7 - SUM ( ALL - - 87 ) * - ( 74 )
----
6407

onlyif mysql # aggregate syntax: 
query I rowsort label-7300
SELECT ALL + COUNT( * ) + + 20 + - 25 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-7300
SELECT ALL + COUNT ( * ) + + 20 + - 25 AS col2
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7301
SELECT + + 69 * - ( COUNT( * ) ) DIV - + COUNT( + 36 ) + - 32 + - + 44
----
-7

skipif mysql # not compatible
query I rowsort label-7301
SELECT + + 69 * - ( COUNT ( * ) ) / - + COUNT ( + 36 ) + - 32 + - + 44
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-7302
SELECT + 27 DIV + + 33 col2
----
0

skipif mysql # not compatible
query I rowsort label-7302
SELECT + 27 / + + 33 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7303
SELECT - 97 + - - COALESCE ( 6, + COUNT( * ), - + 33 )
----
-91

skipif mysql # not compatible
query I rowsort label-7303
SELECT - 97 + - - COALESCE ( 6, + COUNT ( * ), - + 33 )
----
-91

query I rowsort
SELECT DISTINCT 66 * 10 col2
----
660

query I rowsort
SELECT + - CASE - - 35 WHEN - 71 THEN + + 99 + + 71 END / - - 62
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7306
SELECT - + 11 + + COUNT( * ) * - - 62 + + 30
----
81

skipif mysql # not compatible
query I rowsort label-7306
SELECT - + 11 + + COUNT ( * ) * - - 62 + + 30
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7307
SELECT ALL - COUNT( * ) * - 90 AS col1
----
90

skipif mysql # not compatible
query I rowsort label-7307
SELECT ALL - COUNT ( * ) * - 90 AS col1
----
90

query I rowsort
SELECT ALL 51 * 25 AS col1
----
1275

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7309
SELECT ( + + 52 ) * + + 58 * + 36 + - + COUNT( * ) + + + CASE + 82 WHEN - - 11 THEN NULL WHEN - 26 * - ( + - 58 ) / - 90 + 8 - + + NULLIF ( + - CAST( NULL AS DECIMAL ), - + 82 + + COUNT( * ) * 19 + 87 ) * 16 + + COALESCE ( 22 + ( 53 ), + 54 ) THEN NULL ELSE COUNT( * ) END AS col1
----
108576

skipif mysql # not compatible
query I rowsort label-7309
SELECT ( + + 52 ) * + + 58 * + 36 + - + COUNT ( * ) + + + CASE + 82 WHEN - - 11 THEN NULL WHEN - 26 * - ( + - 58 ) / - 90 + 8 - + + NULLIF ( + - CAST ( NULL AS REAL ), - + 82 + + COUNT ( * ) * 19 + 87 ) * 16 + + COALESCE ( 22 + ( 53 ), + 54 ) THEN NULL ELSE COUNT ( * ) END AS col1
----
108576

onlyif mysql # DIV for integer division: 
query I rowsort label-7310
SELECT ALL - + 74 DIV - 48 col2
----
1

skipif mysql # not compatible
query I rowsort label-7310
SELECT ALL - + 74 / - 48 col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7311
SELECT 51 * 16 * - COUNT( * ) + - 4
----
-820

skipif mysql # not compatible
query I rowsort label-7311
SELECT 51 * 16 * - COUNT ( * ) + - 4
----
-820

onlyif mysql # DIV for integer division: 
query I rowsort label-7312
SELECT ALL + - ( + 15 ) DIV - + 83 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7312
SELECT ALL + - ( + 15 ) / - + 83 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7313
SELECT 43 + + ( + CASE - 12 WHEN - COUNT( - 89 ) THEN 97 WHEN - 41 * COUNT( * ) * NULLIF ( - 48, + 99 ) THEN NULL END ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7313
SELECT 43 + + ( + CASE - 12 WHEN - COUNT ( - 89 ) THEN 97 WHEN - 41 * COUNT ( * ) * NULLIF ( - 48, + 99 ) THEN NULL END ) * COUNT ( * )
----
NULL

query I rowsort
SELECT 30 * + + 51 + 75 * 88 * - 67 + + ( - - 63 ) * 17 AS col0
----
-439599

query I rowsort
SELECT ALL - 48 + - - 71 AS col0
----
23

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7316
SELECT DISTINCT - CAST( NULL AS DECIMAL ), CASE 52 WHEN + ( + 14 ) * + ( - 93 ) * + COUNT( * ) THEN - COUNT( * ) ELSE + + 43 - + COUNT( * ) END AS col2
----
NULL
42

skipif mysql # not compatible
query II rowsort label-7316
SELECT DISTINCT - CAST ( NULL AS REAL ), CASE 52 WHEN + ( + 14 ) * + ( - 93 ) * + COUNT ( * ) THEN - COUNT ( * ) ELSE + + 43 - + COUNT ( * ) END AS col2
----
NULL
42

query I rowsort
SELECT ALL 26 * 55 AS col1
----
1430

query I rowsort
SELECT 54 + + - 29
----
25

query I rowsort
SELECT DISTINCT 61 + - 91 + - + 66 AS col0
----
-96

query I rowsort
SELECT 67 * + - 32
----
-2144

query I rowsort
SELECT 44 * - + 70 AS col1
----
-3080

onlyif mysql # aggregate syntax: 
query I rowsort label-7322
SELECT MAX( 96 ) * - 59 AS col1
----
-5664

skipif mysql # not compatible
query I rowsort label-7322
SELECT MAX ( 96 ) * - 59 AS col1
----
-5664

query I rowsort
SELECT ALL 60 + 16
----
76

query I rowsort
SELECT ALL 19 + - 92 col0
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-7325
SELECT ALL 95 + + - 79 * + - 42 + - COUNT( * ) AS col1
----
3412

skipif mysql # not compatible
query I rowsort label-7325
SELECT ALL 95 + + - 79 * + - 42 + - COUNT ( * ) AS col1
----
3412

onlyif mysql # DIV for integer division: 
query I rowsort label-7326
SELECT ALL + 13 DIV - 57
----
0

skipif mysql # not compatible
query I rowsort label-7326
SELECT ALL + 13 / - 57
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7327
SELECT ALL COUNT( * ) * + 47 * 24
----
1128

skipif mysql # not compatible
query I rowsort label-7327
SELECT ALL COUNT ( * ) * + 47 * 24
----
1128

query I rowsort
SELECT ALL + 4 + - - 74 AS col0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-7329
SELECT ALL 89 * - 99 * + ( SUM( ALL - 29 ) )
----
255519

skipif mysql # not compatible
query I rowsort label-7329
SELECT ALL 89 * - 99 * + ( SUM ( ALL - 29 ) )
----
255519

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7330
SELECT ALL 6 - 71 - - NULLIF ( + + 50, + + 68 + CAST( + COUNT( * ) AS SIGNED ) * + - 28 ) * - - MIN( + + 14 ) col1, COUNT( * ) * 55 col1
----
635
55

skipif mysql # not compatible
query II rowsort label-7330
SELECT ALL 6 - 71 - - NULLIF ( + + 50, + + 68 + CAST ( + COUNT ( * ) AS INTEGER ) * + - 28 ) * - - MIN ( + + 14 ) col1, COUNT ( * ) * 55 col1
----
635
55

query I rowsort
SELECT 72 * + + 27 AS col1
----
1944

query I rowsort
SELECT DISTINCT + COALESCE ( + 95, + 63, + 21 )
----
95

query I rowsort
SELECT ALL 55 * + 25 * 26 AS col2
----
35750

onlyif mysql # aggregate syntax: 
query II rowsort label-7334
SELECT + COUNT( * ) AS col1, 0 AS col1
----
1
0

skipif mysql # not compatible
query II rowsort label-7334
SELECT + COUNT ( * ) AS col1, 0 AS col1
----
1
0

query I rowsort
SELECT - 99 - + 23 AS col1
----
-122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7336
SELECT COUNT( ALL CASE - + CAST( - - 88 AS SIGNED ) WHEN + CAST( + + 46 AS SIGNED ) * - 45 + + 59 + - + 0 + NULLIF ( 94, - - 94 ) * - CASE - - 12 WHEN - + 73 THEN + 39 + + + 88 WHEN + + 83 * + 6 THEN - CAST( NULL AS SIGNED ) WHEN - 14 + 10 * 92 THEN NULL END + + 35 * - 45 THEN + 85 + 34 / 99 ELSE NULL END ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7336
SELECT COUNT ( ALL CASE - + CAST ( - - 88 AS INTEGER ) WHEN + CAST ( + + 46 AS INTEGER ) * - 45 + + 59 + - + 0 + NULLIF ( 94, - - 94 ) * - CASE - - 12 WHEN - + 73 THEN + 39 + + + 88 WHEN + + 83 * + 6 THEN - CAST ( NULL AS INTEGER ) WHEN - 14 + 10 * 92 THEN NULL END + + 35 * - 45 THEN + 85 + 34 / 99 ELSE NULL END ) AS col1
----
0

query I rowsort
SELECT 50 - + 72
----
-22

query I rowsort
SELECT + 52 * + - COALESCE ( + 43, - 97 ) + - - 35 AS col1
----
-2201

query I rowsort
SELECT ALL - 52 * - 94 col2
----
4888

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7340
SELECT CAST( + + 24 AS SIGNED )
----
24

skipif mysql # not compatible
query I rowsort label-7340
SELECT CAST ( + + 24 AS INTEGER )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-7341
SELECT ALL + ( - SUM( ALL 65 ) ) AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-7341
SELECT ALL + ( - SUM ( ALL 65 ) ) AS col1
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7342
SELECT ALL - CAST( - 77 AS SIGNED ) col0
----
77

skipif mysql # not compatible
query I rowsort label-7342
SELECT ALL - CAST ( - 77 AS INTEGER ) col0
----
77

query II rowsort
SELECT ALL - 97 * - 45 + + 50, 15 col1
----
4415
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7344
SELECT DISTINCT + MAX( ALL - COALESCE ( + ( 15 ), - 32 * + - COALESCE ( + - 69, 97 + + - 17 ), 10 ) ) DIV - - 44 + - 53 * 50 * + + 58 AS col1
----
-153700

skipif mysql # not compatible
query I rowsort label-7344
SELECT DISTINCT + MAX ( ALL - COALESCE ( + ( 15 ), - 32 * + - COALESCE ( + - 69, 97 + + - 17 ), 10 ) ) / - - 44 + - 53 * 50 * + + 58 AS col1
----
-153700

query I rowsort
SELECT - 41 + - 49
----
-90

query I rowsort
SELECT ALL 85 * - 4
----
-340

onlyif mysql # aggregate syntax: 
query I rowsort label-7347
SELECT MIN( 17 ) + + COUNT( * )
----
18

skipif mysql # not compatible
query I rowsort label-7347
SELECT MIN ( 17 ) + + COUNT ( * )
----
18

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7348
SELECT + + NULLIF ( - ( + COUNT( * ) ), - CAST( + 22 AS DECIMAL ) - + 50 - + AVG ( DISTINCT + 41 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-7348
SELECT + + NULLIF ( - ( + COUNT ( * ) ), - CAST ( + 22 AS REAL ) - + 50 - + AVG ( DISTINCT + 41 ) )
----
-1

query I rowsort
SELECT 56 * + 35 * + + 29 * + 53 + 32 AS col1
----
3012552

onlyif mysql # DIV for integer division: 
query I rowsort label-7350
SELECT ALL + 75 + - + 58 DIV - 72 + - + 83 * 82 AS col2
----
-6731

skipif mysql # not compatible
query I rowsort label-7350
SELECT ALL + 75 + - + 58 / - 72 + - + 83 * 82 AS col2
----
-6731

query I rowsort
SELECT ALL - NULLIF ( + 79, - 24 ) AS col1
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-7352
SELECT ALL - 52 + + - 32 * + COUNT( * ) AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-7352
SELECT ALL - 52 + + - 32 * + COUNT ( * ) AS col2
----
-84

query I rowsort
SELECT 57 + + - 83 AS col1
----
-26

query I rowsort
SELECT ALL 97 + + + 43 + + 45 + 30 * + 32 AS col0
----
1145

query I rowsort
SELECT 67 + - 53 * - 45
----
2452

query I rowsort
SELECT ALL + 16 + + 14 AS col0
----
30

query I rowsort
SELECT - ( - - 87 ) * 13 + - + 71 AS col2
----
-1202

onlyif mysql # aggregate syntax: 
query I rowsort label-7358
SELECT COUNT( * ) + - COUNT( 96 )
----
0

skipif mysql # not compatible
query I rowsort label-7358
SELECT COUNT ( * ) + - COUNT ( 96 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7359
SELECT + 35 AS col1, 9 - - 15 - + 8 * - 24 * 33 * + 40 + - MIN( ALL - 9 ) AS col0
----
35
253473

skipif mysql # not compatible
query II rowsort label-7359
SELECT + 35 AS col1, 9 - - 15 - + 8 * - 24 * 33 * + 40 + - MIN ( ALL - 9 ) AS col0
----
35
253473

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7360
SELECT DISTINCT + 89 DIV CAST( 99 AS SIGNED ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7360
SELECT DISTINCT + 89 / CAST ( 99 AS INTEGER ) AS col2
----
0

query I rowsort
SELECT 57 + 53 AS col1
----
110

onlyif mysql # aggregate syntax: 
query II rowsort label-7362
SELECT + 50 * SUM( 28 ) * - - 73 * - 42 + - COUNT( * ), + 2 AS col2
----
-4292401
2

skipif mysql # not compatible
query II rowsort label-7362
SELECT + 50 * SUM ( 28 ) * - - 73 * - 42 + - COUNT ( * ), + 2 AS col2
----
-4292401
2

query II rowsort
SELECT 8 AS col1, - 15 AS col0
----
8
-15

query II rowsort
SELECT + 92 AS col2, - 82 col1
----
92
-82

query I rowsort
SELECT ALL - 17 + - - 50
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-7366
SELECT ALL COUNT( * ) AS col0, - ( COUNT( * ) )
----
1
-1

skipif mysql # not compatible
query II rowsort label-7366
SELECT ALL COUNT ( * ) AS col0, - ( COUNT ( * ) )
----
1
-1

query I rowsort
SELECT ALL + 18 - - 91
----
109

query II rowsort
SELECT DISTINCT 59 AS col1, 35 + + + 85 AS col1
----
59
120

query II rowsort
SELECT - 11 AS col0, 3
----
-11
3

query I rowsort
SELECT 79 + - 10 - + 73 * - + 20 + 37 * + 88
----
4785

onlyif mysql # DIV for integer division: 
query I rowsort label-7371
SELECT 82 DIV 11
----
7

skipif mysql # not compatible
query I rowsort label-7371
SELECT 82 / 11
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7372
SELECT COUNT( * ) * - 22 AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-7372
SELECT COUNT ( * ) * - 22 AS col1
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-7373
SELECT ALL MIN( DISTINCT 49 ) col0
----
49

skipif mysql # not compatible
query I rowsort label-7373
SELECT ALL MIN ( DISTINCT 49 ) col0
----
49

query I rowsort
SELECT NULLIF ( - 11, + 15 ) + - 71 + + 14
----
-68

query I rowsort
SELECT ( - 52 ) * 29 AS col0
----
-1508

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7376
SELECT ALL CAST( + + 9 AS SIGNED ), CASE - + MIN( 45 ) WHEN + 74 * + 44 * - - 99 + - 91 + - 39 * + 47 / - + COUNT( - + 3 ) THEN - - 68 WHEN + 64 / COUNT( * ) * - + 77 + - 37 + - + 72 + + 94 * 50 + + COUNT( * ) / + 27 THEN NULL END AS col2
----
9
NULL

skipif mysql # not compatible
query II rowsort label-7376
SELECT ALL CAST ( + + 9 AS INTEGER ), CASE - + MIN ( 45 ) WHEN + 74 * + 44 * - - 99 + - 91 + - 39 * + 47 / - + COUNT ( - + 3 ) THEN - - 68 WHEN + 64 / COUNT ( * ) * - + 77 + - 37 + - + 72 + + 94 * 50 + + COUNT ( * ) / + 27 THEN NULL END AS col2
----
9
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7377
SELECT - - COUNT( * ) * - 37 col0
----
-37

skipif mysql # not compatible
query I rowsort label-7377
SELECT - - COUNT ( * ) * - 37 col0
----
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-7378
SELECT ALL + 67 AS col0, 77 * MIN( + CASE 73 WHEN + 32 THEN - ( - 5 ) WHEN 8 THEN NULL END ) * MIN( 40 )
----
67
NULL

skipif mysql # not compatible
query II rowsort label-7378
SELECT ALL + 67 AS col0, 77 * MIN ( + CASE 73 WHEN + 32 THEN - ( - 5 ) WHEN 8 THEN NULL END ) * MIN ( 40 )
----
67
NULL

query I rowsort
SELECT + 59 + + 49
----
108

onlyif mysql # DIV for integer division: 
query I rowsort label-7380
SELECT ALL + + 40 DIV + 82 - - 6 AS col2
----
6

skipif mysql # not compatible
query I rowsort label-7380
SELECT ALL + + 40 / + 82 - - 6 AS col2
----
6

query I rowsort
SELECT + 72 + - 31
----
41

query II rowsort
SELECT DISTINCT 37, - 69 - 28 AS col1
----
37
-97

query I rowsort
SELECT DISTINCT + 98 * - 21 AS col0
----
-2058

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7384
SELECT - - CASE + - CASE 89 WHEN 90 / + + 83 * 14 THEN + + 77 * + 73 / - + 48 * 90 ELSE NULL END WHEN - - 42 THEN - + 1 + - CAST( - + 82 AS SIGNED ) + - ( + - 31 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7384
SELECT - - CASE + - CASE 89 WHEN 90 / + + 83 * 14 THEN + + 77 * + 73 / - + 48 * 90 ELSE NULL END WHEN - - 42 THEN - + 1 + - CAST ( - + 82 AS INTEGER ) + - ( + - 31 ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7385
SELECT + + COUNT( * ) + + NULLIF ( - - NULLIF ( + 53, - - SUM( - + 12 ) - 6 ), 11 * - - 58 ) AS col2
----
54

skipif mysql # not compatible
query I rowsort label-7385
SELECT + + COUNT ( * ) + + NULLIF ( - - NULLIF ( + 53, - - SUM ( - + 12 ) - 6 ), 11 * - - 58 ) AS col2
----
54

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query III rowsort label-7386
SELECT - 9, 66 AS col2, + 5 DIV + + 14 - 11 * CAST( + + 51 AS SIGNED ) AS col1
----
-9
66
-561

skipif mysql # not compatible
query III rowsort label-7386
SELECT - 9, 66 AS col2, + 5 / + + 14 - 11 * CAST ( + + 51 AS INTEGER ) AS col1
----
-9
66
-561

query II rowsort
SELECT ALL 21 AS col1, + 61
----
21
61

onlyif mysql # DIV for integer division: 
query II rowsort label-7388
SELECT - - 59 DIV 67 * + 1 * 18 col1, - 62 + 68 AS col2
----
0
6

skipif mysql # not compatible
query II rowsort label-7388
SELECT - - 59 / 67 * + 1 * 18 col1, - 62 + 68 AS col2
----
0
6

query I rowsort
SELECT ALL - COALESCE ( - 36, - 61 )
----
36

query II rowsort
SELECT DISTINCT + + 96, 19 AS col0
----
96
19

onlyif mysql # aggregate syntax: 
query I rowsort label-7391
SELECT + 88 * MIN( DISTINCT - + 17 )
----
-1496

skipif mysql # not compatible
query I rowsort label-7391
SELECT + 88 * MIN ( DISTINCT - + 17 )
----
-1496

onlyif mysql # aggregate syntax: 
query I rowsort label-7392
SELECT CASE COUNT( * ) WHEN - COUNT( * ) * COUNT( - + 67 ) THEN NULL WHEN 68 * 20 + + 17 THEN NULL ELSE - 60 - 57 END AS col1
----
-117

skipif mysql # not compatible
query I rowsort label-7392
SELECT CASE COUNT ( * ) WHEN - COUNT ( * ) * COUNT ( - + 67 ) THEN NULL WHEN 68 * 20 + + 17 THEN NULL ELSE - 60 - 57 END AS col1
----
-117

query I rowsort
SELECT ALL 46 * - NULLIF ( + - 12, + 84 + + + 91 ) * + + 88 + - 17 + - 32 + 12 * + ( - 93 )
----
47411

onlyif mysql # aggregate syntax: 
query I rowsort label-7394
SELECT + COALESCE ( + MAX( DISTINCT + + 73 ), 39 - - 16 ) AS col0
----
73

skipif mysql # not compatible
query I rowsort label-7394
SELECT + COALESCE ( + MAX ( DISTINCT + + 73 ), 39 - - 16 ) AS col0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-7395
SELECT + COALESCE ( + COUNT( + - 34 ), 23 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7395
SELECT + COALESCE ( + COUNT ( + - 34 ), 23 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7396
SELECT NULLIF ( - COUNT( * ), + - COUNT( * ) ), - 77 * + ( - CASE AVG ( DISTINCT + CAST( ( - - 16 ) AS SIGNED ) ) WHEN - ( - COUNT( * ) ) THEN + 46 WHEN - - 87 / 49 / + + 24 - - 5 * 97 - + ( + 47 ) THEN NULL WHEN + COALESCE ( CAST( NULL AS SIGNED ), + 46 + + 57, 28 ) THEN NULL END )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7396
SELECT NULLIF ( - COUNT ( * ), + - COUNT ( * ) ), - 77 * + ( - CASE AVG ( DISTINCT + CAST ( ( - - 16 ) AS INTEGER ) ) WHEN - ( - COUNT ( * ) ) THEN + 46 WHEN - - 87 / 49 / + + 24 - - 5 * 97 - + ( + 47 ) THEN NULL WHEN + COALESCE ( CAST ( NULL AS INTEGER ), + 46 + + 57, 28 ) THEN NULL END )
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7397
SELECT ALL 95 * + + 58 * - + 82 - - 74 * + MAX( DISTINCT - 34 )
----
-454336

skipif mysql # not compatible
query I rowsort label-7397
SELECT ALL 95 * + + 58 * - + 82 - - 74 * + MAX ( DISTINCT - 34 )
----
-454336

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7398
SELECT + ( + COALESCE ( - 63, - ( + CAST( - 8 AS SIGNED ) ) ) ) * - SUM( DISTINCT 46 ) col1
----
2898

skipif mysql # not compatible
query I rowsort label-7398
SELECT + ( + COALESCE ( - 63, - ( + CAST ( - 8 AS INTEGER ) ) ) ) * - SUM ( DISTINCT 46 ) col1
----
2898

onlyif mysql # aggregate syntax: 
query I rowsort label-7399
SELECT + COUNT( * ) + COALESCE ( - + 35, 77 * + 45 ) * - 91 * COUNT( * ) AS col2
----
3186

skipif mysql # not compatible
query I rowsort label-7399
SELECT + COUNT ( * ) + COALESCE ( - + 35, 77 * + 45 ) * - 91 * COUNT ( * ) AS col2
----
3186

query I rowsort
SELECT DISTINCT - 79 * + + 14 - - ( + NULLIF ( 13, 81 * + + 61 ) ) + - - 4
----
-1089

query I rowsort
SELECT - 95 * 43
----
-4085

query I rowsort
SELECT + 42 + + 21 - CASE 64 WHEN + 84 THEN 80 WHEN + - 26 * + 55 THEN NULL END
----
NULL

query I rowsort
SELECT + 59 * + 90
----
5310

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7404
SELECT DISTINCT - COUNT( * ) DIV 25 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7404
SELECT DISTINCT - COUNT ( * ) / 25 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7405
SELECT DISTINCT + MAX( DISTINCT - 65 ) * 20
----
-1300

skipif mysql # not compatible
query I rowsort label-7405
SELECT DISTINCT + MAX ( DISTINCT - 65 ) * 20
----
-1300

onlyif mysql # aggregate syntax: 
query I rowsort label-7406
SELECT DISTINCT + CASE - + 34 WHEN 13 THEN NULL ELSE - 60 * + COUNT( * ) * + 56 END AS col2
----
-3360

skipif mysql # not compatible
query I rowsort label-7406
SELECT DISTINCT + CASE - + 34 WHEN 13 THEN NULL ELSE - 60 * + COUNT ( * ) * + 56 END AS col2
----
-3360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7407
SELECT - COUNT( * ) - 38 + CAST( NULL AS SIGNED ) - - 88 * ( ( - - NULLIF ( ( 48 ), - 0 * ( - 54 ) * - 15 * - 66 * COUNT( * ) - - - 6 + + - 44 * 33 ) ) ) * + 94 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7407
SELECT - COUNT ( * ) - 38 + CAST ( NULL AS INTEGER ) - - 88 * ( ( - - NULLIF ( ( 48 ), - 0 * ( - 54 ) * - 15 * - 66 * COUNT ( * ) - - - 6 + + - 44 * 33 ) ) ) * + 94 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7408
SELECT ALL + 30 * - - CAST( + - SUM( + 95 ) AS SIGNED ) AS col0
----
-2850

skipif mysql # not compatible
query I rowsort label-7408
SELECT ALL + 30 * - - CAST ( + - SUM ( + 95 ) AS INTEGER ) AS col0
----
-2850

onlyif mysql # aggregate syntax: 
query I rowsort label-7409
SELECT - - COUNT( * ) * + 64 * + COUNT( * ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-7409
SELECT - - COUNT ( * ) * + 64 * + COUNT ( * ) AS col1
----
64

query II rowsort
SELECT ALL + 69 + + 33 + - 21 AS col1, 67 AS col2
----
81
67

onlyif mysql # aggregate syntax: 
query I rowsort label-7411
SELECT - - 63 * + 91 + CASE 47 WHEN - COUNT( * ) / - COUNT( * ) + + 0 * + - 15 THEN - 88 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7411
SELECT - - 63 * + 91 + CASE 47 WHEN - COUNT ( * ) / - COUNT ( * ) + + 0 * + - 15 THEN - 88 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7412
SELECT ALL - ( + 73 ) + - + 68 + - + COUNT( * )
----
-142

skipif mysql # not compatible
query I rowsort label-7412
SELECT ALL - ( + 73 ) + - + 68 + - + COUNT ( * )
----
-142

onlyif mysql # aggregate syntax: 
query I rowsort label-7413
SELECT - - 14 / + 52 * - CASE - - 12 WHEN + - COUNT( * ) * - 83 + + NULLIF ( - NULLIF ( + COUNT( * ), - + COALESCE ( + NULLIF ( + 85, 54 + 40 ), + - 15 ) ), - MIN( + 26 ) * - - 75 / - 56 ) + 47 + + 70 THEN 88 WHEN 87 THEN NULL WHEN COUNT( * ) + + COUNT( * ) THEN + 64 * 93 + 62 END + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7413
SELECT - - 14 / + 52 * - CASE - - 12 WHEN + - COUNT ( * ) * - 83 + + NULLIF ( - NULLIF ( + COUNT ( * ), - + COALESCE ( + NULLIF ( + 85, 54 + 40 ), + - 15 ) ), - MIN ( + 26 ) * - - 75 / - 56 ) + 47 + + 70 THEN 88 WHEN 87 THEN NULL WHEN COUNT ( * ) + + COUNT ( * ) THEN + 64 * 93 + 62 END + COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7414
SELECT DISTINCT + ( 44 ) DIV 35 col2
----
1

skipif mysql # not compatible
query I rowsort label-7414
SELECT DISTINCT + ( 44 ) / 35 col2
----
1

query I rowsort
SELECT ALL 89 + - 6 + - 24 AS col1
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-7416
SELECT ALL + 17 + - 38, SUM( 71 ) AS col2
----
-21
71

skipif mysql # not compatible
query II rowsort label-7416
SELECT ALL + 17 + - 38, SUM ( 71 ) AS col2
----
-21
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7417
SELECT ALL 3 * - 20 DIV MIN( + 51 ) * - CAST( + 0 AS SIGNED ) + - 38 col2
----
-38

skipif mysql # not compatible
query I rowsort label-7417
SELECT ALL 3 * - 20 / MIN ( + 51 ) * - CAST ( + 0 AS INTEGER ) + - 38 col2
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-7418
SELECT - CASE - 23 WHEN - - 74 + + 57 + - MAX( - 31 ) THEN + 8 END / + - COUNT( * ) + + - 97 * COUNT( + 29 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7418
SELECT - CASE - 23 WHEN - - 74 + + 57 + - MAX ( - 31 ) THEN + 8 END / + - COUNT ( * ) + + - 97 * COUNT ( + 29 ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7419
SELECT ALL + 37 * - 1 / - 22 * + - 73 * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7419
SELECT ALL + 37 * - 1 / - 22 * + - 73 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 26 * - + 34 * + 28
----
24752

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7421
SELECT CAST( + ( - 49 ) AS SIGNED ), + 91 + - - COUNT( DISTINCT - - 34 ) AS col2
----
-49
92

skipif mysql # not compatible
query II rowsort label-7421
SELECT CAST ( + ( - 49 ) AS INTEGER ), + 91 + - - COUNT ( DISTINCT - - 34 ) AS col2
----
-49
92

query I rowsort
SELECT DISTINCT + ( + 24 ) AS col0
----
24

query I rowsort
SELECT ALL - 89 * + - 94
----
8366

onlyif mysql # aggregate syntax: 
query II rowsort label-7424
SELECT + MIN( - 79 ) * COALESCE ( 49, - 70 ) + 40, - 98 col1
----
-3831
-98

skipif mysql # not compatible
query II rowsort label-7424
SELECT + MIN ( - 79 ) * COALESCE ( 49, - 70 ) + 40, - 98 col1
----
-3831
-98

query II rowsort
SELECT + ( + 81 ) * + 23, + 99 AS col0
----
1863
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7426
SELECT ALL 17 DIV + COALESCE ( - CAST( - 57 AS SIGNED ), + CASE + COUNT( * ) WHEN - - 22 DIV - 38 + + 74 THEN 47 + - - 51 ELSE 52 * - 96 + - + 65 * + + 54 + - + 66 * - 1 END + + + 26 ) - 80 + 18 - - + MIN( ALL + NULLIF ( 24, 9 ) ) + 14 * + ( 87 ) AS col1
----
1180

skipif mysql # not compatible
query I rowsort label-7426
SELECT ALL 17 / + COALESCE ( - CAST ( - 57 AS INTEGER ), + CASE + COUNT ( * ) WHEN - - 22 / - 38 + + 74 THEN 47 + - - 51 ELSE 52 * - 96 + - + 65 * + + 54 + - + 66 * - 1 END + + + 26 ) - 80 + 18 - - + MIN ( ALL + NULLIF ( 24, 9 ) ) + 14 * + ( 87 ) AS col1
----
1180

query I rowsort
SELECT 26 * + 22 + + ( + - 10 ) col2
----
562

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7428
SELECT 17 * NULLIF ( + CAST( - - 34 AS SIGNED ), 48 ) + + 85
----
663

skipif mysql # not compatible
query I rowsort label-7428
SELECT 17 * NULLIF ( + CAST ( - - 34 AS INTEGER ), 48 ) + + 85
----
663

query I rowsort
SELECT + ( + 56 ) AS col2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-7430
SELECT + COUNT( - NULLIF ( - 79, - + 52 ) ) + 11
----
12

skipif mysql # not compatible
query I rowsort label-7430
SELECT + COUNT ( - NULLIF ( - 79, - + 52 ) ) + 11
----
12

query II rowsort
SELECT ALL + 34, 88 * - 95 + + 90 AS col1
----
34
-8270

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7432
SELECT - CAST( - + 11 AS SIGNED ) * - + CAST( NULL AS SIGNED ) + - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7432
SELECT - CAST ( - + 11 AS INTEGER ) * - + CAST ( NULL AS INTEGER ) + - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7433
SELECT ALL + 43 AS col0, - COUNT( * ) * - 81 + + 68 * - + 13 * - + 2 + + 99 AS col0
----
43
1948

skipif mysql # not compatible
query II rowsort label-7433
SELECT ALL + 43 AS col0, - COUNT ( * ) * - 81 + + 68 * - + 13 * - + 2 + + 99 AS col0
----
43
1948

onlyif mysql # aggregate syntax: 
query I rowsort label-7434
SELECT + COALESCE ( + 92, + MIN( ALL 53 ) ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-7434
SELECT + COALESCE ( + 92, + MIN ( ALL 53 ) ) AS col2
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7435
SELECT ( + NULLIF ( CAST( NULL AS SIGNED ), - ( - SUM( - - 27 ) ) + 29 * + 83 - CAST( 48 AS SIGNED ) / - NULLIF ( + 59, + 75 ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7435
SELECT ( + NULLIF ( CAST ( NULL AS INTEGER ), - ( - SUM ( - - 27 ) ) + 29 * + 83 - CAST ( 48 AS INTEGER ) / - NULLIF ( + 59, + 75 ) ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7436
SELECT - 97 * + - 90 + COUNT( * ) + + 30 AS col1
----
8761

skipif mysql # not compatible
query I rowsort label-7436
SELECT - 97 * + - 90 + COUNT ( * ) + + 30 AS col1
----
8761

query II rowsort
SELECT ( - + ( - 83 ) ) AS col0, + 96 * - - 57 + + 29 AS col1
----
83
5501

query I rowsort
SELECT - 24 + 29 AS col2
----
5

query I rowsort
SELECT + 36 * 47 col2
----
1692

query I rowsort
SELECT - 42 * - 40
----
1680

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7441
SELECT + CAST( - + 71 AS SIGNED ) AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-7441
SELECT + CAST ( - + 71 AS INTEGER ) AS col0
----
-71

query I rowsort
SELECT 70 * - - 40 + - ( - 49 ) * 3 + - 73 AS col1
----
2874

query II rowsort
SELECT ALL - CASE + + ( + 69 ) WHEN - 91 THEN + 36 END * - + 92, CASE - - 17 WHEN - + 37 THEN 59 / - 53 - + 1 WHEN - 23 THEN NULL WHEN 5 THEN NULL END
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7444
SELECT + COUNT( * ) * - 19 * + + 15 AS col1
----
-285

skipif mysql # not compatible
query I rowsort label-7444
SELECT + COUNT ( * ) * - 19 * + + 15 AS col1
----
-285

onlyif mysql # aggregate syntax: 
query I rowsort label-7445
SELECT MAX( DISTINCT 14 ) + + 53 * 15 - - 95 + + 47 AS col1
----
951

skipif mysql # not compatible
query I rowsort label-7445
SELECT MAX ( DISTINCT 14 ) + + 53 * 15 - - 95 + + 47 AS col1
----
951

query I rowsort
SELECT 81 + - - 68 * + 4
----
353

onlyif mysql # aggregate syntax: 
query I rowsort label-7447
SELECT SUM( - + 77 )
----
-77

skipif mysql # not compatible
query I rowsort label-7447
SELECT SUM ( - + 77 )
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7448
SELECT - 94 + - COUNT( * ) + + - COUNT( * ) * + + NULLIF ( 9, - COUNT( * ) + 11 * - 56 ) + CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) + 55 * - - COUNT( - 10 ) - + 41 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7448
SELECT - 94 + - COUNT ( * ) + + - COUNT ( * ) * + + NULLIF ( 9, - COUNT ( * ) + 11 * - 56 ) + CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) + 55 * - - COUNT ( - 10 ) - + 41 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7449
SELECT 71 - + + MIN( - 98 ) * - 2 * 50
----
-9729

skipif mysql # not compatible
query I rowsort label-7449
SELECT 71 - + + MIN ( - 98 ) * - 2 * 50
----
-9729

onlyif mysql # aggregate syntax: 
query I rowsort label-7450
SELECT DISTINCT 33 + + ( - COUNT( ALL + 79 ) ) AS col1
----
32

skipif mysql # not compatible
query I rowsort label-7450
SELECT DISTINCT 33 + + ( - COUNT ( ALL + 79 ) ) AS col1
----
32

query I rowsort
SELECT 74 + - - 37
----
111

query I rowsort
SELECT ALL - + 73 * - - 97 * - 97 AS col1
----
686857

query I rowsort
SELECT ALL 91 + - 5 AS col1
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7454
SELECT DISTINCT 95 + 30 DIV 43 DIV - 38 * 16 + + CAST( + MIN( - CASE ( + 84 ) WHEN 75 THEN NULL ELSE 78 END ) AS SIGNED ) + 22
----
39

skipif mysql # not compatible
query I rowsort label-7454
SELECT DISTINCT 95 + 30 / 43 / - 38 * 16 + + CAST ( + MIN ( - CASE ( + 84 ) WHEN 75 THEN NULL ELSE 78 END ) AS INTEGER ) + 22
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7455
SELECT ALL + + SUM( DISTINCT COALESCE ( 61, + 5 * + + 34 * - + 81 + + 5 - 42 * + 79 ) ) + - 12 * + CASE + ( CAST( + + 4 AS SIGNED ) ) WHEN + CASE + 27 WHEN - 95 THEN NULL ELSE - 48 END THEN + - 65 WHEN + 39 + ( + 86 ) THEN NULL WHEN - 35 - + 65 THEN 23 DIV - 80 ELSE + 18 DIV 38 END
----
61

skipif mysql # not compatible
query I rowsort label-7455
SELECT ALL + + SUM ( DISTINCT COALESCE ( 61, + 5 * + + 34 * - + 81 + + 5 - 42 * + 79 ) ) + - 12 * + CASE + ( CAST ( + + 4 AS INTEGER ) ) WHEN + CASE + 27 WHEN - 95 THEN NULL ELSE - 48 END THEN + - 65 WHEN + 39 + ( + 86 ) THEN NULL WHEN - 35 - + 65 THEN 23 / - 80 ELSE + 18 / 38 END
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7456
SELECT + CAST( NULL AS SIGNED ) + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7456
SELECT + CAST ( NULL AS INTEGER ) + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7457
SELECT ALL + 46 + - + COUNT( * )
----
45

skipif mysql # not compatible
query I rowsort label-7457
SELECT ALL + 46 + - + COUNT ( * )
----
45

query II rowsort
SELECT ALL + 56, + 8 * - 28 AS col1
----
56
-224

query I rowsort
SELECT ALL + NULLIF ( - 63, + 71 )
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-7460
SELECT + ( 28 ) + + + COUNT( * ) + + + 13 * 26
----
367

skipif mysql # not compatible
query I rowsort label-7460
SELECT + ( 28 ) + + + COUNT ( * ) + + + 13 * 26
----
367

onlyif mysql # aggregate syntax: 
query I rowsort label-7461
SELECT ALL - - MIN( ALL + 1 ) + + + 11 AS col1
----
12

skipif mysql # not compatible
query I rowsort label-7461
SELECT ALL - - MIN ( ALL + 1 ) + + + 11 AS col1
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7462
SELECT - 10 * + - ( 29 ) + COALESCE ( + 61, - - 59 * + - 18 + + 33, + - CASE 42 WHEN - - 51 + 87 THEN 55 * 82 ELSE NULL END, - 83 * - CAST( + - ( + 24 ) AS SIGNED ) ) * - 17
----
-747

skipif mysql # not compatible
query I rowsort label-7462
SELECT - 10 * + - ( 29 ) + COALESCE ( + 61, - - 59 * + - 18 + + 33, + - CASE 42 WHEN - - 51 + 87 THEN 55 * 82 ELSE NULL END, - 83 * - CAST ( + - ( + 24 ) AS INTEGER ) ) * - 17
----
-747

query I rowsort
SELECT 20 * + - 55
----
-1100

onlyif mysql # aggregate syntax: 
query I rowsort label-7464
SELECT DISTINCT - + COUNT( * ) - 27 AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-7464
SELECT DISTINCT - + COUNT ( * ) - 27 AS col2
----
-28

query I rowsort
SELECT 92 + - 57 AS col0
----
35

query I rowsort
SELECT ALL - 85 - + COALESCE ( - ( - 91 ), - 22 ) AS col0
----
-176

query I rowsort
SELECT 63 * - - 52 * + 59 AS col1
----
193284

query I rowsort
SELECT DISTINCT - 3 - - - 86
----
-89

query I rowsort
SELECT DISTINCT 31 * CASE 65 WHEN 98 + 67 + - ( + 68 ) THEN NULL ELSE + - 12 END AS col0
----
-372

query I rowsort
SELECT DISTINCT 49 * 33
----
1617

onlyif mysql # DIV for integer division: 
query II rowsort label-7471
SELECT 1 * + 22, - 42 DIV + 45 * - + 19 + - 52 AS col0
----
22
-52

skipif mysql # not compatible
query II rowsort label-7471
SELECT 1 * + 22, - 42 / + 45 * - + 19 + - 52 AS col0
----
22
-52

query I rowsort
SELECT ALL - 59 * - 89 AS col0
----
5251

query I rowsort
SELECT 72 - 63 + + 41
----
50

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7474
SELECT 8 DIV + CAST( + 96 AS SIGNED ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7474
SELECT 8 / + CAST ( + 96 AS INTEGER ) AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7475
SELECT 91 * 48 * + - CAST( + ( 5 ) AS SIGNED ) * - 76 AS col2
----
1659840

skipif mysql # not compatible
query I rowsort label-7475
SELECT 91 * 48 * + - CAST ( + ( 5 ) AS INTEGER ) * - 76 AS col2
----
1659840

query I rowsort
SELECT ALL - 96 * - 2 * + + 40 AS col2
----
7680

query I rowsort
SELECT ALL - ( - ( 93 ) ) AS col1
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7478
SELECT DISTINCT 51 + - - 70 * SUM( DISTINCT CAST( - - 89 AS SIGNED ) )
----
6281

skipif mysql # not compatible
query I rowsort label-7478
SELECT DISTINCT 51 + - - 70 * SUM ( DISTINCT CAST ( - - 89 AS INTEGER ) )
----
6281

onlyif mysql # aggregate syntax: 
query II rowsort label-7479
SELECT ALL - ( + 82 ) AS col0, + COUNT( * ) AS col1
----
-82
1

skipif mysql # not compatible
query II rowsort label-7479
SELECT ALL - ( + 82 ) AS col0, + COUNT ( * ) AS col1
----
-82
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7480
SELECT ALL 95 + COUNT( * ), 28 + - 72 * + 2 AS col2
----
96
-116

skipif mysql # not compatible
query II rowsort label-7480
SELECT ALL 95 + COUNT ( * ), 28 + - 72 * + 2 AS col2
----
96
-116

onlyif mysql # aggregate syntax: 
query I rowsort label-7481
SELECT ALL - 44 + - 30 + - CASE - 39 WHEN + - 44 THEN NULL WHEN + ( - 63 ) THEN - - 61 - + COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7481
SELECT ALL - 44 + - 30 + - CASE - 39 WHEN + - 44 THEN NULL WHEN + ( - 63 ) THEN - - 61 - + COUNT ( * ) END AS col2
----
NULL

query I rowsort
SELECT - 69 + + 34 AS col2
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7483
SELECT DISTINCT + 69 + - 93 * - 14 * - 25 / - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7483
SELECT DISTINCT + 69 + - 93 * - 14 * - 25 / - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT - 83 + 11, + 46 AS col2
----
-72
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7485
SELECT + 61 + - 77 + - - 21 * - CASE 99 WHEN - ( + COALESCE ( + COUNT( * ), 66 * + + 70, - - 50 ) ) - + 21 THEN - 50 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7485
SELECT + 61 + - 77 + - - 21 * - CASE 99 WHEN - ( + COALESCE ( + COUNT ( * ), 66 * + + 70, - - 50 ) ) - + 21 THEN - 50 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7486
SELECT DISTINCT COUNT( * ) * 43 + 83 * + 24 * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7486
SELECT DISTINCT COUNT ( * ) * 43 + 83 * + 24 * + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7487
SELECT ALL + NULLIF ( - 44, + COUNT( * ) ) AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-7487
SELECT ALL + NULLIF ( - 44, + COUNT ( * ) ) AS col1
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-7488
SELECT DISTINCT COUNT( * ) * + 39 AS col0
----
39

skipif mysql # not compatible
query I rowsort label-7488
SELECT DISTINCT COUNT ( * ) * + 39 AS col0
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7489
SELECT ALL + CAST( + + 72 AS SIGNED ) + + 46 AS col0
----
118

skipif mysql # not compatible
query I rowsort label-7489
SELECT ALL + CAST ( + + 72 AS INTEGER ) + + 46 AS col0
----
118

query I rowsort
SELECT - 94 - + 57 + - - 98 + + 49 * + 47
----
2250

query I rowsort
SELECT NULLIF ( + - 44, - - NULLIF ( + 90, - - 39 * + 93 ) ) AS col1
----
-44

query I rowsort
SELECT + 77 * - 68 AS col1
----
-5236

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7493
SELECT ALL - COUNT( * ) - + - CAST( + 47 AS SIGNED ) col0
----
46

skipif mysql # not compatible
query I rowsort label-7493
SELECT ALL - COUNT ( * ) - + - CAST ( + 47 AS INTEGER ) col0
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7494
SELECT CAST( - SUM( - 69 ) AS SIGNED ) / CAST( CAST( NULL AS DECIMAL ) AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7494
SELECT CAST ( - SUM ( - 69 ) AS INTEGER ) / CAST ( CAST ( NULL AS REAL ) AS REAL )
----
NULL

query I rowsort
SELECT DISTINCT + 44 * 5 AS col2
----
220

onlyif mysql # aggregate syntax: 
query II rowsort label-7496
SELECT DISTINCT 69, COUNT( * ) AS col1
----
69
1

skipif mysql # not compatible
query II rowsort label-7496
SELECT DISTINCT 69, COUNT ( * ) AS col1
----
69
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7497
SELECT 82 - + + 65 + 60 * COUNT( * ) + + COUNT( * ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-7497
SELECT 82 - + + 65 + 60 * COUNT ( * ) + + COUNT ( * ) AS col0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-7498
SELECT ALL MIN( - - 32 ) AS col2
----
32

skipif mysql # not compatible
query I rowsort label-7498
SELECT ALL MIN ( - - 32 ) AS col2
----
32

query I rowsort
SELECT ALL - ( 74 ) * - 21 + 65 AS col0
----
1619

query I rowsort
SELECT ALL - COALESCE ( + 35, - 30 )
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-7501
SELECT MIN( + + 31 ) + - + NULLIF ( - 13, - 34 * - 55 * - - COUNT( * ) * 16 ) - 23
----
21

skipif mysql # not compatible
query I rowsort label-7501
SELECT MIN ( + + 31 ) + - + NULLIF ( - 13, - 34 * - 55 * - - COUNT ( * ) * 16 ) - 23
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-7502
SELECT ALL - 53 AS col2, MAX( ( - 96 ) ) AS col0
----
-53
-96

skipif mysql # not compatible
query II rowsort label-7502
SELECT ALL - 53 AS col2, MAX ( ( - 96 ) ) AS col0
----
-53
-96

query I rowsort
SELECT 88 * - - 26 AS col2
----
2288

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7504
SELECT + 45 * ( 16 ) DIV 18 + - - 34 col0, NULLIF ( - + COUNT( * ), + 1 ) col1
----
74
-1

skipif mysql # not compatible
query II rowsort label-7504
SELECT + 45 * ( 16 ) / 18 + - - 34 col0, NULLIF ( - + COUNT ( * ), + 1 ) col1
----
74
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7505
SELECT DISTINCT - COUNT( - CAST( NULL AS SIGNED ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7505
SELECT DISTINCT - COUNT ( - CAST ( NULL AS INTEGER ) ) AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7506
SELECT 0 DIV + - 24 + COUNT( - 48 ) + - - MAX( - + 53 )
----
-52

skipif mysql # not compatible
query I rowsort label-7506
SELECT 0 / + - 24 + COUNT ( - 48 ) + - - MAX ( - + 53 )
----
-52

query I rowsort
SELECT ALL - 87 * - - 63 + + + 17 * - 83 + + 60 + + ( 69 ) - 19 * + - 43 * - 87
----
-77842

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7508
SELECT - 89 * - - 88 + - + 7 + 61 * + - CAST( - + 76 AS SIGNED ) AS col0
----
-3203

skipif mysql # not compatible
query I rowsort label-7508
SELECT - 89 * - - 88 + - + 7 + 61 * + - CAST ( - + 76 AS INTEGER ) AS col0
----
-3203

onlyif mysql # aggregate syntax: 
query I rowsort label-7509
SELECT DISTINCT + MIN( 84 )
----
84

skipif mysql # not compatible
query I rowsort label-7509
SELECT DISTINCT + MIN ( 84 )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-7510
SELECT DISTINCT - MAX( ALL - 79 ) * 81 + 74
----
6473

skipif mysql # not compatible
query I rowsort label-7510
SELECT DISTINCT - MAX ( ALL - 79 ) * 81 + 74
----
6473

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7511
SELECT 1 * CAST( NULL AS SIGNED ) + 4 + 17 - - 3 + + 74 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7511
SELECT 1 * CAST ( NULL AS INTEGER ) + 4 + 17 - - 3 + + 74 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7512
SELECT - - SUM( + 38 ) * + 65 AS col2
----
2470

skipif mysql # not compatible
query I rowsort label-7512
SELECT - - SUM ( + 38 ) * + 65 AS col2
----
2470

onlyif mysql # aggregate syntax: 
query I rowsort label-7513
SELECT - 67 * + - 29 + 43 + + COUNT( * ) * - + ( + COUNT( * ) )
----
1985

skipif mysql # not compatible
query I rowsort label-7513
SELECT - 67 * + - 29 + 43 + + COUNT ( * ) * - + ( + COUNT ( * ) )
----
1985

query I rowsort
SELECT ALL + 82 * + 60
----
4920

query II rowsort
SELECT 75 AS col2, 97 * - + NULLIF ( + - 33, - 65 ) * + 94 * - 51
----
75
-15345594

onlyif mysql # DIV for integer division: 
query I rowsort label-7516
SELECT + + 70 DIV - + 92 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7516
SELECT + + 70 / - + 92 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7517
SELECT + + COUNT( * ) + + ( COUNT( * ) ) + 29 col2
----
31

skipif mysql # not compatible
query I rowsort label-7517
SELECT + + COUNT ( * ) + + ( COUNT ( * ) ) + 29 col2
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-7518
SELECT ALL + - MAX( ALL + COALESCE ( 8, + - 64 ) ) AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-7518
SELECT ALL + - MAX ( ALL + COALESCE ( 8, + - 64 ) ) AS col2
----
-8

query I rowsort
SELECT DISTINCT + 57 + - + COALESCE ( 95, + NULLIF ( - 26, + 97 * 92 ) + - - 17 ) - + + 90 * 26
----
-2378

query I rowsort
SELECT + - 52 * 55 + - + 60
----
-2920

query I rowsort
SELECT DISTINCT NULLIF ( - + 68, + 4 ) AS col0
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-7522
SELECT + MAX( + + 24 ) AS col1
----
24

skipif mysql # not compatible
query I rowsort label-7522
SELECT + MAX ( + + 24 ) AS col1
----
24

query I rowsort
SELECT - - 49 + 50 + - 36 * + - 16
----
675

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7524
SELECT - 83 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7524
SELECT - 83 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + + 69 - - + 79 AS col1
----
148

query I rowsort
SELECT DISTINCT 40 * + ( 14 ) + + 64
----
624

query I rowsort
SELECT + + 25 * - 30 + 49 + + 43 AS col2
----
-658

query I rowsort
SELECT DISTINCT + 3 * - + 51 col2
----
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-7529
SELECT + 3 + + SUM( 93 )
----
96

skipif mysql # not compatible
query I rowsort label-7529
SELECT + 3 + + SUM ( 93 )
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7530
SELECT ALL 85 * - 27 AS col0, COALESCE ( + - 62, + 69 + - + MIN( DISTINCT - 16 ), + MIN( DISTINCT - - CAST( NULL AS SIGNED ) ) + 90 * COUNT( 28 ) ) + + ( 86 ) DIV - + ( + 70 )
----
-2295
-63

skipif mysql # not compatible
query II rowsort label-7530
SELECT ALL 85 * - 27 AS col0, COALESCE ( + - 62, + 69 + - + MIN ( DISTINCT - 16 ), + MIN ( DISTINCT - - CAST ( NULL AS INTEGER ) ) + 90 * COUNT ( 28 ) ) + + ( 86 ) / - + ( + 70 )
----
-2295
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7531
SELECT - COUNT( * ) AS col0, - COUNT( * ) DIV - + COALESCE ( - 44, - 83 )
----
-1
0

skipif mysql # not compatible
query II rowsort label-7531
SELECT - COUNT ( * ) AS col0, - COUNT ( * ) / - + COALESCE ( - 44, - 83 )
----
-1
0

query I rowsort
SELECT + 73 + + 16 + + 56 AS col0
----
145

onlyif mysql # aggregate syntax: 
query II rowsort label-7533
SELECT DISTINCT 31, MIN( + + 16 ) + + 95 AS col0
----
31
111

skipif mysql # not compatible
query II rowsort label-7533
SELECT DISTINCT 31, MIN ( + + 16 ) + + 95 AS col0
----
31
111

query I rowsort
SELECT + ( 20 ) * + - 18 + - 20 + - - ( 88 ) * 19
----
1292

query I rowsort
SELECT - 49 + + 76 * + + 60 + + + 28
----
4539

onlyif mysql # aggregate syntax: 
query II rowsort label-7536
SELECT ALL COUNT( * ) AS col1, 17 + + 50 * COUNT( * ) * + 66 + - - 20 AS col0
----
1
3337

skipif mysql # not compatible
query II rowsort label-7536
SELECT ALL COUNT ( * ) AS col1, 17 + + 50 * COUNT ( * ) * + 66 + - - 20 AS col0
----
1
3337

onlyif mysql # DIV for integer division: 
query I rowsort label-7537
SELECT + 95 DIV + - 55
----
-1

skipif mysql # not compatible
query I rowsort label-7537
SELECT + 95 / + - 55
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7538
SELECT ALL - 43 DIV 28 + + 9 AS col0
----
8

skipif mysql # not compatible
query I rowsort label-7538
SELECT ALL - 43 / 28 + + 9 AS col0
----
8

query I rowsort
SELECT + 13 * - 12
----
-156

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7540
SELECT ALL COUNT( * ) DIV 6 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7540
SELECT ALL COUNT ( * ) / 6 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7541
SELECT ALL CASE + 3 WHEN + NULLIF ( 26, + NULLIF ( - + COUNT( * ), + ( + 16 ) * 63 - 3 - + NULLIF ( 47, - - 27 ) ) DIV - 22 * - + 75 - + CAST( NULL AS SIGNED ) ) THEN NULLIF ( + 44, - NULLIF ( - 85, 65 ) DIV - - 2 DIV - 76 ) * + 5 - + 61 * + 33 ELSE 24 END DIV - 20 + + ( 18 ) * + COUNT( * ) AS col1
----
17

skipif mysql # not compatible
query I rowsort label-7541
SELECT ALL CASE + 3 WHEN + NULLIF ( 26, + NULLIF ( - + COUNT ( * ), + ( + 16 ) * 63 - 3 - + NULLIF ( 47, - - 27 ) ) / - 22 * - + 75 - + CAST ( NULL AS INTEGER ) ) THEN NULLIF ( + 44, - NULLIF ( - 85, 65 ) / - - 2 / - 76 ) * + 5 - + 61 * + 33 ELSE 24 END / - 20 + + ( 18 ) * + COUNT ( * ) AS col1
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7542
SELECT + CAST( 81 AS SIGNED ) col0
----
81

skipif mysql # not compatible
query I rowsort label-7542
SELECT + CAST ( 81 AS INTEGER ) col0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7543
SELECT ALL + 23 * COUNT( ALL 91 ) AS col2
----
23

skipif mysql # not compatible
query I rowsort label-7543
SELECT ALL + 23 * COUNT ( ALL 91 ) AS col2
----
23

query I rowsort
SELECT - 42 * - - 1 AS col1
----
-42

query I rowsort
SELECT ( - + 87 ) col1
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-7546
SELECT ( + COUNT( ALL + - 27 ) )
----
1

skipif mysql # not compatible
query I rowsort label-7546
SELECT ( + COUNT ( ALL + - 27 ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7547
SELECT + CAST( NULL AS SIGNED ), - COUNT( * ) col1
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-7547
SELECT + CAST ( NULL AS INTEGER ), - COUNT ( * ) col1
----
NULL
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7548
SELECT - CAST( - - 5 AS SIGNED )
----
-5

skipif mysql # not compatible
query I rowsort label-7548
SELECT - CAST ( - - 5 AS INTEGER )
----
-5

query II rowsort
SELECT + 11 AS col1, - 33
----
11
-33

query I rowsort
SELECT - 30 + + 27 AS col1
----
-3

query I rowsort
SELECT DISTINCT + + 45 * + 38 + + + 63
----
1773

onlyif mysql # DIV for integer division: 
query I rowsort label-7552
SELECT ALL 66 * + 23 - - 30 DIV + 99 AS col2
----
1518

skipif mysql # not compatible
query I rowsort label-7552
SELECT ALL 66 * + 23 - - 30 / + 99 AS col2
----
1518

onlyif mysql # aggregate syntax: 
query II rowsort label-7553
SELECT DISTINCT + COUNT( * ) col0, 40 AS col1
----
1
40

skipif mysql # not compatible
query II rowsort label-7553
SELECT DISTINCT + COUNT ( * ) col0, 40 AS col1
----
1
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7554
SELECT + 70 * + 16 / + CAST( NULL AS SIGNED ) + - 26 + 71 * - 30 - + + 0 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7554
SELECT + 70 * + 16 / + CAST ( NULL AS INTEGER ) + - 26 + 71 * - 30 - + + 0 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7555
SELECT ALL + - 54 * SUM( DISTINCT - - 84 )
----
-4536

skipif mysql # not compatible
query I rowsort label-7555
SELECT ALL + - 54 * SUM ( DISTINCT - - 84 )
----
-4536

onlyif mysql # aggregate syntax: 
query I rowsort label-7556
SELECT + + MAX( DISTINCT ( + 86 ) ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-7556
SELECT + + MAX ( DISTINCT ( + 86 ) ) AS col2
----
86

query I rowsort
SELECT - + 15 * - + 81 + + 42
----
1257

onlyif mysql # DIV for integer division: 
query I rowsort label-7558
SELECT - - COALESCE ( - + 43, - 5 DIV + - 96 ) - + 75 AS col0
----
-118

skipif mysql # not compatible
query I rowsort label-7558
SELECT - - COALESCE ( - + 43, - 5 / + - 96 ) - + 75 AS col0
----
-118

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7559
SELECT DISTINCT - - 12 * 36 + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7559
SELECT DISTINCT - - 12 * 36 + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7560
SELECT ALL + + 49 * + - 58 + + NULLIF ( - 54, + + 93 / - COUNT( * ) + - 23 ) * + 77 AS col1
----
-7000

skipif mysql # not compatible
query I rowsort label-7560
SELECT ALL + + 49 * + - 58 + + NULLIF ( - 54, + + 93 / - COUNT ( * ) + - 23 ) * + 77 AS col1
----
-7000

onlyif mysql # aggregate syntax: 
query II rowsort label-7561
SELECT DISTINCT - 48 AS col2, COUNT( * ) + + 28 + + - 96 - - 20 * + 49 * + 56
----
-48
54813

skipif mysql # not compatible
query II rowsort label-7561
SELECT DISTINCT - 48 AS col2, COUNT ( * ) + + 28 + + - 96 - - 20 * + 49 * + 56
----
-48
54813

query II rowsort
SELECT - COALESCE ( + + 33, - - ( - CASE - 5 WHEN 29 THEN - 18 + - ( + ( - 61 ) ) + + + 30 + + 6 ELSE NULL END ) + - 76 ) * + 46 AS col2, - 45
----
-1518
-45

query I rowsort
SELECT - 30 + - - 77
----
47

query I rowsort
SELECT - CASE - + ( + 22 ) WHEN 38 + + + 9 * + 34 THEN NULL ELSE - 56 END * - 23 - - - 18 * + - 61 * + ( 32 )
----
33848

onlyif mysql # aggregate syntax: 
query I rowsort label-7565
SELECT + 55 * + - COUNT( * ) AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-7565
SELECT + 55 * + - COUNT ( * ) AS col2
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-7566
SELECT - CASE + - 68 WHEN + 39 * - 15 + 21 THEN 47 + - 75 - + 77 / - - 81 * - 17 WHEN + 92 * + COUNT( * ) * - 46 THEN NULL WHEN COUNT( * ) / + 78 THEN NULL WHEN 37 THEN + + 55 ELSE NULL END - - 5 * + 28
----
NULL

skipif mysql # not compatible
query I rowsort label-7566
SELECT - CASE + - 68 WHEN + 39 * - 15 + 21 THEN 47 + - 75 - + 77 / - - 81 * - 17 WHEN + 92 * + COUNT ( * ) * - 46 THEN NULL WHEN COUNT ( * ) / + 78 THEN NULL WHEN 37 THEN + + 55 ELSE NULL END - - 5 * + 28
----
NULL

query I rowsort
SELECT - ( 20 ) col1
----
-20

query I rowsort
SELECT ALL 37 + + - 23 AS col0
----
14

query I rowsort
SELECT - ( + - 45 )
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-7570
SELECT + 25 * - + ( 53 ) * + 75 * + + COUNT( * ) AS col0
----
-99375

skipif mysql # not compatible
query I rowsort label-7570
SELECT + 25 * - + ( 53 ) * + 75 * + + COUNT ( * ) AS col0
----
-99375

onlyif mysql # aggregate syntax: 
query I rowsort label-7571
SELECT 7 - - COUNT( * )
----
8

skipif mysql # not compatible
query I rowsort label-7571
SELECT 7 - - COUNT ( * )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7572
SELECT ALL + COUNT( * ) * 59 col0
----
59

skipif mysql # not compatible
query I rowsort label-7572
SELECT ALL + COUNT ( * ) * 59 col0
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7573
SELECT DISTINCT - 82 + - 62 + 53 DIV 14 + COUNT( 93 ) * 24 AS col2
----
-117

skipif mysql # not compatible
query I rowsort label-7573
SELECT DISTINCT - 82 + - 62 + 53 / 14 + COUNT ( 93 ) * 24 AS col2
----
-117

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7574
SELECT 65 DIV + - 90 + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-7574
SELECT 65 / + - 90 + COUNT ( * )
----
1

query II rowsort
SELECT 42 * - 10, 58 AS col0
----
-420
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7576
SELECT + 5 DIV - 43 - - COUNT( * ), - 6 AS col2
----
1
-6

skipif mysql # not compatible
query II rowsort label-7576
SELECT + 5 / - 43 - - COUNT ( * ), - 6 AS col2
----
1
-6

onlyif mysql # DIV for integer division: 
query II rowsort label-7577
SELECT 38 * + 22 + + + 20 AS col0, + 27 DIV + 1 AS col1
----
856
27

skipif mysql # not compatible
query II rowsort label-7577
SELECT 38 * + 22 + + + 20 AS col0, + 27 / + 1 AS col1
----
856
27

query II rowsort
SELECT 61 - 11 col2, ( + 95 )
----
50
95

query II rowsort
SELECT ALL 88 - 23 AS col1, 19 + + 18 AS col0
----
65
37

query I rowsort
SELECT ALL COALESCE ( - 33, 48 ) - + 42 AS col2
----
-75

query I rowsort
SELECT 86 + 25 + - - 95
----
206

onlyif mysql # aggregate syntax: 
query II rowsort label-7582
SELECT ALL - MAX( ALL + 95 ) AS col0, 63
----
-95
63

skipif mysql # not compatible
query II rowsort label-7582
SELECT ALL - MAX ( ALL + 95 ) AS col0, 63
----
-95
63

onlyif mysql # aggregate syntax: 
query I rowsort label-7583
SELECT + + COALESCE ( - + 39, 5, - CASE 85 WHEN - + NULLIF ( - 7, 62 ) / + COUNT( * ) THEN NULL WHEN - 36 THEN 43 ELSE NULL END ) col0
----
-39

skipif mysql # not compatible
query I rowsort label-7583
SELECT + + COALESCE ( - + 39, 5, - CASE 85 WHEN - + NULLIF ( - 7, 62 ) / + COUNT ( * ) THEN NULL WHEN - 36 THEN 43 ELSE NULL END ) col0
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7584
SELECT + 38 * 52 / - + 16 * - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7584
SELECT + 38 * 52 / - + 16 * - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 63 * + 81 * + + 31 * + + 32
----
5062176

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7586
SELECT + 14 * - - 86 + + CAST( NULL AS SIGNED ) AS col0, - 69 DIV CAST( + 66 AS SIGNED ) + 39 + + 21 * 86 DIV 67 col2
----
NULL
64

skipif mysql # not compatible
query II rowsort label-7586
SELECT + 14 * - - 86 + + CAST ( NULL AS INTEGER ) AS col0, - 69 / CAST ( + 66 AS INTEGER ) + 39 + + 21 * 86 / 67 col2
----
NULL
64

onlyif mysql # aggregate syntax: 
query II rowsort label-7587
SELECT 43 * + + COUNT( * ), 40 AS col2
----
43
40

skipif mysql # not compatible
query II rowsort label-7587
SELECT 43 * + + COUNT ( * ), 40 AS col2
----
43
40

query I rowsort
SELECT 2 + + - 81 * + - 55 AS col2
----
4457

query I rowsort
SELECT DISTINCT + 36 * - - 43 - - 25 * + - 15 * 48 AS col0
----
-16452

query I rowsort
SELECT DISTINCT - + 36 col2
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-7591
SELECT ALL - 97 DIV - 19
----
5

skipif mysql # not compatible
query I rowsort label-7591
SELECT ALL - 97 / - 19
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-7592
SELECT + COUNT( * ) + - 19 AS col2, - COUNT( * ) * 87 AS col0
----
-18
-87

skipif mysql # not compatible
query II rowsort label-7592
SELECT + COUNT ( * ) + - 19 AS col2, - COUNT ( * ) * 87 AS col0
----
-18
-87

onlyif mysql # DIV for integer division: 
query II rowsort label-7593
SELECT ALL + ( - 25 ) AS col2, + 62 DIV 36
----
-25
1

skipif mysql # not compatible
query II rowsort label-7593
SELECT ALL + ( - 25 ) AS col2, + 62 / 36
----
-25
1

query I rowsort
SELECT DISTINCT - CASE WHEN NOT ( NULL ) IS NULL THEN + - 82 ELSE NULL END + + 5
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7595
SELECT DISTINCT COUNT( - 45 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7595
SELECT DISTINCT COUNT ( - 45 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7596
SELECT ALL + 68 + COUNT( * ) AS col0
----
69

skipif mysql # not compatible
query I rowsort label-7596
SELECT ALL + 68 + COUNT ( * ) AS col0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-7597
SELECT 82 + SUM( 51 )
----
133

skipif mysql # not compatible
query I rowsort label-7597
SELECT 82 + SUM ( 51 )
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-7598
SELECT COUNT( * ) - - 8 * - - ( - + 65 ) * - + COUNT( * )
----
521

skipif mysql # not compatible
query I rowsort label-7598
SELECT COUNT ( * ) - - 8 * - - ( - + 65 ) * - + COUNT ( * )
----
521

onlyif mysql # DIV for integer division: 
query I rowsort label-7599
SELECT 92 DIV COALESCE ( - 64, - + 65 + - 73 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7599
SELECT 92 / COALESCE ( - 64, - + 65 + - 73 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7600
SELECT 27 + - ( + 21 ) - + + COUNT( * ) * + + 97 AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-7600
SELECT 27 + - ( + 21 ) - + + COUNT ( * ) * + + 97 AS col2
----
-91

query I rowsort
SELECT ALL - 95 + + 44 AS col2
----
-51

query I rowsort
SELECT 98 + - + 81
----
17

query I rowsort
SELECT DISTINCT - 23 * - + 82 AS col1
----
1886

query I rowsort
SELECT ALL + 68 + - 57
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-7605
SELECT 7 + + NULLIF ( + - COUNT( * ), - 93 )
----
6

skipif mysql # not compatible
query I rowsort label-7605
SELECT 7 + + NULLIF ( + - COUNT ( * ), - 93 )
----
6

query I rowsort
SELECT 17 + - COALESCE ( + 29, 73 + + 44, + 78 )
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-7607
SELECT COUNT( * ) + + COUNT( * ) * - 96 AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-7607
SELECT COUNT ( * ) + + COUNT ( * ) * - 96 AS col0
----
-95

query II rowsort
SELECT - 94, - ( + - 71 ) AS col2
----
-94
71

onlyif mysql # aggregate syntax: 
query I rowsort label-7609
SELECT ALL ( + + NULLIF ( + + 56, - 49 ) ) - + 66 * - - CASE - - ( COUNT( * ) ) WHEN - 83 / - 6 + + - 63 THEN + - 41 * + 76 ELSE + 11 + 49 END
----
-3904

skipif mysql # not compatible
query I rowsort label-7609
SELECT ALL ( + + NULLIF ( + + 56, - 49 ) ) - + 66 * - - CASE - - ( COUNT ( * ) ) WHEN - 83 / - 6 + + - 63 THEN + - 41 * + 76 ELSE + 11 + 49 END
----
-3904

query I rowsort
SELECT DISTINCT 77 * - 59 AS col1
----
-4543

query I rowsort
SELECT 9 * - + 34
----
-306

onlyif mysql # aggregate syntax: 
query II rowsort label-7612
SELECT ALL - COUNT( * ), + ( 89 ) col0
----
-1
89

skipif mysql # not compatible
query II rowsort label-7612
SELECT ALL - COUNT ( * ), + ( 89 ) col0
----
-1
89

onlyif mysql # aggregate syntax: 
query I rowsort label-7613
SELECT ALL + 51 * 46 - - 37 + - COALESCE ( COUNT( 20 ), + 97 * + COUNT( DISTINCT + 28 ) + - COALESCE ( - - SUM( DISTINCT - 35 ), + 37, + 88 ) ) * + 41 * + 83 * + 74 + - - COUNT( * ) - + 34 * - SUM( - 89 ) col1
----
-252464

skipif mysql # not compatible
query I rowsort label-7613
SELECT ALL + 51 * 46 - - 37 + - COALESCE ( COUNT ( 20 ), + 97 * + COUNT ( DISTINCT + 28 ) + - COALESCE ( - - SUM ( DISTINCT - 35 ), + 37, + 88 ) ) * + 41 * + 83 * + 74 + - - COUNT ( * ) - + 34 * - SUM ( - 89 ) col1
----
-252464

onlyif mysql # aggregate syntax: 
query I rowsort label-7614
SELECT - 92 * COUNT( * ) col0
----
-92

skipif mysql # not compatible
query I rowsort label-7614
SELECT - 92 * COUNT ( * ) col0
----
-92

query II rowsort
SELECT ALL CASE + 29 WHEN + 14 * + 93 + - + 57 - - 14 THEN 19 END * 34 + - 3 + - 44 + + ( 87 ) * 50, 62 AS col0
----
NULL
62

query I rowsort
SELECT - 99 * + - 49 - 3
----
4848

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7617
SELECT COUNT( * ) * 79 - + - 7 - + ( CAST( + 83 AS SIGNED ) ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-7617
SELECT COUNT ( * ) * 79 - + - 7 - + ( CAST ( + 83 AS INTEGER ) ) AS col2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-7618
SELECT + COALESCE ( + - 48, 18 DIV - - 85 ) + + 76 AS col2
----
28

skipif mysql # not compatible
query I rowsort label-7618
SELECT + COALESCE ( + - 48, 18 / - - 85 ) + + 76 AS col2
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-7619
SELECT 58 * - 72 - - COUNT( ALL - 79 ) AS col0
----
-4175

skipif mysql # not compatible
query I rowsort label-7619
SELECT 58 * - 72 - - COUNT ( ALL - 79 ) AS col0
----
-4175

query I rowsort
SELECT + 85 - + + 74 + 99
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-7621
SELECT ALL - 26 * + COUNT( * ) AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-7621
SELECT ALL - 26 * + COUNT ( * ) AS col1
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-7622
SELECT ALL - + MIN( 2 ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-7622
SELECT ALL - + MIN ( 2 ) AS col2
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7623
SELECT - NULLIF ( 13, + 63 ) * - + MIN( ALL + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7623
SELECT - NULLIF ( 13, + 63 ) * - + MIN ( ALL + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7624
SELECT DISTINCT - COALESCE ( + + ( - - 14 ), - MAX( + + 53 ), + + COUNT( * ) ) * + + COUNT( * )
----
-14

skipif mysql # not compatible
query I rowsort label-7624
SELECT DISTINCT - COALESCE ( + + ( - - 14 ), - MAX ( + + 53 ), + + COUNT ( * ) ) * + + COUNT ( * )
----
-14

query I rowsort
SELECT ALL 91 + - 4 AS col2
----
87

query I rowsort
SELECT 29 + 4 AS col2
----
33

query I rowsort
SELECT 82 * 37 * - - 65 AS col0
----
197210

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7628
SELECT - COUNT( CAST( - + 6 AS SIGNED ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7628
SELECT - COUNT ( CAST ( - + 6 AS INTEGER ) ) AS col2
----
-1

query I rowsort
SELECT - 26 + 71 AS col1
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-7630
SELECT ALL 2 * 57 DIV 44 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-7630
SELECT ALL 2 * 57 / 44 AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7631
SELECT DISTINCT COUNT( - + 48 ) + 51
----
52

skipif mysql # not compatible
query I rowsort label-7631
SELECT DISTINCT COUNT ( - + 48 ) + 51
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-7632
SELECT ALL COUNT( ALL + 39 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-7632
SELECT ALL COUNT ( ALL + 39 ) col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7633
SELECT DISTINCT - SUM( ALL + 53 ) + - - 94 DIV COUNT( DISTINCT 61 )
----
41

skipif mysql # not compatible
query I rowsort label-7633
SELECT DISTINCT - SUM ( ALL + 53 ) + - - 94 / COUNT ( DISTINCT 61 )
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-7634
SELECT DISTINCT - ( 35 ) DIV 93 + + 22 col1
----
22

skipif mysql # not compatible
query I rowsort label-7634
SELECT DISTINCT - ( 35 ) / 93 + + 22 col1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-7635
SELECT ALL SUM( - - 58 )
----
58

skipif mysql # not compatible
query I rowsort label-7635
SELECT ALL SUM ( - - 58 )
----
58

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7636
SELECT + 54 + - CAST( NULL AS DECIMAL ) - - + 91 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7636
SELECT + 54 + - CAST ( NULL AS REAL ) - - + 91 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7637
SELECT - 19 * + COUNT( * ) * + COUNT( DISTINCT + 36 ), 6 + + COUNT( ALL + + 99 ) AS col2
----
-19
7

skipif mysql # not compatible
query II rowsort label-7637
SELECT - 19 * + COUNT ( * ) * + COUNT ( DISTINCT + 36 ), 6 + + COUNT ( ALL + + 99 ) AS col2
----
-19
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7638
SELECT + 30 + ( + MAX( + + 2 ) ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-7638
SELECT + 30 + ( + MAX ( + + 2 ) ) AS col0
----
32

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7639
SELECT DISTINCT CASE + + 99 WHEN 45 THEN - 1 WHEN - 26 + 63 - 48 / ( - 37 ) THEN - 62 + - 53 WHEN - - 56 THEN - NULLIF ( + ( - 98 ), 56 ) - - 55 + - - CAST( - 24 AS DECIMAL ) * 98 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7639
SELECT DISTINCT CASE + + 99 WHEN 45 THEN - 1 WHEN - 26 + 63 - 48 / ( - 37 ) THEN - 62 + - 53 WHEN - - 56 THEN - NULLIF ( + ( - 98 ), 56 ) - - 55 + - - CAST ( - 24 AS REAL ) * 98 END
----
NULL

query I rowsort
SELECT - 83 * + 5 AS col0
----
-415

onlyif mysql # aggregate syntax: 
query I rowsort label-7641
SELECT ALL SUM( DISTINCT + 36 ) * + ( + + SUM( - ( - 85 ) ) ) + + + 18
----
3078

skipif mysql # not compatible
query I rowsort label-7641
SELECT ALL SUM ( DISTINCT + 36 ) * + ( + + SUM ( - ( - 85 ) ) ) + + + 18
----
3078

query I rowsort
SELECT - 0 - + 55 col0
----
-55

query I rowsort
SELECT ALL NULLIF ( + 35, - 92 )
----
35

query II rowsort
SELECT - 76 - - 7 AS col2, - 7
----
-69
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7645
SELECT ALL - CAST( NULL AS SIGNED ) * - + 84 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7645
SELECT ALL - CAST ( NULL AS INTEGER ) * - + 84 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7646
SELECT DISTINCT COUNT( + 12 )
----
1

skipif mysql # not compatible
query I rowsort label-7646
SELECT DISTINCT COUNT ( + 12 )
----
1

query I rowsort
SELECT - 6 + - + CASE - + ( + 88 ) WHEN + + 59 THEN + + 80 END + + 21 * - 72 - + 36 - 94
----
NULL

query II rowsort
SELECT - 20 + 15, - 61 AS col1
----
-5
-61

query I rowsort
SELECT - 51 * - + 40 - + 64
----
1976

onlyif mysql # aggregate syntax: 
query I rowsort label-7650
SELECT - + 91 * 86 + + - COUNT( * ) * - 58 * + + MAX( ALL + 80 ) AS col2
----
-3186

skipif mysql # not compatible
query I rowsort label-7650
SELECT - + 91 * 86 + + - COUNT ( * ) * - 58 * + + MAX ( ALL + 80 ) AS col2
----
-3186

onlyif mysql # aggregate syntax: 
query I rowsort label-7651
SELECT + 84 * - 96 + - 55 + 81 * 43 + + COUNT( * ) - + + 96
----
-4731

skipif mysql # not compatible
query I rowsort label-7651
SELECT + 84 * - 96 + - 55 + 81 * 43 + + COUNT ( * ) - + + 96
----
-4731

onlyif mysql # aggregate syntax: 
query I rowsort label-7652
SELECT ALL COUNT( * ) * COALESCE ( + + 56, 50 - + 82 + + 93, + 0 ) * 84 + + + 37 - + 42 + + 26 - + 30
----
4695

skipif mysql # not compatible
query I rowsort label-7652
SELECT ALL COUNT ( * ) * COALESCE ( + + 56, 50 - + 82 + + 93, + 0 ) * 84 + + + 37 - + 42 + + 26 - + 30
----
4695

onlyif mysql # DIV for integer division: 
query I rowsort label-7653
SELECT + 83 + - 24 DIV + 87
----
83

skipif mysql # not compatible
query I rowsort label-7653
SELECT + 83 + - 24 / + 87
----
83

query I rowsort
SELECT + + 17 * + 86 + 5 AS col1
----
1467

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7655
SELECT ALL CAST( 81 AS SIGNED ) * 12 * + + CAST( - 68 AS SIGNED ) * + + 79 + + + 79 * - 81 * - 90 * + + 63 AS col2
----
31060746

skipif mysql # not compatible
query I rowsort label-7655
SELECT ALL CAST ( 81 AS INTEGER ) * 12 * + + CAST ( - 68 AS INTEGER ) * + + 79 + + + 79 * - 81 * - 90 * + + 63 AS col2
----
31060746

onlyif mysql # aggregate syntax: 
query I rowsort label-7656
SELECT - 49 * - 52 - - - SUM( DISTINCT + 33 ) col1
----
2515

skipif mysql # not compatible
query I rowsort label-7656
SELECT - 49 * - 52 - - - SUM ( DISTINCT + 33 ) col1
----
2515

query I rowsort
SELECT + 67 * + 7 + + + 61 + 15
----
545

onlyif mysql # DIV for integer division: 
query I rowsort label-7658
SELECT + + 9 DIV + 59 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7658
SELECT + + 9 / + 59 AS col1
----
0

query II rowsort
SELECT ALL + ( + + 18 ), 61 AS col2
----
18
61

query I rowsort
SELECT + 26 * + + 62 AS col2
----
1612

query I rowsort
SELECT + 97 * + 23
----
2231

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7662
SELECT + 14 + + 76 + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7662
SELECT + 14 + + 76 + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7663
SELECT DISTINCT 38 * + 0 * - 45 + - CAST( + 88 AS SIGNED ) - + + 15
----
-103

skipif mysql # not compatible
query I rowsort label-7663
SELECT DISTINCT 38 * + 0 * - 45 + - CAST ( + 88 AS INTEGER ) - + + 15
----
-103

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7664
SELECT 68 * - 92 + - 58 / - 21 + + - CAST( - 20 AS DECIMAL ) + 95 + - CAST( NULL AS SIGNED ) * + - 92 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7664
SELECT 68 * - 92 + - 58 / - 21 + + - CAST ( - 20 AS REAL ) + 95 + - CAST ( NULL AS INTEGER ) * + - 92 col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7665
SELECT + 49 DIV 42
----
1

skipif mysql # not compatible
query I rowsort label-7665
SELECT + 49 / 42
----
1

query I rowsort
SELECT ALL CASE 82 WHEN - 37 THEN - 83 END / - - 83 AS col0
----
NULL

query II rowsort
SELECT DISTINCT 28 AS col2, 75 * + + 81
----
28
6075

onlyif mysql # aggregate syntax: 
query I rowsort label-7668
SELECT MAX( ( + 75 ) )
----
75

skipif mysql # not compatible
query I rowsort label-7668
SELECT MAX ( ( + 75 ) )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7669
SELECT ALL 49 * NULLIF ( + COUNT( * ), - 21 * + 41 )
----
49

skipif mysql # not compatible
query I rowsort label-7669
SELECT ALL 49 * NULLIF ( + COUNT ( * ), - 21 * + 41 )
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-7670
SELECT + 60 - - - NULLIF ( - 75, + 86 * + - MAX( - 73 ) )
----
135

skipif mysql # not compatible
query I rowsort label-7670
SELECT + 60 - - - NULLIF ( - 75, + 86 * + - MAX ( - 73 ) )
----
135

query I rowsort
SELECT + 31 + + 51
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7672
SELECT ALL CAST( NULL AS SIGNED ) - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7672
SELECT ALL CAST ( NULL AS INTEGER ) - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7673
SELECT ALL COUNT( * ) * + 12 AS col0
----
12

skipif mysql # not compatible
query I rowsort label-7673
SELECT ALL COUNT ( * ) * + 12 AS col0
----
12

query I rowsort
SELECT ALL 13 * - 47
----
-611

query I rowsort
SELECT + 24 + - + 84 AS col1
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-7676
SELECT - ( + ( - COUNT( * ) ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7676
SELECT - ( + ( - COUNT ( * ) ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7677
SELECT + 0 + CASE - 30 WHEN + 24 - 81 THEN - COUNT( DISTINCT 66 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7677
SELECT + 0 + CASE - 30 WHEN + 24 - 81 THEN - COUNT ( DISTINCT 66 ) END AS col2
----
NULL

query I rowsort
SELECT + 59 * 93 AS col1
----
5487

onlyif mysql # aggregate syntax: 
query I rowsort label-7679
SELECT DISTINCT COUNT( + 52 )
----
1

skipif mysql # not compatible
query I rowsort label-7679
SELECT DISTINCT COUNT ( + 52 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7680
SELECT ALL + 42 DIV + ( 66 ) * 44
----
0

skipif mysql # not compatible
query I rowsort label-7680
SELECT ALL + 42 / + ( 66 ) * 44
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7681
SELECT DISTINCT + - ( COUNT( * ) ) * + - 57 + - 44 * + MIN( ALL + - ( + 41 ) )
----
1861

skipif mysql # not compatible
query I rowsort label-7681
SELECT DISTINCT + - ( COUNT ( * ) ) * + - 57 + - 44 * + MIN ( ALL + - ( + 41 ) )
----
1861

query I rowsort
SELECT + - 87 * 45 AS col1
----
-3915

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7683
SELECT DISTINCT + 70 DIV + 15 + 15 + + + 79 * - MAX( 60 ) * 86 AS col1
----
-407621

skipif mysql # not compatible
query I rowsort label-7683
SELECT DISTINCT + 70 / + 15 + 15 + + + 79 * - MAX ( 60 ) * 86 AS col1
----
-407621

onlyif mysql # aggregate syntax: 
query II rowsort label-7684
SELECT + 93, COUNT( * ) AS col1
----
93
1

skipif mysql # not compatible
query II rowsort label-7684
SELECT + 93, COUNT ( * ) AS col1
----
93
1

query I rowsort
SELECT ALL 23 * - + 64 AS col1
----
-1472

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7686
SELECT ALL + + 27 DIV + - 94 + CAST( 11 AS SIGNED ) * - 0 + 38 * + + 60
----
2280

skipif mysql # not compatible
query I rowsort label-7686
SELECT ALL + + 27 / + - 94 + CAST ( 11 AS INTEGER ) * - 0 + 38 * + + 60
----
2280

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7687
SELECT DISTINCT - 41 DIV - COUNT( * ) + + 92 * + 29
----
2709

skipif mysql # not compatible
query I rowsort label-7687
SELECT DISTINCT - 41 / - COUNT ( * ) + + 92 * + 29
----
2709

query I rowsort
SELECT + - 35 - + 57 + - 35
----
-127

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7689
SELECT ALL COUNT( 20 ) DIV 35 + + 36
----
36

skipif mysql # not compatible
query I rowsort label-7689
SELECT ALL COUNT ( 20 ) / 35 + + 36
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7690
SELECT + - COUNT( * ) * + - 99 * - 56 - - 50 + 89 DIV + 98 + 32
----
-5462

skipif mysql # not compatible
query I rowsort label-7690
SELECT + - COUNT ( * ) * + - 99 * - 56 - - 50 + 89 / + 98 + 32
----
-5462

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7691
SELECT + MAX( DISTINCT + 55 ) DIV 94 - 15
----
-15

skipif mysql # not compatible
query I rowsort label-7691
SELECT + MAX ( DISTINCT + 55 ) / 94 - 15
----
-15

query I rowsort
SELECT 56 * + 4 * + 56 + - 29 AS col0
----
12515

query I rowsort
SELECT ALL - - 69 + 40 * - ( + 95 ) AS col0
----
-3731

onlyif mysql # aggregate syntax: 
query II rowsort label-7694
SELECT 15, - 24 * + 4 + + 69 * - MAX( DISTINCT - 85 ) * - + 82 AS col1
----
15
-481026

skipif mysql # not compatible
query II rowsort label-7694
SELECT 15, - 24 * + 4 + + 69 * - MAX ( DISTINCT - 85 ) * - + 82 AS col1
----
15
-481026

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7695
SELECT ALL CASE NULLIF ( - 79, + 9 * + CAST( NULL AS SIGNED ) / + - 39 * + + 15 * 29 * 54 ) WHEN + + 89 + 88 * - COUNT( * ) THEN NULL WHEN + ( + 8 ) THEN - - 33 ELSE NULL END - + 27 AS col1, 38
----
NULL
38

skipif mysql # not compatible
query II rowsort label-7695
SELECT ALL CASE NULLIF ( - 79, + 9 * + CAST ( NULL AS INTEGER ) / + - 39 * + + 15 * 29 * 54 ) WHEN + + 89 + 88 * - COUNT ( * ) THEN NULL WHEN + ( + 8 ) THEN - - 33 ELSE NULL END - + 27 AS col1, 38
----
NULL
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7696
SELECT ALL + COUNT( * ) DIV + COUNT( * ) AS col2, CASE 78 WHEN 98 THEN + 71 ELSE NULL END col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-7696
SELECT ALL + COUNT ( * ) / + COUNT ( * ) AS col2, CASE 78 WHEN 98 THEN + 71 ELSE NULL END col2
----
1
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7697
SELECT 41 AS col1, CAST( NULL AS SIGNED ) AS col1
----
41
NULL

skipif mysql # not compatible
query II rowsort label-7697
SELECT 41 AS col1, CAST ( NULL AS INTEGER ) AS col1
----
41
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7698
SELECT 82 * - COUNT( * ) * + + 27 - - 22 AS col1, + 87
----
-2192
87

skipif mysql # not compatible
query II rowsort label-7698
SELECT 82 * - COUNT ( * ) * + + 27 - - 22 AS col1, + 87
----
-2192
87

query II rowsort
SELECT ALL - 91 AS col0, 87
----
-91
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7700
SELECT ALL - 62 AS col1, - 65 DIV MIN( - 23 ) * + 67 + 21 AS col2
----
-62
155

skipif mysql # not compatible
query II rowsort label-7700
SELECT ALL - 62 AS col1, - 65 / MIN ( - 23 ) * + 67 + 21 AS col2
----
-62
155

query I rowsort
SELECT 1 * + 44
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7702
SELECT NULLIF ( + 88, + - 65 ) * - COUNT( ALL + + 47 )
----
-88

skipif mysql # not compatible
query I rowsort label-7702
SELECT NULLIF ( + 88, + - 65 ) * - COUNT ( ALL + + 47 )
----
-88

query I rowsort
SELECT 10 + - - 49 + 29 * - - 52
----
1567

query I rowsort
SELECT 52 + + 29 AS col0
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-7705
SELECT COUNT( * ) * + 14 AS col1, + COUNT( * ) AS col0
----
14
1

skipif mysql # not compatible
query II rowsort label-7705
SELECT COUNT ( * ) * + 14 AS col1, + COUNT ( * ) AS col0
----
14
1

query II rowsort
SELECT DISTINCT 40 AS col2, 93
----
40
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7707
SELECT ( COUNT( * ) ) DIV + 42
----
0

skipif mysql # not compatible
query I rowsort label-7707
SELECT ( COUNT ( * ) ) / + 42
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7708
SELECT ALL + NULLIF ( - 96, - 23 ) DIV COUNT( * )
----
-96

skipif mysql # not compatible
query I rowsort label-7708
SELECT ALL + NULLIF ( - 96, - 23 ) / COUNT ( * )
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-7709
SELECT 52 * + SUM( - - 98 ) AS col2
----
5096

skipif mysql # not compatible
query I rowsort label-7709
SELECT 52 * + SUM ( - - 98 ) AS col2
----
5096

query I rowsort
SELECT ALL 89 * 62
----
5518

query I rowsort
SELECT ALL 47 * + 65 * + ( - 57 ) AS col2
----
-174135

onlyif mysql # aggregate syntax: 
query I rowsort label-7712
SELECT 32 - - ( + COUNT( * ) ) - - 38 * - ( + - 11 ) AS col0
----
451

skipif mysql # not compatible
query I rowsort label-7712
SELECT 32 - - ( + COUNT ( * ) ) - - 38 * - ( + - 11 ) AS col0
----
451

query I rowsort
SELECT 42 + + 68 + - 62 AS col0
----
48

query II rowsort
SELECT - 11 AS col0, 27 + + 63
----
-11
90

query I rowsort
SELECT 86 + - 78 col2
----
8

query II rowsort
SELECT - 26, 15 + + 62 col1
----
-26
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7717
SELECT ALL + CASE - SUM( - 76 ) WHEN - + 97 * + ( - + CAST( - COALESCE ( + 66, - - CASE + + 70 WHEN 37 THEN - 34 * + 72 WHEN - 28 THEN NULL ELSE - 51 END + + 71 ) AS SIGNED ) ) * - 64 + + SUM( ALL - - 46 ) THEN NULL WHEN + - COUNT( * ) * - 21 + - 92 - - + ( ( - ( + + 38 ) ) ) - - + COALESCE ( + - 28, + 29 + + 1 ) * - 27 * - 46 * 34 THEN + 11 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7717
SELECT ALL + CASE - SUM ( - 76 ) WHEN - + 97 * + ( - + CAST ( - COALESCE ( + 66, - - CASE + + 70 WHEN 37 THEN - 34 * + 72 WHEN - 28 THEN NULL ELSE - 51 END + + 71 ) AS INTEGER ) ) * - 64 + + SUM ( ALL - - 46 ) THEN NULL WHEN + - COUNT ( * ) * - 21 + - 92 - - + ( ( - ( + + 38 ) ) ) - - + COALESCE ( + - 28, + 29 + + 1 ) * - 27 * - 46 * 34 THEN + 11 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT + 63 + 9
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7719
SELECT DISTINCT + CAST( + - 71 AS SIGNED ) + 1 col0
----
-70

skipif mysql # not compatible
query I rowsort label-7719
SELECT DISTINCT + CAST ( + - 71 AS INTEGER ) + 1 col0
----
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-7720
SELECT + 16 AS col0, + 38 - - 22 + - SUM( + - ( - 15 ) ) * - COUNT( * ) * + 42
----
16
690

skipif mysql # not compatible
query II rowsort label-7720
SELECT + 16 AS col0, + 38 - - 22 + - SUM ( + - ( - 15 ) ) * - COUNT ( * ) * + 42
----
16
690

query I rowsort
SELECT ALL 68 + - - ( - + 38 ) + - 59 + + 70 + + + 52 col1
----
93

query II rowsort
SELECT + 38 - + 4, 93 AS col1
----
34
93

onlyif mysql # aggregate syntax: 
query I rowsort label-7723
SELECT COUNT( * ) + ( - 29 ) * COUNT( * ) - - ( + 7 )
----
-21

skipif mysql # not compatible
query I rowsort label-7723
SELECT COUNT ( * ) + ( - 29 ) * COUNT ( * ) - - ( + 7 )
----
-21

query I rowsort
SELECT ALL + 70 + 55
----
125

query I rowsort
SELECT + ( + 80 ) + COALESCE ( 1, 7 )
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7726
SELECT 99 AS col1, 85 - CAST( + 71 AS SIGNED ) * - COUNT( * ) AS col0
----
99
156

skipif mysql # not compatible
query II rowsort label-7726
SELECT 99 AS col1, 85 - CAST ( + 71 AS INTEGER ) * - COUNT ( * ) AS col0
----
99
156

query I rowsort
SELECT DISTINCT 53 + + 65 AS col2
----
118

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7728
SELECT + - 80 * 54 DIV + ( - COUNT( * ) ) + - 74 * - + ( + - 16 ) - - - 45 * - 92
----
7276

skipif mysql # not compatible
query I rowsort label-7728
SELECT + - 80 * 54 / + ( - COUNT ( * ) ) + - 74 * - + ( + - 16 ) - - - 45 * - 92
----
7276

query I rowsort
SELECT 25 - + 35 AS col0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-7730
SELECT 12 * - ( + + CASE 83 WHEN + 93 THEN NULL WHEN + CASE SUM( ALL - - 9 ) WHEN - + 96 * + 98 + + 74 + - - COUNT( * ) - + COUNT( * ) * 0 THEN NULLIF ( - 71, 49 / + - 50 * 0 ) ELSE NULL END THEN - 66 * - 25 + + 64 / 69 * CASE - + 97 WHEN - 49 * ( - - 49 ) / + ( 98 ) THEN NULL ELSE 79 END ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-7730
SELECT 12 * - ( + + CASE 83 WHEN + 93 THEN NULL WHEN + CASE SUM ( ALL - - 9 ) WHEN - + 96 * + 98 + + 74 + - - COUNT ( * ) - + COUNT ( * ) * 0 THEN NULLIF ( - 71, 49 / + - 50 * 0 ) ELSE NULL END THEN - 66 * - 25 + + 64 / 69 * CASE - + 97 WHEN - 49 * ( - - 49 ) / + ( 98 ) THEN NULL ELSE 79 END ELSE NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7731
SELECT + 37 * - CASE - 32 WHEN - 82 THEN + COUNT( * ) WHEN + COUNT( * ) THEN COUNT( ALL 82 ) ELSE NULL END + + 5 + + ( MIN( DISTINCT - 81 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7731
SELECT + 37 * - CASE - 32 WHEN - 82 THEN + COUNT ( * ) WHEN + COUNT ( * ) THEN COUNT ( ALL 82 ) ELSE NULL END + + 5 + + ( MIN ( DISTINCT - 81 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7732
SELECT ALL 15 + COALESCE ( - 68, - 3, - SUM( ALL - 61 ) ) AS col1, 4 col2
----
-53
4

skipif mysql # not compatible
query II rowsort label-7732
SELECT ALL 15 + COALESCE ( - 68, - 3, - SUM ( ALL - 61 ) ) AS col1, 4 col2
----
-53
4

query I rowsort
SELECT DISTINCT + 76 - 12 * - - 70 AS col2
----
-764

onlyif mysql # aggregate syntax: 
query I rowsort label-7734
SELECT ALL - + COALESCE ( + ( + 37 ), + NULLIF ( + COUNT( * ), + 68 ) + + 20 ) - 67 * + + 9 * 3
----
-1846

skipif mysql # not compatible
query I rowsort label-7734
SELECT ALL - + COALESCE ( + ( + 37 ), + NULLIF ( + COUNT ( * ), + 68 ) + + 20 ) - 67 * + + 9 * 3
----
-1846

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7735
SELECT 48 / + 65 - + + 93 + + + CASE + CAST( 12 AS SIGNED ) WHEN - 72 THEN + 38 + + CAST( - ( - - COUNT( * ) ) AS SIGNED ) + - + 25 WHEN + 7 + + 26 * - - 24 THEN 22 ELSE NULL END + - 23 * 31 - - 53
----
NULL

skipif mysql # not compatible
query I rowsort label-7735
SELECT 48 / + 65 - + + 93 + + + CASE + CAST ( 12 AS INTEGER ) WHEN - 72 THEN + 38 + + CAST ( - ( - - COUNT ( * ) ) AS INTEGER ) + - + 25 WHEN + 7 + + 26 * - - 24 THEN 22 ELSE NULL END + - 23 * 31 - - 53
----
NULL

query I rowsort
SELECT ALL - 43 * + 84
----
-3612

query I rowsort
SELECT 20 + + + 38 + 94 AS col0
----
152

onlyif mysql # aggregate syntax: 
query I rowsort label-7738
SELECT DISTINCT - NULLIF ( - + 77, - - ( 70 ) - - + ( + + MAX( ALL 97 ) ) ) - 53
----
24

skipif mysql # not compatible
query I rowsort label-7738
SELECT DISTINCT - NULLIF ( - + 77, - - ( 70 ) - - + ( + + MAX ( ALL 97 ) ) ) - 53
----
24

query I rowsort
SELECT 55 + - 7 * + + 43
----
-246

query I rowsort
SELECT 36 * - - 62 * - 57
----
-127224

query I rowsort
SELECT DISTINCT + 61 * + 70 AS col0
----
4270

query I rowsort
SELECT 26 * + 18 col2
----
468

query I rowsort
SELECT 32 + + CASE 61 WHEN 63 THEN 99 WHEN ( - 11 ) * - 19 THEN - 13 END + 39 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7744
SELECT 87 + + ( - 98 ) - + + SUM( DISTINCT + ( + 57 ) ) - - SUM( ALL - - 45 ) * ( + 69 ) DIV + 79 + 80 * - 54 * 14
----
-60509

skipif mysql # not compatible
query I rowsort label-7744
SELECT 87 + + ( - 98 ) - + + SUM ( DISTINCT + ( + 57 ) ) - - SUM ( ALL - - 45 ) * ( + 69 ) / + 79 + 80 * - 54 * 14
----
-60509

onlyif mysql # aggregate syntax: 
query I rowsort label-7745
SELECT 1 * 7 * - MIN( + - 56 ) * + 57 * + 82
----
1832208

skipif mysql # not compatible
query I rowsort label-7745
SELECT 1 * 7 * - MIN ( + - 56 ) * + 57 * + 82
----
1832208

onlyif mysql # aggregate syntax: 
query I rowsort label-7746
SELECT ALL - COUNT( * ) + - 13
----
-14

skipif mysql # not compatible
query I rowsort label-7746
SELECT ALL - COUNT ( * ) + - 13
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-7747
SELECT COUNT( * ) + + 70 + 59
----
130

skipif mysql # not compatible
query I rowsort label-7747
SELECT COUNT ( * ) + + 70 + 59
----
130

query I rowsort
SELECT 78 + + 18
----
96

query I rowsort
SELECT DISTINCT 62 * + 81 AS col1
----
5022

onlyif mysql # aggregate syntax: 
query I rowsort label-7750
SELECT - MAX( ALL - CASE - + 65 WHEN + 48 THEN NULL ELSE 16 * 88 END ) col0
----
1408

skipif mysql # not compatible
query I rowsort label-7750
SELECT - MAX ( ALL - CASE - + 65 WHEN + 48 THEN NULL ELSE 16 * 88 END ) col0
----
1408

query II rowsort
SELECT 57 * + 23, 15 AS col1
----
1311
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7752
SELECT 1 * + + COUNT( * ) * 31 + + CASE - - 96 WHEN + 26 * 1 * - + CASE + 63 WHEN + COALESCE ( - - COUNT( * ), 58, - - 58, - + COUNT( * ) ) THEN - COUNT( * ) * - ( - 93 ) END THEN + - 40 * + COUNT( * ) WHEN COUNT( * ) THEN NULL ELSE + MIN( DISTINCT - 46 ) + - - ( 99 ) END AS col1
----
84

skipif mysql # not compatible
query I rowsort label-7752
SELECT 1 * + + COUNT ( * ) * 31 + + CASE - - 96 WHEN + 26 * 1 * - + CASE + 63 WHEN + COALESCE ( - - COUNT ( * ), 58, - - 58, - + COUNT ( * ) ) THEN - COUNT ( * ) * - ( - 93 ) END THEN + - 40 * + COUNT ( * ) WHEN COUNT ( * ) THEN NULL ELSE + MIN ( DISTINCT - 46 ) + - - ( 99 ) END AS col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-7753
SELECT - 2 * MAX( - + 99 )
----
198

skipif mysql # not compatible
query I rowsort label-7753
SELECT - 2 * MAX ( - + 99 )
----
198

onlyif mysql # aggregate syntax: 
query II rowsort label-7754
SELECT DISTINCT SUM( ALL + 89 ) AS col2, 47
----
89
47

skipif mysql # not compatible
query II rowsort label-7754
SELECT DISTINCT SUM ( ALL + 89 ) AS col2, 47
----
89
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7755
SELECT ALL - ( - - 8 ) - 26 * + 66 * + COUNT( * ) * 28 AS col2
----
-48056

skipif mysql # not compatible
query I rowsort label-7755
SELECT ALL - ( - - 8 ) - 26 * + 66 * + COUNT ( * ) * 28 AS col2
----
-48056

query I rowsort
SELECT ALL - 47 * + - ( + + 42 ) AS col2
----
1974

onlyif mysql # aggregate syntax: 
query I rowsort label-7757
SELECT DISTINCT + 14 * - SUM( DISTINCT + 28 ) AS col0
----
-392

skipif mysql # not compatible
query I rowsort label-7757
SELECT DISTINCT + 14 * - SUM ( DISTINCT + 28 ) AS col0
----
-392

query I rowsort
SELECT + 5 * + + 84
----
420

onlyif mysql # DIV for integer division: 
query I rowsort label-7759
SELECT + 74 * + + 77 + 64 DIV + 27 AS col1
----
5700

skipif mysql # not compatible
query I rowsort label-7759
SELECT + 74 * + + 77 + 64 / + 27 AS col1
----
5700

query I rowsort
SELECT + 38 - + - 61
----
99

query I rowsort
SELECT + CASE 29 WHEN + 31 + ( + 64 ) * 77 THEN + 8 - - + 14 * 78 * + - 53 WHEN + 80 THEN - - 55 / - + 3 END
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7762
SELECT ALL 26 DIV + 59 * - - 81 AS col1, + 31 DIV + - 36 AS col1
----
0
0

skipif mysql # not compatible
query II rowsort label-7762
SELECT ALL 26 / + 59 * - - 81 AS col1, + 31 / + - 36 AS col1
----
0
0

query I rowsort
SELECT + 31 * 58
----
1798

query II rowsort
SELECT + 73 AS col1, - 46 * + - 46 AS col1
----
73
2116

onlyif mysql # DIV for integer division: 
query I rowsort label-7765
SELECT DISTINCT 55 DIV - 81
----
0

skipif mysql # not compatible
query I rowsort label-7765
SELECT DISTINCT 55 / - 81
----
0

query I rowsort
SELECT ALL - 19 * + + 64
----
-1216

onlyif mysql # aggregate syntax: 
query I rowsort label-7767
SELECT + 1 * - 66 * - + MAX( DISTINCT - 83 ) * + - 30
----
164340

skipif mysql # not compatible
query I rowsort label-7767
SELECT + 1 * - 66 * - + MAX ( DISTINCT - 83 ) * + - 30
----
164340

onlyif mysql # aggregate syntax: 
query I rowsort label-7768
SELECT DISTINCT COUNT( * ) * 84 AS col2
----
84

skipif mysql # not compatible
query I rowsort label-7768
SELECT DISTINCT COUNT ( * ) * 84 AS col2
----
84

query II rowsort
SELECT + NULLIF ( + 26, 75 ) AS col1, 92 col1
----
26
92

onlyif mysql # DIV for integer division: 
query I rowsort label-7770
SELECT - 54 DIV 30
----
-1

skipif mysql # not compatible
query I rowsort label-7770
SELECT - 54 / 30
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7771
SELECT COUNT( + 86 )
----
1

skipif mysql # not compatible
query I rowsort label-7771
SELECT COUNT ( + 86 )
----
1

query II rowsort
SELECT + 96 AS col0, - 36
----
96
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-7773
SELECT 57 * COUNT( + - 86 ) * + 56 + + 10 + ( - 58 ) - - 42 AS col0, + 58
----
3186
58

skipif mysql # not compatible
query II rowsort label-7773
SELECT 57 * COUNT ( + - 86 ) * + 56 + + 10 + ( - 58 ) - - 42 AS col0, + 58
----
3186
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7774
SELECT ALL - 12 + - CAST( NULL AS SIGNED ) - 36 + + 31 / - 85 / - 33
----
NULL

skipif mysql # not compatible
query I rowsort label-7774
SELECT ALL - 12 + - CAST ( NULL AS INTEGER ) - 36 + + 31 / - 85 / - 33
----
NULL

query I rowsort
SELECT - 12 * + + 27 * + - 88
----
28512

onlyif mysql # aggregate syntax: 
query I rowsort label-7776
SELECT ALL + SUM( ALL + 4 ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-7776
SELECT ALL + SUM ( ALL + 4 ) AS col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7777
SELECT ALL - 14 * 72 + ( + MIN( ALL + + 88 ) )
----
-920

skipif mysql # not compatible
query I rowsort label-7777
SELECT ALL - 14 * 72 + ( + MIN ( ALL + + 88 ) )
----
-920

onlyif mysql # aggregate syntax: 
query I rowsort label-7778
SELECT ALL - COUNT( * ) + + - COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-7778
SELECT ALL - COUNT ( * ) + + - COUNT ( * )
----
-2

query I rowsort
SELECT - 73 + + + 37
----
-36

query II rowsort
SELECT - 12 AS col1, - 45
----
-12
-45

query I rowsort
SELECT - 87 + + 93
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7782
SELECT + - 42 * + COUNT( * ) * 44 * 89 * + 88 col0
----
-14473536

skipif mysql # not compatible
query I rowsort label-7782
SELECT + - 42 * + COUNT ( * ) * 44 * 89 * + 88 col0
----
-14473536

onlyif mysql # aggregate syntax: 
query I rowsort label-7783
SELECT ALL - MAX( DISTINCT + - 69 ) AS col1
----
69

skipif mysql # not compatible
query I rowsort label-7783
SELECT ALL - MAX ( DISTINCT + - 69 ) AS col1
----
69

query I rowsort
SELECT - + 73 + - ( - 60 )
----
-13

query I rowsort
SELECT ALL + CASE 40 WHEN - + ( + - 10 ) - - - 33 THEN + 64 END
----
NULL

query I rowsort
SELECT - + 81 - NULLIF ( + - ( - 94 ), + + 89 )
----
-175

onlyif mysql # aggregate syntax: 
query II rowsort label-7787
SELECT DISTINCT COUNT( * ) AS col2, + COUNT( * ) AS col2
----
1
1

skipif mysql # not compatible
query II rowsort label-7787
SELECT DISTINCT COUNT ( * ) AS col2, + COUNT ( * ) AS col2
----
1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7788
SELECT ALL + COUNT( * ) * - CAST( - + AVG ( ALL + - 51 ) AS SIGNED ) + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7788
SELECT ALL + COUNT ( * ) * - CAST ( - + AVG ( ALL + - 51 ) AS INTEGER ) + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + ( 40 ) + - 3 * + 7
----
19

onlyif mysql # DIV for integer division: 
query II rowsort label-7790
SELECT - ( - - 43 ) DIV 74 AS col1, 87 * 29 AS col1
----
0
2523

skipif mysql # not compatible
query II rowsort label-7790
SELECT - ( - - 43 ) / 74 AS col1, 87 * 29 AS col1
----
0
2523

query I rowsort
SELECT + 59 * 26 AS col0
----
1534

query I rowsort
SELECT + 63 + ( + - CASE - 33 WHEN - 18 - + 24 + - + 33 THEN 34 - - 98 + - 49 * - 87 ELSE - 94 + - 18 * - 69 + + - ( - + 56 ) END ) * 61
----
-73381

query I rowsort
SELECT - 3 + - - ( - 17 ) - 84
----
-104

query I rowsort
SELECT DISTINCT 85 * - + 35
----
-2975

query I rowsort
SELECT ALL - 78 * 61 AS col2
----
-4758

query I rowsort
SELECT + CASE 15 WHEN - 12 + + 79 - + - 67 THEN ( - 88 ) + + 61 * - + 18 - + 53 WHEN + 74 THEN NULL END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7797
SELECT 88 DIV + 25 + - 27 col0
----
-24

skipif mysql # not compatible
query I rowsort label-7797
SELECT 88 / + 25 + - 27 col0
----
-24

query II rowsort
SELECT + 78 * - + 16, 28 AS col2
----
-1248
28

onlyif mysql # aggregate syntax: 
query II rowsort label-7799
SELECT + MAX( + 66 ), - 55 AS col0
----
66
-55

skipif mysql # not compatible
query II rowsort label-7799
SELECT + MAX ( + 66 ), - 55 AS col0
----
66
-55

query I rowsort
SELECT + NULLIF ( 76, - ( 39 ) + - 62 ) AS col2
----
76

query II rowsort
SELECT ( - + 27 ), 37 AS col2
----
-27
37

query I rowsort
SELECT ALL 64 * - 92 * - 79 + - 41 AS col1
----
465111

onlyif mysql # aggregate syntax: 
query I rowsort label-7803
SELECT 79 * - - 28 + COUNT( * )
----
2213

skipif mysql # not compatible
query I rowsort label-7803
SELECT 79 * - - 28 + COUNT ( * )
----
2213

query I rowsort
SELECT + NULLIF ( - ( + + 23 ), + 42 * + 84 * - - 69 ) + 62 - - 7 * - + 1 col0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-7805
SELECT DISTINCT 7 * + NULLIF ( + 18, - - 33 ) * + 30 + - ( + + 82 ) + - 2 * + 55 + 77 * CASE 28 WHEN + COUNT( * ) / 47 + + 27 THEN - 80 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7805
SELECT DISTINCT 7 * + NULLIF ( + 18, - - 33 ) * + 30 + - ( + + 82 ) + - 2 * + 55 + 77 * CASE 28 WHEN + COUNT ( * ) / 47 + + 27 THEN - 80 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7806
SELECT + COUNT( * ) + + COUNT( * ) - + ( + + 36 )
----
-34

skipif mysql # not compatible
query I rowsort label-7806
SELECT + COUNT ( * ) + + COUNT ( * ) - + ( + + 36 )
----
-34

query I rowsort
SELECT DISTINCT + 71 * + + 59 * + 5 AS col2
----
20945

onlyif mysql # aggregate syntax: 
query I rowsort label-7808
SELECT ALL COUNT( * ) * 22 + - + 98
----
-76

skipif mysql # not compatible
query I rowsort label-7808
SELECT ALL COUNT ( * ) * 22 + - + 98
----
-76

query I rowsort
SELECT ALL 77 * + - 8 + + NULLIF ( 75, + + 8 )
----
-541

onlyif mysql # aggregate syntax: 
query I rowsort label-7810
SELECT - 18 + + + 18 * - + MIN( 88 ) * - 83
----
131454

skipif mysql # not compatible
query I rowsort label-7810
SELECT - 18 + + + 18 * - + MIN ( 88 ) * - 83
----
131454

query I rowsort
SELECT - + 46 + + + ( + + 97 ) + - - 73 + + 67 * - 84 * - 38 - + 99
----
213889

onlyif mysql # aggregate syntax: 
query I rowsort label-7812
SELECT + COUNT( * ) * - 58 * - - 34 * + 65
----
-128180

skipif mysql # not compatible
query I rowsort label-7812
SELECT + COUNT ( * ) * - 58 * - - 34 * + 65
----
-128180

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7813
SELECT ALL COUNT( - 73 ), 38 * + ( CAST( NULL AS DECIMAL ) ) AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-7813
SELECT ALL COUNT ( - 73 ), 38 * + ( CAST ( NULL AS REAL ) ) AS col2
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7814
SELECT + 40 + - MIN( + 25 ) + + 85 + - 67 * 51 * + MIN( ALL 25 )
----
-85325

skipif mysql # not compatible
query I rowsort label-7814
SELECT + 40 + - MIN ( + 25 ) + + 85 + - 67 * 51 * + MIN ( ALL 25 )
----
-85325

onlyif mysql # aggregate syntax: 
query I rowsort label-7815
SELECT 0 * - ( COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-7815
SELECT 0 * - ( COUNT ( * ) )
----
0

query I rowsort
SELECT - COALESCE ( + 34, + + 39 )
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-7817
SELECT COALESCE ( COUNT( * ), + - 63 ) + 66 + - + 29
----
38

skipif mysql # not compatible
query I rowsort label-7817
SELECT COALESCE ( COUNT ( * ), + - 63 ) + 66 + - + 29
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7818
SELECT ALL - + 89 - + 23 + + - 17 DIV + MAX( DISTINCT - 36 )
----
-112

skipif mysql # not compatible
query I rowsort label-7818
SELECT ALL - + 89 - + 23 + + - 17 / + MAX ( DISTINCT - 36 )
----
-112

query I rowsort
SELECT 18 * + - 66 + 25 AS col1
----
-1163

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7820
SELECT + CAST( - + CAST( NULL AS DECIMAL ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7820
SELECT + CAST ( - + CAST ( NULL AS REAL ) AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT 10 + 92
----
102

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7822
SELECT ALL CASE + 18 WHEN + AVG ( - 82 ) THEN + 72 * + ( + 26 ) WHEN 10 THEN NULL END - - + 42, 78 + + + 22 - 77 - 17 DIV + + MAX( ALL 73 ) AS col1
----
NULL
23

skipif mysql # not compatible
query II rowsort label-7822
SELECT ALL CASE + 18 WHEN + AVG ( - 82 ) THEN + 72 * + ( + 26 ) WHEN 10 THEN NULL END - - + 42, 78 + + + 22 - 77 - 17 / + + MAX ( ALL 73 ) AS col1
----
NULL
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7823
SELECT DISTINCT - 8 * - ( CAST( + 47 AS SIGNED ) ) AS col0
----
376

skipif mysql # not compatible
query I rowsort label-7823
SELECT DISTINCT - 8 * - ( CAST ( + 47 AS INTEGER ) ) AS col0
----
376

onlyif mysql # aggregate syntax: 
query I rowsort label-7824
SELECT + NULLIF ( + + MAX( DISTINCT 40 ), + 46 ) col1
----
40

skipif mysql # not compatible
query I rowsort label-7824
SELECT + NULLIF ( + + MAX ( DISTINCT 40 ), + 46 ) col1
----
40

query I rowsort
SELECT ALL + 64 * + 6
----
384

query I rowsort
SELECT ALL COALESCE ( - + 15, - 36 )
----
-15

query I rowsort
SELECT ALL + 47 * COALESCE ( - 92, + 51 ) AS col1
----
-4324

onlyif mysql # DIV for integer division: 
query I rowsort label-7828
SELECT ALL 96 + ( - 46 ) + 79 - + ( - - 39 ) DIV 28 * + 94 * 50 * 65 AS col2
----
-305371

skipif mysql # not compatible
query I rowsort label-7828
SELECT ALL 96 + ( - 46 ) + 79 - + ( - - 39 ) / 28 * + 94 * 50 * 65 AS col2
----
-305371

onlyif mysql # aggregate syntax: 
query I rowsort label-7829
SELECT DISTINCT - 74 + - COUNT( * ) col0
----
-75

skipif mysql # not compatible
query I rowsort label-7829
SELECT DISTINCT - 74 + - COUNT ( * ) col0
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7830
SELECT ALL - CASE 96 WHEN COUNT( * ) * + 35 THEN + + 95 + + CAST( NULL AS SIGNED ) + - 57 + - 25 / ( - CASE + 24 WHEN - 66 + 11 THEN 53 + - COUNT( * ) * + 62 + AVG ( DISTINCT + 26 ) WHEN - 27 + - + 67 THEN + 64 WHEN + 49 THEN + 43 ELSE + 10 END ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7830
SELECT ALL - CASE 96 WHEN COUNT ( * ) * + 35 THEN + + 95 + + CAST ( NULL AS INTEGER ) + - 57 + - 25 / ( - CASE + 24 WHEN - 66 + 11 THEN 53 + - COUNT ( * ) * + 62 + AVG ( DISTINCT + 26 ) WHEN - 27 + - + 67 THEN + 64 WHEN + 49 THEN + 43 ELSE + 10 END ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7831
SELECT DISTINCT + 2 DIV - 26
----
0

skipif mysql # not compatible
query I rowsort label-7831
SELECT DISTINCT + 2 / - 26
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7832
SELECT CASE + 18 WHEN + - MAX( ALL + CAST( - 57 AS SIGNED ) ) THEN NULL ELSE - + 82 * 70 END DIV - 90 + 37 AS col1
----
100

skipif mysql # not compatible
query I rowsort label-7832
SELECT CASE + 18 WHEN + - MAX ( ALL + CAST ( - 57 AS INTEGER ) ) THEN NULL ELSE - + 82 * 70 END / - 90 + 37 AS col1
----
100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7833
SELECT - 66 * + 1 * + + COUNT( * ) / - 81 - + CASE + 34 WHEN - ( 55 ) * + + CAST( - NULLIF ( + 28, + 95 * + 46 + + + ( - 79 ) ) AS DECIMAL ) THEN - 84 * - + 41 * - 1 WHEN + - ( - 65 ) * CAST( NULL AS SIGNED ) * + - 16 THEN NULL END / + 79 / COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7833
SELECT - 66 * + 1 * + + COUNT ( * ) / - 81 - + CASE + 34 WHEN - ( 55 ) * + + CAST ( - NULLIF ( + 28, + 95 * + 46 + + + ( - 79 ) ) AS REAL ) THEN - 84 * - + 41 * - 1 WHEN + - ( - 65 ) * CAST ( NULL AS INTEGER ) * + - 16 THEN NULL END / + 79 / COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7834
SELECT 59 AS col0, 72 DIV + COUNT( * ) + + 41
----
59
113

skipif mysql # not compatible
query II rowsort label-7834
SELECT 59 AS col0, 72 / + COUNT ( * ) + + 41
----
59
113

query I rowsort
SELECT ALL + 84 * + + 30 AS col1
----
2520

query I rowsort
SELECT 93 * - + 81 + + 23
----
-7510

onlyif mysql # aggregate syntax: 
query I rowsort label-7837
SELECT MAX( + 72 ) + 62
----
134

skipif mysql # not compatible
query I rowsort label-7837
SELECT MAX ( + 72 ) + 62
----
134

query I rowsort
SELECT DISTINCT 30 + - + 54 - 37 AS col1
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7839
SELECT ALL - CAST( - 19 AS SIGNED ) col2
----
19

skipif mysql # not compatible
query I rowsort label-7839
SELECT ALL - CAST ( - 19 AS INTEGER ) col2
----
19

query I rowsort
SELECT DISTINCT - ( + - 46 ) + + + ( - 3 )
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7841
SELECT 53, - CAST( NULL AS SIGNED ) * ( + 41 ) * - 40 AS col0
----
53
NULL

skipif mysql # not compatible
query II rowsort label-7841
SELECT 53, - CAST ( NULL AS INTEGER ) * ( + 41 ) * - 40 AS col0
----
53
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7842
SELECT COUNT( - 92 ) * + CASE WHEN NOT ( NULL ) IS NOT NULL THEN NULL ELSE - AVG ( + 45 ) END - + 3 AS col0, 70 + + - 43 * - 4 * - 46 AS col1
----
NULL
-7842

skipif mysql # not compatible
query II rowsort label-7842
SELECT COUNT ( - 92 ) * + CASE WHEN NOT ( NULL ) IS NOT NULL THEN NULL ELSE - AVG ( + 45 ) END - + 3 AS col0, 70 + + - 43 * - 4 * - 46 AS col1
----
NULL
-7842

onlyif mysql # aggregate syntax: 
query II rowsort label-7843
SELECT 60 * ( COUNT( * ) ), + 62 AS col1
----
60
62

skipif mysql # not compatible
query II rowsort label-7843
SELECT 60 * ( COUNT ( * ) ), + 62 AS col1
----
60
62

onlyif mysql # aggregate syntax: 
query I rowsort label-7844
SELECT ALL - COUNT( + 15 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7844
SELECT ALL - COUNT ( + 15 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7845
SELECT + NULLIF ( - MIN( - - 71 ), 17 + - + 21 ) * + 87
----
-6177

skipif mysql # not compatible
query I rowsort label-7845
SELECT + NULLIF ( - MIN ( - - 71 ), 17 + - + 21 ) * + 87
----
-6177

query I rowsort
SELECT ALL 8 * 65
----
520

onlyif mysql # aggregate syntax: 
query II rowsort label-7847
SELECT ALL - 45 AS col2, COALESCE ( + - CASE WHEN NOT - COUNT( * ) >= NULL THEN NULL ELSE - - 96 END, ( - 60 ), 90 )
----
-45
-96

skipif mysql # not compatible
query II rowsort label-7847
SELECT ALL - 45 AS col2, COALESCE ( + - CASE WHEN NOT - COUNT ( * ) >= NULL THEN NULL ELSE - - 96 END, ( - 60 ), 90 )
----
-45
-96

query I rowsort
SELECT ALL 35 * + 5 AS col1
----
175

query I rowsort
SELECT ( + - 66 )
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-7850
SELECT + 58 + 15 + + 33 + - - 21 * - + COALESCE ( - - 99, + 24 + + + 90 - COALESCE ( - - 46, + SUM( ALL + 3 ) ) + + + ( - 61 ) * + 66 * + 37 * - 29 + - - 0 - 78 * 55 * + 79 + 63 * - 71 + SUM( + - 9 ) * + 3 ) AS col0
----
-1973

skipif mysql # not compatible
query I rowsort label-7850
SELECT + 58 + 15 + + 33 + - - 21 * - + COALESCE ( - - 99, + 24 + + + 90 - COALESCE ( - - 46, + SUM ( ALL + 3 ) ) + + + ( - 61 ) * + 66 * + 37 * - 29 + - - 0 - 78 * 55 * + 79 + 63 * - 71 + SUM ( + - 9 ) * + 3 ) AS col0
----
-1973

query I rowsort
SELECT + 45 * 88 AS col0
----
3960

query I rowsort
SELECT 4 + - 19 AS col1
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-7853
SELECT - 98 + - COUNT( * ) * - 57 - + ( - 29 ) + COALESCE ( + 92, - 19, + 15 ) + + + 3 AS col0
----
83

skipif mysql # not compatible
query I rowsort label-7853
SELECT - 98 + - COUNT ( * ) * - 57 - + ( - 29 ) + COALESCE ( + 92, - 19, + 15 ) + + + 3 AS col0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-7854
SELECT ALL MAX( - 90 )
----
-90

skipif mysql # not compatible
query I rowsort label-7854
SELECT ALL MAX ( - 90 )
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7855
SELECT - 12 + + ( - ( CASE + CAST( + + 56 AS SIGNED ) WHEN ( - 57 ) THEN - 85 DIV CAST( NULL AS SIGNED ) + COUNT( * ) ELSE - 76 * + 99 + 71 * COUNT( * ) END ) ) AS col2, CAST( + 51 AS SIGNED )
----
7441
51

skipif mysql # not compatible
query II rowsort label-7855
SELECT - 12 + + ( - ( CASE + CAST ( + + 56 AS INTEGER ) WHEN ( - 57 ) THEN - 85 / CAST ( NULL AS INTEGER ) + COUNT ( * ) ELSE - 76 * + 99 + 71 * COUNT ( * ) END ) ) AS col2, CAST ( + 51 AS INTEGER )
----
7441
51

query I rowsort
SELECT ALL 81 + + + 6
----
87

query I rowsort
SELECT DISTINCT 32 + 28 + + 66 AS col2
----
126

query I rowsort
SELECT 45 + + 6
----
51

query I rowsort
SELECT 55 + - 92 AS col2
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-7860
SELECT ALL + ( + + COUNT( * ) ) * 98 AS col0
----
98

skipif mysql # not compatible
query I rowsort label-7860
SELECT ALL + ( + + COUNT ( * ) ) * 98 AS col0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7861
SELECT 45 + 84 + - COUNT( * ) col2
----
128

skipif mysql # not compatible
query I rowsort label-7861
SELECT 45 + 84 + - COUNT ( * ) col2
----
128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7862
SELECT COUNT( * ) AS col1, + COALESCE ( COUNT( * ), - CAST( - COUNT( * ) AS SIGNED ) * 66 ) + - 9
----
1
-8

skipif mysql # not compatible
query II rowsort label-7862
SELECT COUNT ( * ) AS col1, + COALESCE ( COUNT ( * ), - CAST ( - COUNT ( * ) AS INTEGER ) * 66 ) + - 9
----
1
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-7863
SELECT ALL 31 * + COUNT( * ) + 30 + - 65 * + 49 + + - 51
----
-3175

skipif mysql # not compatible
query I rowsort label-7863
SELECT ALL 31 * + COUNT ( * ) + 30 + - 65 * + 49 + + - 51
----
-3175

onlyif mysql # aggregate syntax: 
query I rowsort label-7864
SELECT ALL + 73 * 90 + - 20 * + + 72 + - - 5 + - - SUM( ALL 72 )
----
5207

skipif mysql # not compatible
query I rowsort label-7864
SELECT ALL + 73 * 90 + - 20 * + + 72 + - - 5 + - - SUM ( ALL 72 )
----
5207

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7865
SELECT DISTINCT 93 * + 41 - + ( - 21 ) + - COALESCE ( 76, + 90 * + 42, AVG ( DISTINCT 98 ) * 27 ) * - CAST( NULL AS DECIMAL ) * + 5 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7865
SELECT DISTINCT 93 * + 41 - + ( - 21 ) + - COALESCE ( 76, + 90 * + 42, AVG ( DISTINCT 98 ) * 27 ) * - CAST ( NULL AS REAL ) * + 5 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7866
SELECT 80 + - SUM( DISTINCT - - 12 ) + + 48 * + - NULLIF ( + 18, COUNT( * ) )
----
-796

skipif mysql # not compatible
query I rowsort label-7866
SELECT 80 + - SUM ( DISTINCT - - 12 ) + + 48 * + - NULLIF ( + 18, COUNT ( * ) )
----
-796

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7867
SELECT DISTINCT - ( CAST( + COUNT( * ) AS SIGNED ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7867
SELECT DISTINCT - ( CAST ( + COUNT ( * ) AS INTEGER ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-7868
SELECT 89 + + 53 AS col2, + MIN( ALL - 43 )
----
142
-43

skipif mysql # not compatible
query II rowsort label-7868
SELECT 89 + + 53 AS col2, + MIN ( ALL - 43 )
----
142
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-7869
SELECT 60 * 95 AS col2, + COUNT( * ) + - 2 + - 4
----
5700
-5

skipif mysql # not compatible
query II rowsort label-7869
SELECT 60 * 95 AS col2, + COUNT ( * ) + - 2 + - 4
----
5700
-5

query I rowsort
SELECT 96 * - 50
----
-4800

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7871
SELECT ALL - 53 DIV SUM( ALL 47 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7871
SELECT ALL - 53 / SUM ( ALL 47 ) AS col2
----
-1

query I rowsort
SELECT + - 16 * + NULLIF ( - 57, - 8 ) + - ( + 66 ) + + 62 AS col1
----
908

query I rowsort
SELECT - 53 + 63 AS col0
----
10

query I rowsort
SELECT ALL 97 * - - 15 AS col2
----
1455

query I rowsort
SELECT - - 69 + + - 98
----
-29

query I rowsort
SELECT ALL + 30 * - 29 * + 57
----
-49590

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7877
SELECT ALL CAST( 67 AS SIGNED ) + + 15 + + COUNT( * ) * + 81 * + 14 * + + COALESCE ( + 55, - COUNT( * ) * + 97 * ( - + 61 ) DIV 74 )
----
62452

skipif mysql # not compatible
query I rowsort label-7877
SELECT ALL CAST ( 67 AS INTEGER ) + + 15 + + COUNT ( * ) * + 81 * + 14 * + + COALESCE ( + 55, - COUNT ( * ) * + 97 * ( - + 61 ) / 74 )
----
62452

query I rowsort
SELECT + 39 + - 71 + - 84 AS col0
----
-116

query II rowsort
SELECT ALL 82 AS col0, + ( - 66 )
----
82
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-7880
SELECT ALL - MIN( - ( - 58 ) ) + - + 75
----
-133

skipif mysql # not compatible
query I rowsort label-7880
SELECT ALL - MIN ( - ( - 58 ) ) + - + 75
----
-133

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7881
SELECT DISTINCT 26 * + MAX( - CAST( + + 6 AS SIGNED ) ) * - 47 * + COALESCE ( - - 35, - - ( 35 ) DIV + AVG ( DISTINCT 19 ), + 2 ) + - - 83
----
256703

skipif mysql # not compatible
query I rowsort label-7881
SELECT DISTINCT 26 * + MAX ( - CAST ( + + 6 AS INTEGER ) ) * - 47 * + COALESCE ( - - 35, - - ( 35 ) / + AVG ( DISTINCT 19 ), + 2 ) + - - 83
----
256703

onlyif mysql # aggregate syntax: 
query I rowsort label-7882
SELECT COALESCE ( - ( COALESCE ( - 68, + - 71 + 83, 78 * - 25 ) ), COUNT( * ) * 13 * + + ( - 79 ) )
----
68

skipif mysql # not compatible
query I rowsort label-7882
SELECT COALESCE ( - ( COALESCE ( - 68, + - 71 + 83, 78 * - 25 ) ), COUNT ( * ) * 13 * + + ( - 79 ) )
----
68

query I rowsort
SELECT ALL - - 63 + + 44 AS col2
----
107

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7884
SELECT DISTINCT 26 * + 5, NULLIF ( - 74, - CAST( + 39 AS SIGNED ) ) AS col0
----
130
-74

skipif mysql # not compatible
query II rowsort label-7884
SELECT DISTINCT 26 * + 5, NULLIF ( - 74, - CAST ( + 39 AS INTEGER ) ) AS col0
----
130
-74

query II rowsort
SELECT + 49 * - + 42 col1, 92 AS col2
----
-2058
92

query I rowsort
SELECT - ( 72 ) AS col2
----
-72

query I rowsort
SELECT DISTINCT 61 * - 10
----
-610

query I rowsort
SELECT ALL 20 + + 34
----
54

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7889
SELECT - 7 DIV - 88 * - 66, 79 * - CAST( + + 29 AS SIGNED ) AS col0
----
0
-2291

skipif mysql # not compatible
query II rowsort label-7889
SELECT - 7 / - 88 * - 66, 79 * - CAST ( + + 29 AS INTEGER ) AS col0
----
0
-2291

query I rowsort
SELECT + 19 * + 85
----
1615

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7891
SELECT ALL CAST( MAX( + 36 ) AS SIGNED ) - 6
----
30

skipif mysql # not compatible
query I rowsort label-7891
SELECT ALL CAST ( MAX ( + 36 ) AS INTEGER ) - 6
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-7892
SELECT DISTINCT MAX( + 98 ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-7892
SELECT DISTINCT MAX ( + 98 ) AS col1
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7893
SELECT DISTINCT 19 - COUNT( * )
----
18

skipif mysql # not compatible
query I rowsort label-7893
SELECT DISTINCT 19 - COUNT ( * )
----
18

query I rowsort
SELECT ALL + 67 * + 28
----
1876

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7895
SELECT - CAST( NULL AS SIGNED ) * + 29 * - 46
----
NULL

skipif mysql # not compatible
query I rowsort label-7895
SELECT - CAST ( NULL AS INTEGER ) * + 29 * - 46
----
NULL

query I rowsort
SELECT - 18 * - - 80 * + 40 * - 0 * + 78
----
0

query I rowsort
SELECT ( NULLIF ( 17, - + 7 - + 15 ) )
----
17

query I rowsort
SELECT ALL 11 * + 11 AS col2
----
121

query II rowsort
SELECT - + 15 * - + 99 AS col0, 94
----
1485
94

query I rowsort
SELECT DISTINCT + CASE ( + + 10 ) WHEN + - 72 THEN + 55 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT 29 * + + 51
----
1479

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7902
SELECT - NULLIF ( - 39, COUNT( * ) * 95 * - 8 * - COUNT( * ) * + CASE - 43 WHEN - 81 THEN NULL ELSE - CAST( - COUNT( * ) AS SIGNED ) END * + 82 / + COALESCE ( - 21, - 63 / + - ( 27 ) ) * CASE + CAST( + COALESCE ( + + 81, - + COUNT( * ) / + 99 * 88 + + + 84 + - 12 * - - COUNT( * ) ) AS DECIMAL ) WHEN - + AVG ( ALL 89 ) THEN - COUNT( * ) ELSE + 84 END * - CAST( NULL AS DECIMAL ) + 62 + - COALESCE ( + - MIN( - 42 ), 67, CAST( COUNT( * ) AS SIGNED ) * - COUNT( * ) ) ) * + COUNT( * ) - 96
----
-57

skipif mysql # not compatible
query I rowsort label-7902
SELECT - NULLIF ( - 39, COUNT ( * ) * 95 * - 8 * - COUNT ( * ) * + CASE - 43 WHEN - 81 THEN NULL ELSE - CAST ( - COUNT ( * ) AS INTEGER ) END * + 82 / + COALESCE ( - 21, - 63 / + - ( 27 ) ) * CASE + CAST ( + COALESCE ( + + 81, - + COUNT ( * ) / + 99 * 88 + + + 84 + - 12 * - - COUNT ( * ) ) AS REAL ) WHEN - + AVG ( ALL 89 ) THEN - COUNT ( * ) ELSE + 84 END * - CAST ( NULL AS REAL ) + 62 + - COALESCE ( + - MIN ( - 42 ), 67, CAST ( COUNT ( * ) AS INTEGER ) * - COUNT ( * ) ) ) * + COUNT ( * ) - 96
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7903
SELECT DISTINCT + + CAST( CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7903
SELECT DISTINCT + + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7904
SELECT ALL + - 13 * - 7 + MAX( 46 ) DIV 55 AS col0
----
91

skipif mysql # not compatible
query I rowsort label-7904
SELECT ALL + - 13 * - 7 + MAX ( 46 ) / 55 AS col0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7905
SELECT - 0 * - COUNT( * ) * + 22
----
0

skipif mysql # not compatible
query I rowsort label-7905
SELECT - 0 * - COUNT ( * ) * + 22
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7906
SELECT ALL - + 14 * + MIN( 50 ) + + 54 AS col0
----
-646

skipif mysql # not compatible
query I rowsort label-7906
SELECT ALL - + 14 * + MIN ( 50 ) + + 54 AS col0
----
-646

query I rowsort
SELECT DISTINCT + - 48 * + 56 + - + 58 + 46 AS col0
----
-2700

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7908
SELECT ( + 15 ) AS col1, 95 DIV - COALESCE ( - 55, + COUNT( + + 76 ) * + 78 )
----
15
1

skipif mysql # not compatible
query II rowsort label-7908
SELECT ( + 15 ) AS col1, 95 / - COALESCE ( - 55, + COUNT ( + + 76 ) * + 78 )
----
15
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7909
SELECT - - 88 DIV + COUNT( * ) AS col0
----
88

skipif mysql # not compatible
query I rowsort label-7909
SELECT - - 88 / + COUNT ( * ) AS col0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-7910
SELECT + - 82 * + - 97 + + - ( + + COUNT( DISTINCT 84 ) )
----
7953

skipif mysql # not compatible
query I rowsort label-7910
SELECT + - 82 * + - 97 + + - ( + + COUNT ( DISTINCT 84 ) )
----
7953

query I rowsort
SELECT - + ( - 78 ) * + 2 * - 69
----
-10764

onlyif mysql # aggregate syntax: 
query II rowsort label-7912
SELECT DISTINCT + 32 * 46 + - SUM( + 91 ) * 87 + - 7 + 92 + - COUNT( * ) - - - 0 * - 9, + 90 AS col1
----
-6361
90

skipif mysql # not compatible
query II rowsort label-7912
SELECT DISTINCT + 32 * 46 + - SUM ( + 91 ) * 87 + - 7 + 92 + - COUNT ( * ) - - - 0 * - 9, + 90 AS col1
----
-6361
90

query I rowsort
SELECT DISTINCT + 85 * - 28 AS col1
----
-2380

onlyif mysql # aggregate syntax: 
query I rowsort label-7914
SELECT ALL 15 * - 79 + + 52 + + MIN( ALL + - 83 ) + + 31 * + 34 * - 86 * 15 * COUNT( ALL 81 ) AS col0
----
-1360876

skipif mysql # not compatible
query I rowsort label-7914
SELECT ALL 15 * - 79 + + 52 + + MIN ( ALL + - 83 ) + + 31 * + 34 * - 86 * 15 * COUNT ( ALL 81 ) AS col0
----
-1360876

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7915
SELECT ( + CAST( NULL AS SIGNED ) ) * - - 10 - + 36 - - 20 * SUM( DISTINCT + 4 ) * 77
----
NULL

skipif mysql # not compatible
query I rowsort label-7915
SELECT ( + CAST ( NULL AS INTEGER ) ) * - - 10 - + 36 - - 20 * SUM ( DISTINCT + 4 ) * 77
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7916
SELECT SUM( DISTINCT - 6 ) AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-7916
SELECT SUM ( DISTINCT - 6 ) AS col0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-7917
SELECT ALL - - COUNT( * ) * + - ( COUNT( * ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7917
SELECT ALL - - COUNT ( * ) * + - ( COUNT ( * ) ) AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7918
SELECT ALL ( 53 ) AS col1, - 30 + - - 86 + - ( 4 ) * 72 DIV - COUNT( DISTINCT - 9 ) + + + 31 * - COUNT( * ) + - 40 * + 72
----
53
-2567

skipif mysql # not compatible
query II rowsort label-7918
SELECT ALL ( 53 ) AS col1, - 30 + - - 86 + - ( 4 ) * 72 / - COUNT ( DISTINCT - 9 ) + + + 31 * - COUNT ( * ) + - 40 * + 72
----
53
-2567

onlyif mysql # aggregate syntax: 
query I rowsort label-7919
SELECT - 47 + + MIN( DISTINCT - - 83 )
----
36

skipif mysql # not compatible
query I rowsort label-7919
SELECT - 47 + + MIN ( DISTINCT - - 83 )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-7920
SELECT MIN( DISTINCT - - 98 ) col0
----
98

skipif mysql # not compatible
query I rowsort label-7920
SELECT MIN ( DISTINCT - - 98 ) col0
----
98

query I rowsort
SELECT - COALESCE ( 9, 18 )
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7922
SELECT ALL - 97 + + MIN( ALL 8 )
----
-89

skipif mysql # not compatible
query I rowsort label-7922
SELECT ALL - 97 + + MIN ( ALL 8 )
----
-89

query I rowsort
SELECT - 26 + - 74 + + - 47 + + 74 * + 75
----
5403

query I rowsort
SELECT + 31 - - 38 col2
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-7925
SELECT - COUNT( * ) + - 34 * - 43
----
1461

skipif mysql # not compatible
query I rowsort label-7925
SELECT - COUNT ( * ) + - 34 * - 43
----
1461

query I rowsort
SELECT - ( + 91 ) AS col1
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-7927
SELECT - 78 + + MAX( + + 32 ) - + MAX( ALL 95 ) AS col2
----
-141

skipif mysql # not compatible
query I rowsort label-7927
SELECT - 78 + + MAX ( + + 32 ) - + MAX ( ALL 95 ) AS col2
----
-141

onlyif mysql # aggregate syntax: 
query II rowsort label-7928
SELECT DISTINCT + COUNT( * ) - COUNT( * ) + - 43 col2, - COUNT( DISTINCT + 82 ) * 27 * 30 AS col1
----
-43
-810

skipif mysql # not compatible
query II rowsort label-7928
SELECT DISTINCT + COUNT ( * ) - COUNT ( * ) + - 43 col2, - COUNT ( DISTINCT + 82 ) * 27 * 30 AS col1
----
-43
-810

onlyif mysql # aggregate syntax: 
query I rowsort label-7929
SELECT + CASE + - COUNT( * ) WHEN - + 58 THEN NULL WHEN + - 59 THEN + 1 + - 39 + + MAX( ALL - 92 ) ELSE NULL END + - 75 + 54
----
NULL

skipif mysql # not compatible
query I rowsort label-7929
SELECT + CASE + - COUNT ( * ) WHEN - + 58 THEN NULL WHEN + - 59 THEN + 1 + - 39 + + MAX ( ALL - 92 ) ELSE NULL END + - 75 + 54
----
NULL

query II rowsort
SELECT ALL 78, - 96 AS col1
----
78
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7931
SELECT + CASE 78 WHEN + - NULLIF ( + CAST( NULL AS SIGNED ), - + 14 * - + COUNT( 48 ) * - 65 + - ( - 12 ) ) * - ( - 86 ) THEN - 60 ELSE NULL END + COUNT( ALL 81 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7931
SELECT + CASE 78 WHEN + - NULLIF ( + CAST ( NULL AS INTEGER ), - + 14 * - + COUNT ( 48 ) * - 65 + - ( - 12 ) ) * - ( - 86 ) THEN - 60 ELSE NULL END + COUNT ( ALL 81 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7932
SELECT + 48 + - COUNT( * )
----
47

skipif mysql # not compatible
query I rowsort label-7932
SELECT + 48 + - COUNT ( * )
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-7933
SELECT ALL COUNT( * ) AS col1, COUNT( * ) + - 60 AS col0
----
1
-59

skipif mysql # not compatible
query II rowsort label-7933
SELECT ALL COUNT ( * ) AS col1, COUNT ( * ) + - 60 AS col0
----
1
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-7934
SELECT + COUNT( + 33 ) * + 9 + 64 + 15 * + 51
----
838

skipif mysql # not compatible
query I rowsort label-7934
SELECT + COUNT ( + 33 ) * + 9 + 64 + 15 * + 51
----
838

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7935
SELECT - 45 AS col1, + 28 * - 20 * - 95 * - 45 + - CAST( NULL AS DECIMAL ) + 49 + 50 * 76 / - SUM( ALL 87 ) + 14 + + 16 AS col0
----
-45
NULL

skipif mysql # not compatible
query II rowsort label-7935
SELECT - 45 AS col1, + 28 * - 20 * - 95 * - 45 + - CAST ( NULL AS REAL ) + 49 + 50 * 76 / - SUM ( ALL 87 ) + 14 + + 16 AS col0
----
-45
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7936
SELECT COUNT( * ) DIV - 97 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7936
SELECT COUNT ( * ) / - 97 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7937
SELECT MAX( DISTINCT - 69 ) * - COUNT( * ) AS col2
----
69

skipif mysql # not compatible
query I rowsort label-7937
SELECT MAX ( DISTINCT - 69 ) * - COUNT ( * ) AS col2
----
69

query II rowsort
SELECT ALL - 50, + 79 AS col1
----
-50
79

query I rowsort
SELECT DISTINCT 29 * - 94 AS col2
----
-2726

onlyif mysql # aggregate syntax: 
query I rowsort label-7940
SELECT ALL - - MAX( 22 )
----
22

skipif mysql # not compatible
query I rowsort label-7940
SELECT ALL - - MAX ( 22 )
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7941
SELECT ALL - - CAST( NULL AS SIGNED ), 92 AS col0
----
NULL
92

skipif mysql # not compatible
query II rowsort label-7941
SELECT ALL - - CAST ( NULL AS INTEGER ), 92 AS col0
----
NULL
92

query I rowsort
SELECT DISTINCT + 5 + 29
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-7943
SELECT ALL - - COUNT( * ) AS col1, - 91
----
1
-91

skipif mysql # not compatible
query II rowsort label-7943
SELECT ALL - - COUNT ( * ) AS col1, - 91
----
1
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-7944
SELECT 92 * + 13 + 48 AS col1, 24 * - COUNT( ALL - ( - + 84 ) ) * 6 AS col2
----
1244
-144

skipif mysql # not compatible
query II rowsort label-7944
SELECT 92 * + 13 + 48 AS col1, 24 * - COUNT ( ALL - ( - + 84 ) ) * 6 AS col2
----
1244
-144

query I rowsort
SELECT DISTINCT 63 * - ( + 67 )
----
-4221

onlyif mysql # aggregate syntax: 
query I rowsort label-7946
SELECT ALL - + MAX( ALL + + 32 ) AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-7946
SELECT ALL - + MAX ( ALL + + 32 ) AS col0
----
-32

query I rowsort
SELECT + - ( - 31 ) AS col0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-7948
SELECT ALL - 48 * - COUNT( * ) col0
----
48

skipif mysql # not compatible
query I rowsort label-7948
SELECT ALL - 48 * - COUNT ( * ) col0
----
48

query I rowsort
SELECT ( + + ( + NULLIF ( - 32, - + 8 - - 21 * + 13 ) ) )
----
-32

query I rowsort
SELECT ALL 21 + + 57
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7951
SELECT DISTINCT + 78 + + - ( - 52 ) + COUNT( * ) + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7951
SELECT DISTINCT + 78 + + - ( - 52 ) + COUNT ( * ) + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7952
SELECT ALL + + 75 + 62 + + 77, - COUNT( * ) * + 63 + + - ( - - 52 ) col1
----
214
-115

skipif mysql # not compatible
query II rowsort label-7952
SELECT ALL + + 75 + 62 + + 77, - COUNT ( * ) * + 63 + + - ( - - 52 ) col1
----
214
-115

onlyif mysql # aggregate syntax: 
query I rowsort label-7953
SELECT - 74 + + 36 + 35 * - 12 * COUNT( * ) * - - 79 - 85
----
-33303

skipif mysql # not compatible
query I rowsort label-7953
SELECT - 74 + + 36 + 35 * - 12 * COUNT ( * ) * - - 79 - 85
----
-33303

onlyif mysql # aggregate syntax: 
query I rowsort label-7954
SELECT 48 * + - COUNT( * )
----
-48

skipif mysql # not compatible
query I rowsort label-7954
SELECT 48 * + - COUNT ( * )
----
-48

query I rowsort
SELECT DISTINCT + 29 + + + 47
----
76

onlyif mysql # DIV for integer division: 
query II rowsort label-7956
SELECT DISTINCT - + 66 AS col1, - 16 + - 92 DIV - 10
----
-66
-7

skipif mysql # not compatible
query II rowsort label-7956
SELECT DISTINCT - + 66 AS col1, - 16 + - 92 / - 10
----
-66
-7

query I rowsort
SELECT 28 * 12 AS col2
----
336

onlyif mysql # DIV for integer division: 
query I rowsort label-7958
SELECT ( - 56 ) DIV - - NULLIF ( - 11, AVG ( ALL - ( + 92 ) ) )
----
5

skipif mysql # not compatible
query I rowsort label-7958
SELECT ( - 56 ) / - - NULLIF ( - 11, AVG ( ALL - ( + 92 ) ) )
----
5

query I rowsort
SELECT + 23 + + - 13 AS col2
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7960
SELECT DISTINCT + 56 DIV - MIN( 91 )
----
0

skipif mysql # not compatible
query I rowsort label-7960
SELECT DISTINCT + 56 / - MIN ( 91 )
----
0

query I rowsort
SELECT 80 + - + 94
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-7962
SELECT ALL + 39 * + + COUNT( * ) AS col2
----
39

skipif mysql # not compatible
query I rowsort label-7962
SELECT ALL + 39 * + + COUNT ( * ) AS col2
----
39

query I rowsort
SELECT DISTINCT - 84 * + 44 AS col2
----
-3696

onlyif mysql # aggregate syntax: 
query I rowsort label-7964
SELECT DISTINCT - COUNT( * ) - 97 AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-7964
SELECT DISTINCT - COUNT ( * ) - 97 AS col0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-7965
SELECT 70 * - + MIN( 26 ) AS col0
----
-1820

skipif mysql # not compatible
query I rowsort label-7965
SELECT 70 * - + MIN ( 26 ) AS col0
----
-1820

query I rowsort
SELECT ALL - 94 * 0 * - + 29 AS col2
----
0

query I rowsort
SELECT DISTINCT - 85 * - 45 * + + 31
----
118575

query I rowsort
SELECT ALL - 67 * + - 5
----
335

onlyif mysql # aggregate syntax: 
query II rowsort label-7969
SELECT 60 - + 85, CASE - 66 WHEN + 43 THEN + - 19 ELSE NULL END * - 67 / + 92 + COUNT( * ) * 42 AS col1
----
-25
NULL

skipif mysql # not compatible
query II rowsort label-7969
SELECT 60 - + 85, CASE - 66 WHEN + 43 THEN + - 19 ELSE NULL END * - 67 / + 92 + COUNT ( * ) * 42 AS col1
----
-25
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7970
SELECT 96 * + 15 * - CAST( + - 54 AS SIGNED )
----
77760

skipif mysql # not compatible
query I rowsort label-7970
SELECT 96 * + 15 * - CAST ( + - 54 AS INTEGER )
----
77760

query I rowsort
SELECT 86 * 47 AS col0
----
4042

onlyif mysql # DIV for integer division: 
query I rowsort label-7972
SELECT ALL + 31 DIV ( 23 )
----
1

skipif mysql # not compatible
query I rowsort label-7972
SELECT ALL + 31 / ( 23 )
----
1

query I rowsort
SELECT DISTINCT - 77 + - - 78
----
1

query I rowsort
SELECT ALL - 1 + + ( ( - ( + ( + + 75 ) ) ) )
----
-76

query I rowsort
SELECT ALL - 43 + + + 22 AS col2
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7976
SELECT - NULLIF ( - CAST( NULL AS SIGNED ), - 6 * + 11 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7976
SELECT - NULLIF ( - CAST ( NULL AS INTEGER ), - 6 * + 11 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7977
SELECT - 8 DIV 8
----
-1

skipif mysql # not compatible
query I rowsort label-7977
SELECT - 8 / 8
----
-1

query I rowsort
SELECT - 22 * ( - 82 )
----
1804

query I rowsort
SELECT - 91 + - - 30 col2
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7980
SELECT - CAST( - 93 AS SIGNED ) * - - CASE + - 38 WHEN - ( + 97 ) - - NULLIF ( + + 30, - 83 * - 40 * - 89 - + MAX( + 18 ) + + - COUNT( - ( + + 33 ) ) / - - 63 ) THEN - + ( + + CAST( NULL AS DECIMAL ) ) + + - 39 END / - COUNT( * ) + + 11 + + - 18 + + 88 - 40 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7980
SELECT - CAST ( - 93 AS INTEGER ) * - - CASE + - 38 WHEN - ( + 97 ) - - NULLIF ( + + 30, - 83 * - 40 * - 89 - + MAX ( + 18 ) + + - COUNT ( - ( + + 33 ) ) / - - 63 ) THEN - + ( + + CAST ( NULL AS REAL ) ) + + - 39 END / - COUNT ( * ) + + 11 + + - 18 + + 88 - 40 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7981
SELECT DISTINCT - ( + 58 ) AS col0, COUNT( * ) AS col2
----
-58
1

skipif mysql # not compatible
query II rowsort label-7981
SELECT DISTINCT - ( + 58 ) AS col0, COUNT ( * ) AS col2
----
-58
1

query I rowsort
SELECT ALL 75 + + 77 AS col1
----
152

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7983
SELECT NULLIF ( + - CAST( NULL AS SIGNED ), + - 97 * + CAST( NULL AS SIGNED ) + - 94 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7983
SELECT NULLIF ( + - CAST ( NULL AS INTEGER ), + - 97 * + CAST ( NULL AS INTEGER ) + - 94 ) col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7984
SELECT DISTINCT - + CAST( - MIN( ALL + 33 ) AS SIGNED ) col2
----
33

skipif mysql # not compatible
query I rowsort label-7984
SELECT DISTINCT - + CAST ( - MIN ( ALL + 33 ) AS INTEGER ) col2
----
33

query I rowsort
SELECT + 35 * - 80 - - 69 AS col1
----
-2731

query I rowsort
SELECT ALL + 75 * + + 96 * - 89
----
-640800

query I rowsort
SELECT DISTINCT + 52 * - 34 AS col0
----
-1768

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7988
SELECT + CAST( - 66 AS SIGNED ) * + 84 - + + 48 col1
----
-5592

skipif mysql # not compatible
query I rowsort label-7988
SELECT + CAST ( - 66 AS INTEGER ) * + 84 - + + 48 col1
----
-5592

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7989
SELECT + COALESCE ( + 80, CAST( NULL AS SIGNED ) * + - 39, - CAST( NULL AS SIGNED ) ) + - 11 * COUNT( * )
----
69

skipif mysql # not compatible
query I rowsort label-7989
SELECT + COALESCE ( + 80, CAST ( NULL AS INTEGER ) * + - 39, - CAST ( NULL AS INTEGER ) ) + - 11 * COUNT ( * )
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7990
SELECT - CAST( NULL AS SIGNED ) / - 9 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7990
SELECT - CAST ( NULL AS INTEGER ) / - 9 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7991
SELECT DISTINCT MAX( 60 ) AS col0
----
60

skipif mysql # not compatible
query I rowsort label-7991
SELECT DISTINCT MAX ( 60 ) AS col0
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7992
SELECT + 13 + - + 20 + COALESCE ( CAST( + - 7 AS SIGNED ), - 71 ) * 78 - + - 72 AS col0
----
-481

skipif mysql # not compatible
query I rowsort label-7992
SELECT + 13 + - + 20 + COALESCE ( CAST ( + - 7 AS INTEGER ), - 71 ) * 78 - + - 72 AS col0
----
-481

query I rowsort
SELECT - 18 - 90 col1
----
-108

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7994
SELECT ALL + COUNT( * ) DIV - 15
----
0

skipif mysql # not compatible
query I rowsort label-7994
SELECT ALL + COUNT ( * ) / - 15
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7995
SELECT ALL - NULLIF ( - 19, - + 32 * COUNT( + 80 ) ) * 23 * - - ( - 69 ) + 98 + + 48, - COUNT( * ) AS col0
----
-30007
-1

skipif mysql # not compatible
query II rowsort label-7995
SELECT ALL - NULLIF ( - 19, - + 32 * COUNT ( + 80 ) ) * 23 * - - ( - 69 ) + 98 + + 48, - COUNT ( * ) AS col0
----
-30007
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-7996
SELECT ALL COUNT( * ), + 89 + + COUNT( * ) col2
----
1
90

skipif mysql # not compatible
query II rowsort label-7996
SELECT ALL COUNT ( * ), + 89 + + COUNT ( * ) col2
----
1
90

query I rowsort
SELECT ALL + 9 + 19 col0
----
28

query I rowsort
SELECT - 59 + + 21
----
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-7999
SELECT ALL COALESCE ( - - MIN( ALL - 88 ), + 56 * - COUNT( * ) ), - 42 AS col0
----
-88
-42

skipif mysql # not compatible
query II rowsort label-7999
SELECT ALL COALESCE ( - - MIN ( ALL - 88 ), + 56 * - COUNT ( * ) ), - 42 AS col0
----
-88
-42

query I rowsort
SELECT ALL + 36 + - + 99 + + + 30 - + - 12 + 30 * - 67 + - 40 * + 70 * + + 96 AS col2
----
-270831

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8001
SELECT - + AVG ( ALL + CAST( + - ( - 47 ) AS SIGNED ) ) + + 4 + - CAST( NULL AS SIGNED ) / - ( - 32 ) + - - 36 + - 78 * - COUNT( * ) + - 77
----
NULL

skipif mysql # not compatible
query I rowsort label-8001
SELECT - + AVG ( ALL + CAST ( + - ( - 47 ) AS INTEGER ) ) + + 4 + - CAST ( NULL AS INTEGER ) / - ( - 32 ) + - - 36 + - 78 * - COUNT ( * ) + - 77
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8002
SELECT ALL - - 9 + - - MIN( ALL - 93 ) AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-8002
SELECT ALL - - 9 + - - MIN ( ALL - 93 ) AS col0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-8003
SELECT - SUM( DISTINCT 84 ) AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-8003
SELECT - SUM ( DISTINCT 84 ) AS col2
----
-84

query I rowsort
SELECT - 97 * - + 89
----
8633

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-8005
SELECT - 61 col0, CAST( COUNT( * ) AS SIGNED ) AS col2, + + NULLIF ( 13, - 21 )
----
-61
1
13

skipif mysql # not compatible
query III rowsort label-8005
SELECT - 61 col0, CAST ( COUNT ( * ) AS INTEGER ) AS col2, + + NULLIF ( 13, - 21 )
----
-61
1
13

query I rowsort
SELECT DISTINCT - - 33 + + 22
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-8007
SELECT DISTINCT - + SUM( ALL 84 ) * CASE ( + 54 ) WHEN + - 21 THEN 64 END + + 89 / 78 * - ( + 60 ) - - 67
----
NULL

skipif mysql # not compatible
query I rowsort label-8007
SELECT DISTINCT - + SUM ( ALL 84 ) * CASE ( + 54 ) WHEN + - 21 THEN 64 END + + 89 / 78 * - ( + 60 ) - - 67
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-8008
SELECT ALL + - 86 * + 34 + - COALESCE ( + ( + + CASE WHEN NULL <= NULL THEN + 86 ELSE NULL END ), - NULLIF ( + NULLIF ( + 22, - CAST( 61 AS SIGNED ) ), + CASE + 41 WHEN + 69 THEN - 45 + - 26 WHEN ( 28 ) + + - CAST( + COUNT( * ) AS DECIMAL ) - 72 THEN + 16 DIV 57 + - + 88 * + + CASE 56 WHEN 9 + - CAST( NULL AS SIGNED ) THEN - 37 + - - 82 + 32 * 31 * - 55 ELSE NULL END WHEN + 43 * - COUNT( * ) THEN NULL END ) ) + - CAST( + 51 AS SIGNED ) + - 23 DIV + + 56 + - COALESCE ( 93, COUNT( * ) + - COUNT( * ), 69 ) * - COUNT( * )
----
-2860

skipif mysql # not compatible
query I rowsort label-8008
SELECT ALL + - 86 * + 34 + - COALESCE ( + ( + + CASE WHEN NULL <= NULL THEN + 86 ELSE NULL END ), - NULLIF ( + NULLIF ( + 22, - CAST ( 61 AS INTEGER ) ), + CASE + 41 WHEN + 69 THEN - 45 + - 26 WHEN ( 28 ) + + - CAST ( + COUNT ( * ) AS REAL ) - 72 THEN + 16 / 57 + - + 88 * + + CASE 56 WHEN 9 + - CAST ( NULL AS INTEGER ) THEN - 37 + - - 82 + 32 * 31 * - 55 ELSE NULL END WHEN + 43 * - COUNT ( * ) THEN NULL END ) ) + - CAST ( + 51 AS INTEGER ) + - 23 / + + 56 + - COALESCE ( 93, COUNT ( * ) + - COUNT ( * ), 69 ) * - COUNT ( * )
----
-2860

query I rowsort
SELECT ALL + ( - 77 ) AS col0
----
-77

query I rowsort
SELECT DISTINCT 81 * + + 82 AS col0
----
6642

query I rowsort
SELECT ALL + + 29 * + - 90
----
-2610

query I rowsort
SELECT - - 65 * + 56 AS col1
----
3640

query I rowsort
SELECT DISTINCT 48 * + 19
----
912

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8014
SELECT ALL SUM( - 88 ) * + + 55 + - 78 DIV 93 DIV - + 69 * - 50 * - 65 * 33 + COALESCE ( 80, + 13 * + - COUNT( * ) + + + 13 + - - COUNT( * ) + - NULLIF ( + 41, 20 ) + CAST( NULL AS SIGNED ) * 18 DIV - 13 * MAX( + 58 ) )
----
-4760

skipif mysql # not compatible
query I rowsort label-8014
SELECT ALL SUM ( - 88 ) * + + 55 + - 78 / 93 / - + 69 * - 50 * - 65 * 33 + COALESCE ( 80, + 13 * + - COUNT ( * ) + + + 13 + - - COUNT ( * ) + - NULLIF ( + 41, 20 ) + CAST ( NULL AS INTEGER ) * 18 / - 13 * MAX ( + 58 ) )
----
-4760

query I rowsort
SELECT + 8 * - 44 * + 56 + 7
----
-19705

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8016
SELECT + 96 * CAST( - COUNT( * ) AS SIGNED ) col1
----
-96

skipif mysql # not compatible
query I rowsort label-8016
SELECT + 96 * CAST ( - COUNT ( * ) AS INTEGER ) col1
----
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8017
SELECT - COUNT( * ) DIV 31 DIV + 92 + + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-8017
SELECT - COUNT ( * ) / 31 / + 92 + + + COUNT ( * )
----
1

query I rowsort
SELECT DISTINCT - - 87 * 59 + - 13 + + 25 AS col1
----
5145

query I rowsort
SELECT + - 7 + - + 42
----
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-8020
SELECT ALL + 0 AS col1, - COUNT( * ) * 3 AS col2
----
0
-3

skipif mysql # not compatible
query II rowsort label-8020
SELECT ALL + 0 AS col1, - COUNT ( * ) * 3 AS col2
----
0
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-8021
SELECT DISTINCT + 3, + MAX( DISTINCT ( 36 ) ) AS col1
----
3
36

skipif mysql # not compatible
query II rowsort label-8021
SELECT DISTINCT + 3, + MAX ( DISTINCT ( 36 ) ) AS col1
----
3
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8022
SELECT + NULLIF ( - CAST( NULL AS SIGNED ), 57 ) * 43 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8022
SELECT + NULLIF ( - CAST ( NULL AS INTEGER ), 57 ) * 43 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 92 * 20 + + 9 AS col0
----
1849

query II rowsort
SELECT ALL + 16 AS col1, + 23 * - 26 - - 1 + + + 6 * + 91 * 4 * 37 AS col1
----
16
80211

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8025
SELECT + MIN( ALL - 91 ) AS col0, 19 * - 97 DIV COUNT( * )
----
-91
-1843

skipif mysql # not compatible
query II rowsort label-8025
SELECT + MIN ( ALL - 91 ) AS col0, 19 * - 97 / COUNT ( * )
----
-91
-1843

query I rowsort
SELECT + 25 + + 20 * - 20 AS col2
----
-375

query I rowsort
SELECT + ( + 12 ) col0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-8028
SELECT ALL 17 * + 64 + + NULLIF ( - + COUNT( * ), + 50 + - + 10 ) AS col2
----
1087

skipif mysql # not compatible
query I rowsort label-8028
SELECT ALL 17 * + 64 + + NULLIF ( - + COUNT ( * ), + 50 + - + 10 ) AS col2
----
1087

onlyif mysql # aggregate syntax: 
query I rowsort label-8029
SELECT + 19 + - - COALESCE ( MIN( ALL + 20 ), + - 33 * + 41 )
----
39

skipif mysql # not compatible
query I rowsort label-8029
SELECT + 19 + - - COALESCE ( MIN ( ALL + 20 ), + - 33 * + 41 )
----
39

query I rowsort
SELECT ALL ( + + 17 ) * + - 47 + + ( + ( + + 31 ) ) AS col1
----
-768

query I rowsort
SELECT - 95 + + 17
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-8032
SELECT COUNT( DISTINCT 22 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8032
SELECT COUNT ( DISTINCT 22 ) AS col0
----
1

query I rowsort
SELECT ALL 89 * 35
----
3115

onlyif mysql # aggregate syntax: 
query I rowsort label-8034
SELECT DISTINCT + ( + 7 ) + COUNT( * ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-8034
SELECT DISTINCT + ( + 7 ) + COUNT ( * ) AS col2
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8035
SELECT DISTINCT COUNT( * ) + 50 + + 37 + + - COUNT( * ) DIV + - COUNT( * )
----
89

skipif mysql # not compatible
query I rowsort label-8035
SELECT DISTINCT COUNT ( * ) + 50 + + 37 + + - COUNT ( * ) / + - COUNT ( * )
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8036
SELECT ALL COALESCE ( 3, + 15 + - + MAX( + 64 ), + 63 ), CASE - 39 WHEN COUNT( * ) + - 10 + + CAST( + 99 AS SIGNED ) * - COUNT( * ) / - + AVG ( + 59 ) / 25 + ( - ( - 29 ) ) + + 28 THEN + 76 * - + 50 END + + 45 * + 1 col0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-8036
SELECT ALL COALESCE ( 3, + 15 + - + MAX ( + 64 ), + 63 ), CASE - 39 WHEN COUNT ( * ) + - 10 + + CAST ( + 99 AS INTEGER ) * - COUNT ( * ) / - + AVG ( + 59 ) / 25 + ( - ( - 29 ) ) + + 28 THEN + 76 * - + 50 END + + 45 * + 1 col0
----
3
NULL

query I rowsort
SELECT DISTINCT 82 + - 26
----
56

query I rowsort
SELECT - ( 42 ) col2
----
-42

query II rowsort
SELECT 9 AS col2, + 2
----
9
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8040
SELECT + NULLIF ( + + 57, + + 48 ) - COUNT( * ) * + - 86 DIV - - 5 + + 93
----
167

skipif mysql # not compatible
query I rowsort label-8040
SELECT + NULLIF ( + + 57, + + 48 ) - COUNT ( * ) * + - 86 / - - 5 + + 93
----
167

onlyif mysql # aggregate syntax: 
query I rowsort label-8041
SELECT + 81 - - COUNT( * ) col0
----
82

skipif mysql # not compatible
query I rowsort label-8041
SELECT + 81 - - COUNT ( * ) col0
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8042
SELECT - 51 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8042
SELECT - 51 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8043
SELECT + 95 * 77 * - 54 - + 42 + COALESCE ( + + COUNT( * ), - + 23, + 63 )
----
-395051

skipif mysql # not compatible
query I rowsort label-8043
SELECT + 95 * 77 * - 54 - + 42 + COALESCE ( + + COUNT ( * ), - + 23, + 63 )
----
-395051

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8044
SELECT - + ( - - MAX( ALL + CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8044
SELECT - + ( - - MAX ( ALL + CAST ( NULL AS INTEGER ) ) )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8045
SELECT ALL - 5 AS col1, - 48 DIV - 89
----
-5
0

skipif mysql # not compatible
query II rowsort label-8045
SELECT ALL - 5 AS col1, - 48 / - 89
----
-5
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8046
SELECT ALL - COUNT( ALL - 47 ) - + 36 + - 93 AS col2
----
-130

skipif mysql # not compatible
query I rowsort label-8046
SELECT ALL - COUNT ( ALL - 47 ) - + 36 + - 93 AS col2
----
-130

onlyif mysql # aggregate syntax: 
query I rowsort label-8047
SELECT - - 55 * - - COUNT( ALL 41 ) * + - 38 + 44 + - 53 AS col1
----
-2099

skipif mysql # not compatible
query I rowsort label-8047
SELECT - - 55 * - - COUNT ( ALL 41 ) * + - 38 + 44 + - 53 AS col1
----
-2099

onlyif mysql # aggregate syntax: 
query I rowsort label-8048
SELECT DISTINCT - + COUNT( * ) - - - 52 * - + 35 AS col2
----
1819

skipif mysql # not compatible
query I rowsort label-8048
SELECT DISTINCT - + COUNT ( * ) - - - 52 * - + 35 AS col2
----
1819

onlyif mysql # aggregate syntax: 
query I rowsort label-8049
SELECT ALL + SUM( DISTINCT + 60 ) * + - 87 AS col0
----
-5220

skipif mysql # not compatible
query I rowsort label-8049
SELECT ALL + SUM ( DISTINCT + 60 ) * + - 87 AS col0
----
-5220

onlyif mysql # aggregate syntax: 
query I rowsort label-8050
SELECT - 40 + + MAX( ALL + + 34 ) * - + 65 + - COALESCE ( 66, + COALESCE ( + + COALESCE ( + - 58, + 69 * - ( - 68 ) * + + 74 + - 53 ), 80 ) ) * - + 71
----
2436

skipif mysql # not compatible
query I rowsort label-8050
SELECT - 40 + + MAX ( ALL + + 34 ) * - + 65 + - COALESCE ( 66, + COALESCE ( + + COALESCE ( + - 58, + 69 * - ( - 68 ) * + + 74 + - 53 ), 80 ) ) * - + 71
----
2436

query II rowsort
SELECT + 74, + ( - 90 ) AS col2
----
74
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-8052
SELECT - 67 * MIN( DISTINCT + NULLIF ( + + 86, - - 2 ) ) AS col2
----
-5762

skipif mysql # not compatible
query I rowsort label-8052
SELECT - 67 * MIN ( DISTINCT + NULLIF ( + + 86, - - 2 ) ) AS col2
----
-5762

onlyif mysql # aggregate syntax: 
query II rowsort label-8053
SELECT + 6 * + ( - 54 ) + MAX( 99 ) * 44 * + - 83 + + 94 + 51 AS col0, 41 * + ( + ( 84 ) ) * - MAX( - 48 ) * + COALESCE ( + + 88, + 37 ) AS col0
----
-361727
14547456

skipif mysql # not compatible
query II rowsort label-8053
SELECT + 6 * + ( - 54 ) + MAX ( 99 ) * 44 * + - 83 + + 94 + 51 AS col0, 41 * + ( + ( 84 ) ) * - MAX ( - 48 ) * + COALESCE ( + + 88, + 37 ) AS col0
----
-361727
14547456

onlyif mysql # aggregate syntax: 
query I rowsort label-8054
SELECT - - 53 * + + ( - COUNT( * ) ) + - 8 - + COUNT( * )
----
-62

skipif mysql # not compatible
query I rowsort label-8054
SELECT - - 53 * + + ( - COUNT ( * ) ) + - 8 - + COUNT ( * )
----
-62

query I rowsort
SELECT ALL + - 86 col0
----
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-8056
SELECT DISTINCT + - COUNT( * ) AS col0, ( 80 )
----
-1
80

skipif mysql # not compatible
query II rowsort label-8056
SELECT DISTINCT + - COUNT ( * ) AS col0, ( 80 )
----
-1
80

query II rowsort
SELECT ALL 43 * - 21 AS col2, 88 AS col1
----
-903
88

onlyif mysql # aggregate syntax: 
query I rowsort label-8058
SELECT 80 * + 10 * + - COUNT( * ) AS col2
----
-800

skipif mysql # not compatible
query I rowsort label-8058
SELECT 80 * + 10 * + - COUNT ( * ) AS col2
----
-800

onlyif mysql # DIV for integer division: 
query I rowsort label-8059
SELECT ALL - 35 DIV - 41 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8059
SELECT ALL - 35 / - 41 AS col2
----
0

query I rowsort
SELECT ALL - NULLIF ( 29, - 28 ) AS col0
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8061
SELECT DISTINCT - 26 * - - 16 * - COUNT( - - CAST( NULL AS SIGNED ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8061
SELECT DISTINCT - 26 * - - 16 * - COUNT ( - - CAST ( NULL AS INTEGER ) ) AS col1
----
0

query I rowsort
SELECT + 50 * - - 0 * + - 63 - - 58 AS col2
----
58

query II rowsort
SELECT DISTINCT - ( + 85 ) AS col1, + 15
----
-85
15

onlyif mysql # DIV for integer division: 
query II rowsort label-8064
SELECT 70 + - + 67, + 60 DIV + ( + 73 ) AS col0
----
3
0

skipif mysql # not compatible
query II rowsort label-8064
SELECT 70 + - + 67, + 60 / + ( + 73 ) AS col0
----
3
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8065
SELECT ALL COUNT( * ) + + - COUNT( * ) + 0
----
0

skipif mysql # not compatible
query I rowsort label-8065
SELECT ALL COUNT ( * ) + + - COUNT ( * ) + 0
----
0

query II rowsort
SELECT DISTINCT + 63 * - 47, - NULLIF ( 4, + 57 ) AS col2
----
-2961
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8067
SELECT 95 - NULLIF ( + - ( + 62 ), - 5 + + MAX( + - CAST( + 37 AS SIGNED ) ) )
----
157

skipif mysql # not compatible
query I rowsort label-8067
SELECT 95 - NULLIF ( + - ( + 62 ), - 5 + + MAX ( + - CAST ( + 37 AS INTEGER ) ) )
----
157

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8068
SELECT DISTINCT 95 DIV - + SUM( ALL + + 11 )
----
-8

skipif mysql # not compatible
query I rowsort label-8068
SELECT DISTINCT 95 / - + SUM ( ALL + + 11 )
----
-8

query II rowsort
SELECT ALL ( + 15 ) + - - 15, - 85 AS col0
----
30
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-8070
SELECT ALL COUNT( * ) + ( 87 ) AS col2
----
88

skipif mysql # not compatible
query I rowsort label-8070
SELECT ALL COUNT ( * ) + ( 87 ) AS col2
----
88

query II rowsort
SELECT ALL 41 + - - 80, 32 * 97 AS col1
----
121
3104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8072
SELECT COUNT( * ) + + - CAST( - 86 AS SIGNED ) + - + 16 * ( 32 ) * + - COUNT( * ) AS col1, ( + 36 ) AS col2
----
599
36

skipif mysql # not compatible
query II rowsort label-8072
SELECT COUNT ( * ) + + - CAST ( - 86 AS INTEGER ) + - + 16 * ( 32 ) * + - COUNT ( * ) AS col1, ( + 36 ) AS col2
----
599
36

query I rowsort
SELECT 14 + - 50 + - 4 - ( - 54 ) * CASE 42 WHEN 83 THEN + 35 ELSE + - 71 END + 42 * - 2 + - ( + 54 ) AS col1
----
-4012

query I rowsort
SELECT ALL - 64 * ( + NULLIF ( - + 76, + 80 ) ) AS col0
----
4864

query II rowsort
SELECT COALESCE ( - 59, - 74 ) * 47 + - + 28 - + 50 - 70 AS col0, + 34
----
-2921
34

query II rowsort
SELECT ALL - 20 * + 81 * - 93 AS col0, ( + - 3 ) AS col0
----
150660
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8077
SELECT ALL COALESCE ( + COUNT( ALL + CAST( + 90 AS SIGNED ) ), + + 7 * - 1 * 51 + 9 + - 86 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-8077
SELECT ALL COALESCE ( + COUNT ( ALL + CAST ( + 90 AS INTEGER ) ), + + 7 * - 1 * 51 + 9 + - 86 ) col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8078
SELECT - - MAX( ALL + 35 ) AS col1, COUNT( * ) AS col1
----
35
1

skipif mysql # not compatible
query II rowsort label-8078
SELECT - - MAX ( ALL + 35 ) AS col1, COUNT ( * ) AS col1
----
35
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8079
SELECT 69 + - + CASE - CAST( + 42 AS SIGNED ) WHEN - 14 * 3 + CASE + - 57 WHEN - - 34 THEN - + ( + 97 ) - - 4 + + COUNT( * ) ELSE NULL END THEN NULL WHEN - 30 * 22 + + - 60 * 20 THEN 62 ELSE NULL END, + COUNT( * ) AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-8079
SELECT 69 + - + CASE - CAST ( + 42 AS INTEGER ) WHEN - 14 * 3 + CASE + - 57 WHEN - - 34 THEN - + ( + 97 ) - - 4 + + COUNT ( * ) ELSE NULL END THEN NULL WHEN - 30 * 22 + + - 60 * 20 THEN 62 ELSE NULL END, + COUNT ( * ) AS col1
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8080
SELECT ALL 98 - - 77 + 48 + COUNT( * )
----
224

skipif mysql # not compatible
query I rowsort label-8080
SELECT ALL 98 - - 77 + 48 + COUNT ( * )
----
224

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8081
SELECT COUNT( * ) DIV - + ( - - MIN( ALL + + 94 ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8081
SELECT COUNT ( * ) / - + ( - - MIN ( ALL + + 94 ) ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8082
SELECT 33 + + 6 col2, + COUNT( - 93 )
----
39
1

skipif mysql # not compatible
query II rowsort label-8082
SELECT 33 + + 6 col2, + COUNT ( - 93 )
----
39
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8083
SELECT 92 * + - 73, + COALESCE ( SUM( DISTINCT - + 88 ), - 83 + - 49 + 57 * + 45 * 3 + - 40 + - 55 * + 0 * - - 63 * 19 ) * + 86 AS col2
----
-6716
-7568

skipif mysql # not compatible
query II rowsort label-8083
SELECT 92 * + - 73, + COALESCE ( SUM ( DISTINCT - + 88 ), - 83 + - 49 + 57 * + 45 * 3 + - 40 + - 55 * + 0 * - - 63 * 19 ) * + 86 AS col2
----
-6716
-7568

onlyif mysql # aggregate syntax: 
query I rowsort label-8084
SELECT CASE WHEN - 64 >= NULL THEN + 55 WHEN + SUM( DISTINCT + + 56 ) NOT BETWEEN 71 * - AVG ( - 96 ) * - ( - 46 ) + + NULLIF ( - 53, - + 88 ) * + CASE WHEN CASE + COUNT( * ) WHEN - + 75 THEN - - 44 ELSE - - 73 END <= + + 53 * + - 10 THEN + + SUM( DISTINCT + 34 ) * - 1 / 55 END / - 89 * + COUNT( * ) / + 6 + + 53 - 40 + - COUNT( * ) * + 77 * 70 AND ( + 26 ) THEN - 40 * + 42 END
----
-1680

skipif mysql # not compatible
query I rowsort label-8084
SELECT CASE WHEN - 64 >= NULL THEN + 55 WHEN + SUM ( DISTINCT + + 56 ) NOT BETWEEN 71 * - AVG ( - 96 ) * - ( - 46 ) + + NULLIF ( - 53, - + 88 ) * + CASE WHEN CASE + COUNT ( * ) WHEN - + 75 THEN - - 44 ELSE - - 73 END <= + + 53 * + - 10 THEN + + SUM ( DISTINCT + 34 ) * - 1 / 55 END / - 89 * + COUNT ( * ) / + 6 + + 53 - 40 + - COUNT ( * ) * + 77 * 70 AND ( + 26 ) THEN - 40 * + 42 END
----
-1680

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8085
SELECT + 18 DIV + + CAST( + 57 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-8085
SELECT + 18 / + + CAST ( + 57 AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8086
SELECT 71 * - 43 AS col0, COUNT( * ) + 96 * 43 * - ( + + ( + SUM( + 26 ) ) ) AS col0
----
-3053
-107327

skipif mysql # not compatible
query II rowsort label-8086
SELECT 71 * - 43 AS col0, COUNT ( * ) + 96 * 43 * - ( + + ( + SUM ( + 26 ) ) ) AS col0
----
-3053
-107327

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8087
SELECT + COUNT( * ) * - 71 + ( CAST( + 27 AS SIGNED ) ) DIV COUNT( * )
----
-44

skipif mysql # not compatible
query I rowsort label-8087
SELECT + COUNT ( * ) * - 71 + ( CAST ( + 27 AS INTEGER ) ) / COUNT ( * )
----
-44

query I rowsort
SELECT ALL - - 82 * + 67 AS col2
----
5494

query I rowsort
SELECT 61 + - 46
----
15

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query III rowsort label-8090
SELECT ALL + 76 + + - 5 * 80 col1, 10 DIV - + 74 * - 43, CAST( NULL AS SIGNED ) col1
----
-324
0
NULL

skipif mysql # not compatible
query III rowsort label-8090
SELECT ALL + 76 + + - 5 * 80 col1, 10 / - + 74 * - 43, CAST ( NULL AS INTEGER ) col1
----
-324
0
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8091
SELECT + 84 * - 70 + 99 col0, - COUNT( * )
----
-5781
-1

skipif mysql # not compatible
query II rowsort label-8091
SELECT + 84 * - 70 + 99 col0, - COUNT ( * )
----
-5781
-1

query I rowsort
SELECT DISTINCT - NULLIF ( + 49, - 78 / + + 71 )
----
-49

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8093
SELECT CAST( - - 72 AS SIGNED ) DIV - + CAST( 40 AS SIGNED ) + 37
----
36

skipif mysql # not compatible
query I rowsort label-8093
SELECT CAST ( - - 72 AS INTEGER ) / - + CAST ( 40 AS INTEGER ) + 37
----
36

query II rowsort
SELECT ALL - 4 + + COALESCE ( + 84, + 22, + - 77 ) + + 26, 35 AS col2
----
106
35

query I rowsort
SELECT ALL - ( + + ( 61 ) )
----
-61

query II rowsort
SELECT 18 col0, 51 col1
----
18
51

query I rowsort
SELECT ALL + 76 + - - 89 AS col2
----
165

onlyif mysql # DIV for integer division: 
query I rowsort label-8098
SELECT DISTINCT - 22 + 75 DIV 20
----
-19

skipif mysql # not compatible
query I rowsort label-8098
SELECT DISTINCT - 22 + 75 / 20
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8099
SELECT DISTINCT - CAST( + + CASE + - 94 WHEN 5 THEN 98 END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8099
SELECT DISTINCT - CAST ( + + CASE + - 94 WHEN 5 THEN 98 END AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8100
SELECT ALL - MAX( + 49 ) + - COUNT( * ) + - ( + - 29 ) * + - 0 * + + 52 col0
----
-50

skipif mysql # not compatible
query I rowsort label-8100
SELECT ALL - MAX ( + 49 ) + - COUNT ( * ) + - ( + - 29 ) * + - 0 * + + 52 col0
----
-50

query I rowsort
SELECT 5 + - 8 + + 91
----
88

query I rowsort
SELECT ALL - 4 + + 69
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8103
SELECT DISTINCT - 86 / CAST( NULL AS SIGNED ) * ( - 40 ) AS col0, - CAST( + 28 AS SIGNED ) * + 1 AS col2
----
NULL
-28

skipif mysql # not compatible
query II rowsort label-8103
SELECT DISTINCT - 86 / CAST ( NULL AS INTEGER ) * ( - 40 ) AS col0, - CAST ( + 28 AS INTEGER ) * + 1 AS col2
----
NULL
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-8104
SELECT DISTINCT - ( + ( + MAX( DISTINCT - 94 ) ) ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-8104
SELECT DISTINCT - ( + ( + MAX ( DISTINCT - 94 ) ) ) AS col2
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8105
SELECT ALL - 77 + + COALESCE ( - MIN( - 42 ), - + 84, + + COUNT( * ) + + COUNT( * ), + COUNT( * ) ) + + + 94 * - 9
----
-881

skipif mysql # not compatible
query I rowsort label-8105
SELECT ALL - 77 + + COALESCE ( - MIN ( - 42 ), - + 84, + + COUNT ( * ) + + COUNT ( * ), + COUNT ( * ) ) + + + 94 * - 9
----
-881

onlyif mysql # aggregate syntax: 
query I rowsort label-8106
SELECT ALL SUM( ALL + 34 )
----
34

skipif mysql # not compatible
query I rowsort label-8106
SELECT ALL SUM ( ALL + 34 )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8107
SELECT DISTINCT - MAX( - 18 ) - 49 * - ( + NULLIF ( - + MIN( DISTINCT 41 ), - 7 ) ) col0
----
-1991

skipif mysql # not compatible
query I rowsort label-8107
SELECT DISTINCT - MAX ( - 18 ) - 49 * - ( + NULLIF ( - + MIN ( DISTINCT 41 ), - 7 ) ) col0
----
-1991

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8108
SELECT ALL + 5 * - CASE 85 WHEN + 78 THEN NULL WHEN - - 42 * - COUNT( * ) * - COALESCE ( COUNT( * ), - COUNT( * ) * + - CAST( 91 AS SIGNED ) ) THEN + + CASE CASE - CASE - 19 WHEN + NULLIF ( + 74, - COUNT( * ) ) THEN + COUNT( * ) * - + 40 * - + 83 + - 48 * + 52 END WHEN + 96 + - 49 THEN + COUNT( * ) * - + 18 ELSE NULL END WHEN - 23 THEN + + CASE + + 38 WHEN - COALESCE ( 56, AVG ( DISTINCT - 26 ), - 19 ) * + - 90 THEN - SUM( + 29 ) WHEN - ( - + 87 ) + + 38 THEN 43 ELSE 35 * 3 END - + ( 0 + + 21 ) WHEN - 80 * - 44 + + 29 THEN 95 ELSE NULL END ELSE 43 END * 96
----
-20640

skipif mysql # not compatible
query I rowsort label-8108
SELECT ALL + 5 * - CASE 85 WHEN + 78 THEN NULL WHEN - - 42 * - COUNT ( * ) * - COALESCE ( COUNT ( * ), - COUNT ( * ) * + - CAST ( 91 AS INTEGER ) ) THEN + + CASE CASE - CASE - 19 WHEN + NULLIF ( + 74, - COUNT ( * ) ) THEN + COUNT ( * ) * - + 40 * - + 83 + - 48 * + 52 END WHEN + 96 + - 49 THEN + COUNT ( * ) * - + 18 ELSE NULL END WHEN - 23 THEN + + CASE + + 38 WHEN - COALESCE ( 56, AVG ( DISTINCT - 26 ), - 19 ) * + - 90 THEN - SUM ( + 29 ) WHEN - ( - + 87 ) + + 38 THEN 43 ELSE 35 * 3 END - + ( 0 + + 21 ) WHEN - 80 * - 44 + + 29 THEN 95 ELSE NULL END ELSE 43 END * 96
----
-20640

onlyif mysql # aggregate syntax: 
query I rowsort label-8109
SELECT ALL - COUNT( * ) * 45 col2
----
-45

skipif mysql # not compatible
query I rowsort label-8109
SELECT ALL - COUNT ( * ) * 45 col2
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-8110
SELECT DISTINCT + MIN( DISTINCT - 88 ) - + - 86 * + + ( 5 ) * - 52
----
-22448

skipif mysql # not compatible
query I rowsort label-8110
SELECT DISTINCT + MIN ( DISTINCT - 88 ) - + - 86 * + + ( 5 ) * - 52
----
-22448

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8111
SELECT ALL NULLIF ( 30, 39 ) DIV + CASE - - 42 WHEN + 19 THEN NULL ELSE + + 73 - + - 42 END * 60 + CAST( ( + COUNT( * ) ) AS SIGNED ) * + 66, 0 AS col1
----
66
0

skipif mysql # not compatible
query II rowsort label-8111
SELECT ALL NULLIF ( 30, 39 ) / + CASE - - 42 WHEN + 19 THEN NULL ELSE + + 73 - + - 42 END * 60 + CAST ( ( + COUNT ( * ) ) AS INTEGER ) * + 66, 0 AS col1
----
66
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8112
SELECT COUNT( * ), - 30 + + + 47 + + + 12 + - 47 AS col1
----
1
-18

skipif mysql # not compatible
query II rowsort label-8112
SELECT COUNT ( * ), - 30 + + + 47 + + + 12 + - 47 AS col1
----
1
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-8113
SELECT DISTINCT 30 col1, 15 * - ( + - 23 ) * + 37 + + COUNT( * ) col1
----
30
12766

skipif mysql # not compatible
query II rowsort label-8113
SELECT DISTINCT 30 col1, 15 * - ( + - 23 ) * + 37 + + COUNT ( * ) col1
----
30
12766

onlyif mysql # aggregate syntax: 
query II rowsort label-8114
SELECT COALESCE ( - + 65, - + COUNT( * ) - - 44, + 21 ) * + 79, ( - + 4 ) AS col1
----
-5135
-4

skipif mysql # not compatible
query II rowsort label-8114
SELECT COALESCE ( - + 65, - + COUNT ( * ) - - 44, + 21 ) * + 79, ( - + 4 ) AS col1
----
-5135
-4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8115
SELECT ( 51 ) * + CAST( - + 76 AS SIGNED ) AS col0, 78 * - + 49 col1
----
-3876
-3822

skipif mysql # not compatible
query II rowsort label-8115
SELECT ( 51 ) * + CAST ( - + 76 AS INTEGER ) AS col0, 78 * - + 49 col1
----
-3876
-3822

query I rowsort
SELECT + 66 - - 48 AS col0
----
114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8117
SELECT ALL + CASE 5 WHEN + CASE + CAST( NULL AS SIGNED ) WHEN - 66 + 45 THEN + CASE ( ( ( + + COUNT( * ) ) ) ) WHEN + - 10 THEN + + 52 END + + + 59 * AVG ( DISTINCT - 8 ) ELSE NULL END + - - COUNT( * ) * + 51 + + 62 - - 57 + CAST( - 46 AS SIGNED ) + 51 * + + 59 + - 52 * + 98 * - 84 * 95 THEN NULL WHEN ( - + ( 11 ) ) THEN + ( 18 ) END, 81 DIV ( 18 ) AS col1
----
NULL
4

skipif mysql # not compatible
query II rowsort label-8117
SELECT ALL + CASE 5 WHEN + CASE + CAST ( NULL AS INTEGER ) WHEN - 66 + 45 THEN + CASE ( ( ( + + COUNT ( * ) ) ) ) WHEN + - 10 THEN + + 52 END + + + 59 * AVG ( DISTINCT - 8 ) ELSE NULL END + - - COUNT ( * ) * + 51 + + 62 - - 57 + CAST ( - 46 AS INTEGER ) + 51 * + + 59 + - 52 * + 98 * - 84 * 95 THEN NULL WHEN ( - + ( 11 ) ) THEN + ( 18 ) END, 81 / ( 18 ) AS col1
----
NULL
4

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8118
SELECT ( CAST( NULL AS DECIMAL ) ) - 23 / 7 / + ( + ( ( + SUM( + 75 ) ) ) ) * + 79
----
NULL

skipif mysql # not compatible
query I rowsort label-8118
SELECT ( CAST ( NULL AS REAL ) ) - 23 / 7 / + ( + ( ( + SUM ( + 75 ) ) ) ) * + 79
----
NULL

query I rowsort
SELECT ALL 19 * - 22
----
-418

query I rowsort
SELECT 48 * + 81
----
3888

query I rowsort
SELECT DISTINCT + 59 * + - 11
----
-649

onlyif mysql # aggregate syntax: 
query I rowsort label-8122
SELECT DISTINCT + MIN( + - 63 ) AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-8122
SELECT DISTINCT + MIN ( + - 63 ) AS col2
----
-63

query I rowsort
SELECT ALL - 26 + + 60
----
34

query I rowsort
SELECT ALL 59 + - ( - - ( + 95 ) )
----
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8125
SELECT DISTINCT COUNT( * ) + 45 DIV + ( 21 )
----
3

skipif mysql # not compatible
query I rowsort label-8125
SELECT DISTINCT COUNT ( * ) + 45 / + ( 21 )
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8126
SELECT + 42 - - 58 * COALESCE ( + 22, ( - 6 ) - + - ( 12 ) + - 15 - - + 1 - + + 85 * 78 DIV + COUNT( * ) * + 1 * 50 DIV + + 52 * - 71 DIV - 17 - 35 * - 77, COUNT( * ) ) * - MAX( 19 ) AS col1
----
-24202

skipif mysql # not compatible
query I rowsort label-8126
SELECT + 42 - - 58 * COALESCE ( + 22, ( - 6 ) - + - ( 12 ) + - 15 - - + 1 - + + 85 * 78 / + COUNT ( * ) * + 1 * 50 / + + 52 * - 71 / - 17 - 35 * - 77, COUNT ( * ) ) * - MAX ( 19 ) AS col1
----
-24202

onlyif mysql # aggregate syntax: 
query I rowsort label-8127
SELECT - NULLIF ( - + COALESCE ( - COUNT( * ), + 52 * + 90 ), + 6 )
----
-1

skipif mysql # not compatible
query I rowsort label-8127
SELECT - NULLIF ( - + COALESCE ( - COUNT ( * ), + 52 * + 90 ), + 6 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8128
SELECT + - MAX( DISTINCT ( 38 ) ) DIV - - 66 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8128
SELECT + - MAX ( DISTINCT ( 38 ) ) / - - 66 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8129
SELECT ALL 17 * 16 + + 52 - - - COUNT( * ) + 65 * 54 * - MIN( + 15 )
----
-52327

skipif mysql # not compatible
query I rowsort label-8129
SELECT ALL 17 * 16 + + 52 - - - COUNT ( * ) + 65 * 54 * - MIN ( + 15 )
----
-52327

query I rowsort
SELECT ALL 55 * + 84 + - 84 AS col1
----
4536

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8131
SELECT 71 DIV MAX( + 59 ) * - 46 * 82 + + 13 AS col0
----
-3759

skipif mysql # not compatible
query I rowsort label-8131
SELECT 71 / MAX ( + 59 ) * - 46 * 82 + + 13 AS col0
----
-3759

query I rowsort
SELECT DISTINCT 36 * 82 + + + 67 * + 30 + 18 * 73 AS col0
----
6276

onlyif mysql # DIV for integer division: 
query I rowsort label-8133
SELECT ALL 84 DIV - 25 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-8133
SELECT ALL 84 / - 25 AS col1
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8134
SELECT + CASE 6 WHEN 33 * - + ( 56 ) THEN COUNT( * ) - 22 + + 73 * + + 38 * 15 / + CAST( - 27 AS SIGNED ) - + 71 * + 45 * - + 74 * + + 48 + + CASE + 36 WHEN 55 + - 87 THEN 20 - + 44 WHEN 82 * - + AVG ( - 55 ) - ( + - 10 ) THEN + 23 ELSE + 63 END WHEN - 62 / - 99 + + + COUNT( * ) THEN + 27 + + - NULLIF ( 48, + ( - 31 ) + 19 ) / + 6 * 62 END / 20 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8134
SELECT + CASE 6 WHEN 33 * - + ( 56 ) THEN COUNT ( * ) - 22 + + 73 * + + 38 * 15 / + CAST ( - 27 AS INTEGER ) - + 71 * + 45 * - + 74 * + + 48 + + CASE + 36 WHEN 55 + - 87 THEN 20 - + 44 WHEN 82 * - + AVG ( - 55 ) - ( + - 10 ) THEN + 23 ELSE + 63 END WHEN - 62 / - 99 + + + COUNT ( * ) THEN + 27 + + - NULLIF ( 48, + ( - 31 ) + 19 ) / + 6 * 62 END / 20 AS col1
----
NULL

query I rowsort
SELECT ALL 30 * + 26 + 93
----
873

onlyif mysql # aggregate syntax: 
query II rowsort label-8136
SELECT ALL + 39 * + COUNT( * ) + 98 + COUNT( * ) AS col0, + 59 * 24 col0
----
138
1416

skipif mysql # not compatible
query II rowsort label-8136
SELECT ALL + 39 * + COUNT ( * ) + 98 + COUNT ( * ) AS col0, + 59 * 24 col0
----
138
1416

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8137
SELECT + COALESCE ( + CAST( - 24 AS SIGNED ), 31, + 57 + + ( - 42 ) * + NULLIF ( - + 92, 73 ) + + 1 ) AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-8137
SELECT + COALESCE ( + CAST ( - 24 AS INTEGER ), 31, + 57 + + ( - 42 ) * + NULLIF ( - + 92, 73 ) + + 1 ) AS col2
----
-24

query I rowsort
SELECT + ( 89 ) * + 28 + 81 - - 97 + - + 69
----
2601

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8139
SELECT ALL CASE + - CAST( NULL AS DECIMAL ) WHEN + 66 THEN + + 17 / + - CASE + 46 WHEN - + 68 THEN NULL WHEN - 59 THEN + 57 ELSE NULL END - - - 11 END * + 69 * + - 39 + + 12
----
NULL

skipif mysql # not compatible
query I rowsort label-8139
SELECT ALL CASE + - CAST ( NULL AS REAL ) WHEN + 66 THEN + + 17 / + - CASE + 46 WHEN - + 68 THEN NULL WHEN - 59 THEN + 57 ELSE NULL END - - - 11 END * + 69 * + - 39 + + 12
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8140
SELECT DISTINCT + CASE 83 WHEN 86 * + - 3 * - - 56 + - 9 THEN + 41 ELSE - COUNT( * ) END AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8140
SELECT DISTINCT + CASE 83 WHEN 86 * + - 3 * - - 56 + - 9 THEN + 41 ELSE - COUNT ( * ) END AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8141
SELECT DISTINCT SUM( 70 ) * + 79 AS col0
----
5530

skipif mysql # not compatible
query I rowsort label-8141
SELECT DISTINCT SUM ( 70 ) * + 79 AS col0
----
5530

onlyif mysql # aggregate syntax: 
query I rowsort label-8142
SELECT COUNT( ALL 51 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8142
SELECT COUNT ( ALL 51 ) AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8143
SELECT + 4 * COUNT( * ) * 13 * - - 76 - - COUNT( * ) DIV - COUNT( ALL 40 ) AS col2
----
3951

skipif mysql # not compatible
query I rowsort label-8143
SELECT + 4 * COUNT ( * ) * 13 * - - 76 - - COUNT ( * ) / - COUNT ( ALL 40 ) AS col2
----
3951

query I rowsort
SELECT ALL + ( + - 19 ) AS col0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-8145
SELECT ALL + COUNT( + + 13 )
----
1

skipif mysql # not compatible
query I rowsort label-8145
SELECT ALL + COUNT ( + + 13 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8146
SELECT ALL + MIN( ALL - + 30 )
----
-30

skipif mysql # not compatible
query I rowsort label-8146
SELECT ALL + MIN ( ALL - + 30 )
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-8147
SELECT ALL + SUM( + + 81 )
----
81

skipif mysql # not compatible
query I rowsort label-8147
SELECT ALL + SUM ( + + 81 )
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8148
SELECT - 59 * COUNT( * ) - - 31 + COUNT( DISTINCT + 51 ) + COUNT( * ) * + 3
----
-24

skipif mysql # not compatible
query I rowsort label-8148
SELECT - 59 * COUNT ( * ) - - 31 + COUNT ( DISTINCT + 51 ) + COUNT ( * ) * + 3
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-8149
SELECT ALL - COALESCE ( + 50, - COUNT( * ) )
----
-50

skipif mysql # not compatible
query I rowsort label-8149
SELECT ALL - COALESCE ( + 50, - COUNT ( * ) )
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-8150
SELECT + + 98 + - 30 DIV - NULLIF ( - MAX( 7 ), + CAST( NULL AS DECIMAL ) * - 88 + - 96 ) + + 84 + 72 + - - 92 + - 63 - + 55 DIV - + 62 * + 96 * - CAST( - 99 AS SIGNED ) * - 93 + + 60
----
339

skipif mysql # not compatible
query I rowsort label-8150
SELECT + + 98 + - 30 / - NULLIF ( - MAX ( 7 ), + CAST ( NULL AS REAL ) * - 88 + - 96 ) + + 84 + 72 + - - 92 + - 63 - + 55 / - + 62 * + 96 * - CAST ( - 99 AS INTEGER ) * - 93 + + 60
----
339

query I rowsort
SELECT - - 92 + + 70
----
162

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8152
SELECT - - SUM( 9 ) DIV - 90 * + + COALESCE ( + ( + 30 ), 53 ), 91 col0
----
0
91

skipif mysql # not compatible
query II rowsort label-8152
SELECT - - SUM ( 9 ) / - 90 * + + COALESCE ( + ( + 30 ), 53 ), 91 col0
----
0
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8153
SELECT ALL CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8153
SELECT ALL CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8154
SELECT - - 43 * 96 * + + 82 / - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8154
SELECT - - 43 * 96 * + + 82 / - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - 64 + - - CASE - 68 WHEN 30 THEN + 9 + - - 32 WHEN - 76 * - 59 THEN NULL END AS col2
----
NULL

query I rowsort
SELECT ALL + + 70 * - 36
----
-2520

onlyif mysql # DIV for integer division: 
query I rowsort label-8157
SELECT - 73 DIV 38 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8157
SELECT - 73 / 38 AS col2
----
-1

query I rowsort
SELECT - 91 + + + 10 AS col0
----
-81

query I rowsort
SELECT DISTINCT - - 40 * + - 40 + + 84 AS col1
----
-1516

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8160
SELECT ALL - 96 + + 8 + + - CASE - ( + CASE + + 92 WHEN + 46 * - ( - + SUM( 21 ) ) THEN - 63 WHEN - - 49 * - COUNT( * ) + - + 10 * + 76 * ( + 35 ) + 18 THEN + + CASE - 34 WHEN 77 THEN - SUM( - 88 ) ELSE NULL END ELSE + + 46 * - - 23 - - 21 END ) WHEN - + 90 * + 72 THEN - - 50 * - - 55 ELSE + NULLIF ( + 15, - CAST( - 3 AS DECIMAL ) ) * - 48 END - - 15 * COUNT( * ) AS col0
----
647

skipif mysql # not compatible
query I rowsort label-8160
SELECT ALL - 96 + + 8 + + - CASE - ( + CASE + + 92 WHEN + 46 * - ( - + SUM ( 21 ) ) THEN - 63 WHEN - - 49 * - COUNT ( * ) + - + 10 * + 76 * ( + 35 ) + 18 THEN + + CASE - 34 WHEN 77 THEN - SUM ( - 88 ) ELSE NULL END ELSE + + 46 * - - 23 - - 21 END ) WHEN - + 90 * + 72 THEN - - 50 * - - 55 ELSE + NULLIF ( + 15, - CAST ( - 3 AS REAL ) ) * - 48 END - - 15 * COUNT ( * ) AS col0
----
647

query II rowsort
SELECT - - 91 + 69 AS col2, + 3 AS col1
----
160
3

query I rowsort
SELECT DISTINCT + 27 + 82 col0
----
109

query I rowsort
SELECT DISTINCT - - ( - 21 ) + + - 61 - + + 90
----
-172

query I rowsort
SELECT ALL - 36 + 79 - + + 41 col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8165
SELECT - CASE - COUNT( * ) WHEN 99 THEN NULL WHEN + + CASE + 57 WHEN 25 THEN 85 * 9 * + - COUNT( * ) ELSE NULL END * - 96 + COUNT( * ) THEN + 31 + + + 71 ELSE + AVG ( ALL 89 ) END + + CASE - 47 WHEN COUNT( - + 90 ) * 31 * - 38 * - 70 THEN + 39 WHEN + COALESCE ( - 76, + 94 ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8165
SELECT - CASE - COUNT ( * ) WHEN 99 THEN NULL WHEN + + CASE + 57 WHEN 25 THEN 85 * 9 * + - COUNT ( * ) ELSE NULL END * - 96 + COUNT ( * ) THEN + 31 + + + 71 ELSE + AVG ( ALL 89 ) END + + CASE - 47 WHEN COUNT ( - + 90 ) * 31 * - 38 * - 70 THEN + 39 WHEN + COALESCE ( - 76, + 94 ) THEN NULL END AS col0
----
NULL

query I rowsort
SELECT ALL - 76 + + 65
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8167
SELECT ALL 26 DIV + - 56 + + COUNT( * ) + 86 + - 9 + - - 5 + - + 90 * + 29
----
-2527

skipif mysql # not compatible
query I rowsort label-8167
SELECT ALL 26 / + - 56 + + COUNT ( * ) + 86 + - 9 + - - 5 + - + 90 * + 29
----
-2527

onlyif mysql # DIV for integer division: 
query I rowsort label-8168
SELECT ALL - 11 DIV + 92 + 93 AS col1
----
93

skipif mysql # not compatible
query I rowsort label-8168
SELECT ALL - 11 / + 92 + 93 AS col1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8169
SELECT ALL COUNT( * ) * + 49 col0
----
49

skipif mysql # not compatible
query I rowsort label-8169
SELECT ALL COUNT ( * ) * + 49 col0
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8170
SELECT - 0 DIV COUNT( * ) + + 68 AS col2
----
68

skipif mysql # not compatible
query I rowsort label-8170
SELECT - 0 / COUNT ( * ) + + 68 AS col2
----
68

query I rowsort
SELECT 77 * 23 + + - 79 * - 51 + 71
----
5871

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8172
SELECT + CAST( - + 58 AS SIGNED ) * + - 48
----
2784

skipif mysql # not compatible
query I rowsort label-8172
SELECT + CAST ( - + 58 AS INTEGER ) * + - 48
----
2784

query I rowsort
SELECT - 37 * - 94 + - + 91 * 9
----
2659

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8174
SELECT DISTINCT CAST( NULL AS SIGNED ) / + CAST( - + 29 AS SIGNED ) * 74 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8174
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + CAST ( - + 29 AS INTEGER ) * 74 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 7 * - + 12 - - 61 * - - ( 44 ) AS col2
----
2768

query I rowsort
SELECT + 53 * - 99 * 61
----
-320067

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8177
SELECT ALL + ( - 62 ) * - - 64 * - CAST( - + 95 AS SIGNED ) AS col2
----
-376960

skipif mysql # not compatible
query I rowsort label-8177
SELECT ALL + ( - 62 ) * - - 64 * - CAST ( - + 95 AS INTEGER ) AS col2
----
-376960

onlyif mysql # aggregate syntax: 
query I rowsort label-8178
SELECT + SUM( DISTINCT - + 74 ) + - COUNT( * ) AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-8178
SELECT + SUM ( DISTINCT - + 74 ) + - COUNT ( * ) AS col0
----
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8179
SELECT 15 * - + 53 + + - 91 + + COUNT( * ) DIV + 67 + + 5
----
-881

skipif mysql # not compatible
query I rowsort label-8179
SELECT 15 * - + 53 + + - 91 + + COUNT ( * ) / + 67 + + 5
----
-881

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8180
SELECT DISTINCT + 42 * CASE + COUNT( * ) WHEN + 54 * + CAST( NULL AS SIGNED ) THEN 58 - + - CAST( NULL AS DECIMAL ) WHEN 10 * 16 * ( - 36 ) * 77 THEN 16 * + + CAST( NULL AS SIGNED ) * + - 38 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8180
SELECT DISTINCT + 42 * CASE + COUNT ( * ) WHEN + 54 * + CAST ( NULL AS INTEGER ) THEN 58 - + - CAST ( NULL AS REAL ) WHEN 10 * 16 * ( - 36 ) * 77 THEN 16 * + + CAST ( NULL AS INTEGER ) * + - 38 END col1
----
NULL

query I rowsort
SELECT + 17 * + 77 AS col0
----
1309

query I rowsort
SELECT 51 * + + 5 + - - 89 * - 23
----
-1792

query I rowsort
SELECT ALL 29 * 80
----
2320

query I rowsort
SELECT + - 52 * - 54 * 55 AS col1
----
154440

query I rowsort
SELECT ALL 65 * ( 93 )
----
6045

onlyif mysql # aggregate syntax: 
query I rowsort label-8186
SELECT DISTINCT + + COUNT( DISTINCT 18 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8186
SELECT DISTINCT + + COUNT ( DISTINCT 18 ) AS col0
----
1

query I rowsort
SELECT DISTINCT + + 18 * - 89
----
-1602

onlyif mysql # aggregate syntax: 
query I rowsort label-8188
SELECT - + MIN( ALL 50 ) AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-8188
SELECT - + MIN ( ALL 50 ) AS col2
----
-50

query I rowsort
SELECT + 61 * + - 54 AS col1
----
-3294

onlyif mysql # aggregate syntax: 
query I rowsort label-8190
SELECT ALL + SUM( DISTINCT + 10 ) * 76 * + - 60 + - 88
----
-45688

skipif mysql # not compatible
query I rowsort label-8190
SELECT ALL + SUM ( DISTINCT + 10 ) * 76 * + - 60 + - 88
----
-45688

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8191
SELECT DISTINCT 17 * 23 * + 81 + + + COUNT( * ) * MIN( COALESCE ( - 33, - 76 ) ) - + CAST( + 20 AS SIGNED ) AS col2
----
31618

skipif mysql # not compatible
query I rowsort label-8191
SELECT DISTINCT 17 * 23 * + 81 + + + COUNT ( * ) * MIN ( COALESCE ( - 33, - 76 ) ) - + CAST ( + 20 AS INTEGER ) AS col2
----
31618

onlyif mysql # aggregate syntax: 
query I rowsort label-8192
SELECT ALL - 31 + 7 * - - CASE + 50 WHEN COUNT( * ) THEN + 25 END + - COUNT( + 14 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8192
SELECT ALL - 31 + 7 * - - CASE + 50 WHEN COUNT ( * ) THEN + 25 END + - COUNT ( + 14 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8193
SELECT + 97 * + COUNT( * )
----
97

skipif mysql # not compatible
query I rowsort label-8193
SELECT + 97 * + COUNT ( * )
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8194
SELECT DISTINCT + CAST( - 94 AS SIGNED )
----
-94

skipif mysql # not compatible
query I rowsort label-8194
SELECT DISTINCT + CAST ( - 94 AS INTEGER )
----
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8195
SELECT DISTINCT + CAST( + 7 AS SIGNED ) + COUNT( * ) * 32 AS col2
----
39

skipif mysql # not compatible
query I rowsort label-8195
SELECT DISTINCT + CAST ( + 7 AS INTEGER ) + COUNT ( * ) * 32 AS col2
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-8196
SELECT 16 DIV + 63 + + + 48 + + + 11 * + + 79
----
917

skipif mysql # not compatible
query I rowsort label-8196
SELECT 16 / + 63 + + + 48 + + + 11 * + + 79
----
917

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8197
SELECT - 64 - - 14 * 2 * + 22 + + 72 - - - CAST( - - 81 AS SIGNED )
----
543

skipif mysql # not compatible
query I rowsort label-8197
SELECT - 64 - - 14 * 2 * + 22 + + 72 - - - CAST ( - - 81 AS INTEGER )
----
543

query I rowsort
SELECT ALL + 48 * - + 30 * - 19 * + 31 AS col2
----
848160

onlyif mysql # aggregate syntax: 
query I rowsort label-8199
SELECT COUNT( + + 0 ) + - + 53 + + + 49 * + + 68 * - ( + 69 ) * + COUNT( * ) * + ( + 67 ) - 50 + 87 * + 38 - - 51
----
-15400581

skipif mysql # not compatible
query I rowsort label-8199
SELECT COUNT ( + + 0 ) + - + 53 + + + 49 * + + 68 * - ( + 69 ) * + COUNT ( * ) * + ( + 67 ) - 50 + 87 * + 38 - - 51
----
-15400581

query I rowsort
SELECT ALL - 4 + 96 * - 87 AS col2
----
-8356

query II rowsort
SELECT 34 AS col1, + 97 AS col1
----
34
97

query I rowsort
SELECT ALL + 17 * + + 37 AS col2
----
629

query I rowsort
SELECT 8 - - ( - 49 ) AS col1
----
-41

query I rowsort
SELECT 79 * - 72 AS col0
----
-5688

query I rowsort
SELECT ALL + 91 - - 26
----
117

query II rowsort
SELECT + 71 AS col1, - 9 AS col0
----
71
-9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8207
SELECT 29, + 37 / + CAST( NULL AS SIGNED ) / 10 + - - 52 AS col0
----
29
NULL

skipif mysql # not compatible
query II rowsort label-8207
SELECT 29, + 37 / + CAST ( NULL AS INTEGER ) / 10 + - - 52 AS col0
----
29
NULL

query II rowsort
SELECT 64, + 23 * + - 64 AS col1
----
64
-1472

onlyif mysql # DIV for integer division: 
query II rowsort label-8209
SELECT ALL - 69 AS col2, 93 DIV - + 30 + - 62 * + + 87 AS col1
----
-69
-5397

skipif mysql # not compatible
query II rowsort label-8209
SELECT ALL - 69 AS col2, 93 / - + 30 + - 62 * + + 87 AS col1
----
-69
-5397

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8210
SELECT COALESCE ( - 37, + - 12 * + + 29 + + + 58 - - - COUNT( * ) * 87 * - 84 * + 61 ) * 91 * CASE - 43 WHEN - + ( 3 ) THEN - - 45 ELSE + 89 END col0, + CAST( NULL AS SIGNED ) AS col2
----
-299663
NULL

skipif mysql # not compatible
query II rowsort label-8210
SELECT COALESCE ( - 37, + - 12 * + + 29 + + + 58 - - - COUNT ( * ) * 87 * - 84 * + 61 ) * 91 * CASE - 43 WHEN - + ( 3 ) THEN - - 45 ELSE + 89 END col0, + CAST ( NULL AS INTEGER ) AS col2
----
-299663
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8211
SELECT ALL ( + 8 ) * COUNT( * ) + + 76
----
84

skipif mysql # not compatible
query I rowsort label-8211
SELECT ALL ( + 8 ) * COUNT ( * ) + + 76
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8212
SELECT DISTINCT - ( + MIN( - 7 ) ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-8212
SELECT DISTINCT - ( + MIN ( - 7 ) ) AS col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8213
SELECT ALL + 55 * - MIN( - NULLIF ( + 13, + 22 ) )
----
715

skipif mysql # not compatible
query I rowsort label-8213
SELECT ALL + 55 * - MIN ( - NULLIF ( + 13, + 22 ) )
----
715

onlyif mysql # aggregate syntax: 
query I rowsort label-8214
SELECT DISTINCT - COUNT( 85 )
----
-1

skipif mysql # not compatible
query I rowsort label-8214
SELECT DISTINCT - COUNT ( 85 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8215
SELECT DISTINCT - COUNT( * ) AS col2, 89 * CAST( NULL AS SIGNED ) AS col1
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-8215
SELECT DISTINCT - COUNT ( * ) AS col2, 89 * CAST ( NULL AS INTEGER ) AS col1
----
-1
NULL

query I rowsort
SELECT 47 * - CASE + + 8 WHEN 44 THEN NULL ELSE + - 24 - - NULLIF ( 8, - AVG ( - 93 ) + + - 55 + + + 14 / + + 19 * - 8 ) - 44 * + 10 END - - 9
----
21441

onlyif mysql # DIV for integer division: 
query I rowsort label-8217
SELECT 23 DIV + - 59 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8217
SELECT 23 / + - 59 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8218
SELECT 83 * + - 21 * + + CAST( NULL AS SIGNED ) + - + COUNT( + 91 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8218
SELECT 83 * + - 21 * + + CAST ( NULL AS INTEGER ) + - + COUNT ( + 91 )
----
NULL

query II rowsort
SELECT DISTINCT - 64 AS col2, ( - COALESCE ( - 30, + - 83, + + COALESCE ( 4, + ( - + 7 ) - 33 * + 84 * + 90 * + 76 ) ) ) AS col1
----
-64
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8220
SELECT 23 + + 66 - COUNT( * )
----
88

skipif mysql # not compatible
query I rowsort label-8220
SELECT 23 + + 66 - COUNT ( * )
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-8221
SELECT ALL + 21 DIV - 16
----
-1

skipif mysql # not compatible
query I rowsort label-8221
SELECT ALL + 21 / - 16
----
-1

query I rowsort
SELECT ALL - 60 + - 42
----
-102

query II rowsort
SELECT - 66 AS col1, 29
----
-66
29

onlyif mysql # aggregate syntax: 
query I rowsort label-8224
SELECT - 9 + + - 99 + - + 21 + - 93 * 74 * - MIN( ALL + 40 ) AS col2
----
275151

skipif mysql # not compatible
query I rowsort label-8224
SELECT - 9 + + - 99 + - + 21 + - 93 * 74 * - MIN ( ALL + 40 ) AS col2
----
275151

query I rowsort
SELECT - ( 42 ) AS col2
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-8226
SELECT ALL MIN( DISTINCT + + 6 )
----
6

skipif mysql # not compatible
query I rowsort label-8226
SELECT ALL MIN ( DISTINCT + + 6 )
----
6

query I rowsort
SELECT ALL ( + + 55 ) * ( - 75 )
----
-4125

query I rowsort
SELECT 61 - 82
----
-21

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8229
SELECT + MAX( DISTINCT 91 ) + CAST( NULL AS DECIMAL ) + + - 96 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8229
SELECT + MAX ( DISTINCT 91 ) + CAST ( NULL AS REAL ) + + - 96 AS col0
----
NULL

query I rowsort
SELECT ALL - 53 - 93
----
-146

onlyif mysql # aggregate syntax: 
query I rowsort label-8231
SELECT 40 * - COUNT( 48 ) AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-8231
SELECT 40 * - COUNT ( 48 ) AS col0
----
-40

query I rowsort
SELECT 8 + 92 - - - 2 + 22
----
120

query I rowsort
SELECT 89 * + 96 AS col1
----
8544

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8234
SELECT 24 * CAST( NULL AS SIGNED ) * - 23 / MIN( 55 ) / - 61
----
NULL

skipif mysql # not compatible
query I rowsort label-8234
SELECT 24 * CAST ( NULL AS INTEGER ) * - 23 / MIN ( 55 ) / - 61
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8235
SELECT - COUNT( DISTINCT - ( - NULLIF ( - - 40, 23 ) ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8235
SELECT - COUNT ( DISTINCT - ( - NULLIF ( - - 40, 23 ) ) ) AS col1
----
-1

query I rowsort
SELECT 5 + - + 57 - + + 67 AS col2
----
-119

query II rowsort
SELECT ALL 66 / + + CASE + - 19 WHEN - 32 THEN + 21 ELSE NULL END AS col0, 7 AS col0
----
NULL
7

query II rowsort
SELECT ALL - ( - 96 ) AS col0, - CASE + COALESCE ( - 84, - 56 ) WHEN - 93 THEN 96 END AS col2
----
96
NULL

query I rowsort
SELECT 30 + 94
----
124

query I rowsort
SELECT DISTINCT + ( 48 ) * - 21 * - + 15
----
15120

onlyif mysql # DIV for integer division: 
query I rowsort label-8241
SELECT - 53 DIV - - ( - NULLIF ( - + 78, 64 ) ) * 5 + + 87
----
87

skipif mysql # not compatible
query I rowsort label-8241
SELECT - 53 / - - ( - NULLIF ( - + 78, 64 ) ) * 5 + + 87
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-8242
SELECT 20 + + 11 - - - COUNT( * )
----
30

skipif mysql # not compatible
query I rowsort label-8242
SELECT 20 + + 11 - - - COUNT ( * )
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8243
SELECT DISTINCT - CAST( - 67 AS SIGNED ) AS col2
----
67

skipif mysql # not compatible
query I rowsort label-8243
SELECT DISTINCT - CAST ( - 67 AS INTEGER ) AS col2
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8244
SELECT 51 * - 86 * - + 96 + + + COALESCE ( + 9, - CAST( + + COUNT( * ) AS SIGNED ), - - 76, - ( 89 ) + - MAX( DISTINCT + - 35 ) ) - - + 24 AS col2
----
421089

skipif mysql # not compatible
query I rowsort label-8244
SELECT 51 * - 86 * - + 96 + + + COALESCE ( + 9, - CAST ( + + COUNT ( * ) AS INTEGER ), - - 76, - ( 89 ) + - MAX ( DISTINCT + - 35 ) ) - - + 24 AS col2
----
421089

onlyif mysql # aggregate syntax: 
query I rowsort label-8245
SELECT 65 + + COUNT( * ) + + 6 + - + 77 AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-8245
SELECT 65 + + COUNT ( * ) + + 6 + - + 77 AS col2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8246
SELECT DISTINCT - NULLIF ( - - 34, 93 * - + 1 * - MAX( - 36 ) + 40 + - - 99 + + 28 * 82 / 87 + + + COUNT( * ) * 19 )
----
-34

skipif mysql # not compatible
query I rowsort label-8246
SELECT DISTINCT - NULLIF ( - - 34, 93 * - + 1 * - MAX ( - 36 ) + 40 + - - 99 + + 28 * 82 / 87 + + + COUNT ( * ) * 19 )
----
-34

query I rowsort
SELECT 39 * + 17
----
663

query I rowsort
SELECT DISTINCT ( + 84 ) * + + 72 * 10 + + - 35
----
60445

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8249
SELECT ALL 63 * 20 - 88 DIV MIN( 79 ) * - 40 + - 66
----
1234

skipif mysql # not compatible
query I rowsort label-8249
SELECT ALL 63 * 20 - 88 / MIN ( 79 ) * - 40 + - 66
----
1234

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8250
SELECT - 52 + + CAST( - - 85 AS SIGNED ) * 43 - + 81
----
3522

skipif mysql # not compatible
query I rowsort label-8250
SELECT - 52 + + CAST ( - - 85 AS INTEGER ) * 43 - + 81
----
3522

query II rowsort
SELECT DISTINCT + 42 * - + ( 37 ) + + 84 + - 22, - 45 + + NULLIF ( - ( + + 25 ), + + 77 - 58 * 87 ) AS col1
----
-1492
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8252
SELECT ALL 96 + - + 16 / + 22 * - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8252
SELECT ALL 96 + - + 16 / + 22 * - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8253
SELECT + + ( + - 13 ) * + + CASE 35 WHEN + + 89 * - - AVG ( 7 ) - - 31 THEN + 27 + - - COUNT( * ) WHEN 26 THEN 47 * + CASE 64 WHEN + 58 / - COUNT( * ) THEN - COUNT( * ) * - COUNT( * ) END - - 93 / + ( + 27 ) WHEN - 14 THEN - 8 END - ( AVG ( - + 76 ) ) + ( - 38 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8253
SELECT + + ( + - 13 ) * + + CASE 35 WHEN + + 89 * - - AVG ( 7 ) - - 31 THEN + 27 + - - COUNT ( * ) WHEN 26 THEN 47 * + CASE 64 WHEN + 58 / - COUNT ( * ) THEN - COUNT ( * ) * - COUNT ( * ) END - - 93 / + ( + 27 ) WHEN - 14 THEN - 8 END - ( AVG ( - + 76 ) ) + ( - 38 ) AS col0
----
NULL

query I rowsort
SELECT ALL + - 71 + - 41 * - 84
----
3373

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8255
SELECT ALL - 98 + - COUNT( DISTINCT CAST( NULL AS SIGNED ) ) * - - 0 * + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8255
SELECT ALL - 98 + - COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) * - - 0 * + - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT DISTINCT + - ( + 96 )
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8257
SELECT - COALESCE ( - ( + CASE + 54 WHEN 99 THEN NULL WHEN - 8 THEN + COUNT( * ) WHEN + 51 THEN NULL END ), - - 84, + MIN( DISTINCT 7 ) )
----
-84

skipif mysql # not compatible
query I rowsort label-8257
SELECT - COALESCE ( - ( + CASE + 54 WHEN 99 THEN NULL WHEN - 8 THEN + COUNT ( * ) WHEN + 51 THEN NULL END ), - - 84, + MIN ( DISTINCT 7 ) )
----
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8258
SELECT + + COUNT( * ) DIV 95 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8258
SELECT + + COUNT ( * ) / 95 AS col1
----
0

query I rowsort
SELECT + ( + + NULLIF ( - 12, - + 13 ) ) AS col2
----
-12

query I rowsort
SELECT ALL 99 - 44 * - 43
----
1991

onlyif mysql # DIV for integer division: 
query I rowsort label-8261
SELECT DISTINCT - 99 DIV 73 + 57
----
56

skipif mysql # not compatible
query I rowsort label-8261
SELECT DISTINCT - 99 / 73 + 57
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-8262
SELECT + 82 DIV - 15
----
-5

skipif mysql # not compatible
query I rowsort label-8262
SELECT + 82 / - 15
----
-5

query I rowsort
SELECT ALL - 66 * - + 69 * + 3 col0
----
13662

query I rowsort
SELECT ALL 26 * + 79 AS col0
----
2054

onlyif mysql # aggregate syntax: 
query II rowsort label-8265
SELECT - CASE COALESCE ( + - 19, + + 45 / + + COUNT( * ) + + 17 + - 21 * + 72 / + + 75 + - COUNT( * ) - - 11 * 0, - + COUNT( * ) ) WHEN + 36 + 15 THEN + 16 END, 59 AS col2
----
NULL
59

skipif mysql # not compatible
query II rowsort label-8265
SELECT - CASE COALESCE ( + - 19, + + 45 / + + COUNT ( * ) + + 17 + - 21 * + 72 / + + 75 + - COUNT ( * ) - - 11 * 0, - + COUNT ( * ) ) WHEN + 36 + 15 THEN + 16 END, 59 AS col2
----
NULL
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8266
SELECT ALL COUNT( * ) * 40 * + 99
----
3960

skipif mysql # not compatible
query I rowsort label-8266
SELECT ALL COUNT ( * ) * 40 * + 99
----
3960

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8267
SELECT ALL COUNT( * ) * + 49 DIV COALESCE ( - 97, 79 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8267
SELECT ALL COUNT ( * ) * + 49 / COALESCE ( - 97, 79 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8268
SELECT + 84 - - COUNT( * ) AS col0
----
85

skipif mysql # not compatible
query I rowsort label-8268
SELECT + 84 - - COUNT ( * ) AS col0
----
85

query I rowsort
SELECT DISTINCT 25 * + + 65
----
1625

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8270
SELECT ALL 60 * - - 82 * - - ( + 46 ) AS col2, - CAST( NULL AS DECIMAL ) * + 42 AS col1
----
226320
NULL

skipif mysql # not compatible
query II rowsort label-8270
SELECT ALL 60 * - - 82 * - - ( + 46 ) AS col2, - CAST ( NULL AS REAL ) * + 42 AS col1
----
226320
NULL

query I rowsort
SELECT DISTINCT NULLIF ( 26, - + 11 )
----
26

query I rowsort
SELECT + 18 * + NULLIF ( + + 34, 5 )
----
612

query I rowsort
SELECT - 24 * + 80 AS col0
----
-1920

onlyif mysql # aggregate syntax: 
query I rowsort label-8274
SELECT 65 * - 41 * + 74 * COUNT( DISTINCT ( + 46 ) ) + + + 97 + - 31
----
-197144

skipif mysql # not compatible
query I rowsort label-8274
SELECT 65 * - 41 * + 74 * COUNT ( DISTINCT ( + 46 ) ) + + + 97 + - 31
----
-197144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8275
SELECT ALL CAST( NULL AS SIGNED ) / + 72 + ( - 20 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8275
SELECT ALL CAST ( NULL AS INTEGER ) / + 72 + ( - 20 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8276
SELECT + 88 * - COUNT( * )
----
-88

skipif mysql # not compatible
query I rowsort label-8276
SELECT + 88 * - COUNT ( * )
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8277
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 45 + - COUNT( * ) AS col1, 63 col2
----
NULL
63

skipif mysql # not compatible
query II rowsort label-8277
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 45 + - COUNT ( * ) AS col1, 63 col2
----
NULL
63

query I rowsort
SELECT DISTINCT + COALESCE ( - 1, 18 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8279
SELECT DISTINCT - SUM( ALL - 29 ) * + + CAST( 66 AS SIGNED ) * - 7 + - ( - - 82 ) AS col1
----
-13480

skipif mysql # not compatible
query I rowsort label-8279
SELECT DISTINCT - SUM ( ALL - 29 ) * + + CAST ( 66 AS INTEGER ) * - 7 + - ( - - 82 ) AS col1
----
-13480

query I rowsort
SELECT - - 7 * - 76
----
-532

query I rowsort
SELECT ALL + + ( + 73 )
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8282
SELECT + - 64 * + - COUNT( * ) + 54 DIV ( - - 8 )
----
70

skipif mysql # not compatible
query I rowsort label-8282
SELECT + - 64 * + - COUNT ( * ) + 54 / ( - - 8 )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8283
SELECT COUNT( DISTINCT 64 )
----
1

skipif mysql # not compatible
query I rowsort label-8283
SELECT COUNT ( DISTINCT 64 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8284
SELECT ALL + + 71 * + CASE 52 WHEN + 10 / + - COUNT( * ) THEN + + 42 * + 0 ELSE - 95 END * + 68 - - 9 AS col2
----
-458651

skipif mysql # not compatible
query I rowsort label-8284
SELECT ALL + + 71 * + CASE 52 WHEN + 10 / + - COUNT ( * ) THEN + + 42 * + 0 ELSE - 95 END * + 68 - - 9 AS col2
----
-458651

query II rowsort
SELECT DISTINCT + - 31 AS col0, - 58
----
-31
-58

query I rowsort
SELECT ALL + + COALESCE ( COALESCE ( - 26, + 44 ), - ( + 40 ) * 0, + 60 )
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-8287
SELECT ALL - 98 * + 77 + + - MAX( - - 16 ) - - 92
----
-7470

skipif mysql # not compatible
query I rowsort label-8287
SELECT ALL - 98 * + 77 + + - MAX ( - - 16 ) - - 92
----
-7470

query II rowsort
SELECT 16 AS col1, - 58 * 41 + 88 AS col2
----
16
-2290

query I rowsort
SELECT + + 81 + - + 28 * + 82 * - 18
----
41409

query I rowsort
SELECT - 2 * - + 36
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8291
SELECT - 60 + - 59 + - MIN( 92 ) + - 52 + + - 68 DIV 90 AS col2
----
-263

skipif mysql # not compatible
query I rowsort label-8291
SELECT - 60 + - 59 + - MIN ( 92 ) + - 52 + + - 68 / 90 AS col2
----
-263

query I rowsort
SELECT + 37 + 2 - - 12
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-8293
SELECT ALL ( + 68 ) DIV 63
----
1

skipif mysql # not compatible
query I rowsort label-8293
SELECT ALL ( + 68 ) / 63
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8294
SELECT - CASE 92 WHEN + 39 THEN NULL WHEN 38 THEN + CAST( NULL AS SIGNED ) + 13 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8294
SELECT - CASE 92 WHEN + 39 THEN NULL WHEN 38 THEN + CAST ( NULL AS INTEGER ) + 13 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8295
SELECT ALL 42 + CAST( AVG ( - 53 ) AS SIGNED )
----
-11

skipif mysql # not compatible
query I rowsort label-8295
SELECT ALL 42 + CAST ( AVG ( - 53 ) AS INTEGER )
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-8296
SELECT ALL ( - 36 ) DIV 71
----
0

skipif mysql # not compatible
query I rowsort label-8296
SELECT ALL ( - 36 ) / 71
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8297
SELECT + COUNT( * ) / CASE - 71 WHEN - 17 THEN + MIN( ALL 85 ) + + - COUNT( * ) END, 86 AS col1
----
NULL
86

skipif mysql # not compatible
query II rowsort label-8297
SELECT + COUNT ( * ) / CASE - 71 WHEN - 17 THEN + MIN ( ALL 85 ) + + - COUNT ( * ) END, 86 AS col1
----
NULL
86

query I rowsort
SELECT + 83 + + 72 * - - 29
----
2171

query I rowsort
SELECT - NULLIF ( + 21, + 88 )
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-8300
SELECT ALL COUNT( * ) + + 70 AS col0
----
71

skipif mysql # not compatible
query I rowsort label-8300
SELECT ALL COUNT ( * ) + + 70 AS col0
----
71

query I rowsort
SELECT + 12 + + 94 * + 42 + 59
----
4019

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8302
SELECT + 71 * + 21 DIV COUNT( DISTINCT + + 64 ) * 95 AS col0
----
141645

skipif mysql # not compatible
query I rowsort label-8302
SELECT + 71 * + 21 / COUNT ( DISTINCT + + 64 ) * 95 AS col0
----
141645

onlyif mysql # aggregate syntax: 
query I rowsort label-8303
SELECT + MAX( + 42 ) + - SUM( ALL 27 ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-8303
SELECT + MAX ( + 42 ) + - SUM ( ALL 27 ) AS col0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8304
SELECT + 64 + + - ( - COUNT( * ) )
----
65

skipif mysql # not compatible
query I rowsort label-8304
SELECT + 64 + + - ( - COUNT ( * ) )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-8305
SELECT ALL MAX( DISTINCT + - 39 ) + + - COUNT( * ) + 4 * - + 22 * - 88
----
7704

skipif mysql # not compatible
query I rowsort label-8305
SELECT ALL MAX ( DISTINCT + - 39 ) + + - COUNT ( * ) + 4 * - + 22 * - 88
----
7704

query II rowsort
SELECT ALL + 25 + 29 AS col1, 12
----
54
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8307
SELECT COUNT( CAST( - 29 AS SIGNED ) ) * + + 16 * + + 38 + + 92
----
700

skipif mysql # not compatible
query I rowsort label-8307
SELECT COUNT ( CAST ( - 29 AS INTEGER ) ) * + + 16 * + + 38 + + 92
----
700

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8308
SELECT DISTINCT 64 + + ( CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8308
SELECT DISTINCT 64 + + ( CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8309
SELECT + - 31 * - 80 DIV COUNT( * ) * - - 69 + - - 20 * + 68
----
172480

skipif mysql # not compatible
query I rowsort label-8309
SELECT + - 31 * - 80 / COUNT ( * ) * - - 69 + - - 20 * + 68
----
172480

query I rowsort
SELECT - 48 + + 28 AS col1
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-8311
SELECT - MAX( DISTINCT + 81 )
----
-81

skipif mysql # not compatible
query I rowsort label-8311
SELECT - MAX ( DISTINCT + 81 )
----
-81

query I rowsort
SELECT 46 * + + 19
----
874

query I rowsort
SELECT DISTINCT - 23 - + + 74 AS col0
----
-97

query I rowsort
SELECT ALL + 32 * + 19 AS col0
----
608

onlyif mysql # DIV for integer division: 
query I rowsort label-8315
SELECT ALL - 21 DIV + 77
----
0

skipif mysql # not compatible
query I rowsort label-8315
SELECT ALL - 21 / + 77
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8316
SELECT + 37 / + COUNT( * ) * - CAST( - CAST( NULL AS DECIMAL ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8316
SELECT + 37 / + COUNT ( * ) * - CAST ( - CAST ( NULL AS REAL ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8317
SELECT - ( + COUNT( * ) ) DIV 13 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8317
SELECT - ( + COUNT ( * ) ) / 13 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8318
SELECT + COUNT( + - ( - 30 ) )
----
1

skipif mysql # not compatible
query I rowsort label-8318
SELECT + COUNT ( + - ( - 30 ) )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8319
SELECT 85 * - - 31 + SUM( + - 2 ) * - COUNT( * ) + 27 DIV + 67
----
2637

skipif mysql # not compatible
query I rowsort label-8319
SELECT 85 * - - 31 + SUM ( + - 2 ) * - COUNT ( * ) + 27 / + 67
----
2637

onlyif mysql # DIV for integer division: 
query I rowsort label-8320
SELECT ALL + - 49 DIV 52 + + 91 AS col2
----
91

skipif mysql # not compatible
query I rowsort label-8320
SELECT ALL + - 49 / 52 + + 91 AS col2
----
91

query I rowsort
SELECT 14 * + 34
----
476

query I rowsort
SELECT DISTINCT - ( - ( 60 ) ) + - + 44 AS col1
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8323
SELECT ALL 64 AS col0, COALESCE ( - 94, + COUNT( * ) DIV 81, 48 * - 53 * - - CAST( 54 AS SIGNED ) ) AS col2
----
64
-94

skipif mysql # not compatible
query II rowsort label-8323
SELECT ALL 64 AS col0, COALESCE ( - 94, + COUNT ( * ) / 81, 48 * - 53 * - - CAST ( 54 AS INTEGER ) ) AS col2
----
64
-94

query I rowsort
SELECT DISTINCT - 56 + + 42 AS col0
----
-14

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8325
SELECT - 75 AS col1, - CAST( NULL AS DECIMAL ) + + + 74 AS col1, + + 44
----
-75
NULL
44

skipif mysql # not compatible
query III rowsort label-8325
SELECT - 75 AS col1, - CAST ( NULL AS REAL ) + + + 74 AS col1, + + 44
----
-75
NULL
44

query I rowsort
SELECT ALL - ( - 28 ) + - 61 AS col2
----
-33

query I rowsort
SELECT 33 - - 98
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-8328
SELECT COUNT( * ) + - 83 AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-8328
SELECT COUNT ( * ) + - 83 AS col0
----
-82

query I rowsort
SELECT ALL - 38 + - ( + + 13 ) + - - 19 AS col0
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-8330
SELECT DISTINCT 94 DIV 32
----
2

skipif mysql # not compatible
query I rowsort label-8330
SELECT DISTINCT 94 / 32
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8331
SELECT ( + COUNT( + ( - - 91 ) ) ) * COALESCE ( - 77, ( - 55 ), + + 36 ) AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-8331
SELECT ( + COUNT ( + ( - - 91 ) ) ) * COALESCE ( - 77, ( - 55 ), + + 36 ) AS col2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8332
SELECT COUNT( - 52 ) - - 23 AS col2
----
24

skipif mysql # not compatible
query I rowsort label-8332
SELECT COUNT ( - 52 ) - - 23 AS col2
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8333
SELECT DISTINCT 58 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8333
SELECT DISTINCT 58 / CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 55 - - 80 AS col0
----
135

query I rowsort
SELECT 58 * - 15 AS col0
----
-870

query I rowsort
SELECT 93 * + 59
----
5487

query I rowsort
SELECT DISTINCT 51 * - 20 AS col2
----
-1020

onlyif mysql # aggregate syntax: 
query I rowsort label-8338
SELECT + 34 * + COUNT( * ) + 20
----
54

skipif mysql # not compatible
query I rowsort label-8338
SELECT + 34 * + COUNT ( * ) + 20
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8339
SELECT ALL MIN( ALL 45 ) - 40
----
5

skipif mysql # not compatible
query I rowsort label-8339
SELECT ALL MIN ( ALL 45 ) - 40
----
5

query I rowsort
SELECT DISTINCT 15 * + 86 AS col1
----
1290

onlyif mysql # aggregate syntax: 
query I rowsort label-8341
SELECT ALL - MAX( - 80 ) AS col2
----
80

skipif mysql # not compatible
query I rowsort label-8341
SELECT ALL - MAX ( - 80 ) AS col2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-8342
SELECT MAX( 19 )
----
19

skipif mysql # not compatible
query I rowsort label-8342
SELECT MAX ( 19 )
----
19

query I rowsort
SELECT 67 * 79 + 66
----
5359

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8344
SELECT CAST( NULL AS DECIMAL ) * 62
----
NULL

skipif mysql # not compatible
query I rowsort label-8344
SELECT CAST ( NULL AS REAL ) * 62
----
NULL

query I rowsort
SELECT + 58 * + 88 + - 55
----
5049

onlyif mysql # aggregate syntax: 
query I rowsort label-8346
SELECT COUNT( 95 ) + - 37
----
-36

skipif mysql # not compatible
query I rowsort label-8346
SELECT COUNT ( 95 ) + - 37
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-8347
SELECT 37 DIV 59 col0
----
0

skipif mysql # not compatible
query I rowsort label-8347
SELECT 37 / 59 col0
----
0

query I rowsort
SELECT DISTINCT 8 + - 67 AS col1
----
-59

query I rowsort
SELECT 5 * - 79 + - 30
----
-425

query I rowsort
SELECT ALL 43 + 46 * + 91 col2
----
4229

query I rowsort
SELECT DISTINCT 2 + + 55
----
57

query I rowsort
SELECT DISTINCT + ( + 40 ) + 12
----
52

query I rowsort
SELECT ALL - 69 + + 82 AS col2
----
13

query I rowsort
SELECT 32 * 64 + 72 col2
----
2120

query I rowsort
SELECT ALL 37 * - 34 AS col1
----
-1258

query I rowsort
SELECT DISTINCT + 24 + CASE 67 WHEN 38 THEN + 21 END AS col2
----
NULL

query I rowsort
SELECT 23 * - 89
----
-2047

query I rowsort
SELECT + 38 * - 50 + 10
----
-1890

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8359
SELECT CAST( NULL AS DECIMAL ) + - COUNT( 32 - 43 ) * ( 26 * ( 14 ) + - 48 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8359
SELECT CAST ( NULL AS REAL ) + - COUNT ( 32 - 43 ) * ( 26 * ( 14 ) + - 48 ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT ( 59 ) + 94 AS col2
----
153

query I rowsort
SELECT ALL + 6 - - NULLIF ( - 54, - 84 * 3 + + 47 * - ( 49 + - 38 ) ) AS col0
----
-48

query I rowsort
SELECT ALL + 61 * 20 AS col2
----
1220

query I rowsort
SELECT ALL - 7 - - 52
----
45

query I rowsort
SELECT - 17 + - 46 AS col1
----
-63

query I rowsort
SELECT DISTINCT + 79 * - COALESCE ( + 73, 56 * 60 )
----
-5767

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8366
SELECT - CAST( COALESCE ( 44, - SUM( ALL 45 ), - 50 + - COUNT( * ) * 2, + 31 + + 48 * 27 ) AS SIGNED ) + 55
----
11

skipif mysql # not compatible
query I rowsort label-8366
SELECT - CAST ( COALESCE ( 44, - SUM ( ALL 45 ), - 50 + - COUNT ( * ) * 2, + 31 + + 48 * 27 ) AS INTEGER ) + 55
----
11

query I rowsort
SELECT ALL + 62 * + 14
----
868

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8368
SELECT ALL - 7 - + 44 * CASE - COALESCE ( - 40, CASE + 9 WHEN - 83 THEN CAST( NULL AS SIGNED ) / + 73 END - 98 ) * + 42 WHEN - 43 + COUNT( - 11 ) * + COALESCE ( + 17, COUNT( * ) ) THEN NULL ELSE 37 END AS col0
----
-1635

skipif mysql # not compatible
query I rowsort label-8368
SELECT ALL - 7 - + 44 * CASE - COALESCE ( - 40, CASE + 9 WHEN - 83 THEN CAST ( NULL AS INTEGER ) / + 73 END - 98 ) * + 42 WHEN - 43 + COUNT ( - 11 ) * + COALESCE ( + 17, COUNT ( * ) ) THEN NULL ELSE 37 END AS col0
----
-1635

onlyif mysql # DIV for integer division: 
query I rowsort label-8369
SELECT - - 76 DIV + 50
----
1

skipif mysql # not compatible
query I rowsort label-8369
SELECT - - 76 / + 50
----
1

query I rowsort
SELECT ALL - ( + 6 )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-8371
SELECT ALL ( COUNT( DISTINCT - 27 ) )
----
1

skipif mysql # not compatible
query I rowsort label-8371
SELECT ALL ( COUNT ( DISTINCT - 27 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8372
SELECT DISTINCT SUM( ALL + 53 )
----
53

skipif mysql # not compatible
query I rowsort label-8372
SELECT DISTINCT SUM ( ALL + 53 )
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-8373
SELECT ALL 49 DIV - 60 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8373
SELECT ALL 49 / - 60 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8374
SELECT 93 * 28 + - MIN( ALL - 65 + 13 ) AS col1
----
2656

skipif mysql # not compatible
query I rowsort label-8374
SELECT 93 * 28 + - MIN ( ALL - 65 + 13 ) AS col1
----
2656

onlyif mysql # aggregate syntax: 
query I rowsort label-8375
SELECT DISTINCT - MAX( ALL + 74 ) * 2
----
-148

skipif mysql # not compatible
query I rowsort label-8375
SELECT DISTINCT - MAX ( ALL + 74 ) * 2
----
-148

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8376
SELECT - 76 DIV COUNT( * ) AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-8376
SELECT - 76 / COUNT ( * ) AS col2
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-8377
SELECT + - COUNT( * ) + + COUNT( * ) * - 57
----
-58

skipif mysql # not compatible
query I rowsort label-8377
SELECT + - COUNT ( * ) + + COUNT ( * ) * - 57
----
-58

query I rowsort
SELECT ALL - 28 * 59 + 14
----
-1638

onlyif mysql # aggregate syntax: 
query I rowsort label-8379
SELECT - COALESCE ( - COUNT( * ), 14 * - COUNT( * ) + - 93 )
----
1

skipif mysql # not compatible
query I rowsort label-8379
SELECT - COALESCE ( - COUNT ( * ), 14 * - COUNT ( * ) + - 93 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8380
SELECT + - COUNT( DISTINCT + 17 )
----
-1

skipif mysql # not compatible
query I rowsort label-8380
SELECT + - COUNT ( DISTINCT + 17 )
----
-1

query I rowsort
SELECT + + 69 * + 57
----
3933

query I rowsort
SELECT DISTINCT 38 * 89
----
3382

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8383
SELECT ALL + CAST( NULL AS SIGNED ) * + 86 + + NULLIF ( + 2, - COUNT( DISTINCT 74 ) * 75 ) * 98
----
NULL

skipif mysql # not compatible
query I rowsort label-8383
SELECT ALL + CAST ( NULL AS INTEGER ) * + 86 + + NULLIF ( + 2, - COUNT ( DISTINCT 74 ) * 75 ) * 98
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8384
SELECT + - 83 DIV + 2 AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-8384
SELECT + - 83 / + 2 AS col0
----
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8385
SELECT + 26 * COALESCE ( - 18 DIV COUNT( * ), - 91 ) AS col2
----
-468

skipif mysql # not compatible
query I rowsort label-8385
SELECT + 26 * COALESCE ( - 18 / COUNT ( * ), - 91 ) AS col2
----
-468

query I rowsort
SELECT ALL - + 91 * 15 + 26
----
-1339

onlyif mysql # aggregate syntax: 
query I rowsort label-8387
SELECT DISTINCT - 86 * - COUNT( * )
----
86

skipif mysql # not compatible
query I rowsort label-8387
SELECT DISTINCT - 86 * - COUNT ( * )
----
86

query I rowsort
SELECT ALL - - 92 * 90 + + 80
----
8360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8389
SELECT CASE + COUNT( * ) WHEN 39 THEN + 59 WHEN + COUNT( * ) * - CAST( ( 41 ) DIV - 73 AS SIGNED ) THEN NULL WHEN COALESCE ( - 43, - 52 DIV - AVG ( 83 ), 78 ) * 55 THEN 42 + - COALESCE ( 77, 19 ) ELSE 34 + ( - COUNT( * ) ) END AS col1
----
33

skipif mysql # not compatible
query I rowsort label-8389
SELECT CASE + COUNT ( * ) WHEN 39 THEN + 59 WHEN + COUNT ( * ) * - CAST ( ( 41 ) / - 73 AS INTEGER ) THEN NULL WHEN COALESCE ( - 43, - 52 / - AVG ( 83 ), 78 ) * 55 THEN 42 + - COALESCE ( 77, 19 ) ELSE 34 + ( - COUNT ( * ) ) END AS col1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-8390
SELECT CASE 47 WHEN + 7 THEN - 89 WHEN 49 * + COUNT( * ) THEN 72 * - 30 WHEN - 81 * - 50 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8390
SELECT CASE 47 WHEN + 7 THEN - 89 WHEN 49 * + COUNT ( * ) THEN 72 * - 30 WHEN - 81 * - 50 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT + ( + + 8 ) col0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8392
SELECT CASE + 45 WHEN MIN( ALL 32 ) / 63 - - 90 THEN NULL WHEN + 45 * 63 THEN COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8392
SELECT CASE + 45 WHEN MIN ( ALL 32 ) / 63 - - 90 THEN NULL WHEN + 45 * 63 THEN COUNT ( * ) END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8393
SELECT ALL + 83 * + COUNT( * ) / 3 + 51 * + MIN( 3 * - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8393
SELECT ALL + 83 * + COUNT ( * ) / 3 + 51 * + MIN ( 3 * - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8394
SELECT + 95 - + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8394
SELECT + 95 - + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 71 * + 34 AS col1
----
2414

query I rowsort
SELECT - 77 * + 31 * + 78 AS col0
----
-186186

query I rowsort
SELECT ALL 83 * - 31 * 84 AS col0
----
-216132

onlyif mysql # aggregate syntax: 
query I rowsort label-8398
SELECT + NULLIF ( 79, + NULLIF ( - COUNT( + 22 ), + 17 * - 20 ) * + 76 ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-8398
SELECT + NULLIF ( 79, + NULLIF ( - COUNT ( + 22 ), + 17 * - 20 ) * + 76 ) AS col1
----
79

query I rowsort
SELECT ALL + 6 * - - 35 * + 81 - 60
----
16950

onlyif mysql # aggregate syntax: 
query I rowsort label-8400
SELECT MAX( ALL 74 ) col0
----
74

skipif mysql # not compatible
query I rowsort label-8400
SELECT MAX ( ALL 74 ) col0
----
74

query I rowsort
SELECT ALL 27 * + 36 - 27 AS col1
----
945

query I rowsort
SELECT ALL 47 * + + 69
----
3243

onlyif mysql # aggregate syntax: 
query I rowsort label-8403
SELECT ALL CASE + MAX( CASE - 15 WHEN - COALESCE ( 72, + 63 / - 5, 88 ) THEN NULL WHEN - 38 THEN - 46 * + 75 + 28 WHEN 64 THEN - 75 END ) WHEN - 74 + - 34 THEN - 0 / - 89 WHEN + 83 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8403
SELECT ALL CASE + MAX ( CASE - 15 WHEN - COALESCE ( 72, + 63 / - 5, 88 ) THEN NULL WHEN - 38 THEN - 46 * + 75 + 28 WHEN 64 THEN - 75 END ) WHEN - 74 + - 34 THEN - 0 / - 89 WHEN + 83 THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8404
SELECT COUNT( ALL 7 )
----
1

skipif mysql # not compatible
query I rowsort label-8404
SELECT COUNT ( ALL 7 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8405
SELECT - ( - CAST( + 86 AS SIGNED ) ) + - 7
----
79

skipif mysql # not compatible
query I rowsort label-8405
SELECT - ( - CAST ( + 86 AS INTEGER ) ) + - 7
----
79

query I rowsort
SELECT DISTINCT 41 * + - 45 AS col2
----
-1845

query I rowsort
SELECT + 5 * - 86 AS col0
----
-430

onlyif mysql # aggregate syntax: 
query I rowsort label-8408
SELECT - COUNT( * ) * + + 0
----
0

skipif mysql # not compatible
query I rowsort label-8408
SELECT - COUNT ( * ) * + + 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8409
SELECT ALL MAX( DISTINCT - NULLIF ( 36, 31 / - 12 + - 52 ) ) AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-8409
SELECT ALL MAX ( DISTINCT - NULLIF ( 36, 31 / - 12 + - 52 ) ) AS col2
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-8410
SELECT - 64 DIV 4 AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-8410
SELECT - 64 / 4 AS col0
----
-16

query I rowsort
SELECT + 67 * - - 41 col1
----
2747

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8412
SELECT - + COUNT( * ) + COUNT( * ) * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8412
SELECT - + COUNT ( * ) + COUNT ( * ) * + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT - ( 1 ) * - 77 AS col0
----
77

query I rowsort
SELECT ALL - - 47 * + + 57
----
2679

query I rowsort
SELECT + - 53 * 87 + 85 AS col0
----
-4526

query I rowsort
SELECT - - 48 * 51 col2
----
2448

query I rowsort
SELECT - - ( - 91 ) AS col0
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8418
SELECT - SUM( ( + CAST( - 99 AS SIGNED ) ) ) - + 11 * 53
----
-484

skipif mysql # not compatible
query I rowsort label-8418
SELECT - SUM ( ( + CAST ( - 99 AS INTEGER ) ) ) - + 11 * 53
----
-484

query I rowsort
SELECT + ( + + 41 )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8420
SELECT - COUNT( 96 ) * - 56
----
56

skipif mysql # not compatible
query I rowsort label-8420
SELECT - COUNT ( 96 ) * - 56
----
56

query I rowsort
SELECT - + 74 * + + 24 + + 11 AS col0
----
-1765

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8422
SELECT DISTINCT - COALESCE ( CASE - COUNT( * ) WHEN COUNT( * ) THEN 27 WHEN + CAST( NULL AS SIGNED ) THEN NULL END, - 94 ) DIV + 64 + + 39 DIV 63 col2
----
1

skipif mysql # not compatible
query I rowsort label-8422
SELECT DISTINCT - COALESCE ( CASE - COUNT ( * ) WHEN COUNT ( * ) THEN 27 WHEN + CAST ( NULL AS INTEGER ) THEN NULL END, - 94 ) / + 64 + + 39 / 63 col2
----
1

query I rowsort
SELECT DISTINCT - ( - 84 ) * - 9 AS col0
----
-756

query I rowsort
SELECT - ( 79 ) * 57 + 3
----
-4500

onlyif mysql # DIV for integer division: 
query I rowsort label-8425
SELECT ALL - 52 DIV - + 72 * - 30 + 12
----
12

skipif mysql # not compatible
query I rowsort label-8425
SELECT ALL - 52 / - + 72 * - 30 + 12
----
12

query I rowsort
SELECT - 72 + + 33 AS col0
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8427
SELECT + NULLIF ( + - 33, + - 64 ) * + 76 - + COUNT( * ) DIV 52
----
-2508

skipif mysql # not compatible
query I rowsort label-8427
SELECT + NULLIF ( + - 33, + - 64 ) * + 76 - + COUNT ( * ) / 52
----
-2508

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8428
SELECT ALL - COUNT( * ) - + + CAST( - COUNT( * ) AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8428
SELECT ALL - COUNT ( * ) - + + CAST ( - COUNT ( * ) AS INTEGER ) AS col1
----
0

query I rowsort
SELECT DISTINCT + 52 * + 79
----
4108

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8430
SELECT + 29 * 9 * NULLIF ( 18, 84 - + CASE - 78 WHEN + COUNT( * ) THEN 42 END ) * 45 + 75 DIV + 97 col0
----
211410

skipif mysql # not compatible
query I rowsort label-8430
SELECT + 29 * 9 * NULLIF ( 18, 84 - + CASE - 78 WHEN + COUNT ( * ) THEN 42 END ) * 45 + 75 / + 97 col0
----
211410

query I rowsort
SELECT ALL 36 - + 80 + + 0 AS col2
----
-44

query I rowsort
SELECT ALL - ( COALESCE ( 89, - 80 ) ) col1
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8433
SELECT ALL - 79 * - CAST( - 62 AS SIGNED )
----
-4898

skipif mysql # not compatible
query I rowsort label-8433
SELECT ALL - 79 * - CAST ( - 62 AS INTEGER )
----
-4898

query I rowsort
SELECT 7 * + 66 * - 76 + + 34 AS col1
----
-35078

query II rowsort
SELECT + 79, CASE - - 82 WHEN - 70 THEN 36 END AS col0
----
79
NULL

query I rowsort
SELECT ( + 41 ) + + 76
----
117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8437
SELECT SUM( DISTINCT + - 38 ) + 12 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8437
SELECT SUM ( DISTINCT + - 38 ) + 12 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8438
SELECT 67 col1, - CASE + 82 WHEN - 65 THEN + 35 DIV 60 ELSE + ( + ( + 33 ) ) END
----
67
-33

skipif mysql # not compatible
query II rowsort label-8438
SELECT 67 col1, - CASE + 82 WHEN - 65 THEN + 35 / 60 ELSE + ( + ( + 33 ) ) END
----
67
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-8439
SELECT DISTINCT 96, - 90 * - CASE - ( + 48 ) WHEN + COUNT( * ) * - 94 THEN - 29 + - ( 52 ) * + CASE COUNT( * ) / + 22 WHEN - 94 THEN NULL WHEN + 80 THEN COUNT( * ) END ELSE NULL END - - 89 * 58 AS col1
----
96
NULL

skipif mysql # not compatible
query II rowsort label-8439
SELECT DISTINCT 96, - 90 * - CASE - ( + 48 ) WHEN + COUNT ( * ) * - 94 THEN - 29 + - ( 52 ) * + CASE COUNT ( * ) / + 22 WHEN - 94 THEN NULL WHEN + 80 THEN COUNT ( * ) END ELSE NULL END - - 89 * 58 AS col1
----
96
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8440
SELECT DISTINCT + + 32 * + COUNT( * )
----
32

skipif mysql # not compatible
query I rowsort label-8440
SELECT DISTINCT + + 32 * + COUNT ( * )
----
32

query I rowsort
SELECT DISTINCT 53 + - + 34 AS col0
----
19

onlyif mysql # aggregate syntax: 
query II rowsort label-8442
SELECT - COUNT( * ), 74 AS col2
----
-1
74

skipif mysql # not compatible
query II rowsort label-8442
SELECT - COUNT ( * ), 74 AS col2
----
-1
74

onlyif mysql # DIV for integer division: 
query I rowsort label-8443
SELECT + 31 DIV + + 62 + 59 DIV - 35 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8443
SELECT + 31 / + + 62 + 59 / - 35 AS col1
----
-1

query I rowsort
SELECT ALL 71 + + + 58 * - 36 col0
----
-2017

query II rowsort
SELECT ALL - 26 AS col2, 46 AS col2
----
-26
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8446
SELECT - 15 * - 85 * + 22 - + MAX( DISTINCT + 75 ) * - SUM( + 67 DIV 24 )
----
28200

skipif mysql # not compatible
query I rowsort label-8446
SELECT - 15 * - 85 * + 22 - + MAX ( DISTINCT + 75 ) * - SUM ( + 67 / 24 )
----
28200

query II rowsort
SELECT 21 AS col0, 32 col2
----
21
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8448
SELECT ALL 98 + + CASE WHEN NOT NULL IS NULL THEN 13 ELSE NULL END + MIN( 58 + - ( ( 53 ) - - 11 * - 62 ) ) * 65 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8448
SELECT ALL 98 + + CASE WHEN NOT NULL IS NULL THEN 13 ELSE NULL END + MIN ( 58 + - ( ( 53 ) - - 11 * - 62 ) ) * 65 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8449
SELECT COALESCE ( - COUNT( + 48 ), 64 DIV - COUNT( * ) ) + - 57 col0
----
-58

skipif mysql # not compatible
query I rowsort label-8449
SELECT COALESCE ( - COUNT ( + 48 ), 64 / - COUNT ( * ) ) + - 57 col0
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8450
SELECT + CASE + 25 WHEN MAX( 48 ) * + CAST( NULL AS SIGNED ) THEN NULL WHEN + COUNT( * ) + + 20 / + 22 THEN + 47 END + + 29 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8450
SELECT + CASE + 25 WHEN MAX ( 48 ) * + CAST ( NULL AS INTEGER ) THEN NULL WHEN + COUNT ( * ) + + 20 / + 22 THEN + 47 END + + 29 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8451
SELECT ALL - + 77 + - + 92 + ( + ( - COUNT( * ) ) ) + 50
----
-120

skipif mysql # not compatible
query I rowsort label-8451
SELECT ALL - + 77 + - + 92 + ( + ( - COUNT ( * ) ) ) + 50
----
-120

onlyif mysql # DIV for integer division: 
query I rowsort label-8452
SELECT - - 55 DIV ( 24 ) + ( + 29 ) AS col1
----
31

skipif mysql # not compatible
query I rowsort label-8452
SELECT - - 55 / ( 24 ) + ( + 29 ) AS col1
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-8453
SELECT 32 AS col2, + ( + COUNT( * ) ) * - 0
----
32
0

skipif mysql # not compatible
query II rowsort label-8453
SELECT 32 AS col2, + ( + COUNT ( * ) ) * - 0
----
32
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8454
SELECT + - 64 AS col0, COUNT( ALL + - 15 )
----
-64
1

skipif mysql # not compatible
query II rowsort label-8454
SELECT + - 64 AS col0, COUNT ( ALL + - 15 )
----
-64
1

query I rowsort
SELECT 95 * - + 88
----
-8360

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8456
SELECT 59 * - CAST( 58 AS SIGNED ) col1
----
-3422

skipif mysql # not compatible
query I rowsort label-8456
SELECT 59 * - CAST ( 58 AS INTEGER ) col1
----
-3422

query II rowsort
SELECT DISTINCT + 65 * - 34 AS col0, - ( + - 31 ) AS col1
----
-2210
31

onlyif mysql # aggregate syntax: 
query II rowsort label-8458
SELECT ALL + 38 - + 20 AS col0, 62 * - ( + CASE 53 WHEN - 7 + 14 THEN NULL WHEN + ( + COUNT( * ) ) THEN - 12 WHEN + CASE + 6 WHEN 52 THEN 27 WHEN + 8 THEN NULL END THEN NULL ELSE - 77 END ) * COUNT( * ) AS col1
----
18
4774

skipif mysql # not compatible
query II rowsort label-8458
SELECT ALL + 38 - + 20 AS col0, 62 * - ( + CASE 53 WHEN - 7 + 14 THEN NULL WHEN + ( + COUNT ( * ) ) THEN - 12 WHEN + CASE + 6 WHEN 52 THEN 27 WHEN + 8 THEN NULL END THEN NULL ELSE - 77 END ) * COUNT ( * ) AS col1
----
18
4774

query I rowsort
SELECT 49 * - 77 AS col2
----
-3773

query I rowsort
SELECT DISTINCT + ( + 26 ) * + 92 * - + 29 * 17 AS col0
----
-1179256

onlyif mysql # aggregate syntax: 
query I rowsort label-8461
SELECT DISTINCT - ( COUNT( 94 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8461
SELECT DISTINCT - ( COUNT ( 94 ) ) AS col0
----
-1

query I rowsort
SELECT 62 * 4
----
248

query I rowsort
SELECT 52 * + + ( ( + ( 5 ) ) ) col1
----
260

query I rowsort
SELECT 58 - - 1 * + - 40 AS col1
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8465
SELECT CASE 92 WHEN + COALESCE ( + + COALESCE ( MIN( CAST( 97 AS SIGNED ) ), - 54 + + 34, 26 / + COUNT( ALL 9 ) ), - MAX( DISTINCT 87 ) + 90 * 41, 94 * ( 59 * NULLIF ( + COUNT( * ), - 77 ) ), + 67 ) THEN - 94 WHEN 76 * - 67 THEN CAST( NULL AS SIGNED ) ELSE NULL END / 53 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8465
SELECT CASE 92 WHEN + COALESCE ( + + COALESCE ( MIN ( CAST ( 97 AS INTEGER ) ), - 54 + + 34, 26 / + COUNT ( ALL 9 ) ), - MAX ( DISTINCT 87 ) + 90 * 41, 94 * ( 59 * NULLIF ( + COUNT ( * ), - 77 ) ), + 67 ) THEN - 94 WHEN 76 * - 67 THEN CAST ( NULL AS INTEGER ) ELSE NULL END / 53 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8466
SELECT ALL + 3 * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8466
SELECT ALL + 3 * + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 74 * - 28 AS col1
----
-2072

onlyif mysql # aggregate syntax: 
query I rowsort label-8468
SELECT MAX( + - 66 ) * - 49 * + ( + 27 ) AS col0
----
87318

skipif mysql # not compatible
query I rowsort label-8468
SELECT MAX ( + - 66 ) * - 49 * + ( + 27 ) AS col0
----
87318

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8469
SELECT MIN( 93 ) DIV - 4
----
-23

skipif mysql # not compatible
query I rowsort label-8469
SELECT MIN ( 93 ) / - 4
----
-23

query I rowsort
SELECT ALL + 3 * - - 8 AS col1
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-8471
SELECT ALL COUNT( * ) + - MAX( ALL + 85 ) AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-8471
SELECT ALL COUNT ( * ) + - MAX ( ALL + 85 ) AS col1
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8472
SELECT 51 * - COUNT( ALL CAST( + - 32 AS SIGNED ) ) * 31 - + ( - 84 )
----
-1497

skipif mysql # not compatible
query I rowsort label-8472
SELECT 51 * - COUNT ( ALL CAST ( + - 32 AS INTEGER ) ) * 31 - + ( - 84 )
----
-1497

onlyif mysql # aggregate syntax: 
query I rowsort label-8473
SELECT ALL ( + 95 ) + - 10 * MAX( 99 ) * + 94 - MIN( - 41 ) * - 85 AS col2
----
-96450

skipif mysql # not compatible
query I rowsort label-8473
SELECT ALL ( + 95 ) + - 10 * MAX ( 99 ) * + 94 - MIN ( - 41 ) * - 85 AS col2
----
-96450

query I rowsort
SELECT DISTINCT 5 + + - 1
----
4

query II rowsort
SELECT - ( + + 93 ) AS col2, 94 + - 74 + 4 AS col2
----
-93
24

onlyif mysql # aggregate syntax: 
query I rowsort label-8476
SELECT 53 * - - 75 * ( + - COUNT( * ) ) + + 70 AS col1
----
-3905

skipif mysql # not compatible
query I rowsort label-8476
SELECT 53 * - - 75 * ( + - COUNT ( * ) ) + + 70 AS col1
----
-3905

query I rowsort
SELECT ALL 32 * + ( 76 ) + - 85
----
2347

onlyif mysql # DIV for integer division: 
query I rowsort label-8478
SELECT 84 DIV 42 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-8478
SELECT 84 / 42 AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8479
SELECT SUM( - + 36 ) - COALESCE ( + + 32, 71 ) * 40 AS col1
----
-1316

skipif mysql # not compatible
query I rowsort label-8479
SELECT SUM ( - + 36 ) - COALESCE ( + + 32, 71 ) * 40 AS col1
----
-1316

onlyif mysql # aggregate syntax: 
query I rowsort label-8480
SELECT ALL + + 20 * 61 - - COUNT( * ) * ( 78 ) col0
----
1298

skipif mysql # not compatible
query I rowsort label-8480
SELECT ALL + + 20 * 61 - - COUNT ( * ) * ( 78 ) col0
----
1298

onlyif mysql # DIV for integer division: 
query I rowsort label-8481
SELECT ALL - 6 DIV + 95 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8481
SELECT ALL - 6 / + 95 AS col0
----
0

query II rowsort
SELECT ALL + 88, 44 col2
----
88
44

query I rowsort
SELECT + 21 * - 45 - - 93 AS col1
----
-852

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8484
SELECT - 18 - + CAST( + 31 AS SIGNED ) AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-8484
SELECT - 18 - + CAST ( + 31 AS INTEGER ) AS col0
----
-49

query I rowsort
SELECT - 21 * 51 + NULLIF ( - + 11, + 83 ) + 70
----
-1012

onlyif mysql # aggregate syntax: 
query I rowsort label-8486
SELECT COALESCE ( ( - + 17 ), ( + 6 ), COUNT( * ) * 96 + 71 ) AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-8486
SELECT COALESCE ( ( - + 17 ), ( + 6 ), COUNT ( * ) * 96 + 71 ) AS col0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-8487
SELECT DISTINCT + 34 * + COUNT( * ) AS col1
----
34

skipif mysql # not compatible
query I rowsort label-8487
SELECT DISTINCT + 34 * + COUNT ( * ) AS col1
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8488
SELECT COALESCE ( - 36, - ( + - 22 ), - + 56 * + ( COUNT( * ) * 65 ), MAX( ALL 93 ), 51 * 59 + 8 * + 39 ) DIV 11 + - 12 DIV 9
----
-4

skipif mysql # not compatible
query I rowsort label-8488
SELECT COALESCE ( - 36, - ( + - 22 ), - + 56 * + ( COUNT ( * ) * 65 ), MAX ( ALL 93 ), 51 * 59 + 8 * + 39 ) / 11 + - 12 / 9
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8489
SELECT - CAST( NULL AS SIGNED ) * - CASE + 70 WHEN 25 THEN + 28 * 0 ELSE 77 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8489
SELECT - CAST ( NULL AS INTEGER ) * - CASE + 70 WHEN 25 THEN + 28 * 0 ELSE 77 END col2
----
NULL

query I rowsort
SELECT 16 * - 97 + + - 43
----
-1595

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8491
SELECT ALL 95 * - - 49 + - 14 * 41 + - MAX( ALL 90 ) DIV 54 AS col2
----
4080

skipif mysql # not compatible
query I rowsort label-8491
SELECT ALL 95 * - - 49 + - 14 * 41 + - MAX ( ALL 90 ) / 54 AS col2
----
4080

onlyif mysql # aggregate syntax: 
query I rowsort label-8492
SELECT ALL - COUNT( * ) * ( + + 10 ) * + 84 + - - 2 AS col1
----
-838

skipif mysql # not compatible
query I rowsort label-8492
SELECT ALL - COUNT ( * ) * ( + + 10 ) * + 84 + - - 2 AS col1
----
-838

query I rowsort
SELECT ALL + 43 * + 85 + + 86
----
3741

query I rowsort
SELECT - 5 + + - 46 col0
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8495
SELECT - CAST( NULL AS SIGNED ) / + 5 * 20 * + - 7 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8495
SELECT - CAST ( NULL AS INTEGER ) / + 5 * 20 * + - 7 AS col0
----
NULL

query I rowsort
SELECT - 74 + 37
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-8497
SELECT - - COUNT( * ) * + 50 * 81 * + - 37
----
-149850

skipif mysql # not compatible
query I rowsort label-8497
SELECT - - COUNT ( * ) * + 50 * 81 * + - 37
----
-149850

onlyif mysql # DIV for integer division: 
query I rowsort label-8498
SELECT ALL - 11 DIV + 85
----
0

skipif mysql # not compatible
query I rowsort label-8498
SELECT ALL - 11 / + 85
----
0

query I rowsort
SELECT - + 41 * - - 90 + 16 AS col1
----
-3674

query I rowsort
SELECT ALL 93 * 99 col2
----
9207

query I rowsort
SELECT ALL - 61 - 85 + COALESCE ( + 23, - - 58, - 11 * 93 ) * + 78 AS col0
----
1648

query I rowsort
SELECT - 77 * - + 34 * 57 col2
----
149226

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8503
SELECT DISTINCT - NULLIF ( + 92, 88 ) - + COUNT( * ) - 62 DIV 43
----
-94

skipif mysql # not compatible
query I rowsort label-8503
SELECT DISTINCT - NULLIF ( + 92, 88 ) - + COUNT ( * ) - 62 / 43
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-8504
SELECT - + NULLIF ( + + CASE - 29 WHEN ( + - CASE + 66 WHEN - 82 * - 41 THEN 64 WHEN + 21 * 14 + + AVG ( DISTINCT - 65 + - 77 ) THEN NULL END ) THEN + 39 * ( + 95 * + ( 18 ) ) - COUNT( * ) / + 55 END, + 57 * 73 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8504
SELECT - + NULLIF ( + + CASE - 29 WHEN ( + - CASE + 66 WHEN - 82 * - 41 THEN 64 WHEN + 21 * 14 + + AVG ( DISTINCT - 65 + - 77 ) THEN NULL END ) THEN + 39 * ( + 95 * + ( 18 ) ) - COUNT ( * ) / + 55 END, + 57 * 73 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8505
SELECT + MIN( + - 73 ) AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-8505
SELECT + MIN ( + - 73 ) AS col2
----
-73

query II rowsort
SELECT - - 73 + - - 98 + + 77, 95 * - - 28 AS col2
----
248
2660

onlyif mysql # aggregate syntax: 
query I rowsort label-8507
SELECT + - 9 * - COUNT( * ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-8507
SELECT + - 9 * - COUNT ( * ) AS col0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8508
SELECT - + CASE - + 38 WHEN - ( 85 ) THEN NULL WHEN - 51 * + MAX( - 10 ) + + 49 THEN 58 END + COALESCE ( + ( + 39 ), - ( 75 ) ) / COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8508
SELECT - + CASE - + 38 WHEN - ( 85 ) THEN NULL WHEN - 51 * + MAX ( - 10 ) + + 49 THEN 58 END + COALESCE ( + ( + 39 ), - ( 75 ) ) / COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8509
SELECT DISTINCT 52 col2, NULLIF ( + 73, + + 67 + - 25 * - - 2 * COUNT( * ) ) col0
----
52
73

skipif mysql # not compatible
query II rowsort label-8509
SELECT DISTINCT 52 col2, NULLIF ( + 73, + + 67 + - 25 * - - 2 * COUNT ( * ) ) col0
----
52
73

query I rowsort
SELECT ALL 83 * + 30
----
2490

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8511
SELECT - 89 * - SUM( DISTINCT 89 ) * COUNT( * ) * ( - 47 ) / - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8511
SELECT - 89 * - SUM ( DISTINCT 89 ) * COUNT ( * ) * ( - 47 ) / - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8512
SELECT CAST( NULL AS SIGNED ) / - + 98 + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8512
SELECT CAST ( NULL AS INTEGER ) / - + 98 + - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8513
SELECT + CASE 33 WHEN - ( - - 26 ) + + ( + + 80 ) / 92 THEN - 80 / COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8513
SELECT + CASE 33 WHEN - ( - - 26 ) + + ( + + 80 ) / 92 THEN - 80 / COUNT ( * ) END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8514
SELECT CAST( - 7 AS SIGNED )
----
-7

skipif mysql # not compatible
query I rowsort label-8514
SELECT CAST ( - 7 AS INTEGER )
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8515
SELECT CAST( + + 89 AS SIGNED ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-8515
SELECT CAST ( + + 89 AS INTEGER ) AS col2
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-8516
SELECT - 47 DIV 42 * + 76 * + + 65
----
-4940

skipif mysql # not compatible
query I rowsort label-8516
SELECT - 47 / 42 * + 76 * + + 65
----
-4940

query I rowsort
SELECT DISTINCT 24 * + 11 * + + 73 * ( - 71 ) AS col0
----
-1368312

onlyif mysql # aggregate syntax: 
query I rowsort label-8518
SELECT DISTINCT 48 / - + 47 + - CASE - + 14 WHEN - ( + + 75 ) * COUNT( * ) THEN - 53 END * 52 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8518
SELECT DISTINCT 48 / - + 47 + - CASE - + 14 WHEN - ( + + 75 ) * COUNT ( * ) THEN - 53 END * 52 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8519
SELECT ALL 16 DIV + + 38 + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8519
SELECT ALL 16 / + + 38 + COUNT ( * ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-8520
SELECT + 11 DIV + 15 AS col2, + 83
----
0
83

skipif mysql # not compatible
query II rowsort label-8520
SELECT + 11 / + 15 AS col2, + 83
----
0
83

query II rowsort
SELECT ALL 22 * - 10 * + 53 + - 81 AS col2, 40 + 44 AS col2
----
-11741
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8522
SELECT DISTINCT 91 * - CAST( NULL AS SIGNED ) + 27 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8522
SELECT DISTINCT 91 * - CAST ( NULL AS INTEGER ) + 27 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8523
SELECT + 43, + 28 DIV 79 + + 89 + - + MIN( - - 88 ) - + 87 * 58 AS col2
----
43
-5045

skipif mysql # not compatible
query II rowsort label-8523
SELECT + 43, + 28 / 79 + + 89 + - + MIN ( - - 88 ) - + 87 * 58 AS col2
----
43
-5045

onlyif mysql # aggregate syntax: 
query II rowsort label-8524
SELECT + 46, 67 * + NULLIF ( - 9, - COUNT( 12 ) ) col1
----
46
-603

skipif mysql # not compatible
query II rowsort label-8524
SELECT + 46, 67 * + NULLIF ( - 9, - COUNT ( 12 ) ) col1
----
46
-603

query I rowsort
SELECT COALESCE ( - 58, - + 53 ) AS col2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8526
SELECT ALL + 22 * + 21 + + 39 + - - MIN( - 94 ) AS col0
----
407

skipif mysql # not compatible
query I rowsort label-8526
SELECT ALL + 22 * + 21 + + 39 + - - MIN ( - 94 ) AS col0
----
407

query II rowsort
SELECT 3, 40 AS col1
----
3
40

query I rowsort
SELECT - - 58 * + + 58 + - + 49 - 39 AS col1
----
3276

query I rowsort
SELECT ALL - 93 * 43 - - 82
----
-3917

onlyif mysql # aggregate syntax: 
query I rowsort label-8530
SELECT - COUNT( * ) * + 41
----
-41

skipif mysql # not compatible
query I rowsort label-8530
SELECT - COUNT ( * ) * + 41
----
-41

query I rowsort
SELECT DISTINCT - ( ( + 39 ) ) AS col2
----
-39

query I rowsort
SELECT DISTINCT + 50 * - + ( - 16 ) * 33 - + ( 64 ) + 46 * - 68
----
23208

query I rowsort
SELECT + 21 * ( - 65 ) + + 81 + 2
----
-1282

query I rowsort
SELECT - + 4 - 78 AS col1
----
-82

query I rowsort
SELECT + + 93 * + + 48 AS col2
----
4464

query II rowsort
SELECT - - 83 AS col1, 1 * + 54 AS col0
----
83
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8537
SELECT MIN( ALL + 87 )
----
87

skipif mysql # not compatible
query I rowsort label-8537
SELECT MIN ( ALL + 87 )
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8538
SELECT - - COALESCE ( + 79, + CASE - - CAST( + - CAST( - 63 AS SIGNED ) AS SIGNED ) WHEN CAST( NULL AS SIGNED ) THEN 13 WHEN - 35 * + 36 THEN + 19 END * 84 ) AS col2
----
79

skipif mysql # not compatible
query I rowsort label-8538
SELECT - - COALESCE ( + 79, + CASE - - CAST ( + - CAST ( - 63 AS INTEGER ) AS INTEGER ) WHEN CAST ( NULL AS INTEGER ) THEN 13 WHEN - 35 * + 36 THEN + 19 END * 84 ) AS col2
----
79

query II rowsort
SELECT ALL + 57 AS col0, NULLIF ( + 67, - 40 ) + - - 88 col1
----
57
155

onlyif mysql # aggregate syntax: 
query II rowsort label-8540
SELECT COUNT( * ) AS col0, + 84 + + 2
----
1
86

skipif mysql # not compatible
query II rowsort label-8540
SELECT COUNT ( * ) AS col0, + 84 + + 2
----
1
86

query I rowsort
SELECT - + 44 + - 1
----
-45

query I rowsort
SELECT - 50 * 82 + + 97 - - 42 + + 13 * - 27 * 23 * - 12 col1
----
92915

onlyif mysql # aggregate syntax: 
query II rowsort label-8543
SELECT ALL 64, 22 + + - COUNT( + ( - 92 ) ) AS col0
----
64
21

skipif mysql # not compatible
query II rowsort label-8543
SELECT ALL 64, 22 + + - COUNT ( + ( - 92 ) ) AS col0
----
64
21

onlyif mysql # aggregate syntax: 
query II rowsort label-8544
SELECT ALL + COUNT( * ), - 82 + + 12 AS col1
----
1
-70

skipif mysql # not compatible
query II rowsort label-8544
SELECT ALL + COUNT ( * ), - 82 + + 12 AS col1
----
1
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-8545
SELECT ALL NULLIF ( + 21, COUNT( ALL 24 ) * - COUNT( DISTINCT - 38 ) ) AS col1
----
21

skipif mysql # not compatible
query I rowsort label-8545
SELECT ALL NULLIF ( + 21, COUNT ( ALL 24 ) * - COUNT ( DISTINCT - 38 ) ) AS col1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8546
SELECT - SUM( DISTINCT - - 96 )
----
-96

skipif mysql # not compatible
query I rowsort label-8546
SELECT - SUM ( DISTINCT - - 96 )
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8547
SELECT DISTINCT - - MAX( 42 ) * - 16 * - 38
----
25536

skipif mysql # not compatible
query I rowsort label-8547
SELECT DISTINCT - - MAX ( 42 ) * - 16 * - 38
----
25536

onlyif mysql # aggregate syntax: 
query I rowsort label-8548
SELECT 71 + - MIN( + + 28 ) AS col1
----
43

skipif mysql # not compatible
query I rowsort label-8548
SELECT 71 + - MIN ( + + 28 ) AS col1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-8549
SELECT DISTINCT - 34 + + ( + COUNT( * ) ) + + 41
----
8

skipif mysql # not compatible
query I rowsort label-8549
SELECT DISTINCT - 34 + + ( + COUNT ( * ) ) + + 41
----
8

query I rowsort
SELECT 49 - 57 + - 12 AS col0
----
-20

query I rowsort
SELECT ALL - 16 + + 31
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8552
SELECT 58 - + - 64 DIV - + COUNT( * ) AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-8552
SELECT 58 - + - 64 / - + COUNT ( * ) AS col0
----
-6

query I rowsort
SELECT DISTINCT + 71 + + 11
----
82

query I rowsort
SELECT ALL - 16 + 8 + + 5
----
-3

query II rowsort
SELECT DISTINCT + 62 + + 94 AS col2, 12 + 88 + - + 44 + + 26 * 75 AS col1
----
156
2006

query I rowsort
SELECT 53 * + - 21 + 6 AS col2
----
-1107

query I rowsort
SELECT ALL 64 + - + 83
----
-19

query I rowsort
SELECT 92 + - 44 - - - 78
----
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-8559
SELECT COUNT( * ) * + 69, SUM( ALL 61 ) + + + 75 AS col1
----
69
136

skipif mysql # not compatible
query II rowsort label-8559
SELECT COUNT ( * ) * + 69, SUM ( ALL 61 ) + + + 75 AS col1
----
69
136

onlyif mysql # aggregate syntax: 
query I rowsort label-8560
SELECT SUM( ALL ( + 24 ) ) AS col1
----
24

skipif mysql # not compatible
query I rowsort label-8560
SELECT SUM ( ALL ( + 24 ) ) AS col1
----
24

query I rowsort
SELECT DISTINCT ( 24 ) - + 71 AS col1
----
-47

query I rowsort
SELECT + 59 + 67
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-8563
SELECT + MIN( ALL 92 ) + 95 AS col2
----
187

skipif mysql # not compatible
query I rowsort label-8563
SELECT + MIN ( ALL 92 ) + 95 AS col2
----
187

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8564
SELECT - 81 * + CAST( MIN( ALL + + 39 ) AS SIGNED ) AS col0
----
-3159

skipif mysql # not compatible
query I rowsort label-8564
SELECT - 81 * + CAST ( MIN ( ALL + + 39 ) AS INTEGER ) AS col0
----
-3159

query I rowsort
SELECT DISTINCT - ( + 64 ) AS col2
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8566
SELECT + 48 * + MIN( ALL CAST( 98 AS SIGNED ) ) AS col1
----
4704

skipif mysql # not compatible
query I rowsort label-8566
SELECT + 48 * + MIN ( ALL CAST ( 98 AS INTEGER ) ) AS col1
----
4704

onlyif mysql # aggregate syntax: 
query I rowsort label-8567
SELECT ALL MAX( + 6 )
----
6

skipif mysql # not compatible
query I rowsort label-8567
SELECT ALL MAX ( + 6 )
----
6

query I rowsort
SELECT ALL + 96 + + NULLIF ( + 10, - 98 ) + 12 * - - 72
----
970

query I rowsort
SELECT + 14 * 73 + 76
----
1098

onlyif mysql # aggregate syntax: 
query II rowsort label-8570
SELECT 84 + - + 7 AS col1, CASE + MIN( DISTINCT 12 ) WHEN - 12 THEN - 95 - 68 END AS col1
----
77
NULL

skipif mysql # not compatible
query II rowsort label-8570
SELECT 84 + - + 7 AS col1, CASE + MIN ( DISTINCT 12 ) WHEN - 12 THEN - 95 - 68 END AS col1
----
77
NULL

query I rowsort
SELECT DISTINCT - 2 + + + 51 AS col0
----
49

query I rowsort
SELECT ALL + 47 + + + 38 AS col1
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-8573
SELECT 87 DIV - + 26
----
-3

skipif mysql # not compatible
query I rowsort label-8573
SELECT 87 / - + 26
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8574
SELECT 58 + + 97 + + 3 * + COUNT( * ) + + 22
----
180

skipif mysql # not compatible
query I rowsort label-8574
SELECT 58 + + 97 + + 3 * + COUNT ( * ) + + 22
----
180

query I rowsort
SELECT DISTINCT 7 + - 15
----
-8

query I rowsort
SELECT ALL 65 + 13 AS col2
----
78

query I rowsort
SELECT ALL + 57 * 1
----
57

query I rowsort
SELECT DISTINCT - 30 + - ( 26 )
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-8579
SELECT DISTINCT + 76 * COUNT( * ) * 52 * + - 48 col2
----
-189696

skipif mysql # not compatible
query I rowsort label-8579
SELECT DISTINCT + 76 * COUNT ( * ) * 52 * + - 48 col2
----
-189696

onlyif mysql # aggregate syntax: 
query I rowsort label-8580
SELECT ALL - 85 + COUNT( * ) + + - MIN( + 63 ) * - NULLIF ( + - ( + - MAX( DISTINCT 12 ) ), + COUNT( * ) * + COUNT( * ) + - 90 / AVG ( 11 + - 55 ) ) + 87 * 97 AS col1
----
9111

skipif mysql # not compatible
query I rowsort label-8580
SELECT ALL - 85 + COUNT ( * ) + + - MIN ( + 63 ) * - NULLIF ( + - ( + - MAX ( DISTINCT 12 ) ), + COUNT ( * ) * + COUNT ( * ) + - 90 / AVG ( 11 + - 55 ) ) + 87 * 97 AS col1
----
9111

query I rowsort
SELECT 93 + + 43 AS col2
----
136

query I rowsort
SELECT DISTINCT - 12 * - 73 AS col0
----
876

onlyif mysql # DIV for integer division: 
query I rowsort label-8583
SELECT - 8 DIV - 24 + - 24
----
-24

skipif mysql # not compatible
query I rowsort label-8583
SELECT - 8 / - 24 + - 24
----
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-8584
SELECT 22 DIV 82 + 1 + + ( - 30 ) AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-8584
SELECT 22 / 82 + 1 + + ( - 30 ) AS col0
----
-29

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-8585
SELECT ALL CAST( NULL AS DECIMAL ) * + COALESCE ( - 78, - 92 ) - + + MAX( 85 ), 54 DIV - + NULLIF ( + 50, + 7 ) AS col2
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-8585
SELECT ALL CAST ( NULL AS REAL ) * + COALESCE ( - 78, - 92 ) - + + MAX ( 85 ), 54 / - + NULLIF ( + 50, + 7 ) AS col2
----
NULL
-1

query I rowsort
SELECT 83 * - + 17 AS col1
----
-1411

onlyif mysql # aggregate syntax: 
query I rowsort label-8587
SELECT COUNT( + 54 )
----
1

skipif mysql # not compatible
query I rowsort label-8587
SELECT COUNT ( + 54 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8588
SELECT DISTINCT - 51 * COUNT( + 77 ) * - 78 * + CASE - - 24 WHEN + - ( + 91 ) / 49 + 92 THEN 8 * 2 + - 79 / 46 WHEN 19 * CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) - + MIN( ALL - 88 ) THEN + COUNT( * ) - 85 * 84 WHEN ( 72 ) THEN + CAST( 73 AS SIGNED ) * MIN( 31 ) - 31 END - 14
----
NULL

skipif mysql # not compatible
query I rowsort label-8588
SELECT DISTINCT - 51 * COUNT ( + 77 ) * - 78 * + CASE - - 24 WHEN + - ( + 91 ) / 49 + 92 THEN 8 * 2 + - 79 / 46 WHEN 19 * CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) - + MIN ( ALL - 88 ) THEN + COUNT ( * ) - 85 * 84 WHEN ( 72 ) THEN + CAST ( 73 AS INTEGER ) * MIN ( 31 ) - 31 END - 14
----
NULL

query I rowsort
SELECT 8 * - + NULLIF ( + 20, + NULLIF ( - + 96, ( - ( - 47 ) ) * + 39 ) )
----
-160

query II rowsort
SELECT DISTINCT - - 81 AS col0, - 14
----
81
-14

query II rowsort
SELECT ALL - 25 AS col0, + 36
----
-25
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8592
SELECT ALL - NULLIF ( - + COUNT( * ), - CAST( NULL AS SIGNED ) ) * + - 37 + + + COUNT( * ) col0
----
-36

skipif mysql # not compatible
query I rowsort label-8592
SELECT ALL - NULLIF ( - + COUNT ( * ), - CAST ( NULL AS INTEGER ) ) * + - 37 + + + COUNT ( * ) col0
----
-36

query I rowsort
SELECT - 29 * 56 col1
----
-1624

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8594
SELECT ALL + CAST( NULL AS SIGNED ) / - + AVG ( DISTINCT + 32 ) * 72 * + 13 * + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8594
SELECT ALL + CAST ( NULL AS INTEGER ) / - + AVG ( DISTINCT + 32 ) * 72 * + 13 * + - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8595
SELECT ALL 26 * - NULLIF ( + - 15, + 60 + + 50 ) + - 39 * - 82 * - - 78 + - CAST( 32 AS SIGNED ) DIV - 40
----
249834

skipif mysql # not compatible
query I rowsort label-8595
SELECT ALL 26 * - NULLIF ( + - 15, + 60 + + 50 ) + - 39 * - 82 * - - 78 + - CAST ( 32 AS INTEGER ) / - 40
----
249834

onlyif mysql # DIV for integer division: 
query I rowsort label-8596
SELECT - 96 DIV - + 97
----
0

skipif mysql # not compatible
query I rowsort label-8596
SELECT - 96 / - + 97
----
0

query I rowsort
SELECT - 9 - + ( - 40 ) + - 91
----
-60

query I rowsort
SELECT + COALESCE ( - 67, + 8, - 96 ) AS col0
----
-67

query I rowsort
SELECT DISTINCT + 38 * - 62 + 39 col1
----
-2317

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8600
SELECT ALL + - 45 * - + COALESCE ( 34, - 21, COUNT( * ) DIV + 86 DIV 62 )
----
1530

skipif mysql # not compatible
query I rowsort label-8600
SELECT ALL + - 45 * - + COALESCE ( 34, - 21, COUNT ( * ) / + 86 / 62 )
----
1530

onlyif mysql # DIV for integer division: 
query I rowsort label-8601
SELECT DISTINCT 71 DIV - 43
----
-1

skipif mysql # not compatible
query I rowsort label-8601
SELECT DISTINCT 71 / - 43
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8602
SELECT ALL + ( - 98 ) + - 19 AS col1, - COUNT( * ) * CAST( NULL AS SIGNED ) * - COUNT( * ) + + 97 + - 48 + ( 60 )
----
-117
NULL

skipif mysql # not compatible
query II rowsort label-8602
SELECT ALL + ( - 98 ) + - 19 AS col1, - COUNT ( * ) * CAST ( NULL AS INTEGER ) * - COUNT ( * ) + + 97 + - 48 + ( 60 )
----
-117
NULL

query II rowsort
SELECT - 87, - 87 AS col2
----
-87
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-8604
SELECT ALL ( + 52 ) DIV + 53 + + - 27
----
-27

skipif mysql # not compatible
query I rowsort label-8604
SELECT ALL ( + 52 ) / + 53 + + - 27
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8605
SELECT - 98 / - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8605
SELECT - 98 / - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query III rowsort label-8606
SELECT + 68 DIV 93 DIV - 67 col1, - 25 * - - ( + 11 ) AS col1, + 27 AS col2
----
0
-275
27

skipif mysql # not compatible
query III rowsort label-8606
SELECT + 68 / 93 / - 67 col1, - 25 * - - ( + 11 ) AS col1, + 27 AS col2
----
0
-275
27

onlyif mysql # aggregate syntax: 
query II rowsort label-8607
SELECT - + 56, COUNT( * ) * 59 col1
----
-56
59

skipif mysql # not compatible
query II rowsort label-8607
SELECT - + 56, COUNT ( * ) * 59 col1
----
-56
59

query I rowsort
SELECT + ( 37 ) * - 35
----
-1295

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8609
SELECT ALL + 64 + + ( CASE CAST( - 3 AS SIGNED ) WHEN - + AVG ( ALL + + ( + 95 ) ) * - 8 + + 65 THEN 59 END ) + 7 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8609
SELECT ALL + 64 + + ( CASE CAST ( - 3 AS INTEGER ) WHEN - + AVG ( ALL + + ( + 95 ) ) * - 8 + + 65 THEN 59 END ) + 7 col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8610
SELECT ALL ( + - 9 ) + - COUNT( * ) + 42 + CASE - 20 WHEN - CAST( NULL AS SIGNED ) THEN COUNT( * ) * + 71 END + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8610
SELECT ALL ( + - 9 ) + - COUNT ( * ) + 42 + CASE - 20 WHEN - CAST ( NULL AS INTEGER ) THEN COUNT ( * ) * + 71 END + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT ALL 66 + + 69 AS col0
----
135

query I rowsort
SELECT - COALESCE ( - - ( 13 ), + NULLIF ( - + 41, 67 * 86 ), 93, 38 ) col2
----
-13

query I rowsort
SELECT ALL - 16 + + 91
----
75

query I rowsort
SELECT ALL 18 * - + 74 AS col2
----
-1332

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8615
SELECT + ( - 33 ) * + CAST( NULL AS SIGNED ) + - + COUNT( ALL - CAST( - 31 AS DECIMAL ) ) * - + MAX( DISTINCT + 15 ) + 72 * SUM( ALL 36 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8615
SELECT + ( - 33 ) * + CAST ( NULL AS INTEGER ) + - + COUNT ( ALL - CAST ( - 31 AS REAL ) ) * - + MAX ( DISTINCT + 15 ) + 72 * SUM ( ALL 36 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8616
SELECT DISTINCT CASE + COUNT( DISTINCT + - 23 ) WHEN + 71 THEN + 95 WHEN - 21 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8616
SELECT DISTINCT CASE + COUNT ( DISTINCT + - 23 ) WHEN + 71 THEN + 95 WHEN - 21 THEN NULL END
----
NULL

query I rowsort
SELECT + 0 + - + 40 col2
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-8618
SELECT ALL + MIN( - 18 ) - + - 60 AS col2
----
42

skipif mysql # not compatible
query I rowsort label-8618
SELECT ALL + MIN ( - 18 ) - + - 60 AS col2
----
42

query I rowsort
SELECT + ( + + 32 ) - - - 18
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8620
SELECT + 70 + - - NULLIF ( + 58, + + 60 * - + NULLIF ( COUNT( * ), + 66 ) ) * + 99 + - COUNT( * )
----
5811

skipif mysql # not compatible
query I rowsort label-8620
SELECT + 70 + - - NULLIF ( + 58, + + 60 * - + NULLIF ( COUNT ( * ), + 66 ) ) * + 99 + - COUNT ( * )
----
5811

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8621
SELECT DISTINCT COALESCE ( 93, - + 79 + 33 * 63 DIV NULLIF ( - AVG ( + + 49 ), + 7 ) - COUNT( * ) ) AS col1
----
93

skipif mysql # not compatible
query I rowsort label-8621
SELECT DISTINCT COALESCE ( 93, - + 79 + 33 * 63 / NULLIF ( - AVG ( + + 49 ), + 7 ) - COUNT ( * ) ) AS col1
----
93

query I rowsort
SELECT ALL + 27 * - 85 * + - 29 AS col0
----
66555

onlyif mysql # aggregate syntax: 
query I rowsort label-8623
SELECT DISTINCT + ( + 88 ) * - + 38 * COUNT( * ) + 10 - - 20 + + 61 - - CASE + + 65 WHEN 21 THEN - 37 ELSE 88 END
----
-3165

skipif mysql # not compatible
query I rowsort label-8623
SELECT DISTINCT + ( + 88 ) * - + 38 * COUNT ( * ) + 10 - - 20 + + 61 - - CASE + + 65 WHEN 21 THEN - 37 ELSE 88 END
----
-3165

query I rowsort
SELECT - 40 * 95
----
-3800

onlyif mysql # aggregate syntax: 
query II rowsort label-8625
SELECT - 99 * + 11, - COUNT( * ) + + + 27 * 59 AS col1
----
-1089
1592

skipif mysql # not compatible
query II rowsort label-8625
SELECT - 99 * + 11, - COUNT ( * ) + + + 27 * 59 AS col1
----
-1089
1592

query I rowsort
SELECT ALL + 27 * 92 * + - 29
----
-72036

onlyif mysql # aggregate syntax: 
query I rowsort label-8627
SELECT ALL - NULLIF ( + ( - 43 ), + 19 * 72 * - 2 + + 34 + COUNT( * ) * - 41 * 68 ) * - 25 AS col0
----
-1075

skipif mysql # not compatible
query I rowsort label-8627
SELECT ALL - NULLIF ( + ( - 43 ), + 19 * 72 * - 2 + + 34 + COUNT ( * ) * - 41 * 68 ) * - 25 AS col0
----
-1075

onlyif mysql # aggregate syntax: 
query II rowsort label-8628
SELECT - + 59 * 86 * - + COUNT( * ) + - - 11 AS col0, - 30 * - 92 - - + 2 AS col2
----
5085
2762

skipif mysql # not compatible
query II rowsort label-8628
SELECT - + 59 * 86 * - + COUNT ( * ) + - - 11 AS col0, - 30 * - 92 - - + 2 AS col2
----
5085
2762

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8629
SELECT - 27 - + COALESCE ( + + 81, - + 21 DIV + 1 + + + 58 - 15, MAX( DISTINCT + 47 ) * - COUNT( * ), CASE + 83 WHEN COUNT( * ) + 1 THEN NULL WHEN + 54 THEN COUNT( * ) DIV + AVG ( + 3 ) END ) + 85 DIV 61
----
-107

skipif mysql # not compatible
query I rowsort label-8629
SELECT - 27 - + COALESCE ( + + 81, - + 21 / + 1 + + + 58 - 15, MAX ( DISTINCT + 47 ) * - COUNT ( * ), CASE + 83 WHEN COUNT ( * ) + 1 THEN NULL WHEN + 54 THEN COUNT ( * ) / + AVG ( + 3 ) END ) + 85 / 61
----
-107

onlyif mysql # aggregate syntax: 
query I rowsort label-8630
SELECT - + 81 * + 92 + 69 + + - SUM( - - 87 ) col0
----
-7470

skipif mysql # not compatible
query I rowsort label-8630
SELECT - + 81 * + 92 + 69 + + - SUM ( - - 87 ) col0
----
-7470

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8631
SELECT + 5 * + 66 + - - SUM( DISTINCT + 63 ) + 94 DIV - 71
----
392

skipif mysql # not compatible
query I rowsort label-8631
SELECT + 5 * + 66 + - - SUM ( DISTINCT + 63 ) + 94 / - 71
----
392

query I rowsort
SELECT - + 31 + + 4 AS col0
----
-27

query I rowsort
SELECT + + ( - 61 ) AS col0
----
-61

query I rowsort
SELECT ALL 22 * - 63 - + 93 + + - NULLIF ( - 95, 3 ) col2
----
-1384

query I rowsort
SELECT - - 56 + + + 72
----
128

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8636
SELECT ALL 60 * - + 88 AS col2, - ( - + ( 50 ) ) DIV - - SUM( DISTINCT + COALESCE ( + 44, + 70 ) ) + COUNT( * ) * - ( 61 DIV 78 ) AS col0
----
-5280
1

skipif mysql # not compatible
query II rowsort label-8636
SELECT ALL 60 * - + 88 AS col2, - ( - + ( 50 ) ) / - - SUM ( DISTINCT + COALESCE ( + 44, + 70 ) ) + COUNT ( * ) * - ( 61 / 78 ) AS col0
----
-5280
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8637
SELECT AVG ( ALL ( NULLIF ( + CAST( NULL AS SIGNED ), 33 ) ) ) * + - COUNT( * ) + CAST( NULL AS SIGNED ) * - 94 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8637
SELECT AVG ( ALL ( NULLIF ( + CAST ( NULL AS INTEGER ), 33 ) ) ) * + - COUNT ( * ) + CAST ( NULL AS INTEGER ) * - 94 col1
----
NULL

query I rowsort
SELECT ALL + 10 * + 7 AS col2
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8639
SELECT CASE 15 WHEN - + CASE + NULLIF ( + 8, NULLIF ( - + COUNT( * ), - ( + 0 ) ) - + 34 ) WHEN CASE 26 WHEN COUNT( * ) - 4 THEN MIN( ALL - 32 ) + 7 WHEN - 36 - 11 THEN + ( 3 ) ELSE NULLIF ( + 56, - SUM( DISTINCT + CAST( NULL AS SIGNED ) ) ) * - 41 END - - SUM( DISTINCT + 78 ) THEN 76 + + 58 * 46 WHEN 20 * - 0 THEN 0 END THEN NULL WHEN 2 THEN 83 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8639
SELECT CASE 15 WHEN - + CASE + NULLIF ( + 8, NULLIF ( - + COUNT ( * ), - ( + 0 ) ) - + 34 ) WHEN CASE 26 WHEN COUNT ( * ) - 4 THEN MIN ( ALL - 32 ) + 7 WHEN - 36 - 11 THEN + ( 3 ) ELSE NULLIF ( + 56, - SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) ) * - 41 END - - SUM ( DISTINCT + 78 ) THEN 76 + + 58 * 46 WHEN 20 * - 0 THEN 0 END THEN NULL WHEN 2 THEN 83 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8640
SELECT ALL 30 * SUM( DISTINCT - 42 ) + + 5
----
-1255

skipif mysql # not compatible
query I rowsort label-8640
SELECT ALL 30 * SUM ( DISTINCT - 42 ) + + 5
----
-1255

onlyif mysql # aggregate syntax: 
query I rowsort label-8641
SELECT + CASE MAX( + 98 ) WHEN + COUNT( * ) + MAX( ALL 17 ) THEN - 60 WHEN + 87 + - 84 THEN + 78 + 21 WHEN COUNT( * ) THEN + COUNT( 78 ) * 53 WHEN 11 * - CASE - 57 WHEN + 47 - 32 THEN - 72 END + - COALESCE ( 42, 68 - 15 ) THEN - 43 * + ( 77 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8641
SELECT + CASE MAX ( + 98 ) WHEN + COUNT ( * ) + MAX ( ALL 17 ) THEN - 60 WHEN + 87 + - 84 THEN + 78 + 21 WHEN COUNT ( * ) THEN + COUNT ( 78 ) * 53 WHEN 11 * - CASE - 57 WHEN + 47 - 32 THEN - 72 END + - COALESCE ( 42, 68 - 15 ) THEN - 43 * + ( 77 ) END
----
NULL

query I rowsort
SELECT - - 55 * + 97
----
5335

onlyif mysql # aggregate syntax: 
query I rowsort label-8643
SELECT ALL 48 + - 6 - + COUNT( * ) AS col0
----
41

skipif mysql # not compatible
query I rowsort label-8643
SELECT ALL 48 + - 6 - + COUNT ( * ) AS col0
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-8644
SELECT ALL 7 DIV 4 DIV - - 8
----
0

skipif mysql # not compatible
query I rowsort label-8644
SELECT ALL 7 / 4 / - - 8
----
0

query I rowsort
SELECT + 13 * - - 7 * 91
----
8281

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8646
SELECT DISTINCT 77 - + ( - 24 ) AS col1, CAST( NULL AS SIGNED ) AS col0
----
101
NULL

skipif mysql # not compatible
query II rowsort label-8646
SELECT DISTINCT 77 - + ( - 24 ) AS col1, CAST ( NULL AS INTEGER ) AS col0
----
101
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8647
SELECT DISTINCT 53 DIV + 2
----
26

skipif mysql # not compatible
query I rowsort label-8647
SELECT DISTINCT 53 / + 2
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-8648
SELECT ALL 12 - + 75 * - + SUM( DISTINCT - 99 ) + - 76 AS col1, + 80 AS col0
----
-7489
80

skipif mysql # not compatible
query II rowsort label-8648
SELECT ALL 12 - + 75 * - + SUM ( DISTINCT - 99 ) + - 76 AS col1, + 80 AS col0
----
-7489
80

query I rowsort
SELECT + 77 * + 72 col2
----
5544

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8650
SELECT + ( - 19 ) + COUNT( * ) AS col0, CAST( NULL AS DECIMAL ) AS col2
----
-18
NULL

skipif mysql # not compatible
query II rowsort label-8650
SELECT + ( - 19 ) + COUNT ( * ) AS col0, CAST ( NULL AS REAL ) AS col2
----
-18
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8651
SELECT + 76 - - COUNT( * ) AS col1
----
77

skipif mysql # not compatible
query I rowsort label-8651
SELECT + 76 - - COUNT ( * ) AS col1
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8652
SELECT ALL COUNT( * ) AS col2, 65 DIV 51 + + 85
----
1
86

skipif mysql # not compatible
query II rowsort label-8652
SELECT ALL COUNT ( * ) AS col2, 65 / 51 + + 85
----
1
86

onlyif mysql # aggregate syntax: 
query I rowsort label-8653
SELECT + 47 + COUNT( * ) AS col0
----
48

skipif mysql # not compatible
query I rowsort label-8653
SELECT + 47 + COUNT ( * ) AS col0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8654
SELECT + 40 * - 43 * - - 72 * + COUNT( * )
----
-123840

skipif mysql # not compatible
query I rowsort label-8654
SELECT + 40 * - 43 * - - 72 * + COUNT ( * )
----
-123840

query I rowsort
SELECT + 87 * - - 41
----
3567

query II rowsort
SELECT ALL + - 86 AS col1, ( + 76 ) col1
----
-86
76

query I rowsort
SELECT - - 46 + 8 + + - 67 AS col1
----
-13

query I rowsort
SELECT ( + 25 ) * - + 59 AS col1
----
-1475

query I rowsort
SELECT 34 + + 89
----
123

query II rowsort
SELECT ALL ( 2 ) + + 35, - 56 AS col1
----
37
-56

query I rowsort
SELECT DISTINCT - 63 + + 27 * - - 62 - - 79
----
1690

onlyif mysql # aggregate syntax: 
query I rowsort label-8662
SELECT ALL - SUM( DISTINCT 67 ) + NULLIF ( - 84, COUNT( * ) * - 46 )
----
-151

skipif mysql # not compatible
query I rowsort label-8662
SELECT ALL - SUM ( DISTINCT 67 ) + NULLIF ( - 84, COUNT ( * ) * - 46 )
----
-151

query I rowsort
SELECT DISTINCT + + 7 * - + 1 AS col1
----
-7

query I rowsort
SELECT ALL CASE - + 65 WHEN - 41 * 87 + - - 22 THEN + - 37 END + - 83 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8665
SELECT DISTINCT + CAST( + - COUNT( * ) AS SIGNED ) + 44 * - 79 + - 96 - - 96 - ( + COUNT( * ) ) + 40 * - 15
----
-4078

skipif mysql # not compatible
query I rowsort label-8665
SELECT DISTINCT + CAST ( + - COUNT ( * ) AS INTEGER ) + 44 * - 79 + - 96 - - 96 - ( + COUNT ( * ) ) + 40 * - 15
----
-4078

onlyif mysql # aggregate syntax: 
query I rowsort label-8666
SELECT + 41 * - 40 * COUNT( ALL + 7 )
----
-1640

skipif mysql # not compatible
query I rowsort label-8666
SELECT + 41 * - 40 * COUNT ( ALL + 7 )
----
-1640

query I rowsort
SELECT + - ( + - 0 )
----
0

query II rowsort
SELECT ALL - - 77 AS col1, 60 AS col0
----
77
60

query I rowsort
SELECT + 6 * + 58 - + 73 * 58 * + 25 + - 93
----
-105595

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8670
SELECT ALL + ( - 92 ) + CAST( NULL AS SIGNED ) + - 58
----
NULL

skipif mysql # not compatible
query I rowsort label-8670
SELECT ALL + ( - 92 ) + CAST ( NULL AS INTEGER ) + - 58
----
NULL

query II rowsort
SELECT ALL - ( COALESCE ( + + 47, - 53 ) ) AS col0, 60 AS col1
----
-47
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8672
SELECT ALL - 98 - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8672
SELECT ALL - 98 - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 66 * 89 * 36
----
211464

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8674
SELECT DISTINCT + 17 - + - 74 + 10 * + 73 * - - CASE - 68 WHEN 72 * - 88 - 80 * 42 / - - 61 THEN + COUNT( * ) + - 52 * - COUNT( * ) WHEN CAST( + 1 AS SIGNED ) + 46 / CAST( 74 AS SIGNED ) THEN 0 END + - 89 * ( 9 + + 32 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8674
SELECT DISTINCT + 17 - + - 74 + 10 * + 73 * - - CASE - 68 WHEN 72 * - 88 - 80 * 42 / - - 61 THEN + COUNT ( * ) + - 52 * - COUNT ( * ) WHEN CAST ( + 1 AS INTEGER ) + 46 / CAST ( 74 AS INTEGER ) THEN 0 END + - 89 * ( 9 + + 32 )
----
NULL

query II rowsort
SELECT - 6 AS col2, + COALESCE ( - - 66, + + 73, + 96 ) - + 17
----
-6
49

query I rowsort
SELECT DISTINCT - 53 * + ( 99 )
----
-5247

query II rowsort
SELECT ALL 59, 25 AS col0
----
59
25

query II rowsort
SELECT - 60 AS col2, + 39 AS col1
----
-60
39

query I rowsort
SELECT 86 * + - 54
----
-4644

onlyif mysql # DIV for integer division: 
query I rowsort label-8680
SELECT 22 * + 70 DIV - 5 AS col1
----
-308

skipif mysql # not compatible
query I rowsort label-8680
SELECT 22 * + 70 / - 5 AS col1
----
-308

query II rowsort
SELECT 96 + - - 90 AS col0, 32 AS col2
----
186
32

query II rowsort
SELECT ALL 70, 56 AS col0
----
70
56

query II rowsort
SELECT DISTINCT 22 AS col2, - 68 AS col0
----
22
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-8684
SELECT DISTINCT + COUNT( 91 ) * + 33 AS col2
----
33

skipif mysql # not compatible
query I rowsort label-8684
SELECT DISTINCT + COUNT ( 91 ) * + 33 AS col2
----
33

query I rowsort
SELECT ALL - 27 * - 31
----
837

query II rowsort
SELECT ALL 80 AS col1, + 5
----
80
5

onlyif mysql # DIV for integer division: 
query II rowsort label-8687
SELECT DISTINCT 33 AS col0, + ( + 24 ) + 20 + + 19 DIV + - 60 AS col0
----
33
44

skipif mysql # not compatible
query II rowsort label-8687
SELECT DISTINCT 33 AS col0, + ( + 24 ) + 20 + + 19 / + - 60 AS col0
----
33
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8688
SELECT ALL COUNT( 62 ) DIV - 18 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8688
SELECT ALL COUNT ( 62 ) / - 18 AS col1
----
0

query II rowsort
SELECT ALL 91 AS col2, - 6 AS col0
----
91
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-8690
SELECT DISTINCT COUNT( * ) / - + CASE + 18 WHEN - COUNT( * ) * + 34 THEN - ( + CASE 38 WHEN - 51 THEN + + ( + ( COUNT( * ) ) ) END ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8690
SELECT DISTINCT COUNT ( * ) / - + CASE + 18 WHEN - COUNT ( * ) * + 34 THEN - ( + CASE 38 WHEN - 51 THEN + + ( + ( COUNT ( * ) ) ) END ) END AS col1
----
NULL

query II rowsort
SELECT - 48 AS col1, - 48
----
-48
-48

query I rowsort
SELECT ALL 93 + - 4
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8693
SELECT 59 + + CASE + 41 WHEN CAST( + 95 AS SIGNED ) * - - 71 - + COUNT( * ) + 20 + 5 * + - 91 / + ( COUNT( * ) ) * COUNT( * ) THEN NULL ELSE - 72 * 1 - 15 * + 51 END * 99 AS col0
----
-82804

skipif mysql # not compatible
query I rowsort label-8693
SELECT 59 + + CASE + 41 WHEN CAST ( + 95 AS INTEGER ) * - - 71 - + COUNT ( * ) + 20 + 5 * + - 91 / + ( COUNT ( * ) ) * COUNT ( * ) THEN NULL ELSE - 72 * 1 - 15 * + 51 END * 99 AS col0
----
-82804

onlyif mysql # aggregate syntax: 
query I rowsort label-8694
SELECT ALL - 3 + + MIN( ALL 51 )
----
48

skipif mysql # not compatible
query I rowsort label-8694
SELECT ALL - 3 + + MIN ( ALL 51 )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8695
SELECT MIN( - 49 ) AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-8695
SELECT MIN ( - 49 ) AS col0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-8696
SELECT ALL - MIN( ALL 6 ) + + - 18
----
-24

skipif mysql # not compatible
query I rowsort label-8696
SELECT ALL - MIN ( ALL 6 ) + + - 18
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-8697
SELECT ALL + ( - - SUM( DISTINCT - + 57 ) ) * - 62
----
3534

skipif mysql # not compatible
query I rowsort label-8697
SELECT ALL + ( - - SUM ( DISTINCT - + 57 ) ) * - 62
----
3534

onlyif mysql # aggregate syntax: 
query I rowsort label-8698
SELECT ALL 95 + + ( - NULLIF ( - 73, + COUNT( * ) / - CASE + - NULLIF ( + 97, 40 ) WHEN 0 THEN + 56 * - 22 + 12 * COUNT( * ) ELSE 64 END + + 19 + COUNT( * ) * 39 ) ) AS col1
----
168

skipif mysql # not compatible
query I rowsort label-8698
SELECT ALL 95 + + ( - NULLIF ( - 73, + COUNT ( * ) / - CASE + - NULLIF ( + 97, 40 ) WHEN 0 THEN + 56 * - 22 + 12 * COUNT ( * ) ELSE 64 END + + 19 + COUNT ( * ) * 39 ) ) AS col1
----
168

query II rowsort
SELECT + + 61 AS col1, 46
----
61
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8700
SELECT + MIN( - 1 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-8700
SELECT + MIN ( - 1 ) col2
----
-1

query II rowsort
SELECT + 6 AS col2, + 4 + - 60
----
6
-56

query I rowsort
SELECT - 92 + 96 + - ( - 26 ) - + - 20
----
50

query II rowsort
SELECT DISTINCT - - 66, - 71 col1
----
66
-71

query II rowsort
SELECT DISTINCT - 59 col1, - 90 * + - 0
----
-59
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8705
SELECT ALL - ( - 4 ) DIV 34 * - 69 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8705
SELECT ALL - ( - 4 ) / 34 * - 69 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8706
SELECT ALL - 90 AS col1, + CAST( - 22 AS SIGNED )
----
-90
-22

skipif mysql # not compatible
query II rowsort label-8706
SELECT ALL - 90 AS col1, + CAST ( - 22 AS INTEGER )
----
-90
-22

query I rowsort
SELECT ALL + 57 * + 75 AS col0
----
4275

query II rowsort
SELECT DISTINCT 37 - 35 AS col1, + 96 AS col2
----
2
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8709
SELECT 6 + + + CAST( 76 AS SIGNED ) + CAST( + COUNT( * ) AS SIGNED ) * 58
----
140

skipif mysql # not compatible
query I rowsort label-8709
SELECT 6 + + + CAST ( 76 AS INTEGER ) + CAST ( + COUNT ( * ) AS INTEGER ) * 58
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-8710
SELECT + SUM( 84 ) * + 97 + 59 AS col1
----
8207

skipif mysql # not compatible
query I rowsort label-8710
SELECT + SUM ( 84 ) * + 97 + 59 AS col1
----
8207

query I rowsort
SELECT ALL 36 * - - 46 AS col1
----
1656

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8712
SELECT ALL SUM( + 53 ), 36 DIV + + 9 AS col0
----
53
4

skipif mysql # not compatible
query II rowsort label-8712
SELECT ALL SUM ( + 53 ), 36 / + + 9 AS col0
----
53
4

query I rowsort
SELECT 21 * + 97
----
2037

query I rowsort
SELECT ALL - 95 * - - 63 * - 11 AS col2
----
65835

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8715
SELECT COUNT( * ) + + 92 + + + ( + MIN( - + 88 ) ) + + + 68 DIV 23, 13 AS col1
----
7
13

skipif mysql # not compatible
query II rowsort label-8715
SELECT COUNT ( * ) + + 92 + + + ( + MIN ( - + 88 ) ) + + + 68 / 23, 13 AS col1
----
7
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8716
SELECT ALL - COALESCE ( + 2, - MIN( ALL - 66 ) ) * - - 13
----
-26

skipif mysql # not compatible
query I rowsort label-8716
SELECT ALL - COALESCE ( + 2, - MIN ( ALL - 66 ) ) * - - 13
----
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-8717
SELECT - 64 DIV - + ( + - 43 )
----
-1

skipif mysql # not compatible
query I rowsort label-8717
SELECT - 64 / - + ( + - 43 )
----
-1

query I rowsort
SELECT - 69 + + + 18
----
-51

query I rowsort
SELECT ALL - ( + 92 ) + - 62
----
-154

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8720
SELECT ALL + NULLIF ( + + 50, - CAST( NULL AS SIGNED ) ) + - - 84 AS col0
----
134

skipif mysql # not compatible
query I rowsort label-8720
SELECT ALL + NULLIF ( + + 50, - CAST ( NULL AS INTEGER ) ) + - - 84 AS col0
----
134

onlyif mysql # aggregate syntax: 
query I rowsort label-8721
SELECT ALL + SUM( 9 ) + + 17 * - COUNT( * ) + 33 + + + 62
----
87

skipif mysql # not compatible
query I rowsort label-8721
SELECT ALL + SUM ( 9 ) + + 17 * - COUNT ( * ) + 33 + + + 62
----
87

query I rowsort
SELECT ALL - + 11 * 0 + - 62
----
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-8723
SELECT ALL - 63 + + + COUNT( * ) * - 0 * ( - - 61 ) AS col2, - 21 + 2 - + MAX( + 50 ) * - 24
----
-63
1181

skipif mysql # not compatible
query II rowsort label-8723
SELECT ALL - 63 + + + COUNT ( * ) * - 0 * ( - - 61 ) AS col2, - 21 + 2 - + MAX ( + 50 ) * - 24
----
-63
1181

query II rowsort
SELECT DISTINCT + + 36 + + 8 AS col1, 33
----
44
33

onlyif mysql # DIV for integer division: 
query I rowsort label-8725
SELECT + 96 + + 49 DIV 82
----
96

skipif mysql # not compatible
query I rowsort label-8725
SELECT + 96 + + 49 / 82
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8726
SELECT ALL - SUM( + - 77 ) AS col2
----
77

skipif mysql # not compatible
query I rowsort label-8726
SELECT ALL - SUM ( + - 77 ) AS col2
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8727
SELECT COALESCE ( 25, + 44 + + - CAST( NULL AS SIGNED ) ) AS col1
----
25

skipif mysql # not compatible
query I rowsort label-8727
SELECT COALESCE ( 25, + 44 + + - CAST ( NULL AS INTEGER ) ) AS col1
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8728
SELECT - 6 DIV - COUNT( * ) + + + 64 AS col1
----
70

skipif mysql # not compatible
query I rowsort label-8728
SELECT - 6 / - COUNT ( * ) + + + 64 AS col1
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-8729
SELECT COALESCE ( - 18, + 28 DIV + 21 - + 47 )
----
-18

skipif mysql # not compatible
query I rowsort label-8729
SELECT COALESCE ( - 18, + 28 / + 21 - + 47 )
----
-18

query II rowsort
SELECT + - 11 * - + 48 AS col2, 35 AS col0
----
528
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8731
SELECT + + 42 * - 9 * - ( MAX( ALL + 94 ) ) * + NULLIF ( + 53, + - AVG ( - 26 ) ) - - 17 - - COALESCE ( + 98, + 30 DIV + 19, 5 ) * - 40
----
1879293

skipif mysql # not compatible
query I rowsort label-8731
SELECT + + 42 * - 9 * - ( MAX ( ALL + 94 ) ) * + NULLIF ( + 53, + - AVG ( - 26 ) ) - - 17 - - COALESCE ( + 98, + 30 / + 19, 5 ) * - 40
----
1879293

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8732
SELECT ALL + CASE 97 WHEN - COUNT( CAST( NULL AS SIGNED ) ) + - 83 THEN - + ( ( + 84 ) ) / - 93 + 28 WHEN - 24 + - - 68 + 44 * + 71 THEN 1 END * - 37 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8732
SELECT ALL + CASE 97 WHEN - COUNT ( CAST ( NULL AS INTEGER ) ) + - 83 THEN - + ( ( + 84 ) ) / - 93 + 28 WHEN - 24 + - - 68 + 44 * + 71 THEN 1 END * - 37 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8733
SELECT + 35 * 71 + CAST( NULL AS SIGNED ) + - - 3 * 26 * + 79
----
NULL

skipif mysql # not compatible
query I rowsort label-8733
SELECT + 35 * 71 + CAST ( NULL AS INTEGER ) + - - 3 * 26 * + 79
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8734
SELECT + COUNT( - - 41 ) * 53 * + - 32 AS col1, 24
----
-1696
24

skipif mysql # not compatible
query II rowsort label-8734
SELECT + COUNT ( - - 41 ) * 53 * + - 32 AS col1, 24
----
-1696
24

onlyif mysql # aggregate syntax: 
query I rowsort label-8735
SELECT CASE + - 46 WHEN 94 * + 45 * - COALESCE ( - COUNT( * ), + - 19 ) / ( + - 53 ) / MAX( ( 49 ) ) + + 97 + 28 * - NULLIF ( 65, COUNT( * ) / 96 ) * - 35 THEN COUNT( * ) * - 17 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8735
SELECT CASE + - 46 WHEN 94 * + 45 * - COALESCE ( - COUNT ( * ), + - 19 ) / ( + - 53 ) / MAX ( ( 49 ) ) + + 97 + 28 * - NULLIF ( 65, COUNT ( * ) / 96 ) * - 35 THEN COUNT ( * ) * - 17 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8736
SELECT + 3, MIN( - 25 ) AS col0
----
3
-25

skipif mysql # not compatible
query II rowsort label-8736
SELECT + 3, MIN ( - 25 ) AS col0
----
3
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8737
SELECT + 51 * + 96 - + COUNT( * ) + - 98 DIV - ( - 10 )
----
4886

skipif mysql # not compatible
query I rowsort label-8737
SELECT + 51 * + 96 - + COUNT ( * ) + - 98 / - ( - 10 )
----
4886

onlyif mysql # aggregate syntax: 
query II rowsort label-8738
SELECT DISTINCT + 38 AS col2, + COUNT( * )
----
38
1

skipif mysql # not compatible
query II rowsort label-8738
SELECT DISTINCT + 38 AS col2, + COUNT ( * )
----
38
1

query I rowsort
SELECT DISTINCT + ( 74 ) * - 87 AS col2
----
-6438

query I rowsort
SELECT ALL - 98 * + 72 + - 20 AS col2
----
-7076

query II rowsort
SELECT - 17 * + 4 * 9 AS col0, 95 AS col1
----
-612
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8742
SELECT DISTINCT COALESCE ( ( ( + 88 ) ), 57 * + + ( CASE - 90 WHEN + + 0 THEN + 60 WHEN - 40 / - CAST( + ( + 35 ) AS SIGNED ) * - 75 + + 18 THEN NULL WHEN + AVG ( COALESCE ( + 53, 56 * 73, + 54 ) ) * - 73 THEN NULL END ) + 93, - 45 * - 37 ) * COUNT( * )
----
88

skipif mysql # not compatible
query I rowsort label-8742
SELECT DISTINCT COALESCE ( ( ( + 88 ) ), 57 * + + ( CASE - 90 WHEN + + 0 THEN + 60 WHEN - 40 / - CAST ( + ( + 35 ) AS INTEGER ) * - 75 + + 18 THEN NULL WHEN + AVG ( COALESCE ( + 53, 56 * 73, + 54 ) ) * - 73 THEN NULL END ) + 93, - 45 * - 37 ) * COUNT ( * )
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-8743
SELECT + 88 * ( - - ( + 35 ) ) DIV - + ( - 55 ) col2
----
56

skipif mysql # not compatible
query I rowsort label-8743
SELECT + 88 * ( - - ( + 35 ) ) / - + ( - 55 ) col2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-8744
SELECT SUM( + 40 ) AS col1
----
40

skipif mysql # not compatible
query I rowsort label-8744
SELECT SUM ( + 40 ) AS col1
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8745
SELECT ALL + ( - COUNT( * ) ) + + 50 AS col2
----
49

skipif mysql # not compatible
query I rowsort label-8745
SELECT ALL + ( - COUNT ( * ) ) + + 50 AS col2
----
49

query I rowsort
SELECT + 81 * 67 AS col0
----
5427

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8747
SELECT + 16 + - COALESCE ( + COUNT( * ), + COUNT( * ) * - CAST( NULL AS SIGNED ) )
----
15

skipif mysql # not compatible
query I rowsort label-8747
SELECT + 16 + - COALESCE ( + COUNT ( * ), + COUNT ( * ) * - CAST ( NULL AS INTEGER ) )
----
15

query I rowsort
SELECT ALL ( + + 97 ) AS col1
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8749
SELECT - COUNT( DISTINCT - + 33 )
----
-1

skipif mysql # not compatible
query I rowsort label-8749
SELECT - COUNT ( DISTINCT - + 33 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8750
SELECT ALL COUNT( * ) + 23 + + COUNT( * ) * - CAST( + + 30 AS SIGNED )
----
-6

skipif mysql # not compatible
query I rowsort label-8750
SELECT ALL COUNT ( * ) + 23 + + COUNT ( * ) * - CAST ( + + 30 AS INTEGER )
----
-6

query I rowsort
SELECT DISTINCT - 34 + - 11 * - 6 * 48 col1
----
3134

query I rowsort
SELECT + 11 + 34 col2
----
45

query II rowsort
SELECT ALL + 24 AS col2, 68 * + 35 col1
----
24
2380

query I rowsort
SELECT + 24 + + 60 AS col1
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8755
SELECT - - COUNT( * ) * - 52 * - CASE + - COALESCE ( 18, + MAX( - - 65 ), 93 ) WHEN - MAX( + CAST( NULL AS SIGNED ) ) * - + MAX( - + 50 ) + + COUNT( * ) / + 63 + + 75 THEN - CAST( - 61 AS SIGNED ) WHEN 87 THEN NULL ELSE + 3 * 75 END
----
11700

skipif mysql # not compatible
query I rowsort label-8755
SELECT - - COUNT ( * ) * - 52 * - CASE + - COALESCE ( 18, + MAX ( - - 65 ), 93 ) WHEN - MAX ( + CAST ( NULL AS INTEGER ) ) * - + MAX ( - + 50 ) + + COUNT ( * ) / + 63 + + 75 THEN - CAST ( - 61 AS INTEGER ) WHEN 87 THEN NULL ELSE + 3 * 75 END
----
11700

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8756
SELECT - + 46 + - CAST( + 33 AS SIGNED )
----
-79

skipif mysql # not compatible
query I rowsort label-8756
SELECT - + 46 + - CAST ( + 33 AS INTEGER )
----
-79

query I rowsort
SELECT ALL + + 58 * 79 - + 18 col1
----
4564

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8758
SELECT + + 12 DIV COUNT( * ) DIV - 12 + - 99 col2
----
-100

skipif mysql # not compatible
query I rowsort label-8758
SELECT + + 12 / COUNT ( * ) / - 12 + - 99 col2
----
-100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8759
SELECT ALL + - 91 * - - 64 * NULLIF ( - + 42, CAST( COUNT( * ) AS SIGNED ) ) AS col0, + 42 * + + CAST( + - 56 AS SIGNED ) - + + 70
----
244608
-2422

skipif mysql # not compatible
query II rowsort label-8759
SELECT ALL + - 91 * - - 64 * NULLIF ( - + 42, CAST ( COUNT ( * ) AS INTEGER ) ) AS col0, + 42 * + + CAST ( + - 56 AS INTEGER ) - + + 70
----
244608
-2422

onlyif mysql # aggregate syntax: 
query I rowsort label-8760
SELECT ALL + SUM( DISTINCT 68 )
----
68

skipif mysql # not compatible
query I rowsort label-8760
SELECT ALL + SUM ( DISTINCT 68 )
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8761
SELECT - 10 + CAST( + 83 AS SIGNED ) + - 41
----
32

skipif mysql # not compatible
query I rowsort label-8761
SELECT - 10 + CAST ( + 83 AS INTEGER ) + - 41
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-8762
SELECT - + ( 42 ) DIV + + 78 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8762
SELECT - + ( 42 ) / + + 78 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8763
SELECT + - 39 DIV + + 50 * - - 81 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8763
SELECT + - 39 / + + 50 * - - 81 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8764
SELECT COALESCE ( 10, 51, + - SUM( + 52 ) ) DIV + 75 + + 71 AS col0
----
71

skipif mysql # not compatible
query I rowsort label-8764
SELECT COALESCE ( 10, 51, + - SUM ( + 52 ) ) / + 75 + + 71 AS col0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-8765
SELECT + 60 * + - COUNT( * )
----
-60

skipif mysql # not compatible
query I rowsort label-8765
SELECT + 60 * + - COUNT ( * )
----
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-8766
SELECT - 30 + + + COUNT( + - 39 ) - + 4 AS col1, COUNT( * ) - + - COUNT( * )
----
-33
2

skipif mysql # not compatible
query II rowsort label-8766
SELECT - 30 + + + COUNT ( + - 39 ) - + 4 AS col1, COUNT ( * ) - + - COUNT ( * )
----
-33
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8767
SELECT DISTINCT COUNT( * ) * 85
----
85

skipif mysql # not compatible
query I rowsort label-8767
SELECT DISTINCT COUNT ( * ) * 85
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8768
SELECT - 84 * + CAST( - ( - 94 ) AS SIGNED ) + 35 AS col2, 75 AS col2
----
-7861
75

skipif mysql # not compatible
query II rowsort label-8768
SELECT - 84 * + CAST ( - ( - 94 ) AS INTEGER ) + 35 AS col2, 75 AS col2
----
-7861
75

query II rowsort
SELECT ALL + NULLIF ( 21, + ( - 80 ) ), 71 AS col2
----
21
71

onlyif mysql # aggregate syntax: 
query I rowsort label-8770
SELECT + 24 * - - MIN( + 39 )
----
936

skipif mysql # not compatible
query I rowsort label-8770
SELECT + 24 * - - MIN ( + 39 )
----
936

query I rowsort
SELECT 32 * + - 7 + + - 29 - 54
----
-307

query I rowsort
SELECT - ( + 65 ) * + 1 * - - 14
----
-910

query I rowsort
SELECT + 76 + + 58 col0
----
134

query I rowsort
SELECT DISTINCT - 10 * + 41 + 99
----
-311

onlyif mysql # aggregate syntax: 
query I rowsort label-8775
SELECT DISTINCT COALESCE ( + ( - - 0 ), - + 80, CASE + + NULLIF ( + 54, - ( - COUNT( * ) ) ) WHEN + COUNT( * ) * - + 56 THEN - 93 * + 36 ELSE NULL END ) + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-8775
SELECT DISTINCT COALESCE ( + ( - - 0 ), - + 80, CASE + + NULLIF ( + 54, - ( - COUNT ( * ) ) ) WHEN + COUNT ( * ) * - + 56 THEN - 93 * + 36 ELSE NULL END ) + - COUNT ( * )
----
-1

query II rowsort
SELECT DISTINCT - 51 + + 12 AS col1, - 88 AS col0
----
-39
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8777
SELECT DISTINCT CAST( + + CAST( - COALESCE ( 50, - - COUNT( * ) ) AS SIGNED ) AS SIGNED ) + 85 * + + 49 + 75 + + - 53, 50 AS col1
----
4137
50

skipif mysql # not compatible
query II rowsort label-8777
SELECT DISTINCT CAST ( + + CAST ( - COALESCE ( 50, - - COUNT ( * ) ) AS INTEGER ) AS INTEGER ) + 85 * + + 49 + 75 + + - 53, 50 AS col1
----
4137
50

query I rowsort
SELECT ALL 40 + 78 + - 30
----
88

query I rowsort
SELECT ALL + 33 + + ( 88 ) AS col2
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-8780
SELECT 34 + MIN( DISTINCT - ( + ( + - 11 ) ) ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-8780
SELECT 34 + MIN ( DISTINCT - ( + ( + - 11 ) ) ) AS col2
----
45

query I rowsort
SELECT - 69 * + + 1 - - 81 * + 76 AS col1
----
6087

query I rowsort
SELECT ALL COALESCE ( - + 59, - 85 ) * - 92 + + 19
----
5447

query I rowsort
SELECT ALL + 55 - - + 97 AS col1
----
152

onlyif mysql # DIV for integer division: 
query I rowsort label-8784
SELECT 26 + + 79 DIV - 24 AS col0
----
23

skipif mysql # not compatible
query I rowsort label-8784
SELECT 26 + + 79 / - 24 AS col0
----
23

query I rowsort
SELECT 13 * 58 * - + 93 AS col2
----
-70122

query I rowsort
SELECT + 36 * 39 AS col0
----
1404

onlyif mysql # aggregate syntax: 
query II rowsort label-8787
SELECT DISTINCT + 53 * + ( + SUM( - - ( - 2 ) ) ) - + 9 + + 86 AS col1, COALESCE ( + NULLIF ( + - 47, - - 50 ), + 49 ) * - 10 * - COUNT( + 1 ) * - 63 AS col0
----
-29
29610

skipif mysql # not compatible
query II rowsort label-8787
SELECT DISTINCT + 53 * + ( + SUM ( - - ( - 2 ) ) ) - + 9 + + 86 AS col1, COALESCE ( + NULLIF ( + - 47, - - 50 ), + 49 ) * - 10 * - COUNT ( + 1 ) * - 63 AS col0
----
-29
29610

onlyif mysql # aggregate syntax: 
query I rowsort label-8788
SELECT - + COALESCE ( - ( 8 ), + COUNT( * ), - 3 ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-8788
SELECT - + COALESCE ( - ( 8 ), + COUNT ( * ), - 3 ) AS col2
----
8

query I rowsort
SELECT + 34 * 40 * - 70 AS col0
----
-95200

onlyif mysql # aggregate syntax: 
query II rowsort label-8790
SELECT ( - COUNT( * ) ) * ( COUNT( * ) ) col1, COUNT( * )
----
-1
1

skipif mysql # not compatible
query II rowsort label-8790
SELECT ( - COUNT ( * ) ) * ( COUNT ( * ) ) col1, COUNT ( * )
----
-1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8791
SELECT ALL + + 64 * CASE - + 0 WHEN 13 THEN + 84 ELSE NULL END * - + ( - 26 ) * + CAST( + AVG ( DISTINCT + 5 ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8791
SELECT ALL + + 64 * CASE - + 0 WHEN 13 THEN + 84 ELSE NULL END * - + ( - 26 ) * + CAST ( + AVG ( DISTINCT + 5 ) AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 88 * + ( - 64 ) AS col1
----
-5632

query I rowsort
SELECT DISTINCT 78 + 22 AS col0
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-8794
SELECT ALL - MIN( - - 7 )
----
-7

skipif mysql # not compatible
query I rowsort label-8794
SELECT ALL - MIN ( - - 7 )
----
-7

query I rowsort
SELECT 6 * - 96 AS col0
----
-576

query I rowsort
SELECT ALL + 8 + - 81 AS col0
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-8797
SELECT DISTINCT - SUM( ALL 14 ) + 19 col1
----
5

skipif mysql # not compatible
query I rowsort label-8797
SELECT DISTINCT - SUM ( ALL 14 ) + 19 col1
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8798
SELECT ALL + CAST( NULL AS SIGNED ) + + 29
----
NULL

skipif mysql # not compatible
query I rowsort label-8798
SELECT ALL + CAST ( NULL AS INTEGER ) + + 29
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8799
SELECT 31 * - + MAX( DISTINCT + NULLIF ( 6, + 85 ) ) AS col2
----
-186

skipif mysql # not compatible
query I rowsort label-8799
SELECT 31 * - + MAX ( DISTINCT + NULLIF ( 6, + 85 ) ) AS col2
----
-186

query I rowsort
SELECT 5 + - 65 * + - ( - 63 ) AS col0
----
-4090

onlyif mysql # DIV for integer division: 
query I rowsort label-8801
SELECT 50 DIV - 68 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8801
SELECT 50 / - 68 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8802
SELECT ALL - COUNT( * ) + + 90 - 62 * - 27 AS col0
----
1763

skipif mysql # not compatible
query I rowsort label-8802
SELECT ALL - COUNT ( * ) + + 90 - 62 * - 27 AS col0
----
1763

query I rowsort
SELECT 21 - + 64 AS col0
----
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-8804
SELECT 40 + - 72 DIV + 49 - - 83
----
122

skipif mysql # not compatible
query I rowsort label-8804
SELECT 40 + - 72 / + 49 - - 83
----
122

query I rowsort
SELECT DISTINCT - ( + 24 )
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8806
SELECT ALL 81 - - ( + 9 ) AS col1, + CASE + 69 WHEN - AVG ( + COALESCE ( - 52, + 29 ) ) THEN + CAST( NULL AS SIGNED ) - - + 8 ELSE NULL END + 20 * ( 64 ) AS col2
----
90
NULL

skipif mysql # not compatible
query II rowsort label-8806
SELECT ALL 81 - - ( + 9 ) AS col1, + CASE + 69 WHEN - AVG ( + COALESCE ( - 52, + 29 ) ) THEN + CAST ( NULL AS INTEGER ) - - + 8 ELSE NULL END + 20 * ( 64 ) AS col2
----
90
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8807
SELECT 63 AS col0, 88 + NULLIF ( + COUNT( * ), + 97 )
----
63
89

skipif mysql # not compatible
query II rowsort label-8807
SELECT 63 AS col0, 88 + NULLIF ( + COUNT ( * ), + 97 )
----
63
89

query I rowsort
SELECT 65 - + 95 AS col0
----
-30

query II rowsort
SELECT - + 5 col0, 34 * - 99
----
-5
-3366

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8810
SELECT + COUNT( * ), - 16 + - 62 + - + 95 + - 62 DIV - 86 + + - 36 * - + 86 * + 67 * + + 81 AS col0
----
1
16801819

skipif mysql # not compatible
query II rowsort label-8810
SELECT + COUNT ( * ), - 16 + - 62 + - + 95 + - 62 / - 86 + + - 36 * - + 86 * + 67 * + + 81 AS col0
----
1
16801819

query I rowsort
SELECT ALL - 51 - + 6 AS col0
----
-57

query II rowsort
SELECT ALL 41 AS col0, + 52 - 24 col2
----
41
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8813
SELECT ALL - COUNT( - - 19 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8813
SELECT ALL - COUNT ( - - 19 ) AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8814
SELECT ALL - COALESCE ( + MIN( DISTINCT + 4 ), 89 * 39 * + NULLIF ( - + 88, + + 24 ) ) DIV 20
----
0

skipif mysql # not compatible
query I rowsort label-8814
SELECT ALL - COALESCE ( + MIN ( DISTINCT + 4 ), 89 * 39 * + NULLIF ( - + 88, + + 24 ) ) / 20
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8815
SELECT - - 20 AS col0, COUNT( * ) AS col2
----
20
1

skipif mysql # not compatible
query II rowsort label-8815
SELECT - - 20 AS col0, COUNT ( * ) AS col2
----
20
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8816
SELECT CAST( + 5 AS SIGNED ) - + + NULLIF ( - SUM( - 61 ), - 90 ) * + 1
----
-56

skipif mysql # not compatible
query I rowsort label-8816
SELECT CAST ( + 5 AS INTEGER ) - + + NULLIF ( - SUM ( - 61 ), - 90 ) * + 1
----
-56

query I rowsort
SELECT DISTINCT ( - - 74 )
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8818
SELECT ALL - 99 DIV COUNT( * )
----
-99

skipif mysql # not compatible
query I rowsort label-8818
SELECT ALL - 99 / COUNT ( * )
----
-99

query I rowsort
SELECT 77 + - ( + ( + 50 ) ) AS col1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-8820
SELECT - 58 + - + SUM( - 99 ) + - 8 AS col0
----
33

skipif mysql # not compatible
query I rowsort label-8820
SELECT - 58 + - + SUM ( - 99 ) + - 8 AS col0
----
33

query I rowsort
SELECT ALL 28 + + 57
----
85

query I rowsort
SELECT ALL - 84 + - 6
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-8823
SELECT 69 + + COUNT( * ) + - 72 * - NULLIF ( + + 64, - 78 ) + + - 90
----
4588

skipif mysql # not compatible
query I rowsort label-8823
SELECT 69 + + COUNT ( * ) + - 72 * - NULLIF ( + + 64, - 78 ) + + - 90
----
4588

query I rowsort
SELECT ALL 51 * - 58 + + 69
----
-2889

onlyif mysql # aggregate syntax: 
query I rowsort label-8825
SELECT ALL - 82 * - - NULLIF ( 29, 39 * + - COALESCE ( + 12, COUNT( * ) ) ) * 83 + + + 15 * + - 89
----
-198709

skipif mysql # not compatible
query I rowsort label-8825
SELECT ALL - 82 * - - NULLIF ( 29, 39 * + - COALESCE ( + 12, COUNT ( * ) ) ) * 83 + + + 15 * + - 89
----
-198709

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8826
SELECT DISTINCT - MIN( - - CAST( NULL AS SIGNED ) ) AS col0, 47 AS col1
----
NULL
47

skipif mysql # not compatible
query II rowsort label-8826
SELECT DISTINCT - MIN ( - - CAST ( NULL AS INTEGER ) ) AS col0, 47 AS col1
----
NULL
47

query I rowsort
SELECT + 47 * + - 79
----
-3713

onlyif mysql # aggregate syntax: 
query I rowsort label-8828
SELECT 14 * - + 16 + + 23 + - 47 * - MIN( + 9 ) col2
----
222

skipif mysql # not compatible
query I rowsort label-8828
SELECT 14 * - + 16 + + 23 + - 47 * - MIN ( + 9 ) col2
----
222

query I rowsort
SELECT + NULLIF ( - - 79, - 30 * + 87 * + 20 - - - 21 ) AS col1
----
79

query I rowsort
SELECT DISTINCT + ( - ( 1 ) )
----
-1

query I rowsort
SELECT ALL + 28 * + 45 * 32 - + ( 18 ) AS col1
----
40302

query I rowsort
SELECT ALL 68 * + + 32 - NULLIF ( + 10, - 92 )
----
2166

query I rowsort
SELECT - 87 * + + 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8834
SELECT DISTINCT + CASE + 72 WHEN COUNT( * ) + + + 83 THEN 94 + + - COUNT( * ) * 57 * 26 WHEN 38 THEN + 49 * + - 4 + AVG ( - 19 ) + - 13 * + 8 ELSE - 86 END
----
-86

skipif mysql # not compatible
query I rowsort label-8834
SELECT DISTINCT + CASE + 72 WHEN COUNT ( * ) + + + 83 THEN 94 + + - COUNT ( * ) * 57 * 26 WHEN 38 THEN + 49 * + - 4 + AVG ( - 19 ) + - 13 * + 8 ELSE - 86 END
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8835
SELECT - CASE - - AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) WHEN - + 69 THEN - MIN( + CAST( - - 25 AS SIGNED ) ) WHEN + + CAST( NULL AS SIGNED ) * 8 THEN NULL END + - 96 / - - 55 * + + 53 + 65
----
NULL

skipif mysql # not compatible
query I rowsort label-8835
SELECT - CASE - - AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) WHEN - + 69 THEN - MIN ( + CAST ( - - 25 AS INTEGER ) ) WHEN + + CAST ( NULL AS INTEGER ) * 8 THEN NULL END + - 96 / - - 55 * + + 53 + 65
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8836
SELECT ALL 5 * - 71 * 63 - NULLIF ( MAX( 80 ), CAST( NULL AS SIGNED ) ) * - 85
----
-15565

skipif mysql # not compatible
query I rowsort label-8836
SELECT ALL 5 * - 71 * 63 - NULLIF ( MAX ( 80 ), CAST ( NULL AS INTEGER ) ) * - 85
----
-15565

query I rowsort
SELECT - 60 * 98 + + 82
----
-5798

query I rowsort
SELECT - + 33 + + 61
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-8839
SELECT ALL + 40 AS col0, COUNT( * ) + 24 + - 82 + + ( 56 ) * - + 56
----
40
-3193

skipif mysql # not compatible
query II rowsort label-8839
SELECT ALL + 40 AS col0, COUNT ( * ) + 24 + - 82 + + ( 56 ) * - + 56
----
40
-3193

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8840
SELECT ALL + COUNT( * ) * - COALESCE ( - - 90, + 29 DIV COUNT( * ) + + 30 + 81 * + + 93 * + 36 ) * COALESCE ( + + 45, - 75 ) * - MAX( + 94 )
----
380700

skipif mysql # not compatible
query I rowsort label-8840
SELECT ALL + COUNT ( * ) * - COALESCE ( - - 90, + 29 / COUNT ( * ) + + 30 + 81 * + + 93 * + 36 ) * COALESCE ( + + 45, - 75 ) * - MAX ( + 94 )
----
380700

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8841
SELECT - - COUNT( * ) * - + 75 * + - CAST( NULL AS SIGNED ) - - + NULLIF ( + - 68, + - COUNT( * ) * - 91 * + NULLIF ( + 38, COALESCE ( COUNT( * ), - 34 + AVG ( + 87 ) ) ) + 49 ) + NULLIF ( 99, 17 ) * - 14 * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8841
SELECT - - COUNT ( * ) * - + 75 * + - CAST ( NULL AS INTEGER ) - - + NULLIF ( + - 68, + - COUNT ( * ) * - 91 * + NULLIF ( + 38, COALESCE ( COUNT ( * ), - 34 + AVG ( + 87 ) ) ) + 49 ) + NULLIF ( 99, 17 ) * - 14 * + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8842
SELECT - - COALESCE ( - CAST( NULL AS SIGNED ), + + ( + - 46 ) * - - 78 + - 0 + - - 91 * + 36 - COALESCE ( + ( MAX( DISTINCT 25 ) ), + 16 * 50 ) * 71 ) AS col1
----
-2087

skipif mysql # not compatible
query I rowsort label-8842
SELECT - - COALESCE ( - CAST ( NULL AS INTEGER ), + + ( + - 46 ) * - - 78 + - 0 + - - 91 * + 36 - COALESCE ( + ( MAX ( DISTINCT 25 ) ), + 16 * 50 ) * 71 ) AS col1
----
-2087

onlyif mysql # aggregate syntax: 
query II rowsort label-8843
SELECT 86, - 93 * - COUNT( * ) AS col0
----
86
93

skipif mysql # not compatible
query II rowsort label-8843
SELECT 86, - 93 * - COUNT ( * ) AS col0
----
86
93

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8844
SELECT - 7 * 17 AS col0, CAST( NULL AS SIGNED ) AS col1
----
-119
NULL

skipif mysql # not compatible
query II rowsort label-8844
SELECT - 7 * 17 AS col0, CAST ( NULL AS INTEGER ) AS col1
----
-119
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8845
SELECT + 76 + - COALESCE ( - - 29, - CASE - + 71 WHEN 6 THEN - 97 * - COUNT( * ) WHEN - + 22 + CASE - 55 WHEN - - CAST( NULL AS SIGNED ) THEN - 61 + + 27 * + COUNT( * ) + + COALESCE ( + 20, 4 + - 12, + 97 ) + + 19 * - 44 DIV 15 END THEN COUNT( * ) + 4 END * ( + COUNT( * ) * 82 ), - 98 DIV + 88 + - 4 * - 29 ) * + 54
----
-1490

skipif mysql # not compatible
query I rowsort label-8845
SELECT + 76 + - COALESCE ( - - 29, - CASE - + 71 WHEN 6 THEN - 97 * - COUNT ( * ) WHEN - + 22 + CASE - 55 WHEN - - CAST ( NULL AS INTEGER ) THEN - 61 + + 27 * + COUNT ( * ) + + COALESCE ( + 20, 4 + - 12, + 97 ) + + 19 * - 44 / 15 END THEN COUNT ( * ) + 4 END * ( + COUNT ( * ) * 82 ), - 98 / + 88 + - 4 * - 29 ) * + 54
----
-1490

onlyif mysql # aggregate syntax: 
query I rowsort label-8846
SELECT + COUNT( - 67 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8846
SELECT + COUNT ( - 67 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8847
SELECT - - 45, - 31 * COUNT( * ) AS col1
----
45
-31

skipif mysql # not compatible
query II rowsort label-8847
SELECT - - 45, - 31 * COUNT ( * ) AS col1
----
45
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-8848
SELECT ALL 73 + - 87 DIV + 50 col2
----
72

skipif mysql # not compatible
query I rowsort label-8848
SELECT ALL 73 + - 87 / + 50 col2
----
72

query I rowsort
SELECT ALL - - 80 + + + 87 AS col0
----
167

onlyif mysql # aggregate syntax: 
query I rowsort label-8850
SELECT DISTINCT 91 + - 36 + COUNT( 4 ) AS col2
----
56

skipif mysql # not compatible
query I rowsort label-8850
SELECT DISTINCT 91 + - 36 + COUNT ( 4 ) AS col2
----
56

query I rowsort
SELECT ALL - 96 + 60
----
-36

query II rowsort
SELECT DISTINCT 60, 25 * 89 AS col1
----
60
2225

onlyif mysql # aggregate syntax: 
query I rowsort label-8853
SELECT ALL + 27 + + SUM( + 8 )
----
35

skipif mysql # not compatible
query I rowsort label-8853
SELECT ALL + 27 + + SUM ( + 8 )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8854
SELECT + 1 * COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-8854
SELECT + 1 * COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8855
SELECT DISTINCT COUNT( * ) + + 0 * - - 96 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8855
SELECT DISTINCT COUNT ( * ) + + 0 * - - 96 AS col0
----
1

query I rowsort
SELECT ALL ( - 87 ) + - - 78 + 19 AS col0
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8857
SELECT + 54 DIV - 46 AS col0, - NULLIF ( SUM( - 42 ), - AVG ( + 73 ) + - + 16 * - 35 ) AS col1
----
-1
42

skipif mysql # not compatible
query II rowsort label-8857
SELECT + 54 / - 46 AS col0, - NULLIF ( SUM ( - 42 ), - AVG ( + 73 ) + - + 16 * - 35 ) AS col1
----
-1
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8858
SELECT + 65 * CAST( - 75 AS SIGNED ) * 17
----
-82875

skipif mysql # not compatible
query I rowsort label-8858
SELECT + 65 * CAST ( - 75 AS INTEGER ) * 17
----
-82875

onlyif mysql # aggregate syntax: 
query I rowsort label-8859
SELECT + 71 * + + MAX( - + 25 )
----
-1775

skipif mysql # not compatible
query I rowsort label-8859
SELECT + 71 * + + MAX ( - + 25 )
----
-1775

onlyif mysql # aggregate syntax: 
query I rowsort label-8860
SELECT DISTINCT CASE - COUNT( * ) WHEN - 58 * ( - + 53 ) * - + 96 - + ( + 84 ) THEN + 73 ELSE NULL END * + - AVG ( DISTINCT + 83 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8860
SELECT DISTINCT CASE - COUNT ( * ) WHEN - 58 * ( - + 53 ) * - + 96 - + ( + 84 ) THEN + 73 ELSE NULL END * + - AVG ( DISTINCT + 83 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8861
SELECT 46 * + CAST( NULL AS SIGNED ) - ( 77 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8861
SELECT 46 * + CAST ( NULL AS INTEGER ) - ( 77 ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8862
SELECT + 18 DIV + 89
----
0

skipif mysql # not compatible
query I rowsort label-8862
SELECT + 18 / + 89
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8863
SELECT ALL - COUNT( * ) DIV + 86 - + 10
----
-10

skipif mysql # not compatible
query I rowsort label-8863
SELECT ALL - COUNT ( * ) / + 86 - + 10
----
-10

query I rowsort
SELECT DISTINCT 82 * - - 55 AS col0
----
4510

onlyif mysql # DIV for integer division: 
query I rowsort label-8865
SELECT DISTINCT + 1 DIV - 80
----
0

skipif mysql # not compatible
query I rowsort label-8865
SELECT DISTINCT + 1 / - 80
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8866
SELECT ALL 90 DIV - - ( + ( 74 ) ) - - - 22
----
-21

skipif mysql # not compatible
query I rowsort label-8866
SELECT ALL 90 / - - ( + ( 74 ) ) - - - 22
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8867
SELECT ALL 17 * - MAX( ALL + + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8867
SELECT ALL 17 * - MAX ( ALL + + CAST ( NULL AS INTEGER ) )
----
NULL

query II rowsort
SELECT + CASE - 31 WHEN - + 18 THEN - ( 35 ) ELSE NULL END AS col1, + ( + ( - + 46 ) )
----
NULL
-46

query I rowsort
SELECT + 58 + - ( - 16 ) + - - 9
----
83

query I rowsort
SELECT - 64 * - 2 AS col1
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-8871
SELECT 84 * - - 91 + - SUM( - 45 ) col2
----
7689

skipif mysql # not compatible
query I rowsort label-8871
SELECT 84 * - - 91 + - SUM ( - 45 ) col2
----
7689

onlyif mysql # aggregate syntax: 
query I rowsort label-8872
SELECT + + ( + 89 ) * - MAX( ALL 87 ) AS col1
----
-7743

skipif mysql # not compatible
query I rowsort label-8872
SELECT + + ( + 89 ) * - MAX ( ALL 87 ) AS col1
----
-7743

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8873
SELECT + SUM( 98 ) DIV - + COUNT( * )
----
-98

skipif mysql # not compatible
query I rowsort label-8873
SELECT + SUM ( 98 ) / - + COUNT ( * )
----
-98

query I rowsort
SELECT - - 97 * - 5 + - + 76
----
-561

query II rowsort
SELECT - + 86 - - - 92 + 64 AS col1, + 85 + - 65 + + 30
----
-114
50

onlyif mysql # aggregate syntax: 
query II rowsort label-8876
SELECT DISTINCT + 30 * + - COUNT( * ) + - 30, 77 * + 44 * 24 col1
----
-60
81312

skipif mysql # not compatible
query II rowsort label-8876
SELECT DISTINCT + 30 * + - COUNT ( * ) + - 30, 77 * + 44 * 24 col1
----
-60
81312

query I rowsort
SELECT ALL - - 74 * 68 + + 71 AS col0
----
5103

onlyif mysql # aggregate syntax: 
query I rowsort label-8878
SELECT DISTINCT + COUNT( * ) * 56
----
56

skipif mysql # not compatible
query I rowsort label-8878
SELECT DISTINCT + COUNT ( * ) * 56
----
56

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8879
SELECT - CAST( NULL AS DECIMAL ) + + + 84 + + 87
----
NULL

skipif mysql # not compatible
query I rowsort label-8879
SELECT - CAST ( NULL AS REAL ) + + + 84 + + 87
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8880
SELECT 5 + COUNT( * ) * + + 95 AS col2
----
100

skipif mysql # not compatible
query I rowsort label-8880
SELECT 5 + COUNT ( * ) * + + 95 AS col2
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-8881
SELECT 12 + - 41 + - MAX( ALL + 21 ) * + - ( + 99 )
----
2050

skipif mysql # not compatible
query I rowsort label-8881
SELECT 12 + - 41 + - MAX ( ALL + 21 ) * + - ( + 99 )
----
2050

query I rowsort
SELECT 21 + - - 76
----
97

query I rowsort
SELECT ALL + 78 * - 65 AS col1
----
-5070

query I rowsort
SELECT 31 + + - 28 AS col2
----
3

query I rowsort
SELECT ALL 6 - + - CASE 62 WHEN + 84 + - ( 58 ) THEN - 33 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8886
SELECT COUNT( * ) * - CASE WHEN NOT ( NULL ) IN ( - 55, + CAST( - 45 AS SIGNED ) ) THEN + 60 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8886
SELECT COUNT ( * ) * - CASE WHEN NOT ( NULL ) IN ( - 55, + CAST ( - 45 AS INTEGER ) ) THEN + 60 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8887
SELECT COUNT( * ) DIV + 91 + + + 38 AS col0, SUM( DISTINCT - 35 )
----
38
-35

skipif mysql # not compatible
query II rowsort label-8887
SELECT COUNT ( * ) / + 91 + + + 38 AS col0, SUM ( DISTINCT - 35 )
----
38
-35

query I rowsort
SELECT DISTINCT - ( 85 ) AS col2
----
-85

query II rowsort
SELECT + 71, 36 AS col2
----
71
36

onlyif mysql # aggregate syntax: 
query I rowsort label-8890
SELECT COUNT( * ) * + + 16
----
16

skipif mysql # not compatible
query I rowsort label-8890
SELECT COUNT ( * ) * + + 16
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8891
SELECT ( - + ( - CAST( + 90 AS SIGNED ) ) ) * + 83 col2
----
7470

skipif mysql # not compatible
query I rowsort label-8891
SELECT ( - + ( - CAST ( + 90 AS INTEGER ) ) ) * + 83 col2
----
7470

onlyif mysql # aggregate syntax: 
query I rowsort label-8892
SELECT MIN( + + 57 ) * 13 + 54 AS col0
----
795

skipif mysql # not compatible
query I rowsort label-8892
SELECT MIN ( + + 57 ) * 13 + 54 AS col0
----
795

query I rowsort
SELECT ALL 63 * 71 * + ( + - 83 )
----
-371259

query I rowsort
SELECT ALL 22 * + ( - + 3 )
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-8895
SELECT ALL + COUNT( * ) * + + 94
----
94

skipif mysql # not compatible
query I rowsort label-8895
SELECT ALL + COUNT ( * ) * + + 94
----
94

query I rowsort
SELECT ( 95 ) * 33
----
3135

onlyif mysql # aggregate syntax: 
query I rowsort label-8897
SELECT DISTINCT 69 * + + 93 * - MAX( ALL + 97 ) * - COUNT( * )
----
622449

skipif mysql # not compatible
query I rowsort label-8897
SELECT DISTINCT 69 * + + 93 * - MAX ( ALL + 97 ) * - COUNT ( * )
----
622449

query I rowsort
SELECT ALL 65 + - 24
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-8899
SELECT ALL 39 DIV - 37 + - 53 * - 12 + 39 + - 31 * + NULLIF ( 22, - 19 ) * - 50 col1
----
34774

skipif mysql # not compatible
query I rowsort label-8899
SELECT ALL 39 / - 37 + - 53 * - 12 + 39 + - 31 * + NULLIF ( 22, - 19 ) * - 50 col1
----
34774

query I rowsort
SELECT ALL - - 78 col0
----
78

query I rowsort
SELECT ALL + 56 + 92 AS col2
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-8902
SELECT + 88 * - + COUNT( * ) + - 38 * COALESCE ( + - NULLIF ( + - 42, - - AVG ( DISTINCT + 68 ) * - + 22 ), 81 ) AS col2
----
-1684

skipif mysql # not compatible
query I rowsort label-8902
SELECT + 88 * - + COUNT ( * ) + - 38 * COALESCE ( + - NULLIF ( + - 42, - - AVG ( DISTINCT + 68 ) * - + 22 ), 81 ) AS col2
----
-1684

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8903
SELECT DISTINCT - 70 + - ( - COUNT( + - 15 ) ) + + MAX( DISTINCT - 88 ) + - - 47 DIV + + CASE - 83 WHEN 53 THEN NULL WHEN - 97 THEN NULL ELSE COUNT( * ) * + 47 * + + COALESCE ( 45, + - ( 75 ) ) END * + + MAX( ALL + 72 ) + - 5 AS col2
----
-162

skipif mysql # not compatible
query I rowsort label-8903
SELECT DISTINCT - 70 + - ( - COUNT ( + - 15 ) ) + + MAX ( DISTINCT - 88 ) + - - 47 / + + CASE - 83 WHEN 53 THEN NULL WHEN - 97 THEN NULL ELSE COUNT ( * ) * + 47 * + + COALESCE ( 45, + - ( 75 ) ) END * + + MAX ( ALL + 72 ) + - 5 AS col2
----
-162

onlyif mysql # aggregate syntax: 
query I rowsort label-8904
SELECT DISTINCT COUNT( * ) + + 99 AS col2
----
100

skipif mysql # not compatible
query I rowsort label-8904
SELECT DISTINCT COUNT ( * ) + + 99 AS col2
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-8905
SELECT + MIN( ALL - - 55 ) AS col1
----
55

skipif mysql # not compatible
query I rowsort label-8905
SELECT + MIN ( ALL - - 55 ) AS col1
----
55

query I rowsort
SELECT ALL - 21 + - - 53
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8907
SELECT DISTINCT 67 + + + 95 + 21 DIV - + MIN( ALL - - 18 ) col2
----
161

skipif mysql # not compatible
query I rowsort label-8907
SELECT DISTINCT 67 + + + 95 + 21 / - + MIN ( ALL - - 18 ) col2
----
161

query II rowsort
SELECT ALL - + 72 AS col0, 10
----
-72
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8909
SELECT ALL + 71 * - CAST( NULL AS SIGNED ) - 67 + 0 * ( - + 12 ) + + 43
----
NULL

skipif mysql # not compatible
query I rowsort label-8909
SELECT ALL + 71 * - CAST ( NULL AS INTEGER ) - 67 + 0 * ( - + 12 ) + + 43
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8910
SELECT 75 + + COUNT( * ) AS col0
----
76

skipif mysql # not compatible
query I rowsort label-8910
SELECT 75 + + COUNT ( * ) AS col0
----
76

query I rowsort
SELECT ALL 94 + + - 22 + + 27 - + 64 AS col2
----
35

query I rowsort
SELECT ALL - 80 + - + 38 col2
----
-118

onlyif mysql # aggregate syntax: 
query I rowsort label-8913
SELECT 52 + + + COALESCE ( - 97, + 56 ) * - COALESCE ( + COUNT( * ), + + COUNT( * ) ) AS col1
----
149

skipif mysql # not compatible
query I rowsort label-8913
SELECT 52 + + + COALESCE ( - 97, + 56 ) * - COALESCE ( + COUNT ( * ), + + COUNT ( * ) ) AS col1
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-8914
SELECT ALL + - COUNT( * ) - + 54 * - ( + 59 ) * - - 39 + + - 49 - - 38 + + 83 * - COUNT( * ) * - - 15 * + - 87
----
232557

skipif mysql # not compatible
query I rowsort label-8914
SELECT ALL + - COUNT ( * ) - + 54 * - ( + 59 ) * - - 39 + + - 49 - - 38 + + 83 * - COUNT ( * ) * - - 15 * + - 87
----
232557

onlyif mysql # aggregate syntax: 
query I rowsort label-8915
SELECT ALL CASE + 13 WHEN + 47 * COUNT( * ) THEN 3 ELSE + + 85 END AS col1
----
85

skipif mysql # not compatible
query I rowsort label-8915
SELECT ALL CASE + 13 WHEN + 47 * COUNT ( * ) THEN 3 ELSE + + 85 END AS col1
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8916
SELECT 44 + COUNT( * ) AS col0
----
45

skipif mysql # not compatible
query I rowsort label-8916
SELECT 44 + COUNT ( * ) AS col0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8917
SELECT 15 * SUM( 35 ) AS col0
----
525

skipif mysql # not compatible
query I rowsort label-8917
SELECT 15 * SUM ( 35 ) AS col0
----
525

onlyif mysql # aggregate syntax: 
query I rowsort label-8918
SELECT MAX( DISTINCT + 45 ) + + + 13
----
58

skipif mysql # not compatible
query I rowsort label-8918
SELECT MAX ( DISTINCT + 45 ) + + + 13
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-8919
SELECT 21 DIV 42 * - 45 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8919
SELECT 21 / 42 * - 45 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8920
SELECT 46 DIV + 7 col0
----
6

skipif mysql # not compatible
query I rowsort label-8920
SELECT 46 / + 7 col0
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-8921
SELECT 40 * + 12 * - MAX( - - 71 ) AS col0, - 12 + + 69
----
-34080
57

skipif mysql # not compatible
query II rowsort label-8921
SELECT 40 * + 12 * - MAX ( - - 71 ) AS col0, - 12 + + 69
----
-34080
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8922
SELECT MIN( 76 ) * - - 19 AS col1
----
1444

skipif mysql # not compatible
query I rowsort label-8922
SELECT MIN ( 76 ) * - - 19 AS col1
----
1444

onlyif mysql # aggregate syntax: 
query II rowsort label-8923
SELECT MAX( ALL + - 65 ) col0, 12
----
-65
12

skipif mysql # not compatible
query II rowsort label-8923
SELECT MAX ( ALL + - 65 ) col0, 12
----
-65
12

onlyif mysql # aggregate syntax: 
query I rowsort label-8924
SELECT ALL COALESCE ( + 70, COUNT( * ), - 72 * - - 3 + - + 96 * NULLIF ( - 28, 41 / 57 ) ) * - MAX( ALL - 35 ) + 84 AS col1
----
2534

skipif mysql # not compatible
query I rowsort label-8924
SELECT ALL COALESCE ( + 70, COUNT ( * ), - 72 * - - 3 + - + 96 * NULLIF ( - 28, 41 / 57 ) ) * - MAX ( ALL - 35 ) + 84 AS col1
----
2534

onlyif mysql # aggregate syntax: 
query I rowsort label-8925
SELECT MAX( DISTINCT + 60 ) AS col2
----
60

skipif mysql # not compatible
query I rowsort label-8925
SELECT MAX ( DISTINCT + 60 ) AS col2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8926
SELECT + - 37 * - - MIN( ALL + 60 ) * + COALESCE ( + 74, - COUNT( - - 70 ) ) + 70 - - 48 + + + 97 * + 67 AS col1
----
-157663

skipif mysql # not compatible
query I rowsort label-8926
SELECT + - 37 * - - MIN ( ALL + 60 ) * + COALESCE ( + 74, - COUNT ( - - 70 ) ) + 70 - - 48 + + + 97 * + 67 AS col1
----
-157663

onlyif mysql # aggregate syntax: 
query I rowsort label-8927
SELECT + MIN( ALL - 99 ) + ( + 96 ) AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-8927
SELECT + MIN ( ALL - 99 ) + ( + 96 ) AS col1
----
-3

query I rowsort
SELECT ALL 99 + - CASE + + 26 WHEN - 87 THEN NULL WHEN 72 / - 30 * + - 81 THEN + 53 + - 52 END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8929
SELECT ALL 12 + CAST( NULL AS SIGNED ) AS col0, - 18
----
NULL
-18

skipif mysql # not compatible
query II rowsort label-8929
SELECT ALL 12 + CAST ( NULL AS INTEGER ) AS col0, - 18
----
NULL
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8930
SELECT COUNT( + + 96 ) DIV - - ( 39 )
----
0

skipif mysql # not compatible
query I rowsort label-8930
SELECT COUNT ( + + 96 ) / - - ( 39 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8931
SELECT + + CAST( NULL AS SIGNED ) * + 27 + 18 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8931
SELECT + + CAST ( NULL AS INTEGER ) * + 27 + 18 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 22 * - 74 AS col0
----
1628

query I rowsort
SELECT - 7 * + 40 + - - ( 3 ) + - - 56 + - 40 AS col1
----
-261

onlyif mysql # aggregate syntax: 
query I rowsort label-8934
SELECT + MIN( 61 ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-8934
SELECT + MIN ( 61 ) AS col1
----
61

query I rowsort
SELECT ALL 83 + - - 93
----
176

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8936
SELECT DISTINCT 57 DIV - + 85 + + COUNT( DISTINCT - 19 ) + - COUNT( * ) + - 99 AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-8936
SELECT DISTINCT 57 / - + 85 + + COUNT ( DISTINCT - 19 ) + - COUNT ( * ) + - 99 AS col0
----
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8937
SELECT + + 3 * + ( - - 32 ) DIV + MAX( + 8 ) + - + CAST( + 38 AS SIGNED )
----
-26

skipif mysql # not compatible
query I rowsort label-8937
SELECT + + 3 * + ( - - 32 ) / + MAX ( + 8 ) + - + CAST ( + 38 AS INTEGER )
----
-26

query I rowsort
SELECT ALL NULLIF ( 77, + 84 )
----
77

query I rowsort
SELECT - + 13 col2
----
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8940
SELECT + 11 - + 50 * + 63 + - ( SUM( DISTINCT - 13 ) ) + - 44 * 53 DIV 46 AS col2
----
-3176

skipif mysql # not compatible
query I rowsort label-8940
SELECT + 11 - + 50 * + 63 + - ( SUM ( DISTINCT - 13 ) ) + - 44 * 53 / 46 AS col2
----
-3176

query I rowsort
SELECT + 1 * - 22
----
-22

query I rowsort
SELECT ALL + 14 - + 4 - + 35
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8943
SELECT - NULLIF ( CAST( AVG ( DISTINCT + + 61 ) AS SIGNED ), + 42 )
----
-61

skipif mysql # not compatible
query I rowsort label-8943
SELECT - NULLIF ( CAST ( AVG ( DISTINCT + + 61 ) AS INTEGER ), + 42 )
----
-61

query I rowsort
SELECT + 71 * + 32 AS col2
----
2272

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8945
SELECT + 83 + - COUNT( * ) DIV + + 24
----
83

skipif mysql # not compatible
query I rowsort label-8945
SELECT + 83 + - COUNT ( * ) / + + 24
----
83

query I rowsort
SELECT - 88 - - - 87 * - 19
----
1565

query I rowsort
SELECT + 59 + - 93 AS col2
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-8948
SELECT - COUNT( DISTINCT ( 96 ) ) - 49 AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-8948
SELECT - COUNT ( DISTINCT ( 96 ) ) - 49 AS col2
----
-50

query I rowsort
SELECT - 41 * - 42
----
1722

query I rowsort
SELECT + 52 + 92
----
144

query II rowsort
SELECT 93 AS col2, - 28 * + 37 AS col0
----
93
-1036

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8952
SELECT + COUNT( * ) + - + CAST( - 27 AS SIGNED ) + ( 3 ) / - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8952
SELECT + COUNT ( * ) + - + CAST ( - 27 AS INTEGER ) + ( 3 ) / - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8953
SELECT DISTINCT CAST( + COUNT( * ) AS SIGNED ) + - + 58 - + 27 AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-8953
SELECT DISTINCT CAST ( + COUNT ( * ) AS INTEGER ) + - + 58 - + 27 AS col1
----
-84

query I rowsort
SELECT ALL - 52 * + + 53 col1
----
-2756

query I rowsort
SELECT ALL + 25 + - + 30 AS col0
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8956
SELECT DISTINCT - 70 DIV COUNT( - 38 ) * + 54 + - + COUNT( * ) AS col0
----
-3781

skipif mysql # not compatible
query I rowsort label-8956
SELECT DISTINCT - 70 / COUNT ( - 38 ) * + 54 + - + COUNT ( * ) AS col0
----
-3781

query I rowsort
SELECT DISTINCT - 54 * - 47 + 42 col0
----
2580

query I rowsort
SELECT ( + + 58 )
----
58

query I rowsort
SELECT - - 81 * + 95 col1
----
7695

query I rowsort
SELECT - - 76 + + - 86 AS col2
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8961
SELECT DISTINCT + COALESCE ( 56, + - CAST( CASE + - 21 WHEN - + 96 THEN + COUNT( * ) * - 79 * 45 - MIN( ALL + 13 ) + - COUNT( * ) WHEN + + 54 - 45 THEN NULL END AS SIGNED ) ) AS col2
----
56

skipif mysql # not compatible
query I rowsort label-8961
SELECT DISTINCT + COALESCE ( 56, + - CAST ( CASE + - 21 WHEN - + 96 THEN + COUNT ( * ) * - 79 * 45 - MIN ( ALL + 13 ) + - COUNT ( * ) WHEN + + 54 - 45 THEN NULL END AS INTEGER ) ) AS col2
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8962
SELECT ALL CAST( + 53 AS SIGNED ) * 25 * 89 + 93, + NULLIF ( 57, - 21 + COUNT( * ) ) + 32 col1
----
118018
89

skipif mysql # not compatible
query II rowsort label-8962
SELECT ALL CAST ( + 53 AS INTEGER ) * 25 * 89 + 93, + NULLIF ( 57, - 21 + COUNT ( * ) ) + 32 col1
----
118018
89

onlyif mysql # aggregate syntax: 
query III rowsort label-8963
SELECT ALL - 46 * + 71 * - - 7 * - - 81 + + COUNT( * ) AS col1, 60 * + 76 - + + 69 AS col0, + + 54 AS col1
----
-1851821
4491
54

skipif mysql # not compatible
query III rowsort label-8963
SELECT ALL - 46 * + 71 * - - 7 * - - 81 + + COUNT ( * ) AS col1, 60 * + 76 - + + 69 AS col0, + + 54 AS col1
----
-1851821
4491
54

query I rowsort
SELECT DISTINCT COALESCE ( - 87, + 89 ) * + 8 + - - 79 AS col1
----
-617

onlyif mysql # aggregate syntax: 
query I rowsort label-8965
SELECT - + 49 * - + ( - COUNT( * ) )
----
-49

skipif mysql # not compatible
query I rowsort label-8965
SELECT - + 49 * - + ( - COUNT ( * ) )
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8966
SELECT 38 * 83 * + COALESCE ( - CASE + 34 WHEN + - ( AVG ( + 1 ) ) THEN - CAST( NULL AS DECIMAL ) - - 47 + + 75 + + 60 + - 11 + CASE + 68 WHEN 94 THEN 93 + + 14 - + + 33 + - 84 + - CASE + CAST( - 21 AS SIGNED ) + + 28 WHEN + 23 THEN + 44 WHEN 77 THEN NULL WHEN 45 * 14 THEN NULL WHEN - 34 THEN NULL END * 63 * 58 WHEN 12 / + 91 THEN NULL WHEN AVG ( 53 ) + + 77 * - 45 THEN NULL WHEN - 9 THEN NULL ELSE NULL END + - COUNT( * ) * - 78 / - 26 WHEN + 34 THEN - 21 ELSE NULL END, 67 - - COUNT( * ) ) * 73 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8966
SELECT 38 * 83 * + COALESCE ( - CASE + 34 WHEN + - ( AVG ( + 1 ) ) THEN - CAST ( NULL AS REAL ) - - 47 + + 75 + + 60 + - 11 + CASE + 68 WHEN 94 THEN 93 + + 14 - + + 33 + - 84 + - CASE + CAST ( - 21 AS INTEGER ) + + 28 WHEN + 23 THEN + 44 WHEN 77 THEN NULL WHEN 45 * 14 THEN NULL WHEN - 34 THEN NULL END * 63 * 58 WHEN 12 / + 91 THEN NULL WHEN AVG ( 53 ) + + 77 * - 45 THEN NULL WHEN - 9 THEN NULL ELSE NULL END + - COUNT ( * ) * - 78 / - 26 WHEN + 34 THEN - 21 ELSE NULL END, 67 - - COUNT ( * ) ) * 73 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8967
SELECT DISTINCT - + 96 DIV 94
----
-1

skipif mysql # not compatible
query I rowsort label-8967
SELECT DISTINCT - + 96 / 94
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8968
SELECT ALL - 24 * - 49 * 81 * + - 44 - + 98 DIV - SUM( DISTINCT 4 ) AS col0
----
-4191240

skipif mysql # not compatible
query I rowsort label-8968
SELECT ALL - 24 * - 49 * 81 * + - 44 - + 98 / - SUM ( DISTINCT 4 ) AS col0
----
-4191240

onlyif mysql # aggregate syntax: 
query I rowsort label-8969
SELECT - MAX( ALL + 26 ) AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-8969
SELECT - MAX ( ALL + 26 ) AS col1
----
-26

query I rowsort
SELECT - 0 - 81 * - 8 * + - ( - + 53 ) AS col0
----
34344

onlyif mysql # aggregate syntax: 
query I rowsort label-8971
SELECT 22 * + + COUNT( + 6 ) * + - 38 + - 74
----
-910

skipif mysql # not compatible
query I rowsort label-8971
SELECT 22 * + + COUNT ( + 6 ) * + - 38 + - 74
----
-910

onlyif mysql # aggregate syntax: 
query II rowsort label-8972
SELECT ALL - - 54 * COALESCE ( + - COUNT( ALL - 93 ), - + 87, ( + + MIN( ALL - 8 ) ) * - COUNT( * ) * - NULLIF ( + + 45, - COUNT( * ) * + + 51 ) ) + - 0 + + 28, COUNT( * ) + 16 AS col1
----
-26
17

skipif mysql # not compatible
query II rowsort label-8972
SELECT ALL - - 54 * COALESCE ( + - COUNT ( ALL - 93 ), - + 87, ( + + MIN ( ALL - 8 ) ) * - COUNT ( * ) * - NULLIF ( + + 45, - COUNT ( * ) * + + 51 ) ) + - 0 + + 28, COUNT ( * ) + 16 AS col1
----
-26
17

onlyif mysql # aggregate syntax: 
query II rowsort label-8973
SELECT ALL 90, + COUNT( * ) * - + 52 + + MAX( + + 68 ) + - 84 + - 63 * + + 12 AS col2
----
90
-824

skipif mysql # not compatible
query II rowsort label-8973
SELECT ALL 90, + COUNT ( * ) * - + 52 + + MAX ( + + 68 ) + - 84 + - 63 * + + 12 AS col2
----
90
-824

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8974
SELECT DISTINCT - COALESCE ( - - MAX( - - 31 ), - 63 + + + 33, - 94 + COUNT( ALL CAST( + 80 AS SIGNED ) ) ) * COUNT( * ) + - 85 AS col0
----
-116

skipif mysql # not compatible
query I rowsort label-8974
SELECT DISTINCT - COALESCE ( - - MAX ( - - 31 ), - 63 + + + 33, - 94 + COUNT ( ALL CAST ( + 80 AS INTEGER ) ) ) * COUNT ( * ) + - 85 AS col0
----
-116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8975
SELECT DISTINCT CAST( NULL AS SIGNED ) * - CAST( + COUNT( * ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8975
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - CAST ( + COUNT ( * ) AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8976
SELECT - 83 * - - 51 * - + COUNT( * ) * + 88, + ( + 97 ) + + 23 AS col1
----
372504
120

skipif mysql # not compatible
query II rowsort label-8976
SELECT - 83 * - - 51 * - + COUNT ( * ) * + 88, + ( + 97 ) + + 23 AS col1
----
372504
120

query I rowsort
SELECT + 89 + + - 12
----
77

query I rowsort
SELECT + 65 + + 96 AS col2
----
161

query I rowsort
SELECT ALL 47 + - NULLIF ( + 26, + 75 )
----
21

query I rowsort
SELECT - NULLIF ( + 70, - 40 )
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8981
SELECT - ( - MAX( CAST( 78 AS SIGNED ) ) )
----
78

skipif mysql # not compatible
query I rowsort label-8981
SELECT - ( - MAX ( CAST ( 78 AS INTEGER ) ) )
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8982
SELECT - CAST( - - 77 AS SIGNED )
----
-77

skipif mysql # not compatible
query I rowsort label-8982
SELECT - CAST ( - - 77 AS INTEGER )
----
-77

query I rowsort
SELECT DISTINCT + 11 + + 37
----
48

query II rowsort
SELECT 90, 9 * - 34 AS col1
----
90
-306

onlyif mysql # DIV for integer division: 
query I rowsort label-8985
SELECT + 45 DIV 18
----
2

skipif mysql # not compatible
query I rowsort label-8985
SELECT + 45 / 18
----
2

query I rowsort
SELECT - 51 * - 76 AS col1
----
3876

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8987
SELECT DISTINCT NULLIF ( + 54, - 72 * + + CAST( NULL AS SIGNED ) * + - 93 + COUNT( * ) ) col2
----
54

skipif mysql # not compatible
query I rowsort label-8987
SELECT DISTINCT NULLIF ( + 54, - 72 * + + CAST ( NULL AS INTEGER ) * + - 93 + COUNT ( * ) ) col2
----
54

query I rowsort
SELECT ALL 72 + - 7 + ( - - 76 ) * + 77 + 87 col0
----
6004

onlyif mysql # aggregate syntax: 
query I rowsort label-8989
SELECT - MIN( - 36 ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-8989
SELECT - MIN ( - 36 ) AS col2
----
36

onlyif mysql # aggregate syntax: 
query II rowsort label-8990
SELECT 44 * 88 - - 65 + 6 + + 94 * + 0 col1, + 42 + + 54 * + 75 + MIN( ALL + 95 )
----
3943
4187

skipif mysql # not compatible
query II rowsort label-8990
SELECT 44 * 88 - - 65 + 6 + + 94 * + 0 col1, + 42 + + 54 * + 75 + MIN ( ALL + 95 )
----
3943
4187

query II rowsort
SELECT + 95 AS col0, - 30 + + 43 col2
----
95
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8992
SELECT CASE + 77 WHEN + + MIN( ALL 14 ) THEN CASE 6 WHEN - 69 * COUNT( * ) THEN - + 67 + MIN( DISTINCT - 43 ) / 84 * - 27 WHEN + 37 THEN + COUNT( * ) WHEN + 50 + - COUNT( * ) THEN 90 ELSE - CASE + + 59 WHEN 97 THEN NULL WHEN - 97 / CASE - 64 WHEN + 44 * 21 THEN 15 END - 84 THEN COUNT( * ) END END * 63 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8992
SELECT CASE + 77 WHEN + + MIN ( ALL 14 ) THEN CASE 6 WHEN - 69 * COUNT ( * ) THEN - + 67 + MIN ( DISTINCT - 43 ) / 84 * - 27 WHEN + 37 THEN + COUNT ( * ) WHEN + 50 + - COUNT ( * ) THEN 90 ELSE - CASE + + 59 WHEN 97 THEN NULL WHEN - 97 / CASE - 64 WHEN + 44 * 21 THEN 15 END - 84 THEN COUNT ( * ) END END * 63 END
----
NULL

query I rowsort
SELECT ALL + 84 - + + 93
----
-9

query I rowsort
SELECT - 91 * - 8 AS col0
----
728

onlyif mysql # DIV for integer division: 
query I rowsort label-8995
SELECT - 35 DIV + 80 * - 48 + - ( + + 96 ) AS col1
----
-96

skipif mysql # not compatible
query I rowsort label-8995
SELECT - 35 / + 80 * - 48 + - ( + + 96 ) AS col1
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8996
SELECT + 27 * + 88 * + 63 - + MIN( ALL - - 40 ) + + ( + CASE 14 WHEN + + ( - + CASE 47 WHEN + 71 THEN + 55 WHEN + + COUNT( * ) * - - 20 * + 16 + + 31 THEN NULL END ) * + 1 THEN + + 7 * 88 + + 40 + - 99 + 58 END ) + 30 * 34 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8996
SELECT + 27 * + 88 * + 63 - + MIN ( ALL - - 40 ) + + ( + CASE 14 WHEN + + ( - + CASE 47 WHEN + 71 THEN + 55 WHEN + + COUNT ( * ) * - - 20 * + 16 + + 31 THEN NULL END ) * + 1 THEN + + 7 * 88 + + 40 + - 99 + 58 END ) + 30 * 34 col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8997
SELECT DISTINCT - COUNT( + 89 ) * + 3 + + - 96 AS col2, - 82 AS col2
----
-99
-82

skipif mysql # not compatible
query II rowsort label-8997
SELECT DISTINCT - COUNT ( + 89 ) * + 3 + + - 96 AS col2, - 82 AS col2
----
-99
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8998
SELECT ALL - + CAST( - - 68 AS SIGNED )
----
-68

skipif mysql # not compatible
query I rowsort label-8998
SELECT ALL - + CAST ( - - 68 AS INTEGER )
----
-68

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8999
SELECT + 71 * CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8999
SELECT + 71 * CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9000
SELECT - + COUNT( * ) * - 41 - ( + MIN( ALL - + 50 ) ) * - + 52 * + 67 + + 68 + + 58 - + 65 * - CASE + + 72 WHEN - - 36 THEN - + 75 END * - CAST( + - 19 AS SIGNED ) + - 13 * COUNT( * ) + - 16 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9000
SELECT - + COUNT ( * ) * - 41 - ( + MIN ( ALL - + 50 ) ) * - + 52 * + 67 + + 68 + + 58 - + 65 * - CASE + + 72 WHEN - - 36 THEN - + 75 END * - CAST ( + - 19 AS INTEGER ) + - 13 * COUNT ( * ) + - 16 col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9001
SELECT ALL - + CAST( NULL AS SIGNED ) AS col1, AVG ( CAST( NULL AS SIGNED ) )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9001
SELECT ALL - + CAST ( NULL AS INTEGER ) AS col1, AVG ( CAST ( NULL AS INTEGER ) )
----
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9002
SELECT ALL - ( - CASE + COUNT( * ) WHEN 96 - + COALESCE ( - 17, - - 90 ) + - - 92 * 75 THEN NULL WHEN + CAST( 26 AS SIGNED ) THEN NULL ELSE - COALESCE ( MAX( DISTINCT - 24 ), + + 30 * - 93 ) * - - 91 + + 79 - - 52 END ) * + 99 * + - 74 * ( 29 ) + - 16 AS col0
----
-491831026

skipif mysql # not compatible
query I rowsort label-9002
SELECT ALL - ( - CASE + COUNT ( * ) WHEN 96 - + COALESCE ( - 17, - - 90 ) + - - 92 * 75 THEN NULL WHEN + CAST ( 26 AS INTEGER ) THEN NULL ELSE - COALESCE ( MAX ( DISTINCT - 24 ), + + 30 * - 93 ) * - - 91 + + 79 - - 52 END ) * + 99 * + - 74 * ( 29 ) + - 16 AS col0
----
-491831026

onlyif mysql # aggregate syntax: 
query I rowsort label-9003
SELECT - COUNT( * ) * - 86 * + 59 AS col0
----
5074

skipif mysql # not compatible
query I rowsort label-9003
SELECT - COUNT ( * ) * - 86 * + 59 AS col0
----
5074

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9004
SELECT ALL - - COALESCE ( - ( COUNT( * ) ), - + CAST( + + ( + ( + 37 ) ) AS SIGNED ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9004
SELECT ALL - - COALESCE ( - ( COUNT ( * ) ), - + CAST ( + + ( + ( + 37 ) ) AS INTEGER ) )
----
-1

query I rowsort
SELECT ALL - ( + + 24 )
----
-24

query I rowsort
SELECT 21 + 24
----
45

query I rowsort
SELECT 30 * + + 98 * - + 28
----
-82320

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9008
SELECT 66 * - CAST( NULL AS DECIMAL ) * + 56 AS col2, COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-9008
SELECT 66 * - CAST ( NULL AS REAL ) * + 56 AS col2, COUNT ( * )
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9009
SELECT ALL - 24 + NULLIF ( + - 17, + + COUNT( * ) * + 52 ) * + - 60 + 64
----
1060

skipif mysql # not compatible
query I rowsort label-9009
SELECT ALL - 24 + NULLIF ( + - 17, + + COUNT ( * ) * + 52 ) * + - 60 + 64
----
1060

onlyif mysql # aggregate syntax: 
query I rowsort label-9010
SELECT 88 * + 73 - - COUNT( * )
----
6425

skipif mysql # not compatible
query I rowsort label-9010
SELECT 88 * + 73 - - COUNT ( * )
----
6425

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9011
SELECT DISTINCT - ( + COUNT( * ) ) + COALESCE ( + - CASE - - 67 WHEN - 33 * 64 THEN 11 * 50 DIV + - 38 DIV - 11 WHEN - 60 * - 4 + - - COUNT( * ) THEN NULL WHEN + 42 + - + 44 THEN + 42 ELSE NULL END, + + ( - 94 ) * - 1, - CASE + + 41 WHEN ( + 35 ) THEN + 66 WHEN + 13 * + AVG ( ALL + 79 ) THEN NULL ELSE NULL END * - 27 ) AS col0
----
93

skipif mysql # not compatible
query I rowsort label-9011
SELECT DISTINCT - ( + COUNT ( * ) ) + COALESCE ( + - CASE - - 67 WHEN - 33 * 64 THEN 11 * 50 / + - 38 / - 11 WHEN - 60 * - 4 + - - COUNT ( * ) THEN NULL WHEN + 42 + - + 44 THEN + 42 ELSE NULL END, + + ( - 94 ) * - 1, - CASE + + 41 WHEN ( + 35 ) THEN + 66 WHEN + 13 * + AVG ( ALL + 79 ) THEN NULL ELSE NULL END * - 27 ) AS col0
----
93

query I rowsort
SELECT 65 + + 43 col0
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-9013
SELECT ALL MAX( - - 30 ) + - 65 + + 12 AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-9013
SELECT ALL MAX ( - - 30 ) + - 65 + + 12 AS col1
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-9014
SELECT COUNT( ALL + 62 ) * + 34 - 75 + + 10 + + 81 AS col1
----
50

skipif mysql # not compatible
query I rowsort label-9014
SELECT COUNT ( ALL + 62 ) * + 34 - 75 + + 10 + + 81 AS col1
----
50

query II rowsort
SELECT ALL - 98 * - 44 AS col2, - NULLIF ( - 17, + + 11 ) AS col1
----
4312
17

onlyif mysql # DIV for integer division: 
query I rowsort label-9016
SELECT 55 + ( - - 87 ) * COALESCE ( + 56, 5, - + 41 * + - 13 * - + 70 * + 52 * - - 66 + + 31 + 55 - - 74 * - 75 DIV - 18 )
----
4927

skipif mysql # not compatible
query I rowsort label-9016
SELECT 55 + ( - - 87 ) * COALESCE ( + 56, 5, - + 41 * + - 13 * - + 70 * + 52 * - - 66 + + 31 + 55 - - 74 * - 75 / - 18 )
----
4927

query I rowsort
SELECT 91 - 64 + - 93
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-9018
SELECT ALL MAX( DISTINCT 13 ) + + 84
----
97

skipif mysql # not compatible
query I rowsort label-9018
SELECT ALL MAX ( DISTINCT 13 ) + + 84
----
97

query I rowsort
SELECT ALL 34 - + 99 * + 44 AS col1
----
-4322

onlyif mysql # aggregate syntax: 
query I rowsort label-9020
SELECT 80 + - - COUNT( + 17 ) AS col0
----
81

skipif mysql # not compatible
query I rowsort label-9020
SELECT 80 + - - COUNT ( + 17 ) AS col0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9021
SELECT DISTINCT - - 29 - - COUNT( * ) * - 78
----
-49

skipif mysql # not compatible
query I rowsort label-9021
SELECT DISTINCT - - 29 - - COUNT ( * ) * - 78
----
-49

query I rowsort
SELECT ALL - ( + + 84 ) * + 50 AS col2
----
-4200

onlyif mysql # DIV for integer division: 
query I rowsort label-9023
SELECT ALL 22 - - 24 DIV - + 80 * + 74
----
22

skipif mysql # not compatible
query I rowsort label-9023
SELECT ALL 22 - - 24 / - + 80 * + 74
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9024
SELECT ( CAST( NULL AS SIGNED ) ) + + COUNT( * ) * + 60
----
NULL

skipif mysql # not compatible
query I rowsort label-9024
SELECT ( CAST ( NULL AS INTEGER ) ) + + COUNT ( * ) * + 60
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9025
SELECT ALL NULLIF ( + 78, COUNT( + ( 56 ) ) + + + 80 + - + 96 ) - COUNT( ALL 79 ) * 34
----
44

skipif mysql # not compatible
query I rowsort label-9025
SELECT ALL NULLIF ( + 78, COUNT ( + ( 56 ) ) + + + 80 + - + 96 ) - COUNT ( ALL 79 ) * 34
----
44

query I rowsort
SELECT - 89 + + 66
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-9027
SELECT + 28 * NULLIF ( + + 17, - COUNT( * ) ) + + 81 AS col1
----
557

skipif mysql # not compatible
query I rowsort label-9027
SELECT + 28 * NULLIF ( + + 17, - COUNT ( * ) ) + + 81 AS col1
----
557

query I rowsort
SELECT ALL - 52 - + 80
----
-132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9029
SELECT - 12 * + + 29 + - + 0 + - 18 + - - CAST( NULL AS SIGNED ) * + 89 * + - COUNT( 89 ) * 90 / + 55 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9029
SELECT - 12 * + + 29 + - + 0 + - 18 + - - CAST ( NULL AS INTEGER ) * + 89 * + - COUNT ( 89 ) * 90 / + 55 AS col1
----
NULL

query I rowsort
SELECT ALL + 95 + + 0 * + - 29
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9031
SELECT + 91 * - + 64 * 10 DIV + + COUNT( * ) + - COUNT( * ) AS col1, + 14 AS col2
----
-58241
14

skipif mysql # not compatible
query II rowsort label-9031
SELECT + 91 * - + 64 * 10 / + + COUNT ( * ) + - COUNT ( * ) AS col1, + 14 AS col2
----
-58241
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9032
SELECT - 82 * + CAST( - 53 AS SIGNED ) + - 43
----
4303

skipif mysql # not compatible
query I rowsort label-9032
SELECT - 82 * + CAST ( - 53 AS INTEGER ) + - 43
----
4303

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9033
SELECT CAST( NULL AS SIGNED ) / - 88
----
NULL

skipif mysql # not compatible
query I rowsort label-9033
SELECT CAST ( NULL AS INTEGER ) / - 88
----
NULL

query I rowsort
SELECT + ( + ( + + 8 ) ) * 36 + - 6 AS col0
----
282

onlyif mysql # aggregate syntax: 
query II rowsort label-9035
SELECT ALL + 56 + 15 * + + 57, CASE + - 97 WHEN + 47 THEN + COUNT( * ) END AS col2
----
911
NULL

skipif mysql # not compatible
query II rowsort label-9035
SELECT ALL + 56 + 15 * + + 57, CASE + - 97 WHEN + 47 THEN + COUNT ( * ) END AS col2
----
911
NULL

query I rowsort
SELECT ALL - 1 * + - 53 AS col2
----
53

query I rowsort
SELECT 75 + + - 54 AS col1
----
21

query I rowsort
SELECT DISTINCT - 83 * + 23 AS col0
----
-1909

query I rowsort
SELECT ALL - 29 + - 24
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-9040
SELECT ALL - NULLIF ( ( - - COUNT( * ) ), 27 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9040
SELECT ALL - NULLIF ( ( - - COUNT ( * ) ), 27 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9041
SELECT 65 + COUNT( * )
----
66

skipif mysql # not compatible
query I rowsort label-9041
SELECT 65 + COUNT ( * )
----
66

query I rowsort
SELECT 81 + - 17 * + 45 + + 91
----
-593

onlyif mysql # aggregate syntax: 
query I rowsort label-9043
SELECT ALL MAX( DISTINCT + 59 )
----
59

skipif mysql # not compatible
query I rowsort label-9043
SELECT ALL MAX ( DISTINCT + 59 )
----
59

query I rowsort
SELECT 0 + - 66 + 98 + - 72 * + 76
----
-5440

query I rowsort
SELECT ALL - 94 - 20
----
-114

query II rowsort
SELECT 15, 21 * - - 47 AS col0
----
15
987

onlyif mysql # aggregate syntax: 
query I rowsort label-9047
SELECT COUNT( * ) + + 65 AS col0
----
66

skipif mysql # not compatible
query I rowsort label-9047
SELECT COUNT ( * ) + + 65 AS col0
----
66

onlyif mysql # aggregate syntax: 
query II rowsort label-9048
SELECT NULLIF ( - - 65, - - 69 ) * + 75 + + + 98 * 10 * + COUNT( * ) * - 38 AS col2, - 44 AS col0
----
-32365
-44

skipif mysql # not compatible
query II rowsort label-9048
SELECT NULLIF ( - - 65, - - 69 ) * + 75 + + + 98 * 10 * + COUNT ( * ) * - 38 AS col2, - 44 AS col0
----
-32365
-44

query I rowsort
SELECT DISTINCT + 21 * 7 col0
----
147

query I rowsort
SELECT ALL - 94 - + 97 AS col2
----
-191

query II rowsort
SELECT + 46 * + ( 3 ) AS col2, + 16
----
138
16

query I rowsort
SELECT DISTINCT + 6 * 75 * 79 - - - 17 * 61
----
34513

onlyif mysql # aggregate syntax: 
query I rowsort label-9053
SELECT + + COUNT( * ) * NULLIF ( - COALESCE ( 11, + ( + 63 ), + + 1 + + 16 + 24 ), - 86 ) * - + ( + 46 ) AS col2
----
506

skipif mysql # not compatible
query I rowsort label-9053
SELECT + + COUNT ( * ) * NULLIF ( - COALESCE ( 11, + ( + 63 ), + + 1 + + 16 + 24 ), - 86 ) * - + ( + 46 ) AS col2
----
506

onlyif mysql # aggregate syntax: 
query I rowsort label-9054
SELECT + ( + - 63 ) * - + 10 - + + COUNT( * ) AS col0
----
629

skipif mysql # not compatible
query I rowsort label-9054
SELECT + ( + - 63 ) * - + 10 - + + COUNT ( * ) AS col0
----
629

onlyif mysql # aggregate syntax: 
query I rowsort label-9055
SELECT - + 67 - - 80 - + + COALESCE ( 86, + - 64, - 53 + + 63 + - - 44 + + COUNT( + 45 ) * + AVG ( DISTINCT + 85 ) ) * - 41 * - ( + + CASE - MIN( ALL + 45 ) WHEN - + 95 THEN - + 61 / 31 * + 75 END ) / - ( + NULLIF ( 13, 65 ) ) + - ( - 75 + - CASE 2 WHEN + COUNT( * ) THEN 17 * + COUNT( * ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-9055
SELECT - + 67 - - 80 - + + COALESCE ( 86, + - 64, - 53 + + 63 + - - 44 + + COUNT ( + 45 ) * + AVG ( DISTINCT + 85 ) ) * - 41 * - ( + + CASE - MIN ( ALL + 45 ) WHEN - + 95 THEN - + 61 / 31 * + 75 END ) / - ( + NULLIF ( 13, 65 ) ) + - ( - 75 + - CASE 2 WHEN + COUNT ( * ) THEN 17 * + COUNT ( * ) END )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9056
SELECT - - 51 DIV + COUNT( * ) AS col0
----
51

skipif mysql # not compatible
query I rowsort label-9056
SELECT - - 51 / + COUNT ( * ) AS col0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9057
SELECT - CASE NULLIF ( + 28, + 18 + + 5 ) WHEN 2 + + - CASE 48 WHEN - - 27 * + 96 * CAST( + 51 AS SIGNED ) THEN - - 12 END + - + 58 THEN NULL ELSE + 33 * 91 * - - 38 END
----
-114114

skipif mysql # not compatible
query I rowsort label-9057
SELECT - CASE NULLIF ( + 28, + 18 + + 5 ) WHEN 2 + + - CASE 48 WHEN - - 27 * + 96 * CAST ( + 51 AS INTEGER ) THEN - - 12 END + - + 58 THEN NULL ELSE + 33 * 91 * - - 38 END
----
-114114

onlyif mysql # aggregate syntax: 
query II rowsort label-9058
SELECT ALL 69, - COUNT( * ) * 32 + + 13 AS col1
----
69
-19

skipif mysql # not compatible
query II rowsort label-9058
SELECT ALL 69, - COUNT ( * ) * 32 + + 13 AS col1
----
69
-19

query II rowsort
SELECT ALL + 92 AS col1, 21
----
92
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9060
SELECT + - COUNT( * ) * ( + - 69 )
----
69

skipif mysql # not compatible
query I rowsort label-9060
SELECT + - COUNT ( * ) * ( + - 69 )
----
69

query I rowsort
SELECT + 67 - 77 + 13 + - 82 * + 13 AS col0
----
-1063

query I rowsort
SELECT ALL - 61 * + 18 + 62
----
-1036

onlyif mysql # aggregate syntax: 
query I rowsort label-9063
SELECT - 80 * + COUNT( * ) - - - 58
----
-138

skipif mysql # not compatible
query I rowsort label-9063
SELECT - 80 * + COUNT ( * ) - - - 58
----
-138

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9064
SELECT + + CAST( + CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9064
SELECT + + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9065
SELECT ALL - CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9065
SELECT ALL - CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9066
SELECT + ( - 16 ) AS col1, 23 / + + CAST( NULL AS SIGNED ) * + - COUNT( * )
----
-16
NULL

skipif mysql # not compatible
query II rowsort label-9066
SELECT + ( - 16 ) AS col1, 23 / + + CAST ( NULL AS INTEGER ) * + - COUNT ( * )
----
-16
NULL

query I rowsort
SELECT + 53 * - 38 AS col2
----
-2014

query I rowsort
SELECT - 58 * + 6 AS col2
----
-348

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9069
SELECT + 70 + + - ( + + ( + 40 ) ) + + + COUNT( * ) DIV 18 * - - 0 AS col1
----
30

skipif mysql # not compatible
query I rowsort label-9069
SELECT + 70 + + - ( + + ( + 40 ) ) + + + COUNT ( * ) / 18 * - - 0 AS col1
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-9070
SELECT - 76 DIV + - 85 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9070
SELECT - 76 / + - 85 AS col2
----
0

query II rowsort
SELECT DISTINCT 11 * - 94 * 34 - 67 AS col2, 29
----
-35223
29

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9072
SELECT + 92 * 68 DIV - COALESCE ( + - CAST( 11 AS SIGNED ), - 36 ) + + 72
----
640

skipif mysql # not compatible
query I rowsort label-9072
SELECT + 92 * 68 / - COALESCE ( + - CAST ( 11 AS INTEGER ), - 36 ) + + 72
----
640

query I rowsort
SELECT + ( - 25 ) * 56 AS col0
----
-1400

onlyif mysql # DIV for integer division: 
query II rowsort label-9074
SELECT ALL + 35 * 87 AS col2, - 57 DIV - 1
----
3045
57

skipif mysql # not compatible
query II rowsort label-9074
SELECT ALL + 35 * 87 AS col2, - 57 / - 1
----
3045
57

query II rowsort
SELECT - ( - 98 ) + + 12 - + 18 + - 43 - + 89 * 67 AS col1, - 78 AS col0
----
-5914
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-9076
SELECT ALL 22 - - 23 * - COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9076
SELECT ALL 22 - - 23 * - COUNT ( * ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-9077
SELECT ALL - 62 - - 86 + + + 56 * - MIN( ALL + - 27 ) * - + ( + ( - COUNT( * ) ) ) * + - 7 AS col0, + 85 * + 97 + - 10 AS col1
----
-10560
8235

skipif mysql # not compatible
query II rowsort label-9077
SELECT ALL - 62 - - 86 + + + 56 * - MIN ( ALL + - 27 ) * - + ( + ( - COUNT ( * ) ) ) * + - 7 AS col0, + 85 * + 97 + - 10 AS col1
----
-10560
8235

query I rowsort
SELECT ALL ( + + 88 ) AS col0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9079
SELECT - 69 * + SUM( + 45 ) AS col0
----
-3105

skipif mysql # not compatible
query I rowsort label-9079
SELECT - 69 * + SUM ( + 45 ) AS col0
----
-3105

onlyif mysql # aggregate syntax: 
query I rowsort label-9080
SELECT ALL + COUNT( * ) * + 1
----
1

skipif mysql # not compatible
query I rowsort label-9080
SELECT ALL + COUNT ( * ) * + 1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9081
SELECT - - 66 - - + 62 DIV + 81 AS col2
----
66

skipif mysql # not compatible
query I rowsort label-9081
SELECT - - 66 - - + 62 / + 81 AS col2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9082
SELECT - - 21 + - COUNT( * )
----
20

skipif mysql # not compatible
query I rowsort label-9082
SELECT - - 21 + - COUNT ( * )
----
20

query I rowsort
SELECT - 71 + - 19 AS col2
----
-90

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9084
SELECT - 80 * + NULLIF ( - 96, CAST( NULL AS DECIMAL ) + - - COUNT( * ) + 18 * + + 41 ) AS col1, 23 col2
----
7680
23

skipif mysql # not compatible
query II rowsort label-9084
SELECT - 80 * + NULLIF ( - 96, CAST ( NULL AS REAL ) + - - COUNT ( * ) + 18 * + + 41 ) AS col1, 23 col2
----
7680
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9085
SELECT DISTINCT - + CASE 38 WHEN - 36 THEN NULL WHEN - 74 / 27 THEN 78 / + 97 + AVG ( DISTINCT - - 44 ) WHEN + - 48 / MIN( DISTINCT CAST( NULL AS SIGNED ) ) THEN NULL END / + + 0
----
NULL

skipif mysql # not compatible
query I rowsort label-9085
SELECT DISTINCT - + CASE 38 WHEN - 36 THEN NULL WHEN - 74 / 27 THEN 78 / + 97 + AVG ( DISTINCT - - 44 ) WHEN + - 48 / MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) THEN NULL END / + + 0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9086
SELECT - NULLIF ( + CASE + 31 WHEN CAST( 74 AS SIGNED ) + NULLIF ( - 35, + 36 ) * 27 THEN NULL WHEN + ( - 63 ) * + 83 THEN - + 19 * + - 7 + - + COUNT( * ) ELSE + 14 + + 41 * 71 END, 17 + - - 28 ) + - 32
----
-2957

skipif mysql # not compatible
query I rowsort label-9086
SELECT - NULLIF ( + CASE + 31 WHEN CAST ( 74 AS INTEGER ) + NULLIF ( - 35, + 36 ) * 27 THEN NULL WHEN + ( - 63 ) * + 83 THEN - + 19 * + - 7 + - + COUNT ( * ) ELSE + 14 + + 41 * 71 END, 17 + - - 28 ) + - 32
----
-2957

onlyif mysql # aggregate syntax: 
query I rowsort label-9087
SELECT ALL - MAX( - - 68 ) + + 89 AS col2
----
21

skipif mysql # not compatible
query I rowsort label-9087
SELECT ALL - MAX ( - - 68 ) + + 89 AS col2
----
21

query I rowsort
SELECT - 37 + + 54
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-9089
SELECT - + 39 DIV - 89 + - ( - 69 )
----
69

skipif mysql # not compatible
query I rowsort label-9089
SELECT - + 39 / - 89 + - ( - 69 )
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9090
SELECT - CASE 69 WHEN ( - + 82 ) - 85 THEN - - 65 / + + 52 WHEN - - CAST( NULL AS SIGNED ) / - 28 THEN NULL END + + 13 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9090
SELECT - CASE 69 WHEN ( - + 82 ) - 85 THEN - - 65 / + + 52 WHEN - - CAST ( NULL AS INTEGER ) / - 28 THEN NULL END + + 13 AS col0
----
NULL

query II rowsort
SELECT ( 4 ), - 16 AS col0
----
4
-16

query I rowsort
SELECT ALL - 0 + + 68 + 31 + + 1 AS col0
----
100

query II rowsort
SELECT + - ( - + 43 ) AS col2, + 49
----
43
49

query I rowsort
SELECT - 13 + 16 + - 18 AS col0
----
-15

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9095
SELECT + 96 * - 12 + + CAST( + 32 AS SIGNED ) * + 79 - + + 18 DIV + 10 AS col2, 41
----
1375
41

skipif mysql # not compatible
query II rowsort label-9095
SELECT + 96 * - 12 + + CAST ( + 32 AS INTEGER ) * + 79 - + + 18 / + 10 AS col2, 41
----
1375
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9096
SELECT DISTINCT + + CAST( + 59 AS SIGNED ) AS col1
----
59

skipif mysql # not compatible
query I rowsort label-9096
SELECT DISTINCT + + CAST ( + 59 AS INTEGER ) AS col1
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9097
SELECT ALL + 13 DIV + 47 * 28 + + 10 * - + 6 + + COUNT( * )
----
-59

skipif mysql # not compatible
query I rowsort label-9097
SELECT ALL + 13 / + 47 * 28 + + 10 * - + 6 + + COUNT ( * )
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9098
SELECT + 70 DIV + 14 + + 79 + - 13 * - 18 * 0 * SUM( + - 70 ) * 2 * MAX( + + 85 ) * + 19 DIV + CAST( + 49 AS SIGNED ) - ( + - 63 ) + + 47 + 88 + + - 58 AS col0
----
224

skipif mysql # not compatible
query I rowsort label-9098
SELECT + 70 / + 14 + + 79 + - 13 * - 18 * 0 * SUM ( + - 70 ) * 2 * MAX ( + + 85 ) * + 19 / + CAST ( + 49 AS INTEGER ) - ( + - 63 ) + + 47 + 88 + + - 58 AS col0
----
224

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9099
SELECT CAST( NULL AS SIGNED ) AS col2, - SUM( - - 81 ) AS col0
----
NULL
-81

skipif mysql # not compatible
query II rowsort label-9099
SELECT CAST ( NULL AS INTEGER ) AS col2, - SUM ( - - 81 ) AS col0
----
NULL
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9100
SELECT ALL + COUNT( + + ( 72 ) )
----
1

skipif mysql # not compatible
query I rowsort label-9100
SELECT ALL + COUNT ( + + ( 72 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9101
SELECT ALL MAX( DISTINCT + 62 ) * 81 + 72
----
5094

skipif mysql # not compatible
query I rowsort label-9101
SELECT ALL MAX ( DISTINCT + 62 ) * 81 + 72
----
5094

onlyif mysql # aggregate syntax: 
query I rowsort label-9102
SELECT - 53 - MAX( DISTINCT - 8 ) * + 78 + + ( + 77 ) col0
----
648

skipif mysql # not compatible
query I rowsort label-9102
SELECT - 53 - MAX ( DISTINCT - 8 ) * + 78 + + ( + 77 ) col0
----
648

onlyif mysql # aggregate syntax: 
query II rowsort label-9103
SELECT + 26 * + + NULLIF ( - + 11, + + 69 ) + - - 40 AS col1, 7 * - SUM( ALL - 53 )
----
-246
371

skipif mysql # not compatible
query II rowsort label-9103
SELECT + 26 * + + NULLIF ( - + 11, + + 69 ) + - - 40 AS col1, 7 * - SUM ( ALL - 53 )
----
-246
371

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9104
SELECT DISTINCT CAST( NULL AS DECIMAL ) * + + 35 * - + ( 47 ) * - 93 - + + 19 - - + ( - CASE 98 WHEN + 48 * + 13 + - CASE 76 WHEN + + 83 * - COUNT( ALL + 24 ) THEN - - 9 * - 25 END THEN 42 ELSE + CASE - 10 WHEN - COALESCE ( + - SUM( - CAST( - 14 AS SIGNED ) ), - 25 / 41 ) / + 20 THEN - 14 ELSE NULL END + 32 END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9104
SELECT DISTINCT CAST ( NULL AS REAL ) * + + 35 * - + ( 47 ) * - 93 - + + 19 - - + ( - CASE 98 WHEN + 48 * + 13 + - CASE 76 WHEN + + 83 * - COUNT ( ALL + 24 ) THEN - - 9 * - 25 END THEN 42 ELSE + CASE - 10 WHEN - COALESCE ( + - SUM ( - CAST ( - 14 AS INTEGER ) ), - 25 / 41 ) / + 20 THEN - 14 ELSE NULL END + 32 END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9105
SELECT ALL 41 * COUNT( * ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-9105
SELECT ALL 41 * COUNT ( * ) AS col2
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9106
SELECT 66 * CASE + 55 WHEN + 64 * + COUNT( * ) THEN NULL WHEN - ( 61 ) THEN NULL WHEN + COALESCE ( + MAX( + CAST( NULL AS SIGNED ) ), - - 1 + - 81 - + 70 * + CAST( NULL AS SIGNED ) / COUNT( * ), 76 ) THEN - - 42 + - MAX( ALL 88 ) END + - - 56 * - COALESCE ( - 58, - - 36 + + 40, + COUNT( * ) + 75 * 96 ) * 82 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9106
SELECT 66 * CASE + 55 WHEN + 64 * + COUNT ( * ) THEN NULL WHEN - ( 61 ) THEN NULL WHEN + COALESCE ( + MAX ( + CAST ( NULL AS INTEGER ) ), - - 1 + - 81 - + 70 * + CAST ( NULL AS INTEGER ) / COUNT ( * ), 76 ) THEN - - 42 + - MAX ( ALL 88 ) END + - - 56 * - COALESCE ( - 58, - - 36 + + 40, + COUNT ( * ) + 75 * 96 ) * 82 AS col2
----
NULL

query I rowsort
SELECT + 99 * - 30 * + + 97
----
-288090

onlyif mysql # aggregate syntax: 
query I rowsort label-9108
SELECT 67 * - MIN( + + 56 ) * + COUNT( * ) + + + 30
----
-3722

skipif mysql # not compatible
query I rowsort label-9108
SELECT 67 * - MIN ( + + 56 ) * + COUNT ( * ) + + + 30
----
-3722

query I rowsort
SELECT CASE ( 52 ) WHEN 98 THEN + 16 END AS col0
----
NULL

query I rowsort
SELECT 9 * - 80
----
-720

query I rowsort
SELECT - 42 + - 71
----
-113

query I rowsort
SELECT ALL 16 * + 60 AS col1
----
960

onlyif mysql # aggregate syntax: 
query I rowsort label-9113
SELECT 93 + - ( - + COUNT( * ) ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-9113
SELECT 93 + - ( - + COUNT ( * ) ) AS col2
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9114
SELECT - 99 * - + NULLIF ( - NULLIF ( 74, + - CASE - COUNT( * ) WHEN + + 54 THEN - CASE - - CASE + 17 WHEN + COUNT( * ) THEN NULL ELSE + - 96 END WHEN + 80 + + 83 + - ( + 74 ) THEN COUNT( - 13 ) END / + COUNT( * ) * + 93 * 84 END ), + + 14 ) * 97 + - 54 * - 38 * + 48 + - ( - 77 ) AS col1
----
-612049

skipif mysql # not compatible
query I rowsort label-9114
SELECT - 99 * - + NULLIF ( - NULLIF ( 74, + - CASE - COUNT ( * ) WHEN + + 54 THEN - CASE - - CASE + 17 WHEN + COUNT ( * ) THEN NULL ELSE + - 96 END WHEN + 80 + + 83 + - ( + 74 ) THEN COUNT ( - 13 ) END / + COUNT ( * ) * + 93 * 84 END ), + + 14 ) * 97 + - 54 * - 38 * + 48 + - ( - 77 ) AS col1
----
-612049

query I rowsort
SELECT 40 * + 29 AS col0
----
1160

onlyif mysql # aggregate syntax: 
query I rowsort label-9116
SELECT ALL + COUNT( ALL - 27 ) + - COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9116
SELECT ALL + COUNT ( ALL - 27 ) + - COUNT ( * ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9117
SELECT DISTINCT - - 34 + COUNT( * )
----
35

skipif mysql # not compatible
query I rowsort label-9117
SELECT DISTINCT - - 34 + COUNT ( * )
----
35

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9118
SELECT DISTINCT 0 + + 4 * - 0 + 93 * - CASE + 23 WHEN - NULLIF ( + + ( - 7 ), 55 * + - 35 + - CAST( NULL AS DECIMAL ) ) THEN NULL WHEN ( 3 ) THEN + CAST( - - 2 AS SIGNED ) + - 40 WHEN 99 + - 61 THEN NULL ELSE NULL END + + 56 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9118
SELECT DISTINCT 0 + + 4 * - 0 + 93 * - CASE + 23 WHEN - NULLIF ( + + ( - 7 ), 55 * + - 35 + - CAST ( NULL AS REAL ) ) THEN NULL WHEN ( 3 ) THEN + CAST ( - - 2 AS INTEGER ) + - 40 WHEN 99 + - 61 THEN NULL ELSE NULL END + + 56 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9119
SELECT ALL - - CAST( + 83 AS DECIMAL ) + + - 58 + + NULLIF ( + - 2, + 93 * - 91 + - MAX( 23 ) + - 36 + 91 * - 79 ) * - COALESCE ( - + CASE - + 27 WHEN - 17 + + 84 / + - 78 THEN + - 72 * + - ( CAST( + - 1 AS DECIMAL ) ) WHEN 44 THEN NULL END, - 88 ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9119
SELECT ALL - - CAST ( + 83 AS REAL ) + + - 58 + + NULLIF ( + - 2, + 93 * - 91 + - MAX ( 23 ) + - 36 + 91 * - 79 ) * - COALESCE ( - + CASE - + 27 WHEN - 17 + + 84 / + - 78 THEN + - 72 * + - ( CAST ( + - 1 AS REAL ) ) WHEN 44 THEN NULL END, - 88 ) * CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT - - 50, - 30 AS col2
----
50
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-9121
SELECT 98 + MAX( 6 ) AS col2
----
104

skipif mysql # not compatible
query I rowsort label-9121
SELECT 98 + MAX ( 6 ) AS col2
----
104

query I rowsort
SELECT 42 * - - 0 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9123
SELECT - - NULLIF ( - + 31, + NULLIF ( - 76, + 88 * 55 * + 42 + 56 + 46 + + ( + CAST( NULL AS SIGNED ) ) + + 73 + - MAX( - COALESCE ( + + 3, - 93 ) ) ) + - 58 + - + 45 )
----
-31

skipif mysql # not compatible
query I rowsort label-9123
SELECT - - NULLIF ( - + 31, + NULLIF ( - 76, + 88 * 55 * + 42 + 56 + 46 + + ( + CAST ( NULL AS INTEGER ) ) + + 73 + - MAX ( - COALESCE ( + + 3, - 93 ) ) ) + - 58 + - + 45 )
----
-31

query I rowsort
SELECT - 15 + 8 AS col0
----
-7

query II rowsort
SELECT 54 AS col1, CASE WHEN NOT NULL IS NULL THEN ( + 26 ) END
----
54
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9126
SELECT DISTINCT CAST( + + 77 AS SIGNED )
----
77

skipif mysql # not compatible
query I rowsort label-9126
SELECT DISTINCT CAST ( + + 77 AS INTEGER )
----
77

query I rowsort
SELECT ALL - + ( 71 ) + 38 - - + CASE + 87 WHEN - 4 + + + 42 + 25 * + + 77 + + 71 THEN 82 ELSE NULL END * 58 * ( - + 73 )
----
NULL

query I rowsort
SELECT 21 - - 69 + 85
----
175

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9129
SELECT + + 59 DIV + + 34 - 35 + COUNT( * )
----
-33

skipif mysql # not compatible
query I rowsort label-9129
SELECT + + 59 / + + 34 - 35 + COUNT ( * )
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-9130
SELECT ALL - + COUNT( + - 25 )
----
-1

skipif mysql # not compatible
query I rowsort label-9130
SELECT ALL - + COUNT ( + - 25 )
----
-1

query II rowsort
SELECT + 87 AS col0, + 65 - 81
----
87
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-9132
SELECT ALL - NULLIF ( + - 72, + COALESCE ( - 9, + + 66 + 19 + 76 * - COUNT( * ) / - COUNT( * ) ) * - COALESCE ( - 28, - COUNT( * ), 62 ) )
----
72

skipif mysql # not compatible
query I rowsort label-9132
SELECT ALL - NULLIF ( + - 72, + COALESCE ( - 9, + + 66 + 19 + 76 * - COUNT ( * ) / - COUNT ( * ) ) * - COALESCE ( - 28, - COUNT ( * ), 62 ) )
----
72

query I rowsort
SELECT 75 * + 51 AS col0
----
3825

query I rowsort
SELECT ALL - ( - 77 ) AS col1
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9135
SELECT - 3 * - + COUNT( * ) + + 82 DIV + 24
----
6

skipif mysql # not compatible
query I rowsort label-9135
SELECT - 3 * - + COUNT ( * ) + + 82 / + 24
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-9136
SELECT 80 DIV 99 + 95
----
95

skipif mysql # not compatible
query I rowsort label-9136
SELECT 80 / 99 + 95
----
95

query I rowsort
SELECT 65 * 51
----
3315

query II rowsort
SELECT 52 AS col1, + 45
----
52
45

query I rowsort
SELECT 74 * + 32
----
2368

onlyif mysql # aggregate syntax: 
query II rowsort label-9140
SELECT ALL - 45, + 42 + + COUNT( * ) AS col1
----
-45
43

skipif mysql # not compatible
query II rowsort label-9140
SELECT ALL - 45, + 42 + + COUNT ( * ) AS col1
----
-45
43

query II rowsort
SELECT 31, 82 * + 83 AS col2
----
31
6806

query I rowsort
SELECT DISTINCT - 62 - + 14 AS col0
----
-76

query I rowsort
SELECT ALL - NULLIF ( 65, + 81 )
----
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-9144
SELECT 39 AS col1, COUNT( * )
----
39
1

skipif mysql # not compatible
query II rowsort label-9144
SELECT 39 AS col1, COUNT ( * )
----
39
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9145
SELECT ( + 70 ) * - ( NULLIF ( + - 41, - CASE - + ( + - 50 ) WHEN 56 * MAX( - 8 ) - - 93 THEN - 77 * + - NULLIF ( - 66, - 81 ) * - + 98 WHEN - 87 + - - 83 THEN NULL END + COUNT( * ) ) ) * + - 99 * 67 - 10 + SUM( ALL + 5 ) AS col0
----
-19036715

skipif mysql # not compatible
query I rowsort label-9145
SELECT ( + 70 ) * - ( NULLIF ( + - 41, - CASE - + ( + - 50 ) WHEN 56 * MAX ( - 8 ) - - 93 THEN - 77 * + - NULLIF ( - 66, - 81 ) * - + 98 WHEN - 87 + - - 83 THEN NULL END + COUNT ( * ) ) ) * + - 99 * 67 - 10 + SUM ( ALL + 5 ) AS col0
----
-19036715

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9146
SELECT DISTINCT - NULLIF ( + 16, + 8 + COUNT( * ) + CAST( NULLIF ( + COALESCE ( - + COUNT( * ), - 43, 65, + 4 * + + 42 * 52 - + - MAX( + 49 ) + + + 33 + - - 23 + + + COUNT( * ) + - CASE - CASE 66 WHEN ( - MIN( - 36 ) ) THEN NULL WHEN CASE WHEN - COUNT( * ) NOT BETWEEN - 22 + - 30 AND + 85 THEN 90 ELSE NULL END THEN 85 * + AVG ( - 59 ) WHEN 69 THEN NULL ELSE CAST( NULL AS SIGNED ) * 41 END WHEN 8 * - NULLIF ( 2 * - 32, 99 + 17 ) THEN + 5 * AVG ( 84 * + 40 ) WHEN + CASE - COUNT( * ) WHEN 52 THEN ( 62 ) + + 82 * ( 75 / MIN( ALL - 84 ) ) ELSE COUNT( * ) * 30 + 61 END THEN COUNT( * ) / 38 - + 81 ELSE NULL END * - 2 * + CASE + 38 WHEN - 31 * COUNT( * ) THEN - 46 WHEN 36 * - COUNT( * ) THEN COUNT( * ) END ), 7 ) AS SIGNED ) + COUNT( * ) * + 26 * + 17 )
----
-16

skipif mysql # not compatible
query I rowsort label-9146
SELECT DISTINCT - NULLIF ( + 16, + 8 + COUNT ( * ) + CAST ( NULLIF ( + COALESCE ( - + COUNT ( * ), - 43, 65, + 4 * + + 42 * 52 - + - MAX ( + 49 ) + + + 33 + - - 23 + + + COUNT ( * ) + - CASE - CASE 66 WHEN ( - MIN ( - 36 ) ) THEN NULL WHEN CASE WHEN - COUNT ( * ) NOT BETWEEN - 22 + - 30 AND + 85 THEN 90 ELSE NULL END THEN 85 * + AVG ( - 59 ) WHEN 69 THEN NULL ELSE CAST ( NULL AS INTEGER ) * 41 END WHEN 8 * - NULLIF ( 2 * - 32, 99 + 17 ) THEN + 5 * AVG ( 84 * + 40 ) WHEN + CASE - COUNT ( * ) WHEN 52 THEN ( 62 ) + + 82 * ( 75 / MIN ( ALL - 84 ) ) ELSE COUNT ( * ) * 30 + 61 END THEN COUNT ( * ) / 38 - + 81 ELSE NULL END * - 2 * + CASE + 38 WHEN - 31 * COUNT ( * ) THEN - 46 WHEN 36 * - COUNT ( * ) THEN COUNT ( * ) END ), 7 ) AS INTEGER ) + COUNT ( * ) * + 26 * + 17 )
----
-16

query II rowsort
SELECT ALL - 74 AS col2, 89
----
-74
89

query I rowsort
SELECT DISTINCT 22 * + 90 * + 52 col1
----
102960

query II rowsort
SELECT + 76, + 41 AS col1
----
76
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9150
SELECT DISTINCT - CAST( - - 81 AS SIGNED )
----
-81

skipif mysql # not compatible
query I rowsort label-9150
SELECT DISTINCT - CAST ( - - 81 AS INTEGER )
----
-81

query II rowsort
SELECT 90 + + + ( 44 ) * 25 AS col1, - 0 + - - 21
----
1190
21

query I rowsort
SELECT + 45 * + 2 * 81 + 55
----
7345

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9153
SELECT ALL - 83 * + 37 + + MIN( + - 66 ), - COUNT( * ) DIV + 75 * + + 97 AS col2
----
-3137
0

skipif mysql # not compatible
query II rowsort label-9153
SELECT ALL - 83 * + 37 + + MIN ( + - 66 ), - COUNT ( * ) / + 75 * + + 97 AS col2
----
-3137
0

query I rowsort
SELECT + 6 + 87 + - - 18
----
111

query I rowsort
SELECT DISTINCT 85 + 35 AS col2
----
120

query I rowsort
SELECT ALL 89 + - - 50 AS col2
----
139

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9157
SELECT ALL + SUM( DISTINCT + + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9157
SELECT ALL + SUM ( DISTINCT + + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT - 72 + + 60
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-9159
SELECT MIN( - + 33 ) - - 78 + - 35 * - 10 * 76 AS col1
----
26645

skipif mysql # not compatible
query I rowsort label-9159
SELECT MIN ( - + 33 ) - - 78 + - 35 * - 10 * 76 AS col1
----
26645

onlyif mysql # aggregate syntax: 
query I rowsort label-9160
SELECT ALL - NULLIF ( - 16, + + 95 * + COUNT( * ) ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-9160
SELECT ALL - NULLIF ( - 16, + + 95 * + COUNT ( * ) ) AS col0
----
16

query I rowsort
SELECT + 55 - + 83 * + + NULLIF ( - - 50, + 12 )
----
-4095

query I rowsort
SELECT DISTINCT ( - + 56 ) + + + 77 + + + 74
----
95

onlyif mysql # aggregate syntax: 
query II rowsort label-9163
SELECT - 17 col1, + 35 * + + COUNT( * )
----
-17
35

skipif mysql # not compatible
query II rowsort label-9163
SELECT - 17 col1, + 35 * + + COUNT ( * )
----
-17
35

query I rowsort
SELECT 3 + - ( - 36 ) AS col0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-9165
SELECT ALL - 18 - - - 57 - + COUNT( * ) * - 11 AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-9165
SELECT ALL - 18 - - - 57 - + COUNT ( * ) * - 11 AS col0
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-9166
SELECT DISTINCT + ( ( MIN( - - 17 ) ) ) AS col1
----
17

skipif mysql # not compatible
query I rowsort label-9166
SELECT DISTINCT + ( ( MIN ( - - 17 ) ) ) AS col1
----
17

query I rowsort
SELECT 36 + - 47
----
-11

query I rowsort
SELECT ALL 19 - 73 * - + 89 + - - 7 + + - 82 + 2 * - 93 AS col1
----
6255

onlyif mysql # aggregate syntax: 
query II rowsort label-9169
SELECT - - COUNT( * ) AS col0, + 80
----
1
80

skipif mysql # not compatible
query II rowsort label-9169
SELECT - - COUNT ( * ) AS col0, + 80
----
1
80

query I rowsort
SELECT 49 * - + ( - 6 )
----
294

onlyif mysql # aggregate syntax: 
query I rowsort label-9171
SELECT + MIN( 5 ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-9171
SELECT + MIN ( 5 ) AS col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9172
SELECT 94 + - MAX( 74 ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-9172
SELECT 94 + - MAX ( 74 ) AS col2
----
20

query I rowsort
SELECT COALESCE ( 31, 9 * - 64 ) AS col1
----
31

query I rowsort
SELECT 10 * - 27 * + + 22 * - 23 AS col1
----
136620

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9175
SELECT DISTINCT + 94 * 86 DIV COUNT( * )
----
8084

skipif mysql # not compatible
query I rowsort label-9175
SELECT DISTINCT + 94 * 86 / COUNT ( * )
----
8084

query I rowsort
SELECT - 93 + + + 56 + 92 + 26 AS col1
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9177
SELECT ALL + COUNT( * ) DIV - 87 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9177
SELECT ALL + COUNT ( * ) / - 87 AS col2
----
0

query II rowsort
SELECT DISTINCT + ( - 71 ) AS col1, 72
----
-71
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9179
SELECT + COALESCE ( 62, - MAX( 68 ) ) col1
----
62

skipif mysql # not compatible
query I rowsort label-9179
SELECT + COALESCE ( 62, - MAX ( 68 ) ) col1
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-9180
SELECT ALL + 76 * - 58 col1, - COUNT( * ) * COUNT( * ) + + 76 AS col0
----
-4408
75

skipif mysql # not compatible
query II rowsort label-9180
SELECT ALL + 76 * - 58 col1, - COUNT ( * ) * COUNT ( * ) + + 76 AS col0
----
-4408
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9181
SELECT - ( CAST( NULL AS SIGNED ) ) * + 32 * + 35
----
NULL

skipif mysql # not compatible
query I rowsort label-9181
SELECT - ( CAST ( NULL AS INTEGER ) ) * + 32 * + 35
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9182
SELECT - 79 * 98 / - 47 * 91 + - SUM( - - 52 ) + + 51 / CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9182
SELECT - 79 * 98 / - 47 * 91 + - SUM ( - - 52 ) + + 51 / CAST ( NULL AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT - 34 * + 40 AS col1, 86
----
-1360
86

query I rowsort
SELECT - 39 + 72 * + 50
----
3561

onlyif mysql # aggregate syntax: 
query I rowsort label-9185
SELECT ALL - 93 * + - 20 * + 93 + COUNT( * ) AS col1
----
172981

skipif mysql # not compatible
query I rowsort label-9185
SELECT ALL - 93 * + - 20 * + 93 + COUNT ( * ) AS col1
----
172981

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9186
SELECT + COUNT( * ) + 47 DIV 79 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9186
SELECT + COUNT ( * ) + 47 / 79 AS col1
----
1

query I rowsort
SELECT DISTINCT + 15 + + - 97 + + 17 * - - 31 + - 7
----
438

query I rowsort
SELECT DISTINCT - - 51 + - 81
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9189
SELECT - - CASE 41 WHEN + 0 + + 40 * - 23 + - 23 THEN + + ( - 14 ) WHEN 40 + - + 67 THEN - - 36 ELSE COUNT( DISTINCT - 65 ) DIV ( ( - 57 ) ) * + - 34 * - 23 * - 4 * ( 97 ) END * + + MAX( ALL - - CAST( ( - - 57 ) AS SIGNED ) ) + + - 41 + + 61 - - COUNT( * ) AS col1
----
21

skipif mysql # not compatible
query I rowsort label-9189
SELECT - - CASE 41 WHEN + 0 + + 40 * - 23 + - 23 THEN + + ( - 14 ) WHEN 40 + - + 67 THEN - - 36 ELSE COUNT ( DISTINCT - 65 ) / ( ( - 57 ) ) * + - 34 * - 23 * - 4 * ( 97 ) END * + + MAX ( ALL - - CAST ( ( - - 57 ) AS INTEGER ) ) + + - 41 + + 61 - - COUNT ( * ) AS col1
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-9190
SELECT + - 77 + + 60 + - 98 col0, ( - COUNT( * ) ) + + 91 AS col0
----
-115
90

skipif mysql # not compatible
query II rowsort label-9190
SELECT + - 77 + + 60 + - 98 col0, ( - COUNT ( * ) ) + + 91 AS col0
----
-115
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9191
SELECT ALL + COUNT( ALL - 8 )
----
1

skipif mysql # not compatible
query I rowsort label-9191
SELECT ALL + COUNT ( ALL - 8 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9192
SELECT + + COUNT( * ) + 9 + - 3 AS col2
----
7

skipif mysql # not compatible
query I rowsort label-9192
SELECT + + COUNT ( * ) + 9 + - 3 AS col2
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9193
SELECT + - 27 + 96 + - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9193
SELECT + - 27 + 96 + - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL + 21 - 5 + + - 57 * + - 28 AS col2
----
1612

query I rowsort
SELECT DISTINCT - 88 - + 31 * 81
----
-2599

query I rowsort
SELECT DISTINCT ( + 38 ) AS col1
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9197
SELECT - + CAST( NULL AS SIGNED ) + + 13 + + + SUM( + - 23 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9197
SELECT - + CAST ( NULL AS INTEGER ) + + 13 + + + SUM ( + - 23 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9198
SELECT + + 0 DIV ( + 95 ) + + - 63 + - 57
----
-120

skipif mysql # not compatible
query I rowsort label-9198
SELECT + + 0 / ( + 95 ) + + - 63 + - 57
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-9199
SELECT - - 89 * COUNT( * ) * - - MAX( + 65 ) + + 50 AS col0
----
5835

skipif mysql # not compatible
query I rowsort label-9199
SELECT - - 89 * COUNT ( * ) * - - MAX ( + 65 ) + + 50 AS col0
----
5835

query I rowsort
SELECT + 30 + 12
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-9201
SELECT - COUNT( * ) AS col0, COUNT( * ) * - - 0
----
-1
0

skipif mysql # not compatible
query II rowsort label-9201
SELECT - COUNT ( * ) AS col0, COUNT ( * ) * - - 0
----
-1
0

query I rowsort
SELECT + 53 + - - 84 AS col1
----
137

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9203
SELECT + 30 / + 87 * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9203
SELECT + 30 / + 87 * - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9204
SELECT + COUNT( * ) - + + 72 AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-9204
SELECT + COUNT ( * ) - + + 72 AS col0
----
-71

query I rowsort
SELECT ALL 12 * - 1
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9206
SELECT CAST( - COALESCE ( + + 49, - + 87 ) AS SIGNED ) AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-9206
SELECT CAST ( - COALESCE ( + + 49, - + 87 ) AS INTEGER ) AS col1
----
-49

query I rowsort
SELECT + 52 + - + 21 AS col2
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-9208
SELECT + 70 * COUNT( * ) * 79 col2
----
5530

skipif mysql # not compatible
query I rowsort label-9208
SELECT + 70 * COUNT ( * ) * 79 col2
----
5530

query II rowsort
SELECT ALL + 54 AS col1, - 44
----
54
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-9210
SELECT - 40 * COUNT( * ) AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-9210
SELECT - 40 * COUNT ( * ) AS col1
----
-40

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9211
SELECT - 4 DIV 24 * - + COALESCE ( 44, 62 * - 73 + + CAST( NULL AS SIGNED ), + - 91 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-9211
SELECT - 4 / 24 * - + COALESCE ( 44, 62 * - 73 + + CAST ( NULL AS INTEGER ), + - 91 ) col0
----
0

query I rowsort
SELECT DISTINCT - 40 * 91 + 63 + - - ( - 25 ) + ( + - 20 ) * 34
----
-4282

query I rowsort
SELECT ALL 65 * 76 + + 87 + - 1 * + - 8 * - + 47 + 53 * - + 86 * + 78 * 45 * 51
----
-815922929

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9214
SELECT + + 11 + + 32 + + 60 DIV 34 * - COUNT( * )
----
42

skipif mysql # not compatible
query I rowsort label-9214
SELECT + + 11 + + 32 + + 60 / 34 * - COUNT ( * )
----
42

query I rowsort
SELECT - + 6 * - 39 * 59 AS col0
----
13806

onlyif mysql # aggregate syntax: 
query II rowsort label-9216
SELECT ALL - COALESCE ( - COUNT( * ), 86 * - 79 ) * 6 * + + COUNT( * ) * + CASE COUNT( * ) WHEN 20 THEN - - 94 + - - 50 WHEN - CASE + - 57 WHEN + 54 THEN NULL WHEN + - COUNT( * ) / + 75 + - + 0 + 54 + - 29 THEN + - 91 ELSE NULL END THEN NULL ELSE - - 56 END AS col1, + 92 * + - MAX( ALL - 95 ) * COUNT( * ) * + NULLIF ( 53, - NULLIF ( - 47, 84 + + 84 ) + + 97 ) * + 29
----
336
13433380

skipif mysql # not compatible
query II rowsort label-9216
SELECT ALL - COALESCE ( - COUNT ( * ), 86 * - 79 ) * 6 * + + COUNT ( * ) * + CASE COUNT ( * ) WHEN 20 THEN - - 94 + - - 50 WHEN - CASE + - 57 WHEN + 54 THEN NULL WHEN + - COUNT ( * ) / + 75 + - + 0 + 54 + - 29 THEN + - 91 ELSE NULL END THEN NULL ELSE - - 56 END AS col1, + 92 * + - MAX ( ALL - 95 ) * COUNT ( * ) * + NULLIF ( 53, - NULLIF ( - 47, 84 + + 84 ) + + 97 ) * + 29
----
336
13433380

query I rowsort
SELECT - 24 * - 93
----
2232

onlyif mysql # aggregate syntax: 
query I rowsort label-9218
SELECT ALL 86 * + 31 * + 60 - - - COUNT( * ) col1
----
159959

skipif mysql # not compatible
query I rowsort label-9218
SELECT ALL 86 * + 31 * + 60 - - - COUNT ( * ) col1
----
159959

query I rowsort
SELECT ( + 8 ) * + 14 + - - 37 AS col2
----
149

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9220
SELECT DISTINCT - CASE + + CAST( + 3 AS SIGNED ) WHEN + + COUNT( * ) THEN NULL WHEN + 72 THEN CAST( NULL AS SIGNED ) / + - 73 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9220
SELECT DISTINCT - CASE + + CAST ( + 3 AS INTEGER ) WHEN + + COUNT ( * ) THEN NULL WHEN + 72 THEN CAST ( NULL AS INTEGER ) / + - 73 END
----
NULL

query I rowsort
SELECT DISTINCT ( - CASE + 84 WHEN 65 + + 66 THEN - 95 END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9222
SELECT ALL + + COUNT( * ) * - - 27 - 32 * - MAX( - ( - 89 ) )
----
2875

skipif mysql # not compatible
query I rowsort label-9222
SELECT ALL + + COUNT ( * ) * - - 27 - 32 * - MAX ( - ( - 89 ) )
----
2875

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9223
SELECT - + 21 + + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9223
SELECT - + 21 + + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9224
SELECT ALL + 10 - + 82 DIV + 17 DIV COUNT( * ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-9224
SELECT ALL + 10 - + 82 / + 17 / COUNT ( * ) AS col2
----
6

query I rowsort
SELECT - - 4 * - 97 AS col2
----
-388

onlyif mysql # aggregate syntax: 
query I rowsort label-9226
SELECT - - COUNT( * ) + + 5
----
6

skipif mysql # not compatible
query I rowsort label-9226
SELECT - - COUNT ( * ) + + 5
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9227
SELECT ALL + + 31 * COUNT( * )
----
31

skipif mysql # not compatible
query I rowsort label-9227
SELECT ALL + + 31 * COUNT ( * )
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-9228
SELECT - 93 * 83 * 88 - 52 * + - ( COUNT( * ) ) + + 61 - ( 39 ) * CASE + + 84 WHEN + 87 * 11 THEN + AVG ( DISTINCT - 76 ) * - 7 + - - ( 87 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9228
SELECT - 93 * 83 * 88 - 52 * + - ( COUNT ( * ) ) + + 61 - ( 39 ) * CASE + + 84 WHEN + 87 * 11 THEN + AVG ( DISTINCT - 76 ) * - 7 + - - ( 87 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9229
SELECT + 12 + + COUNT( * ) + - 86 + 79 col1
----
6

skipif mysql # not compatible
query I rowsort label-9229
SELECT + 12 + + COUNT ( * ) + - 86 + 79 col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9230
SELECT DISTINCT COUNT( DISTINCT 14 ) * + 82 AS col2
----
82

skipif mysql # not compatible
query I rowsort label-9230
SELECT DISTINCT COUNT ( DISTINCT 14 ) * + 82 AS col2
----
82

query I rowsort
SELECT ALL + 21 * 9
----
189

query I rowsort
SELECT ALL 71 + - 93 AS col0
----
-22

query I rowsort
SELECT 3 + - - 47 AS col1
----
50

onlyif mysql # DIV for integer division: 
query II rowsort label-9234
SELECT ALL 64 DIV 82 AS col0, 33 AS col1
----
0
33

skipif mysql # not compatible
query II rowsort label-9234
SELECT ALL 64 / 82 AS col0, 33 AS col1
----
0
33

onlyif mysql # aggregate syntax: 
query I rowsort label-9235
SELECT 80 + COUNT( - - 44 ) AS col0
----
81

skipif mysql # not compatible
query I rowsort label-9235
SELECT 80 + COUNT ( - - 44 ) AS col0
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9236
SELECT 90 + - + 16 * MIN( 46 ) DIV + + 97
----
83

skipif mysql # not compatible
query I rowsort label-9236
SELECT 90 + - + 16 * MIN ( 46 ) / + + 97
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9237
SELECT 93 * - CAST( - 9 AS SIGNED ) * - 17 AS col0
----
-14229

skipif mysql # not compatible
query I rowsort label-9237
SELECT 93 * - CAST ( - 9 AS INTEGER ) * - 17 AS col0
----
-14229

onlyif mysql # DIV for integer division: 
query I rowsort label-9238
SELECT 35 DIV 64 * + + 3 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9238
SELECT 35 / 64 * + + 3 AS col2
----
0

query I rowsort
SELECT DISTINCT 63 * ( + + 71 )
----
4473

query II rowsort
SELECT DISTINCT + 4 + - 57 * 98 * + + 66 AS col1, 9 AS col2
----
-368672
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9241
SELECT 77 / - - 61 + - 39 - + + COUNT( * ) * - + 15 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9241
SELECT 77 / - - 61 + - 39 - + + COUNT ( * ) * - + 15 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT ALL 10 + - 93 * + 63 * - 92, + 77 + 47 - - + 39 AS col2
----
539038
163

query I rowsort
SELECT ( + 45 ) + - 5 + - 84 + + + 25 + - 23
----
-42

query I rowsort
SELECT ALL 92 + + 15 AS col0
----
107

onlyif mysql # aggregate syntax: 
query II rowsort label-9245
SELECT DISTINCT 51 * - ( + COUNT( * ) ) * + 96 AS col0, COUNT( * )
----
-4896
1

skipif mysql # not compatible
query II rowsort label-9245
SELECT DISTINCT 51 * - ( + COUNT ( * ) ) * + 96 AS col0, COUNT ( * )
----
-4896
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9246
SELECT + COUNT( * ) * + - 73 + - COUNT( * )
----
-74

skipif mysql # not compatible
query I rowsort label-9246
SELECT + COUNT ( * ) * + - 73 + - COUNT ( * )
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-9247
SELECT + ( - 38 ) * MIN( ALL + 24 )
----
-912

skipif mysql # not compatible
query I rowsort label-9247
SELECT + ( - 38 ) * MIN ( ALL + 24 )
----
-912

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9248
SELECT ALL 78 - 37 - - 19 * 25 + - + ( + - CAST( - + CAST( NULL AS SIGNED ) AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9248
SELECT ALL 78 - 37 - - 19 * 25 + - + ( + - CAST ( - + CAST ( NULL AS INTEGER ) AS REAL ) )
----
NULL

query I rowsort
SELECT 63 + + + 16 AS col0
----
79

query I rowsort
SELECT - ( - - 32 ) * + 85
----
-2720

query I rowsort
SELECT + COALESCE ( + 53, + 7 )
----
53

query I rowsort
SELECT ALL - + ( - + 79 )
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9253
SELECT ALL - + CAST( - MIN( DISTINCT + 57 ) AS SIGNED ) AS col2
----
57

skipif mysql # not compatible
query I rowsort label-9253
SELECT ALL - + CAST ( - MIN ( DISTINCT + 57 ) AS INTEGER ) AS col2
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-9254
SELECT 80 DIV - 30 col0
----
-2

skipif mysql # not compatible
query I rowsort label-9254
SELECT 80 / - 30 col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9255
SELECT - COUNT( ALL + 67 ) * + - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-9255
SELECT - COUNT ( ALL + 67 ) * + - COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9256
SELECT ALL - + 66 * - - 29 * - + COUNT( * ) * + 80 * + - NULLIF ( - 51, + - 12 * - COUNT( * ) ) AS col0
----
7809120

skipif mysql # not compatible
query I rowsort label-9256
SELECT ALL - + 66 * - - 29 * - + COUNT ( * ) * + 80 * + - NULLIF ( - 51, + - 12 * - COUNT ( * ) ) AS col0
----
7809120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9257
SELECT CASE WHEN + 59 >= - + 68 THEN - 84 * 87 - + - CAST( + 94 AS SIGNED ) + - + SUM( DISTINCT - + 11 ) ELSE NULL END DIV + 60
----
-120

skipif mysql # not compatible
query I rowsort label-9257
SELECT CASE WHEN + 59 >= - + 68 THEN - 84 * 87 - + - CAST ( + 94 AS INTEGER ) + - + SUM ( DISTINCT - + 11 ) ELSE NULL END / + 60
----
-120

onlyif mysql # DIV for integer division: 
query II rowsort label-9258
SELECT 60 DIV - - 56 AS col2, + 46 DIV - 19 AS col0
----
1
-2

skipif mysql # not compatible
query II rowsort label-9258
SELECT 60 / - - 56 AS col2, + 46 / - 19 AS col0
----
1
-2

query I rowsort
SELECT ALL 65 + + ( 84 ) + - - 66 * + 59
----
4043

query I rowsort
SELECT DISTINCT 48 + - + 2 + + - 33 + + + 11 * + 50
----
563

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9261
SELECT ALL + SUM( 87 ) + - 14 DIV 42 AS col2
----
87

skipif mysql # not compatible
query I rowsort label-9261
SELECT ALL + SUM ( 87 ) + - 14 / 42 AS col2
----
87

query I rowsort
SELECT DISTINCT - 35 + 94 + - 26
----
33

query I rowsort
SELECT ALL - 90 + - ( 61 ) * - 75
----
4485

query I rowsort
SELECT 84 + 69 AS col0
----
153

query I rowsort
SELECT 93 + 73 AS col1
----
166

query I rowsort
SELECT 38 * + CASE - - 75 WHEN + 79 THEN - 7 * + + ( ( - 33 ) ) ELSE - 71 - - + 15 - - - 97 END * - + 88
----
511632

onlyif mysql # aggregate syntax: 
query I rowsort label-9267
SELECT DISTINCT SUM( DISTINCT - 81 ) AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-9267
SELECT DISTINCT SUM ( DISTINCT - 81 ) AS col0
----
-81

query I rowsort
SELECT ALL - 45 * - + 11 AS col2
----
495

onlyif mysql # aggregate syntax: 
query I rowsort label-9269
SELECT DISTINCT - 72 + - 88 - - - COUNT( * ) - + - ( - 50 ) AS col2
----
-211

skipif mysql # not compatible
query I rowsort label-9269
SELECT DISTINCT - 72 + - 88 - - - COUNT ( * ) - + - ( - 50 ) AS col2
----
-211

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9270
SELECT 91 DIV + + 15 + + 81 + - MAX( DISTINCT + COALESCE ( - - 13, - - 65 ) )
----
74

skipif mysql # not compatible
query I rowsort label-9270
SELECT 91 / + + 15 + + 81 + - MAX ( DISTINCT + COALESCE ( - - 13, - - 65 ) )
----
74

query I rowsort
SELECT DISTINCT - ( - - NULLIF ( - - 48, + + AVG ( ALL - 6 ) ) )
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9272
SELECT ALL - CAST( - MAX( ALL - 94 ) AS SIGNED ) AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-9272
SELECT ALL - CAST ( - MAX ( ALL - 94 ) AS INTEGER ) AS col1
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-9273
SELECT DISTINCT - MAX( 63 ) AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-9273
SELECT DISTINCT - MAX ( 63 ) AS col1
----
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9274
SELECT 91 DIV COUNT( * ) + + - 70 - - 13 AS col0
----
34

skipif mysql # not compatible
query I rowsort label-9274
SELECT 91 / COUNT ( * ) + + - 70 - - 13 AS col0
----
34

query I rowsort
SELECT 53 * - 47 AS col1
----
-2491

query I rowsort
SELECT DISTINCT + 84 - - + 47 * + ( 57 )
----
2763

onlyif mysql # DIV for integer division: 
query I rowsort label-9277
SELECT + 50 DIV - 1
----
-50

skipif mysql # not compatible
query I rowsort label-9277
SELECT + 50 / - 1
----
-50

query I rowsort
SELECT ALL + 34 * 18 * + ( + NULLIF ( - 3, + 42 ) ) AS col2
----
-1836

onlyif mysql # aggregate syntax: 
query I rowsort label-9279
SELECT - CASE - COUNT( * ) WHEN + 37 - COUNT( * ) / - - 86 THEN NULL ELSE + 57 + - - NULLIF ( - COALESCE ( - 27, - NULLIF ( - 98, 47 * + - 16 / SUM( - 47 ) + - 93 / + COUNT( 89 ) * - 19 + + - 25 / - 30 ) ), COUNT( * ) / + NULLIF ( + - 92, + - CASE + 12 WHEN + ( + ( - COUNT( * ) ) ) + - + 99 THEN NULL WHEN 62 - COUNT( * ) THEN ( 64 ) * 51 END - - 16 ) * + 45 + - 45 + 57 ) END
----
-84

skipif mysql # not compatible
query I rowsort label-9279
SELECT - CASE - COUNT ( * ) WHEN + 37 - COUNT ( * ) / - - 86 THEN NULL ELSE + 57 + - - NULLIF ( - COALESCE ( - 27, - NULLIF ( - 98, 47 * + - 16 / SUM ( - 47 ) + - 93 / + COUNT ( 89 ) * - 19 + + - 25 / - 30 ) ), COUNT ( * ) / + NULLIF ( + - 92, + - CASE + 12 WHEN + ( + ( - COUNT ( * ) ) ) + - + 99 THEN NULL WHEN 62 - COUNT ( * ) THEN ( 64 ) * 51 END - - 16 ) * + 45 + - 45 + 57 ) END
----
-84

query I rowsort
SELECT DISTINCT + COALESCE ( + ( + - 37 ), + 23, + + 7 + + 17 ) * 87
----
-3219

onlyif mysql # aggregate syntax: 
query I rowsort label-9281
SELECT - 30 * ( - SUM( DISTINCT - 25 ) )
----
-750

skipif mysql # not compatible
query I rowsort label-9281
SELECT - 30 * ( - SUM ( DISTINCT - 25 ) )
----
-750

query I rowsort
SELECT - 0 * 73 + 84
----
84

query I rowsort
SELECT ALL 69 * - + 2
----
-138

query I rowsort
SELECT - 22 * + 65 + - - 38 - - 67 AS col2
----
-1325

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9285
SELECT + 43 * + 43 - - - 24 - - 3 * + CAST( NULL AS SIGNED ) * - ( + - 97 ) * - 70 + 46 + CAST( 35 AS SIGNED ) - + 64 * + + 22 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9285
SELECT + 43 * + 43 - - - 24 - - 3 * + CAST ( NULL AS INTEGER ) * - ( + - 97 ) * - 70 + 46 + CAST ( 35 AS INTEGER ) - + 64 * + + 22 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9286
SELECT COUNT( * ) * + 22 * - + 11
----
-242

skipif mysql # not compatible
query I rowsort label-9286
SELECT COUNT ( * ) * + 22 * - + 11
----
-242

query I rowsort
SELECT - 30 * - + 88 * + 67 + + + 99 + + 52
----
177031

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9288
SELECT + NULLIF ( + + 9, COUNT( - + ( + + 83 ) ) * - ( + - CAST( NULL AS SIGNED ) ) + - 67 )
----
9

skipif mysql # not compatible
query I rowsort label-9288
SELECT + NULLIF ( + + 9, COUNT ( - + ( + + 83 ) ) * - ( + - CAST ( NULL AS INTEGER ) ) + - 67 )
----
9

query I rowsort
SELECT ALL - 58 + - 7
----
-65

query I rowsort
SELECT ALL + COALESCE ( + 65, 22, 26 ) AS col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-9291
SELECT + MAX( - - 70 ) + 29 AS col2
----
99

skipif mysql # not compatible
query I rowsort label-9291
SELECT + MAX ( - - 70 ) + 29 AS col2
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9292
SELECT ALL - ( - 61 ) * + + 32 + + 85 - + - 4 * - 56 + 0 + 86 * + + COUNT( * ) + - 17 + + 75 + COALESCE ( + 57, 57 * - 37 ) * + - COUNT( * ) * CAST( NULL AS SIGNED ) * - 32
----
NULL

skipif mysql # not compatible
query I rowsort label-9292
SELECT ALL - ( - 61 ) * + + 32 + + 85 - + - 4 * - 56 + 0 + 86 * + + COUNT ( * ) + - 17 + + 75 + COALESCE ( + 57, 57 * - 37 ) * + - COUNT ( * ) * CAST ( NULL AS INTEGER ) * - 32
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9293
SELECT DISTINCT 0 + + 87 * + + CAST( - 59 AS SIGNED ) * 82 + + 12 AS col0, + COUNT( * ) - - - 71 DIV 74 * 47
----
-420894
1

skipif mysql # not compatible
query II rowsort label-9293
SELECT DISTINCT 0 + + 87 * + + CAST ( - 59 AS INTEGER ) * 82 + + 12 AS col0, + COUNT ( * ) - - - 71 / 74 * 47
----
-420894
1

query II rowsort
SELECT - 91, 95 * 66 AS col0
----
-91
6270

query I rowsort
SELECT - 29 + + - 87
----
-116

query I rowsort
SELECT ALL 35 + - 5
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9297
SELECT + COUNT( * ) * 59 * 59 AS col2
----
3481

skipif mysql # not compatible
query I rowsort label-9297
SELECT + COUNT ( * ) * 59 * 59 AS col2
----
3481

query I rowsort
SELECT - 47 + 70 * - + 50
----
-3547

query I rowsort
SELECT - 23 + + 59
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9300
SELECT ALL - 86 + 67 * COUNT( * ) - 12 AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-9300
SELECT ALL - 86 + 67 * COUNT ( * ) - 12 AS col2
----
-31

query I rowsort
SELECT + 11 * + - ( 56 ) AS col0
----
-616

onlyif mysql # aggregate syntax: 
query I rowsort label-9302
SELECT ALL COUNT( - 83 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9302
SELECT ALL COUNT ( - 83 ) AS col1
----
1

query I rowsort
SELECT ALL 93 * - - 76 * 20 AS col2
----
141360

onlyif mysql # aggregate syntax: 
query II rowsort label-9304
SELECT 17 AS col1, SUM( - 18 ) * 93 + 44 * - 27 * + + 63 AS col2
----
17
-76518

skipif mysql # not compatible
query II rowsort label-9304
SELECT 17 AS col1, SUM ( - 18 ) * 93 + 44 * - 27 * + + 63 AS col2
----
17
-76518

onlyif mysql # aggregate syntax: 
query I rowsort label-9305
SELECT ALL SUM( ALL - ( - 67 ) ) AS col1
----
67

skipif mysql # not compatible
query I rowsort label-9305
SELECT ALL SUM ( ALL - ( - 67 ) ) AS col1
----
67

query I rowsort
SELECT + 51 * 80
----
4080

onlyif mysql # aggregate syntax: 
query I rowsort label-9307
SELECT - 57 * - - CASE - 81 WHEN + 3 * + 69 THEN - 4 WHEN - 94 THEN COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9307
SELECT - 57 * - - CASE - 81 WHEN + 3 * + 69 THEN - 4 WHEN - 94 THEN COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-9308
SELECT 98 AS col1, 12 + + 74 * + COUNT( * ) AS col0, 66 * + 49
----
98
86
3234

skipif mysql # not compatible
query III rowsort label-9308
SELECT 98 AS col1, 12 + + 74 * + COUNT ( * ) AS col0, 66 * + 49
----
98
86
3234

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9309
SELECT - 9 + + CAST( NULL AS SIGNED ) * + 65 + + - 28 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9309
SELECT - 9 + + CAST ( NULL AS INTEGER ) * + 65 + + - 28 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9310
SELECT ALL - 23 * - CASE + - 6 WHEN 92 + + + NULLIF ( - COUNT( * ), 56 / - + 38 ) THEN + - 54 WHEN - 93 * + - 25 * + 85 - - 24 + - 74 THEN NULL END * ( + ( 77 ) ) * + + CAST( - 41 AS SIGNED ) - - 80 * + - 42
----
NULL

skipif mysql # not compatible
query I rowsort label-9310
SELECT ALL - 23 * - CASE + - 6 WHEN 92 + + + NULLIF ( - COUNT ( * ), 56 / - + 38 ) THEN + - 54 WHEN - 93 * + - 25 * + 85 - - 24 + - 74 THEN NULL END * ( + ( 77 ) ) * + + CAST ( - 41 AS INTEGER ) - - 80 * + - 42
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9311
SELECT + CAST( NULL AS SIGNED ) * - + 65 / - 12 + + 8 / - COALESCE ( 51, + 92 + + 55 * + 72 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9311
SELECT + CAST ( NULL AS INTEGER ) * - + 65 / - 12 + + 8 / - COALESCE ( 51, + 92 + + 55 * + 72 ) AS col1
----
NULL

query II rowsort
SELECT + 70 * - 39 + + - 97 - - 66 AS col1, 59 AS col0
----
-2761
59

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9313
SELECT ALL - + 0 * 68 + - + 27 * COUNT( * ) * + + CAST( NULL AS DECIMAL ) + + + 35 * + + 10
----
NULL

skipif mysql # not compatible
query I rowsort label-9313
SELECT ALL - + 0 * 68 + - + 27 * COUNT ( * ) * + + CAST ( NULL AS REAL ) + + + 35 * + + 10
----
NULL

query I rowsort
SELECT - ( - 92 ) + - 39 AS col0
----
53

query I rowsort
SELECT - - 22 * - - 83 + - + 84 AS col0
----
1742

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9316
SELECT + 83 * + COALESCE ( - 94, 36 * - + 21 + CAST( NULL AS SIGNED ) * 19 + + COUNT( * ) - + 55 ) + - - COUNT( * ) + - + 80
----
-7881

skipif mysql # not compatible
query I rowsort label-9316
SELECT + 83 * + COALESCE ( - 94, 36 * - + 21 + CAST ( NULL AS INTEGER ) * 19 + + COUNT ( * ) - + 55 ) + - - COUNT ( * ) + - + 80
----
-7881

query I rowsort
SELECT - ( - + 15 ) AS col1
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-9318
SELECT ALL + 78 DIV - 55
----
-1

skipif mysql # not compatible
query I rowsort label-9318
SELECT ALL + 78 / - 55
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9319
SELECT - - 73 DIV - 21 * + + COUNT( * )
----
-3

skipif mysql # not compatible
query I rowsort label-9319
SELECT - - 73 / - 21 * + + COUNT ( * )
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-9320
SELECT DISTINCT + - 29 col1, COALESCE ( + 81, - ( 93 ) * 38 - COUNT( * ) ) col0
----
-29
81

skipif mysql # not compatible
query II rowsort label-9320
SELECT DISTINCT + - 29 col1, COALESCE ( + 81, - ( 93 ) * 38 - COUNT ( * ) ) col0
----
-29
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9321
SELECT ALL - 69 * - - 47 * + 13 + - ( + MIN( + - 59 ) ) + + 46 + - 43 AS col1
----
-42097

skipif mysql # not compatible
query I rowsort label-9321
SELECT ALL - 69 * - - 47 * + 13 + - ( + MIN ( + - 59 ) ) + + 46 + - 43 AS col1
----
-42097

query II rowsort
SELECT + 93, + ( - 50 ) + 55 AS col2
----
93
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9323
SELECT ALL - CAST( - 12 AS SIGNED ) * 96 * - 88 + + - MIN( 64 ) + + 62 * + 57 AS col2
----
-97906

skipif mysql # not compatible
query I rowsort label-9323
SELECT ALL - CAST ( - 12 AS INTEGER ) * 96 * - 88 + + - MIN ( 64 ) + + 62 * + 57 AS col2
----
-97906

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9324
SELECT ALL + COUNT( * ) / CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9324
SELECT ALL + COUNT ( * ) / CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9325
SELECT ALL + MAX( DISTINCT COALESCE ( + 26, + + 19 ) )
----
26

skipif mysql # not compatible
query I rowsort label-9325
SELECT ALL + MAX ( DISTINCT COALESCE ( + 26, + + 19 ) )
----
26

query I rowsort
SELECT + 0 * - 25 * 72 AS col1
----
0

query I rowsort
SELECT - 65 - + 56 AS col2
----
-121

onlyif mysql # aggregate syntax: 
query II rowsort label-9328
SELECT - COUNT( - 57 ) AS col1, + 13
----
-1
13

skipif mysql # not compatible
query II rowsort label-9328
SELECT - COUNT ( - 57 ) AS col1, + 13
----
-1
13

onlyif mysql # aggregate syntax: 
query I rowsort label-9329
SELECT COUNT( 83 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9329
SELECT COUNT ( 83 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9330
SELECT DISTINCT - 72 - - 55 + ( - 9 ) * + - MIN( 63 ) * 5 + + SUM( DISTINCT 20 ) * - 65 * - + 91 - - 99
----
121217

skipif mysql # not compatible
query I rowsort label-9330
SELECT DISTINCT - 72 - - 55 + ( - 9 ) * + - MIN ( 63 ) * 5 + + SUM ( DISTINCT 20 ) * - 65 * - + 91 - - 99
----
121217

onlyif mysql # aggregate syntax: 
query I rowsort label-9331
SELECT ALL COUNT( ALL - 51 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9331
SELECT ALL COUNT ( ALL - 51 ) AS col2
----
1

query II rowsort
SELECT + 87 * - 40 col2, - NULLIF ( 41, + ( + 62 ) ) AS col1
----
-3480
-41

query I rowsort
SELECT ALL COALESCE ( - 77, + 19 ) AS col0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9334
SELECT DISTINCT + 0 * SUM( ALL + + 46 ) * + 35 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9334
SELECT DISTINCT + 0 * SUM ( ALL + + 46 ) * + 35 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9335
SELECT + 52 + - COUNT( * ) * + - 36 AS col0
----
88

skipif mysql # not compatible
query I rowsort label-9335
SELECT + 52 + - COUNT ( * ) * + - 36 AS col0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9336
SELECT + MIN( DISTINCT + - 30 ) * - + 44
----
1320

skipif mysql # not compatible
query I rowsort label-9336
SELECT + MIN ( DISTINCT + - 30 ) * - + 44
----
1320

query I rowsort
SELECT + 28 + - 97 + - 26 * 26 AS col2
----
-745

query I rowsort
SELECT - ( + + 7 ) col1
----
-7

onlyif mysql # DIV for integer division: 
query II rowsort label-9339
SELECT - 51 + - + 68 AS col1, 51 DIV - 82
----
-119
0

skipif mysql # not compatible
query II rowsort label-9339
SELECT - 51 + - + 68 AS col1, 51 / - 82
----
-119
0

query I rowsort
SELECT DISTINCT ( + 28 ) * + NULLIF ( - 64, - 1 + - 94 + - 41 * 57 ) + + + 6 AS col1
----
-1786

query I rowsort
SELECT - CASE - - 44 WHEN - + 18 THEN - - ( + CASE - 73 WHEN + 83 + + + ( - + 60 ) * 55 THEN 9 END ) WHEN 2 THEN NULL END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9342
SELECT DISTINCT 6 * + + 37 + - 29 * MIN( - + 58 ) + 13 col1
----
1917

skipif mysql # not compatible
query I rowsort label-9342
SELECT DISTINCT 6 * + + 37 + - 29 * MIN ( - + 58 ) + 13 col1
----
1917

query I rowsort
SELECT ALL + + NULLIF ( + - 33, - + 69 ) AS col0
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-9344
SELECT ALL + + MIN( ALL + - 32 ) AS col2, + 64
----
-32
64

skipif mysql # not compatible
query II rowsort label-9344
SELECT ALL + + MIN ( ALL + - 32 ) AS col2, + 64
----
-32
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9345
SELECT ALL 47 DIV 5 + MAX( 2 ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-9345
SELECT ALL 47 / 5 + MAX ( 2 ) AS col1
----
11

query I rowsort
SELECT - 91 * + 3
----
-273

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9347
SELECT ALL ( 1 ) DIV + 16 + - 71 * + - 12 + + 14 * + NULLIF ( - 9, - 89 + + 85 + 62 * + - 49 ) - - COUNT( * ) * - 99 * - COUNT( * ) * COALESCE ( + + COALESCE ( 48, - 65 + - 72, 4 * 87 ), - 26 + 23 + 12 - - 15 )
----
5478

skipif mysql # not compatible
query I rowsort label-9347
SELECT ALL ( 1 ) / + 16 + - 71 * + - 12 + + 14 * + NULLIF ( - 9, - 89 + + 85 + 62 * + - 49 ) - - COUNT ( * ) * - 99 * - COUNT ( * ) * COALESCE ( + + COALESCE ( 48, - 65 + - 72, 4 * 87 ), - 26 + 23 + 12 - - 15 )
----
5478

onlyif mysql # aggregate syntax: 
query I rowsort label-9348
SELECT + + COUNT( DISTINCT ( - 36 ) )
----
1

skipif mysql # not compatible
query I rowsort label-9348
SELECT + + COUNT ( DISTINCT ( - 36 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9349
SELECT ALL + - COUNT( ALL + 25 ) + + 2 * - 84
----
-169

skipif mysql # not compatible
query I rowsort label-9349
SELECT ALL + - COUNT ( ALL + 25 ) + + 2 * - 84
----
-169

onlyif mysql # aggregate syntax: 
query I rowsort label-9350
SELECT - SUM( DISTINCT - 15 ) * 66 - + 98 - 51 * - 45
----
3187

skipif mysql # not compatible
query I rowsort label-9350
SELECT - SUM ( DISTINCT - 15 ) * 66 - + 98 - 51 * - 45
----
3187

query I rowsort
SELECT + 37 + - 72 * - 32
----
2341

onlyif mysql # aggregate syntax: 
query I rowsort label-9352
SELECT ALL - MIN( ALL - 83 ) AS col1
----
83

skipif mysql # not compatible
query I rowsort label-9352
SELECT ALL - MIN ( ALL - 83 ) AS col1
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9353
SELECT ALL - CAST( - + 52 AS SIGNED )
----
52

skipif mysql # not compatible
query I rowsort label-9353
SELECT ALL - CAST ( - + 52 AS INTEGER )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9354
SELECT + 99 * + - 11 + + CASE + 36 WHEN - 99 * + CASE 54 WHEN - 65 THEN - 60 ELSE NULL END THEN NULL ELSE COUNT( 79 ) END - - 79 * + + 53 AS col2
----
3099

skipif mysql # not compatible
query I rowsort label-9354
SELECT + 99 * + - 11 + + CASE + 36 WHEN - 99 * + CASE 54 WHEN - 65 THEN - 60 ELSE NULL END THEN NULL ELSE COUNT ( 79 ) END - - 79 * + + 53 AS col2
----
3099

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9355
SELECT DISTINCT + COUNT( * ) DIV - COALESCE ( + + 8, + 28 + - 62 + 35 + - 3 DIV - 11, - - 57 ) * - COUNT( * ) * + ( - + 62 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9355
SELECT DISTINCT + COUNT ( * ) / - COALESCE ( + + 8, + 28 + - 62 + 35 + - 3 / - 11, - - 57 ) * - COUNT ( * ) * + ( - + 62 ) AS col0
----
0

query I rowsort
SELECT ALL - 58 - - 7
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9357
SELECT 22 * - 1 + - SUM( 38 )
----
-60

skipif mysql # not compatible
query I rowsort label-9357
SELECT 22 * - 1 + - SUM ( 38 )
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-9358
SELECT COUNT( * ) * + + 69 * + 52 * COUNT( * )
----
3588

skipif mysql # not compatible
query I rowsort label-9358
SELECT COUNT ( * ) * + + 69 * + 52 * COUNT ( * )
----
3588

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9359
SELECT ALL + COUNT( * ) DIV 83
----
0

skipif mysql # not compatible
query I rowsort label-9359
SELECT ALL + COUNT ( * ) / 83
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9360
SELECT COUNT( * ) + + ( + 15 ) * + 18 * 55
----
14851

skipif mysql # not compatible
query I rowsort label-9360
SELECT COUNT ( * ) + + ( + 15 ) * + 18 * 55
----
14851

query I rowsort
SELECT ALL 99 * + - 46 AS col0
----
-4554

onlyif mysql # DIV for integer division: 
query I rowsort label-9362
SELECT DISTINCT - 13 DIV + - 73 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9362
SELECT DISTINCT - 13 / + - 73 AS col2
----
0

query II rowsort
SELECT ALL 54 AS col2, 11 col0
----
54
11

query II rowsort
SELECT 56 AS col2, 28 + 91 col2
----
56
119

query I rowsort
SELECT 38 + - 56 AS col1
----
-18

query I rowsort
SELECT DISTINCT + 41 - + 44 AS col2
----
-3

query II rowsort
SELECT 37 AS col2, - 55 AS col2
----
37
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-9368
SELECT COUNT( * ) * + 94 AS col2
----
94

skipif mysql # not compatible
query I rowsort label-9368
SELECT COUNT ( * ) * + 94 AS col2
----
94

query I rowsort
SELECT 63 + 36
----
99

query II rowsort
SELECT ALL 74, - 36 AS col2
----
74
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-9371
SELECT ALL + 24 * - MAX( DISTINCT - + 59 )
----
1416

skipif mysql # not compatible
query I rowsort label-9371
SELECT ALL + 24 * - MAX ( DISTINCT - + 59 )
----
1416

query II rowsort
SELECT DISTINCT - ( + - 98 ) + - 55 col1, 83 * - - 44 + + NULLIF ( 20, - 76 * - 28 )
----
43
3672

query II rowsort
SELECT ALL + 75 AS col1, 95
----
75
95

query I rowsort
SELECT ALL + 3 + + - 74 + - 12
----
-83

query I rowsort
SELECT + ( - 11 ) - + + 45 * - 16 * ( - 58 ) AS col1
----
-41771

query I rowsort
SELECT - ( 47 ) AS col1
----
-47

query I rowsort
SELECT - 92 + - - 77
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-9378
SELECT COUNT( * ) * - - 60 AS col2
----
60

skipif mysql # not compatible
query I rowsort label-9378
SELECT COUNT ( * ) * - - 60 AS col2
----
60

query I rowsort
SELECT ALL ( - - 98 ) * + + 77 AS col1
----
7546

onlyif mysql # aggregate syntax: 
query I rowsort label-9380
SELECT - ( + COUNT( * ) ) * + MAX( + 40 ) AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-9380
SELECT - ( + COUNT ( * ) ) * + MAX ( + 40 ) AS col2
----
-40

onlyif mysql # DIV for integer division: 
query II rowsort label-9381
SELECT + 21 AS col1, - 11 DIV - + 53 col2
----
21
0

skipif mysql # not compatible
query II rowsort label-9381
SELECT + 21 AS col1, - 11 / - + 53 col2
----
21
0

query I rowsort
SELECT 32 * - + 77 * 82 * + + 31 col0
----
-6263488

query I rowsort
SELECT ALL - NULLIF ( 62, + ( - 98 ) ) + 13
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9384
SELECT ALL + 51 * - CASE - 47 WHEN 22 + - + 82 THEN + 79 + + 17 WHEN - 39 / + - 85 THEN NULL WHEN + 29 / + 93 - + 46 THEN + NULLIF ( - 56, + 1 / 55 * + - 4 / + 0 ) * COUNT( - 16 ) * + 79 / + 87 + - SUM( DISTINCT + 11 ) + + CAST( - - 82 AS SIGNED ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9384
SELECT ALL + 51 * - CASE - 47 WHEN 22 + - + 82 THEN + 79 + + 17 WHEN - 39 / + - 85 THEN NULL WHEN + 29 / + 93 - + 46 THEN + NULLIF ( - 56, + 1 / 55 * + - 4 / + 0 ) * COUNT ( - 16 ) * + 79 / + 87 + - SUM ( DISTINCT + 11 ) + + CAST ( - - 82 AS INTEGER ) ELSE NULL END AS col2
----
NULL

query II rowsort
SELECT + 22 AS col1, ( 38 ) * + 61 AS col1
----
22
2318

query I rowsort
SELECT ALL + 59 + - NULLIF ( - CASE + - 52 WHEN 21 THEN + + 77 ELSE NULL END, - 8 / 11 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9387
SELECT ALL - CASE + + 22 WHEN - 72 THEN + SUM( + - 14 ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9387
SELECT ALL - CASE + + 22 WHEN - 72 THEN + SUM ( + - 14 ) ELSE NULL END AS col0
----
NULL

query II rowsort
SELECT + 78 AS col1, 98 AS col0
----
78
98

query II rowsort
SELECT 2, + 56 col1
----
2
56

query I rowsort
SELECT ALL + 27 * - 61
----
-1647

onlyif mysql # aggregate syntax: 
query I rowsort label-9391
SELECT 9 * - COUNT( ALL + + 65 ) AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-9391
SELECT 9 * - COUNT ( ALL + + 65 ) AS col0
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9392
SELECT DISTINCT NULLIF ( 12, ( - ( + COUNT( * ) ) ) ) * + + 69 + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9392
SELECT DISTINCT NULLIF ( 12, ( - ( + COUNT ( * ) ) ) ) * + + 69 + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9393
SELECT 34 * + - 28 * - 37 * + CAST( 15 AS SIGNED )
----
528360

skipif mysql # not compatible
query I rowsort label-9393
SELECT 34 * + - 28 * - 37 * + CAST ( 15 AS INTEGER )
----
528360

onlyif mysql # DIV for integer division: 
query I rowsort label-9394
SELECT COALESCE ( ( - - 64 ), - 31 * - + 42 DIV 7 ) - - 48 AS col1
----
112

skipif mysql # not compatible
query I rowsort label-9394
SELECT COALESCE ( ( - - 64 ), - 31 * - + 42 / 7 ) - - 48 AS col1
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-9395
SELECT 47 * SUM( 68 ) AS col0
----
3196

skipif mysql # not compatible
query I rowsort label-9395
SELECT 47 * SUM ( 68 ) AS col0
----
3196

onlyif mysql # aggregate syntax: 
query II rowsort label-9396
SELECT ALL COUNT( ALL + - 66 ) AS col2, - SUM( ALL + 82 ) * + 91 * - 58
----
1
432796

skipif mysql # not compatible
query II rowsort label-9396
SELECT ALL COUNT ( ALL + - 66 ) AS col2, - SUM ( ALL + 82 ) * + 91 * - 58
----
1
432796

onlyif mysql # aggregate syntax: 
query II rowsort label-9397
SELECT 34 * - COUNT( * ), - 4 AS col1
----
-34
-4

skipif mysql # not compatible
query II rowsort label-9397
SELECT 34 * - COUNT ( * ), - 4 AS col1
----
-34
-4

query I rowsort
SELECT 37 * - 63 * 36
----
-83916

onlyif mysql # DIV for integer division: 
query I rowsort label-9399
SELECT ALL - 64 DIV + - 81 * 2 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9399
SELECT ALL - 64 / + - 81 * 2 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9400
SELECT 43 - + - COUNT( * ) AS col0
----
44

skipif mysql # not compatible
query I rowsort label-9400
SELECT 43 - + - COUNT ( * ) AS col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-9401
SELECT DISTINCT - 83 + + COUNT( * )
----
-82

skipif mysql # not compatible
query I rowsort label-9401
SELECT DISTINCT - 83 + + COUNT ( * )
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9402
SELECT DISTINCT AVG ( CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9402
SELECT DISTINCT AVG ( CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT 47 * - 85 AS col0
----
-3995

query I rowsort
SELECT - 67 + 10
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-9405
SELECT ALL + - 80 * + MIN( DISTINCT - 8 ) AS col0
----
640

skipif mysql # not compatible
query I rowsort label-9405
SELECT ALL + - 80 * + MIN ( DISTINCT - 8 ) AS col0
----
640

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9406
SELECT 80 + + CAST( NULL AS SIGNED ) * 31 - + - 60
----
NULL

skipif mysql # not compatible
query I rowsort label-9406
SELECT 80 + + CAST ( NULL AS INTEGER ) * 31 - + - 60
----
NULL

query I rowsort
SELECT - 50 - + 32 + - 57 - + 60
----
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-9408
SELECT - NULLIF ( COUNT( * ), AVG ( ALL 8 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9408
SELECT - NULLIF ( COUNT ( * ), AVG ( ALL 8 ) ) AS col2
----
-1

query I rowsort
SELECT + 59 + + 57 + - 3
----
113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9410
SELECT 70 * + CAST( NULL AS SIGNED ) / COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9410
SELECT 70 * + CAST ( NULL AS INTEGER ) / COUNT ( * )
----
NULL

query I rowsort
SELECT - ( + - 81 )
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-9412
SELECT + NULLIF ( 30, COUNT( * ) + 2 ) AS col1, 70
----
30
70

skipif mysql # not compatible
query II rowsort label-9412
SELECT + NULLIF ( 30, COUNT ( * ) + 2 ) AS col1, 70
----
30
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9413
SELECT DISTINCT - + 38 * 33 DIV + 21 - + + 52 + - + COUNT( * ) + + 1 * - 23 + - COUNT( * ) AS col0
----
-136

skipif mysql # not compatible
query I rowsort label-9413
SELECT DISTINCT - + 38 * 33 / + 21 - + + 52 + - + COUNT ( * ) + + 1 * - 23 + - COUNT ( * ) AS col0
----
-136

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9414
SELECT ALL 88 * - 33 + + - AVG ( - CAST( NULL AS DECIMAL ) ) + + 30 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9414
SELECT ALL 88 * - 33 + + - AVG ( - CAST ( NULL AS REAL ) ) + + 30 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9415
SELECT ALL 25 * - 5 + CAST( 78 AS SIGNED ) + + - ( - 85 ) * + ( - 74 )
----
-6337

skipif mysql # not compatible
query I rowsort label-9415
SELECT ALL 25 * - 5 + CAST ( 78 AS INTEGER ) + + - ( - 85 ) * + ( - 74 )
----
-6337

onlyif mysql # aggregate syntax: 
query I rowsort label-9416
SELECT - 92 + - COUNT( * )
----
-93

skipif mysql # not compatible
query I rowsort label-9416
SELECT - 92 + - COUNT ( * )
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-9417
SELECT - 96 * - COUNT( * ) + 58 + - ( - 81 ) + - 68 + - - 2 + + + ( - 73 ) * - 38 * - SUM( DISTINCT - 18 ) * - + 73 + - - 33 * + - 10 AS col0
----
-3645197

skipif mysql # not compatible
query I rowsort label-9417
SELECT - 96 * - COUNT ( * ) + 58 + - ( - 81 ) + - 68 + - - 2 + + + ( - 73 ) * - 38 * - SUM ( DISTINCT - 18 ) * - + 73 + - - 33 * + - 10 AS col0
----
-3645197

query I rowsort
SELECT + 66 * - 13 AS col0
----
-858

onlyif mysql # DIV for integer division: 
query I rowsort label-9419
SELECT ALL 36 DIV - 31 col0
----
-1

skipif mysql # not compatible
query I rowsort label-9419
SELECT ALL 36 / - 31 col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9420
SELECT + COALESCE ( - COUNT( * ), - + 15 )
----
-1

skipif mysql # not compatible
query I rowsort label-9420
SELECT + COALESCE ( - COUNT ( * ), - + 15 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9421
SELECT + - 28 DIV + 54 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9421
SELECT + - 28 / + 54 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9422
SELECT DISTINCT ( + - 63 ) * - NULLIF ( + 56, - 97 + + CAST( - 40 AS SIGNED ) + + CAST( NULL AS SIGNED ) ) - + CAST( COUNT( * ) AS SIGNED ) col0
----
3527

skipif mysql # not compatible
query I rowsort label-9422
SELECT DISTINCT ( + - 63 ) * - NULLIF ( + 56, - 97 + + CAST ( - 40 AS INTEGER ) + + CAST ( NULL AS INTEGER ) ) - + CAST ( COUNT ( * ) AS INTEGER ) col0
----
3527

query I rowsort
SELECT + - 84 * 48 * - ( ( - 1 ) ) AS col1
----
-4032

query I rowsort
SELECT ALL - 78 * 33
----
-2574

query I rowsort
SELECT DISTINCT 35 * ( - - COALESCE ( - 39, 63 ) )
----
-1365

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9426
SELECT + 65 * CAST( - 13 AS SIGNED ) * - 80 col1
----
67600

skipif mysql # not compatible
query I rowsort label-9426
SELECT + 65 * CAST ( - 13 AS INTEGER ) * - 80 col1
----
67600

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9427
SELECT DISTINCT + SUM( + COALESCE ( - - 2, 29 DIV + 50 - 25 * + 66 ) )
----
2

skipif mysql # not compatible
query I rowsort label-9427
SELECT DISTINCT + SUM ( + COALESCE ( - - 2, 29 / + 50 - 25 * + 66 ) )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9428
SELECT + 29 + + - COUNT( * ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-9428
SELECT + 29 + + - COUNT ( * ) AS col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9429
SELECT - 34 - - 95 * + - COUNT( * ) * 67
----
-6399

skipif mysql # not compatible
query I rowsort label-9429
SELECT - 34 - - 95 * + - COUNT ( * ) * 67
----
-6399

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9430
SELECT 69 * - ( + 69 ) * - 56 + - + 75 + + COALESCE ( 0, + 75, - + 48 ) + 17, + 82 DIV + COALESCE ( 89, - - 85 + - + 32, - + 38 * COUNT( * ) - + - 50 + - COUNT( * ) ) AS col1
----
266558
0

skipif mysql # not compatible
query II rowsort label-9430
SELECT 69 * - ( + 69 ) * - 56 + - + 75 + + COALESCE ( 0, + 75, - + 48 ) + 17, + 82 / + COALESCE ( 89, - - 85 + - + 32, - + 38 * COUNT ( * ) - + - 50 + - COUNT ( * ) ) AS col1
----
266558
0

onlyif mysql # DIV for integer division: 
query II rowsort label-9431
SELECT ALL + 99, 79 + + ( 58 ) + - 9 DIV + 16 * - 82 * 43 col0
----
99
137

skipif mysql # not compatible
query II rowsort label-9431
SELECT ALL + 99, 79 + + ( 58 ) + - 9 / + 16 * - 82 * 43 col0
----
99
137

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9432
SELECT + 99 + + COUNT( * ) + - 91 + + COUNT( * ) DIV 39 + + 1
----
10

skipif mysql # not compatible
query I rowsort label-9432
SELECT + 99 + + COUNT ( * ) + - 91 + + COUNT ( * ) / 39 + + 1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9433
SELECT DISTINCT ( + - NULLIF ( + 35, + COUNT( - + 16 ) * COUNT( * ) + + ( + 76 ) ) ) + 99
----
64

skipif mysql # not compatible
query I rowsort label-9433
SELECT DISTINCT ( + - NULLIF ( + 35, + COUNT ( - + 16 ) * COUNT ( * ) + + ( + 76 ) ) ) + 99
----
64

query I rowsort
SELECT ALL 81 * - 3 col1
----
-243

onlyif mysql # aggregate syntax: 
query I rowsort label-9435
SELECT ALL + 6 + + COUNT( * ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-9435
SELECT ALL + 6 + + COUNT ( * ) AS col0
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9436
SELECT ALL CAST( 7 AS SIGNED ) + + - 81
----
-74

skipif mysql # not compatible
query I rowsort label-9436
SELECT ALL CAST ( 7 AS INTEGER ) + + - 81
----
-74

query I rowsort
SELECT + 39 * + 78 AS col2
----
3042

query I rowsort
SELECT ALL + 86 + 40
----
126

onlyif mysql # aggregate syntax: 
query II rowsort label-9439
SELECT - COUNT( * ), + 25 AS col0
----
-1
25

skipif mysql # not compatible
query II rowsort label-9439
SELECT - COUNT ( * ), + 25 AS col0
----
-1
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9440
SELECT - + CAST( NULL AS SIGNED ) / 7 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9440
SELECT - + CAST ( NULL AS INTEGER ) / 7 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9441
SELECT - - 0 + - - 83 * - 49 + + - COUNT( * ) - + 12 AS col2
----
-4080

skipif mysql # not compatible
query I rowsort label-9441
SELECT - - 0 + - - 83 * - 49 + + - COUNT ( * ) - + 12 AS col2
----
-4080

query I rowsort
SELECT ALL - 95 + - 1 AS col0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9443
SELECT ALL + + 86 + - - 2 + + 27 + + - COUNT( ALL + - ( + + 58 ) )
----
114

skipif mysql # not compatible
query I rowsort label-9443
SELECT ALL + + 86 + - - 2 + + 27 + + - COUNT ( ALL + - ( + + 58 ) )
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-9444
SELECT DISTINCT + 70 * + MAX( - 79 ) AS col1
----
-5530

skipif mysql # not compatible
query I rowsort label-9444
SELECT DISTINCT + 70 * + MAX ( - 79 ) AS col1
----
-5530

query I rowsort
SELECT ALL - - ( - 90 ) - - 32
----
-58

query I rowsort
SELECT DISTINCT + 1 * 52
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9447
SELECT - - ( 64 ) + 69 + + - NULLIF ( + 89, - 62 + 86 * + ( 1 ) * - 2 + - 64 * - 66 * NULLIF ( - 44, 94 ) * + COUNT( * ) + - + COUNT( * ) )
----
44

skipif mysql # not compatible
query I rowsort label-9447
SELECT - - ( 64 ) + 69 + + - NULLIF ( + 89, - 62 + 86 * + ( 1 ) * - 2 + - 64 * - 66 * NULLIF ( - 44, 94 ) * + COUNT ( * ) + - + COUNT ( * ) )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-9448
SELECT + + 73 * + CASE 12 WHEN + + 10 * - - COUNT( * ) THEN NULL WHEN + 95 THEN 13 ELSE - 68 END AS col1
----
-4964

skipif mysql # not compatible
query I rowsort label-9448
SELECT + + 73 * + CASE 12 WHEN + + 10 * - - COUNT ( * ) THEN NULL WHEN + 95 THEN 13 ELSE - 68 END AS col1
----
-4964

query I rowsort
SELECT - + 62 + 51 * - 39 AS col0
----
-2051

query I rowsort
SELECT ALL + + ( + 17 ) col0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9451
SELECT DISTINCT + MIN( ALL + 7 )
----
7

skipif mysql # not compatible
query I rowsort label-9451
SELECT DISTINCT + MIN ( ALL + 7 )
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9452
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - - CAST( + CASE - 69 WHEN - + ( + COUNT( * ) ) * 87 - + COALESCE ( + 56, ( + 33 ) * + 45 + - + COUNT( * ) * - 55 ) - + 81 * - 88 THEN NULL WHEN - + CASE 13 WHEN 30 + + COUNT( * ) THEN - 42 + SUM( 13 ) END THEN + 33 + + 5 ELSE NULL END AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9452
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - - CAST ( + CASE - 69 WHEN - + ( + COUNT ( * ) ) * 87 - + COALESCE ( + 56, ( + 33 ) * + 45 + - + COUNT ( * ) * - 55 ) - + 81 * - 88 THEN NULL WHEN - + CASE 13 WHEN 30 + + COUNT ( * ) THEN - 42 + SUM ( 13 ) END THEN + 33 + + 5 ELSE NULL END AS REAL ) AS col2
----
NULL

query I rowsort
SELECT - - 38 * 66 * - + 37 AS col2
----
-92796

onlyif mysql # aggregate syntax: 
query I rowsort label-9454
SELECT ALL + - MAX( ALL + 15 ) AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-9454
SELECT ALL + - MAX ( ALL + 15 ) AS col1
----
-15

query I rowsort
SELECT + + 63 - - 94 AS col0
----
157

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9456
SELECT ALL + CAST( 87 AS SIGNED ) AS col0
----
87

skipif mysql # not compatible
query I rowsort label-9456
SELECT ALL + CAST ( 87 AS INTEGER ) AS col0
----
87

query I rowsort
SELECT + 65 + - 32
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9458
SELECT ALL + 99 AS col1, 74 + + - COALESCE ( - COUNT( ALL 45 ), + 62, + CASE + + 61 WHEN - + ( + 45 ) THEN NULL ELSE + CAST( NULL AS SIGNED ) END, + 41 + + 52 * + 14 )
----
99
75

skipif mysql # not compatible
query II rowsort label-9458
SELECT ALL + 99 AS col1, 74 + + - COALESCE ( - COUNT ( ALL 45 ), + 62, + CASE + + 61 WHEN - + ( + 45 ) THEN NULL ELSE + CAST ( NULL AS INTEGER ) END, + 41 + + 52 * + 14 )
----
99
75

query I rowsort
SELECT + 59 + + 86 AS col2
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-9460
SELECT DISTINCT COUNT( - + 71 ) * + + ( - - 89 )
----
89

skipif mysql # not compatible
query I rowsort label-9460
SELECT DISTINCT COUNT ( - + 71 ) * + + ( - - 89 )
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9461
SELECT ALL - 20 * + 76 + + COUNT( ALL 5 ) AS col0
----
-1519

skipif mysql # not compatible
query I rowsort label-9461
SELECT ALL - 20 * + 76 + + COUNT ( ALL 5 ) AS col0
----
-1519

query II rowsort
SELECT ALL + 2 AS col1, 13 AS col2
----
2
13

query I rowsort
SELECT + NULLIF ( 28, - - 55 )
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9464
SELECT ALL + MIN( - + 24 ) * - 17 + - - 93 + COUNT( * ) AS col2
----
502

skipif mysql # not compatible
query I rowsort label-9464
SELECT ALL + MIN ( - + 24 ) * - 17 + - - 93 + COUNT ( * ) AS col2
----
502

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9465
SELECT ALL + 43 * + NULLIF ( 72, - + ( 54 ) + 64 ) + + 59 + - + COUNT( * ) * + 19 * 98 DIV + - COALESCE ( + 62, - + 67 ) col0
----
3185

skipif mysql # not compatible
query I rowsort label-9465
SELECT ALL + 43 * + NULLIF ( 72, - + ( 54 ) + 64 ) + + 59 + - + COUNT ( * ) * + 19 * 98 / + - COALESCE ( + 62, - + 67 ) col0
----
3185

onlyif mysql # aggregate syntax: 
query I rowsort label-9466
SELECT ALL 40 * - MIN( + 31 ) AS col2
----
-1240

skipif mysql # not compatible
query I rowsort label-9466
SELECT ALL 40 * - MIN ( + 31 ) AS col2
----
-1240

query I rowsort
SELECT + 51 * - 18
----
-918

onlyif mysql # aggregate syntax: 
query I rowsort label-9468
SELECT - 66 * + 4 - + COUNT( * ) col0
----
-265

skipif mysql # not compatible
query I rowsort label-9468
SELECT - 66 * + 4 - + COUNT ( * ) col0
----
-265

query I rowsort
SELECT + 15 - - 56
----
71

query I rowsort
SELECT - 21 * 36
----
-756

query I rowsort
SELECT - - ( + 79 ) col0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-9472
SELECT ALL COUNT( * ) + - 80 - 57 * 5
----
-364

skipif mysql # not compatible
query I rowsort label-9472
SELECT ALL COUNT ( * ) + - 80 - 57 * 5
----
-364

onlyif mysql # aggregate syntax: 
query II rowsort label-9473
SELECT DISTINCT - ( - - COUNT( * ) ) AS col2, 30 * - 81 AS col0
----
-1
-2430

skipif mysql # not compatible
query II rowsort label-9473
SELECT DISTINCT - ( - - COUNT ( * ) ) AS col2, 30 * - 81 AS col0
----
-1
-2430

query II rowsort
SELECT ALL + 53, - 85 AS col2
----
53
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-9475
SELECT DISTINCT - COUNT( DISTINCT + 88 ) - - 96 AS col2
----
95

skipif mysql # not compatible
query I rowsort label-9475
SELECT DISTINCT - COUNT ( DISTINCT + 88 ) - - 96 AS col2
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9476
SELECT 86 - 63 + - ( + COUNT( * ) ) DIV - + 41
----
23

skipif mysql # not compatible
query I rowsort label-9476
SELECT 86 - 63 + - ( + COUNT ( * ) ) / - + 41
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9477
SELECT DISTINCT 73 * ( COUNT( * ) )
----
73

skipif mysql # not compatible
query I rowsort label-9477
SELECT DISTINCT 73 * ( COUNT ( * ) )
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9478
SELECT ALL 62, NULLIF ( 22, 56 * NULLIF ( + - COUNT( * ), + CAST( - 87 AS SIGNED ) ) - + + 45 ) col1
----
62
22

skipif mysql # not compatible
query II rowsort label-9478
SELECT ALL 62, NULLIF ( 22, 56 * NULLIF ( + - COUNT ( * ), + CAST ( - 87 AS INTEGER ) ) - + + 45 ) col1
----
62
22

onlyif mysql # DIV for integer division: 
query I rowsort label-9479
SELECT + COALESCE ( + + 62, - + 80 * - 20, + 95 DIV 68 ) * + 77
----
4774

skipif mysql # not compatible
query I rowsort label-9479
SELECT + COALESCE ( + + 62, - + 80 * - 20, + 95 / 68 ) * + 77
----
4774

onlyif mysql # aggregate syntax: 
query I rowsort label-9480
SELECT ALL + 72 * + COUNT( * ) * MAX( ALL + 90 ) + 0 * - + 8 AS col2
----
6480

skipif mysql # not compatible
query I rowsort label-9480
SELECT ALL + 72 * + COUNT ( * ) * MAX ( ALL + 90 ) + 0 * - + 8 AS col2
----
6480

query I rowsort
SELECT 66 + + 21 AS col0
----
87

query I rowsort
SELECT + 79 + + - 39
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-9483
SELECT ( + - ( + - SUM( ALL - + ( 72 ) ) ) ) - 77, + 77 AS col1
----
-149
77

skipif mysql # not compatible
query II rowsort label-9483
SELECT ( + - ( + - SUM ( ALL - + ( 72 ) ) ) ) - 77, + 77 AS col1
----
-149
77

onlyif mysql # aggregate syntax: 
query II rowsort label-9484
SELECT ALL 85 AS col1, + COUNT( * )
----
85
1

skipif mysql # not compatible
query II rowsort label-9484
SELECT ALL 85 AS col1, + COUNT ( * )
----
85
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9485
SELECT + 62 - - 35 * - 81 + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9485
SELECT + 62 - - 35 * - 81 + + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9486
SELECT DISTINCT ( + COUNT( - 29 ) )
----
1

skipif mysql # not compatible
query I rowsort label-9486
SELECT DISTINCT ( + COUNT ( - 29 ) )
----
1

query II rowsort
SELECT ALL 69 AS col1, 68 AS col0
----
69
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9488
SELECT DISTINCT SUM( ALL - ( + 9 ) ) AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-9488
SELECT DISTINCT SUM ( ALL - ( + 9 ) ) AS col2
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9489
SELECT ALL + 56 DIV - COUNT( * ) AS col1, + 85 AS col1
----
-56
85

skipif mysql # not compatible
query II rowsort label-9489
SELECT ALL + 56 / - COUNT ( * ) AS col1, + 85 AS col1
----
-56
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9490
SELECT 65 * MIN( + - 51 ) AS col2
----
-3315

skipif mysql # not compatible
query I rowsort label-9490
SELECT 65 * MIN ( + - 51 ) AS col2
----
-3315

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9491
SELECT - COUNT( * ) + 29 DIV MIN( DISTINCT + + 16 )
----
0

skipif mysql # not compatible
query I rowsort label-9491
SELECT - COUNT ( * ) + 29 / MIN ( DISTINCT + + 16 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9492
SELECT DISTINCT + - 4 DIV + + 10 * 23 * - NULLIF ( - 6, 51 )
----
0

skipif mysql # not compatible
query I rowsort label-9492
SELECT DISTINCT + - 4 / + + 10 * 23 * - NULLIF ( - 6, 51 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9493
SELECT DISTINCT - CAST( 90 AS SIGNED ) * - 44 * - 77 + - 55 + 54 * + 30 + - + 42 * - 35
----
-301885

skipif mysql # not compatible
query I rowsort label-9493
SELECT DISTINCT - CAST ( 90 AS INTEGER ) * - 44 * - 77 + - 55 + 54 * + 30 + - + 42 * - 35
----
-301885

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9494
SELECT COUNT( * ) DIV - ( + - 40 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9494
SELECT COUNT ( * ) / - ( + - 40 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9495
SELECT ALL + COUNT( 7 ) + - 56
----
-55

skipif mysql # not compatible
query I rowsort label-9495
SELECT ALL + COUNT ( 7 ) + - 56
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-9496
SELECT 68 * + 63 + + ( - COUNT( * ) ) AS col2
----
4283

skipif mysql # not compatible
query I rowsort label-9496
SELECT 68 * + 63 + + ( - COUNT ( * ) ) AS col2
----
4283

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9497
SELECT ALL - COALESCE ( + 44, - - 62 * - CASE - - COUNT( - 18 ) WHEN - CAST( + 32 AS SIGNED ) * 24 - + 6 * - 78 + + 3 THEN - - 10 WHEN - - 96 * - + 27 THEN - 27 ELSE + 75 * + - 20 * - 29 + 25 END, 3 + + 31 * + - 17 ) AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-9497
SELECT ALL - COALESCE ( + 44, - - 62 * - CASE - - COUNT ( - 18 ) WHEN - CAST ( + 32 AS INTEGER ) * 24 - + 6 * - 78 + + 3 THEN - - 10 WHEN - - 96 * - + 27 THEN - 27 ELSE + 75 * + - 20 * - 29 + 25 END, 3 + + 31 * + - 17 ) AS col1
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-9498
SELECT ALL 93 + COALESCE ( - MAX( + 22 ), 9 ) + - 77
----
-6

skipif mysql # not compatible
query I rowsort label-9498
SELECT ALL 93 + COALESCE ( - MAX ( + 22 ), 9 ) + - 77
----
-6

query I rowsort
SELECT 44 - - + 48 AS col2
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9500
SELECT ALL + 96 * - CASE 6 WHEN CAST( NULL AS SIGNED ) THEN + + 55 WHEN COUNT( * ) * + - 8 THEN + COUNT( ALL - - 14 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9500
SELECT ALL + 96 * - CASE 6 WHEN CAST ( NULL AS INTEGER ) THEN + + 55 WHEN COUNT ( * ) * + - 8 THEN + COUNT ( ALL - - 14 ) END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9501
SELECT ALL 70 + - - 82 - - + CAST( - 51 AS SIGNED ) - - 50 - 17 + + 18 AS col2
----
152

skipif mysql # not compatible
query I rowsort label-9501
SELECT ALL 70 + - - 82 - - + CAST ( - 51 AS INTEGER ) - - 50 - 17 + + 18 AS col2
----
152

onlyif mysql # aggregate syntax: 
query I rowsort label-9502
SELECT 53 + + 0 + + + 3 + + 21 * + + COUNT( * ) * - MAX( - 50 )
----
1106

skipif mysql # not compatible
query I rowsort label-9502
SELECT 53 + + 0 + + + 3 + + 21 * + + COUNT ( * ) * - MAX ( - 50 )
----
1106

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9503
SELECT ALL - CAST( NULL AS DECIMAL ) + + 18 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9503
SELECT ALL - CAST ( NULL AS REAL ) + + 18 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9504
SELECT MIN( + CAST( NULL AS SIGNED ) ) * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9504
SELECT MIN ( + CAST ( NULL AS INTEGER ) ) * - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9505
SELECT ALL 63 + + - COUNT( * )
----
62

skipif mysql # not compatible
query I rowsort label-9505
SELECT ALL 63 + + - COUNT ( * )
----
62

query I rowsort
SELECT ALL - 6 + + - 83 AS col2
----
-89

query I rowsort
SELECT 43 + - + 7
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9508
SELECT ALL 27 * SUM( + 5 ) * 40 AS col0
----
5400

skipif mysql # not compatible
query I rowsort label-9508
SELECT ALL 27 * SUM ( + 5 ) * 40 AS col0
----
5400

query I rowsort
SELECT 98 + + 41
----
139

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9510
SELECT DISTINCT AVG ( + - CAST( NULL AS DECIMAL ) ) * - NULLIF ( + + NULLIF ( - ( 32 ), - 19 ), + + 85 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9510
SELECT DISTINCT AVG ( + - CAST ( NULL AS REAL ) ) * - NULLIF ( + + NULLIF ( - ( 32 ), - 19 ), + + 85 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9511
SELECT ALL + 43 DIV NULLIF ( + 24, + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-9511
SELECT ALL + 43 / NULLIF ( + 24, + COUNT ( * ) )
----
1

query I rowsort
SELECT ALL COALESCE ( + + 67, + 26 ) * - - 95 * + 7 col1
----
44555

query I rowsort
SELECT - 69 + 62 + + 75 * - ( + 66 ) - + - 84
----
-4873

query II rowsort
SELECT ALL + 67 * - + 0 AS col1, 45
----
0
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9515
SELECT 55 + + COUNT( * ) + + - 91 - + ( - - 62 ) DIV - 35 + + 34 + + + 74 AS col1, 67 AS col1
----
74
67

skipif mysql # not compatible
query II rowsort label-9515
SELECT 55 + + COUNT ( * ) + + - 91 - + ( - - 62 ) / - 35 + + 34 + + + 74 AS col1, 67 AS col1
----
74
67

query I rowsort
SELECT DISTINCT 57 * + 32
----
1824

query I rowsort
SELECT + 10 + - 63 AS col0
----
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-9518
SELECT ALL COUNT( ALL 45 ), 49 AS col2
----
1
49

skipif mysql # not compatible
query II rowsort label-9518
SELECT ALL COUNT ( ALL 45 ), 49 AS col2
----
1
49

query I rowsort
SELECT - 58 + + + 12 - 53 * 61
----
-3279

query I rowsort
SELECT 70 + 84 * + 83 + - 43 AS col0
----
6999

query II rowsort
SELECT - 85 * - 7 AS col2, - 48 AS col2
----
595
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9522
SELECT + COUNT( * ) + 28 DIV + - 41 + - 76 AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-9522
SELECT + COUNT ( * ) + 28 / + - 41 + - 76 AS col0
----
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-9523
SELECT 13 + - COUNT( * ), - 5 * + 92 AS col2
----
12
-460

skipif mysql # not compatible
query II rowsort label-9523
SELECT 13 + - COUNT ( * ), - 5 * + 92 AS col2
----
12
-460

query I rowsort
SELECT 29 - + - COALESCE ( + 93, + + 35 ) * 66 + 33
----
6200

onlyif mysql # aggregate syntax: 
query II rowsort label-9525
SELECT ( + + 43 ) * + 50 * + 33 AS col1, ( - 20 ) * 15 + - NULLIF ( - + 52, + MIN( - 1 ) * - ( - ( - + 43 ) ) * + - 50 )
----
70950
-248

skipif mysql # not compatible
query II rowsort label-9525
SELECT ( + + 43 ) * + 50 * + 33 AS col1, ( - 20 ) * 15 + - NULLIF ( - + 52, + MIN ( - 1 ) * - ( - ( - + 43 ) ) * + - 50 )
----
70950
-248

query I rowsort
SELECT 54 + 25 AS col2
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-9527
SELECT ALL COUNT( 87 ) * + + 23 + + + 35 col0
----
58

skipif mysql # not compatible
query I rowsort label-9527
SELECT ALL COUNT ( 87 ) * + + 23 + + + 35 col0
----
58

query I rowsort
SELECT - 78 * + 51 + - ( 60 ) AS col0
----
-4038

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9529
SELECT DISTINCT - ( + + 1 ) * - + CAST( 59 AS SIGNED ) + 76 + - 89 DIV 50 * 58 col1, 60 * + - 68 + - 83 + 94 - COUNT( * ) AS col1
----
77
-4070

skipif mysql # not compatible
query II rowsort label-9529
SELECT DISTINCT - ( + + 1 ) * - + CAST ( 59 AS INTEGER ) + 76 + - 89 / 50 * 58 col1, 60 * + - 68 + - 83 + 94 - COUNT ( * ) AS col1
----
77
-4070

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9530
SELECT ALL - COUNT( * ) DIV + 25 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9530
SELECT ALL - COUNT ( * ) / + 25 AS col2
----
0

query I rowsort
SELECT ALL + 5 * 56 + - 72 + + - 43 * 27 * - 8
----
9496

query I rowsort
SELECT + CASE + 77 WHEN + 64 THEN + 69 WHEN + 42 THEN - + 32 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9533
SELECT ( - 84 ) * - - 92 + 28 * + + 92 - MAX( + CAST( NULL AS SIGNED ) ) * + - 11
----
NULL

skipif mysql # not compatible
query I rowsort label-9533
SELECT ( - 84 ) * - - 92 + 28 * + + 92 - MAX ( + CAST ( NULL AS INTEGER ) ) * + - 11
----
NULL

query I rowsort
SELECT DISTINCT - COALESCE ( - 69, - - 14 )
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9535
SELECT 38 * + COUNT( * ) * CAST( NULL AS SIGNED ) + - ( COALESCE ( - + 5, + - 38 + - 79 ) ) * - - 6 * + - 62 + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9535
SELECT 38 * + COUNT ( * ) * CAST ( NULL AS INTEGER ) + - ( COALESCE ( - + 5, + - 38 + - 79 ) ) * - - 6 * + - 62 + - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9536
SELECT ALL + 47 * COUNT( * ) * + 32 AS col0
----
1504

skipif mysql # not compatible
query I rowsort label-9536
SELECT ALL + 47 * COUNT ( * ) * + 32 AS col0
----
1504

onlyif mysql # aggregate syntax: 
query II rowsort label-9537
SELECT DISTINCT + 30, SUM( - - 14 ) AS col1
----
30
14

skipif mysql # not compatible
query II rowsort label-9537
SELECT DISTINCT + 30, SUM ( - - 14 ) AS col1
----
30
14

query II rowsort
SELECT + 25 AS col2, + 34
----
25
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9539
SELECT ALL + 48 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9539
SELECT ALL + 48 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9540
SELECT DISTINCT + + 41 AS col2, 85 * 72 + + 88 DIV - 87
----
41
6119

skipif mysql # not compatible
query II rowsort label-9540
SELECT DISTINCT + + 41 AS col2, 85 * 72 + + 88 / - 87
----
41
6119

onlyif mysql # aggregate syntax: 
query I rowsort label-9541
SELECT - COUNT( * ) - - - 94
----
-95

skipif mysql # not compatible
query I rowsort label-9541
SELECT - COUNT ( * ) - - - 94
----
-95

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9542
SELECT + - 77 * + CAST( NULL AS DECIMAL ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9542
SELECT + - 77 * + CAST ( NULL AS REAL ) col2
----
NULL

query I rowsort
SELECT DISTINCT 91 * 42 AS col1
----
3822

query II rowsort
SELECT DISTINCT 53 AS col0, - 80 AS col0
----
53
-80

query I rowsort
SELECT DISTINCT + 89 * + + 59 AS col2
----
5251

query I rowsort
SELECT ALL - ( - 34 ) AS col0
----
34

query I rowsort
SELECT + - ( ( + 81 ) ) - 45 AS col0
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-9548
SELECT DISTINCT - 62 * COUNT( ALL - + 89 ) * - 46
----
2852

skipif mysql # not compatible
query I rowsort label-9548
SELECT DISTINCT - 62 * COUNT ( ALL - + 89 ) * - 46
----
2852

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9549
SELECT + + 51 - CASE - 68 WHEN + ( + + CAST( - COUNT( * ) AS SIGNED ) ) THEN 62 * 20 * - + ( - ( - - 36 ) ) + 95 END * - + COALESCE ( - ( 88 ), - 16 * + COUNT( * ) DIV + + 41 + + 38 DIV 23 * - 71, 10 ) + + + 65, - 90 * + + 3 DIV 60 DIV 85 + - - 71 + + 28 - + 6 AS col1
----
NULL
93

skipif mysql # not compatible
query II rowsort label-9549
SELECT + + 51 - CASE - 68 WHEN + ( + + CAST ( - COUNT ( * ) AS INTEGER ) ) THEN 62 * 20 * - + ( - ( - - 36 ) ) + 95 END * - + COALESCE ( - ( 88 ), - 16 * + COUNT ( * ) / + + 41 + + 38 / 23 * - 71, 10 ) + + + 65, - 90 * + + 3 / 60 / 85 + - - 71 + + 28 - + 6 AS col1
----
NULL
93

onlyif mysql # aggregate syntax: 
query I rowsort label-9550
SELECT SUM( DISTINCT + + 99 ) AS col2
----
99

skipif mysql # not compatible
query I rowsort label-9550
SELECT SUM ( DISTINCT + + 99 ) AS col2
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9551
SELECT - CAST( - - 18 AS SIGNED ) + + - 35 * + 71 AS col0
----
-2503

skipif mysql # not compatible
query I rowsort label-9551
SELECT - CAST ( - - 18 AS INTEGER ) + + - 35 * + 71 AS col0
----
-2503

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9552
SELECT 31 AS col2, + 30 + + ( + CAST( NULL AS SIGNED ) ) * - - CAST( NULL AS SIGNED ) col0
----
31
NULL

skipif mysql # not compatible
query II rowsort label-9552
SELECT 31 AS col2, + 30 + + ( + CAST ( NULL AS INTEGER ) ) * - - CAST ( NULL AS INTEGER ) col0
----
31
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9553
SELECT + - 73 DIV + - 45 col1
----
1

skipif mysql # not compatible
query I rowsort label-9553
SELECT + - 73 / + - 45 col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9554
SELECT + COUNT( * ) - + 57 AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-9554
SELECT + COUNT ( * ) - + 57 AS col2
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-9555
SELECT - MAX( + - 99 )
----
99

skipif mysql # not compatible
query I rowsort label-9555
SELECT - MAX ( + - 99 )
----
99

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9556
SELECT ALL CAST( NULL AS DECIMAL ) + - - CASE - 60 WHEN - 84 * + COUNT( * ) + - ( + 53 ) + 81 THEN - 11 ELSE NULL END * + 96 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9556
SELECT ALL CAST ( NULL AS REAL ) + - - CASE - 60 WHEN - 84 * + COUNT ( * ) + - ( + 53 ) + 81 THEN - 11 ELSE NULL END * + 96 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9557
SELECT ALL 94 + MIN( - 16 ) AS col2
----
78

skipif mysql # not compatible
query I rowsort label-9557
SELECT ALL 94 + MIN ( - 16 ) AS col2
----
78

query I rowsort
SELECT ALL 53 + - + 33 AS col0
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-9559
SELECT + CASE - + 85 WHEN 37 THEN - + 46 WHEN - COUNT( * ) THEN + - 15 END * + - 5, + 40 + + ( + 30 ) AS col0
----
NULL
70

skipif mysql # not compatible
query II rowsort label-9559
SELECT + CASE - + 85 WHEN 37 THEN - + 46 WHEN - COUNT ( * ) THEN + - 15 END * + - 5, + 40 + + ( + 30 ) AS col0
----
NULL
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9560
SELECT + 35 + + COUNT( * ) * - + 74 AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-9560
SELECT + 35 + + COUNT ( * ) * - + 74 AS col2
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-9561
SELECT ALL + 61 / - 13 + - CASE + ( - 99 ) WHEN + - 61 THEN NULL WHEN - + 38 THEN + + COALESCE ( + 6, + 36 ) / 86 + - - 34 END + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9561
SELECT ALL + 61 / - 13 + - CASE + ( - 99 ) WHEN + - 61 THEN NULL WHEN - + 38 THEN + + COALESCE ( + 6, + 36 ) / 86 + - - 34 END + COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9562
SELECT + COUNT( * ) * COUNT( * ) * 92 AS col1
----
92

skipif mysql # not compatible
query I rowsort label-9562
SELECT + COUNT ( * ) * COUNT ( * ) * 92 AS col1
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9563
SELECT + 40 + - 23 - + COUNT( DISTINCT - 98 ) * + NULLIF ( + COALESCE ( + 9, 33, 82 ), + 54 ) AS col1
----
8

skipif mysql # not compatible
query I rowsort label-9563
SELECT + 40 + - 23 - + COUNT ( DISTINCT - 98 ) * + NULLIF ( + COALESCE ( + 9, 33, 82 ), + 54 ) AS col1
----
8

query I rowsort
SELECT DISTINCT 52 * + 27 AS col2
----
1404

query I rowsort
SELECT + 55 * - 65 + 94 AS col1
----
-3481

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9566
SELECT ( + - 65 ) AS col2, - NULLIF ( - + 26, - NULLIF ( + 88, CAST( NULL AS SIGNED ) ) )
----
-65
26

skipif mysql # not compatible
query II rowsort label-9566
SELECT ( + - 65 ) AS col2, - NULLIF ( - + 26, - NULLIF ( + 88, CAST ( NULL AS INTEGER ) ) )
----
-65
26

query I rowsort
SELECT - 81 * - 64
----
5184

onlyif mysql # aggregate syntax: 
query I rowsort label-9568
SELECT DISTINCT COALESCE ( + COUNT( * ), 99 * + + 12, 85 ) * - 62 - - 47 + + + 73 + + COUNT( * ) AS col1
----
59

skipif mysql # not compatible
query I rowsort label-9568
SELECT DISTINCT COALESCE ( + COUNT ( * ), 99 * + + 12, 85 ) * - 62 - - 47 + + + 73 + + COUNT ( * ) AS col1
----
59

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9569
SELECT DISTINCT 16 * NULLIF ( + 2, + 88 - + + ( - - 80 ) + - + CAST( NULL AS DECIMAL ) + - + ( + 73 ) + + 47 ) * - + 16 - - 16 + 72 * - + 69
----
-5464

skipif mysql # not compatible
query I rowsort label-9569
SELECT DISTINCT 16 * NULLIF ( + 2, + 88 - + + ( - - 80 ) + - + CAST ( NULL AS REAL ) + - + ( + 73 ) + + 47 ) * - + 16 - - 16 + 72 * - + 69
----
-5464

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9570
SELECT ALL + COALESCE ( ( - COUNT( * ) ), 48 * + - 37 DIV + 89 )
----
-1

skipif mysql # not compatible
query I rowsort label-9570
SELECT ALL + COALESCE ( ( - COUNT ( * ) ), 48 * + - 37 / + 89 )
----
-1

query II rowsort
SELECT - 45 * + 7 AS col1, - 96
----
-315
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9572
SELECT ALL - CASE - - 58 WHEN - - ( - CAST( + + 6 AS SIGNED ) ) THEN - - 29 WHEN + 90 - - ( + 18 ) THEN - 55 / + 81 END * CAST( NULL AS SIGNED ) - NULLIF ( + 14, + - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9572
SELECT ALL - CASE - - 58 WHEN - - ( - CAST ( + + 6 AS INTEGER ) ) THEN - - 29 WHEN + 90 - - ( + 18 ) THEN - 55 / + 81 END * CAST ( NULL AS INTEGER ) - NULLIF ( + 14, + - COUNT ( * ) )
----
NULL

query I rowsort
SELECT ALL + ( + 42 ) AS col1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-9574
SELECT + COUNT( * ) * 37 + - - ( + 16 )
----
53

skipif mysql # not compatible
query I rowsort label-9574
SELECT + COUNT ( * ) * 37 + - - ( + 16 )
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-9575
SELECT + 43 * - 59 * COUNT( * ) + + 44 + - 72 col1
----
-2565

skipif mysql # not compatible
query I rowsort label-9575
SELECT + 43 * - 59 * COUNT ( * ) + + 44 + - 72 col1
----
-2565

onlyif mysql # aggregate syntax: 
query I rowsort label-9576
SELECT - + 4 * NULLIF ( 97, + - 23 * - - COUNT( * ) - - 48 ) * + + 61 + - 48 AS col2
----
-23716

skipif mysql # not compatible
query I rowsort label-9576
SELECT - + 4 * NULLIF ( 97, + - 23 * - - COUNT ( * ) - - 48 ) * + + 61 + - 48 AS col2
----
-23716

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9577
SELECT - + COUNT( * ) DIV + COUNT( * ) + - 71
----
-72

skipif mysql # not compatible
query I rowsort label-9577
SELECT - + COUNT ( * ) / + COUNT ( * ) + - 71
----
-72

query I rowsort
SELECT - 47 * 84 + 51 AS col1
----
-3897

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9579
SELECT ALL + + COUNT( * ) * + - CAST( NULL AS SIGNED ) + - - 57 * + 81 + 8 + + COUNT( * ) * + CASE + 57 WHEN + 31 THEN + - 22 * ( 8 ) + + + 77 WHEN + 92 THEN - 31 ELSE + ( - MIN( 71 ) ) END + 69 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9579
SELECT ALL + + COUNT ( * ) * + - CAST ( NULL AS INTEGER ) + - - 57 * + 81 + 8 + + COUNT ( * ) * + CASE + 57 WHEN + 31 THEN + - 22 * ( 8 ) + + + 77 WHEN + 92 THEN - 31 ELSE + ( - MIN ( 71 ) ) END + 69 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 91 * - 43 + - 40 + + 41 + + 68 AS col2
----
-3844

onlyif mysql # aggregate syntax: 
query I rowsort label-9581
SELECT NULLIF ( + COUNT( * ), 40 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-9581
SELECT NULLIF ( + COUNT ( * ), 40 ) col0
----
1

query I rowsort
SELECT DISTINCT + + 94 * 60 + 46
----
5686

onlyif mysql # aggregate syntax: 
query I rowsort label-9583
SELECT ALL - + COUNT( * ) * 95 + 19 AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-9583
SELECT ALL - + COUNT ( * ) * 95 + 19 AS col2
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9584
SELECT - + NULLIF ( 41, - - CAST( NULL AS SIGNED ) / 22 ) + + 6 AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-9584
SELECT - + NULLIF ( 41, - - CAST ( NULL AS INTEGER ) / 22 ) + + 6 AS col1
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9585
SELECT - + 44 * + 3, + 55 + + - 63 + - CAST( + 91 AS SIGNED ) AS col0
----
-132
-99

skipif mysql # not compatible
query II rowsort label-9585
SELECT - + 44 * + 3, + 55 + + - 63 + - CAST ( + 91 AS INTEGER ) AS col0
----
-132
-99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9586
SELECT + + 39 + 90 + - 56 + + ( + 90 ) + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9586
SELECT + + 39 + 90 + - 56 + + ( + 90 ) + + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT - - ( - + 94 ) AS col2
----
-94

query I rowsort
SELECT ALL ( - + 44 )
----
-44

query I rowsort
SELECT ALL 53 + 60
----
113

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9590
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - 11 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9590
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - 11 col0
----
NULL

query I rowsort
SELECT ALL - 19 - + 68 AS col2
----
-87

query I rowsort
SELECT - 23 * - + NULLIF ( + + 21, + 95 )
----
483

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9593
SELECT - CAST( - 64 AS SIGNED ) AS col2
----
64

skipif mysql # not compatible
query I rowsort label-9593
SELECT - CAST ( - 64 AS INTEGER ) AS col2
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9594
SELECT CASE 22 WHEN + 42 THEN + 92 * - 16 WHEN + 24 * - 85 - + - CASE + 31 WHEN - 15 THEN 52 + 40 END * + NULLIF ( - - 99, - 24 + 94 ) THEN NULL END / 20 * - MAX( + 49 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9594
SELECT CASE 22 WHEN + 42 THEN + 92 * - 16 WHEN + 24 * - 85 - + - CASE + 31 WHEN - 15 THEN 52 + 40 END * + NULLIF ( - - 99, - 24 + 94 ) THEN NULL END / 20 * - MAX ( + 49 ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9595
SELECT ALL 4 DIV - + 42
----
0

skipif mysql # not compatible
query I rowsort label-9595
SELECT ALL 4 / - + 42
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9596
SELECT DISTINCT 98 * CASE + COUNT( * ) WHEN 5 * - - ( - 8 ) THEN - 83 WHEN - + 12 THEN NULL ELSE - 71 END
----
-6958

skipif mysql # not compatible
query I rowsort label-9596
SELECT DISTINCT 98 * CASE + COUNT ( * ) WHEN 5 * - - ( - 8 ) THEN - 83 WHEN - + 12 THEN NULL ELSE - 71 END
----
-6958

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9597
SELECT CASE + + NULLIF ( - 61, + 46 - - + 43 ) WHEN + - 92 * + 82 / + - CAST( + 19 AS SIGNED ) + + 16 THEN NULL ELSE 75 * + 0 END + - + 60 - - 5
----
-55

skipif mysql # not compatible
query I rowsort label-9597
SELECT CASE + + NULLIF ( - 61, + 46 - - + 43 ) WHEN + - 92 * + 82 / + - CAST ( + 19 AS INTEGER ) + + 16 THEN NULL ELSE 75 * + 0 END + - + 60 - - 5
----
-55

query I rowsort
SELECT ALL 33 * - 24 AS col0
----
-792

query I rowsort
SELECT 97 * 81
----
7857

query I rowsort
SELECT ALL 45 * 98 AS col0
----
4410

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9601
SELECT + 23 AS col2, - COUNT( - + 23 ) DIV + 66 DIV COALESCE ( + 7, - - 16 ) + + MIN( ALL + + 61 ) + 19
----
23
80

skipif mysql # not compatible
query II rowsort label-9601
SELECT + 23 AS col2, - COUNT ( - + 23 ) / + 66 / COALESCE ( + 7, - - 16 ) + + MIN ( ALL + + 61 ) + 19
----
23
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9602
SELECT DISTINCT 62 * + MIN( ALL + + 52 )
----
3224

skipif mysql # not compatible
query I rowsort label-9602
SELECT DISTINCT 62 * + MIN ( ALL + + 52 )
----
3224

query I rowsort
SELECT ALL - ( + 83 ) AS col2
----
-83

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9604
SELECT ALL + 55 * + NULLIF ( 24, - + CAST( NULL AS DECIMAL ) + + 46 )
----
1320

skipif mysql # not compatible
query I rowsort label-9604
SELECT ALL + 55 * + NULLIF ( 24, - + CAST ( NULL AS REAL ) + + 46 )
----
1320

query I rowsort
SELECT DISTINCT 64 + - 47 col0
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9606
SELECT ALL 68 + - CAST( NULL AS SIGNED ) * - 58, - 68 + + 21 AS col1
----
NULL
-47

skipif mysql # not compatible
query II rowsort label-9606
SELECT ALL 68 + - CAST ( NULL AS INTEGER ) * - 58, - 68 + + 21 AS col1
----
NULL
-47

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9607
SELECT CAST( 89 AS SIGNED ) DIV - 51
----
-1

skipif mysql # not compatible
query I rowsort label-9607
SELECT CAST ( 89 AS INTEGER ) / - 51
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9608
SELECT ALL 12 + + - COUNT( * )
----
11

skipif mysql # not compatible
query I rowsort label-9608
SELECT ALL 12 + + - COUNT ( * )
----
11

query I rowsort
SELECT 9 * + ( 61 )
----
549

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9610
SELECT ALL CAST( NULL AS SIGNED ) + - 39 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9610
SELECT ALL CAST ( NULL AS INTEGER ) + - 39 AS col0
----
NULL

query I rowsort
SELECT + - 86 col2
----
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-9612
SELECT - 79 DIV + 47 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9612
SELECT - 79 / + 47 AS col0
----
-1

query I rowsort
SELECT ALL - 28 + - - 26
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9614
SELECT MIN( + + 14 )
----
14

skipif mysql # not compatible
query I rowsort label-9614
SELECT MIN ( + + 14 )
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9615
SELECT ALL + COALESCE ( - - NULLIF ( + 76, - + 5 ), + 17 ) DIV - 54 - + - SUM( - 23 ), + 36 * + 99 AS col1
----
-24
3564

skipif mysql # not compatible
query II rowsort label-9615
SELECT ALL + COALESCE ( - - NULLIF ( + 76, - + 5 ), + 17 ) / - 54 - + - SUM ( - 23 ), + 36 * + 99 AS col1
----
-24
3564

query I rowsort
SELECT + 15 * - 67
----
-1005

query I rowsort
SELECT ALL - 88 + 95
----
7

query I rowsort
SELECT ALL 37 * - - ( + ( + - CASE + 67 WHEN - + AVG ( DISTINCT ( - 0 ) ) THEN 92 ELSE - 49 * + + 59 END ) ) - - 19 - - 7
----
106993

query I rowsort
SELECT DISTINCT - 60 * - 6 AS col0
----
360

query I rowsort
SELECT 57 - 8 col1
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-9621
SELECT ALL - MIN( + 46 ) - - + 27 AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-9621
SELECT ALL - MIN ( + 46 ) - - + 27 AS col0
----
-19

query II rowsort
SELECT - 33 AS col2, + 6
----
-33
6

query I rowsort
SELECT 66 + 15 - - 64 AS col1
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-9624
SELECT ALL + 87 - + 52 * 78 * - COUNT( * ) AS col0
----
4143

skipif mysql # not compatible
query I rowsort label-9624
SELECT ALL + 87 - + 52 * 78 * - COUNT ( * ) AS col0
----
4143

onlyif mysql # aggregate syntax: 
query I rowsort label-9625
SELECT 82 * COUNT( * ) * + 46 * 51 * ( - ( - 23 ) ) AS col2
----
4424556

skipif mysql # not compatible
query I rowsort label-9625
SELECT 82 * COUNT ( * ) * + 46 * 51 * ( - ( - 23 ) ) AS col2
----
4424556

onlyif mysql # aggregate syntax: 
query II rowsort label-9626
SELECT - 44 AS col0, + NULLIF ( MIN( + COALESCE ( ( + + ( + 3 ) ), - 73 ) ), + 28 + + 70 * + 97 ) AS col0
----
-44
3

skipif mysql # not compatible
query II rowsort label-9626
SELECT - 44 AS col0, + NULLIF ( MIN ( + COALESCE ( ( + + ( + 3 ) ), - 73 ) ), + 28 + + 70 * + 97 ) AS col0
----
-44
3

query I rowsort
SELECT 56 + - + 85 + - 83 + + 92
----
-20

query I rowsort
SELECT ALL + 88 * + ( - - 83 ) col2
----
7304

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9629
SELECT 72 * + SUM( ALL CAST( 44 AS SIGNED ) ) * 94 - - COALESCE ( + 28, + - 17 ) AS col2
----
297820

skipif mysql # not compatible
query I rowsort label-9629
SELECT 72 * + SUM ( ALL CAST ( 44 AS INTEGER ) ) * 94 - - COALESCE ( + 28, + - 17 ) AS col2
----
297820

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9630
SELECT ALL + 16 DIV COUNT( * ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-9630
SELECT ALL + 16 / COUNT ( * ) AS col1
----
16

query II rowsort
SELECT ALL 10 AS col1, - 54 + - - 47
----
10
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9632
SELECT ALL + 89 * - COALESCE ( + 31, + 0, - COALESCE ( - ( + - 78 ), MAX( ALL - 35 ) * + 74 ) - + + 53 * - MIN( DISTINCT + - 88 ) * + COUNT( * ) - - CAST( + COUNT( - CAST( NULL AS SIGNED ) ) AS SIGNED ) ) * - 0
----
0

skipif mysql # not compatible
query I rowsort label-9632
SELECT ALL + 89 * - COALESCE ( + 31, + 0, - COALESCE ( - ( + - 78 ), MAX ( ALL - 35 ) * + 74 ) - + + 53 * - MIN ( DISTINCT + - 88 ) * + COUNT ( * ) - - CAST ( + COUNT ( - CAST ( NULL AS INTEGER ) ) AS INTEGER ) ) * - 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9633
SELECT MAX( - 38 ) * 61 * 23 - - 60 AS col1
----
-53254

skipif mysql # not compatible
query I rowsort label-9633
SELECT MAX ( - 38 ) * 61 * 23 - - 60 AS col1
----
-53254

onlyif mysql # aggregate syntax: 
query I rowsort label-9634
SELECT 68 + - ( + - 17 ) + - + COUNT( * ) AS col2
----
84

skipif mysql # not compatible
query I rowsort label-9634
SELECT 68 + - ( + - 17 ) + - + COUNT ( * ) AS col2
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9635
SELECT + 18 AS col1, 90 + - CAST( NULL AS SIGNED ) AS col2
----
18
NULL

skipif mysql # not compatible
query II rowsort label-9635
SELECT + 18 AS col1, 90 + - CAST ( NULL AS INTEGER ) AS col2
----
18
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9636
SELECT + 8 * COALESCE ( + 26, - 19 ) * - NULLIF ( + 83, + NULLIF ( 34, + - 58 + + 62 + + - 2 + + 73 / + 98 / + 97 * + 17 * CASE - + 32 WHEN + 64 * COALESCE ( + + 15, + 46, + + NULLIF ( 14, + COUNT( * ) * + COUNT( * ) ) + + 99 - + 44 ) - 49 + - + 69 - + + CAST( - 93 AS SIGNED ) * - COALESCE ( + 67, + 46 * - 25 ) * CASE COUNT( * ) WHEN + - 93 THEN 30 WHEN + 39 THEN 8 / 0 WHEN + 99 + - 24 THEN NULL END THEN NULL WHEN 84 THEN NULL ELSE CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) * - MAX( - 30 ) + + COUNT( * ) END ) + ( - 23 ) ) * 1 + + 3 + + COUNT( * ) * 14 AS col2
----
-17247

skipif mysql # not compatible
query I rowsort label-9636
SELECT + 8 * COALESCE ( + 26, - 19 ) * - NULLIF ( + 83, + NULLIF ( 34, + - 58 + + 62 + + - 2 + + 73 / + 98 / + 97 * + 17 * CASE - + 32 WHEN + 64 * COALESCE ( + + 15, + 46, + + NULLIF ( 14, + COUNT ( * ) * + COUNT ( * ) ) + + 99 - + 44 ) - 49 + - + 69 - + + CAST ( - 93 AS INTEGER ) * - COALESCE ( + 67, + 46 * - 25 ) * CASE COUNT ( * ) WHEN + - 93 THEN 30 WHEN + 39 THEN 8 / 0 WHEN + 99 + - 24 THEN NULL END THEN NULL WHEN 84 THEN NULL ELSE CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) * - MAX ( - 30 ) + + COUNT ( * ) END ) + ( - 23 ) ) * 1 + + 3 + + COUNT ( * ) * 14 AS col2
----
-17247

onlyif mysql # aggregate syntax: 
query I rowsort label-9637
SELECT ALL 53 + + ( 12 ) + + 56 + - - COUNT( * ) * + 22
----
143

skipif mysql # not compatible
query I rowsort label-9637
SELECT ALL 53 + + ( 12 ) + + 56 + - - COUNT ( * ) * + 22
----
143

query I rowsort
SELECT ALL + + 80 + - 54 AS col1
----
26

query II rowsort
SELECT DISTINCT - - 18 + 52 * - 89 - + + 55, 36 AS col2
----
-4665
36

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9640
SELECT DISTINCT - CAST( + - 31 AS SIGNED ) AS col0, - 58
----
31
-58

skipif mysql # not compatible
query II rowsort label-9640
SELECT DISTINCT - CAST ( + - 31 AS INTEGER ) AS col0, - 58
----
31
-58

query I rowsort
SELECT ALL - ( - - 24 ) + 18 AS col1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9642
SELECT 38 * - + 58 * 54 + MAX( DISTINCT 55 ) AS col0
----
-118961

skipif mysql # not compatible
query I rowsort label-9642
SELECT 38 * - + 58 * 54 + MAX ( DISTINCT 55 ) AS col0
----
-118961

query I rowsort
SELECT ALL - 32 + + 57 AS col1
----
25

query I rowsort
SELECT + ( - 61 ) + - 43
----
-104

query II rowsort
SELECT + 10, + 97 AS col0
----
10
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9646
SELECT ALL - 83 + - 30 + - MAX( - 91 ) * + ( - + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9646
SELECT ALL - 83 + - 30 + - MAX ( - 91 ) * + ( - + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT 3 + + - 48 + - + 4
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-9648
SELECT 93 + - - ( - 5 ) DIV - ( + 50 ) * - 51 AS col0
----
93

skipif mysql # not compatible
query I rowsort label-9648
SELECT 93 + - - ( - 5 ) / - ( + 50 ) * - 51 AS col0
----
93

query II rowsort
SELECT + 33 AS col2, - 62 AS col2
----
33
-62

query I rowsort
SELECT ALL ( - 38 ) - - 99 + + 40
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-9651
SELECT + 52 * 11 * 70 * 57 - - SUM( - 86 ) + 8 * + COUNT( * ) col0
----
2282202

skipif mysql # not compatible
query I rowsort label-9651
SELECT + 52 * 11 * 70 * 57 - - SUM ( - 86 ) + 8 * + COUNT ( * ) col0
----
2282202

query I rowsort
SELECT DISTINCT 31 - + 79 * + - 16
----
1295

query I rowsort
SELECT + 79 + - 20 + 31 AS col2
----
90

query II rowsort
SELECT DISTINCT 12 col1, 91
----
12
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9655
SELECT 92 * - - COUNT( * ) + + - COUNT( * )
----
91

skipif mysql # not compatible
query I rowsort label-9655
SELECT 92 * - - COUNT ( * ) + + - COUNT ( * )
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9656
SELECT DISTINCT 76 DIV MIN( DISTINCT 99 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9656
SELECT DISTINCT 76 / MIN ( DISTINCT 99 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9657
SELECT 10 * + 92 + + CASE - - 24 WHEN 2 + - 72 THEN - 4 + - 19 WHEN 70 / + 43 + + 26 - - - MAX( + 85 ) THEN + + 14 ELSE NULL END + 20 * + 92
----
NULL

skipif mysql # not compatible
query I rowsort label-9657
SELECT 10 * + 92 + + CASE - - 24 WHEN 2 + - 72 THEN - 4 + - 19 WHEN 70 / + 43 + + 26 - - - MAX ( + 85 ) THEN + + 14 ELSE NULL END + 20 * + 92
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9658
SELECT - CAST( NULL AS SIGNED ) * + + 75 AS col1, 67 + - 87 - ( CAST( + - 67 AS SIGNED ) ) * 75 + + 34
----
NULL
5039

skipif mysql # not compatible
query II rowsort label-9658
SELECT - CAST ( NULL AS INTEGER ) * + + 75 AS col1, 67 + - 87 - ( CAST ( + - 67 AS INTEGER ) ) * 75 + + 34
----
NULL
5039

query I rowsort
SELECT ALL - 20 * 67
----
-1340

query I rowsort
SELECT + 93 * - COALESCE ( - 88, - - 79 * - + 10 )
----
8184

onlyif mysql # aggregate syntax: 
query I rowsort label-9661
SELECT ALL MIN( ALL + 40 )
----
40

skipif mysql # not compatible
query I rowsort label-9661
SELECT ALL MIN ( ALL + 40 )
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-9662
SELECT - 87 + + - COUNT( * ), + 32 AS col1
----
-88
32

skipif mysql # not compatible
query II rowsort label-9662
SELECT - 87 + + - COUNT ( * ), + 32 AS col1
----
-88
32

query I rowsort
SELECT ALL 69 * 43
----
2967

query I rowsort
SELECT DISTINCT + 2 * + 43
----
86

query I rowsort
SELECT - COALESCE ( + + 60, + - 30, - - 83 )
----
-60

query I rowsort
SELECT ALL + 85 + 38
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-9667
SELECT DISTINCT + COUNT( - 23 ) + 30 * - - 92
----
2761

skipif mysql # not compatible
query I rowsort label-9667
SELECT DISTINCT + COUNT ( - 23 ) + 30 * - - 92
----
2761

query III rowsort
SELECT ALL - 12 + 92 col0, 67 * - - 45 * + 20 AS col0, 5 AS col1
----
80
60300
5

query I rowsort
SELECT - + 17 * 62
----
-1054

onlyif mysql # aggregate syntax: 
query I rowsort label-9670
SELECT ALL + - 16 * ( + SUM( ALL 15 ) ) - - CASE ( - 62 ) WHEN - 89 THEN NULL WHEN - - 42 + + MAX( 99 ) THEN - 97 ELSE NULL END * + 15 / 96 + - ( AVG ( - + 90 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9670
SELECT ALL + - 16 * ( + SUM ( ALL 15 ) ) - - CASE ( - 62 ) WHEN - 89 THEN NULL WHEN - - 42 + + MAX ( 99 ) THEN - 97 ELSE NULL END * + 15 / 96 + - ( AVG ( - + 90 ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9671
SELECT ALL + 1 * + - CAST( NULL AS DECIMAL ) + + MIN( ALL 28 ) + + 60 - - 40 + NULLIF ( ( - SUM( ALL - ( + + 19 ) ) ), - - 89 ) * + 47 / - + 49 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9671
SELECT ALL + 1 * + - CAST ( NULL AS REAL ) + + MIN ( ALL 28 ) + + 60 - - 40 + NULLIF ( ( - SUM ( ALL - ( + + 19 ) ) ), - - 89 ) * + 47 / - + 49 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9672
SELECT - + MAX( ALL 73 ) DIV - - COUNT( * ) AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-9672
SELECT - + MAX ( ALL 73 ) / - - COUNT ( * ) AS col1
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-9673
SELECT ALL + 93 * + 92 + 34 * - COALESCE ( - 43, + - 28 ) + - COUNT( * ) AS col2
----
10017

skipif mysql # not compatible
query I rowsort label-9673
SELECT ALL + 93 * + 92 + 34 * - COALESCE ( - 43, + - 28 ) + - COUNT ( * ) AS col2
----
10017

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9674
SELECT ALL + + 84 * - 48 * + 52 + + + CASE + - COUNT( * ) WHEN 73 + + 13 THEN + 30 + - + 65 END + + CASE - - 33 WHEN 49 + - COUNT( * ) THEN NULL WHEN + 80 * - 40 / - - ( 41 ) + 78 THEN NULL ELSE - - CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9674
SELECT ALL + + 84 * - 48 * + 52 + + + CASE + - COUNT ( * ) WHEN 73 + + 13 THEN + 30 + - + 65 END + + CASE - - 33 WHEN 49 + - COUNT ( * ) THEN NULL WHEN + 80 * - 40 / - - ( 41 ) + 78 THEN NULL ELSE - - CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9675
SELECT - + COUNT( * ) * + + 75 AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-9675
SELECT - + COUNT ( * ) * + + 75 AS col0
----
-75

query I rowsort
SELECT - 36 * + - 18 + ( - 86 ) * + - 40
----
4088

onlyif mysql # aggregate syntax: 
query I rowsort label-9677
SELECT DISTINCT + CASE - 23 WHEN MIN( DISTINCT + 14 ) + - COUNT( * ) + - COALESCE ( - COUNT( ALL 51 ), 95 ) * + 5 THEN + - 38 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9677
SELECT DISTINCT + CASE - 23 WHEN MIN ( DISTINCT + 14 ) + - COUNT ( * ) + - COALESCE ( - COUNT ( ALL 51 ), 95 ) * + 5 THEN + - 38 END
----
NULL

query I rowsort
SELECT ALL - - 66 * + ( 79 ) - - 12 AS col0
----
5226

onlyif mysql # DIV for integer division: 
query I rowsort label-9679
SELECT ALL 58 DIV + + 17 + + 65 * + ( - 92 )
----
-5977

skipif mysql # not compatible
query I rowsort label-9679
SELECT ALL 58 / + + 17 + + 65 * + ( - 92 )
----
-5977

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9680
SELECT - - COUNT( * ) DIV - 45 * + 80
----
0

skipif mysql # not compatible
query I rowsort label-9680
SELECT - - COUNT ( * ) / - 45 * + 80
----
0

query I rowsort
SELECT ALL + + 94 col2
----
94

query II rowsort
SELECT DISTINCT 98 * 34, - 0 * - + 88 AS col1
----
3332
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9683
SELECT ALL + - COALESCE ( - + MAX( - 80 ), - + 78 DIV - 9, + + ( 49 ) ) col2
----
-80

skipif mysql # not compatible
query I rowsort label-9683
SELECT ALL + - COALESCE ( - + MAX ( - 80 ), - + 78 / - 9, + + ( 49 ) ) col2
----
-80

query I rowsort
SELECT + 86 * + 50 AS col1
----
4300

query II rowsort
SELECT ALL 56 * - 68, 10 AS col2
----
-3808
10

onlyif mysql # DIV for integer division: 
query I rowsort label-9686
SELECT 24 * + 77 + - 36 + + 41 DIV + + 15 AS col0
----
1814

skipif mysql # not compatible
query I rowsort label-9686
SELECT 24 * + 77 + - 36 + + 41 / + + 15 AS col0
----
1814

query I rowsort
SELECT + ( - 75 ) AS col1
----
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-9688
SELECT - COUNT( * ) AS col1, + 69
----
-1
69

skipif mysql # not compatible
query II rowsort label-9688
SELECT - COUNT ( * ) AS col1, + 69
----
-1
69

onlyif mysql # aggregate syntax: 
query II rowsort label-9689
SELECT ALL 88 * + 28 * - 88 col1, + CASE + - COUNT( * ) WHEN - - MAX( + 0 ) + + 18 THEN 92 END
----
-216832
NULL

skipif mysql # not compatible
query II rowsort label-9689
SELECT ALL 88 * + 28 * - 88 col1, + CASE + - COUNT ( * ) WHEN - - MAX ( + 0 ) + + 18 THEN 92 END
----
-216832
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9690
SELECT MIN( DISTINCT + - 73 ) AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-9690
SELECT MIN ( DISTINCT + - 73 ) AS col0
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-9691
SELECT ALL MIN( + 98 )
----
98

skipif mysql # not compatible
query I rowsort label-9691
SELECT ALL MIN ( + 98 )
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9692
SELECT + CAST( NULL AS SIGNED ) - + 53 - - 76 * + CAST( - 89 AS DECIMAL ) * - + ( 87 ) - + + COALESCE ( 80, - COALESCE ( + 84, - - 48 * + NULLIF ( - 7, 54 + - 93 ) * 88 + + 87 + + COUNT( + + 1 ) + - 10 + + 13 * + 60 ) * + 17 + + - COUNT( 64 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9692
SELECT + CAST ( NULL AS INTEGER ) - + 53 - - 76 * + CAST ( - 89 AS REAL ) * - + ( 87 ) - + + COALESCE ( 80, - COALESCE ( + 84, - - 48 * + NULLIF ( - 7, 54 + - 93 ) * 88 + + 87 + + COUNT ( + + 1 ) + - 10 + + 13 * + 60 ) * + 17 + + - COUNT ( 64 ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9693
SELECT + COALESCE ( + NULLIF ( + - 24, - - NULLIF ( - - COUNT( ALL - 27 ), - CASE - 91 WHEN - 57 THEN NULL WHEN + + NULLIF ( + 23, + + 47 - 42 ) + 44 THEN + - COALESCE ( - CAST( NULL AS DECIMAL ), - 1 + - 88 / + + 57 ) END ) * SUM( - NULLIF ( + 79, + 93 ) ) / + 92 + - CASE + - AVG ( DISTINCT + 92 ) WHEN - 48 - - + 63 THEN 29 * + - CAST( + 32 AS SIGNED ) + - 62 * + 28 - 70 + - + 51 END ), - COUNT( * ) * - - COUNT( * ) * - + CAST( NULL AS SIGNED ) ) + - 31 * - 94 * - 83 AS col1
----
-241886

skipif mysql # not compatible
query I rowsort label-9693
SELECT + COALESCE ( + NULLIF ( + - 24, - - NULLIF ( - - COUNT ( ALL - 27 ), - CASE - 91 WHEN - 57 THEN NULL WHEN + + NULLIF ( + 23, + + 47 - 42 ) + 44 THEN + - COALESCE ( - CAST ( NULL AS REAL ), - 1 + - 88 / + + 57 ) END ) * SUM ( - NULLIF ( + 79, + 93 ) ) / + 92 + - CASE + - AVG ( DISTINCT + 92 ) WHEN - 48 - - + 63 THEN 29 * + - CAST ( + 32 AS INTEGER ) + - 62 * + 28 - 70 + - + 51 END ), - COUNT ( * ) * - - COUNT ( * ) * - + CAST ( NULL AS INTEGER ) ) + - 31 * - 94 * - 83 AS col1
----
-241886

onlyif mysql # aggregate syntax: 
query II rowsort label-9694
SELECT ALL CASE + 35 WHEN + + 83 * - - 26 THEN NULL WHEN - SUM( ALL + + 63 ) THEN - 30 ELSE 40 * 73 + + ( + - 94 ) END AS col1, + COUNT( * ) col0
----
2826
1

skipif mysql # not compatible
query II rowsort label-9694
SELECT ALL CASE + 35 WHEN + + 83 * - - 26 THEN NULL WHEN - SUM ( ALL + + 63 ) THEN - 30 ELSE 40 * 73 + + ( + - 94 ) END AS col1, + COUNT ( * ) col0
----
2826
1

query I rowsort
SELECT + 10 + - + 72 AS col2
----
-62

query I rowsort
SELECT ALL 22 + - + 94
----
-72

query I rowsort
SELECT + 28 * ( 92 )
----
2576

query II rowsort
SELECT 13 AS col0, ( - 17 )
----
13
-17

query I rowsort
SELECT + 74 * + 79 AS col2
----
5846

onlyif mysql # aggregate syntax: 
query I rowsort label-9700
SELECT DISTINCT COUNT( 17 ) + + 46 AS col2
----
47

skipif mysql # not compatible
query I rowsort label-9700
SELECT DISTINCT COUNT ( 17 ) + + 46 AS col2
----
47

query II rowsort
SELECT DISTINCT - ( + ( 77 ) ), 24 * + 32 col0
----
-77
768

query I rowsort
SELECT + 71 + - + 89
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9703
SELECT - - 44 * + + COALESCE ( + - 74, 88, - - 76 * + COUNT( * ) ), + 8 DIV - CAST( - + 46 AS SIGNED ) AS col1
----
-3256
0

skipif mysql # not compatible
query II rowsort label-9703
SELECT - - 44 * + + COALESCE ( + - 74, 88, - - 76 * + COUNT ( * ) ), + 8 / - CAST ( - + 46 AS INTEGER ) AS col1
----
-3256
0

query I rowsort
SELECT - + 86 + 31
----
-55

query I rowsort
SELECT ALL + + CASE + 99 WHEN + 15 THEN - - 47 * 21 ELSE NULL END col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9706
SELECT DISTINCT - - COUNT( * ) DIV + 45 - 89
----
-89

skipif mysql # not compatible
query I rowsort label-9706
SELECT DISTINCT - - COUNT ( * ) / + 45 - 89
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-9707
SELECT - - 11 * COUNT( * )
----
11

skipif mysql # not compatible
query I rowsort label-9707
SELECT - - 11 * COUNT ( * )
----
11

query I rowsort
SELECT ALL - NULLIF ( - + 54, + 76 ) * - - 19
----
1026

query I rowsort
SELECT - 34 + + + 86 AS col1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9710
SELECT ALL + + NULLIF ( + + MIN( - + ( + + 55 ) ), MIN( - CASE WHEN NOT ( NULL ) NOT BETWEEN NULL AND + 61 THEN + 45 + 80 * + 6 * + 85 ELSE NULL END ) * 6 * - COALESCE ( - - 33, + + 79 * - + 43 ) + + 96 + + COUNT( * ) )
----
-55

skipif mysql # not compatible
query I rowsort label-9710
SELECT ALL + + NULLIF ( + + MIN ( - + ( + + 55 ) ), MIN ( - CASE WHEN NOT ( NULL ) NOT BETWEEN NULL AND + 61 THEN + 45 + 80 * + 6 * + 85 ELSE NULL END ) * 6 * - COALESCE ( - - 33, + + 79 * - + 43 ) + + 96 + + COUNT ( * ) )
----
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-9711
SELECT ALL + 43 AS col1, - MIN( ALL + ( + 81 ) ) * - + ( + 65 ) AS col0
----
43
5265

skipif mysql # not compatible
query II rowsort label-9711
SELECT ALL + 43 AS col1, - MIN ( ALL + ( + 81 ) ) * - + ( + 65 ) AS col0
----
43
5265

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9712
SELECT + COALESCE ( + 98, + - 20, - 36 + + 23 + + 75 + CAST( 95 AS SIGNED ) DIV - 58 )
----
98

skipif mysql # not compatible
query I rowsort label-9712
SELECT + COALESCE ( + 98, + - 20, - 36 + + 23 + + 75 + CAST ( 95 AS INTEGER ) / - 58 )
----
98

query I rowsort
SELECT ALL - - 33 * 7
----
231

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9714
SELECT - ( + 77 ) + - CAST( NULL AS SIGNED ) / + - ( + 59 ) + + 85 * - - 51 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9714
SELECT - ( + 77 ) + - CAST ( NULL AS INTEGER ) / + - ( + 59 ) + + 85 * - - 51 AS col1
----
NULL

query I rowsort
SELECT + 14 + 19 + 8 AS col2
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9716
SELECT - CAST( - 90 AS SIGNED ) col0
----
90

skipif mysql # not compatible
query I rowsort label-9716
SELECT - CAST ( - 90 AS INTEGER ) col0
----
90

query I rowsort
SELECT 56 * - + 89 AS col1
----
-4984

onlyif mysql # DIV for integer division: 
query I rowsort label-9718
SELECT 62 DIV - - 92
----
0

skipif mysql # not compatible
query I rowsort label-9718
SELECT 62 / - - 92
----
0

query I rowsort
SELECT ALL 41 + + 36
----
77

query I rowsort
SELECT 82 + 37 * + 14 AS col1
----
600

query I rowsort
SELECT CASE - 25 WHEN - + 42 THEN - 14 ELSE NULL END + - - 40 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9722
SELECT ALL + 84 + CAST( NULL AS SIGNED ) * 0
----
NULL

skipif mysql # not compatible
query I rowsort label-9722
SELECT ALL + 84 + CAST ( NULL AS INTEGER ) * 0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9723
SELECT ALL - 30 + MAX( NULLIF ( CAST( - 74 AS SIGNED ), 75 ) ) + - 56 * + - 39
----
2080

skipif mysql # not compatible
query I rowsort label-9723
SELECT ALL - 30 + MAX ( NULLIF ( CAST ( - 74 AS INTEGER ), 75 ) ) + - 56 * + - 39
----
2080

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9724
SELECT DISTINCT 40 + - + NULLIF ( + 46, + CAST( + + 9 AS SIGNED ) * - 79 + + 27 ) AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-9724
SELECT DISTINCT 40 + - + NULLIF ( + 46, + CAST ( + + 9 AS INTEGER ) * - 79 + + 27 ) AS col1
----
-6

query II rowsort
SELECT 23 * 79 AS col2, 66 + 94
----
1817
160

query I rowsort
SELECT COALESCE ( 64, + 45, 52 ) + - 62
----
2

query I rowsort
SELECT DISTINCT + 12 + - 12
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9728
SELECT 13 + + + 46 * - COUNT( * ) + 62
----
29

skipif mysql # not compatible
query I rowsort label-9728
SELECT 13 + + + 46 * - COUNT ( * ) + 62
----
29

query I rowsort
SELECT DISTINCT ( - 55 ) - 56 AS col1
----
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-9730
SELECT - 46 * + 63 + - COUNT( * ) col1
----
-2899

skipif mysql # not compatible
query I rowsort label-9730
SELECT - 46 * + 63 + - COUNT ( * ) col1
----
-2899

onlyif mysql # DIV for integer division: 
query I rowsort label-9731
SELECT DISTINCT 4 DIV - 99
----
0

skipif mysql # not compatible
query I rowsort label-9731
SELECT DISTINCT 4 / - 99
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9732
SELECT DISTINCT COUNT( * ) - - 71
----
72

skipif mysql # not compatible
query I rowsort label-9732
SELECT DISTINCT COUNT ( * ) - - 71
----
72

query I rowsort
SELECT ALL + 95 * + - 98 AS col2
----
-9310

onlyif mysql # aggregate syntax: 
query I rowsort label-9734
SELECT CASE + COUNT( * ) WHEN - 88 * - - NULLIF ( - - COUNT( DISTINCT - - 76 ), - 44 + + 74 ) THEN 83 ELSE + 5 + + 84 END
----
89

skipif mysql # not compatible
query I rowsort label-9734
SELECT CASE + COUNT ( * ) WHEN - 88 * - - NULLIF ( - - COUNT ( DISTINCT - - 76 ), - 44 + + 74 ) THEN 83 ELSE + 5 + + 84 END
----
89

query II rowsort
SELECT 99 + + ( 91 ) * - 81 AS col0, 76 AS col1
----
-7272
76

query I rowsort
SELECT ALL 93 * - 16 * - 66 col0
----
98208

onlyif mysql # aggregate syntax: 
query I rowsort label-9737
SELECT - 73 * + 16 + - - 28 + + + 19 + + 95 + + + CASE - 66 WHEN - 94 THEN - - 53 WHEN - - COUNT( * ) * ( 21 ) THEN NULL WHEN + 24 THEN + + 37 + 48 ELSE NULL END * 0 * - 48 - - 18 + - 13 / - - 86 + - 79 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9737
SELECT - 73 * + 16 + - - 28 + + + 19 + + 95 + + + CASE - 66 WHEN - 94 THEN - - 53 WHEN - - COUNT ( * ) * ( 21 ) THEN NULL WHEN + 24 THEN + + 37 + 48 ELSE NULL END * 0 * - 48 - - 18 + - 13 / - - 86 + - 79 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9738
SELECT - COALESCE ( + 87, + NULLIF ( - NULLIF ( + 90, + COUNT( * ) ), - 99 DIV - 63 ) * - + 58 * CAST( NULL AS SIGNED ) - 22 DIV 98 ) AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-9738
SELECT - COALESCE ( + 87, + NULLIF ( - NULLIF ( + 90, + COUNT ( * ) ), - 99 / - 63 ) * - + 58 * CAST ( NULL AS INTEGER ) - 22 / 98 ) AS col2
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-9739
SELECT DISTINCT - + MIN( 34 ) col0
----
-34

skipif mysql # not compatible
query I rowsort label-9739
SELECT DISTINCT - + MIN ( 34 ) col0
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9740
SELECT ALL - 61 + + CAST( + - 42 AS SIGNED ) AS col1, + COUNT( * )
----
-103
1

skipif mysql # not compatible
query II rowsort label-9740
SELECT ALL - 61 + + CAST ( + - 42 AS INTEGER ) AS col1, + COUNT ( * )
----
-103
1

query I rowsort
SELECT ALL + 97 + - ( - 60 ) + 65 AS col1
----
222

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9742
SELECT DISTINCT - 43 + + + ( - 63 ) * - - NULLIF ( - + COUNT( * ), + CAST( + 61 AS SIGNED ) - + 11 ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-9742
SELECT DISTINCT - 43 + + + ( - 63 ) * - - NULLIF ( - + COUNT ( * ), + CAST ( + 61 AS INTEGER ) - + 11 ) AS col2
----
20

query I rowsort
SELECT DISTINCT + 16 + 42 AS col1
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9744
SELECT ALL + 98 + - 61 * - 13 * - 18 * COUNT( DISTINCT 36 ) AS col2
----
-14176

skipif mysql # not compatible
query I rowsort label-9744
SELECT ALL + 98 + - 61 * - 13 * - 18 * COUNT ( DISTINCT 36 ) AS col2
----
-14176

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9745
SELECT + 74 * + 46 + + 54 DIV NULLIF ( 93, - 1 + 23 * - 21 + - + CAST( 74 AS SIGNED ) ) AS col0
----
3404

skipif mysql # not compatible
query I rowsort label-9745
SELECT + 74 * + 46 + + 54 / NULLIF ( 93, - 1 + 23 * - 21 + - + CAST ( 74 AS INTEGER ) ) AS col0
----
3404

query II rowsort
SELECT 38 AS col0, + 2 AS col0
----
38
2

query II rowsort
SELECT 25, 30 AS col2
----
25
30

query I rowsort
SELECT 6 * + 6
----
36

query I rowsort
SELECT ALL 27 + 36 AS col1
----
63

query I rowsort
SELECT 16 + 38 AS col2
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9751
SELECT COUNT( * ) + + 51
----
52

skipif mysql # not compatible
query I rowsort label-9751
SELECT COUNT ( * ) + + 51
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9752
SELECT 19 AS col1, CAST( + 70 AS SIGNED ) * - + COUNT( * )
----
19
-70

skipif mysql # not compatible
query II rowsort label-9752
SELECT 19 AS col1, CAST ( + 70 AS INTEGER ) * - + COUNT ( * )
----
19
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-9753
SELECT ALL - ( + COUNT( * ) ) - + - 30 * + ( + 17 ) AS col2
----
509

skipif mysql # not compatible
query I rowsort label-9753
SELECT ALL - ( + COUNT ( * ) ) - + - 30 * + ( + 17 ) AS col2
----
509

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9754
SELECT 6 + + ( - COUNT( * ) ) DIV - - ( 86 ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-9754
SELECT 6 + + ( - COUNT ( * ) ) / - - ( 86 ) AS col1
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9755
SELECT + NULLIF ( - - CAST( - MAX( + 91 ) AS SIGNED ), SUM( + 48 ) + 70 * COUNT( * ) ) * + ( 17 )
----
-1547

skipif mysql # not compatible
query I rowsort label-9755
SELECT + NULLIF ( - - CAST ( - MAX ( + 91 ) AS INTEGER ), SUM ( + 48 ) + 70 * COUNT ( * ) ) * + ( 17 )
----
-1547

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9756
SELECT CAST( + + 54 AS SIGNED ) + CAST( NULL AS SIGNED ) * 65 / MIN( 7 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9756
SELECT CAST ( + + 54 AS INTEGER ) + CAST ( NULL AS INTEGER ) * 65 / MIN ( 7 ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 66 * + 16 AS col0
----
-1056

query I rowsort
SELECT ALL - + 67 * + - 10 + + 42 - + ( + + 63 ) + - + 45
----
604

query I rowsort
SELECT + 89 - - 52 + + + 30 * - - 73
----
2331

onlyif mysql # aggregate syntax: 
query I rowsort label-9760
SELECT DISTINCT - 22 * + 5 * + - SUM( + + 20 )
----
2200

skipif mysql # not compatible
query I rowsort label-9760
SELECT DISTINCT - 22 * + 5 * + - SUM ( + + 20 )
----
2200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9761
SELECT 62 + - + ( - - MIN( DISTINCT 26 ) ) + + 69 + - + 74 * - + MAX( + CAST( NULL AS SIGNED ) ) * 95 + - 52 * - 21
----
NULL

skipif mysql # not compatible
query I rowsort label-9761
SELECT 62 + - + ( - - MIN ( DISTINCT 26 ) ) + + 69 + - + 74 * - + MAX ( + CAST ( NULL AS INTEGER ) ) * 95 + - 52 * - 21
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9762
SELECT ALL MIN( + 5 ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-9762
SELECT ALL MIN ( + 5 ) AS col2
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9763
SELECT 93 * - 80 + 81 - COUNT( ALL - 27 ) + + - 29 + - 42 * - NULLIF ( + 53, + NULLIF ( - ( - - CASE - - 48 WHEN + CAST( NULL AS SIGNED ) / - MIN( + 31 ) - + 76 - 22 THEN NULL ELSE COUNT( * ) END ), + - 68 ) / - COUNT( * ) ) - - 47 + + - 69 * - 93 AS col0
----
1301

skipif mysql # not compatible
query I rowsort label-9763
SELECT 93 * - 80 + 81 - COUNT ( ALL - 27 ) + + - 29 + - 42 * - NULLIF ( + 53, + NULLIF ( - ( - - CASE - - 48 WHEN + CAST ( NULL AS INTEGER ) / - MIN ( + 31 ) - + 76 - 22 THEN NULL ELSE COUNT ( * ) END ), + - 68 ) / - COUNT ( * ) ) - - 47 + + - 69 * - 93 AS col0
----
1301

onlyif mysql # aggregate syntax: 
query I rowsort label-9764
SELECT + 55 + COUNT( * ) AS col2
----
56

skipif mysql # not compatible
query I rowsort label-9764
SELECT + 55 + COUNT ( * ) AS col2
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-9765
SELECT - 69 + 81 * 15 AS col2, + 80 + COUNT( * ) AS col1
----
1146
81

skipif mysql # not compatible
query II rowsort label-9765
SELECT - 69 + 81 * 15 AS col2, + 80 + COUNT ( * ) AS col1
----
1146
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9766
SELECT + COUNT( * ) DIV + - 38 - - COUNT( - 72 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9766
SELECT + COUNT ( * ) / + - 38 - - COUNT ( - 72 ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9767
SELECT - MAX( + + 47 ) DIV 52 - - 64 * - + 56 + + MAX( ALL - + 33 ) + + + 65
----
-3552

skipif mysql # not compatible
query I rowsort label-9767
SELECT - MAX ( + + 47 ) / 52 - - 64 * - + 56 + + MAX ( ALL - + 33 ) + + + 65
----
-3552

query II rowsort
SELECT + 92 AS col1, 12 col1
----
92
12

onlyif mysql # DIV for integer division: 
query I rowsort label-9769
SELECT + 10 DIV + - 60
----
0

skipif mysql # not compatible
query I rowsort label-9769
SELECT + 10 / + - 60
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9770
SELECT ALL - COUNT( * ) * + - 57 - - + 1 + 53 * + - 47 * - 65 AS col0
----
161973

skipif mysql # not compatible
query I rowsort label-9770
SELECT ALL - COUNT ( * ) * + - 57 - - + 1 + 53 * + - 47 * - 65 AS col0
----
161973

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9771
SELECT ALL - 54 * + 73 DIV + + COUNT( * ) + + CAST( - - 84 AS SIGNED ) + - ( + 79 ) * - CAST( - + 42 AS SIGNED ) + + - 72
----
-7248

skipif mysql # not compatible
query I rowsort label-9771
SELECT ALL - 54 * + 73 / + + COUNT ( * ) + + CAST ( - - 84 AS INTEGER ) + - ( + 79 ) * - CAST ( - + 42 AS INTEGER ) + + - 72
----
-7248

onlyif mysql # aggregate syntax: 
query I rowsort label-9772
SELECT + SUM( + + 66 )
----
66

skipif mysql # not compatible
query I rowsort label-9772
SELECT + SUM ( + + 66 )
----
66

query I rowsort
SELECT + 11 * 58 AS col1
----
638

onlyif mysql # aggregate syntax: 
query I rowsort label-9774
SELECT COUNT( ALL 68 )
----
1

skipif mysql # not compatible
query I rowsort label-9774
SELECT COUNT ( ALL 68 )
----
1

query I rowsort
SELECT + ( - 55 ) AS col2
----
-55

query I rowsort
SELECT DISTINCT + 12 * 46
----
552

query II rowsort
SELECT - 33 * + 16 AS col1, - 17
----
-528
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-9778
SELECT DISTINCT COALESCE ( - 83, ( - + MAX( - - 1 ) ) * - 58 * SUM( DISTINCT - - 83 ) )
----
-83

skipif mysql # not compatible
query I rowsort label-9778
SELECT DISTINCT COALESCE ( - 83, ( - + MAX ( - - 1 ) ) * - 58 * SUM ( DISTINCT - - 83 ) )
----
-83

query I rowsort
SELECT ALL - 67 - ( 97 ) AS col1
----
-164

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9780
SELECT + 97 DIV - 59 AS col0, - 90 * - 10 * - + MAX( DISTINCT - - 96 ) AS col2
----
-1
-86400

skipif mysql # not compatible
query II rowsort label-9780
SELECT + 97 / - 59 AS col0, - 90 * - 10 * - + MAX ( DISTINCT - - 96 ) AS col2
----
-1
-86400

onlyif mysql # aggregate syntax: 
query I rowsort label-9781
SELECT - COUNT( * ) * 17 * + + 70 col0
----
-1190

skipif mysql # not compatible
query I rowsort label-9781
SELECT - COUNT ( * ) * 17 * + + 70 col0
----
-1190

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9782
SELECT ALL + 95 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9782
SELECT ALL + 95 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-9783
SELECT DISTINCT 2 AS col2, COUNT( - 31 ) DIV + - 25, - 14 AS col0
----
2
0
-14

skipif mysql # not compatible
query III rowsort label-9783
SELECT DISTINCT 2 AS col2, COUNT ( - 31 ) / + - 25, - 14 AS col0
----
2
0
-14

query I rowsort
SELECT DISTINCT - 26 * + 58 AS col1
----
-1508

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9785
SELECT - + ( 41 ) * + COUNT( * ) * - 78 DIV - 3 AS col1
----
-1066

skipif mysql # not compatible
query I rowsort label-9785
SELECT - + ( 41 ) * + COUNT ( * ) * - 78 / - 3 AS col1
----
-1066

query II rowsort
SELECT ALL 91, + 4 AS col2
----
91
4

query II rowsort
SELECT DISTINCT + 3, + 3 AS col2
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9788
SELECT ALL + 13 * - COUNT( * ) + - - 29 AS col2
----
16

skipif mysql # not compatible
query I rowsort label-9788
SELECT ALL + 13 * - COUNT ( * ) + - - 29 AS col2
----
16

query I rowsort
SELECT - + 7 + 56 AS col2
----
49

query II rowsort
SELECT ALL 92, + ( - + 33 ) + 84 * - 25 + - ( + 31 ) AS col1
----
92
-2164

query I rowsort
SELECT - 14 * + 39 * - 65
----
35490

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9792
SELECT + CAST( NULL AS SIGNED ) + + ( COUNT( * ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9792
SELECT + CAST ( NULL AS INTEGER ) + + ( COUNT ( * ) ) AS col2
----
NULL

query II rowsort
SELECT + 15, - 13 + 7 col1
----
15
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9794
SELECT - SUM( 62 ) * + - 8
----
496

skipif mysql # not compatible
query I rowsort label-9794
SELECT - SUM ( 62 ) * + - 8
----
496

onlyif mysql # DIV for integer division: 
query I rowsort label-9795
SELECT ALL + 61 + 46 + - 93 DIV - + 51
----
108

skipif mysql # not compatible
query I rowsort label-9795
SELECT ALL + 61 + 46 + - 93 / - + 51
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-9796
SELECT DISTINCT + + MAX( DISTINCT - 49 ) * - COUNT( * ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-9796
SELECT DISTINCT + + MAX ( DISTINCT - 49 ) * - COUNT ( * ) AS col2
----
49

query I rowsort
SELECT ALL - 86 + 33 + + ( + 67 )
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9798
SELECT DISTINCT + - 42 AS col2, ( - 27 ) DIV - MAX( ALL + 39 ) * - 26
----
-42
0

skipif mysql # not compatible
query II rowsort label-9798
SELECT DISTINCT + - 42 AS col2, ( - 27 ) / - MAX ( ALL + 39 ) * - 26
----
-42
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9799
SELECT ALL + 97 AS col2, MIN( DISTINCT - - 32 ) + - 89 AS col2
----
97
-57

skipif mysql # not compatible
query II rowsort label-9799
SELECT ALL + 97 AS col2, MIN ( DISTINCT - - 32 ) + - 89 AS col2
----
97
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9800
SELECT CAST( + - 14 AS SIGNED ) AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-9800
SELECT CAST ( + - 14 AS INTEGER ) AS col1
----
-14

query I rowsort
SELECT - ( - 93 ) * 7 AS col0
----
651

query I rowsort
SELECT + 17 * - ( + + 47 ) AS col2
----
-799

query I rowsort
SELECT ( - ( 25 ) )
----
-25

query I rowsort
SELECT + COALESCE ( + 26, + 70, - 87 )
----
26

query I rowsort
SELECT ( - ( + + 17 ) ) AS col0
----
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9806
SELECT ALL + ( + 65 ) DIV - + 41 - + COUNT( * ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-9806
SELECT ALL + ( + 65 ) / - + 41 - + COUNT ( * ) AS col1
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9807
SELECT ALL + COUNT( * ) DIV - 6 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9807
SELECT ALL + COUNT ( * ) / - 6 AS col2
----
0

query I rowsort
SELECT ALL + 67 * - 72 - 89 + + 80 col0
----
-4833

onlyif mysql # aggregate syntax: 
query I rowsort label-9809
SELECT ALL MAX( + 3 ) * + 6 * + - 86
----
-1548

skipif mysql # not compatible
query I rowsort label-9809
SELECT ALL MAX ( + 3 ) * + 6 * + - 86
----
-1548

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9810
SELECT + 34 DIV COUNT( + 58 )
----
34

skipif mysql # not compatible
query I rowsort label-9810
SELECT + 34 / COUNT ( + 58 )
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-9811
SELECT + 51 * COUNT( * ) AS col2, 31 AS col1
----
51
31

skipif mysql # not compatible
query II rowsort label-9811
SELECT + 51 * COUNT ( * ) AS col2, 31 AS col1
----
51
31

query I rowsort
SELECT ( + NULLIF ( 23, + + 65 ) ) AS col2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9813
SELECT ALL COUNT( * ) * ( - 48 )
----
-48

skipif mysql # not compatible
query I rowsort label-9813
SELECT ALL COUNT ( * ) * ( - 48 )
----
-48

query I rowsort
SELECT + ( - 71 ) AS col1
----
-71

query I rowsort
SELECT + 74 + 63
----
137

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9816
SELECT + COUNT( * ) * 14 DIV - 55 - - - ( 27 ) + - - 39 + - + 50 AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-9816
SELECT + COUNT ( * ) * 14 / - 55 - - - ( 27 ) + - - 39 + - + 50 AS col2
----
-38

query I rowsort
SELECT + 91 * + - 53
----
-4823

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9818
SELECT - MAX( ALL - + CAST( NULL AS DECIMAL ) ) + + COUNT( * ) * - 58 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9818
SELECT - MAX ( ALL - + CAST ( NULL AS REAL ) ) + + COUNT ( * ) * - 58 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9819
SELECT ALL COALESCE ( - COUNT( * ), 81 + + 30 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9819
SELECT ALL COALESCE ( - COUNT ( * ), 81 + + 30 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-9820
SELECT ALL + 33 * + 66 col1, NULLIF ( SUM( + 46 ), - - 61 ) AS col0
----
2178
46

skipif mysql # not compatible
query II rowsort label-9820
SELECT ALL + 33 * + 66 col1, NULLIF ( SUM ( + 46 ), - - 61 ) AS col0
----
2178
46

query I rowsort
SELECT ALL + - 66 * + 84 - - ( 84 ) col2
----
-5460

query I rowsort
SELECT - ( - - 5 ) * - - 57 AS col1
----
-285

onlyif mysql # aggregate syntax: 
query I rowsort label-9823
SELECT + MAX( - 97 ) * + + COUNT( * ) + + 10 AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-9823
SELECT + MAX ( - 97 ) * + + COUNT ( * ) + + 10 AS col2
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9824
SELECT DISTINCT - COALESCE ( - 37, - CAST( NULL AS SIGNED ) * COUNT( * ) DIV - 39 + - 33 + CASE - 27 WHEN 99 + - 29 THEN + 45 + 7 * + - 71 ELSE + 92 END ) AS col1
----
37

skipif mysql # not compatible
query I rowsort label-9824
SELECT DISTINCT - COALESCE ( - 37, - CAST ( NULL AS INTEGER ) * COUNT ( * ) / - 39 + - 33 + CASE - 27 WHEN 99 + - 29 THEN + 45 + 7 * + - 71 ELSE + 92 END ) AS col1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-9825
SELECT - + MAX( 60 )
----
-60

skipif mysql # not compatible
query I rowsort label-9825
SELECT - + MAX ( 60 )
----
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9826
SELECT ( - + 56 ) DIV 11 DIV - + NULLIF ( + + 88, 76 + - ( + - 20 ) ) + MAX( - 12 ) + - 20
----
-32

skipif mysql # not compatible
query I rowsort label-9826
SELECT ( - + 56 ) / 11 / - + NULLIF ( + + 88, 76 + - ( + - 20 ) ) + MAX ( - 12 ) + - 20
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-9827
SELECT ALL - 90 + - + 72 DIV 25 DIV - 17 col0
----
-90

skipif mysql # not compatible
query I rowsort label-9827
SELECT ALL - 90 + - + 72 / 25 / - 17 col0
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-9828
SELECT ALL COALESCE ( 12, - 17, - 96 * - - 64 DIV + 75 )
----
12

skipif mysql # not compatible
query I rowsort label-9828
SELECT ALL COALESCE ( 12, - 17, - 96 * - - 64 / + 75 )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-9829
SELECT ALL + 21 + + 99 * COUNT( * ) AS col1
----
120

skipif mysql # not compatible
query I rowsort label-9829
SELECT ALL + 21 + + 99 * COUNT ( * ) AS col1
----
120

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9830
SELECT + CASE - COALESCE ( - 17, - 4 * - 76 ) WHEN + - 74 * - - 19 THEN + + 87 WHEN CAST( NULL AS DECIMAL ) THEN NULL END * - 99 + + + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-9830
SELECT + CASE - COALESCE ( - 17, - 4 * - 76 ) WHEN + - 74 * - - 19 THEN + + 87 WHEN CAST ( NULL AS REAL ) THEN NULL END * - 99 + + + 6
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9831
SELECT - 1 DIV - 71
----
0

skipif mysql # not compatible
query I rowsort label-9831
SELECT - 1 / - 71
----
0

query I rowsort
SELECT ALL - 29 + 10 + 32 * + + 26 * + - 31 + + 98
----
-25713

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9833
SELECT 12 + - CAST( NULL AS DECIMAL ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9833
SELECT 12 + - CAST ( NULL AS REAL ) col0
----
NULL

query I rowsort
SELECT - 58 * - - 42
----
-2436

query I rowsort
SELECT 7 - + 36 AS col2
----
-29

query I rowsort
SELECT ALL - ( - + 86 )
----
86

query I rowsort
SELECT ( + 37 ) / - - CASE + + 96 WHEN + ( - 72 ) THEN + 71 * + 26 END * - + 32 * - + 74 + - 21 * + 90 + 53
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9838
SELECT + 36 AS col0, COUNT( ALL 81 ) * + COUNT( * ) AS col1
----
36
1

skipif mysql # not compatible
query II rowsort label-9838
SELECT + 36 AS col0, COUNT ( ALL 81 ) * + COUNT ( * ) AS col1
----
36
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9839
SELECT COUNT( * ) + + 97 * 93 + + 1 * - 30 + - 57
----
8935

skipif mysql # not compatible
query I rowsort label-9839
SELECT COUNT ( * ) + + 97 * 93 + + 1 * - 30 + - 57
----
8935

onlyif mysql # aggregate syntax: 
query I rowsort label-9840
SELECT DISTINCT + COUNT( * ) * + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-9840
SELECT DISTINCT + COUNT ( * ) * + - COUNT ( * )
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-9841
SELECT - 24 * + 19 + + 89, 85 DIV ( - 62 ) AS col0
----
-367
-1

skipif mysql # not compatible
query II rowsort label-9841
SELECT - 24 * + 19 + + 89, 85 / ( - 62 ) AS col0
----
-367
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9842
SELECT 97 DIV + 54
----
1

skipif mysql # not compatible
query I rowsort label-9842
SELECT 97 / + 54
----
1

query II rowsort
SELECT DISTINCT - 67, 21 AS col1
----
-67
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9844
SELECT ALL 68 DIV - - COUNT( * )
----
68

skipif mysql # not compatible
query I rowsort label-9844
SELECT ALL 68 / - - COUNT ( * )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9845
SELECT 51 + + + 16 + + 34 * + - 53 * + 50 - - COUNT( * )
----
-90032

skipif mysql # not compatible
query I rowsort label-9845
SELECT 51 + + + 16 + + 34 * + - 53 * + 50 - - COUNT ( * )
----
-90032

onlyif mysql # DIV for integer division: 
query I rowsort label-9846
SELECT 22 DIV - 24
----
0

skipif mysql # not compatible
query I rowsort label-9846
SELECT 22 / - 24
----
0

query II rowsort
SELECT + 64, + 77 AS col0
----
64
77

query II rowsort
SELECT + 67, - 79 AS col0
----
67
-79

query I rowsort
SELECT ALL - ( CASE - 23 WHEN + 83 * - ( - + 59 ) * + + 7 THEN - 72 END )
----
NULL

query I rowsort
SELECT ALL 86 * - 97
----
-8342

onlyif mysql # aggregate syntax: 
query I rowsort label-9851
SELECT COUNT( * ) * 16 + - + ( - 8 ) + 48 col1
----
72

skipif mysql # not compatible
query I rowsort label-9851
SELECT COUNT ( * ) * 16 + - + ( - 8 ) + 48 col1
----
72

query I rowsort
SELECT DISTINCT - 35 + + 14
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9853
SELECT - 73 * - 54 + + 23 + - 89 DIV COUNT( 42 ) * + + 25 AS col0
----
1740

skipif mysql # not compatible
query I rowsort label-9853
SELECT - 73 * - 54 + + 23 + - 89 / COUNT ( 42 ) * + + 25 AS col0
----
1740

onlyif mysql # aggregate syntax: 
query I rowsort label-9854
SELECT DISTINCT 48 * - CASE + + COUNT( * ) WHEN - 65 + + 2 THEN NULL ELSE + + 16 END + 6 col0
----
-762

skipif mysql # not compatible
query I rowsort label-9854
SELECT DISTINCT 48 * - CASE + + COUNT ( * ) WHEN - 65 + + 2 THEN NULL ELSE + + 16 END + 6 col0
----
-762

query II rowsort
SELECT 80 * 79 + - 36 + 9 AS col2, 7
----
6293
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9856
SELECT COUNT( * ) - - - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-9856
SELECT COUNT ( * ) - - - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9857
SELECT - - CASE + + 24 WHEN + + 27 THEN NULL WHEN COUNT( * ) THEN + + 9 + + 27 WHEN - 15 + - 96 * + 62 + + + COALESCE ( + COUNT( * ), + 20 ) / + 37 + + + 43 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9857
SELECT - - CASE + + 24 WHEN + + 27 THEN NULL WHEN COUNT ( * ) THEN + + 9 + + 27 WHEN - 15 + - 96 * + 62 + + + COALESCE ( + COUNT ( * ), + 20 ) / + 37 + + + 43 THEN NULL END
----
NULL

query I rowsort
SELECT - 5 + 2
----
-3

query I rowsort
SELECT DISTINCT 75 + + 32
----
107

query II rowsort
SELECT - - 70 AS col1, 43 AS col2
----
70
43

query II rowsort
SELECT - 49, 10 - - 73 AS col2
----
-49
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9862
SELECT ALL + CASE - + 40 WHEN - - ( + - 42 ) THEN - CAST( - + 34 AS SIGNED ) WHEN + 27 + - 19 + - - 41 * + + COUNT( + 52 ) + + 55 - 50 / CAST( NULL AS SIGNED ) THEN + - COUNT( * ) END + - ( COUNT( * ) ) + - 82 * - - 45 * + - 50
----
NULL

skipif mysql # not compatible
query I rowsort label-9862
SELECT ALL + CASE - + 40 WHEN - - ( + - 42 ) THEN - CAST ( - + 34 AS INTEGER ) WHEN + 27 + - 19 + - - 41 * + + COUNT ( + 52 ) + + 55 - 50 / CAST ( NULL AS INTEGER ) THEN + - COUNT ( * ) END + - ( COUNT ( * ) ) + - 82 * - - 45 * + - 50
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9863
SELECT + COUNT( DISTINCT - 8 ) + - 11 + - NULLIF ( + + 21, 4 )
----
-31

skipif mysql # not compatible
query I rowsort label-9863
SELECT + COUNT ( DISTINCT - 8 ) + - 11 + - NULLIF ( + + 21, 4 )
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-9864
SELECT + COALESCE ( 30, - 72 * CASE COALESCE ( 8, - + COUNT( * ) ) WHEN + - 87 THEN NULL ELSE - 31 * + - COUNT( * ) * + + 83 END + - 54, - 78 * + + COUNT( * ) * - - 84 + ( - 90 ) * + - COUNT( * ) + COALESCE ( + 57, 80 ) ) * + 49 * - ( - 64 ) AS col2
----
94080

skipif mysql # not compatible
query I rowsort label-9864
SELECT + COALESCE ( 30, - 72 * CASE COALESCE ( 8, - + COUNT ( * ) ) WHEN + - 87 THEN NULL ELSE - 31 * + - COUNT ( * ) * + + 83 END + - 54, - 78 * + + COUNT ( * ) * - - 84 + ( - 90 ) * + - COUNT ( * ) + COALESCE ( + 57, 80 ) ) * + 49 * - ( - 64 ) AS col2
----
94080

onlyif mysql # aggregate syntax: 
query I rowsort label-9865
SELECT - - MIN( + 84 )
----
84

skipif mysql # not compatible
query I rowsort label-9865
SELECT - - MIN ( + 84 )
----
84

query I rowsort
SELECT 86 * 49 + - ( - + 65 )
----
4279

query I rowsort
SELECT + ( ( + - 96 ) ) AS col2
----
-96

query I rowsort
SELECT ALL - 98 - - - 17
----
-115

query I rowsort
SELECT DISTINCT 11 * 83
----
913

query I rowsort
SELECT 0 * - 52 * 85 AS col1
----
0

query II rowsort
SELECT ALL 46 * + 13 AS col0, + 58 AS col2
----
598
58

onlyif mysql # aggregate syntax: 
query II rowsort label-9872
SELECT 35 * - ( - + 62 ) - - + COUNT( * ), - 98 col0
----
2171
-98

skipif mysql # not compatible
query II rowsort label-9872
SELECT 35 * - ( - + 62 ) - - + COUNT ( * ), - 98 col0
----
2171
-98

query I rowsort
SELECT ALL - ( - 45 ) AS col1
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9874
SELECT - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) / + 59 + - - 62 - + 14
----
NULL

skipif mysql # not compatible
query I rowsort label-9874
SELECT - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) / + 59 + - - 62 - + 14
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9875
SELECT DISTINCT - COUNT( ALL - 44 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9875
SELECT DISTINCT - COUNT ( ALL - 44 ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9876
SELECT DISTINCT + CAST( NULL AS SIGNED ) * ( - + 37 ) + - 2 * 2, MAX( ( - - 25 ) ) * + 32 + + 36 AS col1
----
NULL
836

skipif mysql # not compatible
query II rowsort label-9876
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * ( - + 37 ) + - 2 * 2, MAX ( ( - - 25 ) ) * + 32 + + 36 AS col1
----
NULL
836

query I rowsort
SELECT ALL 31 * + - COALESCE ( + + 60, - NULLIF ( + 91, + 64 ) * 91 + + 87 - 18 * + 98 + - 26 ) + - 29 * ( 42 ) AS col2
----
-3078

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9878
SELECT 51 * 12 * + ( + - CAST( NULL AS SIGNED ) ) * 83 * 84 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9878
SELECT 51 * 12 * + ( + - CAST ( NULL AS INTEGER ) ) * 83 * 84 AS col0
----
NULL

query I rowsort
SELECT ALL - 73 * - - 88
----
-6424

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9880
SELECT - - COUNT( - 55 ) DIV - - 42
----
0

skipif mysql # not compatible
query I rowsort label-9880
SELECT - - COUNT ( - 55 ) / - - 42
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9881
SELECT - + 76 + COUNT( * ) AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-9881
SELECT - + 76 + COUNT ( * ) AS col2
----
-75

query I rowsort
SELECT + ( 32 ) * + - 58 - 14
----
-1870

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9883
SELECT ALL + - CASE + 75 WHEN + CASE 96 WHEN - + NULLIF ( - 14, 78 * - + NULLIF ( - + COUNT( * ), + + 78 ) ) THEN - - 48 ELSE + 27 END THEN + COUNT( * ) ELSE + - 75 / + + AVG ( 98 ) + + COUNT( - 51 ) + - SUM( DISTINCT - CAST( NULL AS SIGNED ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9883
SELECT ALL + - CASE + 75 WHEN + CASE 96 WHEN - + NULLIF ( - 14, 78 * - + NULLIF ( - + COUNT ( * ), + + 78 ) ) THEN - - 48 ELSE + 27 END THEN + COUNT ( * ) ELSE + - 75 / + + AVG ( 98 ) + + COUNT ( - 51 ) + - SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) END
----
NULL

query I rowsort
SELECT + 47 * - + 38 * + 38 AS col2
----
-67868

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9885
SELECT ALL + 73 * 33 + - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9885
SELECT ALL + 73 * 33 + - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9886
SELECT DISTINCT - 62 + 29 * + COUNT( * )
----
-33

skipif mysql # not compatible
query I rowsort label-9886
SELECT DISTINCT - 62 + 29 * + COUNT ( * )
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-9887
SELECT ALL - 99 * - ( - - 7 ) * + 91 + + COUNT( * ) + + 5
----
63069

skipif mysql # not compatible
query I rowsort label-9887
SELECT ALL - 99 * - ( - - 7 ) * + 91 + + COUNT ( * ) + + 5
----
63069

onlyif mysql # aggregate syntax: 
query I rowsort label-9888
SELECT DISTINCT COUNT( * ) + + 43 AS col2
----
44

skipif mysql # not compatible
query I rowsort label-9888
SELECT DISTINCT COUNT ( * ) + + 43 AS col2
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-9889
SELECT ALL + COUNT( * ) * 78
----
78

skipif mysql # not compatible
query I rowsort label-9889
SELECT ALL + COUNT ( * ) * 78
----
78

onlyif mysql # aggregate syntax: 
query II rowsort label-9890
SELECT ALL + COUNT( * ) * + 83 col1, + 10 * + + 68 AS col1
----
83
680

skipif mysql # not compatible
query II rowsort label-9890
SELECT ALL + COUNT ( * ) * + 83 col1, + 10 * + + 68 AS col1
----
83
680

onlyif mysql # aggregate syntax: 
query I rowsort label-9891
SELECT + ( 42 ) + + COUNT( * )
----
43

skipif mysql # not compatible
query I rowsort label-9891
SELECT + ( 42 ) + + COUNT ( * )
----
43

query II rowsort
SELECT DISTINCT ( - 58 ) AS col0, 49 * - 16
----
-58
-784

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9893
SELECT ALL 32 * - 86 DIV COUNT( * ) AS col1
----
-2752

skipif mysql # not compatible
query I rowsort label-9893
SELECT ALL 32 * - 86 / COUNT ( * ) AS col1
----
-2752

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9894
SELECT + 58 - 25 + NULLIF ( - 65, - - 62 * + COUNT( ALL - - CAST( 48 AS SIGNED ) ) + - COUNT( * ) * + - 70 ) AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-9894
SELECT + 58 - 25 + NULLIF ( - 65, - - 62 * + COUNT ( ALL - - CAST ( 48 AS INTEGER ) ) + - COUNT ( * ) * + - 70 ) AS col2
----
-32

query I rowsort
SELECT ALL - 76 * + 88 AS col0
----
-6688

query I rowsort
SELECT + 34 + - 72 AS col0
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-9897
SELECT + 81 * 58 * + - ( + COUNT( * ) ) col1
----
-4698

skipif mysql # not compatible
query I rowsort label-9897
SELECT + 81 * 58 * + - ( + COUNT ( * ) ) col1
----
-4698

query I rowsort
SELECT - 87 * + 38 AS col2
----
-3306

onlyif mysql # aggregate syntax: 
query I rowsort label-9899
SELECT ALL SUM( ALL 71 ) * + ( 91 ) + - + ( + + COUNT( + 93 ) ) + - ( - ( 67 ) )
----
6527

skipif mysql # not compatible
query I rowsort label-9899
SELECT ALL SUM ( ALL 71 ) * + ( 91 ) + - + ( + + COUNT ( + 93 ) ) + - ( - ( 67 ) )
----
6527

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9900
SELECT - ( + 20 ) DIV 62 + + - COALESCE ( + 45, - 4 + 27 + + 35 ) + - MIN( 4 ) * 6 * - - 14 AS col1
----
-381

skipif mysql # not compatible
query I rowsort label-9900
SELECT - ( + 20 ) / 62 + + - COALESCE ( + 45, - 4 + 27 + + 35 ) + - MIN ( 4 ) * 6 * - - 14 AS col1
----
-381

onlyif mysql # aggregate syntax: 
query II rowsort label-9901
SELECT ALL + CASE COUNT( * ) WHEN + 49 / 74 THEN + - 82 END, - 11 * 79 + + 72 + - - 34 col1
----
NULL
-763

skipif mysql # not compatible
query II rowsort label-9901
SELECT ALL + CASE COUNT ( * ) WHEN + 49 / 74 THEN + - 82 END, - 11 * 79 + + 72 + - - 34 col1
----
NULL
-763

onlyif mysql # aggregate syntax: 
query I rowsort label-9902
SELECT + 51 + - 67 - NULLIF ( + + COALESCE ( + COUNT( * ), 78 ), 17 * 42 * 82 + + 13 + - 67 ) AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-9902
SELECT + 51 + - 67 - NULLIF ( + + COALESCE ( + COUNT ( * ), 78 ), 17 * 42 * 82 + + 13 + - 67 ) AS col0
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-9903
SELECT ALL + 31 DIV ( 66 ) * 93 + - 43 + - ( 84 )
----
-127

skipif mysql # not compatible
query I rowsort label-9903
SELECT ALL + 31 / ( 66 ) * 93 + - 43 + - ( 84 )
----
-127

query I rowsort
SELECT + ( - + 2 )
----
-2

query I rowsort
SELECT + 27 * - - 4
----
108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9906
SELECT - 45 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9906
SELECT - 45 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9907
SELECT + 71 * - + COUNT( * ) * - 49 + + + COUNT( * ) * 36
----
3515

skipif mysql # not compatible
query I rowsort label-9907
SELECT + 71 * - + COUNT ( * ) * - 49 + + + COUNT ( * ) * 36
----
3515

onlyif mysql # aggregate syntax: 
query I rowsort label-9908
SELECT ( + COUNT( + 97 ) )
----
1

skipif mysql # not compatible
query I rowsort label-9908
SELECT ( + COUNT ( + 97 ) )
----
1

query I rowsort
SELECT ALL 95 * - 93 + + 39 * - 98
----
-12657

onlyif mysql # aggregate syntax: 
query I rowsort label-9910
SELECT + SUM( 10 ) * - 68 AS col0
----
-680

skipif mysql # not compatible
query I rowsort label-9910
SELECT + SUM ( 10 ) * - 68 AS col0
----
-680

onlyif mysql # aggregate syntax: 
query I rowsort label-9911
SELECT COALESCE ( 59, + 48, COUNT( * ) ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-9911
SELECT COALESCE ( 59, + 48, COUNT ( * ) ) AS col0
----
59

query I rowsort
SELECT - 61 * 31
----
-1891

query I rowsort
SELECT ALL - 42 * 48 AS col0
----
-2016

onlyif mysql # aggregate syntax: 
query I rowsort label-9914
SELECT COALESCE ( - 16, COUNT( * ) * + 31, 59 ) AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-9914
SELECT COALESCE ( - 16, COUNT ( * ) * + 31, 59 ) AS col2
----
-16

query I rowsort
SELECT ALL - 89 * 1 + 32 col0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-9916
SELECT ALL 51 * - COUNT( * ) - - COUNT( DISTINCT + 76 ) AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-9916
SELECT ALL 51 * - COUNT ( * ) - - COUNT ( DISTINCT + 76 ) AS col0
----
-50

query I rowsort
SELECT ALL - 43 * + 33 AS col0
----
-1419

onlyif mysql # aggregate syntax: 
query I rowsort label-9918
SELECT - COUNT( * ) + + 71 AS col1
----
70

skipif mysql # not compatible
query I rowsort label-9918
SELECT - COUNT ( * ) + + 71 AS col1
----
70

query I rowsort
SELECT DISTINCT - 25 * - 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9920
SELECT - SUM( 87 ) * + 16
----
-1392

skipif mysql # not compatible
query I rowsort label-9920
SELECT - SUM ( 87 ) * + 16
----
-1392

query I rowsort
SELECT - 1 * 77 col1
----
-77

query I rowsort
SELECT - 71 - 3
----
-74

query I rowsort
SELECT - NULLIF ( + 94, 69 ) AS col2
----
-94

query I rowsort
SELECT 71 * + 81 + - 66 * 19
----
4497

onlyif mysql # DIV for integer division: 
query I rowsort label-9925
SELECT + 53 DIV 69
----
0

skipif mysql # not compatible
query I rowsort label-9925
SELECT + 53 / 69
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9926
SELECT ALL COUNT( + 68 ) DIV - 51
----
0

skipif mysql # not compatible
query I rowsort label-9926
SELECT ALL COUNT ( + 68 ) / - 51
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9927
SELECT - ( 21 ) * + COUNT( * )
----
-21

skipif mysql # not compatible
query I rowsort label-9927
SELECT - ( 21 ) * + COUNT ( * )
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9928
SELECT - 59 + - COUNT( * ) DIV 88 AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-9928
SELECT - 59 + - COUNT ( * ) / 88 AS col2
----
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-9929
SELECT + 17 DIV 48 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9929
SELECT + 17 / 48 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9930
SELECT ALL + 80 DIV - MAX( DISTINCT + 31 * - 17 )
----
0

skipif mysql # not compatible
query I rowsort label-9930
SELECT ALL + 80 / - MAX ( DISTINCT + 31 * - 17 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9931
SELECT + 35 + + COUNT( * )
----
36

skipif mysql # not compatible
query I rowsort label-9931
SELECT + 35 + + COUNT ( * )
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9932
SELECT - 5 * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9932
SELECT - 5 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL 17 * 69 AS col2
----
1173

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9934
SELECT + COUNT( 79 ) DIV - 73
----
0

skipif mysql # not compatible
query I rowsort label-9934
SELECT + COUNT ( 79 ) / - 73
----
0

query I rowsort
SELECT - 99 * 59
----
-5841

onlyif mysql # aggregate syntax: 
query I rowsort label-9936
SELECT + COUNT( * ) + 49 * 82 AS col1
----
4019

skipif mysql # not compatible
query I rowsort label-9936
SELECT + COUNT ( * ) + 49 * 82 AS col1
----
4019

query I rowsort
SELECT + 75 * 5 AS col2
----
375

query I rowsort
SELECT + 81 + 5
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9939
SELECT DISTINCT COALESCE ( - ( + 31 ), - 9, COUNT( 77 ) - ( - 88 ) * 71, + ( - COUNT( * ) ) ) + - 18 * 93
----
-1705

skipif mysql # not compatible
query I rowsort label-9939
SELECT DISTINCT COALESCE ( - ( + 31 ), - 9, COUNT ( 77 ) - ( - 88 ) * 71, + ( - COUNT ( * ) ) ) + - 18 * 93
----
-1705

onlyif mysql # aggregate syntax: 
query I rowsort label-9940
SELECT DISTINCT - 91 + COUNT( - 32 )
----
-90

skipif mysql # not compatible
query I rowsort label-9940
SELECT DISTINCT - 91 + COUNT ( - 32 )
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-9941
SELECT ALL 39 + 70 * COALESCE ( + MAX( DISTINCT - 19 ), - 89 + 65 ) AS col0
----
-1291

skipif mysql # not compatible
query I rowsort label-9941
SELECT ALL 39 + 70 * COALESCE ( + MAX ( DISTINCT - 19 ), - 89 + 65 ) AS col0
----
-1291

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9942
SELECT - CAST( NULLIF ( + ( CAST( 59 AS SIGNED ) ), - 1 + 2 ) AS SIGNED )
----
-59

skipif mysql # not compatible
query I rowsort label-9942
SELECT - CAST ( NULLIF ( + ( CAST ( 59 AS INTEGER ) ), - 1 + 2 ) AS INTEGER )
----
-59

query I rowsort
SELECT ALL ( + 85 ) + 45 * + 55
----
2560

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9944
SELECT - 29 * - COALESCE ( NULLIF ( - 42, + 17 * 66 + + COALESCE ( + CAST( NULL AS SIGNED ), - 97 - COUNT( * ) ) ), 15, NULLIF ( - SUM( + 9 ), + 16 / 6 + NULLIF ( 21 + MIN( 33 ) * - 86, - 38 ) * + 34 ) ) - 28 * - COUNT( * )
----
-1190

skipif mysql # not compatible
query I rowsort label-9944
SELECT - 29 * - COALESCE ( NULLIF ( - 42, + 17 * 66 + + COALESCE ( + CAST ( NULL AS INTEGER ), - 97 - COUNT ( * ) ) ), 15, NULLIF ( - SUM ( + 9 ), + 16 / 6 + NULLIF ( 21 + MIN ( 33 ) * - 86, - 38 ) * + 34 ) ) - 28 * - COUNT ( * )
----
-1190

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9945
SELECT COUNT( * ) DIV 79 - + 99 AS col1
----
-99

skipif mysql # not compatible
query I rowsort label-9945
SELECT COUNT ( * ) / 79 - + 99 AS col1
----
-99

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9946
SELECT - CAST( + 20 AS SIGNED ) DIV 53 col2
----
0

skipif mysql # not compatible
query I rowsort label-9946
SELECT - CAST ( + 20 AS INTEGER ) / 53 col2
----
0

query I rowsort
SELECT ALL - ( 31 ) + + 22
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9948
SELECT DISTINCT 80 - + NULLIF ( ( 53 ), SUM( ALL + 89 ) ) DIV 67
----
80

skipif mysql # not compatible
query I rowsort label-9948
SELECT DISTINCT 80 - + NULLIF ( ( 53 ), SUM ( ALL + 89 ) ) / 67
----
80

query I rowsort
SELECT + 57 * - 58 - 15 * 39
----
-3891

onlyif mysql # DIV for integer division: 
query I rowsort label-9950
SELECT ALL 25 DIV 38
----
0

skipif mysql # not compatible
query I rowsort label-9950
SELECT ALL 25 / 38
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9951
SELECT + 65 * - CASE 29 WHEN + COUNT( * ) - 59 THEN NULL ELSE - 93 END + - 35
----
6010

skipif mysql # not compatible
query I rowsort label-9951
SELECT + 65 * - CASE 29 WHEN + COUNT ( * ) - 59 THEN NULL ELSE - 93 END + - 35
----
6010

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9952
SELECT 45 * - NULLIF ( COUNT( * ), CASE 81 WHEN - 85 THEN 53 + 83 * 50 END + - COALESCE ( COUNT( ALL 6 ) + + 16, - CAST( - 78 AS SIGNED ) ) * + 87 ) col1
----
-45

skipif mysql # not compatible
query I rowsort label-9952
SELECT 45 * - NULLIF ( COUNT ( * ), CASE 81 WHEN - 85 THEN 53 + 83 * 50 END + - COALESCE ( COUNT ( ALL 6 ) + + 16, - CAST ( - 78 AS INTEGER ) ) * + 87 ) col1
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-9953
SELECT + 77 * 63 + - COUNT( * )
----
4850

skipif mysql # not compatible
query I rowsort label-9953
SELECT + 77 * 63 + - COUNT ( * )
----
4850

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9954
SELECT 92 * - ( 10 * + 78 + ( - 71 + + COUNT( * ) ) DIV - MIN( 73 ) )
----
-71760

skipif mysql # not compatible
query I rowsort label-9954
SELECT 92 * - ( 10 * + 78 + ( - 71 + + COUNT ( * ) ) / - MIN ( 73 ) )
----
-71760

onlyif mysql # aggregate syntax: 
query I rowsort label-9955
SELECT COUNT( * ) + 41 AS col1
----
42

skipif mysql # not compatible
query I rowsort label-9955
SELECT COUNT ( * ) + 41 AS col1
----
42

query I rowsort
SELECT DISTINCT + + ( 70 ) * 79
----
5530

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9957
SELECT + 58 + - COUNT( * ) DIV 36 AS col1
----
58

skipif mysql # not compatible
query I rowsort label-9957
SELECT + 58 + - COUNT ( * ) / 36 AS col1
----
58

query I rowsort
SELECT DISTINCT + 28 * 54
----
1512

onlyif mysql # DIV for integer division: 
query I rowsort label-9959
SELECT 63 + CASE 61 WHEN ( - 42 ) THEN NULL WHEN 83 * + 57 THEN + 14 DIV 37 ELSE + 68 * + 88 END AS col2
----
6047

skipif mysql # not compatible
query I rowsort label-9959
SELECT 63 + CASE 61 WHEN ( - 42 ) THEN NULL WHEN 83 * + 57 THEN + 14 / 37 ELSE + 68 * + 88 END AS col2
----
6047

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9960
SELECT CAST( 40 AS SIGNED ) * + 4 AS col1
----
160

skipif mysql # not compatible
query I rowsort label-9960
SELECT CAST ( 40 AS INTEGER ) * + 4 AS col1
----
160

query I rowsort
SELECT 26 * + ( + 96 ) * + 32 AS col1
----
79872

query I rowsort
SELECT ALL + 76 + 79 + + 11 AS col0
----
166

query I rowsort
SELECT 97 + + - 31
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-9964
SELECT 6 + 84 DIV + 27
----
9

skipif mysql # not compatible
query I rowsort label-9964
SELECT 6 + 84 / + 27
----
9

query I rowsort
SELECT 16 + + 72 + 1
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9966
SELECT ALL - 22 + - COUNT( * )
----
-23

skipif mysql # not compatible
query I rowsort label-9966
SELECT ALL - 22 + - COUNT ( * )
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-9967
SELECT DISTINCT + 31 + + + COUNT( * ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-9967
SELECT DISTINCT + 31 + + + COUNT ( * ) AS col0
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9968
SELECT 32 - MAX( ALL 35 ) + - CAST( - MIN( ALL 22 ) AS SIGNED )
----
19

skipif mysql # not compatible
query I rowsort label-9968
SELECT 32 - MAX ( ALL 35 ) + - CAST ( - MIN ( ALL 22 ) AS INTEGER )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-9969
SELECT COUNT( * ) - + 84 + 87 * ( + 63 ) AS col2
----
5398

skipif mysql # not compatible
query I rowsort label-9969
SELECT COUNT ( * ) - + 84 + 87 * ( + 63 ) AS col2
----
5398

onlyif mysql # aggregate syntax: 
query I rowsort label-9970
SELECT DISTINCT 57 * + MAX( 12 ) AS col0
----
684

skipif mysql # not compatible
query I rowsort label-9970
SELECT DISTINCT 57 * + MAX ( 12 ) AS col0
----
684

onlyif mysql # aggregate syntax: 
query I rowsort label-9971
SELECT DISTINCT - ( + 58 ) + - COUNT( * ) * - SUM( 27 ) col1
----
-31

skipif mysql # not compatible
query I rowsort label-9971
SELECT DISTINCT - ( + 58 ) + - COUNT ( * ) * - SUM ( 27 ) col1
----
-31

query I rowsort
SELECT ALL - 14 + 49
----
35

query I rowsort
SELECT 67 * 72 AS col1
----
4824

query I rowsort
SELECT ALL 97 * 77
----
7469

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9975
SELECT SUM( + - 63 ) DIV COUNT( * ) + - 9
----
-72

skipif mysql # not compatible
query I rowsort label-9975
SELECT SUM ( + - 63 ) / COUNT ( * ) + - 9
----
-72

query I rowsort
SELECT ( - + 60 ) * 40 - - 62 AS col0
----
-2338

query I rowsort
SELECT DISTINCT + 60 * + - 15 * + 34
----
-30600

onlyif mysql # aggregate syntax: 
query I rowsort label-9978
SELECT - 99 * - COUNT( ALL + ( + 45 ) )
----
99

skipif mysql # not compatible
query I rowsort label-9978
SELECT - 99 * - COUNT ( ALL + ( + 45 ) )
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9979
SELECT 91 + + ( + MAX( ALL + 37 ) ) AS col0
----
128

skipif mysql # not compatible
query I rowsort label-9979
SELECT 91 + + ( + MAX ( ALL + 37 ) ) AS col0
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-9980
SELECT ALL - MIN( ALL - - 19 ) AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-9980
SELECT ALL - MIN ( ALL - - 19 ) AS col0
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-9981
SELECT + 42 DIV 41 + 34
----
35

skipif mysql # not compatible
query I rowsort label-9981
SELECT + 42 / 41 + 34
----
35

query I rowsort
SELECT DISTINCT 14 * + 81 AS col0
----
1134

query I rowsort
SELECT ALL + 50 * 91
----
4550

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9984
SELECT DISTINCT 81 * CAST( + COUNT( + 81 ) AS SIGNED ) - - 72 * + 7
----
585

skipif mysql # not compatible
query I rowsort label-9984
SELECT DISTINCT 81 * CAST ( + COUNT ( + 81 ) AS INTEGER ) - - 72 * + 7
----
585

query I rowsort
SELECT ALL - + ( + - 37 )
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9986
SELECT ALL CAST( + 21 AS SIGNED ) * - 10 AS col1
----
-210

skipif mysql # not compatible
query I rowsort label-9986
SELECT ALL CAST ( + 21 AS INTEGER ) * - 10 AS col1
----
-210

query I rowsort
SELECT DISTINCT - 58 col0
----
-58

query I rowsort
SELECT DISTINCT + 99 + - 98 AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9989
SELECT + 65 / - CAST( NULL AS SIGNED ) * ( 30 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9989
SELECT + 65 / - CAST ( NULL AS INTEGER ) * ( 30 )
----
NULL

query I rowsort
SELECT ALL 39 + 40 * 90
----
3639

onlyif mysql # DIV for integer division: 
query I rowsort label-9991
SELECT DISTINCT 35 DIV 46
----
0

skipif mysql # not compatible
query I rowsort label-9991
SELECT DISTINCT 35 / 46
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9992
SELECT ( - 61 ) + 93 + + COUNT( * )
----
33

skipif mysql # not compatible
query I rowsort label-9992
SELECT ( - 61 ) + 93 + + COUNT ( * )
----
33

query I rowsort
SELECT 9 - 38 * - ( - 73 ) AS col2
----
-2765

onlyif mysql # DIV for integer division: 
query I rowsort label-9994
SELECT 16 DIV + - ( + 28 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9994
SELECT 16 / + - ( + 28 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9995
SELECT COUNT( * ) * 79 + - 83
----
-4

skipif mysql # not compatible
query I rowsort label-9995
SELECT COUNT ( * ) * 79 + - 83
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-9996
SELECT ALL COALESCE ( + + 57, - + 90, 89 * + 87 ) + - COUNT( * ) col0
----
56

skipif mysql # not compatible
query I rowsort label-9996
SELECT ALL COALESCE ( + + 57, - + 90, 89 * + 87 ) + - COUNT ( * ) col0
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-9997
SELECT ALL + ( - - 33 ) + 39 DIV 16
----
35

skipif mysql # not compatible
query I rowsort label-9997
SELECT ALL + ( - - 33 ) + 39 / 16
----
35

query I rowsort
SELECT ALL - 91 + + - 76
----
-167

query II rowsort
SELECT ALL 38 AS col0, 84 * - + NULLIF ( 32, - 17 + 62 * 31 ) AS col0
----
38
-2688

