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 ALL - 28 + - 30 * - + COUNT( * ) AS col2, + 59 DIV - COUNT( * ) AS col0
----
2
-59

skipif mysql # not compatible
query II rowsort label-0
SELECT ALL - 28 + - 30 * - + COUNT ( * ) AS col2, + 59 / - COUNT ( * ) AS col0
----
2
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-1
SELECT 48 DIV + + 76 + + - 81 + - 78 + + - 92
----
-251

skipif mysql # not compatible
query I rowsort label-1
SELECT 48 / + + 76 + + - 81 + - 78 + + - 92
----
-251

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2
SELECT + 93 / + CASE - 79 WHEN + 1 * + 90 - + COUNT( * ) THEN ( 73 ) - - 5 END * - 19 - - CAST( 22 AS SIGNED ) * 17 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2
SELECT + 93 / + CASE - 79 WHEN + 1 * + 90 - + COUNT ( * ) THEN ( 73 ) - - 5 END * - 19 - - CAST ( 22 AS INTEGER ) * 17 AS col2
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-4
SELECT ALL 97 DIV + - 96 - - 77 * - + 54 - + 33
----
-4192

skipif mysql # not compatible
query I rowsort label-4
SELECT ALL 97 / + - 96 - - 77 * - + 54 - + 33
----
-4192

onlyif mysql # aggregate syntax: 
query II rowsort label-5
SELECT - COUNT( * ), - 32 col2
----
-1
-32

skipif mysql # not compatible
query II rowsort label-5
SELECT - COUNT ( * ), - 32 col2
----
-1
-32

query II rowsort
SELECT DISTINCT + 89, - 35 col1
----
89
-35

query I rowsort
SELECT DISTINCT - 96 * + + 57 * 11 + 3 AS col0
----
-60189

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-9
SELECT ALL - 52 DIV + 80 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9
SELECT ALL - 52 / + 80 AS col2
----
0

query I rowsort
SELECT DISTINCT + - 94 col2
----
-94

query I rowsort
SELECT + - ( NULLIF ( + + 70, + 0 + + 79 ) ) AS col2
----
-70

query I rowsort
SELECT ALL - 2 * - 41
----
82

onlyif mysql # DIV for integer division: 
query II rowsort label-13
SELECT DISTINCT - 76 AS col2, 67 DIV - + 76 + 97
----
-76
97

skipif mysql # not compatible
query II rowsort label-13
SELECT DISTINCT - 76 AS col2, 67 / - + 76 + 97
----
-76
97

query I rowsort
SELECT ( 26 ) * - 48 AS col1
----
-1248

onlyif mysql # DIV for integer division: 
query I rowsort label-15
SELECT ALL - 75 DIV + + 80
----
0

skipif mysql # not compatible
query I rowsort label-15
SELECT ALL - 75 / + + 80
----
0

query I rowsort
SELECT ALL + ( + 15 ) + - + 56 + - + 2 + - 38
----
-81

query I rowsort
SELECT DISTINCT - 57 + 65 - - 75 * - - 23 AS col0
----
1733

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-18
SELECT ALL - ( - - CAST( COUNT( * ) AS SIGNED ) ) + 92
----
91

skipif mysql # not compatible
query I rowsort label-18
SELECT ALL - ( - - CAST ( COUNT ( * ) AS INTEGER ) ) + 92
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-19
SELECT ALL + NULLIF ( - COALESCE ( + + 53, ( - CASE - 43 WHEN - CAST( + 47 AS SIGNED ) THEN - 47 * 1 ELSE + 36 * + NULLIF ( - 26, 24 * 16 ) END ), 64 ), 14 + 31 * MAX( 97 - 13 ) ) + CASE - COUNT( * ) + 48 WHEN 18 / 32 + 10 THEN NULL WHEN - CAST( - 23 AS SIGNED ) THEN COUNT( * ) + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-19
SELECT ALL + NULLIF ( - COALESCE ( + + 53, ( - CASE - 43 WHEN - CAST ( + 47 AS INTEGER ) THEN - 47 * 1 ELSE + 36 * + NULLIF ( - 26, 24 * 16 ) END ), 64 ), 14 + 31 * MAX ( 97 - 13 ) ) + CASE - COUNT ( * ) + 48 WHEN 18 / 32 + 10 THEN NULL WHEN - CAST ( - 23 AS INTEGER ) THEN COUNT ( * ) + COUNT ( * ) END
----
NULL

query I rowsort
SELECT DISTINCT + 3 + - 27 * + 75
----
-2022

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-21
SELECT ALL - 85 * - CAST( NULL AS SIGNED ) AS col2, 26
----
NULL
26

skipif mysql # not compatible
query II rowsort label-21
SELECT ALL - 85 * - CAST ( NULL AS INTEGER ) AS col2, 26
----
NULL
26

query I rowsort
SELECT DISTINCT + ( + + 88 ) + + 46
----
134

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-23
SELECT DISTINCT - CASE - + 58 WHEN - + 84 * + 16 * + CAST( + COALESCE ( + 13, 99 ) AS SIGNED ) + 71 * 0 - 95 * + 60 THEN + 58 WHEN + ( + MIN( ALL 63 ) ) THEN + 85 WHEN COUNT( * ) THEN NULL ELSE - 25 END + + 20 * 90
----
1825

skipif mysql # not compatible
query I rowsort label-23
SELECT DISTINCT - CASE - + 58 WHEN - + 84 * + 16 * + CAST ( + COALESCE ( + 13, 99 ) AS INTEGER ) + 71 * 0 - 95 * + 60 THEN + 58 WHEN + ( + MIN ( ALL 63 ) ) THEN + 85 WHEN COUNT ( * ) THEN NULL ELSE - 25 END + + 20 * 90
----
1825

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-24
SELECT DISTINCT - 58 + + CAST( NULL AS DECIMAL ) - - 6 + + COUNT( DISTINCT - 58 ) * + 23 * - COUNT( * ) + 11 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-24
SELECT DISTINCT - 58 + + CAST ( NULL AS REAL ) - - 6 + + COUNT ( DISTINCT - 58 ) * + 23 * - COUNT ( * ) + 11 AS col2
----
NULL

query I rowsort
SELECT 68 * - + 72
----
-4896

query I rowsort
SELECT ALL - 86 * + 11 * + 66 col0
----
-62436

query I rowsort
SELECT DISTINCT 91 + 67 AS col0
----
158

query I rowsort
SELECT + 88 + + + 38 * + 20 col0
----
848

onlyif mysql # aggregate syntax: 
query I rowsort label-29
SELECT ( - SUM( 86 ) ) * - - NULLIF ( + - 50, 36 / - MIN( ALL - 78 * + 25 ) + 5 ) * + 59
----
253700

skipif mysql # not compatible
query I rowsort label-29
SELECT ( - SUM ( 86 ) ) * - - NULLIF ( + - 50, 36 / - MIN ( ALL - 78 * + 25 ) + 5 ) * + 59
----
253700

query I rowsort
SELECT - NULLIF ( + 42, + + 47 + - 36 * + 21 / - 55 ) * - 65 AS col1
----
2730

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-31
SELECT ALL 99 AS col2, COUNT( DISTINCT + CAST( 38 AS SIGNED ) )
----
99
1

skipif mysql # not compatible
query II rowsort label-31
SELECT ALL 99 AS col2, COUNT ( DISTINCT + CAST ( 38 AS INTEGER ) )
----
99
1

query I rowsort
SELECT DISTINCT + 49 - + + 43 col1
----
6

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-35
SELECT ALL - 47 DIV + ( + 17 ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-35
SELECT ALL - 47 / + ( + 17 ) AS col2
----
-2

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-37
SELECT DISTINCT COUNT( * ) * + 20 * 69
----
1380

skipif mysql # not compatible
query I rowsort label-37
SELECT DISTINCT COUNT ( * ) * + 20 * 69
----
1380

query I rowsort
SELECT ALL + 67 * + + 48 AS col1
----
3216

query I rowsort
SELECT DISTINCT - - 15 * 65
----
975

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-41
SELECT 86 - - + SUM( + + 9 ) + 47 AS col0, ( 55 )
----
142
55

skipif mysql # not compatible
query II rowsort label-41
SELECT 86 - - + SUM ( + + 9 ) + 47 AS col0, ( 55 )
----
142
55

query I rowsort
SELECT ALL - - NULLIF ( + 56, + - 71 - + 51 )
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-43
SELECT ALL - + 10, COALESCE ( + 10, + - CAST( NULL AS SIGNED ) + - 25, - - 12 ) + ( + 94 ) col1
----
-10
104

skipif mysql # not compatible
query II rowsort label-43
SELECT ALL - + 10, COALESCE ( + 10, + - CAST ( NULL AS INTEGER ) + - 25, - - 12 ) + ( + 94 ) col1
----
-10
104

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

onlyif mysql # aggregate syntax: 
query I rowsort label-45
SELECT + CASE - - MAX( 2 ) WHEN 97 THEN NULL WHEN + COUNT( * ) - - 74 * 45 THEN NULL WHEN + 96 THEN NULL WHEN - 72 THEN 42 ELSE 5 * - COUNT( * ) END
----
-5

skipif mysql # not compatible
query I rowsort label-45
SELECT + CASE - - MAX ( 2 ) WHEN 97 THEN NULL WHEN + COUNT ( * ) - - 74 * 45 THEN NULL WHEN + 96 THEN NULL WHEN - 72 THEN 42 ELSE 5 * - COUNT ( * ) END
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-46
SELECT ALL - CASE + MAX( ALL + 19 ) WHEN + 12 - + 28 THEN - COUNT( * ) * - 24 + 6 * + SUM( - COALESCE ( 61, - 34 ) ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-46
SELECT ALL - CASE + MAX ( ALL + 19 ) WHEN + 12 - + 28 THEN - COUNT ( * ) * - 24 + 6 * + SUM ( - COALESCE ( 61, - 34 ) ) END AS col1
----
NULL

query I rowsort
SELECT DISTINCT 35 + + 30
----
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-48
SELECT ALL ( 10 ) + - ( - + 53 ) + + COUNT( * ) AS col2, + 44 DIV 46 AS col2
----
64
0

skipif mysql # not compatible
query II rowsort label-48
SELECT ALL ( 10 ) + - ( - + 53 ) + + COUNT ( * ) AS col2, + 44 / 46 AS col2
----
64
0

query I rowsort
SELECT DISTINCT ( - + 10 ) + + ( - - 31 )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-50
SELECT DISTINCT - 71 + - 56 + + COALESCE ( + MIN( - + CASE 85 WHEN - 97 THEN NULL ELSE - 81 END ), 15 + - 95 ) + 3
----
-43

skipif mysql # not compatible
query I rowsort label-50
SELECT DISTINCT - 71 + - 56 + + COALESCE ( + MIN ( - + CASE 85 WHEN - 97 THEN NULL ELSE - 81 END ), 15 + - 95 ) + 3
----
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-51
SELECT DISTINCT 16 * + 63 AS col1, 20 + 11 DIV SUM( ALL + - 65 )
----
1008
20

skipif mysql # not compatible
query II rowsort label-51
SELECT DISTINCT 16 * + 63 AS col1, 20 + 11 / SUM ( ALL + - 65 )
----
1008
20

query I rowsort
SELECT 75 + + 82 AS col0
----
157

query II rowsort
SELECT 78 * + - 8 AS col0, - 74 AS col0
----
-624
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-54
SELECT ALL COALESCE ( 4, - 96 * + MAX( + ( 39 ) ) - 48 + ( - 20 ) ) * 34
----
136

skipif mysql # not compatible
query I rowsort label-54
SELECT ALL COALESCE ( 4, - 96 * + MAX ( + ( 39 ) ) - 48 + ( - 20 ) ) * 34
----
136

onlyif mysql # DIV for integer division: 
query I rowsort label-55
SELECT 65 * 49 DIV 38
----
83

skipif mysql # not compatible
query I rowsort label-55
SELECT 65 * 49 / 38
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-56
SELECT DISTINCT + COUNT( * ) - + 42 - - + 81 + + 72
----
112

skipif mysql # not compatible
query I rowsort label-56
SELECT DISTINCT + COUNT ( * ) - + 42 - - + 81 + + 72
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-57
SELECT 55 - MIN( - 62 )
----
117

skipif mysql # not compatible
query I rowsort label-57
SELECT 55 - MIN ( - 62 )
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-58
SELECT - CASE NULLIF ( - 37, - - 85 + ( + 5 ) ) WHEN 71 * - COUNT( * ) THEN 62 END
----
NULL

skipif mysql # not compatible
query I rowsort label-58
SELECT - CASE NULLIF ( - 37, - - 85 + ( + 5 ) ) WHEN 71 * - COUNT ( * ) THEN 62 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-59
SELECT DISTINCT + + 5 - 5 + + COALESCE ( + MIN( DISTINCT - 45 ), + 16 ) - - NULLIF ( ( COUNT( * ) ), + 44 * - 33 ) DIV - 22
----
-45

skipif mysql # not compatible
query I rowsort label-59
SELECT DISTINCT + + 5 - 5 + + COALESCE ( + MIN ( DISTINCT - 45 ), + 16 ) - - NULLIF ( ( COUNT ( * ) ), + 44 * - 33 ) / - 22
----
-45

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-61
SELECT - + CASE - + MAX( DISTINCT + 64 ) WHEN - 52 * - 89 THEN - - 67 + - 48 * - MAX( - 67 ) ELSE 29 END AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-61
SELECT - + CASE - + MAX ( DISTINCT + 64 ) WHEN - 52 * - 89 THEN - - 67 + - 48 * - MAX ( - 67 ) ELSE 29 END AS col1
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-62
SELECT ALL CAST( - 96 AS SIGNED ) AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-62
SELECT ALL CAST ( - 96 AS INTEGER ) AS col2
----
-96

query I rowsort
SELECT 29 - 85 * - 74 AS col2
----
6319

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-64
SELECT + 66 * - CAST( - 94 AS SIGNED )
----
6204

skipif mysql # not compatible
query I rowsort label-64
SELECT + 66 * - CAST ( - 94 AS INTEGER )
----
6204

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-65
SELECT DISTINCT CASE 55 WHEN + + CAST( 35 AS SIGNED ) THEN - + CASE - COALESCE ( 29, 34 * 1 ) WHEN 77 THEN NULL ELSE 64 + - ( - 74 ) END + COALESCE ( COUNT( * ), + COUNT( * ), + 78 * 70 ) WHEN - 43 + 29 THEN - 25 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-65
SELECT DISTINCT CASE 55 WHEN + + CAST ( 35 AS INTEGER ) THEN - + CASE - COALESCE ( 29, 34 * 1 ) WHEN 77 THEN NULL ELSE 64 + - ( - 74 ) END + COALESCE ( COUNT ( * ), + COUNT ( * ), + 78 * 70 ) WHEN - 43 + 29 THEN - 25 END AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-66
SELECT DISTINCT - - COUNT ( * ) * + - 44 * 31 - 34
----
-1398

query I rowsort
SELECT 8 + - 80 + + 71 AS col2
----
-1

query I rowsort
SELECT - 32 * 58 AS col0
----
-1856

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-70
SELECT + 42 / + 3 + 17 + 94 + + CASE 38 WHEN ( + 75 ) THEN ( 40 ) * - 9 END + - 60 / COUNT( 43 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-70
SELECT + 42 / + 3 + 17 + 94 + + CASE 38 WHEN ( + 75 ) THEN ( 40 ) * - 9 END + - 60 / COUNT ( 43 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-71
SELECT + - CASE - 10 WHEN + - 25 * + + ( MIN( DISTINCT - 21 ) ) * - - 47 / ( - 62 ) THEN - 3 * 12 WHEN - COUNT( * ) / - CAST( + 19 AS SIGNED ) + 20 * - 16 THEN + 59 WHEN + 88 THEN - SUM( ALL 15 ) * + 49 END
----
NULL

skipif mysql # not compatible
query I rowsort label-71
SELECT + - CASE - 10 WHEN + - 25 * + + ( MIN ( DISTINCT - 21 ) ) * - - 47 / ( - 62 ) THEN - 3 * 12 WHEN - COUNT ( * ) / - CAST ( + 19 AS INTEGER ) + 20 * - 16 THEN + 59 WHEN + 88 THEN - SUM ( ALL 15 ) * + 49 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-72
SELECT - CASE - CAST( - + 67 AS SIGNED ) WHEN - ( - 41 ) + + 77 * ( + 11 ) THEN 47 * 96 END * ( COUNT( * ) + - ( 19 ) * 85 ) + - 59 * 49
----
NULL

skipif mysql # not compatible
query I rowsort label-72
SELECT - CASE - CAST ( - + 67 AS INTEGER ) WHEN - ( - 41 ) + + 77 * ( + 11 ) THEN 47 * 96 END * ( COUNT ( * ) + - ( 19 ) * 85 ) + - 59 * 49
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-73
SELECT + + MIN( DISTINCT + 48 ) * + + 10 * + + 19 AS col1
----
9120

skipif mysql # not compatible
query I rowsort label-73
SELECT + + MIN ( DISTINCT + 48 ) * + + 10 * + + 19 AS col1
----
9120

query I rowsort
SELECT ALL + CASE - 37 WHEN - + 48 * + 3 + - 32 + + - 93 * - AVG ( + 23 ) * 74 THEN - 31 + 28 END * + 81 + + 52
----
NULL

query I rowsort
SELECT - 76 + + 37
----
-39

query II rowsort
SELECT + 26, 81 AS col0
----
26
81

onlyif mysql # aggregate syntax: 
query I rowsort label-77
SELECT DISTINCT + 3 * + COUNT( * ) + - + 79
----
-76

skipif mysql # not compatible
query I rowsort label-77
SELECT DISTINCT + 3 * + COUNT ( * ) + - + 79
----
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-78
SELECT ALL - 20 * 89 DIV + - 49 + 31
----
67

skipif mysql # not compatible
query I rowsort label-78
SELECT ALL - 20 * 89 / + - 49 + 31
----
67

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

skipif mysql # not compatible
query I rowsort label-79
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col2
----
NULL

query II rowsort
SELECT ALL + 4, 97 AS col1
----
4
97

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

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

query I rowsort
SELECT + 86 * 15
----
1290

query II rowsort
SELECT ALL 4, + 75 + - - 8 AS col1
----
4
83

query I rowsort
SELECT - COALESCE ( CASE 60 WHEN - 27 * + 41 THEN 11 - - + 75 - - 8 ELSE NULL END, 26 ) AS col1
----
-26

query I rowsort
SELECT ALL 62 * + + 3
----
186

onlyif mysql # aggregate syntax: 
query I rowsort label-86
SELECT + 44 + - 15 + + 62 * COUNT( * ) col2
----
91

skipif mysql # not compatible
query I rowsort label-86
SELECT + 44 + - 15 + + 62 * COUNT ( * ) col2
----
91

query I rowsort
SELECT + 50 - + 63 col1
----
-13

query I rowsort
SELECT DISTINCT 56 - 79 AS col2
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-89
SELECT + + 86 * - CAST( NULL AS SIGNED ) + - 55 / + + 18 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-89
SELECT + + 86 * - CAST ( NULL AS INTEGER ) + - 55 / + + 18 col1
----
NULL

query II rowsort
SELECT ALL + 80 AS col0, - 26
----
80
-26

query II rowsort
SELECT ALL 45 AS col2, 32 AS col0
----
45
32

query I rowsort
SELECT + COALESCE ( + - NULLIF ( + 97, - + 34 * 83 ), - + 5 ) + - + 33 AS col1
----
-130

query I rowsort
SELECT DISTINCT 15 * + - ( + 61 ) col0
----
-915

query I rowsort
SELECT + 59 + 44
----
103

query I rowsort
SELECT NULLIF ( + - 90, - + 41 ) AS col2
----
-90

query I rowsort
SELECT - - ( - 27 ) + 64 AS col2
----
37

query II rowsort
SELECT DISTINCT + 10 AS col2, 19
----
10
19

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

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

query I rowsort
SELECT - + 78 + - 84
----
-162

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-100
SELECT ALL - CASE WHEN NULL NOT IN ( ( + COUNT( * ) ) ) THEN CASE + 8 WHEN NULLIF ( - 17, 14 ) * - 68 + ( COUNT( * ) + + CAST( NULL AS SIGNED ) ) * - MIN( DISTINCT + 15 ) THEN 30 * - 61 WHEN - CASE CAST( + 30 AS SIGNED ) WHEN 62 THEN 87 WHEN + 24 THEN 41 + - 78 ELSE + AVG ( + 89 ) END * 54 - + 15 * - SUM( + 93 ) THEN NULL END ELSE NULL END * - 3 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-100
SELECT ALL - CASE WHEN NULL NOT IN ( ( + COUNT ( * ) ) ) THEN CASE + 8 WHEN NULLIF ( - 17, 14 ) * - 68 + ( COUNT ( * ) + + CAST ( NULL AS INTEGER ) ) * - MIN ( DISTINCT + 15 ) THEN 30 * - 61 WHEN - CASE CAST ( + 30 AS INTEGER ) WHEN 62 THEN 87 WHEN + 24 THEN 41 + - 78 ELSE + AVG ( + 89 ) END * 54 - + 15 * - SUM ( + 93 ) THEN NULL END ELSE NULL END * - 3 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-101
SELECT ALL COALESCE ( - - ( - + 54 ), + + 10 * - - 7, COUNT( * ) )
----
-54

skipif mysql # not compatible
query I rowsort label-101
SELECT ALL COALESCE ( - - ( - + 54 ), + + 10 * - - 7, COUNT ( * ) )
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-102
SELECT DISTINCT + CAST( + 3 AS SIGNED ) + - 5 + + - 36
----
-38

skipif mysql # not compatible
query I rowsort label-102
SELECT DISTINCT + CAST ( + 3 AS INTEGER ) + - 5 + + - 36
----
-38

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

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

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

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

query II rowsort
SELECT + + 38 AS col2, 65
----
38
65

onlyif mysql # DIV for integer division: 
query I rowsort label-106
SELECT ALL 47 DIV - 69 - - + 99 * + ( 98 ) - 95 + + 16 col1
----
9623

skipif mysql # not compatible
query I rowsort label-106
SELECT ALL 47 / - 69 - - + 99 * + ( 98 ) - 95 + + 16 col1
----
9623

onlyif mysql # aggregate syntax: 
query I rowsort label-107
SELECT - MAX( + - 24 ) * - - COUNT( * ) AS col1
----
24

skipif mysql # not compatible
query I rowsort label-107
SELECT - MAX ( + - 24 ) * - - COUNT ( * ) AS col1
----
24

query I rowsort
SELECT + 64 * + CASE WHEN NULL <= 1 THEN - 76 + + - 26 ELSE NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-109
SELECT ALL + 53 DIV 29
----
1

skipif mysql # not compatible
query I rowsort label-109
SELECT ALL + 53 / 29
----
1

query I rowsort
SELECT ALL + 98 * + + 82 * 15 - 98
----
120442

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-111
SELECT DISTINCT + CASE + - COUNT( * ) WHEN 8 THEN NULL WHEN CAST( NULL AS DECIMAL ) THEN - SUM( DISTINCT + 41 ) ELSE + COALESCE ( + 30, + - ( 11 ) DIV 98 + + 24 ) END AS col0
----
30

skipif mysql # not compatible
query I rowsort label-111
SELECT DISTINCT + CASE + - COUNT ( * ) WHEN 8 THEN NULL WHEN CAST ( NULL AS REAL ) THEN - SUM ( DISTINCT + 41 ) ELSE + COALESCE ( + 30, + - ( 11 ) / 98 + + 24 ) END AS col0
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-112
SELECT ALL 17 * - 5 - - 6 - - CAST( NULL AS SIGNED ) + 29 * 92
----
NULL

skipif mysql # not compatible
query I rowsort label-112
SELECT ALL 17 * - 5 - - 6 - - CAST ( NULL AS INTEGER ) + 29 * 92
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-113
SELECT NULLIF ( - - 41, - NULLIF ( - 37, + 70 * - ( - + 14 ) - - + 51 + + 46 ) ) * 74 - CAST( NULL AS SIGNED ) * + 46 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-113
SELECT NULLIF ( - - 41, - NULLIF ( - 37, + 70 * - ( - + 14 ) - - + 51 + + 46 ) ) * 74 - CAST ( NULL AS INTEGER ) * + 46 AS col1
----
NULL

query II rowsort
SELECT ALL 74 * + 43, 49 * + + 58 col0
----
3182
2842

onlyif mysql # aggregate syntax: 
query I rowsort label-115
SELECT ALL 54 * - 11 - 31 * - 91 * 65 + + - ( + SUM( ALL 3 ) ) col1
----
182768

skipif mysql # not compatible
query I rowsort label-115
SELECT ALL 54 * - 11 - 31 * - 91 * 65 + + - ( + SUM ( ALL 3 ) ) col1
----
182768

query II rowsort
SELECT + 56 * + 14 AS col0, - 0
----
784
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-117
SELECT ALL + 63 * - - CAST( 8 AS SIGNED )
----
504

skipif mysql # not compatible
query I rowsort label-117
SELECT ALL + 63 * - - CAST ( 8 AS INTEGER )
----
504

query I rowsort
SELECT ALL + 54 * + + 1 * + 40 AS col1
----
2160

onlyif mysql # aggregate syntax: 
query I rowsort label-119
SELECT 64 * + 4 + COUNT( * ) col2
----
257

skipif mysql # not compatible
query I rowsort label-119
SELECT 64 * + 4 + COUNT ( * ) col2
----
257

query I rowsort
SELECT + 9 - - 17
----
26

query I rowsort
SELECT + 26 + 24
----
50

query I rowsort
SELECT ALL + 64 * + 22 * + 49 AS col1
----
68992

query I rowsort
SELECT ALL - 79 * - 87
----
6873

onlyif mysql # aggregate syntax: 
query I rowsort label-124
SELECT + - SUM( DISTINCT - + 82 ) * - - 4 AS col1
----
328

skipif mysql # not compatible
query I rowsort label-124
SELECT + - SUM ( DISTINCT - + 82 ) * - - 4 AS col1
----
328

query I rowsort
SELECT ALL - 68 + + 92
----
24

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-127
SELECT - NULLIF ( 91, COUNT( * ) * + 96 + 74 + - 47 )
----
-91

skipif mysql # not compatible
query I rowsort label-127
SELECT - NULLIF ( 91, COUNT ( * ) * + 96 + 74 + - 47 )
----
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-128
SELECT ALL - COALESCE ( + 3, 22 * COUNT( - 94 ) DIV - 67 ) + - 95
----
-98

skipif mysql # not compatible
query I rowsort label-128
SELECT ALL - COALESCE ( + 3, 22 * COUNT ( - 94 ) / - 67 ) + - 95
----
-98

query II rowsort
SELECT - 24 * + 55, 72 AS col2
----
-1320
72

query I rowsort
SELECT 81 * - 64 + 47
----
-5137

onlyif mysql # aggregate syntax: 
query I rowsort label-131
SELECT DISTINCT + MAX( DISTINCT + 33 ) + - 32 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-131
SELECT DISTINCT + MAX ( DISTINCT + 33 ) + - 32 AS col2
----
1

query I rowsort
SELECT ALL 76 + 74
----
150

query I rowsort
SELECT - - 30 col0
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-134
SELECT ALL 90 + - + 46 * - 10 + 64 DIV - COUNT( * )
----
486

skipif mysql # not compatible
query I rowsort label-134
SELECT ALL 90 + - + 46 * - 10 + 64 / - COUNT ( * )
----
486

onlyif mysql # aggregate syntax: 
query I rowsort label-135
SELECT DISTINCT MIN( ALL - - 55 )
----
55

skipif mysql # not compatible
query I rowsort label-135
SELECT DISTINCT MIN ( ALL - - 55 )
----
55

query I rowsort
SELECT DISTINCT 38 + 73 + - 77
----
34

onlyif mysql # DIV for integer division: 
query II rowsort label-137
SELECT ALL - - 7 DIV - 96 + - + 17 * + - 50 * + 2 AS col2, 17
----
1700
17

skipif mysql # not compatible
query II rowsort label-137
SELECT ALL - - 7 / - 96 + - + 17 * + - 50 * + 2 AS col2, 17
----
1700
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-138
SELECT + COUNT( ALL ( + 60 ) ) DIV - + 1 + + - 99 AS col2
----
-100

skipif mysql # not compatible
query I rowsort label-138
SELECT + COUNT ( ALL ( + 60 ) ) / - + 1 + + - 99 AS col2
----
-100

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-140
SELECT ALL - 94 AS col1, - CAST( NULL AS DECIMAL )
----
-94
NULL

skipif mysql # not compatible
query II rowsort label-140
SELECT ALL - 94 AS col1, - CAST ( NULL AS REAL )
----
-94
NULL

query I rowsort
SELECT 33 + 72
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-142
SELECT ALL + 67 * 53 * MIN( + - 73 ) AS col1
----
-259223

skipif mysql # not compatible
query I rowsort label-142
SELECT ALL + 67 * 53 * MIN ( + - 73 ) AS col1
----
-259223

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-143
SELECT - COUNT( * ) * ( - NULLIF ( - CASE - + 71 WHEN 99 THEN 99 WHEN 79 / - - 69 THEN + SUM( DISTINCT - CAST( 46 AS SIGNED ) ) - 95 END, + 93 * + 46 - ( 61 ) ) ) + 9 * + 30
----
NULL

skipif mysql # not compatible
query I rowsort label-143
SELECT - COUNT ( * ) * ( - NULLIF ( - CASE - + 71 WHEN 99 THEN 99 WHEN 79 / - - 69 THEN + SUM ( DISTINCT - CAST ( 46 AS INTEGER ) ) - 95 END, + 93 * + 46 - ( 61 ) ) ) + 9 * + 30
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-144
SELECT CAST( NULL AS SIGNED ) * + - COUNT( * ) * - NULLIF ( + ( - 22 ), - + 21 )
----
NULL

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

query I rowsort
SELECT CASE + - ( - - ( 56 ) ) WHEN 43 - 67 THEN - 99 - 32 ELSE + 21 * - + ( 14 ) END * 36 + 79 AS col1
----
-10505

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-146
SELECT ALL CAST( CASE - 48 WHEN + 6 * - 79 - + - COUNT( * ) + + 59 / 63 - + 72 THEN NULL ELSE 24 * 50 END AS SIGNED ) * ( + 50 - 34 )
----
19200

skipif mysql # not compatible
query I rowsort label-146
SELECT ALL CAST ( CASE - 48 WHEN + 6 * - 79 - + - COUNT ( * ) + + 59 / 63 - + 72 THEN NULL ELSE 24 * 50 END AS INTEGER ) * ( + 50 - 34 )
----
19200

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-147
SELECT 68 + + NULLIF ( - 53, + 7 + CASE 15 WHEN + - COUNT( ALL NULLIF ( CAST( NULL AS DECIMAL ), + 90 ) ) * 21 THEN + 34 END ) * + 35 AS col1
----
-1787

skipif mysql # not compatible
query I rowsort label-147
SELECT 68 + + NULLIF ( - 53, + 7 + CASE 15 WHEN + - COUNT ( ALL NULLIF ( CAST ( NULL AS REAL ), + 90 ) ) * 21 THEN + 34 END ) * + 35 AS col1
----
-1787

query I rowsort
SELECT 74 * + + 89 col0
----
6586

onlyif mysql # DIV for integer division: 
query I rowsort label-149
SELECT 93 DIV 28
----
3

skipif mysql # not compatible
query I rowsort label-149
SELECT 93 / 28
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-150
SELECT MAX( - ( - + 98 ) ) * - + 58 * 9 * - ( + COUNT( * ) ) + 38 + - COUNT( * ) - - ( 32 ) * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-150
SELECT MAX ( - ( - + 98 ) ) * - + 58 * 9 * - ( + COUNT ( * ) ) + 38 + - COUNT ( * ) - - ( 32 ) * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-151
SELECT 83 DIV + - 39 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-151
SELECT 83 / + - 39 AS col0
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-152
SELECT ALL - 37 AS col2, - 27 / - 37 * + CASE COUNT( * ) WHEN + 56 + - CAST( NULL AS SIGNED ) * - + 92 * 98 THEN 93 + SUM( 96 + - 36 ) / 71 WHEN - 63 THEN 97 * - 51 END
----
-37
NULL

skipif mysql # not compatible
query II rowsort label-152
SELECT ALL - 37 AS col2, - 27 / - 37 * + CASE COUNT ( * ) WHEN + 56 + - CAST ( NULL AS INTEGER ) * - + 92 * 98 THEN 93 + SUM ( 96 + - 36 ) / 71 WHEN - 63 THEN 97 * - 51 END
----
-37
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-153
SELECT + - 20 * - 63 + - + MIN( - 56 ) DIV 34
----
1261

skipif mysql # not compatible
query I rowsort label-153
SELECT + - 20 * - 63 + - + MIN ( - 56 ) / 34
----
1261

query I rowsort
SELECT DISTINCT - - 97 AS col2
----
97

query I rowsort
SELECT - 94 + + 71 - 87
----
-110

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

query I rowsort
SELECT - 77 - + 76 AS col0
----
-153

query II rowsort
SELECT - - 65 col2, 86 + 15 + 20
----
65
121

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-159
SELECT DISTINCT - 15 + - CAST( NULL AS DECIMAL ) / 96 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-159
SELECT DISTINCT - 15 + - CAST ( NULL AS REAL ) / 96 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-160
SELECT ALL - SUM( DISTINCT + 45 )
----
-45

skipif mysql # not compatible
query I rowsort label-160
SELECT ALL - SUM ( DISTINCT + 45 )
----
-45

query I rowsort
SELECT + 44 + - - 80 AS col2
----
124

onlyif mysql # DIV for integer division: 
query II rowsort label-162
SELECT DISTINCT 48, 94 DIV + - 54 AS col0
----
48
-1

skipif mysql # not compatible
query II rowsort label-162
SELECT DISTINCT 48, 94 / + - 54 AS col0
----
48
-1

query I rowsort
SELECT ALL - - 39 + - 31 + - 44 AS col2
----
-36

query I rowsort
SELECT + 71 + - + 92
----
-21

query I rowsort
SELECT ALL + 21 + ( 12 )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-166
SELECT DISTINCT - MIN( 69 )
----
-69

skipif mysql # not compatible
query I rowsort label-166
SELECT DISTINCT - MIN ( 69 )
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-167
SELECT MAX( + 56 ) * + 98 AS col1
----
5488

skipif mysql # not compatible
query I rowsort label-167
SELECT MAX ( + 56 ) * + 98 AS col1
----
5488

query I rowsort
SELECT - 94 + 3
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-169
SELECT DISTINCT - 30 * 0 + + COUNT( * ) + + COUNT( * ) * - + 52
----
-51

skipif mysql # not compatible
query I rowsort label-169
SELECT DISTINCT - 30 * 0 + + COUNT ( * ) + + COUNT ( * ) * - + 52
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-170
SELECT DISTINCT + NULLIF ( - - 97, - ( - ( - 9 ) ) / - + 11 + - - 5 * - 70 * + - 21 * 25 ) - + CASE - 23 + + 43 WHEN - COUNT( * ) - 12 THEN NULL WHEN 0 * 32 THEN AVG ( + 92 ) + 2 * 57 END
----
NULL

skipif mysql # not compatible
query I rowsort label-170
SELECT DISTINCT + NULLIF ( - - 97, - ( - ( - 9 ) ) / - + 11 + - - 5 * - 70 * + - 21 * 25 ) - + CASE - 23 + + 43 WHEN - COUNT ( * ) - 12 THEN NULL WHEN 0 * 32 THEN AVG ( + 92 ) + 2 * 57 END
----
NULL

query I rowsort
SELECT DISTINCT - 53 * - 29 AS col0
----
1537

query I rowsort
SELECT CASE + - 33 WHEN + 41 THEN 79 WHEN - 74 THEN - NULLIF ( - 84, - ( - 39 ) * - 56 ) ELSE NULL END * 39
----
NULL

query I rowsort
SELECT ALL 3 * 99 - 11 col0
----
286

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-175
SELECT + SUM( + 57 ) AS col2
----
57

skipif mysql # not compatible
query I rowsort label-175
SELECT + SUM ( + 57 ) AS col2
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-176
SELECT COALESCE ( 8, - 90 ) * + 74, + CASE - COUNT( * ) WHEN + - CASE WHEN - 50 NOT BETWEEN + ( - 5 ) + 1 * - 15 AND COUNT( * ) THEN - 87 * + 60 END THEN NULL WHEN + 17 THEN 0 * CAST( - CAST( 8 AS SIGNED ) AS SIGNED ) END / 82 + - 48 * - 21 AS col1
----
592
NULL

skipif mysql # not compatible
query II rowsort label-176
SELECT COALESCE ( 8, - 90 ) * + 74, + CASE - COUNT ( * ) WHEN + - CASE WHEN - 50 NOT BETWEEN + ( - 5 ) + 1 * - 15 AND COUNT ( * ) THEN - 87 * + 60 END THEN NULL WHEN + 17 THEN 0 * CAST ( - CAST ( 8 AS INTEGER ) AS INTEGER ) END / 82 + - 48 * - 21 AS col1
----
592
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-177
SELECT CAST( - 32 AS SIGNED ) * + + CASE + - 21 WHEN + 44 THEN NULL WHEN - - 34 THEN + CAST( NULL AS SIGNED ) WHEN + - MIN( + 69 ) THEN - + 15 END
----
NULL

skipif mysql # not compatible
query I rowsort label-177
SELECT CAST ( - 32 AS INTEGER ) * + + CASE + - 21 WHEN + 44 THEN NULL WHEN - - 34 THEN + CAST ( NULL AS INTEGER ) WHEN + - MIN ( + 69 ) THEN - + 15 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-178
SELECT 63 * - 40 * + 47 * COUNT( * ) * - + 75 - - - ( - 83 ) + + 70 + - 68 * + + ( + 24 )
----
8881521

skipif mysql # not compatible
query I rowsort label-178
SELECT 63 * - 40 * + 47 * COUNT ( * ) * - + 75 - - - ( - 83 ) + + 70 + - 68 * + + ( + 24 )
----
8881521

onlyif mysql # aggregate syntax: 
query I rowsort label-179
SELECT + SUM( - 58 ) AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-179
SELECT + SUM ( - 58 ) AS col2
----
-58

query I rowsort
SELECT DISTINCT 33 * + 48
----
1584

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-181
SELECT + COUNT( ALL - + CASE + + 61 WHEN + CAST( NULL AS DECIMAL ) THEN NULL WHEN 37 / + 61 THEN NULL ELSE - 43 * - COALESCE ( + + ( - - 33 ), + 17 ) * - 25 END ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-181
SELECT + COUNT ( ALL - + CASE + + 61 WHEN + CAST ( NULL AS REAL ) THEN NULL WHEN 37 / + 61 THEN NULL ELSE - 43 * - COALESCE ( + + ( - - 33 ), + 17 ) * - 25 END ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-182
SELECT ALL - 19, + COUNT( * ) + - + NULLIF ( + 77, - 71 ) * 78 AS col1
----
-19
-6005

skipif mysql # not compatible
query II rowsort label-182
SELECT ALL - 19, + COUNT ( * ) + - + NULLIF ( + 77, - 71 ) * 78 AS col1
----
-19
-6005

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

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

query I rowsort
SELECT 99 + 31 * - 74 AS col1
----
-2195

query I rowsort
SELECT DISTINCT 97 + + + 90
----
187

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-186
SELECT ALL COUNT( * ) + - 64 + COUNT( * ) DIV - 4 * 75 AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-186
SELECT ALL COUNT ( * ) + - 64 + COUNT ( * ) / - 4 * 75 AS col2
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-187
SELECT + + 46 * - 24 + + 31 * + 63 AS col2, COUNT( * ) * + 73 + + CAST( NULL AS SIGNED ) + + 55 * - MAX( + - 73 ) - 49 + - 86 / - ( - 93 + + 53 ) AS col0
----
849
NULL

skipif mysql # not compatible
query II rowsort label-187
SELECT + + 46 * - 24 + + 31 * + 63 AS col2, COUNT ( * ) * + 73 + + CAST ( NULL AS INTEGER ) + + 55 * - MAX ( + - 73 ) - 49 + - 86 / - ( - 93 + + 53 ) AS col0
----
849
NULL

query I rowsort
SELECT + 83 + - 71 AS col1
----
12

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

query I rowsort
SELECT - 66 - 40
----
-106

query I rowsort
SELECT DISTINCT + 58 + - 36
----
22

onlyif mysql # aggregate syntax: 
query II rowsort label-192
SELECT - + 47 * 64 AS col1, - MIN( + 82 ) * - 27
----
-3008
2214

skipif mysql # not compatible
query II rowsort label-192
SELECT - + 47 * 64 AS col1, - MIN ( + 82 ) * - 27
----
-3008
2214

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

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

query I rowsort
SELECT - 99 * - - 9 * + 86 + + - 53 + 38
----
-76641

onlyif mysql # aggregate syntax: 
query I rowsort label-195
SELECT - 69 * - + 33 * + MIN( - + 16 ) * - 12 AS col2
----
437184

skipif mysql # not compatible
query I rowsort label-195
SELECT - 69 * - + 33 * + MIN ( - + 16 ) * - 12 AS col2
----
437184

query I rowsort
SELECT - - 95 + 47 AS col2
----
142

onlyif mysql # DIV for integer division: 
query II rowsort label-197
SELECT - 70 * NULLIF ( ( 53 ), - 23 ), + 89 DIV 88 DIV + 89 * - - 59 * + + 80 AS col0
----
-3710
0

skipif mysql # not compatible
query II rowsort label-197
SELECT - 70 * NULLIF ( ( 53 ), - 23 ), + 89 / 88 / + 89 * - - 59 * + + 80 AS col0
----
-3710
0

query I rowsort
SELECT ALL - ( 48 ) * - 85 AS col0
----
4080

onlyif mysql # DIV for integer division: 
query I rowsort label-199
SELECT DISTINCT CASE + - 29 WHEN - COALESCE ( 97, - 44 ) THEN NULL ELSE - 9 DIV 86 * + 59 END
----
0

skipif mysql # not compatible
query I rowsort label-199
SELECT DISTINCT CASE + - 29 WHEN - COALESCE ( 97, - 44 ) THEN NULL ELSE - 9 / 86 * + 59 END
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-200
SELECT ALL CASE + CAST( NULL AS SIGNED ) WHEN + 16 THEN + 41 / - 45 ELSE + 56 END AS col1
----
56

skipif mysql # not compatible
query I rowsort label-200
SELECT ALL CASE + CAST ( NULL AS INTEGER ) WHEN + 16 THEN + 41 / - 45 ELSE + 56 END AS col1
----
56

query I rowsort
SELECT ALL NULLIF ( 85, 78 + + 8 )
----
85

query I rowsort
SELECT - 34 * + 79
----
-2686

onlyif mysql # aggregate syntax: 
query I rowsort label-203
SELECT - 51 + - 66 * + COUNT( * ) AS col0
----
-117

skipif mysql # not compatible
query I rowsort label-203
SELECT - 51 + - 66 * + COUNT ( * ) AS col0
----
-117

query I rowsort
SELECT ALL 98 * 99
----
9702

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-205
SELECT 32 DIV + NULLIF ( 79, + 46 + + - 56 ) - - COUNT( * ) - - + 68
----
69

skipif mysql # not compatible
query I rowsort label-205
SELECT 32 / + NULLIF ( 79, + 46 + + - 56 ) - - COUNT ( * ) - - + 68
----
69

onlyif mysql # DIV for integer division: 
query II rowsort label-206
SELECT DISTINCT - 23 DIV 59 AS col2, 89 AS col1
----
0
89

skipif mysql # not compatible
query II rowsort label-206
SELECT DISTINCT - 23 / 59 AS col2, 89 AS col1
----
0
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-207
SELECT DISTINCT - 68 * 80 + + - CASE - CASE - - 91 WHEN CAST( 86 AS SIGNED ) THEN + 94 + 52 * 67 WHEN - COUNT( * ) THEN NULL ELSE NULL END WHEN - + 38 + 84 * + 62 THEN + 88 + AVG ( DISTINCT - 69 ) WHEN 45 * COUNT( * ) THEN + 9 ELSE NULL END * 59
----
NULL

skipif mysql # not compatible
query I rowsort label-207
SELECT DISTINCT - 68 * 80 + + - CASE - CASE - - 91 WHEN CAST ( 86 AS INTEGER ) THEN + 94 + 52 * 67 WHEN - COUNT ( * ) THEN NULL ELSE NULL END WHEN - + 38 + 84 * + 62 THEN + 88 + AVG ( DISTINCT - 69 ) WHEN 45 * COUNT ( * ) THEN + 9 ELSE NULL END * 59
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-208
SELECT ALL - 35 * - CAST( NULL AS SIGNED ) + + - COUNT( * ) * 81 * + - 78
----
NULL

skipif mysql # not compatible
query I rowsort label-208
SELECT ALL - 35 * - CAST ( NULL AS INTEGER ) + + - COUNT ( * ) * 81 * + - 78
----
NULL

query II rowsort
SELECT + 50 + + 84 AS col0, + 71
----
134
71

onlyif mysql # aggregate syntax: 
query I rowsort label-210
SELECT ALL 29 * + MIN( ALL - 48 ) + 37
----
-1355

skipif mysql # not compatible
query I rowsort label-210
SELECT ALL 29 * + MIN ( ALL - 48 ) + 37
----
-1355

onlyif mysql # aggregate syntax: 
query I rowsort label-211
SELECT - 22 * + 98 * + + 39 + + COUNT( * )
----
-84083

skipif mysql # not compatible
query I rowsort label-211
SELECT - 22 * + 98 * + + 39 + + COUNT ( * )
----
-84083

onlyif mysql # aggregate syntax: 
query I rowsort label-212
SELECT CASE COUNT( * ) WHEN + 16 THEN 55 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-212
SELECT CASE COUNT ( * ) WHEN + 16 THEN 55 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-213
SELECT COUNT( * ) * + 65 * 82 * + 87 + - 66 - - + 56
----
463700

skipif mysql # not compatible
query I rowsort label-213
SELECT COUNT ( * ) * + 65 * 82 * + 87 + - 66 - - + 56
----
463700

onlyif mysql # aggregate syntax: 
query I rowsort label-214
SELECT DISTINCT - COUNT( ALL 81 ) * 91 + + + 72
----
-19

skipif mysql # not compatible
query I rowsort label-214
SELECT DISTINCT - COUNT ( ALL 81 ) * 91 + + + 72
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-215
SELECT ALL + NULLIF ( - - 51, - 82 ) * - 23 * + COUNT( * ) * + 53 * - 74 * - 69 + 83
----
-317434831

skipif mysql # not compatible
query I rowsort label-215
SELECT ALL + NULLIF ( - - 51, - 82 ) * - 23 * + COUNT ( * ) * + 53 * - 74 * - 69 + 83
----
-317434831

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-216
SELECT DISTINCT - - 65 * + 17 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-216
SELECT DISTINCT - - 65 * + 17 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-217
SELECT + 30 * - 77, COUNT( * ) * - MIN( DISTINCT 7 ) DIV - 66 * + ( + COUNT( * ) ) col2
----
-2310
0

skipif mysql # not compatible
query II rowsort label-217
SELECT + 30 * - 77, COUNT ( * ) * - MIN ( DISTINCT 7 ) / - 66 * + ( + COUNT ( * ) ) col2
----
-2310
0

onlyif mysql # aggregate syntax: 
query I rowsort label-218
SELECT ALL 0 * + CASE + 77 WHEN - ( - COUNT( * ) ) / + 72 THEN + - 11 WHEN 51 * - + 63 - + COUNT( * ) + + 70 THEN + 26 / CASE - COUNT( * ) * 12 + - 65 * COUNT( * ) WHEN 88 THEN - ( - 50 ) WHEN 72 THEN NULL ELSE 3 END END
----
NULL

skipif mysql # not compatible
query I rowsort label-218
SELECT ALL 0 * + CASE + 77 WHEN - ( - COUNT ( * ) ) / + 72 THEN + - 11 WHEN 51 * - + 63 - + COUNT ( * ) + + 70 THEN + 26 / CASE - COUNT ( * ) * 12 + - 65 * COUNT ( * ) WHEN 88 THEN - ( - 50 ) WHEN 72 THEN NULL ELSE 3 END END
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-221
SELECT - ( - + COUNT( 86 ) ) + + SUM( + 60 ) AS col0, + 25 AS col0
----
61
25

skipif mysql # not compatible
query II rowsort label-221
SELECT - ( - + COUNT ( 86 ) ) + + SUM ( + 60 ) AS col0, + 25 AS col0
----
61
25

query I rowsort
SELECT DISTINCT + - 71 - + 90 AS col0
----
-161

onlyif mysql # aggregate syntax: 
query I rowsort label-223
SELECT - 33 * - COUNT( 19 )
----
33

skipif mysql # not compatible
query I rowsort label-223
SELECT - 33 * - COUNT ( 19 )
----
33

query I rowsort
SELECT - ( + 72 ) + 9 AS col2
----
-63

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

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

query II rowsort
SELECT - 64 + + + 36 * + - 94 + + ( 74 ) * - + 60 col2, - CASE - 40 WHEN - 34 THEN NULL ELSE - + NULLIF ( - 98, 38 ) END
----
-7888
-98

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

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

query I rowsort
SELECT - 16 * + 29
----
-464

query I rowsort
SELECT ALL - 36 + + 19 * - 95 col0
----
-1841

query II rowsort
SELECT - 31 AS col2, + COALESCE ( 3, - - 96 ) AS col2
----
-31
3

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

skipif mysql # not compatible
query I rowsort label-231
SELECT - COUNT ( * ) + - 8 * - 11 AS col0
----
87

query II rowsort
SELECT - ( + 43 ) * 59, - 72 col1
----
-2537
-72

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

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

query I rowsort
SELECT DISTINCT - 91 + + - 91 + - 93
----
-275

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-235
SELECT DISTINCT 81 DIV 61 + NULLIF ( 82, + COUNT( * ) * - 94 - 90 ) * + + 19 * 11
----
17139

skipif mysql # not compatible
query I rowsort label-235
SELECT DISTINCT 81 / 61 + NULLIF ( 82, + COUNT ( * ) * - 94 - 90 ) * + + 19 * 11
----
17139

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-237
SELECT ALL - 91 DIV - + 65 DIV + COALESCE ( 1, 64 ) + - 78 AS col1, + ( - COUNT( * ) )
----
-77
-1

skipif mysql # not compatible
query II rowsort label-237
SELECT ALL - 91 / - + 65 / + COALESCE ( 1, 64 ) + - 78 AS col1, + ( - COUNT ( * ) )
----
-77
-1

query I rowsort
SELECT - 50 * 82 AS col1
----
-4100

query I rowsort
SELECT 83 - + 57
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-240
SELECT ALL + 74 + NULLIF ( - CAST( + 54 AS SIGNED ), - - 97 / - COUNT( * ) ) + - 4
----
16

skipif mysql # not compatible
query I rowsort label-240
SELECT ALL + 74 + NULLIF ( - CAST ( + 54 AS INTEGER ), - - 97 / - COUNT ( * ) ) + - 4
----
16

query I rowsort
SELECT + 81 * + 93 - 28
----
7505

onlyif mysql # aggregate syntax: 
query I rowsort label-242
SELECT COUNT( * ) * 36 col2
----
36

skipif mysql # not compatible
query I rowsort label-242
SELECT COUNT ( * ) * 36 col2
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-243
SELECT ALL + 91 - + + 56 + + 93 AS col1, CAST( NULL AS SIGNED )
----
128
NULL

skipif mysql # not compatible
query II rowsort label-243
SELECT ALL + 91 - + + 56 + + 93 AS col1, CAST ( NULL AS INTEGER )
----
128
NULL

query I rowsort
SELECT 4 * + 58
----
232

query I rowsort
SELECT 51 - - 42
----
93

query I rowsort
SELECT - - 92 * - 25 - + 53 AS col0
----
-2353

onlyif mysql # aggregate syntax: 
query I rowsort label-247
SELECT + ( - MIN( + 14 ) ) + + 90 + + + COUNT( * ) + + + 75 * - COUNT( * ) * + 83 * + 60 * + 9 * - ( - COUNT( * ) ) + - ( - 81 )
----
-3361342

skipif mysql # not compatible
query I rowsort label-247
SELECT + ( - MIN ( + 14 ) ) + + 90 + + + COUNT ( * ) + + + 75 * - COUNT ( * ) * + 83 * + 60 * + 9 * - ( - COUNT ( * ) ) + - ( - 81 )
----
-3361342

query I rowsort
SELECT - 90 * - 18 - - 31 AS col1
----
1651

query I rowsort
SELECT 50 + 83 AS col0
----
133

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-250
SELECT DISTINCT COUNT( * ) DIV - COALESCE ( + + CAST( NULL AS SIGNED ), + - 93 + - + 11 * + 76 ), 24 DIV ( 29 )
----
0
0

skipif mysql # not compatible
query II rowsort label-250
SELECT DISTINCT COUNT ( * ) / - COALESCE ( + + CAST ( NULL AS INTEGER ), + - 93 + - + 11 * + 76 ), 24 / ( 29 )
----
0
0

query II rowsort
SELECT + 17 AS col2, + 48 AS col1
----
17
48

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

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

query I rowsort
SELECT DISTINCT 87 * - 70 AS col2
----
-6090

query II rowsort
SELECT ALL 46 + + 57 * + 75 - + - 83 + 4 AS col1, 58 + 27 + - ( - + 74 )
----
4408
159

query II rowsort
SELECT 49 - + 86, - 34 AS col2
----
-37
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-256
SELECT 87 * + CAST( COALESCE ( 23, 89 + - 36 ) AS SIGNED ) AS col1
----
2001

skipif mysql # not compatible
query I rowsort label-256
SELECT 87 * + CAST ( COALESCE ( 23, 89 + - 36 ) AS INTEGER ) AS col1
----
2001

query I rowsort
SELECT 68 + + 56
----
124

query I rowsort
SELECT ALL 16 + + 50 + 29 + + 25
----
120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-259
SELECT CAST( - ( - + ( - COUNT( ( - CAST( NULL AS SIGNED ) ) ) ) ) AS SIGNED ) DIV + - 72 col1
----
0

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

query II rowsort
SELECT ALL 86 + - 84, + 77 AS col1
----
2
77

query I rowsort
SELECT DISTINCT 45 + - - 33 AS col1
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-262
SELECT SUM( DISTINCT - + 29 ) - + 40 * + CAST( - 88 AS SIGNED ) AS col0
----
3491

skipif mysql # not compatible
query I rowsort label-262
SELECT SUM ( DISTINCT - + 29 ) - + 40 * + CAST ( - 88 AS INTEGER ) AS col0
----
3491

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-264
SELECT CASE - COALESCE ( + 69, ( - 48 ) * - 50 - + 52, - - 44 + - 97 ) WHEN - + COUNT( * ) THEN - + CAST( NULL AS SIGNED ) WHEN + 34 + - 17 THEN NULL ELSE NULL END + - + 26 + - 69 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-264
SELECT CASE - COALESCE ( + 69, ( - 48 ) * - 50 - + 52, - - 44 + - 97 ) WHEN - + COUNT ( * ) THEN - + CAST ( NULL AS INTEGER ) WHEN + 34 + - 17 THEN NULL ELSE NULL END + - + 26 + - 69 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-265
SELECT 92 + - MAX( ALL + 11 ) + COALESCE ( ( + - 69 ), - 57, - 55 DIV - 97 + - 99 ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-265
SELECT 92 + - MAX ( ALL + 11 ) + COALESCE ( ( + - 69 ), - 57, - 55 / - 97 + - 99 ) AS col2
----
12

query I rowsort
SELECT 37 - CASE 19 WHEN + 35 THEN 53 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-267
SELECT - 26 DIV 66 + 81
----
81

skipif mysql # not compatible
query I rowsort label-267
SELECT - 26 / 66 + 81
----
81

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

skipif mysql # not compatible
query I rowsort label-268
SELECT ALL - MAX ( 59 )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-269
SELECT ALL - + CASE - MIN( DISTINCT - ( + 21 ) ) WHEN - 14 THEN + 51 ELSE - 18 * 93 END col2
----
1674

skipif mysql # not compatible
query I rowsort label-269
SELECT ALL - + CASE - MIN ( DISTINCT - ( + 21 ) ) WHEN - 14 THEN + 51 ELSE - 18 * 93 END col2
----
1674

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

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

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

skipif mysql # not compatible
query I rowsort label-271
SELECT MAX ( ALL - 54 )
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-272
SELECT - 38 * 94 + - CAST( - + 19 AS SIGNED ), MAX( - 72 ) AS col1
----
-3553
-72

skipif mysql # not compatible
query II rowsort label-272
SELECT - 38 * 94 + - CAST ( - + 19 AS INTEGER ), MAX ( - 72 ) AS col1
----
-3553
-72

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-274
SELECT - MIN( + 6 ) * - - 38 * - 7 * - 87 + - + 9 * - 38 - + + COALESCE ( - 10, 5, - 13 - 56 - 38 ) + + 89 AS col0
----
-138411

skipif mysql # not compatible
query I rowsort label-274
SELECT - MIN ( + 6 ) * - - 38 * - 7 * - 87 + - + 9 * - 38 - + + COALESCE ( - 10, 5, - 13 - 56 - 38 ) + + 89 AS col0
----
-138411

onlyif mysql # aggregate syntax: 
query I rowsort label-275
SELECT DISTINCT + 46 - + MAX( - 93 ) + + 81 AS col2
----
220

skipif mysql # not compatible
query I rowsort label-275
SELECT DISTINCT + 46 - + MAX ( - 93 ) + + 81 AS col2
----
220

onlyif mysql # aggregate syntax: 
query I rowsort label-276
SELECT + ( + 56 ) * 27 * + CASE 57 WHEN + 85 + - - 75 THEN NULL WHEN ( COUNT( DISTINCT - 20 ) ) THEN + + 87 ELSE ( + - 33 ) END + SUM( ALL - 59 ) + COALESCE ( + 78, COUNT( * ) ) * 15 AS col2
----
-48785

skipif mysql # not compatible
query I rowsort label-276
SELECT + ( + 56 ) * 27 * + CASE 57 WHEN + 85 + - - 75 THEN NULL WHEN ( COUNT ( DISTINCT - 20 ) ) THEN + + 87 ELSE ( + - 33 ) END + SUM ( ALL - 59 ) + COALESCE ( + 78, COUNT ( * ) ) * 15 AS col2
----
-48785

onlyif mysql # aggregate syntax: 
query I rowsort label-277
SELECT + CASE 34 WHEN + 48 * + COALESCE ( + + 78, - 84 ) * COALESCE ( - - 16, - 33 ) + + - 76 - + COALESCE ( AVG ( ( - 68 ) ), + 66 ) THEN COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-277
SELECT + CASE 34 WHEN + 48 * + COALESCE ( + + 78, - 84 ) * COALESCE ( - - 16, - 33 ) + + - 76 - + COALESCE ( AVG ( ( - 68 ) ), + 66 ) THEN COUNT ( * ) END
----
NULL

query I rowsort
SELECT ALL + 13 * - 71 AS col0
----
-923

query I rowsort
SELECT ALL - 97 * - 58
----
5626

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

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

query I rowsort
SELECT + 11 + + + 60 + - - 86
----
157

onlyif mysql # aggregate syntax: 
query I rowsort label-282
SELECT ALL - CASE + 52 WHEN + 63 THEN - 87 WHEN - 38 THEN + 80 * - + COUNT( * ) * - COUNT( * ) * - 80 + - COUNT( * ) WHEN - 74 THEN + 76 * 53 ELSE + 87 END * COALESCE ( + 96 * 63, 34 * - COUNT( * ) - 53, SUM( + 15 ) * + 98 + + 98 )
----
-526176

skipif mysql # not compatible
query I rowsort label-282
SELECT ALL - CASE + 52 WHEN + 63 THEN - 87 WHEN - 38 THEN + 80 * - + COUNT ( * ) * - COUNT ( * ) * - 80 + - COUNT ( * ) WHEN - 74 THEN + 76 * 53 ELSE + 87 END * COALESCE ( + 96 * 63, 34 * - COUNT ( * ) - 53, SUM ( + 15 ) * + 98 + + 98 )
----
-526176

onlyif mysql # aggregate syntax: 
query I rowsort label-283
SELECT - CASE ( + COUNT( * ) ) WHEN 6 * - 76 * - 30 / + NULLIF ( + 4, COUNT( * ) ) * + - 12 + + - 27 + + + 15 THEN - 88 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-283
SELECT - CASE ( + COUNT ( * ) ) WHEN 6 * - 76 * - 30 / + NULLIF ( + 4, COUNT ( * ) ) * + - 12 + + - 27 + + + 15 THEN - 88 ELSE NULL END
----
NULL

query I rowsort
SELECT - 38 + - 99 + - - 28
----
-109

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-285
SELECT ALL + 61 + + + 7 AS col1, - CAST( NULL AS SIGNED )
----
68
NULL

skipif mysql # not compatible
query II rowsort label-285
SELECT ALL + 61 + + + 7 AS col1, - CAST ( NULL AS INTEGER )
----
68
NULL

query I rowsort
SELECT - 77 + 87
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-287
SELECT 87 DIV + 77 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-287
SELECT 87 / + 77 AS col2
----
1

query I rowsort
SELECT 58 + 21 col2
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-289
SELECT 94 + CAST( 13 AS SIGNED ) + + COUNT( * ) + - COUNT( * ) col0, + 70 * 29 * 11
----
107
22330

skipif mysql # not compatible
query II rowsort label-289
SELECT 94 + CAST ( 13 AS INTEGER ) + + COUNT ( * ) + - COUNT ( * ) col0, + 70 * 29 * 11
----
107
22330

onlyif mysql # DIV for integer division: 
query I rowsort label-290
SELECT DISTINCT 40 DIV + 56
----
0

skipif mysql # not compatible
query I rowsort label-290
SELECT DISTINCT 40 / + 56
----
0

query II rowsort
SELECT ALL 75 * + 86 * + + 39, + 75 + 19 AS col1
----
251550
94

query II rowsort
SELECT 55, - 32 AS col1
----
55
-32

query I rowsort
SELECT ALL 93 + - ( 78 )
----
15

query I rowsort
SELECT 83 + - 22 AS col0
----
61

query I rowsort
SELECT ( - 2 ) + + + 41 + + 80
----
119

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-296
SELECT DISTINCT CASE 54 WHEN - COUNT( + 10 ) THEN - 95 * - 7 + - - CAST( NULL AS SIGNED ) ELSE NULL END * COUNT( * ) / + 12
----
NULL

skipif mysql # not compatible
query I rowsort label-296
SELECT DISTINCT CASE 54 WHEN - COUNT ( + 10 ) THEN - 95 * - 7 + - - CAST ( NULL AS INTEGER ) ELSE NULL END * COUNT ( * ) / + 12
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-297
SELECT ALL COALESCE ( - CAST( - 3 AS SIGNED ), + COUNT( * ) * + 22, + CAST( NULL AS SIGNED ) * 80 - + 9 + + + COALESCE ( 25, - 34 * + 55 ) * + AVG ( - + ( + - 9 ) ) DIV COUNT( * ) + - 88 DIV - 55 ) + 6
----
9

skipif mysql # not compatible
query I rowsort label-297
SELECT ALL COALESCE ( - CAST ( - 3 AS INTEGER ), + COUNT ( * ) * + 22, + CAST ( NULL AS INTEGER ) * 80 - + 9 + + + COALESCE ( 25, - 34 * + 55 ) * + AVG ( - + ( + - 9 ) ) / COUNT ( * ) + - 88 / - 55 ) + 6
----
9

query I rowsort
SELECT + 9 * ( + 33 ) * - - 47
----
13959

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-299
SELECT ALL + ( - 87 ) - 54 + + 78 + - CAST( 13 AS SIGNED ) col1
----
-76

skipif mysql # not compatible
query I rowsort label-299
SELECT ALL + ( - 87 ) - 54 + + 78 + - CAST ( 13 AS INTEGER ) col1
----
-76

onlyif mysql # DIV for integer division: 
query II rowsort label-300
SELECT 85 AS col1, ( + - 63 ) DIV + 84
----
85
0

skipif mysql # not compatible
query II rowsort label-300
SELECT 85 AS col1, ( + - 63 ) / + 84
----
85
0

query II rowsort
SELECT ALL 63 AS col2, 73 * 45 * 88
----
63
289080

query I rowsort
SELECT ALL - 52 * + + 85
----
-4420

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-303
SELECT DISTINCT COUNT( * ) DIV + MIN( ALL + 67 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-303
SELECT DISTINCT COUNT ( * ) / + MIN ( ALL + 67 ) AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-304
SELECT 3, + ( + COUNT( DISTINCT + 76 ) ) + + CAST( NULL AS SIGNED ) AS col2
----
3
NULL

skipif mysql # not compatible
query II rowsort label-304
SELECT 3, + ( + COUNT ( DISTINCT + 76 ) ) + + CAST ( NULL AS INTEGER ) AS col2
----
3
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-305
SELECT - 6 DIV + + 73
----
0

skipif mysql # not compatible
query I rowsort label-305
SELECT - 6 / + + 73
----
0

query I rowsort
SELECT ALL + 17 * - 82
----
-1394

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-308
SELECT - + ( + + 98 ) / - CAST( NULL AS DECIMAL ) AS col0, NULLIF ( - 38, - + CAST( - 16 AS SIGNED ) - + ( + + NULLIF ( - - COUNT( * ), - - 54 ) ) ) AS col1
----
NULL
-38

skipif mysql # not compatible
query II rowsort label-308
SELECT - + ( + + 98 ) / - CAST ( NULL AS REAL ) AS col0, NULLIF ( - 38, - + CAST ( - 16 AS INTEGER ) - + ( + + NULLIF ( - - COUNT ( * ), - - 54 ) ) ) AS col1
----
NULL
-38

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-309
SELECT ALL 14 * + 98 * - 50 + 74 * + 7 + - CAST( NULL AS SIGNED ) AS col2, 7
----
NULL
7

skipif mysql # not compatible
query II rowsort label-309
SELECT ALL 14 * + 98 * - 50 + 74 * + 7 + - CAST ( NULL AS INTEGER ) AS col2, 7
----
NULL
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-310
SELECT - + CAST( - 11 AS SIGNED ) - - 92
----
103

skipif mysql # not compatible
query I rowsort label-310
SELECT - + CAST ( - 11 AS INTEGER ) - - 92
----
103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-311
SELECT DISTINCT + COALESCE ( + NULLIF ( - MAX( 90 ), - 24 ), 2 * 85 * - 15 + - + 68 + 30 + - 7 + + + CASE SUM( + - 83 ) WHEN + 63 * - 23 THEN + 47 END + + 37 * COUNT( ALL - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) / 53 ) * + COUNT( * ) * 65 ) * + 97 + COUNT( * ) * COUNT( * ) AS col2
----
-8729

skipif mysql # not compatible
query I rowsort label-311
SELECT DISTINCT + COALESCE ( + NULLIF ( - MAX ( 90 ), - 24 ), 2 * 85 * - 15 + - + 68 + 30 + - 7 + + + CASE SUM ( + - 83 ) WHEN + 63 * - 23 THEN + 47 END + + 37 * COUNT ( ALL - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) / 53 ) * + COUNT ( * ) * 65 ) * + 97 + COUNT ( * ) * COUNT ( * ) AS col2
----
-8729

onlyif mysql # aggregate syntax: 
query II rowsort label-312
SELECT COUNT( * ), NULLIF ( + 57, 99 * COUNT( DISTINCT - 89 ) ) + - 79 * 63 * - COUNT( * ) - + 72 - ( NULLIF ( + + 87, + - COUNT( * ) ) ) AS col0
----
1
4875

skipif mysql # not compatible
query II rowsort label-312
SELECT COUNT ( * ), NULLIF ( + 57, 99 * COUNT ( DISTINCT - 89 ) ) + - 79 * 63 * - COUNT ( * ) - + 72 - ( NULLIF ( + + 87, + - COUNT ( * ) ) ) AS col0
----
1
4875

onlyif mysql # aggregate syntax: 
query I rowsort label-313
SELECT ALL - MIN( DISTINCT - 7 ) * 16 * - ( SUM( DISTINCT - 2 ) )
----
224

skipif mysql # not compatible
query I rowsort label-313
SELECT ALL - MIN ( DISTINCT - 7 ) * 16 * - ( SUM ( DISTINCT - 2 ) )
----
224

onlyif mysql # DIV for integer division: 
query I rowsort label-314
SELECT - 5 DIV + 37 * 43 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-314
SELECT - 5 / + 37 * 43 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-315
SELECT + 11 * + COALESCE ( - SUM( + + 71 ), - ( + + 96 ) ) * - + 33 + 21 + + + COUNT( * ) + 81 + 34 + - + 81 * - - 65 * CAST( + 83 AS SIGNED ) - + 71 AS col0
----
-411156

skipif mysql # not compatible
query I rowsort label-315
SELECT + 11 * + COALESCE ( - SUM ( + + 71 ), - ( + + 96 ) ) * - + 33 + 21 + + + COUNT ( * ) + 81 + 34 + - + 81 * - - 65 * CAST ( + 83 AS INTEGER ) - + 71 AS col0
----
-411156

query II rowsort
SELECT - 71 col2, 76 AS col0
----
-71
76

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-318
SELECT ALL 81 AS col0, + MAX( - 47 ) AS col1
----
81
-47

skipif mysql # not compatible
query II rowsort label-318
SELECT ALL 81 AS col0, + MAX ( - 47 ) AS col1
----
81
-47

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

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

query I rowsort
SELECT + 45 * + 23 AS col0
----
1035

query I rowsort
SELECT + 21 * 19
----
399

query I rowsort
SELECT + 80 * - - 63 * + 21 AS col1
----
105840

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

query I rowsort
SELECT - 68 + + COALESCE ( - 82, 55 )
----
-150

query I rowsort
SELECT + 85 - 74
----
11

query II rowsort
SELECT 57 AS col1, + 18 AS col1
----
57
18

query I rowsort
SELECT ALL 32 * - 13 * + 43
----
-17888

query I rowsort
SELECT + 67 + + 33
----
100

query I rowsort
SELECT ALL 37 * + 18 * + + 69
----
45954

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-330
SELECT - NULLIF ( COUNT( * ), 65 - 75 + + 45 + - MAX( + CAST( - - 13 AS SIGNED ) ) * COALESCE ( + 7, 23 + 36 + + + 78, 13 - + - 88 / + + 26 ) - CAST( NULL AS SIGNED ) ) * 96 AS col1
----
-96

skipif mysql # not compatible
query I rowsort label-330
SELECT - NULLIF ( COUNT ( * ), 65 - 75 + + 45 + - MAX ( + CAST ( - - 13 AS INTEGER ) ) * COALESCE ( + 7, 23 + 36 + + + 78, 13 - + - 88 / + + 26 ) - CAST ( NULL AS INTEGER ) ) * 96 AS col1
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-331
SELECT + MIN( ALL - 64 ) + 87
----
23

skipif mysql # not compatible
query I rowsort label-331
SELECT + MIN ( ALL - 64 ) + 87
----
23

query I rowsort
SELECT ALL ( + CASE WHEN NOT 47 >= + 66 THEN - 66 ELSE NULL END )
----
-66

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

onlyif mysql # DIV for integer division: 
query I rowsort label-334
SELECT - 46 DIV 11 + - 40 - - - 32
----
-76

skipif mysql # not compatible
query I rowsort label-334
SELECT - 46 / 11 + - 40 - - - 32
----
-76

query II rowsort
SELECT ALL + + 17 AS col2, 58
----
17
58

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

skipif mysql # not compatible
query I rowsort label-336
SELECT DISTINCT 22 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-337
SELECT + + COALESCE ( - 97, - + 96, CASE 75 WHEN 45 * + 73 - + 86 THEN 82 * - 76 + ( + - COALESCE ( 70, - 27, CASE 86 WHEN + 29 + + ( - 13 + + 9 ) THEN NULL ELSE 8 END ) ) * 16 END + SUM( DISTINCT + 42 ) ) * + 50 AS col1
----
-4850

skipif mysql # not compatible
query I rowsort label-337
SELECT + + COALESCE ( - 97, - + 96, CASE 75 WHEN 45 * + 73 - + 86 THEN 82 * - 76 + ( + - COALESCE ( 70, - 27, CASE 86 WHEN + 29 + + ( - 13 + + 9 ) THEN NULL ELSE 8 END ) ) * 16 END + SUM ( DISTINCT + 42 ) ) * + 50 AS col1
----
-4850

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-338
SELECT ALL - 22 DIV + 56 * - - 72 + 24 + COUNT( * ) + + - 78 + - - 11 AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-338
SELECT ALL - 22 / + 56 * - - 72 + 24 + COUNT ( * ) + + - 78 + - - 11 AS col1
----
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-339
SELECT + + 7 DIV - - 96 * - 25 * - - 98 + - - COUNT( - 81 ) + - 51 * + 72 AS col1
----
-3671

skipif mysql # not compatible
query I rowsort label-339
SELECT + + 7 / - - 96 * - 25 * - - 98 + - - COUNT ( - 81 ) + - 51 * + 72 AS col1
----
-3671

onlyif mysql # aggregate syntax: 
query I rowsort label-340
SELECT + + COUNT( + ( 69 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-340
SELECT + + COUNT ( + ( 69 ) ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-341
SELECT ALL 70 DIV 54 + - 99 + + 31 AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-341
SELECT ALL 70 / 54 + - 99 + + 31 AS col0
----
-67

query II rowsort
SELECT + 8 AS col1, - 67 col2
----
8
-67

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

skipif mysql # not compatible
query I rowsort label-343
SELECT - SUM ( + - 47 )
----
47

query I rowsort
SELECT - - 75 * - - 74
----
5550

onlyif mysql # aggregate syntax: 
query I rowsort label-345
SELECT + - 64 + COUNT( * ) + MIN( - 37 ) * + 85 AS col2
----
-3208

skipif mysql # not compatible
query I rowsort label-345
SELECT + - 64 + COUNT ( * ) + MIN ( - 37 ) * + 85 AS col2
----
-3208

onlyif mysql # aggregate syntax: 
query I rowsort label-346
SELECT ALL - 6 * + 50 * + 93 + - - NULLIF ( MAX( ALL + 81 ), 26 ) AS col2
----
-27819

skipif mysql # not compatible
query I rowsort label-346
SELECT ALL - 6 * + 50 * + 93 + - - NULLIF ( MAX ( ALL + 81 ), 26 ) AS col2
----
-27819

onlyif mysql # aggregate syntax: 
query I rowsort label-347
SELECT DISTINCT 29 * - MIN( + - 92 ) AS col2
----
2668

skipif mysql # not compatible
query I rowsort label-347
SELECT DISTINCT 29 * - MIN ( + - 92 ) AS col2
----
2668

query I rowsort
SELECT DISTINCT 22 * + 96 * - + 45 col2
----
-95040

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-349
SELECT - 34 * CAST( NULL AS DECIMAL ) AS col2, 30 * + CAST( NULL AS SIGNED ) + + 83 + + 67
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-349
SELECT - 34 * CAST ( NULL AS REAL ) AS col2, 30 * + CAST ( NULL AS INTEGER ) + + 83 + + 67
----
NULL
NULL

query II rowsort
SELECT ALL - 73 - + 64 col0, 2 * + + 8 AS col1
----
-137
16

onlyif mysql # aggregate syntax: 
query I rowsort label-351
SELECT COUNT( 92 ) * - - 49 - SUM( ALL - 35 )
----
84

skipif mysql # not compatible
query I rowsort label-351
SELECT COUNT ( 92 ) * - - 49 - SUM ( ALL - 35 )
----
84

query I rowsort
SELECT 28 + - 34
----
-6

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

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

query I rowsort
SELECT 12 * + 55
----
660

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-355
SELECT 18 + - 67 - 90 * NULLIF ( + COUNT( * ), - 83 * COUNT( + CAST( - 92 AS SIGNED ) ) * - COALESCE ( CAST( + COUNT( ALL 6 ) AS SIGNED ), - 35, + 89 + + + 13 + 74 * + COUNT( * ) ) + CAST( NULL AS SIGNED ) ) + - COALESCE ( 19, 71 * 9 )
----
-158

skipif mysql # not compatible
query I rowsort label-355
SELECT 18 + - 67 - 90 * NULLIF ( + COUNT ( * ), - 83 * COUNT ( + CAST ( - 92 AS INTEGER ) ) * - COALESCE ( CAST ( + COUNT ( ALL 6 ) AS INTEGER ), - 35, + 89 + + + 13 + 74 * + COUNT ( * ) ) + CAST ( NULL AS INTEGER ) ) + - COALESCE ( 19, 71 * 9 )
----
-158

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-356
SELECT 37 + + - 9 + + 72 - - - NULLIF ( + MAX( ALL 82 ), + - 69 * + + COUNT( * ) ) - COUNT( ( - COALESCE ( + - 43, + 24 ) ) ), 17 DIV CASE 88 WHEN - - 46 * 55 THEN - CASE + 75 WHEN + 15 THEN NULL WHEN + 89 + + 10 THEN + 96 END ELSE NULLIF ( + 99, - 90 * 50 ) + + 19 END AS col2
----
17
0

skipif mysql # not compatible
query II rowsort label-356
SELECT 37 + + - 9 + + 72 - - - NULLIF ( + MAX ( ALL 82 ), + - 69 * + + COUNT ( * ) ) - COUNT ( ( - COALESCE ( + - 43, + 24 ) ) ), 17 / CASE 88 WHEN - - 46 * 55 THEN - CASE + 75 WHEN + 15 THEN NULL WHEN + 89 + + 10 THEN + 96 END ELSE NULLIF ( + 99, - 90 * 50 ) + + 19 END AS col2
----
17
0

onlyif mysql # aggregate syntax: 
query I rowsort label-357
SELECT ALL + COUNT( * ) * + 16 * + 7 AS col2
----
112

skipif mysql # not compatible
query I rowsort label-357
SELECT ALL + COUNT ( * ) * + 16 * + 7 AS col2
----
112

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-358
SELECT - CAST( + + 2 AS SIGNED )
----
-2

skipif mysql # not compatible
query I rowsort label-358
SELECT - CAST ( + + 2 AS INTEGER )
----
-2

query I rowsort
SELECT 51 * + 77
----
3927

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-360
SELECT DISTINCT + CASE - 26 WHEN + 44 + + 93 THEN - CAST( - - 48 AS SIGNED ) / - 0 + - CAST( NULL AS SIGNED ) * - 97 WHEN + + 1 * - 79 + 75 THEN - - 83 * - 71 / - 60 * + 32 / - ( + AVG ( + 43 ) ) + + 79 WHEN MIN( + 65 ) * 70 THEN NULL ELSE NULL END + 24
----
NULL

skipif mysql # not compatible
query I rowsort label-360
SELECT DISTINCT + CASE - 26 WHEN + 44 + + 93 THEN - CAST ( - - 48 AS INTEGER ) / - 0 + - CAST ( NULL AS INTEGER ) * - 97 WHEN + + 1 * - 79 + 75 THEN - - 83 * - 71 / - 60 * + 32 / - ( + AVG ( + 43 ) ) + + 79 WHEN MIN ( + 65 ) * 70 THEN NULL ELSE NULL END + 24
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-361
SELECT 43 DIV 75 col2
----
0

skipif mysql # not compatible
query I rowsort label-361
SELECT 43 / 75 col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-362
SELECT DISTINCT + ( - + CAST( - 3 AS SIGNED ) ) + + 37 + - + COUNT( * ) * - + COUNT( * ) col1
----
41

skipif mysql # not compatible
query I rowsort label-362
SELECT DISTINCT + ( - + CAST ( - 3 AS INTEGER ) ) + + 37 + - + COUNT ( * ) * - + COUNT ( * ) col1
----
41

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-364
SELECT 22 + COUNT( * ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-364
SELECT 22 + COUNT ( * ) AS col1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-365
SELECT ALL + - COUNT( * ) + - 51 * - + 24
----
1223

skipif mysql # not compatible
query I rowsort label-365
SELECT ALL + - COUNT ( * ) + - 51 * - + 24
----
1223

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-366
SELECT DISTINCT 56 * - 2 + + + NULLIF ( 48, + ( - 8 ) ) + - 64 + + COUNT( ALL + 38 ) - - + COALESCE ( - CAST( NULL AS SIGNED ), 27 )
----
-100

skipif mysql # not compatible
query I rowsort label-366
SELECT DISTINCT 56 * - 2 + + + NULLIF ( 48, + ( - 8 ) ) + - 64 + + COUNT ( ALL + 38 ) - - + COALESCE ( - CAST ( NULL AS INTEGER ), 27 )
----
-100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-367
SELECT COALESCE ( + + SUM( ALL - + CAST( NULL AS SIGNED ) ), - 20 - + NULLIF ( 71, - 67 + + 37 ) * 30 ) * + 11 * - 10 AS col2
----
236500

skipif mysql # not compatible
query I rowsort label-367
SELECT COALESCE ( + + SUM ( ALL - + CAST ( NULL AS INTEGER ) ), - 20 - + NULLIF ( 71, - 67 + + 37 ) * 30 ) * + 11 * - 10 AS col2
----
236500

onlyif mysql # aggregate syntax: 
query II rowsort label-368
SELECT MAX( - - 24 ) * - 89 - - 16 * - 7, + 32 col2
----
-2248
32

skipif mysql # not compatible
query II rowsort label-368
SELECT MAX ( - - 24 ) * - 89 - - 16 * - 7, + 32 col2
----
-2248
32

query I rowsort
SELECT 91 + - 18 + ( 38 )
----
111

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-371
SELECT DISTINCT 81 - COUNT( * ) AS col0
----
80

skipif mysql # not compatible
query I rowsort label-371
SELECT DISTINCT 81 - COUNT ( * ) AS col0
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-372
SELECT 85 AS col2, ( - + 50 ) * - 73 + - - CAST( - MAX( DISTINCT 87 ) AS SIGNED ) AS col1
----
85
3563

skipif mysql # not compatible
query II rowsort label-372
SELECT 85 AS col2, ( - + 50 ) * - 73 + - - CAST ( - MAX ( DISTINCT 87 ) AS INTEGER ) AS col1
----
85
3563

onlyif mysql # aggregate syntax: 
query I rowsort label-373
SELECT 23 * - 59 - - - COUNT( * ) AS col1
----
-1358

skipif mysql # not compatible
query I rowsort label-373
SELECT 23 * - 59 - - - COUNT ( * ) AS col1
----
-1358

onlyif mysql # aggregate syntax: 
query I rowsort label-374
SELECT ALL 16 - + 73 + - - 81 - - 43 * - 82 * - ( + NULLIF ( - 87, + - 76 + - 69 - - NULLIF ( ( + + 35 ), - 93 ) * - + 42 ) ) - - + COUNT( * )
----
-306737

skipif mysql # not compatible
query I rowsort label-374
SELECT ALL 16 - + 73 + - - 81 - - 43 * - 82 * - ( + NULLIF ( - 87, + - 76 + - 69 - - NULLIF ( ( + + 35 ), - 93 ) * - + 42 ) ) - - + COUNT ( * )
----
-306737

onlyif mysql # aggregate syntax: 
query II rowsort label-375
SELECT + 26 AS col0, COUNT( ALL 90 ) col0
----
26
1

skipif mysql # not compatible
query II rowsort label-375
SELECT + 26 AS col0, COUNT ( ALL 90 ) col0
----
26
1

query I rowsort
SELECT 22 * 37 AS col0
----
814

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-377
SELECT ALL NULLIF ( + - 33, + 72 + AVG ( DISTINCT + 77 ) + + CASE - + 56 WHEN + + COALESCE ( + 96, + - 35 + - 44 ) THEN NULL WHEN COUNT( * ) THEN + MIN( ALL - - ( - 29 ) ) + - 31 ELSE NULL END + + - CAST( + 23 AS SIGNED ) / - 39 ) * 91
----
-3003

skipif mysql # not compatible
query I rowsort label-377
SELECT ALL NULLIF ( + - 33, + 72 + AVG ( DISTINCT + 77 ) + + CASE - + 56 WHEN + + COALESCE ( + 96, + - 35 + - 44 ) THEN NULL WHEN COUNT ( * ) THEN + MIN ( ALL - - ( - 29 ) ) + - 31 ELSE NULL END + + - CAST ( + 23 AS INTEGER ) / - 39 ) * 91
----
-3003

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-378
SELECT CAST( NULL AS SIGNED ) * + 6 / - 91 * - AVG ( ALL + - 20 ) + + - CASE + 65 WHEN - + 93 THEN + - NULLIF ( 32, - + MAX( DISTINCT - + 88 ) ) - + 44 END
----
NULL

skipif mysql # not compatible
query I rowsort label-378
SELECT CAST ( NULL AS INTEGER ) * + 6 / - 91 * - AVG ( ALL + - 20 ) + + - CASE + 65 WHEN - + 93 THEN + - NULLIF ( 32, - + MAX ( DISTINCT - + 88 ) ) - + 44 END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-379
SELECT 31 * + CAST ( NULL AS REAL ) * - + 90
----
NULL

query I rowsort
SELECT ALL 4 * 55 AS col1
----
220

onlyif mysql # aggregate syntax: 
query I rowsort label-381
SELECT COUNT( * ) * - 50 * + 29 AS col2
----
-1450

skipif mysql # not compatible
query I rowsort label-381
SELECT COUNT ( * ) * - 50 * + 29 AS col2
----
-1450

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-382
SELECT ALL 46 AS col1, + NULLIF ( COUNT( * ), - 15 * - 48 + + ( 78 ) ) + COALESCE ( - + 87, - - 50 ) + 58 DIV + + 61 AS col2
----
46
-86

skipif mysql # not compatible
query II rowsort label-382
SELECT ALL 46 AS col1, + NULLIF ( COUNT ( * ), - 15 * - 48 + + ( 78 ) ) + COALESCE ( - + 87, - - 50 ) + 58 / + + 61 AS col2
----
46
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-383
SELECT ALL MIN( ALL 6 ) * 25 col2, - 88 * - 0 AS col1
----
150
0

skipif mysql # not compatible
query II rowsort label-383
SELECT ALL MIN ( ALL 6 ) * 25 col2, - 88 * - 0 AS col1
----
150
0

onlyif mysql # aggregate syntax: 
query I rowsort label-384
SELECT 2 + - + 42 + COALESCE ( + + 58, 59, COUNT( DISTINCT - + NULLIF ( 4, + 80 + - 11 ) ) ) AS col0
----
18

skipif mysql # not compatible
query I rowsort label-384
SELECT 2 + - + 42 + COALESCE ( + + 58, 59, COUNT ( DISTINCT - + NULLIF ( 4, + 80 + - 11 ) ) ) AS col0
----
18

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-386
SELECT NULLIF ( + 27, 8 DIV + 92 + - ( - 39 ) - 12 + + + 87 DIV - + NULLIF ( + AVG ( DISTINCT ( + 46 ) ), - 10 ) + - 25 - 50 * 93 * + + COUNT( * ) - COUNT( + 10 ) - - CAST( NULL AS SIGNED ) * + 71 ) * MIN( - 50 DIV - 75 )
----
0

skipif mysql # not compatible
query I rowsort label-386
SELECT NULLIF ( + 27, 8 / + 92 + - ( - 39 ) - 12 + + + 87 / - + NULLIF ( + AVG ( DISTINCT ( + 46 ) ), - 10 ) + - 25 - 50 * 93 * + + COUNT ( * ) - COUNT ( + 10 ) - - CAST ( NULL AS INTEGER ) * + 71 ) * MIN ( - 50 / - 75 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-387
SELECT NULLIF ( + - ( + 9 ), + + COUNT( * ) ) + 98 - 55
----
34

skipif mysql # not compatible
query I rowsort label-387
SELECT NULLIF ( + - ( + 9 ), + + COUNT ( * ) ) + 98 - 55
----
34

query I rowsort
SELECT 27 + + 56
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-389
SELECT - 16 + - CAST( NULL AS SIGNED ) + + 85 * - 51 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-389
SELECT - 16 + - CAST ( NULL AS INTEGER ) + + 85 * - 51 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-390
SELECT ALL + COUNT( * ) + 42 - - 3 - + - 50 * + 17 * + ( - - 51 )
----
43396

skipif mysql # not compatible
query I rowsort label-390
SELECT ALL + COUNT ( * ) + 42 - - 3 - + - 50 * + 17 * + ( - - 51 )
----
43396

onlyif mysql # aggregate syntax: 
query I rowsort label-391
SELECT MIN( ALL + 65 ) AS col0
----
65

skipif mysql # not compatible
query I rowsort label-391
SELECT MIN ( ALL + 65 ) AS col0
----
65

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-393
SELECT ALL SUM( ALL - COALESCE ( - 94, - 38 ) ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-393
SELECT ALL SUM ( ALL - COALESCE ( - 94, - 38 ) ) + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-394
SELECT MIN( DISTINCT + + 89 ) + 91 AS col0
----
180

skipif mysql # not compatible
query I rowsort label-394
SELECT MIN ( DISTINCT + + 89 ) + 91 AS col0
----
180

onlyif mysql # DIV for integer division: 
query I rowsort label-395
SELECT ALL + - 79 * + 1 + + + 29 DIV 74 * 6
----
-79

skipif mysql # not compatible
query I rowsort label-395
SELECT ALL + - 79 * + 1 + + + 29 / 74 * 6
----
-79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-396
SELECT DISTINCT + COUNT( * ) * - NULLIF ( - COALESCE ( - 24, 75, 9, - 77 DIV COUNT( * ) ), - + COUNT( * ) ) AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-396
SELECT DISTINCT + COUNT ( * ) * - NULLIF ( - COALESCE ( - 24, 75, 9, - 77 / COUNT ( * ) ), - + COUNT ( * ) ) AS col2
----
-24

query II rowsort
SELECT DISTINCT 42, 47 + - 43 AS col1
----
42
4

onlyif mysql # aggregate syntax: 
query I rowsort label-398
SELECT 68 + + + MIN( ALL + 0 )
----
68

skipif mysql # not compatible
query I rowsort label-398
SELECT 68 + + + MIN ( ALL + 0 )
----
68

query I rowsort
SELECT - 88 * + 86 col2
----
-7568

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-400
SELECT ALL + 70 AS col0, - 17 / CAST( NULL AS SIGNED ) * 98 - + 2 + 36
----
70
NULL

skipif mysql # not compatible
query II rowsort label-400
SELECT ALL + 70 AS col0, - 17 / CAST ( NULL AS INTEGER ) * 98 - + 2 + 36
----
70
NULL

query I rowsort
SELECT - 32 + + 59
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-402
SELECT 34 DIV - MIN( 56 ) - + 67 + - - 52 * + 30 AS col0
----
1493

skipif mysql # not compatible
query I rowsort label-402
SELECT 34 / - MIN ( 56 ) - + 67 + - - 52 * + 30 AS col0
----
1493

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-403
SELECT ALL NULLIF ( - 4, - 18 ) * - CAST( - ( + + 58 ) AS SIGNED ) - - - 74
----
-306

skipif mysql # not compatible
query I rowsort label-403
SELECT ALL NULLIF ( - 4, - 18 ) * - CAST ( - ( + + 58 ) AS INTEGER ) - - - 74
----
-306

query II rowsort
SELECT ALL - 34, ( - COALESCE ( + 76, + + 79 ) ) * - 82 AS col0
----
-34
6232

query I rowsort
SELECT ALL + 62 * + + 50
----
3100

onlyif mysql # DIV for integer division: 
query I rowsort label-406
SELECT DISTINCT 74 * 58 * - ( ( - 92 ) ) - + - NULLIF ( ( - 97 ), - ( NULLIF ( + 1, - 35 * + 79 + AVG ( ALL 4 ) * + ( - 40 ) ) ) ) DIV - + 16
----
394870

skipif mysql # not compatible
query I rowsort label-406
SELECT DISTINCT 74 * 58 * - ( ( - 92 ) ) - + - NULLIF ( ( - 97 ), - ( NULLIF ( + 1, - 35 * + 79 + AVG ( ALL 4 ) * + ( - 40 ) ) ) ) / - + 16
----
394870

onlyif mysql # DIV for integer division: 
query I rowsort label-407
SELECT + 11 + - 29 DIV - 35
----
11

skipif mysql # not compatible
query I rowsort label-407
SELECT + 11 + - 29 / - 35
----
11

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

skipif mysql # not compatible
query II rowsort label-408
SELECT SUM ( - 3 ) AS col0, COUNT ( * )
----
-3
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-409
SELECT 46 * ( 74 ) + - 33 * + CASE - - 45 WHEN - 2 THEN - COUNT( * ) / + 65 + - 51 + + 44 * 96 * - 43 / - CAST( NULL AS SIGNED ) + 69 + + - 26 * + + 55 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-409
SELECT 46 * ( 74 ) + - 33 * + CASE - - 45 WHEN - 2 THEN - COUNT ( * ) / + 65 + - 51 + + 44 * 96 * - 43 / - CAST ( NULL AS INTEGER ) + 69 + + - 26 * + + 55 ELSE NULL END AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-410
SELECT MAX ( + - 74 )
----
-74

query I rowsort
SELECT DISTINCT + 29 * + 80 AS col0
----
2320

onlyif mysql # aggregate syntax: 
query I rowsort label-412
SELECT - COUNT( * ) * + 70 + 74 + + + 83 + - - 18 * + - COALESCE ( - 67, - + COUNT( * ) ) * + 30 * + - 76 + + + COUNT( * ) + - - 89 + - COUNT( * ) + + SUM( ALL + 77 ) + + + 4
----
-2749423

skipif mysql # not compatible
query I rowsort label-412
SELECT - COUNT ( * ) * + 70 + 74 + + + 83 + - - 18 * + - COALESCE ( - 67, - + COUNT ( * ) ) * + 30 * + - 76 + + + COUNT ( * ) + - - 89 + - COUNT ( * ) + + SUM ( ALL + 77 ) + + + 4
----
-2749423

onlyif mysql # aggregate syntax: 
query I rowsort label-413
SELECT MIN( 0 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-413
SELECT MIN ( 0 ) AS col2
----
0

query I rowsort
SELECT 84 * NULLIF ( 52, 42 ) + - 44 * + 24 * + 70 * - 96 * - ( ( 31 ) ) AS col1
----
-219981552

query I rowsort
SELECT + 15 + + 75 col1
----
90

query II rowsort
SELECT ALL 20 + + + 18, 48 * - 51 col1
----
38
-2448

query I rowsort
SELECT + 26 * 50 AS col2
----
1300

query I rowsort
SELECT + 32 + + 77
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-419
SELECT - MAX( 93 ) col1
----
-93

skipif mysql # not compatible
query I rowsort label-419
SELECT - MAX ( 93 ) col1
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-420
SELECT ALL 44 * COUNT( * ) + + 12 + MIN( + 88 )
----
144

skipif mysql # not compatible
query I rowsort label-420
SELECT ALL 44 * COUNT ( * ) + + 12 + MIN ( + 88 )
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-421
SELECT ALL - 89 + - 80 * + - 78 + COUNT( * ) + + 97 - + 40 + - COUNT( * ) + + - COALESCE ( - 33, COUNT( ALL 26 ) ) * + - CASE + 34 WHEN - 90 THEN + + 49 / + MAX( DISTINCT 73 ) END * + 93 * + 67 * + 44 + 2 * NULLIF ( - 18 * - 60 + 83, + 26 ) * - 48
----
NULL

skipif mysql # not compatible
query I rowsort label-421
SELECT ALL - 89 + - 80 * + - 78 + COUNT ( * ) + + 97 - + 40 + - COUNT ( * ) + + - COALESCE ( - 33, COUNT ( ALL 26 ) ) * + - CASE + 34 WHEN - 90 THEN + + 49 / + MAX ( DISTINCT 73 ) END * + 93 * + 67 * + 44 + 2 * NULLIF ( - 18 * - 60 + 83, + 26 ) * - 48
----
NULL

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

query I rowsort
SELECT ALL - - 56 + + 41 + - + 57 + 14
----
54

query I rowsort
SELECT DISTINCT + 51 + - 24 * - + 36
----
915

query I rowsort
SELECT ALL - 40 * + 40 AS col0
----
-1600

query I rowsort
SELECT - 50 * - 80 AS col0
----
4000

onlyif mysql # aggregate syntax: 
query I rowsort label-427
SELECT ALL 33 + - 1 + + 60 * - COUNT( ALL + + 72 ) AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-427
SELECT ALL 33 + - 1 + + 60 * - COUNT ( ALL + + 72 ) AS col0
----
-28

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-429
SELECT DISTINCT ( + + 8 ), MAX( DISTINCT + - 75 ) col1
----
8
-75

skipif mysql # not compatible
query II rowsort label-429
SELECT DISTINCT ( + + 8 ), MAX ( DISTINCT + - 75 ) col1
----
8
-75

query II rowsort
SELECT DISTINCT 18 - 1 AS col0, 29 + - + 62 * + 22
----
17
-1335

query I rowsort
SELECT DISTINCT - - 26 - - 36 AS col1
----
62

query I rowsort
SELECT DISTINCT - - 9 * 63 - + 34
----
533

onlyif mysql # aggregate syntax: 
query I rowsort label-433
SELECT - 88 * MAX( - 33 ) AS col1
----
2904

skipif mysql # not compatible
query I rowsort label-433
SELECT - 88 * MAX ( - 33 ) AS col1
----
2904

query II rowsort
SELECT ALL + CASE WHEN NOT NULL IS NULL THEN 11 ELSE NULL END AS col2, - 90 * - - 49 * + 40 AS col2
----
NULL
-176400

query II rowsort
SELECT ALL + 67 col1, + 4 AS col0
----
67
4

onlyif mysql # aggregate syntax: 
query I rowsort label-436
SELECT - 51 + - - 50 * MIN( DISTINCT + 99 )
----
4899

skipif mysql # not compatible
query I rowsort label-436
SELECT - 51 + - - 50 * MIN ( DISTINCT + 99 )
----
4899

query I rowsort
SELECT - 69 * + - 45
----
3105

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

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

query I rowsort
SELECT - 62 * 92 AS col2
----
-5704

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-440
SELECT - 96 * - 24 - + - 88, 17 + - MIN( 41 ) DIV 96 DIV - 30 - + 86 AS col1
----
2392
-69

skipif mysql # not compatible
query II rowsort label-440
SELECT - 96 * - 24 - + - 88, 17 + - MIN ( 41 ) / 96 / - 30 - + 86 AS col1
----
2392
-69

query I rowsort
SELECT - 33 * - + 76
----
2508

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

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

query II rowsort
SELECT + NULLIF ( + 42, - - 4 * - 43 * - 67 ) col0, CASE - 63 WHEN + 11 + - 62 THEN - 90 ELSE NULL END
----
42
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-444
SELECT NULLIF ( - COUNT( * ), - COALESCE ( + - 86, - ( - 34 ), - CAST( NULL AS DECIMAL ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-444
SELECT NULLIF ( - COUNT ( * ), - COALESCE ( + - 86, - ( - 34 ), - CAST ( NULL AS REAL ) ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-445
SELECT - 3 * + - 17 * - 18 * - - COUNT( * ) AS col0
----
-918

skipif mysql # not compatible
query I rowsort label-445
SELECT - 3 * + - 17 * - 18 * - - COUNT ( * ) AS col0
----
-918

query I rowsort
SELECT + 9 * + 1 AS col2
----
9

query I rowsort
SELECT DISTINCT - 7 * + 57
----
-399

onlyif mysql # aggregate syntax: 
query I rowsort label-448
SELECT ALL COUNT( * ) * - + 88 + - 62 AS col1
----
-150

skipif mysql # not compatible
query I rowsort label-448
SELECT ALL COUNT ( * ) * - + 88 + - 62 AS col1
----
-150

query I rowsort
SELECT 8 * + 75 * - + 36 * + 58 * + 45 - - + 28 AS col1
----
-56375972

onlyif mysql # aggregate syntax: 
query I rowsort label-450
SELECT DISTINCT + COALESCE ( - 65, + COUNT( * ) ) * - + COUNT( * ) * + + 69 + - - 49 AS col1
----
4534

skipif mysql # not compatible
query I rowsort label-450
SELECT DISTINCT + COALESCE ( - 65, + COUNT ( * ) ) * - + COUNT ( * ) * + + 69 + - - 49 AS col1
----
4534

query II rowsort
SELECT ALL 87 col1, 16
----
87
16

onlyif mysql # aggregate syntax: 
query II rowsort label-452
SELECT - - NULLIF ( 21, - 91 / + + 82 + + COUNT( * ) * - + 91 * - + COUNT( * ) * - + COUNT( ALL + 36 ) ) + - 12 AS col1, 3 AS col0
----
9
3

skipif mysql # not compatible
query II rowsort label-452
SELECT - - NULLIF ( 21, - 91 / + + 82 + + COUNT ( * ) * - + 91 * - + COUNT ( * ) * - + COUNT ( ALL + 36 ) ) + - 12 AS col1, 3 AS col0
----
9
3

query I rowsort
SELECT + + 72 + - 8
----
64

query I rowsort
SELECT + + 67 - - 65
----
132

query I rowsort
SELECT + 61 * 83 AS col0
----
5063

query I rowsort
SELECT + - 97 + 23 - - + 63 + + 16 * + 74
----
1173

query I rowsort
SELECT ALL + CASE 10 WHEN 27 THEN + 22 - + - ( + - 75 ) WHEN - 16 * 95 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT + - 48 + + ( + - 15 )
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-459
SELECT DISTINCT CASE - 46 WHEN - 85 * MIN( DISTINCT + 49 ) THEN - COALESCE ( + 23, 65 + 39 + + 39 + - 89, 17 + + COUNT( * ) ) WHEN - AVG ( - 36 ) + + 71 + - - 36 + - 19 * - 68 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-459
SELECT DISTINCT CASE - 46 WHEN - 85 * MIN ( DISTINCT + 49 ) THEN - COALESCE ( + 23, 65 + 39 + + 39 + - 89, 17 + + COUNT ( * ) ) WHEN - AVG ( - 36 ) + + 71 + - - 36 + - 19 * - 68 THEN NULL ELSE NULL END
----
NULL

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

query I rowsort
SELECT 7 * - 34 AS col0
----
-238

onlyif mysql # aggregate syntax: 
query I rowsort label-462
SELECT 66 + - - 95 * + MIN( ALL - 96 )
----
-9054

skipif mysql # not compatible
query I rowsort label-462
SELECT 66 + - - 95 * + MIN ( ALL - 96 )
----
-9054

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

skipif mysql # not compatible
query I rowsort label-463
SELECT - MIN ( + - 22 )
----
22

query I rowsort
SELECT - 77 + 99 AS col0
----
22

query I rowsort
SELECT 93 * 60
----
5580

onlyif mysql # DIV for integer division: 
query I rowsort label-466
SELECT 31 + - ( + ( - 46 ) ) DIV 34 AS col1
----
32

skipif mysql # not compatible
query I rowsort label-466
SELECT 31 + - ( + ( - 46 ) ) / 34 AS col1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-467
SELECT ALL - COUNT( DISTINCT 95 )
----
-1

skipif mysql # not compatible
query I rowsort label-467
SELECT ALL - COUNT ( DISTINCT 95 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-468
SELECT 5 * + NULLIF ( 36, + - 78 ) * + COUNT( * ) col1
----
180

skipif mysql # not compatible
query I rowsort label-468
SELECT 5 * + NULLIF ( 36, + - 78 ) * + COUNT ( * ) col1
----
180

query I rowsort
SELECT ALL - ( - 72 ) + 29 * - 38 AS col1
----
-1030

onlyif mysql # aggregate syntax: 
query I rowsort label-470
SELECT ALL - MIN( ALL - 56 ) col2
----
56

skipif mysql # not compatible
query I rowsort label-470
SELECT ALL - MIN ( ALL - 56 ) col2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-471
SELECT DISTINCT ( - ( COUNT( * ) ) ) + 54
----
53

skipif mysql # not compatible
query I rowsort label-471
SELECT DISTINCT ( - ( COUNT ( * ) ) ) + 54
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-472
SELECT - 92 * + - COUNT( * ) + + COUNT( * ) - + 54 + - 77 + COALESCE ( CASE + + ( + 27 ) WHEN + + ( NULLIF ( 53, + + 59 ) ) + + ( 66 ) THEN + + 78 WHEN 72 - - + 34 / + - 84 * - COUNT( * ) THEN NULL END, - - ( COUNT( * ) ), 35 ) + + 64 * + 98 * + 16 AS col1
----
100315

skipif mysql # not compatible
query I rowsort label-472
SELECT - 92 * + - COUNT ( * ) + + COUNT ( * ) - + 54 + - 77 + COALESCE ( CASE + + ( + 27 ) WHEN + + ( NULLIF ( 53, + + 59 ) ) + + ( 66 ) THEN + + 78 WHEN 72 - - + 34 / + - 84 * - COUNT ( * ) THEN NULL END, - - ( COUNT ( * ) ), 35 ) + + 64 * + 98 * + 16 AS col1
----
100315

onlyif mysql # aggregate syntax: 
query I rowsort label-473
SELECT 21 * - 27 + 35 + + ( + + COUNT( * ) )
----
-531

skipif mysql # not compatible
query I rowsort label-473
SELECT 21 * - 27 + 35 + + ( + + COUNT ( * ) )
----
-531

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-474
SELECT 84 * ( - ( - NULLIF ( - 44, - + SUM( DISTINCT + - CAST( - 57 AS SIGNED ) ) + + + COUNT( * ) ) ) ) - + - 19 * - COUNT( + + 86 ) - + 5
----
-3720

skipif mysql # not compatible
query I rowsort label-474
SELECT 84 * ( - ( - NULLIF ( - 44, - + SUM ( DISTINCT + - CAST ( - 57 AS INTEGER ) ) + + + COUNT ( * ) ) ) ) - + - 19 * - COUNT ( + + 86 ) - + 5
----
-3720

onlyif mysql # DIV for integer division: 
query I rowsort label-475
SELECT DISTINCT - 39 DIV + 77
----
0

skipif mysql # not compatible
query I rowsort label-475
SELECT DISTINCT - 39 / + 77
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-476
SELECT ALL COUNT( * ) + 85 + MIN( 57 ) + - + 2 + - COUNT( * ) * + - 57 * 38
----
2307

skipif mysql # not compatible
query I rowsort label-476
SELECT ALL COUNT ( * ) + 85 + MIN ( 57 ) + - + 2 + - COUNT ( * ) * + - 57 * 38
----
2307

query I rowsort
SELECT ALL + 21 + + 52 col2
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-478
SELECT - 9 DIV - COUNT( DISTINCT 8 )
----
9

skipif mysql # not compatible
query I rowsort label-478
SELECT - 9 / - COUNT ( DISTINCT 8 )
----
9

query II rowsort
SELECT 47 AS col2, 65 col2
----
47
65

onlyif mysql # aggregate syntax: 
query I rowsort label-480
SELECT + 80 * - COUNT( * ) + + - 84 AS col1
----
-164

skipif mysql # not compatible
query I rowsort label-480
SELECT + 80 * - COUNT ( * ) + + - 84 AS col1
----
-164

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-481
SELECT + - 43 AS col2, 47 + + COUNT( * ) + + - CAST( NULL AS DECIMAL ) * 73 * - + 83 AS col0
----
-43
NULL

skipif mysql # not compatible
query II rowsort label-481
SELECT + - 43 AS col2, 47 + + COUNT ( * ) + + - CAST ( NULL AS REAL ) * 73 * - + 83 AS col0
----
-43
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-482
SELECT SUM( - 63 ) * - - 61 * 76
----
-292068

skipif mysql # not compatible
query I rowsort label-482
SELECT SUM ( - 63 ) * - - 61 * 76
----
-292068

query I rowsort
SELECT - 41 + - 70 * 8 * + - 61 * + 2 + - 4 AS col0
----
68275

onlyif mysql # aggregate syntax: 
query I rowsort label-484
SELECT DISTINCT - + 59 * - + SUM( DISTINCT + - 98 ) AS col1
----
-5782

skipif mysql # not compatible
query I rowsort label-484
SELECT DISTINCT - + 59 * - + SUM ( DISTINCT + - 98 ) AS col1
----
-5782

query I rowsort
SELECT 63 + - - 50
----
113

query I rowsort
SELECT ALL - 57 * 7 col0
----
-399

query II rowsort
SELECT + 38 col0, - 38 AS col1
----
38
-38

query I rowsort
SELECT ALL - 46 * - + 33
----
1518

onlyif mysql # aggregate syntax: 
query I rowsort label-489
SELECT DISTINCT + - ( + 7 ) - - SUM( DISTINCT 14 ) + + COALESCE ( - + 61, - 25 ) + 23 * - 85 - + - 98
----
-1911

skipif mysql # not compatible
query I rowsort label-489
SELECT DISTINCT + - ( + 7 ) - - SUM ( DISTINCT 14 ) + + COALESCE ( - + 61, - 25 ) + 23 * - 85 - + - 98
----
-1911

query I rowsort
SELECT DISTINCT 56 - - 28
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-491
SELECT - 25 * + COUNT( * ) * - 93 AS col0
----
2325

skipif mysql # not compatible
query I rowsort label-491
SELECT - 25 * + COUNT ( * ) * - 93 AS col0
----
2325

query II rowsort
SELECT ALL 50, 71 AS col1
----
50
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-493
SELECT + CAST( - 25 AS SIGNED ) * - 29 + COUNT( * ) + 33 - + + 75 AS col0
----
684

skipif mysql # not compatible
query I rowsort label-493
SELECT + CAST ( - 25 AS INTEGER ) * - 29 + COUNT ( * ) + 33 - + + 75 AS col0
----
684

query II rowsort
SELECT DISTINCT - 63, 8 AS col2
----
-63
8

onlyif mysql # aggregate syntax: 
query I rowsort label-495
SELECT COUNT( * ) - + MAX( ALL - - 12 )
----
-11

skipif mysql # not compatible
query I rowsort label-495
SELECT COUNT ( * ) - + MAX ( ALL - - 12 )
----
-11

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

skipif mysql # not compatible
query I rowsort label-496
SELECT - CAST ( + + 46 AS INTEGER ) AS col1
----
-46

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-497
SELECT ALL 40 * COALESCE ( - 95, - 70, 74 + - - CAST( 1 AS SIGNED ) ) + + + 28 + 27 DIV - 71
----
-3772

skipif mysql # not compatible
query I rowsort label-497
SELECT ALL 40 * COALESCE ( - 95, - 70, 74 + - - CAST ( 1 AS INTEGER ) ) + + + 28 + 27 / - 71
----
-3772

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-498
SELECT - + NULLIF ( + + 21, AVG ( ALL 28 ) ) AS col1, + 81 DIV + + COUNT( * )
----
-21
81

skipif mysql # not compatible
query II rowsort label-498
SELECT - + NULLIF ( + + 21, AVG ( ALL 28 ) ) AS col1, + 81 / + + COUNT ( * )
----
-21
81

query II rowsort
SELECT ALL + 58 AS col0, 28 + ( 88 )
----
58
116

onlyif mysql # aggregate syntax: 
query I rowsort label-500
SELECT - COUNT( * ) * - 41 - + 45
----
-4

skipif mysql # not compatible
query I rowsort label-500
SELECT - COUNT ( * ) * - 41 - + 45
----
-4

query I rowsort
SELECT DISTINCT 5 + - 73 AS col2
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-502
SELECT ALL COUNT( ALL - - 32 ) * - 78 AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-502
SELECT ALL COUNT ( ALL - - 32 ) * - 78 AS col0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-503
SELECT ALL 40 + + + 31 - - + COUNT( * ) AS col2
----
72

skipif mysql # not compatible
query I rowsort label-503
SELECT ALL 40 + + + 31 - - + COUNT ( * ) AS col2
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-504
SELECT 21 - ( MAX( DISTINCT - 25 ) ) AS col0
----
46

skipif mysql # not compatible
query I rowsort label-504
SELECT 21 - ( MAX ( DISTINCT - 25 ) ) AS col0
----
46

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

skipif mysql # not compatible
query I rowsort label-505
SELECT ( COUNT ( * ) ) / + + COUNT ( * ) + - - 17
----
18

query I rowsort
SELECT DISTINCT - 75 * - 35 + - - 56
----
2681

onlyif mysql # aggregate syntax: 
query I rowsort label-507
SELECT ALL - ( 67 ) * - + 49 * - 5 + - ( - ( - - 65 ) ) + + - 67 + + 73 * + - SUM( - 7 )
----
-15906

skipif mysql # not compatible
query I rowsort label-507
SELECT ALL - ( 67 ) * - + 49 * - 5 + - ( - ( - - 65 ) ) + + - 67 + + 73 * + - SUM ( - 7 )
----
-15906

onlyif mysql # aggregate syntax: 
query I rowsort label-508
SELECT COUNT( - 66 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-508
SELECT COUNT ( - 66 ) col1
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-509
SELECT 34 / - - AVG ( ALL CAST( NULL AS DECIMAL ) ) * + - 87 + + 25 + - 21 + - 8 * - 67 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-509
SELECT 34 / - - AVG ( ALL CAST ( NULL AS REAL ) ) * + - 87 + + 25 + - 21 + - 8 * - 67 AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-510
SELECT COUNT ( + - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) )
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-512
SELECT CASE + - 27 WHEN - + 64 * + + 47 * - 24 * - + ( - 18 ) THEN + COUNT( * ) * + 28 WHEN + 39 THEN NULL END * 6 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-512
SELECT CASE + - 27 WHEN - + 64 * + + 47 * - 24 * - + ( - 18 ) THEN + COUNT ( * ) * + 28 WHEN + 39 THEN NULL END * 6 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-513
SELECT ALL COALESCE ( - COUNT( * ), 22 * - 90 / + + 74 + 2, 6 ) / + 24 * + CASE + NULLIF ( + 60, + 74 + 49 * - ( - 28 ) ) WHEN - - 79 THEN NULL WHEN - + COUNT( * ) THEN COALESCE ( + - 10, - 70 ) + 35 ELSE NULL END * - - 16 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-513
SELECT ALL COALESCE ( - COUNT ( * ), 22 * - 90 / + + 74 + 2, 6 ) / + 24 * + CASE + NULLIF ( + 60, + 74 + 49 * - ( - 28 ) ) WHEN - - 79 THEN NULL WHEN - + COUNT ( * ) THEN COALESCE ( + - 10, - 70 ) + 35 ELSE NULL END * - - 16 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-514
SELECT 35 * + 59 + - MAX( DISTINCT 50 )
----
2015

skipif mysql # not compatible
query I rowsort label-514
SELECT 35 * + 59 + - MAX ( DISTINCT 50 )
----
2015

query I rowsort
SELECT ALL 90 - + 90 + - 89 + 97 AS col2
----
8

query I rowsort
SELECT + 46 * 14
----
644

onlyif mysql # aggregate syntax: 
query I rowsort label-517
SELECT + COUNT( * ) * 53 + + 41
----
94

skipif mysql # not compatible
query I rowsort label-517
SELECT + COUNT ( * ) * 53 + + 41
----
94

query I rowsort
SELECT 58 + 51 + - 20 * - 40 + + 42
----
951

onlyif mysql # aggregate syntax: 
query I rowsort label-519
SELECT ALL COUNT( * ) * + - 76 + - 43 + + + 66 * + + 16 AS col0
----
937

skipif mysql # not compatible
query I rowsort label-519
SELECT ALL COUNT ( * ) * + - 76 + - 43 + + + 66 * + + 16 AS col0
----
937

onlyif mysql # aggregate syntax: 
query I rowsort label-520
SELECT - COUNT( ALL + 12 ) * + + ( + 90 )
----
-90

skipif mysql # not compatible
query I rowsort label-520
SELECT - COUNT ( ALL + 12 ) * + + ( + 90 )
----
-90

query I rowsort
SELECT + 92 - - - 61 col2
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-522
SELECT - 10 DIV 33 * + 92 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-522
SELECT - 10 / 33 * + 92 AS col0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-523
SELECT ALL + COALESCE ( + CAST( + 70 AS DECIMAL ), 68 ) / + 20 * + CASE + 49 WHEN - - 32 THEN - ( - + 46 ) * 3 * - 51 WHEN + + 37 + 9 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-523
SELECT ALL + COALESCE ( + CAST ( + 70 AS REAL ), 68 ) / + 20 * + CASE + 49 WHEN - - 32 THEN - ( - + 46 ) * 3 * - 51 WHEN + + 37 + 9 THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-524
SELECT - - 15 * + 20, MAX( DISTINCT 3 ) AS col2
----
300
3

skipif mysql # not compatible
query II rowsort label-524
SELECT - - 15 * + 20, MAX ( DISTINCT 3 ) AS col2
----
300
3

onlyif mysql # DIV for integer division: 
query I rowsort label-525
SELECT + 58 DIV - 13 col2
----
-4

skipif mysql # not compatible
query I rowsort label-525
SELECT + 58 / - 13 col2
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-526
SELECT + + COUNT( * ) * - 23 * ( + 73 ) AS col0
----
-1679

skipif mysql # not compatible
query I rowsort label-526
SELECT + + COUNT ( * ) * - 23 * ( + 73 ) AS col0
----
-1679

onlyif mysql # aggregate syntax: 
query II rowsort label-527
SELECT - 72 + 59 col0, MAX( DISTINCT 97 ) * + 30 + 52 - + 70 + COUNT( * ) - - 47 - - - 85
----
-13
2855

skipif mysql # not compatible
query II rowsort label-527
SELECT - 72 + 59 col0, MAX ( DISTINCT 97 ) * + 30 + 52 - + 70 + COUNT ( * ) - - 47 - - - 85
----
-13
2855

onlyif mysql # aggregate syntax: 
query I rowsort label-528
SELECT - 85 + - 52 * + COUNT( DISTINCT - - 40 ) + + + 31
----
-106

skipif mysql # not compatible
query I rowsort label-528
SELECT - 85 + - 52 * + COUNT ( DISTINCT - - 40 ) + + + 31
----
-106

onlyif mysql # aggregate syntax: 
query I rowsort label-529
SELECT ALL - - 89 + MAX( DISTINCT - 1 )
----
88

skipif mysql # not compatible
query I rowsort label-529
SELECT ALL - - 89 + MAX ( DISTINCT - 1 )
----
88

query I rowsort
SELECT - 99 + - 39 * - 69
----
2592

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

skipif mysql # not compatible
query I rowsort label-531
SELECT DISTINCT + - 39 + CAST ( NULL AS INTEGER ) - 97 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-532
SELECT - + ( - + CASE - 10 WHEN COUNT( * ) * 3 THEN + 84 - + + 95 - - 80 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-532
SELECT - + ( - + CASE - 10 WHEN COUNT ( * ) * 3 THEN + 84 - + + 95 - - 80 ELSE NULL END )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-534
SELECT ALL + 1 + MIN( ALL 19 ) AS col0
----
20

skipif mysql # not compatible
query I rowsort label-534
SELECT ALL + 1 + MIN ( ALL 19 ) AS col0
----
20

query I rowsort
SELECT - 46 + 2 AS col2
----
-44

onlyif mysql # aggregate syntax: 
query III rowsort label-536
SELECT ALL 64 AS col2, 26 * MIN( ALL + 76 ) AS col0, + - 69 AS col2
----
64
1976
-69

skipif mysql # not compatible
query III rowsort label-536
SELECT ALL 64 AS col2, 26 * MIN ( ALL + 76 ) AS col0, + - 69 AS col2
----
64
1976
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-537
SELECT - 70, - ( - 85 ) + + - CASE + 71 WHEN 8 + - + CASE + + ( - COUNT( * ) ) WHEN - 72 * COUNT( * ) / 75 THEN NULL WHEN + 86 THEN - + 94 ELSE NULL END / COUNT( ALL ( - + 87 ) ) THEN + + 3 ELSE NULL END * 68 * - 36 col0
----
-70
NULL

skipif mysql # not compatible
query II rowsort label-537
SELECT - 70, - ( - 85 ) + + - CASE + 71 WHEN 8 + - + CASE + + ( - COUNT ( * ) ) WHEN - 72 * COUNT ( * ) / 75 THEN NULL WHEN + 86 THEN - + 94 ELSE NULL END / COUNT ( ALL ( - + 87 ) ) THEN + + 3 ELSE NULL END * 68 * - 36 col0
----
-70
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-538
SELECT + AVG ( ALL - 3 ) + + CASE + - 9 WHEN ( 58 ) - 77 THEN + 12 * + 47 END AS col0, - COUNT( * )
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-538
SELECT + AVG ( ALL - 3 ) + + CASE + - 9 WHEN ( 58 ) - 77 THEN + 12 * + 47 END AS col0, - COUNT ( * )
----
NULL
-1

query I rowsort
SELECT + 75 + + - 27 * + 13 * - 19
----
6744

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-541
SELECT - 62 DIV 75 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-541
SELECT - 62 / 75 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-542
SELECT ALL + CASE - + 10 WHEN + 36 THEN 0 / + 87 - - 35 WHEN - 91 + 19 * 32 THEN 45 WHEN - ( - 13 ) / COALESCE ( + 11, + + 87 ) THEN - - 39 - COUNT( + 2 ) + - 51 * - - 86 + + + 2 - - 55 WHEN + 48 + 63 THEN NULL END + - AVG ( DISTINCT + 7 ) * + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-542
SELECT ALL + CASE - + 10 WHEN + 36 THEN 0 / + 87 - - 35 WHEN - 91 + 19 * 32 THEN 45 WHEN - ( - 13 ) / COALESCE ( + 11, + + 87 ) THEN - - 39 - COUNT ( + 2 ) + - 51 * - - 86 + + + 2 - - 55 WHEN + 48 + 63 THEN NULL END + - AVG ( DISTINCT + 7 ) * + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-543
SELECT DISTINCT + MAX( 92 ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-543
SELECT DISTINCT + MAX ( 92 ) AS col2
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-544
SELECT ALL MAX( + NULLIF ( + 42, - 74 / - 53 * + 68 ) ) * - 46 * + + SUM( - 3 ) - - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-544
SELECT ALL MAX ( + NULLIF ( + 42, - 74 / - 53 * + 68 ) ) * - 46 * + + SUM ( - 3 ) - - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 39 * 45
----
1755

onlyif mysql # aggregate syntax: 
query II rowsort label-546
SELECT + COALESCE ( - 96, + - COUNT( * ) + - + 84 ) * MIN( ALL + + 88 ) AS col2, - 11 AS col1
----
-8448
-11

skipif mysql # not compatible
query II rowsort label-546
SELECT + COALESCE ( - 96, + - COUNT ( * ) + - + 84 ) * MIN ( ALL + + 88 ) AS col2, - 11 AS col1
----
-8448
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-547
SELECT + CASE + 21 WHEN + - CAST( - - ( - 40 ) AS SIGNED ) * + 70 THEN - + 60 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-547
SELECT + CASE + 21 WHEN + - CAST ( - - ( - 40 ) AS INTEGER ) * + 70 THEN - + 60 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-548
SELECT ALL 95 * 64 - - COUNT( DISTINCT + 28 ) + + - 48 + 60 + - 33 + + 20 * 2 * - 18 * 31 AS col1
----
-16260

skipif mysql # not compatible
query I rowsort label-548
SELECT ALL 95 * 64 - - COUNT ( DISTINCT + 28 ) + + - 48 + 60 + - 33 + + 20 * 2 * - 18 * 31 AS col1
----
-16260

onlyif mysql # aggregate syntax: 
query I rowsort label-549
SELECT CASE - 96 WHEN + - 21 - 93 * - 45 * 31 + + 57 * + COUNT( * ) THEN COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-549
SELECT CASE - 96 WHEN + - 21 - 93 * - 45 * 31 + + 57 * + COUNT ( * ) THEN COUNT ( * ) END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-550
SELECT + AVG ( - CASE 74 WHEN CAST( 82 AS SIGNED ) THEN 14 END ) * + NULLIF ( - ( + 55 ), - 72 * - MAX( - ( - 93 ) ) * - 62 * - 83 - 48 + ( 9 ) + + 28 / + ( 11 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-550
SELECT + AVG ( - CASE 74 WHEN CAST ( 82 AS INTEGER ) THEN 14 END ) * + NULLIF ( - ( + 55 ), - 72 * - MAX ( - ( - 93 ) ) * - 62 * - 83 - 48 + ( 9 ) + + 28 / + ( 11 ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-551
SELECT + + 92 DIV - 47 + + 17 * - 11 + + 15 - - COALESCE ( - - 65, CAST( 43 AS SIGNED ) DIV - 77 - + COUNT( * ) )
----
-108

skipif mysql # not compatible
query I rowsort label-551
SELECT + + 92 / - 47 + + 17 * - 11 + + 15 - - COALESCE ( - - 65, CAST ( 43 AS INTEGER ) / - 77 - + COUNT ( * ) )
----
-108

query I rowsort
SELECT ALL + 41 * - 15
----
-615

query I rowsort
SELECT DISTINCT + - 55 col0
----
-55

query II rowsort
SELECT + 51 col1, 60 * - 56 * - - 88
----
51
-295680

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-555
SELECT DISTINCT + SUM( ALL - + ( - 37 ) ) * + + 57 - - 36 + + + CAST( NULL AS DECIMAL ) * + NULLIF ( + 24, + COUNT( ALL + 61 ) ) / - 51 + COUNT( * ) + 42 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-555
SELECT DISTINCT + SUM ( ALL - + ( - 37 ) ) * + + 57 - - 36 + + + CAST ( NULL AS REAL ) * + NULLIF ( + 24, + COUNT ( ALL + 61 ) ) / - 51 + COUNT ( * ) + 42 AS col1
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-558
SELECT + 47 * - - MIN( + 11 ) * + 64 * - + 45 + + 95 AS col1
----
-1488865

skipif mysql # not compatible
query I rowsort label-558
SELECT + 47 * - - MIN ( + 11 ) * + 64 * - + 45 + + 95 AS col1
----
-1488865

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

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

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

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

query I rowsort
SELECT - NULLIF ( - 78, - + 74 )
----
78

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-563
SELECT ALL + 19 * - + ( 87 ) + - 17 * COUNT( * )
----
-1670

skipif mysql # not compatible
query I rowsort label-563
SELECT ALL + 19 * - + ( 87 ) + - 17 * COUNT ( * )
----
-1670

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

skipif mysql # not compatible
query I rowsort label-564
SELECT ALL + COUNT ( * ) + - 61 AS col2
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-565
SELECT MIN( - + 28 ) AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-565
SELECT MIN ( - + 28 ) AS col2
----
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-566
SELECT DISTINCT 84 + - - 95 DIV 41 + NULLIF ( 78, - 48 DIV MAX( - + 41 ) * 89 - ( + COUNT( * ) ) )
----
164

skipif mysql # not compatible
query I rowsort label-566
SELECT DISTINCT 84 + - - 95 / 41 + NULLIF ( 78, - 48 / MAX ( - + 41 ) * 89 - ( + COUNT ( * ) ) )
----
164

query II rowsort
SELECT - 22 * + 3 AS col1, + ( + + 6 ) AS col0
----
-66
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-568
SELECT - CAST( - 41 AS SIGNED ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-568
SELECT - CAST ( - 41 AS INTEGER ) AS col2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-569
SELECT + 10 - + 48 * MIN( 1 ) AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-569
SELECT + 10 - + 48 * MIN ( 1 ) AS col2
----
-38

query I rowsort
SELECT DISTINCT ( ( 52 ) )
----
52

query I rowsort
SELECT DISTINCT + 80 * 45 * 86 * + + 77
----
23839200

onlyif mysql # aggregate syntax: 
query I rowsort label-572
SELECT ALL COALESCE ( - 66, + 34 + + 39 + 75, + 88, - MIN( + 12 ) - + 3 * COUNT( * ) ) AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-572
SELECT ALL COALESCE ( - 66, + 34 + + 39 + 75, + 88, - MIN ( + 12 ) - + 3 * COUNT ( * ) ) AS col1
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-573
SELECT ALL + 34 - COUNT( ALL + - 49 ) DIV + 66 * 23 * NULLIF ( + 65, 70 * + 93 * 93 DIV + + 72 * 27 + 17 ) DIV + 71 + SUM( + CAST( - + 74 AS SIGNED ) ) AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-573
SELECT ALL + 34 - COUNT ( ALL + - 49 ) / + 66 * 23 * NULLIF ( + 65, 70 * + 93 * 93 / + + 72 * 27 + 17 ) / + 71 + SUM ( + CAST ( - + 74 AS INTEGER ) ) AS col1
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-574
SELECT ALL + CASE - 99 WHEN + - 40 THEN NULL WHEN 8 THEN 22 + + 46 - + 77 ELSE SUM( DISTINCT + CAST( NULL AS SIGNED ) ) * - COUNT( * ) + - - ( + - 56 ) END * + + 54
----
NULL

skipif mysql # not compatible
query I rowsort label-574
SELECT ALL + CASE - 99 WHEN + - 40 THEN NULL WHEN 8 THEN 22 + + 46 - + 77 ELSE SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) * - COUNT ( * ) + - - ( + - 56 ) END * + + 54
----
NULL

query I rowsort
SELECT DISTINCT + ( + ( 50 ) ) - 57
----
-7

query I rowsort
SELECT - 50 + - 2 AS col2
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-577
SELECT - SUM( + + 68 ) AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-577
SELECT - SUM ( + + 68 ) AS col2
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-578
SELECT - COUNT( * ) * - - COALESCE ( - - ( + + 23 ), + CAST( NULL AS SIGNED ), + + 73 * + 95 * + - COUNT( * ) + MIN( + 40 ) ) AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-578
SELECT - COUNT ( * ) * - - COALESCE ( - - ( + + 23 ), + CAST ( NULL AS INTEGER ), + + 73 * + 95 * + - COUNT ( * ) + MIN ( + 40 ) ) AS col0
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-579
SELECT ALL + NULLIF ( + ( + CAST( COUNT( * ) AS SIGNED ) ), - + CASE - 6 WHEN - 27 THEN + 25 * - ( + COALESCE ( + 17, + 74 ) ) * + - 80 * - 3 * + + MAX( ALL 52 ) + + - CASE + - 77 WHEN - 46 + + COUNT( ALL - + 30 ) * 55 / + CAST( NULL AS SIGNED ) THEN NULL WHEN + ( 5 ) THEN 82 * 91 END ELSE NULL END )
----
1

skipif mysql # not compatible
query I rowsort label-579
SELECT ALL + NULLIF ( + ( + CAST ( COUNT ( * ) AS INTEGER ) ), - + CASE - 6 WHEN - 27 THEN + 25 * - ( + COALESCE ( + 17, + 74 ) ) * + - 80 * - 3 * + + MAX ( ALL 52 ) + + - CASE + - 77 WHEN - 46 + + COUNT ( ALL - + 30 ) * 55 / + CAST ( NULL AS INTEGER ) THEN NULL WHEN + ( 5 ) THEN 82 * 91 END ELSE NULL END )
----
1

onlyif mysql # aggregate syntax: 
query III rowsort label-580
SELECT - 90 * + - 60 AS col1, 27 + - 69 * - COALESCE ( - COUNT( * ), + 0 ) AS col2, + CASE - 86 WHEN + 59 THEN + + 1 * - + 97 + 93 + 12 + + COUNT( * ) ELSE - ( 30 ) * - 73 END * + COUNT( - - 73 )
----
5400
-42
2190

skipif mysql # not compatible
query III rowsort label-580
SELECT - 90 * + - 60 AS col1, 27 + - 69 * - COALESCE ( - COUNT ( * ), + 0 ) AS col2, + CASE - 86 WHEN + 59 THEN + + 1 * - + 97 + 93 + 12 + + COUNT ( * ) ELSE - ( 30 ) * - 73 END * + COUNT ( - - 73 )
----
5400
-42
2190

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-581
SELECT + 47 DIV - - 16 + + COUNT( * ) - + COUNT( * ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-581
SELECT + 47 / - - 16 + + COUNT ( * ) - + COUNT ( * ) AS col0
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-582
SELECT DISTINCT - 92 DIV - 80 * + COUNT( ALL - + 57 )
----
1

skipif mysql # not compatible
query I rowsort label-582
SELECT DISTINCT - 92 / - 80 * + COUNT ( ALL - + 57 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-583
SELECT COALESCE ( 2, + - COUNT( * ) * NULLIF ( - - CASE 32 WHEN - 73 DIV + CAST( NULL AS SIGNED ) + + 81 THEN NULL WHEN + CAST( NULL AS SIGNED ) THEN + - 94 * 28 ELSE - COALESCE ( + - ( ( - 80 ) ), + 58 * + 48 + - + 35 * + 6 ) END, + - 47 * + CAST( COUNT( * ) AS SIGNED ) DIV + COUNT( * ) + + COUNT( * ) + - 53 * - 29 + - 53 ) + SUM( DISTINCT + 42 ) DIV + 73, 81 ) DIV COUNT( * ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-583
SELECT COALESCE ( 2, + - COUNT ( * ) * NULLIF ( - - CASE 32 WHEN - 73 / + CAST ( NULL AS INTEGER ) + + 81 THEN NULL WHEN + CAST ( NULL AS INTEGER ) THEN + - 94 * 28 ELSE - COALESCE ( + - ( ( - 80 ) ), + 58 * + 48 + - + 35 * + 6 ) END, + - 47 * + CAST ( COUNT ( * ) AS INTEGER ) / + COUNT ( * ) + + COUNT ( * ) + - 53 * - 29 + - 53 ) + SUM ( DISTINCT + 42 ) / + 73, 81 ) / COUNT ( * ) AS col2
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-584
SELECT ALL - + 86 * - - 2 + - COUNT( * ) + - - ( 69 ) DIV 33 col2
----
-171

skipif mysql # not compatible
query I rowsort label-584
SELECT ALL - + 86 * - - 2 + - COUNT ( * ) + - - ( 69 ) / 33 col2
----
-171

query II rowsort
SELECT DISTINCT - ( - 57 ) AS col0, + 59 AS col1
----
57
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-586
SELECT DISTINCT - COUNT( * ) * + + ( 62 ) + NULLIF ( - + 38, + - COALESCE ( 25, - 78 ) * 87 * - CASE + NULLIF ( - COALESCE ( - 8, - 79 * - CASE + + 91 WHEN + 68 THEN NULL WHEN 89 THEN - 49 + + 96 END + + NULLIF ( + COUNT( 74 ), 22 ) - 31 + - 4, - 63 ), + 32 + + 40 ) WHEN 91 / CASE 98 * COALESCE ( - MAX( 56 ), 42 * 95 + - 0 * - 49 ) WHEN 51 THEN 94 * 41 ELSE NULL END THEN 53 WHEN CAST( 52 AS SIGNED ) THEN NULL END * + SUM( - 65 ) + 90 * - COUNT( * ) ) + 36 * 70
----
2420

skipif mysql # not compatible
query I rowsort label-586
SELECT DISTINCT - COUNT ( * ) * + + ( 62 ) + NULLIF ( - + 38, + - COALESCE ( 25, - 78 ) * 87 * - CASE + NULLIF ( - COALESCE ( - 8, - 79 * - CASE + + 91 WHEN + 68 THEN NULL WHEN 89 THEN - 49 + + 96 END + + NULLIF ( + COUNT ( 74 ), 22 ) - 31 + - 4, - 63 ), + 32 + + 40 ) WHEN 91 / CASE 98 * COALESCE ( - MAX ( 56 ), 42 * 95 + - 0 * - 49 ) WHEN 51 THEN 94 * 41 ELSE NULL END THEN 53 WHEN CAST ( 52 AS INTEGER ) THEN NULL END * + SUM ( - 65 ) + 90 * - COUNT ( * ) ) + 36 * 70
----
2420

query I rowsort
SELECT ALL 57 * + 58 - - 40 AS col2
----
3346

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-588
SELECT ALL AVG ( - - 0 ) * - AVG ( - - 28 ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-588
SELECT ALL AVG ( - - 0 ) * - AVG ( - - 28 ) + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-589
SELECT COUNT( * ) DIV - 83 - - 88
----
88

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

query I rowsort
SELECT 87 * - - 17 + - 80 * 86 - - 69 AS col1
----
-5332

query I rowsort
SELECT 87 * 80
----
6960

onlyif mysql # DIV for integer division: 
query I rowsort label-592
SELECT ALL + 18 + - 69 DIV - 93
----
18

skipif mysql # not compatible
query I rowsort label-592
SELECT ALL + 18 + - 69 / - 93
----
18

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-594
SELECT CASE - 75 WHEN + + ( + - 31 ) THEN NULL WHEN - 51 THEN - 57 ELSE - + COUNT( + 92 ) END
----
-1

skipif mysql # not compatible
query I rowsort label-594
SELECT CASE - 75 WHEN + + ( + - 31 ) THEN NULL WHEN - 51 THEN - 57 ELSE - + COUNT ( + 92 ) END
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-595
SELECT DISTINCT - - NULLIF ( - 28, - COUNT( * ) ) AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-595
SELECT DISTINCT - - NULLIF ( - 28, - COUNT ( * ) ) AS col0
----
-28

query I rowsort
SELECT ALL + 57 + - 39 AS col2
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-597
SELECT - + COUNT( * ) * - COALESCE ( - CAST( NULL AS SIGNED ), 68, 93 ) * + ( + SUM( + 72 ) ) - + COALESCE ( - ( 96 ), + 34 * 37 - - 80 * - CAST( NULL AS SIGNED ), - 41, - 89 * + 99 ) * 11 - - 34 DIV - 5
----
5946

skipif mysql # not compatible
query I rowsort label-597
SELECT - + COUNT ( * ) * - COALESCE ( - CAST ( NULL AS INTEGER ), 68, 93 ) * + ( + SUM ( + 72 ) ) - + COALESCE ( - ( 96 ), + 34 * 37 - - 80 * - CAST ( NULL AS INTEGER ), - 41, - 89 * + 99 ) * 11 - - 34 / - 5
----
5946

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

skipif mysql # not compatible
query I rowsort label-598
SELECT AVG ( ALL + + CAST ( NULL AS REAL ) ) - - 13 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-599
SELECT ALL 86 + - + 83 + - 54 DIV COALESCE ( + 6, + 13 * 6 - - ( 46 ) ) * + 5
----
-42

skipif mysql # not compatible
query I rowsort label-599
SELECT ALL 86 + - + 83 + - 54 / COALESCE ( + 6, + 13 * 6 - - ( 46 ) ) * + 5
----
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-600
SELECT 76 * + 46 col2, COUNT( * ) * + 17
----
3496
17

skipif mysql # not compatible
query II rowsort label-600
SELECT 76 * + 46 col2, COUNT ( * ) * + 17
----
3496
17

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

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

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

skipif mysql # not compatible
query II rowsort label-602
SELECT 2 AS col0, - COUNT ( * ) AS col1
----
2
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-603
SELECT - 13 col1, 92 * + + COALESCE ( - 57, - 24 * + 55 - 73 + + - 76 ) * - COUNT( DISTINCT + 3 ) AS col1
----
-13
5244

skipif mysql # not compatible
query II rowsort label-603
SELECT - 13 col1, 92 * + + COALESCE ( - 57, - 24 * + 55 - 73 + + - 76 ) * - COUNT ( DISTINCT + 3 ) AS col1
----
-13
5244

query I rowsort
SELECT ALL 81 * 31 AS col2
----
2511

query I rowsort
SELECT 56 - 45 * + 82 * - 54 + 23 AS col0
----
199339

query I rowsort
SELECT DISTINCT 28 * - 48 * - 99
----
133056

query I rowsort
SELECT 40 + - - 49
----
89

query I rowsort
SELECT ALL 45 * - 99 AS col0
----
-4455

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-609
SELECT 65 + - 34 + - - 9 + 83 * - 44 * 95 + - 74 DIV - SUM( 84 ) col0
----
-346900

skipif mysql # not compatible
query I rowsort label-609
SELECT 65 + - 34 + - - 9 + 83 * - 44 * 95 + - 74 / - SUM ( 84 ) col0
----
-346900

query I rowsort
SELECT 72 * - 59
----
-4248

onlyif mysql # DIV for integer division: 
query I rowsort label-611
SELECT DISTINCT - 94 DIV - - 58 col2
----
-1

skipif mysql # not compatible
query I rowsort label-611
SELECT DISTINCT - 94 / - - 58 col2
----
-1

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-613
SELECT 4, MIN( DISTINCT - + ( - 3 ) ) AS col1
----
4
3

skipif mysql # not compatible
query II rowsort label-613
SELECT 4, MIN ( DISTINCT - + ( - 3 ) ) AS col1
----
4
3

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-615
SELECT 71 * + - MAX( - - NULLIF ( + CAST( - 62 AS SIGNED ), - 53 ) )
----
4402

skipif mysql # not compatible
query I rowsort label-615
SELECT 71 * + - MAX ( - - NULLIF ( + CAST ( - 62 AS INTEGER ), - 53 ) )
----
4402

query I rowsort
SELECT ALL 73 * - 57 AS col0
----
-4161

query I rowsort
SELECT ALL + ( + 30 ) + 39 col1
----
69

query I rowsort
SELECT ALL - + 58 * - 39 AS col1
----
2262

query I rowsort
SELECT - 2 * - 50 AS col0
----
100

onlyif mysql # DIV for integer division: 
query I rowsort label-620
SELECT + 42 DIV - + 77 + - + 84 * 64
----
-5376

skipif mysql # not compatible
query I rowsort label-620
SELECT + 42 / - + 77 + - + 84 * 64
----
-5376

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

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

query II rowsort
SELECT 74 col1, + 82 * - 98 AS col0
----
74
-8036

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

onlyif mysql # aggregate syntax: 
query I rowsort label-624
SELECT 41 * + - 31 + COUNT( * ) + - - 99 + - 41 + 49
----
-1163

skipif mysql # not compatible
query I rowsort label-624
SELECT 41 * + - 31 + COUNT ( * ) + - - 99 + - 41 + 49
----
-1163

onlyif mysql # DIV for integer division: 
query I rowsort label-625
SELECT + 42 - - 93 DIV - - 68 AS col1
----
43

skipif mysql # not compatible
query I rowsort label-625
SELECT + 42 - - 93 / - - 68 AS col1
----
43

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-626
SELECT - ( + 18 ) + - - 61 * 30 * - CAST( NULL AS DECIMAL ) * 94
----
NULL

skipif mysql # not compatible
query I rowsort label-626
SELECT - ( + 18 ) + - - 61 * 30 * - CAST ( NULL AS REAL ) * 94
----
NULL

query I rowsort
SELECT ALL - 86 + ( + 34 ) * 93 AS col2
----
3076

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

skipif mysql # not compatible
query I rowsort label-628
SELECT DISTINCT + COUNT ( * ) + + 8 AS col2
----
9

query I rowsort
SELECT ALL ( - 8 ) + 7
----
-1

query I rowsort
SELECT + 74 * + 3 + + + 95 + + 25 + - 59 - 88 AS col2
----
195

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-631
SELECT + COUNT( * ) * - CAST( NULL AS SIGNED ) * 9, 64 col0
----
NULL
64

skipif mysql # not compatible
query II rowsort label-631
SELECT + COUNT ( * ) * - CAST ( NULL AS INTEGER ) * 9, 64 col0
----
NULL
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-632
SELECT 4 + + 6 + - + NULLIF ( 70, + + CAST( - + COUNT( * ) AS SIGNED ) ) - - + 90 DIV 44 AS col1, - 38
----
-58
-38

skipif mysql # not compatible
query II rowsort label-632
SELECT 4 + + 6 + - + NULLIF ( 70, + + CAST ( - + COUNT ( * ) AS INTEGER ) ) - - + 90 / 44 AS col1, - 38
----
-58
-38

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

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

query I rowsort
SELECT + 58 * - 1 AS col2
----
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-635
SELECT ALL - SUM( + COALESCE ( - + 17, 38, - 44 ) ) * + + COUNT( * ), - COUNT( ALL - + 53 ) + 11 AS col0
----
17
10

skipif mysql # not compatible
query II rowsort label-635
SELECT ALL - SUM ( + COALESCE ( - + 17, 38, - 44 ) ) * + + COUNT ( * ), - COUNT ( ALL - + 53 ) + 11 AS col0
----
17
10

query I rowsort
SELECT ALL 75 - 34
----
41

query I rowsort
SELECT 37 * + + 8 AS col1
----
296

onlyif mysql # aggregate syntax: 
query II rowsort label-638
SELECT DISTINCT COUNT( * ) col1, 38 + COUNT( * ) * + + 49 AS col0
----
1
87

skipif mysql # not compatible
query II rowsort label-638
SELECT DISTINCT COUNT ( * ) col1, 38 + COUNT ( * ) * + + 49 AS col0
----
1
87

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

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

query I rowsort
SELECT DISTINCT - 53 - + + 54 AS col0
----
-107

query I rowsort
SELECT 50 * 9
----
450

query I rowsort
SELECT ALL 27 * 24
----
648

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-644
SELECT 52 AS col1, + 37 * + 40 + + COUNT( ALL + 36 ) * - 99 + 74 AS col2
----
52
1455

skipif mysql # not compatible
query II rowsort label-644
SELECT 52 AS col1, + 37 * + 40 + + COUNT ( ALL + 36 ) * - 99 + 74 AS col2
----
52
1455

query I rowsort
SELECT ALL 91 * - 91
----
-8281

onlyif mysql # DIV for integer division: 
query I rowsort label-646
SELECT 46 - + + 45 DIV + - 23 AS col0
----
47

skipif mysql # not compatible
query I rowsort label-646
SELECT 46 - + + 45 / + - 23 AS col0
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-647
SELECT DISTINCT COUNT( * ) * 76 * 86 DIV 23 AS col0
----
284

skipif mysql # not compatible
query I rowsort label-647
SELECT DISTINCT COUNT ( * ) * 76 * 86 / 23 AS col0
----
284

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

onlyif mysql # aggregate syntax: 
query I rowsort label-649
SELECT ALL 32 + MIN( - ( - 34 ) ) + + 85 AS col2
----
151

skipif mysql # not compatible
query I rowsort label-649
SELECT ALL 32 + MIN ( - ( - 34 ) ) + + 85 AS col2
----
151

query I rowsort
SELECT ALL + 45 + + 14
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-651
SELECT + - CAST( NULL AS SIGNED ) / CASE - 6 WHEN - 57 THEN 57 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-651
SELECT + - CAST ( NULL AS INTEGER ) / CASE - 6 WHEN - 57 THEN 57 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-652
SELECT - + 31 DIV 44 DIV 68 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-652
SELECT - + 31 / 44 / 68 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-653
SELECT ALL COUNT( * ) * - 39 + - - 20 col0
----
-19

skipif mysql # not compatible
query I rowsort label-653
SELECT ALL COUNT ( * ) * - 39 + - - 20 col0
----
-19

query I rowsort
SELECT + - 87 * 24 + + - 22 AS col1
----
-2110

query II rowsort
SELECT + + 24 AS col0, 49 AS col1
----
24
49

onlyif mysql # DIV for integer division: 
query I rowsort label-656
SELECT + 22 DIV - 1
----
-22

skipif mysql # not compatible
query I rowsort label-656
SELECT + 22 / - 1
----
-22

query I rowsort
SELECT - 47 * - - 73 + - 85 col1
----
-3516

onlyif mysql # DIV for integer division: 
query II rowsort label-658
SELECT DISTINCT + + 1, ( 2 ) DIV + 81 AS col2
----
1
0

skipif mysql # not compatible
query II rowsort label-658
SELECT DISTINCT + + 1, ( 2 ) / + 81 AS col2
----
1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-659
SELECT ALL 14 * + 47 + + + 12 + - 72 + + COUNT( * )
----
599

skipif mysql # not compatible
query I rowsort label-659
SELECT ALL 14 * + 47 + + + 12 + - 72 + + COUNT ( * )
----
599

onlyif mysql # aggregate syntax: 
query I rowsort label-660
SELECT DISTINCT - COUNT( * ) * 57 + + 51
----
-6

skipif mysql # not compatible
query I rowsort label-660
SELECT DISTINCT - COUNT ( * ) * 57 + + 51
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-661
SELECT - + ( + - 0 ) * 41 + - COUNT( * ) + + 34 - + 30
----
3

skipif mysql # not compatible
query I rowsort label-661
SELECT - + ( + - 0 ) * 41 + - COUNT ( * ) + + 34 - + 30
----
3

query I rowsort
SELECT + ( + + NULLIF ( + 72, 15 ) ) AS col1
----
72

query I rowsort
SELECT + 30 * + - 11 - + + 67 - 24 + - - 59 * - 21 AS col1
----
-1660

query I rowsort
SELECT - 52 + + - ( 79 ) + + + 48 * + 78 * + + 81 AS col1
----
303133

query I rowsort
SELECT DISTINCT + + CASE - 64 WHEN - 0 THEN + 1 + - 51 END AS col2
----
NULL

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

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

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

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

query I rowsort
SELECT DISTINCT + 93 * - - 5 AS col1
----
465

onlyif mysql # DIV for integer division: 
query I rowsort label-669
SELECT DISTINCT + 21 DIV + 82 * 43 * 86 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-669
SELECT DISTINCT + 21 / + 82 * 43 * 86 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-670
SELECT - COUNT( * ) * + COUNT( * ) * + 53 * - 90 * + + 96
----
457920

skipif mysql # not compatible
query I rowsort label-670
SELECT - COUNT ( * ) * + COUNT ( * ) * + 53 * - 90 * + + 96
----
457920

query I rowsort
SELECT ALL 28 * + - 95
----
-2660

onlyif mysql # aggregate syntax: 
query I rowsort label-672
SELECT - COUNT( * ) - - 9 AS col1
----
8

skipif mysql # not compatible
query I rowsort label-672
SELECT - COUNT ( * ) - - 9 AS col1
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-673
SELECT ALL + COUNT( * ) * - 55, 74 AS col0
----
-55
74

skipif mysql # not compatible
query II rowsort label-673
SELECT ALL + COUNT ( * ) * - 55, 74 AS col0
----
-55
74

onlyif mysql # aggregate syntax: 
query I rowsort label-674
SELECT ALL COALESCE ( + + 35, ( - 97 ), + CASE - - 3 WHEN - 63 THEN + 9 * 41 END * - 54 * MAX( - 52 ) + - ( NULLIF ( + 40, + 38 ) ) ) col0
----
35

skipif mysql # not compatible
query I rowsort label-674
SELECT ALL COALESCE ( + + 35, ( - 97 ), + CASE - - 3 WHEN - 63 THEN + 9 * 41 END * - 54 * MAX ( - 52 ) + - ( NULLIF ( + 40, + 38 ) ) ) col0
----
35

query I rowsort
SELECT + 10 + + ( + 81 ) + + - 17 * + 42 + - 63 AS col1
----
-686

onlyif mysql # aggregate syntax: 
query I rowsort label-676
SELECT + ( 36 ) * + 55 * + SUM( DISTINCT 63 ) AS col0
----
124740

skipif mysql # not compatible
query I rowsort label-676
SELECT + ( 36 ) * + 55 * + SUM ( DISTINCT 63 ) AS col0
----
124740

query I rowsort
SELECT + 62 * ( - 52 ) AS col2
----
-3224

onlyif mysql # aggregate syntax: 
query I rowsort label-678
SELECT + MIN( - + 41 ) - 4
----
-45

skipif mysql # not compatible
query I rowsort label-678
SELECT + MIN ( - + 41 ) - 4
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-679
SELECT DISTINCT CASE - ( - + CAST( + + 39 AS SIGNED ) ) WHEN - AVG ( ( 33 ) ) * 70 THEN + 6 WHEN - 88 + + 4 THEN - 69 END AS col0, + COUNT( * ) AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-679
SELECT DISTINCT CASE - ( - + CAST ( + + 39 AS INTEGER ) ) WHEN - AVG ( ( 33 ) ) * 70 THEN + 6 WHEN - 88 + + 4 THEN - 69 END AS col0, + COUNT ( * ) AS col0
----
NULL
1

query II rowsort
SELECT DISTINCT + 59 + + 34 AS col2, 12 AS col0
----
93
12

onlyif mysql # aggregate syntax: 
query I rowsort label-681
SELECT ALL NULLIF ( - + COUNT( * ), 29 + ( - 42 ) ) + + 78
----
77

skipif mysql # not compatible
query I rowsort label-681
SELECT ALL NULLIF ( - + COUNT ( * ), 29 + ( - 42 ) ) + + 78
----
77

query I rowsort
SELECT + 20 + 76 - + - 56 * - - 65
----
3736

query I rowsort
SELECT - ( + NULLIF ( + 84, - + 99 ) ) col2
----
-84

query I rowsort
SELECT DISTINCT 43 + 7
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-685
SELECT - SUM( + - 28 ) col0, ( - 50 ) col1
----
28
-50

skipif mysql # not compatible
query II rowsort label-685
SELECT - SUM ( + - 28 ) col0, ( - 50 ) col1
----
28
-50

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

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

query I rowsort
SELECT ALL 28 + + + ( 42 ) AS col2
----
70

query I rowsort
SELECT + NULLIF ( + 98, - ( - 25 ) ) * - 46 AS col0
----
-4508

query I rowsort
SELECT ALL ( - 62 ) * - NULLIF ( 63, + 46 )
----
3906

query I rowsort
SELECT + + 25 + + + 35 * + - 58 AS col0
----
-2005

query I rowsort
SELECT ALL 94 + + ( 68 )
----
162

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-693
SELECT - SUM( CAST( NULL AS DECIMAL ) ) * + - 59 - 73 * + - ( + AVG ( DISTINCT + 64 ) ) * - + 6 + - COUNT( * ) - 34 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-693
SELECT - SUM ( CAST ( NULL AS REAL ) ) * + - 59 - 73 * + - ( + AVG ( DISTINCT + 64 ) ) * - + 6 + - COUNT ( * ) - 34 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-694
SELECT + + 26 DIV + 98
----
0

skipif mysql # not compatible
query I rowsort label-694
SELECT + + 26 / + 98
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-695
SELECT + 13 * + 81 AS col1, - COUNT( * )
----
1053
-1

skipif mysql # not compatible
query II rowsort label-695
SELECT + 13 * + 81 AS col1, - COUNT ( * )
----
1053
-1

query I rowsort
SELECT - 83 * COALESCE ( - + 70, + 42 )
----
5810

onlyif mysql # DIV for integer division: 
query II rowsort label-697
SELECT ALL 53 DIV 14 - + 33, 75 * - 95 AS col1
----
-30
-7125

skipif mysql # not compatible
query II rowsort label-697
SELECT ALL 53 / 14 - + 33, 75 * - 95 AS col1
----
-30
-7125

query I rowsort
SELECT - 90 * + 24 * 76 + + - 29 + + ( - 97 ) AS col1
----
-164286

onlyif mysql # aggregate syntax: 
query I rowsort label-699
SELECT + 27 * + MAX( ALL - 81 ) AS col2
----
-2187

skipif mysql # not compatible
query I rowsort label-699
SELECT + 27 * + MAX ( ALL - 81 ) AS col2
----
-2187

onlyif mysql # aggregate syntax: 
query I rowsort label-700
SELECT + 3 * 95 + + + MAX( DISTINCT - + 65 ) + - 42
----
178

skipif mysql # not compatible
query I rowsort label-700
SELECT + 3 * 95 + + + MAX ( DISTINCT - + 65 ) + - 42
----
178

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-701
SELECT - - 18 - - COUNT( * ) * + - 86 + - 24 - - COUNT( * ) DIV - - 23
----
-92

skipif mysql # not compatible
query I rowsort label-701
SELECT - - 18 - - COUNT ( * ) * + - 86 + - 24 - - COUNT ( * ) / - - 23
----
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-702
SELECT ALL - COUNT( * ) DIV COUNT( * ) * + 83 - 34 AS col1
----
-117

skipif mysql # not compatible
query I rowsort label-702
SELECT ALL - COUNT ( * ) / COUNT ( * ) * + 83 - 34 AS col1
----
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-703
SELECT - 58 + - NULLIF ( 58, - ( + COUNT( DISTINCT - - 97 ) ) ) - - ( - 18 ) + - COUNT( * ) * + - 59 AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-703
SELECT - 58 + - NULLIF ( 58, - ( + COUNT ( DISTINCT - - 97 ) ) ) - - ( - 18 ) + - COUNT ( * ) * + - 59 AS col0
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-704
SELECT DISTINCT CASE - + 36 WHEN 76 THEN NULL WHEN - COUNT( 81 ) - + CAST( + + 37 AS SIGNED ) THEN - COUNT( * ) END * + + 27
----
NULL

skipif mysql # not compatible
query I rowsort label-704
SELECT DISTINCT CASE - + 36 WHEN 76 THEN NULL WHEN - COUNT ( 81 ) - + CAST ( + + 37 AS INTEGER ) THEN - COUNT ( * ) END * + + 27
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-705
SELECT 7 * + 51 DIV - + 25 + - 42
----
-56

skipif mysql # not compatible
query I rowsort label-705
SELECT 7 * + 51 / - + 25 + - 42
----
-56

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-707
SELECT CASE COUNT( * ) WHEN - 4 THEN - 75 + - 53 WHEN + 13 / - + 76 THEN - 84 * ( - NULLIF ( COALESCE ( + + 54, COUNT( * ) + + MAX( ALL + 61 ), + - CASE - COUNT( * ) WHEN - - COUNT( * ) - 96 THEN - - 34 ELSE NULL END - + + 7 + - 77 / + 73 ), + 51 ) ) / + - 59 * NULLIF ( + 42, ( 23 ) ) WHEN CASE + 19 WHEN - 96 THEN NULL WHEN - COUNT( * ) - 38 THEN 9 END THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-707
SELECT CASE COUNT ( * ) WHEN - 4 THEN - 75 + - 53 WHEN + 13 / - + 76 THEN - 84 * ( - NULLIF ( COALESCE ( + + 54, COUNT ( * ) + + MAX ( ALL + 61 ), + - CASE - COUNT ( * ) WHEN - - COUNT ( * ) - 96 THEN - - 34 ELSE NULL END - + + 7 + - 77 / + 73 ), + 51 ) ) / + - 59 * NULLIF ( + 42, ( 23 ) ) WHEN CASE + 19 WHEN - 96 THEN NULL WHEN - COUNT ( * ) - 38 THEN 9 END THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-708
SELECT NULLIF ( + 0, 73 ) AS col1, - COUNT( * ) * + 37 AS col1
----
0
-37

skipif mysql # not compatible
query II rowsort label-708
SELECT NULLIF ( + 0, 73 ) AS col1, - COUNT ( * ) * + 37 AS col1
----
0
-37

query I rowsort
SELECT CASE - 61 WHEN - 77 THEN NULL WHEN - NULLIF ( - + 53, + 94 * 94 ) THEN + NULLIF ( AVG ( 81 ), - 35 * + - ( - 53 ) * + 52 ) / + 56 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT NULLIF ( - + 85, - 56 ) col1
----
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-711
SELECT - CASE - 56 WHEN - 41 * - - 52 + 21 THEN - + NULLIF ( 89, COUNT( * ) ) ELSE - 37 DIV - 85 END * - 34
----
0

skipif mysql # not compatible
query I rowsort label-711
SELECT - CASE - 56 WHEN - 41 * - - 52 + 21 THEN - + NULLIF ( 89, COUNT ( * ) ) ELSE - 37 / - 85 END * - 34
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-712
SELECT ALL 44 * + + 10 + + - COUNT( * ) * + - COUNT( * )
----
441

skipif mysql # not compatible
query I rowsort label-712
SELECT ALL 44 * + + 10 + + - COUNT ( * ) * + - COUNT ( * )
----
441

query I rowsort
SELECT DISTINCT + 63 + - + 43 col0
----
20

onlyif mysql # DIV for integer division: 
query II rowsort label-714
SELECT 75 DIV + NULLIF ( - 98, + 39 + + ( 39 ) + + - 42 * 40 ) AS col0, + 38
----
0
38

skipif mysql # not compatible
query II rowsort label-714
SELECT 75 / + NULLIF ( - 98, + 39 + + ( 39 ) + + - 42 * 40 ) AS col0, + 38
----
0
38

query I rowsort
SELECT ALL + 45 + - + 71 * - + 4
----
329

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-716
SELECT ALL + 72 DIV + 89 * 96 * - COUNT( * ) * + ( - 74 )
----
0

skipif mysql # not compatible
query I rowsort label-716
SELECT ALL + 72 / + 89 * 96 * - COUNT ( * ) * + ( - 74 )
----
0

query I rowsort
SELECT ALL - 18 + + - 25 AS col2
----
-43

query I rowsort
SELECT DISTINCT + 54 * + 3 AS col1
----
162

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-720
SELECT COALESCE ( + 89, - AVG ( ALL + ( + + 33 ) ) - + + 42 * - 67, COUNT( * ) ) DIV + 23 + 5 AS col0
----
8

skipif mysql # not compatible
query I rowsort label-720
SELECT COALESCE ( + 89, - AVG ( ALL + ( + + 33 ) ) - + + 42 * - 67, COUNT ( * ) ) / + 23 + 5 AS col0
----
8

query I rowsort
SELECT ALL + 45 + 83
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-722
SELECT 71 * - SUM( + 63 )
----
-4473

skipif mysql # not compatible
query I rowsort label-722
SELECT 71 * - SUM ( + 63 )
----
-4473

query I rowsort
SELECT 10 * - + 40
----
-400

onlyif mysql # aggregate syntax: 
query I rowsort label-724
SELECT ALL + MAX( ( + - 75 ) ) + 18
----
-57

skipif mysql # not compatible
query I rowsort label-724
SELECT ALL + MAX ( ( + - 75 ) ) + 18
----
-57

query I rowsort
SELECT 80 - 42 + - 28 * COALESCE ( 47, - 30 + + 87, + - 94 ) AS col2
----
-1278

query II rowsort
SELECT 58 AS col0, 35 AS col2
----
58
35

onlyif mysql # aggregate syntax: 
query I rowsort label-727
SELECT DISTINCT - COALESCE ( - 61, + 38 + + + NULLIF ( MAX( DISTINCT - - 59 ), - - COUNT( * ) ), - ( + 95 ) )
----
61

skipif mysql # not compatible
query I rowsort label-727
SELECT DISTINCT - COALESCE ( - 61, + 38 + + + NULLIF ( MAX ( DISTINCT - - 59 ), - - COUNT ( * ) ), - ( + 95 ) )
----
61

query I rowsort
SELECT ALL - 10 - - - 63
----
-73

query I rowsort
SELECT DISTINCT + NULLIF ( - 76, + ( + + 63 ) ) AS col0
----
-76

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-731
SELECT 79 - + + 45 + - - CAST( - NULLIF ( - - 77, - 98 ) AS SIGNED ) - + COUNT( ALL 33 ) AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-731
SELECT 79 - + + 45 + - - CAST ( - NULLIF ( - - 77, - 98 ) AS INTEGER ) - + COUNT ( ALL 33 ) AS col1
----
-44

query I rowsort
SELECT ALL 42 * + - 79 * 87 + 15 + - + 4
----
-288655

query I rowsort
SELECT - 11 * + - 28
----
308

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

skipif mysql # not compatible
query I rowsort label-734
SELECT 56 * + - 0 - - COUNT ( * ) AS col0
----
1

query I rowsort
SELECT ALL - 58 * - 86 AS col1
----
4988

query I rowsort
SELECT ( + COALESCE ( - COALESCE ( - 98, + + 26 ), - + 13, + 38 ) )
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-737
SELECT + 0 DIV ( - 11 ) + - + 85
----
-85

skipif mysql # not compatible
query I rowsort label-737
SELECT + 0 / ( - 11 ) + - + 85
----
-85

query I rowsort
SELECT ALL - ( 68 ) AS col0
----
-68

query II rowsort
SELECT DISTINCT - 76 AS col1, + 77 * + 4 AS col0
----
-76
308

onlyif mysql # aggregate syntax: 
query II rowsort label-740
SELECT ALL - - 87 AS col2, - 82 * + + ( - 53 ) * - 16 * + + COUNT( * ) + 73 AS col0
----
87
-69463

skipif mysql # not compatible
query II rowsort label-740
SELECT ALL - - 87 AS col2, - 82 * + + ( - 53 ) * - 16 * + + COUNT ( * ) + 73 AS col0
----
87
-69463

query I rowsort
SELECT DISTINCT 26 * + - 92 col1
----
-2392

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-742
SELECT 30 DIV COUNT( * ) col2
----
30

skipif mysql # not compatible
query I rowsort label-742
SELECT 30 / COUNT ( * ) col2
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-743
SELECT - CAST( - COUNT( * ) AS SIGNED ) DIV + 10 + + - 82 * - 39 col1
----
3198

skipif mysql # not compatible
query I rowsort label-743
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) / + 10 + + - 82 * - 39 col1
----
3198

onlyif mysql # aggregate syntax: 
query I rowsort label-744
SELECT ALL 69 + + + NULLIF ( + - 6, + 60 * - 57 * - + COUNT( * ) ) + 47 + 35 + - NULLIF ( 35, 16 + 5 ) AS col1
----
110

skipif mysql # not compatible
query I rowsort label-744
SELECT ALL 69 + + + NULLIF ( + - 6, + 60 * - 57 * - + COUNT ( * ) ) + 47 + 35 + - NULLIF ( 35, 16 + 5 ) AS col1
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-745
SELECT ALL 45 * + ( + MIN( + + 33 ) )
----
1485

skipif mysql # not compatible
query I rowsort label-745
SELECT ALL 45 * + ( + MIN ( + + 33 ) )
----
1485

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-746
SELECT + 84 * + - 35 + 17 + 49 AS col0, + 57 + COALESCE ( CASE - CASE CASE - 61 WHEN - MIN( DISTINCT + ( 51 ) ) THEN NULL WHEN SUM( + + 35 ) THEN COUNT( * ) ELSE - 80 * + - 99 END WHEN 59 THEN - 38 * + CAST( - 55 AS SIGNED ) * - 1 + + ( ( 18 ) ) ELSE NULL END WHEN - + 51 THEN + - 17 ELSE NULL END, - 95, COUNT( * ), 34 ) + 88 AS col1
----
-2874
50

skipif mysql # not compatible
query II rowsort label-746
SELECT + 84 * + - 35 + 17 + 49 AS col0, + 57 + COALESCE ( CASE - CASE CASE - 61 WHEN - MIN ( DISTINCT + ( 51 ) ) THEN NULL WHEN SUM ( + + 35 ) THEN COUNT ( * ) ELSE - 80 * + - 99 END WHEN 59 THEN - 38 * + CAST ( - 55 AS INTEGER ) * - 1 + + ( ( 18 ) ) ELSE NULL END WHEN - + 51 THEN + - 17 ELSE NULL END, - 95, COUNT ( * ), 34 ) + 88 AS col1
----
-2874
50

query I rowsort
SELECT ALL 56 + - + 96 AS col1
----
-40

query I rowsort
SELECT ALL - 13 + 80
----
67

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-749
SELECT MAX( + 36 ) * 11 - + CASE 15 WHEN - - 73 THEN 40 * + AVG ( - CAST( NULL AS DECIMAL ) ) WHEN - AVG ( ALL - ( + 28 ) ) + + MAX( ALL 28 ) THEN NULL END AS col1, SUM( DISTINCT 6 )
----
NULL
6

skipif mysql # not compatible
query II rowsort label-749
SELECT MAX ( + 36 ) * 11 - + CASE 15 WHEN - - 73 THEN 40 * + AVG ( - CAST ( NULL AS REAL ) ) WHEN - AVG ( ALL - ( + 28 ) ) + + MAX ( ALL 28 ) THEN NULL END AS col1, SUM ( DISTINCT 6 )
----
NULL
6

onlyif mysql # aggregate syntax: 
query I rowsort label-750
SELECT DISTINCT COUNT( * ) + - - 11 * - + 55 * 40 + + 15 * 84
----
-22939

skipif mysql # not compatible
query I rowsort label-750
SELECT DISTINCT COUNT ( * ) + - - 11 * - + 55 * 40 + + 15 * 84
----
-22939

onlyif mysql # aggregate syntax: 
query I rowsort label-751
SELECT ALL 2 + + 16 - - NULLIF ( - COUNT( * ), COUNT( - 38 ) )
----
17

skipif mysql # not compatible
query I rowsort label-751
SELECT ALL 2 + + 16 - - NULLIF ( - COUNT ( * ), COUNT ( - 38 ) )
----
17

query I rowsort
SELECT 90 + + 84 AS col0
----
174

query I rowsort
SELECT + 93 + - 95 col0
----
-2

query II rowsort
SELECT ALL - 14 - + 96, + 64 AS col1
----
-110
64

query II rowsort
SELECT - 2 * + 50 * - 70 * - 35, + 0 AS col2
----
-245000
0

onlyif mysql # aggregate syntax: 
query I rowsort label-756
SELECT DISTINCT - - MIN( + 38 ) * 37
----
1406

skipif mysql # not compatible
query I rowsort label-756
SELECT DISTINCT - - MIN ( + 38 ) * 37
----
1406

onlyif mysql # DIV for integer division: 
query I rowsort label-757
SELECT - 29 + 66 + 15 DIV + 35 + + 98 + + 83 AS col0
----
218

skipif mysql # not compatible
query I rowsort label-757
SELECT - 29 + 66 + 15 / + 35 + + 98 + + 83 AS col0
----
218

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

skipif mysql # not compatible
query I rowsort label-758
SELECT + ( + ( - 94 ) ) * + - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * - - 36 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-759
SELECT NULLIF ( + 72, + 81 ) * 75 DIV COUNT( * ) - + 77 - - COUNT( * )
----
5324

skipif mysql # not compatible
query I rowsort label-759
SELECT NULLIF ( + 72, + 81 ) * 75 / COUNT ( * ) - + 77 - - COUNT ( * )
----
5324

query II rowsort
SELECT ALL + 78 - - 30 AS col1, 50 AS col2
----
108
50

onlyif mysql # DIV for integer division: 
query I rowsort label-761
SELECT ( + 50 ) DIV + - 86 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-761
SELECT ( + 50 ) / + - 86 AS col1
----
0

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

skipif mysql # not compatible
query I rowsort label-762
SELECT ALL + CAST ( + 91 AS INTEGER ) AS col1
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-763
SELECT DISTINCT - AVG ( ALL - + NULLIF ( - CAST( NULL AS SIGNED ), - 14 ) ) * + + COUNT( * ) + - - ( MAX( ALL - CAST( NULL AS SIGNED ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-763
SELECT DISTINCT - AVG ( ALL - + NULLIF ( - CAST ( NULL AS INTEGER ), - 14 ) ) * + + COUNT ( * ) + - - ( MAX ( ALL - CAST ( NULL AS INTEGER ) ) ) AS col1
----
NULL

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-765
SELECT DISTINCT + - CAST( NULL AS DECIMAL ) * + 19, - 81 AS col0
----
NULL
-81

skipif mysql # not compatible
query II rowsort label-765
SELECT DISTINCT + - CAST ( NULL AS REAL ) * + 19, - 81 AS col0
----
NULL
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-766
SELECT DISTINCT - COALESCE ( + + 27, 53 + - + COUNT( DISTINCT + - 7 ), + 10 * CAST( - 64 AS SIGNED ) + - 30 * - + 33 ) AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-766
SELECT DISTINCT - COALESCE ( + + 27, 53 + - + COUNT ( DISTINCT + - 7 ), + 10 * CAST ( - 64 AS INTEGER ) + - 30 * - + 33 ) AS col0
----
-27

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-767
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * - COUNT( * ) * - - 28 + 84 + - 1
----
NULL

skipif mysql # not compatible
query I rowsort label-767
SELECT DISTINCT + CAST ( NULL AS REAL ) * - COUNT ( * ) * - - 28 + 84 + - 1
----
NULL

query I rowsort
SELECT ALL - 57 * - - 80 + + 59 AS col2
----
-4501

onlyif mysql # aggregate syntax: 
query I rowsort label-769
SELECT 75 + + 27 + + 49 + - COUNT( * ) AS col0
----
150

skipif mysql # not compatible
query I rowsort label-769
SELECT 75 + + 27 + + 49 + - COUNT ( * ) AS col0
----
150

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-771
SELECT + ( + 35 ) DIV + 40 + 44 * - - COUNT( ALL 81 ) + 33 * ( + ( + + 46 ) ) AS col1, + COUNT( * )
----
1562
1

skipif mysql # not compatible
query II rowsort label-771
SELECT + ( + 35 ) / + 40 + 44 * - - COUNT ( ALL 81 ) + 33 * ( + ( + + 46 ) ) AS col1, + COUNT ( * )
----
1562
1

onlyif mysql # aggregate syntax: 
query I rowsort label-772
SELECT ALL + 69 * - SUM( DISTINCT - 55 ) + + 63 AS col1
----
3858

skipif mysql # not compatible
query I rowsort label-772
SELECT ALL + 69 * - SUM ( DISTINCT - 55 ) + + 63 AS col1
----
3858

onlyif mysql # aggregate syntax: 
query I rowsort label-773
SELECT ALL - COUNT( DISTINCT 80 ) * ( - 89 ) AS col0
----
89

skipif mysql # not compatible
query I rowsort label-773
SELECT ALL - COUNT ( DISTINCT 80 ) * ( - 89 ) AS col0
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-774
SELECT + 51 DIV CASE WHEN 49 <= NULL THEN NULL ELSE + + 69 END AS col2
----
0

skipif mysql # not compatible
query I rowsort label-774
SELECT + 51 / CASE WHEN 49 <= NULL THEN NULL ELSE + + 69 END AS col2
----
0

query I rowsort
SELECT ALL 36 * + 30 + + 51 col1
----
1131

query I rowsort
SELECT DISTINCT - 72 * + 18
----
-1296

onlyif mysql # aggregate syntax: 
query II rowsort label-777
SELECT ALL 30 * - + 34 + - + 93 + 24 * COUNT( * ) + - + 81, 69 + CASE 63 WHEN - ( - 61 ) THEN NULL WHEN - 34 * + 44 + - COUNT( * ) / - + 43 * + 12 THEN 69 * - NULLIF ( 62, + - 25 + COUNT( * ) + + 38 ) WHEN 68 THEN NULL END + + 66 + + COUNT( * ) AS col2
----
-1170
NULL

skipif mysql # not compatible
query II rowsort label-777
SELECT ALL 30 * - + 34 + - + 93 + 24 * COUNT ( * ) + - + 81, 69 + CASE 63 WHEN - ( - 61 ) THEN NULL WHEN - 34 * + 44 + - COUNT ( * ) / - + 43 * + 12 THEN 69 * - NULLIF ( 62, + - 25 + COUNT ( * ) + + 38 ) WHEN 68 THEN NULL END + + 66 + + COUNT ( * ) AS col2
----
-1170
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-779
SELECT ALL 73 * - COALESCE ( + - 9, 56 * - 93 * - - 17, 80 DIV 14 + 19 * - 22 ) + + - 91 * - 29 AS col1
----
3296

skipif mysql # not compatible
query I rowsort label-779
SELECT ALL 73 * - COALESCE ( + - 9, 56 * - 93 * - - 17, 80 / 14 + 19 * - 22 ) + + - 91 * - 29 AS col1
----
3296

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

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

query I rowsort
SELECT + 91 * + 0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-782
SELECT DISTINCT 96 DIV 49 * 86
----
86

skipif mysql # not compatible
query I rowsort label-782
SELECT DISTINCT 96 / 49 * 86
----
86

query I rowsort
SELECT ALL 67 - - 95
----
162

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

skipif mysql # not compatible
query I rowsort label-784
SELECT DISTINCT 26 / - COUNT ( * ) AS col0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-785
SELECT DISTINCT 90 * SUM( + - 72 ) AS col2
----
-6480

skipif mysql # not compatible
query I rowsort label-785
SELECT DISTINCT 90 * SUM ( + - 72 ) AS col2
----
-6480

onlyif mysql # aggregate syntax: 
query I rowsort label-786
SELECT ALL COUNT( * ) - - 48 AS col0
----
49

skipif mysql # not compatible
query I rowsort label-786
SELECT ALL COUNT ( * ) - - 48 AS col0
----
49

query I rowsort
SELECT + - 63 * + 11 AS col2
----
-693

query I rowsort
SELECT + 44 + 63 AS col1
----
107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-789
SELECT - - 71 + - 42 + + 24 / - 10 + + + CASE 80 WHEN - 88 * CAST( - 10 AS SIGNED ) + + ( + NULLIF ( + CAST( NULL AS DECIMAL ), + COUNT( * ) * 51 ) ) THEN + 58 + SUM( 8 ) ELSE + - COUNT( * ) + - + CAST( NULL AS SIGNED ) END + - 70 + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-789
SELECT - - 71 + - 42 + + 24 / - 10 + + + CASE 80 WHEN - 88 * CAST ( - 10 AS INTEGER ) + + ( + NULLIF ( + CAST ( NULL AS REAL ), + COUNT ( * ) * 51 ) ) THEN + 58 + SUM ( 8 ) ELSE + - COUNT ( * ) + - + CAST ( NULL AS INTEGER ) END + - 70 + 89
----
NULL

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

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

query I rowsort
SELECT + + 2 * - 79 * 22 - - 33
----
-3443

onlyif mysql # aggregate syntax: 
query I rowsort label-792
SELECT - COUNT( * ) * + CASE 13 WHEN 5 THEN + ( 47 ) ELSE NULL END + - + 93
----
NULL

skipif mysql # not compatible
query I rowsort label-792
SELECT - COUNT ( * ) * + CASE 13 WHEN 5 THEN + ( 47 ) ELSE NULL END + - + 93
----
NULL

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

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

query II rowsort
SELECT + 34 AS col0, - 94 * NULLIF ( + - 42, + 49 ) AS col1
----
34
3948

onlyif mysql # aggregate syntax: 
query III rowsort label-795
SELECT 34 col0, MAX( + 18 ) AS col0, 22 * - + 70 - + + 34
----
34
18
-1574

skipif mysql # not compatible
query III rowsort label-795
SELECT 34 col0, MAX ( + 18 ) AS col0, 22 * - + 70 - + + 34
----
34
18
-1574

onlyif mysql # aggregate syntax: 
query I rowsort label-796
SELECT + ( - + COUNT( * ) ) - - - 83 * - - 58 + 79
----
-4736

skipif mysql # not compatible
query I rowsort label-796
SELECT + ( - + COUNT ( * ) ) - - - 83 * - - 58 + 79
----
-4736

query I rowsort
SELECT DISTINCT COALESCE ( + 58, + 63 + + 47 )
----
58

query I rowsort
SELECT - 7 + 72 AS col2
----
65

query I rowsort
SELECT DISTINCT - COALESCE ( + 50, 83, 89 )
----
-50

query I rowsort
SELECT DISTINCT - - 54 * - + 89 AS col1
----
-4806

onlyif mysql # DIV for integer division: 
query I rowsort label-801
SELECT ALL 90 + - - 26 * - + 76 * + COALESCE ( 70, - 62 ) - - + 87 + + 36 DIV 97
----
-138143

skipif mysql # not compatible
query I rowsort label-801
SELECT ALL 90 + - - 26 * - + 76 * + COALESCE ( 70, - 62 ) - - + 87 + + 36 / 97
----
-138143

query I rowsort
SELECT - - 70 * + 26
----
1820

query I rowsort
SELECT DISTINCT - + 87 + - - 77 AS col0
----
-10

query II rowsort
SELECT - ( - ( 48 ) ), + 10 * - - 8 * - 5 AS col1
----
48
-400

query I rowsort
SELECT - - 37 - - 30 AS col1
----
67

query I rowsort
SELECT ALL + 31 + + 87 AS col0
----
118

query II rowsort
SELECT 89, 60 AS col2
----
89
60

query I rowsort
SELECT - 5 * 34
----
-170

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-810
SELECT - 75 * 8 AS col2, CAST( NULL AS DECIMAL )
----
-600
NULL

skipif mysql # not compatible
query II rowsort label-810
SELECT - 75 * 8 AS col2, CAST ( NULL AS REAL )
----
-600
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-811
SELECT DISTINCT ( - 84 ) DIV 99 + + NULLIF ( + 99, - - 90 DIV + 89 * 70 * - 53 ) DIV 16 AS col2
----
6

skipif mysql # not compatible
query I rowsort label-811
SELECT DISTINCT ( - 84 ) / 99 + + NULLIF ( + 99, - - 90 / + 89 * 70 * - 53 ) / 16 AS col2
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-812
SELECT ALL 64 DIV - + 84 + - + NULLIF ( - 15, - COUNT( * ) ) + - ( - 10 ) * - 71 AS col0
----
-695

skipif mysql # not compatible
query I rowsort label-812
SELECT ALL 64 / - + 84 + - + NULLIF ( - 15, - COUNT ( * ) ) + - ( - 10 ) * - 71 AS col0
----
-695

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

query II rowsort
SELECT DISTINCT + 52 AS col2, - 32 AS col1
----
52
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-815
SELECT ( + NULLIF ( 90, 96 + + 51 / - 85 * - COUNT( * ) + - + 92 + 79 * - 53 ) )
----
90

skipif mysql # not compatible
query I rowsort label-815
SELECT ( + NULLIF ( 90, 96 + + 51 / - 85 * - COUNT ( * ) + - + 92 + 79 * - 53 ) )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-816
SELECT ALL 1 * + COUNT( * ) - + + 91 * - 79 * 74 + 83
----
532070

skipif mysql # not compatible
query I rowsort label-816
SELECT ALL 1 * + COUNT ( * ) - + + 91 * - 79 * 74 + 83
----
532070

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-817
SELECT 13 * 7 + - 66 DIV + - MIN( DISTINCT 32 ) + + + 5 col2
----
98

skipif mysql # not compatible
query I rowsort label-817
SELECT 13 * 7 + - 66 / + - MIN ( DISTINCT 32 ) + + + 5 col2
----
98

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-819
SELECT + CASE 67 WHEN + + 28 THEN + 34 * - - CAST( NULL AS SIGNED ) - CAST( NULL AS SIGNED ) / 63 ELSE NULL END col2, 65 AS col2
----
NULL
65

skipif mysql # not compatible
query II rowsort label-819
SELECT + CASE 67 WHEN + + 28 THEN + 34 * - - CAST ( NULL AS INTEGER ) - CAST ( NULL AS INTEGER ) / 63 ELSE NULL END col2, 65 AS col2
----
NULL
65

query I rowsort
SELECT + 50 * - - ( - 57 ) AS col0
----
-2850

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-821
SELECT DISTINCT - 41 * - - CAST( + - 54 AS SIGNED ) AS col0
----
2214

skipif mysql # not compatible
query I rowsort label-821
SELECT DISTINCT - 41 * - - CAST ( + - 54 AS INTEGER ) AS col0
----
2214

query I rowsort
SELECT + CASE - + 22 WHEN - 56 THEN - ( + 40 ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-823
SELECT ALL + 23 * + CASE 54 WHEN - 51 + + CAST( NULL AS SIGNED ) THEN NULL WHEN 45 THEN NULL ELSE + 33 END AS col2
----
759

skipif mysql # not compatible
query I rowsort label-823
SELECT ALL + 23 * + CASE 54 WHEN - 51 + + CAST ( NULL AS INTEGER ) THEN NULL WHEN 45 THEN NULL ELSE + 33 END AS col2
----
759

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-824
SELECT - 81 * 71 * - 2 - 58 + - - COALESCE ( - 99, 91 * - CAST( NULL AS SIGNED ) ) AS col2
----
11345

skipif mysql # not compatible
query I rowsort label-824
SELECT - 81 * 71 * - 2 - 58 + - - COALESCE ( - 99, 91 * - CAST ( NULL AS INTEGER ) ) AS col2
----
11345

query I rowsort
SELECT - - 22 + + 76 * + 67 col2
----
5114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-826
SELECT + + COUNT( * ) + CAST( MIN( ALL + 60 ) AS SIGNED ) AS col2
----
61

skipif mysql # not compatible
query I rowsort label-826
SELECT + + COUNT ( * ) + CAST ( MIN ( ALL + 60 ) AS INTEGER ) AS col2
----
61

query I rowsort
SELECT - + 48 * + + 83 AS col2
----
-3984

onlyif mysql # aggregate syntax: 
query I rowsort label-828
SELECT + 64 + - 27 * + COUNT( * )
----
37

skipif mysql # not compatible
query I rowsort label-828
SELECT + 64 + - 27 * + COUNT ( * )
----
37

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-830
SELECT ALL 8 DIV + 51 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-830
SELECT ALL 8 / + 51 AS col0
----
0

query I rowsort
SELECT ALL + 70 * + 41 AS col0
----
2870

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-832
SELECT + + CAST( - 80 AS SIGNED ) DIV + - 77
----
1

skipif mysql # not compatible
query I rowsort label-832
SELECT + + CAST ( - 80 AS INTEGER ) / + - 77
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-833
SELECT DISTINCT 35 * - COUNT( * )
----
-35

skipif mysql # not compatible
query I rowsort label-833
SELECT DISTINCT 35 * - COUNT ( * )
----
-35

query I rowsort
SELECT DISTINCT - 79 + + 66 * + - 41 AS col1
----
-2785

onlyif mysql # aggregate syntax: 
query I rowsort label-835
SELECT DISTINCT 79 + - + CASE + + COUNT( * ) WHEN 61 THEN - 41 + + + 99 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-835
SELECT DISTINCT 79 + - + CASE + + COUNT ( * ) WHEN 61 THEN - 41 + + + 99 ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-836
SELECT + ( CAST( - 14 AS SIGNED ) ) + 48 - + 14
----
20

skipif mysql # not compatible
query I rowsort label-836
SELECT + ( CAST ( - 14 AS INTEGER ) ) + 48 - + 14
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-837
SELECT + - 41 + + 9 DIV COUNT( * ) AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-837
SELECT + - 41 + + 9 / COUNT ( * ) AS col0
----
-32

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-839
SELECT + COUNT( * ) * + 61 * 15
----
915

skipif mysql # not compatible
query I rowsort label-839
SELECT + COUNT ( * ) * + 61 * 15
----
915

query I rowsort
SELECT DISTINCT + 2 * - 57 * + - 29 col0
----
3306

query I rowsort
SELECT ALL 19 + 8
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-842
SELECT + 94 * - + ( + + CAST( - 97 AS SIGNED ) ) AS col0
----
9118

skipif mysql # not compatible
query I rowsort label-842
SELECT + 94 * - + ( + + CAST ( - 97 AS INTEGER ) ) AS col0
----
9118

query II rowsort
SELECT - + 57 col2, - 58 * - + 90
----
-57
5220

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

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

query II rowsort
SELECT - 86 AS col0, 77 AS col1
----
-86
77

onlyif mysql # aggregate syntax: 
query I rowsort label-846
SELECT 65 + - - COUNT( * )
----
66

skipif mysql # not compatible
query I rowsort label-846
SELECT 65 + - - COUNT ( * )
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-847
SELECT ALL + 26 DIV + COUNT( * ) AS col2, + 22 * - + COUNT( * )
----
26
-22

skipif mysql # not compatible
query II rowsort label-847
SELECT ALL + 26 / + COUNT ( * ) AS col2, + 22 * - + COUNT ( * )
----
26
-22

query I rowsort
SELECT ALL + 17 * + 24 AS col0
----
408

query I rowsort
SELECT DISTINCT 51 + 84 AS col1
----
135

onlyif mysql # DIV for integer division: 
query I rowsort label-850
SELECT 18 DIV + 39 + 2 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-850
SELECT 18 / + 39 + 2 AS col1
----
2

query I rowsort
SELECT ALL + 27 * + - 93
----
-2511

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-852
SELECT ( CAST( + 26 AS SIGNED ) ) * + 24 AS col1
----
624

skipif mysql # not compatible
query I rowsort label-852
SELECT ( CAST ( + 26 AS INTEGER ) ) * + 24 AS col1
----
624

query I rowsort
SELECT DISTINCT + 9 * - 45 AS col2
----
-405

onlyif mysql # aggregate syntax: 
query I rowsort label-854
SELECT ALL - MIN( ALL 16 ) * + 25 * + + 2
----
-800

skipif mysql # not compatible
query I rowsort label-854
SELECT ALL - MIN ( ALL 16 ) * + 25 * + + 2
----
-800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-855
SELECT DISTINCT + 0 - + MAX( + - COALESCE ( - CAST( - + 72 AS SIGNED ), 82 ) )
----
72

skipif mysql # not compatible
query I rowsort label-855
SELECT DISTINCT + 0 - + MAX ( + - COALESCE ( - CAST ( - + 72 AS INTEGER ), 82 ) )
----
72

onlyif mysql # DIV for integer division: 
query II rowsort label-856
SELECT 84 DIV 18, + 4 + + 64 * - + 39 + 0 - + NULLIF ( - 96, 56 ) col2
----
4
-2396

skipif mysql # not compatible
query II rowsort label-856
SELECT 84 / 18, + 4 + + 64 * - + 39 + 0 - + NULLIF ( - 96, 56 ) col2
----
4
-2396

query I rowsort
SELECT 9 * - 85
----
-765

onlyif mysql # aggregate syntax: 
query I rowsort label-858
SELECT ALL - NULLIF ( - 97, - - CASE + - COUNT( * ) WHEN - + 88 THEN - COUNT( * ) END + - 58 )
----
97

skipif mysql # not compatible
query I rowsort label-858
SELECT ALL - NULLIF ( - 97, - - CASE + - COUNT ( * ) WHEN - + 88 THEN - COUNT ( * ) END + - 58 )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-859
SELECT COUNT( * ) + - 35 + - 80 + - COUNT( * ) * 2
----
-116

skipif mysql # not compatible
query I rowsort label-859
SELECT COUNT ( * ) + - 35 + - 80 + - COUNT ( * ) * 2
----
-116

query I rowsort
SELECT 19 * + 11 * - 85 * + 37
----
-657305

query I rowsort
SELECT - 14 * + 59 + 69 col1
----
-757

onlyif mysql # aggregate syntax: 
query I rowsort label-862
SELECT + CASE - - COUNT( * ) WHEN + - 68 THEN NULL WHEN - 44 / - 70 THEN NULL ELSE - 69 END AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-862
SELECT + CASE - - COUNT ( * ) WHEN + - 68 THEN NULL WHEN - 44 / - 70 THEN NULL ELSE - 69 END AS col2
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-863
SELECT 0 * + 35 + - COUNT( * ) / 19 * CASE + SUM( - - 89 ) WHEN - 78 THEN 61 + 69 * + 93 WHEN - COUNT( * ) + - NULLIF ( - NULLIF ( + - 91, + + 31 ), 12 * COUNT( * ) * + COUNT( * ) + 54 + 51 ) THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-863
SELECT 0 * + 35 + - COUNT ( * ) / 19 * CASE + SUM ( - - 89 ) WHEN - 78 THEN 61 + 69 * + 93 WHEN - COUNT ( * ) + - NULLIF ( - NULLIF ( + - 91, + + 31 ), 12 * COUNT ( * ) * + COUNT ( * ) + 54 + 51 ) THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-864
SELECT ALL + MAX( ALL + - 35 ) + + 2 * COUNT( * ) + + 95, 28 AS col0
----
62
28

skipif mysql # not compatible
query II rowsort label-864
SELECT ALL + MAX ( ALL + - 35 ) + + 2 * COUNT ( * ) + + 95, 28 AS col0
----
62
28

query I rowsort
SELECT + CASE - 79 WHEN + 56 * + - 51 THEN - + 74 - - 86 END
----
NULL

query I rowsort
SELECT ALL - 41 * + 51 * + 41 + + 75 AS col0
----
-85656

query I rowsort
SELECT 79 * - 74 AS col0
----
-5846

query II rowsort
SELECT ALL + 30 + - 66, - 47 AS col2
----
-36
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-869
SELECT DISTINCT - CASE 14 WHEN 17 + 74 THEN NULL ELSE CASE 63 WHEN + 61 THEN 95 * - - COUNT( * ) * COUNT( * ) - + 76 ELSE NULL END + - + 2 + 90 - 20 - - 39 / + 45 * - 43 END col2, 38
----
NULL
38

skipif mysql # not compatible
query II rowsort label-869
SELECT DISTINCT - CASE 14 WHEN 17 + 74 THEN NULL ELSE CASE 63 WHEN + 61 THEN 95 * - - COUNT ( * ) * COUNT ( * ) - + 76 ELSE NULL END + - + 2 + 90 - 20 - - 39 / + 45 * - 43 END col2, 38
----
NULL
38

query I rowsort
SELECT ALL - 50 + + 90 * + + 58 col1
----
5170

onlyif mysql # aggregate syntax: 
query I rowsort label-871
SELECT 59 + + MIN( - - 17 )
----
76

skipif mysql # not compatible
query I rowsort label-871
SELECT 59 + + MIN ( - - 17 )
----
76

query II rowsort
SELECT - 11 * + - 92 * 71, - 13 AS col1
----
71852
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-873
SELECT - NULLIF ( + + COUNT( * ), ( 74 ) + - SUM( DISTINCT + 98 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-873
SELECT - NULLIF ( + + COUNT ( * ), ( 74 ) + - SUM ( DISTINCT + 98 ) )
----
-1

query I rowsort
SELECT DISTINCT - ( + - 85 ) + - 94 * + 53 + + + 49 AS col0
----
-4848

onlyif mysql # aggregate syntax: 
query I rowsort label-875
SELECT NULLIF ( - COUNT( * ), - COUNT( DISTINCT + - 77 ) * 59 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-875
SELECT NULLIF ( - COUNT ( * ), - COUNT ( DISTINCT + - 77 ) * 59 ) col2
----
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-877
SELECT ALL + NULLIF ( - - COUNT( * ), + + 92 * - - 62 )
----
1

skipif mysql # not compatible
query I rowsort label-877
SELECT ALL + NULLIF ( - - COUNT ( * ), + + 92 * - - 62 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-878
SELECT ALL COUNT( * ) + + CAST( - 47 AS SIGNED ) AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-878
SELECT ALL COUNT ( * ) + + CAST ( - 47 AS INTEGER ) AS col2
----
-46

query I rowsort
SELECT + 48 * + 62 * - 74 * - 99 AS col0
----
21802176

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-881
SELECT ALL CASE - 4 WHEN + CASE + + 20 WHEN - 85 / + - 1 + 78 - + 21 * - 84 + - 8 * + 27 / 44 + 68 THEN 93 WHEN + 7 + COUNT( * ) THEN NULL END THEN NULL WHEN - + ( - ( - 89 ) ) - - 92 - + 17 THEN - 51 END, + 24 * COUNT( * ) AS col1
----
NULL
24

skipif mysql # not compatible
query II rowsort label-881
SELECT ALL CASE - 4 WHEN + CASE + + 20 WHEN - 85 / + - 1 + 78 - + 21 * - 84 + - 8 * + 27 / 44 + 68 THEN 93 WHEN + 7 + COUNT ( * ) THEN NULL END THEN NULL WHEN - + ( - ( - 89 ) ) - - 92 - + 17 THEN - 51 END, + 24 * COUNT ( * ) AS col1
----
NULL
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-882
SELECT - - CAST( 96 AS SIGNED ) col1, - COUNT( - 21 )
----
96
-1

skipif mysql # not compatible
query II rowsort label-882
SELECT - - CAST ( 96 AS INTEGER ) col1, - COUNT ( - 21 )
----
96
-1

query II rowsort
SELECT - 61 AS col0, 23 * + 55 + + 22 AS col2
----
-61
1287

query I rowsort
SELECT 94 - + 25 AS col2
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-885
SELECT - 15 col1, COUNT( * ) DIV COALESCE ( COUNT( * ), + 97 ) + + + 93
----
-15
94

skipif mysql # not compatible
query II rowsort label-885
SELECT - 15 col1, COUNT ( * ) / COALESCE ( COUNT ( * ), + 97 ) + + + 93
----
-15
94

query I rowsort
SELECT ( + 70 ) * - 67
----
-4690

onlyif mysql # aggregate syntax: 
query I rowsort label-887
SELECT COUNT( * ) * + 55 + - 6 + - + 68 AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-887
SELECT COUNT ( * ) * + 55 + - 6 + - + 68 AS col1
----
-19

query I rowsort
SELECT DISTINCT 9 * - COALESCE ( 93, 55 * - + 71 ) AS col2
----
-837

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-890
SELECT ( - - 51 ) * CASE + - ( COUNT( * ) ) WHEN SUM( 0 ) * 71 * - 5 THEN + 75 WHEN + + 89 * + 11 / 64 THEN 91 ELSE CAST( + COALESCE ( - COUNT( COALESCE ( 60, + + 65, + 10 ) ), 30 * + 66 - + CAST( NULL AS SIGNED ) ) AS SIGNED ) * ( - COUNT( * ) ) END AS col0
----
51

skipif mysql # not compatible
query I rowsort label-890
SELECT ( - - 51 ) * CASE + - ( COUNT ( * ) ) WHEN SUM ( 0 ) * 71 * - 5 THEN + 75 WHEN + + 89 * + 11 / 64 THEN 91 ELSE CAST ( + COALESCE ( - COUNT ( COALESCE ( 60, + + 65, + 10 ) ), 30 * + 66 - + CAST ( NULL AS INTEGER ) ) AS INTEGER ) * ( - COUNT ( * ) ) END AS col0
----
51

query II rowsort
SELECT DISTINCT - 38, 7 AS col1
----
-38
7

onlyif mysql # DIV for integer division: 
query I rowsort label-892
SELECT 19 DIV - - 83
----
0

skipif mysql # not compatible
query I rowsort label-892
SELECT 19 / - - 83
----
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-894
SELECT 44 DIV + + ( CASE - 98 WHEN 67 THEN + COUNT( 68 ) * + COUNT( * ) + + + 7 ELSE - 96 * 97 END ) * 25 DIV - - 23 * - 44
----
0

skipif mysql # not compatible
query I rowsort label-894
SELECT 44 / + + ( CASE - 98 WHEN 67 THEN + COUNT ( 68 ) * + COUNT ( * ) + + + 7 ELSE - 96 * 97 END ) * 25 / - - 23 * - 44
----
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-895
SELECT CAST( CAST( NULL AS SIGNED ) AS SIGNED ) + + CAST( 72 AS DECIMAL ) + - + 89 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-895
SELECT CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) + + CAST ( 72 AS REAL ) + - + 89 col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-896
SELECT DISTINCT - COUNT( * ) * + - 97 * CAST( - + MAX( + 17 ) AS SIGNED ) AS col1
----
-1649

skipif mysql # not compatible
query I rowsort label-896
SELECT DISTINCT - COUNT ( * ) * + - 97 * CAST ( - + MAX ( + 17 ) AS INTEGER ) AS col1
----
-1649

query I rowsort
SELECT DISTINCT 11 + - - 18 + 33 * + 77 AS col0
----
2570

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-898
SELECT ALL - ( + - ( + 38 ) ) col0, - 66 + 33 + + 2 + + 30 + - + CAST( NULL AS SIGNED ) AS col0
----
38
NULL

skipif mysql # not compatible
query II rowsort label-898
SELECT ALL - ( + - ( + 38 ) ) col0, - 66 + 33 + + 2 + + 30 + - + CAST ( NULL AS INTEGER ) AS col0
----
38
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-899
SELECT - COUNT( * ) * + 54 DIV + - ( + + NULLIF ( - + 71, + + COUNT( * ) * - 86 DIV - 99 + + 25 + COUNT( * ) ) ) + + + 78 AS col0
----
78

skipif mysql # not compatible
query I rowsort label-899
SELECT - COUNT ( * ) * + 54 / + - ( + + NULLIF ( - + 71, + + COUNT ( * ) * - 86 / - 99 + + 25 + COUNT ( * ) ) ) + + + 78 AS col0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-900
SELECT ALL 29 + - - COUNT( * ) col0
----
30

skipif mysql # not compatible
query I rowsort label-900
SELECT ALL 29 + - - COUNT ( * ) col0
----
30

query I rowsort
SELECT DISTINCT - 1 + - + 25 AS col1
----
-26

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

skipif mysql # not compatible
query I rowsort label-902
SELECT ALL + + 10 + - - COUNT ( * ) AS col1
----
11

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

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

query I rowsort
SELECT ALL + + 18 + 90
----
108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-906
SELECT 49 * + CASE - 14 WHEN - - 27 * + 30 + + SUM( DISTINCT - + 24 ) THEN - CAST( NULL AS SIGNED ) + - 83 + + + 48 * + 14 END + - 57
----
NULL

skipif mysql # not compatible
query I rowsort label-906
SELECT 49 * + CASE - 14 WHEN - - 27 * + 30 + + SUM ( DISTINCT - + 24 ) THEN - CAST ( NULL AS INTEGER ) + - 83 + + + 48 * + 14 END + - 57
----
NULL

query I rowsort
SELECT ALL - 44 + - 96
----
-140

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-908
SELECT - - COUNT( * ) + 43 - + ( + - 11 ) + - - 82 - + 24 * 29 DIV - 4 - + SUM( DISTINCT - + 96 ) * COALESCE ( - + 0, 74 ) AS col2
----
311

skipif mysql # not compatible
query I rowsort label-908
SELECT - - COUNT ( * ) + 43 - + ( + - 11 ) + - - 82 - + 24 * 29 / - 4 - + SUM ( DISTINCT - + 96 ) * COALESCE ( - + 0, 74 ) AS col2
----
311

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-909
SELECT - + CAST( + 15 AS SIGNED ) + 69 + - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-909
SELECT - + CAST ( + 15 AS INTEGER ) + 69 + - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL + 52 * 54 AS col1
----
2808

query II rowsort
SELECT + 32, + 55 - - + 21 + 88 AS col0
----
32
164

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-912
SELECT ALL - + COALESCE ( 91, - + MAX( ALL + 46 ) DIV - ( 9 ) ) - - NULLIF ( + + MIN( ALL 22 ), 90 + + - AVG ( ALL + 17 ) + + 50 - - - 37 DIV - CAST( NULL AS DECIMAL ) + - 20 + 9 * - 70 ) * - 64 * 48 AS col1
----
-67675

skipif mysql # not compatible
query I rowsort label-912
SELECT ALL - + COALESCE ( 91, - + MAX ( ALL + 46 ) / - ( 9 ) ) - - NULLIF ( + + MIN ( ALL 22 ), 90 + + - AVG ( ALL + 17 ) + + 50 - - - 37 / - CAST ( NULL AS REAL ) + - 20 + 9 * - 70 ) * - 64 * 48 AS col1
----
-67675

query I rowsort
SELECT ALL 42 - 13
----
29

query I rowsort
SELECT - 12 + 44 * + 23 + 21 + - - 84
----
1105

onlyif mysql # aggregate syntax: 
query I rowsort label-915
SELECT - 16 * + - COUNT( * ) * + 29 col0
----
464

skipif mysql # not compatible
query I rowsort label-915
SELECT - 16 * + - COUNT ( * ) * + 29 col0
----
464

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-916
SELECT DISTINCT NULLIF ( + 18, 43 * + + CAST( - 67 AS DECIMAL ) * - 32 / + - 27 )
----
18

skipif mysql # not compatible
query I rowsort label-916
SELECT DISTINCT NULLIF ( + 18, 43 * + + CAST ( - 67 AS REAL ) * - 32 / + - 27 )
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-917
SELECT - 69 DIV + 44 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-917
SELECT - 69 / + 44 AS col0
----
-1

query I rowsort
SELECT - 86 + - 53 col1
----
-139

onlyif mysql # aggregate syntax: 
query I rowsort label-919
SELECT DISTINCT NULLIF ( + + 67, - CASE - COUNT( * ) WHEN - 4 THEN + - 86 ELSE COUNT( * ) END ) col2
----
67

skipif mysql # not compatible
query I rowsort label-919
SELECT DISTINCT NULLIF ( + + 67, - CASE - COUNT ( * ) WHEN - 4 THEN + - 86 ELSE COUNT ( * ) END ) col2
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-920
SELECT ALL 33 * - CAST( - + CASE 56 WHEN + - 70 THEN NULL WHEN - 57 + - 83 THEN 99 * - 0 * - 62 ELSE NULL END AS SIGNED ) * 1 + - + 88 + - 48 * + + 38 / COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-920
SELECT ALL 33 * - CAST ( - + CASE 56 WHEN + - 70 THEN NULL WHEN - 57 + - 83 THEN 99 * - 0 * - 62 ELSE NULL END AS INTEGER ) * 1 + - + 88 + - 48 * + + 38 / COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT + 38 * - 54
----
-2052

onlyif mysql # DIV for integer division: 
query I rowsort label-922
SELECT DISTINCT - 82 DIV - 41 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-922
SELECT DISTINCT - 82 / - 41 AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-923
SELECT + NULLIF ( + COUNT( * ), - 10 * + 42 - + 41 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-923
SELECT + NULLIF ( + COUNT ( * ), - 10 * + 42 - + 41 ) AS col2
----
1

query I rowsort
SELECT ( - 52 ) col1
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-925
SELECT + MAX( DISTINCT + 44 ) + - ( + 81 ) col0
----
-37

skipif mysql # not compatible
query I rowsort label-925
SELECT + MAX ( DISTINCT + 44 ) + - ( + 81 ) col0
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-926
SELECT ALL - 85 * - 44 * + NULLIF ( - - 53, - - COUNT( * ) ) * - 39 + - - 36 + 48
----
-7730496

skipif mysql # not compatible
query I rowsort label-926
SELECT ALL - 85 * - 44 * + NULLIF ( - - 53, - - COUNT ( * ) ) * - 39 + - - 36 + 48
----
-7730496

query I rowsort
SELECT DISTINCT + 23 * + 56 + + 30
----
1318

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-928
SELECT ALL + 80 * + CAST( 33 AS SIGNED ) * 38 * 1 * + CAST( CASE - SUM( DISTINCT 74 ) WHEN + 78 THEN + 59 - CAST( NULL AS SIGNED ) WHEN - COUNT( * ) + + - CAST( NULL AS SIGNED ) THEN NULL WHEN - 10 + - 22 + 5 * - + COUNT( * ) THEN - - CAST( NULL AS SIGNED ) + - 86 END AS SIGNED ) + + + 37 + 23, - 92 * + - 36 AS col1
----
NULL
3312

skipif mysql # not compatible
query II rowsort label-928
SELECT ALL + 80 * + CAST ( 33 AS INTEGER ) * 38 * 1 * + CAST ( CASE - SUM ( DISTINCT 74 ) WHEN + 78 THEN + 59 - CAST ( NULL AS INTEGER ) WHEN - COUNT ( * ) + + - CAST ( NULL AS INTEGER ) THEN NULL WHEN - 10 + - 22 + 5 * - + COUNT ( * ) THEN - - CAST ( NULL AS INTEGER ) + - 86 END AS INTEGER ) + + + 37 + 23, - 92 * + - 36 AS col1
----
NULL
3312

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-929
SELECT + COALESCE ( ( - 39 ), + 65 + + - CASE - 46 WHEN - CAST( - - 22 AS SIGNED ) THEN - 59 END ), 17 AS col0
----
-39
17

skipif mysql # not compatible
query II rowsort label-929
SELECT + COALESCE ( ( - 39 ), + 65 + + - CASE - 46 WHEN - CAST ( - - 22 AS INTEGER ) THEN - 59 END ), 17 AS col0
----
-39
17

query I rowsort
SELECT - 3 * 16
----
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-931
SELECT DISTINCT + 7 * - + ( - - 75 ) - + + ( - SUM( ALL - 8 ) ) DIV - ( + 89 ) AS col1
----
-525

skipif mysql # not compatible
query I rowsort label-931
SELECT DISTINCT + 7 * - + ( - - 75 ) - + + ( - SUM ( ALL - 8 ) ) / - ( + 89 ) AS col1
----
-525

query I rowsort
SELECT ALL + 56 * + - 17
----
-952

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-933
SELECT ALL + COALESCE ( - 0, - 35 DIV + - COUNT( * ) * + - 34 + - - 81 - + 42 * + 38 )
----
0

skipif mysql # not compatible
query I rowsort label-933
SELECT ALL + COALESCE ( - 0, - 35 / + - COUNT ( * ) * + - 34 + - - 81 - + 42 * + 38 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-934
SELECT ALL - CAST( NULL AS SIGNED ) * - + 7 + + 41 * + 69 * - 44 * - - ( - 97 ) * 93 - + 76
----
NULL

skipif mysql # not compatible
query I rowsort label-934
SELECT ALL - CAST ( NULL AS INTEGER ) * - + 7 + + 41 * + 69 * - 44 * - - ( - 97 ) * 93 - + 76
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-935
SELECT - CAST( - + COALESCE ( + 90, - + 73 * - 18, + 22 ) AS SIGNED ) * 78 AS col2, + 39 * NULLIF ( - 39, + 37 )
----
7020
-1521

skipif mysql # not compatible
query II rowsort label-935
SELECT - CAST ( - + COALESCE ( + 90, - + 73 * - 18, + 22 ) AS INTEGER ) * 78 AS col2, + 39 * NULLIF ( - 39, + 37 )
----
7020
-1521

onlyif mysql # aggregate syntax: 
query I rowsort label-936
SELECT ALL - 57 * 83 - - NULLIF ( 43, COUNT( * ) ) + - - 24 * - COUNT( DISTINCT + - 16 ) + + 1
----
-4711

skipif mysql # not compatible
query I rowsort label-936
SELECT ALL - 57 * 83 - - NULLIF ( 43, COUNT ( * ) ) + - - 24 * - COUNT ( DISTINCT + - 16 ) + + 1
----
-4711

onlyif mysql # DIV for integer division: 
query I rowsort label-937
SELECT ALL - - 3 DIV - + 21
----
0

skipif mysql # not compatible
query I rowsort label-937
SELECT ALL - - 3 / - + 21
----
0

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

skipif mysql # not compatible
query I rowsort label-938
SELECT - + CAST ( NULL AS REAL ) / 50 col1
----
NULL

query I rowsort
SELECT + + 41 * + - ( + - 26 ) AS col1
----
1066

query II rowsort
SELECT - 4, ( 83 ) AS col0
----
-4
83

query I rowsort
SELECT DISTINCT NULLIF ( - 62, - 72 )
----
-62

query I rowsort
SELECT ALL CASE - + 23 WHEN + 28 * 47 THEN - - 15 WHEN + 71 THEN NULL END AS col1
----
NULL

query I rowsort
SELECT - 45 + - 33 - - 48 AS col1
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-944
SELECT ALL - MAX( ALL + - 54 ) * + + 40 col1
----
2160

skipif mysql # not compatible
query I rowsort label-944
SELECT ALL - MAX ( ALL + - 54 ) * + + 40 col1
----
2160

query I rowsort
SELECT - 63 * - - 94 * - ( - 11 )
----
-65142

query I rowsort
SELECT DISTINCT NULLIF ( + - 25, + 46 ) AS col1
----
-25

query I rowsort
SELECT ALL - 69 * 68 AS col0
----
-4692

query I rowsort
SELECT ALL - 96 * - 27
----
2592

onlyif mysql # aggregate syntax: 
query I rowsort label-949
SELECT DISTINCT - MIN( ALL ( + + 27 ) ) + - NULLIF ( - COUNT( * ), - 94 )
----
-26

skipif mysql # not compatible
query I rowsort label-949
SELECT DISTINCT - MIN ( ALL ( + + 27 ) ) + - NULLIF ( - COUNT ( * ), - 94 )
----
-26

query I rowsort
SELECT DISTINCT + 24 + - 62 AS col0
----
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-951
SELECT + 85 DIV - 46 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-951
SELECT + 85 / - 46 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-952
SELECT ALL + COUNT( * ) + - 21 + + + 60 * + - 14 + 8 + + 91 + - + CASE COUNT( * ) WHEN 38 THEN NULL WHEN + + 19 * + ( COUNT( * ) ) + + 41 THEN 79 + - + MIN( DISTINCT + 5 ) + - NULLIF ( + + 28, - 92 ) * - 81 * + 62 WHEN 5 THEN NULL ELSE NULL END * - 61 * - 80 * 74 - - 30 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-952
SELECT ALL + COUNT ( * ) + - 21 + + + 60 * + - 14 + 8 + + 91 + - + CASE COUNT ( * ) WHEN 38 THEN NULL WHEN + + 19 * + ( COUNT ( * ) ) + + 41 THEN 79 + - + MIN ( DISTINCT + 5 ) + - NULLIF ( + + 28, - 92 ) * - 81 * + 62 WHEN 5 THEN NULL ELSE NULL END * - 61 * - 80 * 74 - - 30 col2
----
NULL

query II rowsort
SELECT 27 AS col2, - ( 80 )
----
27
-80

query I rowsort
SELECT - ( - 73 ) col0
----
73

query I rowsort
SELECT 6 * 86 + - - COALESCE ( 36, - + 64 ) AS col2
----
552

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-956
SELECT ALL COUNT( * ) DIV 58 * - 72 col2
----
0

skipif mysql # not compatible
query I rowsort label-956
SELECT ALL COUNT ( * ) / 58 * - 72 col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-957
SELECT - 49 DIV - 88 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-957
SELECT - 49 / - 88 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-958
SELECT ALL + COUNT( DISTINCT 79 ) DIV - 99 * + 75 + 29 * 10 AS col2
----
290

skipif mysql # not compatible
query I rowsort label-958
SELECT ALL + COUNT ( DISTINCT 79 ) / - 99 * + 75 + 29 * 10 AS col2
----
290

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

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

query I rowsort
SELECT + NULLIF ( + 48, - 20 ) AS col0
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-961
SELECT ALL 70 DIV 33 + + - 37 * 1 + - 96 + 25 + - 11 AS col0
----
-117

skipif mysql # not compatible
query I rowsort label-961
SELECT ALL 70 / 33 + + - 37 * 1 + - 96 + 25 + - 11 AS col0
----
-117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-962
SELECT + + COUNT( * ) / - ( - + 60 ) + - 85 + 40 / CAST( + + AVG ( DISTINCT + + 65 ) AS SIGNED ) + 80 - + CASE + 37 WHEN - NULLIF ( + + MIN( - 79 ), - 41 ) THEN + - 38 WHEN + 47 / - 78 THEN ( + 38 ) + 61 END - - 10 + 54 + + 80 + 97 * + 71
----
NULL

skipif mysql # not compatible
query I rowsort label-962
SELECT + + COUNT ( * ) / - ( - + 60 ) + - 85 + 40 / CAST ( + + AVG ( DISTINCT + + 65 ) AS INTEGER ) + 80 - + CASE + 37 WHEN - NULLIF ( + + MIN ( - 79 ), - 41 ) THEN + - 38 WHEN + 47 / - 78 THEN ( + 38 ) + 61 END - - 10 + 54 + + 80 + 97 * + 71
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-963
SELECT ( 97 ) * + - ( - - 50 ) + + - 43 DIV 66 AS col0
----
-4850

skipif mysql # not compatible
query I rowsort label-963
SELECT ( 97 ) * + - ( - - 50 ) + + - 43 / 66 AS col0
----
-4850

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-964
SELECT ALL - 4 DIV + 46 + 43 - - 30 - + + COUNT( * )
----
72

skipif mysql # not compatible
query I rowsort label-964
SELECT ALL - 4 / + 46 + 43 - - 30 - + + COUNT ( * )
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-965
SELECT CASE - 84 WHEN - COALESCE ( + 40, + CAST( 7 AS SIGNED ), - 12 ) + 39 - 22 + 8 THEN + 61 WHEN + + 28 THEN - - COUNT( * ) WHEN - 72 / - 60 THEN COALESCE ( 54, - 19 - + 32 + 29 + - COALESCE ( + + 56, + AVG ( DISTINCT + - CAST( NULL AS SIGNED ) ) + + 80 + + 97 * 39 ) - - 8 * 69, - 42 * - 76 * 13 - - + 4 ) ELSE + - 17 + + 63 END
----
46

skipif mysql # not compatible
query I rowsort label-965
SELECT CASE - 84 WHEN - COALESCE ( + 40, + CAST ( 7 AS INTEGER ), - 12 ) + 39 - 22 + 8 THEN + 61 WHEN + + 28 THEN - - COUNT ( * ) WHEN - 72 / - 60 THEN COALESCE ( 54, - 19 - + 32 + 29 + - COALESCE ( + + 56, + AVG ( DISTINCT + - CAST ( NULL AS INTEGER ) ) + + 80 + + 97 * 39 ) - - 8 * 69, - 42 * - 76 * 13 - - + 4 ) ELSE + - 17 + + 63 END
----
46

query I rowsort
SELECT + 55 * + ( 24 ) + - - 43 col0
----
1363

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

skipif mysql # not compatible
query I rowsort label-967
SELECT DISTINCT COUNT ( * ) * + + 99 AS col0
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-968
SELECT + 67 * + 70 * - - CAST( NULL AS SIGNED ) * 94 * + 39 * 97 / + 53 + CASE + + 26 WHEN - 72 THEN + + 69 WHEN + + 76 THEN NULL ELSE - ( + + 68 ) * - 64 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-968
SELECT + 67 * + 70 * - - CAST ( NULL AS INTEGER ) * 94 * + 39 * 97 / + 53 + CASE + + 26 WHEN - 72 THEN + + 69 WHEN + + 76 THEN NULL ELSE - ( + + 68 ) * - 64 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-969
SELECT + 67 * NULLIF ( - + NULLIF ( - 5, - COUNT( * ) + - 44 + COUNT( * ) * - - 67 / + 34 ), - 36 * - - 22 ) AS col1, - 42
----
335
-42

skipif mysql # not compatible
query II rowsort label-969
SELECT + 67 * NULLIF ( - + NULLIF ( - 5, - COUNT ( * ) + - 44 + COUNT ( * ) * - - 67 / + 34 ), - 36 * - - 22 ) AS col1, - 42
----
335
-42

query II rowsort
SELECT + 80 + ( 64 ) AS col2, + 31 * + + 38 + 98 - - + ( + + 29 )
----
144
1305

query I rowsort
SELECT + + ( + ( + - COALESCE ( 6, 7, 72 + - + 33 * + + 71 ) ) )
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-972
SELECT ALL 63 DIV + MAX( DISTINCT - 92 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-972
SELECT ALL 63 / + MAX ( DISTINCT - 92 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-973
SELECT ALL + MIN( - ( + 58 ) ) * MAX( ALL - 73 ) AS col1
----
4234

skipif mysql # not compatible
query I rowsort label-973
SELECT ALL + MIN ( - ( + 58 ) ) * MAX ( ALL - 73 ) AS col1
----
4234

onlyif mysql # aggregate syntax: 
query I rowsort label-974
SELECT DISTINCT 86 * - COUNT( * ) * 19 AS col1
----
-1634

skipif mysql # not compatible
query I rowsort label-974
SELECT DISTINCT 86 * - COUNT ( * ) * 19 AS col1
----
-1634

onlyif mysql # aggregate syntax: 
query I rowsort label-975
SELECT ( + 24 ) * 26 + + COUNT( * )
----
625

skipif mysql # not compatible
query I rowsort label-975
SELECT ( + 24 ) * 26 + + COUNT ( * )
----
625

query II rowsort
SELECT DISTINCT 17 col1, + 12
----
17
12

onlyif mysql # aggregate syntax: 
query I rowsort label-977
SELECT ALL 80 + + MIN( ALL - 73 ) + + 34 - COUNT( * ) AS col2
----
40

skipif mysql # not compatible
query I rowsort label-977
SELECT ALL 80 + + MIN ( ALL - 73 ) + + 34 - COUNT ( * ) AS col2
----
40

query I rowsort
SELECT DISTINCT - 92 + + 58 + + 4 + - + 51 * - 63 AS col2
----
3183

onlyif mysql # DIV for integer division: 
query II rowsort label-979
SELECT ALL 77 AS col0, 62 + + ( - 81 ) DIV + 43 AS col0
----
77
61

skipif mysql # not compatible
query II rowsort label-979
SELECT ALL 77 AS col0, 62 + + ( - 81 ) / + 43 AS col0
----
77
61

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-980
SELECT DISTINCT 79 + + CAST( NULL AS DECIMAL ) / + 91 * - 49 + NULLIF ( + 84, + 49 )
----
NULL

skipif mysql # not compatible
query I rowsort label-980
SELECT DISTINCT 79 + + CAST ( NULL AS REAL ) / + 91 * - 49 + NULLIF ( + 84, + 49 )
----
NULL

query I rowsort
SELECT 25 + - 78
----
-53

query I rowsort
SELECT DISTINCT + ( 94 ) + - - 2 * + 64 AS col1
----
222

query II rowsort
SELECT DISTINCT 94 AS col0, - COALESCE ( + + NULLIF ( - - 6, + 46 ), + 29 ) + + + 83 + + 17 * - + 74 - - + 19 - - + 1 AS col2
----
94
-1161

onlyif mysql # DIV for integer division: 
query I rowsort label-984
SELECT ALL - 29 + 78 + + 20 + - 41 DIV + + ( + 33 ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-984
SELECT ALL - 29 + 78 + + 20 + - 41 / + + ( + 33 ) AS col1
----
68

query II rowsort
SELECT DISTINCT - 20 * - 14 AS col2, + 88 * + - NULLIF ( + + 23, + - 84 ) + - + ( 47 )
----
280
-2071

query I rowsort
SELECT DISTINCT + COALESCE ( + - 45, + 80 - - + 43 ) + - + 92 AS col2
----
-137

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-989
SELECT ALL + 81 - + + COUNT( ALL - - 4 ) * - 22 * - + 79
----
-1657

skipif mysql # not compatible
query I rowsort label-989
SELECT ALL + 81 - + + COUNT ( ALL - - 4 ) * - 22 * - + 79
----
-1657

onlyif mysql # aggregate syntax: 
query I rowsort label-990
SELECT 23 + - COUNT( * ) - + 46 + - - 7 + - 76 col2
----
-93

skipif mysql # not compatible
query I rowsort label-990
SELECT 23 + - COUNT ( * ) - + 46 + - - 7 + - 76 col2
----
-93

query II rowsort
SELECT 53 AS col0, 50
----
53
50

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

skipif mysql # not compatible
query I rowsort label-992
SELECT ALL - MIN ( ALL 60 )
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-993
SELECT ALL + ( NULLIF ( NULLIF ( 94, COALESCE ( - 18, - NULLIF ( + + 35, 14 ) + 82 / + + 48 ) ), - NULLIF ( + 16, 77 + + 92 ) * - 12 ) ) - 6 + + CAST( 88 AS SIGNED )
----
176

skipif mysql # not compatible
query I rowsort label-993
SELECT ALL + ( NULLIF ( NULLIF ( 94, COALESCE ( - 18, - NULLIF ( + + 35, 14 ) + 82 / + + 48 ) ), - NULLIF ( + 16, 77 + + 92 ) * - 12 ) ) - 6 + + CAST ( 88 AS INTEGER )
----
176

onlyif mysql # DIV for integer division: 
query I rowsort label-994
SELECT 79 DIV + 60
----
1

skipif mysql # not compatible
query I rowsort label-994
SELECT 79 / + 60
----
1

query II rowsort
SELECT ALL - ( - + 91 ) AS col1, 74 * 8 * + + NULLIF ( 16, - 76 ) AS col1
----
91
9472

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-996
SELECT DISTINCT + + 69 DIV - - MIN( ALL 49 )
----
1

skipif mysql # not compatible
query I rowsort label-996
SELECT DISTINCT + + 69 / - - MIN ( ALL 49 )
----
1

query II rowsort
SELECT ALL + - 19 * 25 AS col0, - 17 AS col0
----
-475
-17

query I rowsort
SELECT - ( - 74 ) * 27 AS col0
----
1998

query I rowsort
SELECT + 31 - - - 73 AS col0
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1000
SELECT DISTINCT - ( + 63 ) * + 4 + - 83, - COUNT( + ( - 79 ) ) + CASE + MIN( - + CAST( - NULLIF ( + 15, - 65 ) AS SIGNED ) ) WHEN NULLIF ( - COUNT( * ), 65 ) THEN + 67 END - - + 82 col1
----
-335
NULL

skipif mysql # not compatible
query II rowsort label-1000
SELECT DISTINCT - ( + 63 ) * + 4 + - 83, - COUNT ( + ( - 79 ) ) + CASE + MIN ( - + CAST ( - NULLIF ( + 15, - 65 ) AS INTEGER ) ) WHEN NULLIF ( - COUNT ( * ), 65 ) THEN + 67 END - - + 82 col1
----
-335
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1001
SELECT ALL 75 + - CAST( 66 AS SIGNED )
----
9

skipif mysql # not compatible
query I rowsort label-1001
SELECT ALL 75 + - CAST ( 66 AS INTEGER )
----
9

query III rowsort
SELECT + + 81 AS col2, + 55 AS col2, - 67 AS col0
----
81
55
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-1003
SELECT MAX( - 96 ) * 33 * + 18 + + 58 - 13
----
-56979

skipif mysql # not compatible
query I rowsort label-1003
SELECT MAX ( - 96 ) * 33 * + 18 + + 58 - 13
----
-56979

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

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

query I rowsort
SELECT ALL 10 + - 19
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-1006
SELECT + COUNT( * ) * 33 + ( + + 26 ) * 55 * + MAX( - 61 )
----
-87197

skipif mysql # not compatible
query I rowsort label-1006
SELECT + COUNT ( * ) * 33 + ( + + 26 ) * 55 * + MAX ( - 61 )
----
-87197

query I rowsort
SELECT ( - + 75 ) + - + 58 - - - 76
----
-209

onlyif mysql # aggregate syntax: 
query I rowsort label-1008
SELECT ALL 74 + + COALESCE ( + + COUNT( * ), - + 71 * + 15 + + - 67 )
----
75

skipif mysql # not compatible
query I rowsort label-1008
SELECT ALL 74 + + COALESCE ( + + COUNT ( * ), - + 71 * + 15 + + - 67 )
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1009
SELECT DISTINCT COALESCE ( + + 37, - SUM( DISTINCT - 61 ), - 74 ) DIV - 83
----
0

skipif mysql # not compatible
query I rowsort label-1009
SELECT DISTINCT COALESCE ( + + 37, - SUM ( DISTINCT - 61 ), - 74 ) / - 83
----
0

query I rowsort
SELECT ( 77 ) * - 30
----
-2310

onlyif mysql # aggregate syntax: 
query I rowsort label-1011
SELECT COALESCE ( + 17, - - 7 * 98 ) * - - 26 * + - 88 + ( + COUNT( * ) ) AS col1
----
-38895

skipif mysql # not compatible
query I rowsort label-1011
SELECT COALESCE ( + 17, - - 7 * 98 ) * - - 26 * + - 88 + ( + COUNT ( * ) ) AS col1
----
-38895

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1012
SELECT COALESCE ( + CASE - 91 WHEN 25 THEN 83 DIV + 45 * + 59 * - COALESCE ( - 82, ( - - 17 ) * - 62 + - 0 * - - ( + 27 ) - 32 ) + - 6 + + 13 - + + 19 + - 22 WHEN + 68 THEN NULL WHEN + COALESCE ( - COUNT( * ), - COUNT( * ) * - + 20 + - + 35 + + + 47 + 64 - - 62, - 29 ) THEN NULL ELSE NULL END, - 67 * NULLIF ( - - 84, 76 * 75 ) * - 31 * 60 ) DIV + 91 AS col2
----
115033

skipif mysql # not compatible
query I rowsort label-1012
SELECT COALESCE ( + CASE - 91 WHEN 25 THEN 83 / + 45 * + 59 * - COALESCE ( - 82, ( - - 17 ) * - 62 + - 0 * - - ( + 27 ) - 32 ) + - 6 + + 13 - + + 19 + - 22 WHEN + 68 THEN NULL WHEN + COALESCE ( - COUNT ( * ), - COUNT ( * ) * - + 20 + - + 35 + + + 47 + 64 - - 62, - 29 ) THEN NULL ELSE NULL END, - 67 * NULLIF ( - - 84, 76 * 75 ) * - 31 * 60 ) / + 91 AS col2
----
115033

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1013
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 65 * + + 12 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1013
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 65 * + + 12 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1014
SELECT - MAX( + - 11 ) AS col0
----
11

skipif mysql # not compatible
query I rowsort label-1014
SELECT - MAX ( + - 11 ) AS col0
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1015
SELECT ALL - 43 - + 95 - + COUNT( ALL COALESCE ( - CAST( NULL AS SIGNED ), 28 ) ) * + 24
----
-162

skipif mysql # not compatible
query I rowsort label-1015
SELECT ALL - 43 - + 95 - + COUNT ( ALL COALESCE ( - CAST ( NULL AS INTEGER ), 28 ) ) * + 24
----
-162

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1016
SELECT CAST( NULL AS DECIMAL ) * - 85 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1016
SELECT CAST ( NULL AS REAL ) * - 85 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1017
SELECT 63 + - MIN( 31 ) + - 97 * + 13 * - 68 * + 31 AS col2
----
2658220

skipif mysql # not compatible
query I rowsort label-1017
SELECT 63 + - MIN ( 31 ) + - 97 * + 13 * - 68 * + 31 AS col2
----
2658220

onlyif mysql # aggregate syntax: 
query I rowsort label-1018
SELECT + - ( - + NULLIF ( - 67, + 51 + - 7 ) ) - + 69 - 70 * - + 48 * - + 43 * - 58 + COUNT( * ) AS col2
----
8379705

skipif mysql # not compatible
query I rowsort label-1018
SELECT + - ( - + NULLIF ( - 67, + 51 + - 7 ) ) - + 69 - 70 * - + 48 * - + 43 * - 58 + COUNT ( * ) AS col2
----
8379705

query I rowsort
SELECT ALL + CASE + 89 WHEN + 68 / - - ( + 4 ) + - ( - + 80 ) THEN + 82 - - 59 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1020
SELECT + MAX( DISTINCT + - 20 ) col1
----
-20

skipif mysql # not compatible
query I rowsort label-1020
SELECT + MAX ( DISTINCT + - 20 ) col1
----
-20

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1023
SELECT ALL + - CASE + 55 WHEN COUNT( * ) THEN NULL WHEN - 0 THEN NULL ELSE + COUNT( * ) END col2
----
-1

skipif mysql # not compatible
query I rowsort label-1023
SELECT ALL + - CASE + 55 WHEN COUNT ( * ) THEN NULL WHEN - 0 THEN NULL ELSE + COUNT ( * ) END col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1024
SELECT - + 87 * - 14 * CAST( - 29 AS SIGNED ) + COUNT( * ) + - 14 * COUNT( * ) + 38 * - 71 * 67 - + - 40
----
-216061

skipif mysql # not compatible
query I rowsort label-1024
SELECT - + 87 * - 14 * CAST ( - 29 AS INTEGER ) + COUNT ( * ) + - 14 * COUNT ( * ) + 38 * - 71 * 67 - + - 40
----
-216061

onlyif mysql # aggregate syntax: 
query I rowsort label-1025
SELECT - NULLIF ( + - 98, + + 97 - + + 73 ) - - 14 + + CASE - COUNT( - 96 ) WHEN ( - COUNT( * ) ) THEN + - 56 END
----
56

skipif mysql # not compatible
query I rowsort label-1025
SELECT - NULLIF ( + - 98, + + 97 - + + 73 ) - - 14 + + CASE - COUNT ( - 96 ) WHEN ( - COUNT ( * ) ) THEN + - 56 END
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1026
SELECT DISTINCT + AVG ( - CAST( NULL AS SIGNED ) ) * + - 5 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1026
SELECT DISTINCT + AVG ( - CAST ( NULL AS INTEGER ) ) * + - 5 AS col1
----
NULL

query I rowsort
SELECT - 6 * - - 37 + 39 + 33 col0
----
-150

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1028
SELECT + - COALESCE ( - 96, - - CASE 11 WHEN COALESCE ( 99, - 1 ) * - 84 * - 11 THEN - 67 END, 58 - - - ( + 23 ) ) DIV + 39 + 8 + + COUNT( * ) + + 65 * + 43 - 36
----
2770

skipif mysql # not compatible
query I rowsort label-1028
SELECT + - COALESCE ( - 96, - - CASE 11 WHEN COALESCE ( 99, - 1 ) * - 84 * - 11 THEN - 67 END, 58 - - - ( + 23 ) ) / + 39 + 8 + + COUNT ( * ) + + 65 * + 43 - 36
----
2770

onlyif mysql # aggregate syntax: 
query I rowsort label-1029
SELECT ALL + 51 * + + 90 * 84 + MIN( DISTINCT + - 95 ) * + - 60
----
391260

skipif mysql # not compatible
query I rowsort label-1029
SELECT ALL + 51 * + + 90 * 84 + MIN ( DISTINCT + - 95 ) * + - 60
----
391260

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1030
SELECT - - 78 + 12 DIV - + ( - 11 ) + + 37 AS col0, 26 DIV + COUNT( * )
----
116
26

skipif mysql # not compatible
query II rowsort label-1030
SELECT - - 78 + 12 / - + ( - 11 ) + + 37 AS col0, 26 / + COUNT ( * )
----
116
26

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1032
SELECT DISTINCT + + NULLIF ( + NULLIF ( + 19, 68 ), - COUNT( * ) + + 55 - + 29 / - 6 * - 93 * 6 ) col0
----
19

skipif mysql # not compatible
query I rowsort label-1032
SELECT DISTINCT + + NULLIF ( + NULLIF ( + 19, 68 ), - COUNT ( * ) + + 55 - + 29 / - 6 * - 93 * 6 ) col0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-1033
SELECT + - 86 * + - SUM( DISTINCT + + 45 ) + 82 + ( - COUNT( * ) )
----
3951

skipif mysql # not compatible
query I rowsort label-1033
SELECT + - 86 * + - SUM ( DISTINCT + + 45 ) + 82 + ( - COUNT ( * ) )
----
3951

query I rowsort
SELECT DISTINCT 75 * - - 48 + 62 AS col2
----
3662

query I rowsort
SELECT ALL 10 * 8 + - - 94 AS col1
----
174

query I rowsort
SELECT DISTINCT 69 * - 5
----
-345

onlyif mysql # DIV for integer division: 
query I rowsort label-1037
SELECT - 86 DIV 34
----
-2

skipif mysql # not compatible
query I rowsort label-1037
SELECT - 86 / 34
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1038
SELECT - 92 + + 59 - - 30 + - - 77 DIV - - 89 - - COUNT( * ) - + 72 + - 31 * 13 * + + COALESCE ( + + COUNT( * ), + 23 * 72 + + COALESCE ( - CAST( NULL AS SIGNED ), - - COUNT( * ) * - CAST( NULL AS SIGNED ) + - 65 ) * - 45 * 84 )
----
-477

skipif mysql # not compatible
query I rowsort label-1038
SELECT - 92 + + 59 - - 30 + - - 77 / - - 89 - - COUNT ( * ) - + 72 + - 31 * 13 * + + COALESCE ( + + COUNT ( * ), + 23 * 72 + + COALESCE ( - CAST ( NULL AS INTEGER ), - - COUNT ( * ) * - CAST ( NULL AS INTEGER ) + - 65 ) * - 45 * 84 )
----
-477

onlyif mysql # aggregate syntax: 
query II rowsort label-1039
SELECT + 68 + - 19 + - - 21 AS col1, + MIN( 95 ) * - + 24 AS col0
----
70
-2280

skipif mysql # not compatible
query II rowsort label-1039
SELECT + 68 + - 19 + - - 21 AS col1, + MIN ( 95 ) * - + 24 AS col0
----
70
-2280

onlyif mysql # aggregate syntax: 
query I rowsort label-1040
SELECT DISTINCT + ( - 2 ) * - 97 + + ( + 31 ) * CASE + - SUM( DISTINCT 67 ) WHEN 45 * + 88 + 53 * COUNT( * ) THEN 33 * - + 26 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1040
SELECT DISTINCT + ( - 2 ) * - 97 + + ( + 31 ) * CASE + - SUM ( DISTINCT 67 ) WHEN 45 * + 88 + 53 * COUNT ( * ) THEN 33 * - + 26 END
----
NULL

query II rowsort
SELECT - 20, - 81 AS col1
----
-20
-81

query I rowsort
SELECT - 32 * 4
----
-128

onlyif mysql # aggregate syntax: 
query I rowsort label-1043
SELECT DISTINCT COALESCE ( + 99, - + COUNT( * ) )
----
99

skipif mysql # not compatible
query I rowsort label-1043
SELECT DISTINCT COALESCE ( + 99, - + COUNT ( * ) )
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1044
SELECT DISTINCT CAST( + 22 AS SIGNED ) - + - MAX( DISTINCT - 81 )
----
-59

skipif mysql # not compatible
query I rowsort label-1044
SELECT DISTINCT CAST ( + 22 AS INTEGER ) - + - MAX ( DISTINCT - 81 )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-1045
SELECT ALL ( - + ( + - MIN( DISTINCT + ( 24 ) ) ) ) AS col1
----
24

skipif mysql # not compatible
query I rowsort label-1045
SELECT ALL ( - + ( + - MIN ( DISTINCT + ( 24 ) ) ) ) AS col1
----
24

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

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

query I rowsort
SELECT - 14 + + ( - + 94 ) AS col2
----
-108

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

skipif mysql # not compatible
query I rowsort label-1048
SELECT DISTINCT CAST ( NULL AS INTEGER ) - - 99 + + 23
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1049
SELECT ALL 78 DIV - 9
----
-8

skipif mysql # not compatible
query I rowsort label-1049
SELECT ALL 78 / - 9
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-1050
SELECT DISTINCT COUNT( * ) - - 58
----
59

skipif mysql # not compatible
query I rowsort label-1050
SELECT DISTINCT COUNT ( * ) - - 58
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-1051
SELECT ALL COUNT( * ), 45 * - 83 * + 31 * + MAX( ALL 96 ) AS col0
----
1
-11115360

skipif mysql # not compatible
query II rowsort label-1051
SELECT ALL COUNT ( * ), 45 * - 83 * + 31 * + MAX ( ALL 96 ) AS col0
----
1
-11115360

query I rowsort
SELECT DISTINCT 85 * + - 53 AS col2
----
-4505

query I rowsort
SELECT + - 48 * + 69
----
-3312

query II rowsort
SELECT + 85 AS col0, 64 AS col1
----
85
64

onlyif mysql # DIV for integer division: 
query I rowsort label-1055
SELECT + - 99 DIV - 30 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-1055
SELECT + - 99 / - 30 AS col2
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1056
SELECT DISTINCT + 61 DIV + 10 + - COUNT( ALL - 2 ) + - + COUNT( ALL + + 70 ) AS col2, - COUNT( ALL 42 )
----
4
-1

skipif mysql # not compatible
query II rowsort label-1056
SELECT DISTINCT + 61 / + 10 + - COUNT ( ALL - 2 ) + - + COUNT ( ALL + + 70 ) AS col2, - COUNT ( ALL 42 )
----
4
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-1057
SELECT ALL + - 52 AS col1, - MAX( + 46 ) * + 15 * COUNT( * )
----
-52
-690

skipif mysql # not compatible
query II rowsort label-1057
SELECT ALL + - 52 AS col1, - MAX ( + 46 ) * + 15 * COUNT ( * )
----
-52
-690

onlyif mysql # DIV for integer division: 
query I rowsort label-1058
SELECT DISTINCT + 11 DIV - 76 + - 83 * 88 * 93 AS col2
----
-679272

skipif mysql # not compatible
query I rowsort label-1058
SELECT DISTINCT + 11 / - 76 + - 83 * 88 * 93 AS col2
----
-679272

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1059
SELECT ALL - - 54 DIV - - COALESCE ( + 56, - ( + 13 ), - 5 + - 84 * - COUNT( * ) + - 93 ) + 54 + MAX( ALL - - ( - 57 ) ) AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-1059
SELECT ALL - - 54 / - - COALESCE ( + 56, - ( + 13 ), - 5 + - 84 * - COUNT ( * ) + - 93 ) + 54 + MAX ( ALL - - ( - 57 ) ) AS col1
----
-3

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1061
SELECT DISTINCT + - 22 DIV - 8 + + - COALESCE ( + + 68, + 85, - 45 * 10 * - 35 ) + - 61 * - 76 + ( + 22 ) AS col1
----
4592

skipif mysql # not compatible
query I rowsort label-1061
SELECT DISTINCT + - 22 / - 8 + + - COALESCE ( + + 68, + 85, - 45 * 10 * - 35 ) + - 61 * - 76 + ( + 22 ) AS col1
----
4592

query II rowsort
SELECT + 80 * + 92 AS col0, - 47
----
7360
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-1063
SELECT ( + COUNT( * ) ) AS col1, - CASE MAX( DISTINCT - 47 ) WHEN + 68 THEN - + 93 WHEN 18 THEN - COUNT( * ) END
----
1
NULL

skipif mysql # not compatible
query II rowsort label-1063
SELECT ( + COUNT ( * ) ) AS col1, - CASE MAX ( DISTINCT - 47 ) WHEN + 68 THEN - + 93 WHEN 18 THEN - COUNT ( * ) END
----
1
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1064
SELECT ALL + CAST( + 8 AS SIGNED ) * - 69 + - 86 + + - 17 AS col2
----
-655

skipif mysql # not compatible
query I rowsort label-1064
SELECT ALL + CAST ( + 8 AS INTEGER ) * - 69 + - 86 + + - 17 AS col2
----
-655

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

skipif mysql # not compatible
query I rowsort label-1065
SELECT - 56 - - CAST ( - + 45 AS INTEGER ) AS col2
----
-101

query I rowsort
SELECT COALESCE ( + - 10, 83 * 63, + 57 + - - 15 )
----
-10

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

skipif mysql # not compatible
query I rowsort label-1067
SELECT - 33 / - - 59
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1068
SELECT DISTINCT + COUNT( DISTINCT + 42 ) AS col0, 57 * + 30 + + 92 + + 15
----
1
1817

skipif mysql # not compatible
query II rowsort label-1068
SELECT DISTINCT + COUNT ( DISTINCT + 42 ) AS col0, 57 * + 30 + + 92 + + 15
----
1
1817

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1069
SELECT COALESCE ( 89, 58 DIV 49, + + 57 + + - COUNT( * ) ) col0
----
89

skipif mysql # not compatible
query I rowsort label-1069
SELECT COALESCE ( 89, 58 / 49, + + 57 + + - COUNT ( * ) ) col0
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-1070
SELECT DISTINCT - 88 DIV 40
----
-2

skipif mysql # not compatible
query I rowsort label-1070
SELECT DISTINCT - 88 / 40
----
-2

query I rowsort
SELECT ALL ( - NULLIF ( + 46, + ( - 77 ) ) )
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-1072
SELECT DISTINCT + 71 * + COALESCE ( - 57, - + MAX( DISTINCT + CAST( 22 AS SIGNED ) ), + 93 ) - - + 31 * - + COUNT( * ), + 4 + ( 84 ) AS col1, + 35 AS col2
----
-4078
88
35

skipif mysql # not compatible
query III rowsort label-1072
SELECT DISTINCT + 71 * + COALESCE ( - 57, - + MAX ( DISTINCT + CAST ( 22 AS INTEGER ) ), + 93 ) - - + 31 * - + COUNT ( * ), + 4 + ( 84 ) AS col1, + 35 AS col2
----
-4078
88
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1073
SELECT ALL CAST( + - CAST( NULL AS DECIMAL ) AS SIGNED ) AS col0, - NULLIF ( - + COUNT( * ), - + 22 * - 60 - + 69 + - - COALESCE ( - ( - - 3 ), + 5 * - 55 ) + + - COUNT( * ) ) * + COUNT( + 68 ) * - + 27 * 32 * + 77 - + + ( SUM( DISTINCT + 74 ) ) AS col0
----
NULL
-66602

skipif mysql # not compatible
query II rowsort label-1073
SELECT ALL CAST ( + - CAST ( NULL AS REAL ) AS INTEGER ) AS col0, - NULLIF ( - + COUNT ( * ), - + 22 * - 60 - + 69 + - - COALESCE ( - ( - - 3 ), + 5 * - 55 ) + + - COUNT ( * ) ) * + COUNT ( + 68 ) * - + 27 * 32 * + 77 - + + ( SUM ( DISTINCT + 74 ) ) AS col0
----
NULL
-66602

query I rowsort
SELECT 69 * - + 20 AS col0
----
-1380

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1076
SELECT 43 + + 96 * + + 63 + - + NULLIF ( - - SUM( ALL - 48 ), + 78 )
----
6139

skipif mysql # not compatible
query I rowsort label-1076
SELECT 43 + + 96 * + + 63 + - + NULLIF ( - - SUM ( ALL - 48 ), + 78 )
----
6139

query I rowsort
SELECT ( - 57 ) * + 29 * + 86
----
-142158

query I rowsort
SELECT 53 + ( + 76 )
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-1079
SELECT DISTINCT - 91 * + SUM( ALL + + 42 ) AS col1
----
-3822

skipif mysql # not compatible
query I rowsort label-1079
SELECT DISTINCT - 91 * + SUM ( ALL + + 42 ) AS col1
----
-3822

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1080
SELECT ALL COALESCE ( ( CAST( - 0 AS SIGNED ) ), - 95 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1080
SELECT ALL COALESCE ( ( CAST ( - 0 AS INTEGER ) ), - 95 ) AS col1
----
0

query II rowsort
SELECT - ( + 26 ), 28 col2
----
-26
28

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

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

query I rowsort
SELECT 33 * - 29 AS col2
----
-957

query I rowsort
SELECT 77 * + 53
----
4081

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

skipif mysql # not compatible
query I rowsort label-1085
SELECT + CAST ( + 5 AS INTEGER ) AS col1
----
5

query I rowsort
SELECT ALL NULLIF ( + ( - 3 ), - 81 * + + 74 + 98 ) + - 5 + + 46
----
38

query I rowsort
SELECT - 84 - + - 76 AS col2
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1088
SELECT DISTINCT + 26 * - 97 + - COALESCE ( - CAST( 11 AS SIGNED ), 43 + - + 30 )
----
-2511

skipif mysql # not compatible
query I rowsort label-1088
SELECT DISTINCT + 26 * - 97 + - COALESCE ( - CAST ( 11 AS INTEGER ), 43 + - + 30 )
----
-2511

query I rowsort
SELECT ALL - - COALESCE ( - 18, + 7 )
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-1090
SELECT ALL - MAX( - 6 ) + + COUNT( * )
----
7

skipif mysql # not compatible
query I rowsort label-1090
SELECT ALL - MAX ( - 6 ) + + COUNT ( * )
----
7

query II rowsort
SELECT ALL + 76 + + 9 AS col2, 65 * + + 68 * ( + 33 ) * - 88 * 44
----
85
-564769920

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1092
SELECT DISTINCT 3 * - COUNT( * ) DIV ( - 4 )
----
0

skipif mysql # not compatible
query I rowsort label-1092
SELECT DISTINCT 3 * - COUNT ( * ) / ( - 4 )
----
0

query I rowsort
SELECT 26 - - 73 * - 1 * 48 + - 7
----
-3485

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1095
SELECT - 49 DIV + 29 + + 11 + + + 57
----
67

skipif mysql # not compatible
query I rowsort label-1095
SELECT - 49 / + 29 + + 11 + + + 57
----
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1096
SELECT COALESCE ( 35, - COUNT( * ) ) DIV - - 44 col1
----
0

skipif mysql # not compatible
query I rowsort label-1096
SELECT COALESCE ( 35, - COUNT ( * ) ) / - - 44 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1097
SELECT 9 + SUM( ALL - 24 ) AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-1097
SELECT 9 + SUM ( ALL - 24 ) AS col0
----
-15

query I rowsort
SELECT NULLIF ( - 92, - 13 ) + - - 28
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-1099
SELECT ALL - MIN( DISTINCT 75 )
----
-75

skipif mysql # not compatible
query I rowsort label-1099
SELECT ALL - MIN ( DISTINCT 75 )
----
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1100
SELECT 83 * + SUM( DISTINCT - 6 ) * 82 DIV COUNT( * ) + + - MAX( DISTINCT - 1 ) AS col0
----
-40835

skipif mysql # not compatible
query I rowsort label-1100
SELECT 83 * + SUM ( DISTINCT - 6 ) * 82 / COUNT ( * ) + + - MAX ( DISTINCT - 1 ) AS col0
----
-40835

query I rowsort
SELECT 34 * 77
----
2618

query I rowsort
SELECT - 51 * - + 31 + - + 18 AS col1
----
1563

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1103
SELECT ALL - COALESCE ( - MAX( - - 78 ), COUNT( * ) * + + 3 + SUM( DISTINCT + 22 ), - ( - 16 ) * + 8 * - + 82 - + - 99 - + 1 + + + 76 + - - COALESCE ( CAST( NULL AS SIGNED ), - + COUNT( * ) ) )
----
78

skipif mysql # not compatible
query I rowsort label-1103
SELECT ALL - COALESCE ( - MAX ( - - 78 ), COUNT ( * ) * + + 3 + SUM ( DISTINCT + 22 ), - ( - 16 ) * + 8 * - + 82 - + - 99 - + 1 + + + 76 + - - COALESCE ( CAST ( NULL AS INTEGER ), - + COUNT ( * ) ) )
----
78

query II rowsort
SELECT + 27, 66 AS col2
----
27
66

query I rowsort
SELECT 24 * + 99
----
2376

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

skipif mysql # not compatible
query I rowsort label-1106
SELECT 60 * - + CAST ( NULL AS INTEGER ) * 92 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 2 * + 32 * + 20
----
-1280

query I rowsort
SELECT 21 * - 66 + + + COALESCE ( - + 45, + 31 ) AS col0
----
-1431

onlyif mysql # aggregate syntax: 
query II rowsort label-1109
SELECT ALL COUNT( * ) * + ( - 90 ) AS col0, CASE - - 99 WHEN 48 / + + 79 + - 11 THEN 55 ELSE + 26 * + - 65 + - COALESCE ( - 7, - + COUNT( DISTINCT - + 79 ), + 53 - 44 ) + + NULLIF ( COUNT( * ), 97 ) * NULLIF ( - 52, 93 ) END + - - 58 - - - COALESCE ( 31, - COUNT( * ), - COUNT( * ) + 26, 64 )
----
-90
-1708

skipif mysql # not compatible
query II rowsort label-1109
SELECT ALL COUNT ( * ) * + ( - 90 ) AS col0, CASE - - 99 WHEN 48 / + + 79 + - 11 THEN 55 ELSE + 26 * + - 65 + - COALESCE ( - 7, - + COUNT ( DISTINCT - + 79 ), + 53 - 44 ) + + NULLIF ( COUNT ( * ), 97 ) * NULLIF ( - 52, 93 ) END + - - 58 - - - COALESCE ( 31, - COUNT ( * ), - COUNT ( * ) + 26, 64 )
----
-90
-1708

onlyif mysql # aggregate syntax: 
query I rowsort label-1110
SELECT COUNT( * ) * - + 6 + + - 82 * - COUNT( * ) + - 43 + - ( 42 ) AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-1110
SELECT COUNT ( * ) * - + 6 + + - 82 * - COUNT ( * ) + - 43 + - ( 42 ) AS col0
----
-9

query II rowsort
SELECT 11 AS col2, - 33 + 67
----
11
34

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1112
SELECT 62 * - 97 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1112
SELECT 62 * - 97 * - CAST ( NULL AS REAL )
----
NULL

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

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

query I rowsort
SELECT ALL + - 52 + - + 56 AS col0
----
-108

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1116
SELECT - - CAST( + 89 AS SIGNED )
----
89

skipif mysql # not compatible
query I rowsort label-1116
SELECT - - CAST ( + 89 AS INTEGER )
----
89

query I rowsort
SELECT 0 + + 81 AS col0
----
81

query I rowsort
SELECT ALL + + 60 + + 9 AS col0
----
69

query I rowsort
SELECT - - 48 col0
----
48

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1120
SELECT - ( + - COUNT( * ) ) * - 89 / - + CASE - CASE 37 WHEN - - 37 THEN + CASE NULLIF ( - 11, + - 57 * + ( - ( - 4 ) ) * + 45 ) WHEN + 59 THEN - + CASE - 64 WHEN - - COALESCE ( - 67, 89 ) THEN - COUNT( * ) ELSE NULL END END + - NULLIF ( - 88, + + 73 ) - - ( - + NULLIF ( 65, - CAST( - 86 AS DECIMAL ) + + SUM( ( - + 3 ) ) ) ) - 54 WHEN - + 22 THEN NULL END WHEN 98 THEN - 6 * - 51 * - - NULLIF ( COUNT( * ), 85 ) END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1120
SELECT - ( + - COUNT ( * ) ) * - 89 / - + CASE - CASE 37 WHEN - - 37 THEN + CASE NULLIF ( - 11, + - 57 * + ( - ( - 4 ) ) * + 45 ) WHEN + 59 THEN - + CASE - 64 WHEN - - COALESCE ( - 67, 89 ) THEN - COUNT ( * ) ELSE NULL END END + - NULLIF ( - 88, + + 73 ) - - ( - + NULLIF ( 65, - CAST ( - 86 AS REAL ) + + SUM ( ( - + 3 ) ) ) ) - 54 WHEN - + 22 THEN NULL END WHEN 98 THEN - 6 * - 51 * - - NULLIF ( COUNT ( * ), 85 ) END col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1121
SELECT DISTINCT - + 31 + - MAX( ALL - - 2 ) + - - 98 - - + ( - + 46 ) * + COUNT( * ) + - 17 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1121
SELECT DISTINCT - + 31 + - MAX ( ALL - - 2 ) + - - 98 - - + ( - + 46 ) * + COUNT ( * ) + - 17 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1122
SELECT 40 - + 52 + ( + ( + COUNT( * ) ) ) * + 67 + + COALESCE ( 2, + 3, + COALESCE ( - + 19, - - COUNT( * ) DIV 46 ) * 60 )
----
57

skipif mysql # not compatible
query I rowsort label-1122
SELECT 40 - + 52 + ( + ( + COUNT ( * ) ) ) * + 67 + + COALESCE ( 2, + 3, + COALESCE ( - + 19, - - COUNT ( * ) / 46 ) * 60 )
----
57

query I rowsort
SELECT DISTINCT 30 + - 4
----
26

query I rowsort
SELECT ALL + - 18 + + + 30
----
12

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1127
SELECT DISTINCT 42 col2, + 51 DIV + + 17
----
42
3

skipif mysql # not compatible
query II rowsort label-1127
SELECT DISTINCT 42 col2, + 51 / + + 17
----
42
3

query I rowsort
SELECT 40 + ( - 7 ) AS col0
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-1129
SELECT MIN( - 21 ), + 87 col1
----
-21
87

skipif mysql # not compatible
query II rowsort label-1129
SELECT MIN ( - 21 ), + 87 col1
----
-21
87

query I rowsort
SELECT ALL + 15 * - 55 AS col0
----
-825

query II rowsort
SELECT DISTINCT - 67 AS col0, 51
----
-67
51

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

skipif mysql # not compatible
query II rowsort label-1132
SELECT + COUNT ( * ), + 47 col2
----
1
47

query II rowsort
SELECT ALL - 9 AS col2, 35 + + 38 AS col0
----
-9
73

query I rowsort
SELECT 44 * 67 * - 31
----
-91388

query I rowsort
SELECT ALL ( 30 ) * + 93
----
2790

onlyif mysql # DIV for integer division: 
query I rowsort label-1136
SELECT + 91 DIV 21
----
4

skipif mysql # not compatible
query I rowsort label-1136
SELECT + 91 / 21
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-1137
SELECT MAX( 66 ), 21 AS col2
----
66
21

skipif mysql # not compatible
query II rowsort label-1137
SELECT MAX ( 66 ), 21 AS col2
----
66
21

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

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

query II rowsort
SELECT ALL + 98 AS col0, + 47 AS col1
----
98
47

query I rowsort
SELECT + 73 * 62 * - 63
----
-285138

query I rowsort
SELECT + ( + - 90 ) * + - 90 AS col1
----
8100

query I rowsort
SELECT - 59 * + 8 - 57
----
-529

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

skipif mysql # not compatible
query I rowsort label-1143
SELECT ALL 55 / - COUNT ( * ) * - COUNT ( * )
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1144
SELECT DISTINCT CAST( + COALESCE ( + ( + - CASE + 65 WHEN - 6 + - ( - - 43 ) THEN - 64 END ), 58 ) AS SIGNED ) + + 46 + 65
----
169

skipif mysql # not compatible
query I rowsort label-1144
SELECT DISTINCT CAST ( + COALESCE ( + ( + - CASE + 65 WHEN - 6 + - ( - - 43 ) THEN - 64 END ), 58 ) AS INTEGER ) + + 46 + 65
----
169

query I rowsort
SELECT + 37 * - 19 col0
----
-703

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

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

query I rowsort
SELECT DISTINCT + 8 + - - 24 AS col1
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1148
SELECT ALL NULLIF ( + 26, + 41 ) * - 70 * 19 + 32 + - + 68 + + CAST( + 13 AS SIGNED )
----
-34603

skipif mysql # not compatible
query I rowsort label-1148
SELECT ALL NULLIF ( + 26, + 41 ) * - 70 * 19 + 32 + - + 68 + + CAST ( + 13 AS INTEGER )
----
-34603

onlyif mysql # aggregate syntax: 
query I rowsort label-1149
SELECT + 16 * + COUNT( * ) * - 63 * - - 12 * 51
----
-616896

skipif mysql # not compatible
query I rowsort label-1149
SELECT + 16 * + COUNT ( * ) * - 63 * - - 12 * 51
----
-616896

onlyif mysql # aggregate syntax: 
query I rowsort label-1150
SELECT + COUNT( * ) + - MIN( ALL - - 41 ) * + + 11 * - - 44 * 93
----
-1845491

skipif mysql # not compatible
query I rowsort label-1150
SELECT + COUNT ( * ) + - MIN ( ALL - - 41 ) * + + 11 * - - 44 * 93
----
-1845491

query II rowsort
SELECT + 69, 74 + - 86 AS col0
----
69
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1152
SELECT - + CASE + 64 WHEN 62 * + - 78 + - ( - 58 ) THEN - ( + + COALESCE ( + - 30, - + 73 + - 96 * 49, - - CAST( + + 72 AS SIGNED ) - 60 ) ) WHEN - + CASE 20 WHEN 68 / - + MAX( DISTINCT - - 4 ) THEN NULL WHEN + + 93 + 39 + - - SUM( + 51 ) - 27 * + - 8 * + - 66 * - COUNT( * ) THEN 19 + COUNT( * ) + + 92 ELSE NULL END + - COUNT( * ) THEN - 53 ELSE - + 94 + 87 END
----
7

skipif mysql # not compatible
query I rowsort label-1152
SELECT - + CASE + 64 WHEN 62 * + - 78 + - ( - 58 ) THEN - ( + + COALESCE ( + - 30, - + 73 + - 96 * 49, - - CAST ( + + 72 AS INTEGER ) - 60 ) ) WHEN - + CASE 20 WHEN 68 / - + MAX ( DISTINCT - - 4 ) THEN NULL WHEN + + 93 + 39 + - - SUM ( + 51 ) - 27 * + - 8 * + - 66 * - COUNT ( * ) THEN 19 + COUNT ( * ) + + 92 ELSE NULL END + - COUNT ( * ) THEN - 53 ELSE - + 94 + 87 END
----
7

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

query II rowsort
SELECT DISTINCT + 12, + 36 AS col2
----
12
36

query I rowsort
SELECT DISTINCT + 9 + 67 AS col0
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1156
SELECT DISTINCT 48, 86 * - 31 * + - CASE + 8 WHEN - 85 THEN - COUNT( * ) * - 15 WHEN - CAST( + - 53 AS SIGNED ) * - 83 THEN - - NULLIF ( - - COUNT( * ), 5 ) * COUNT( * ) + - 3 * - 99 * ( - COUNT( * ) ) WHEN 77 * + 11 / - 92 - 86 / COUNT( * ) THEN 58 * + 30 * - 85 END AS col2
----
48
NULL

skipif mysql # not compatible
query II rowsort label-1156
SELECT DISTINCT 48, 86 * - 31 * + - CASE + 8 WHEN - 85 THEN - COUNT ( * ) * - 15 WHEN - CAST ( + - 53 AS INTEGER ) * - 83 THEN - - NULLIF ( - - COUNT ( * ), 5 ) * COUNT ( * ) + - 3 * - 99 * ( - COUNT ( * ) ) WHEN 77 * + 11 / - 92 - 86 / COUNT ( * ) THEN 58 * + 30 * - 85 END AS col2
----
48
NULL

query I rowsort
SELECT - 6 * + + 13 col0
----
-78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1158
SELECT ALL + ( + 6 ) DIV NULLIF ( - - 16, + - 41 + + - NULLIF ( - + 72, - - 76 * + - 18 - + NULLIF ( 54, - + COUNT( * ) + 5 ) + + 25 ) )
----
0

skipif mysql # not compatible
query I rowsort label-1158
SELECT ALL + ( + 6 ) / NULLIF ( - - 16, + - 41 + + - NULLIF ( - + 72, - - 76 * + - 18 - + NULLIF ( 54, - + COUNT ( * ) + 5 ) + + 25 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1159
SELECT - - MIN( DISTINCT - + 94 ) col1
----
-94

skipif mysql # not compatible
query I rowsort label-1159
SELECT - - MIN ( DISTINCT - + 94 ) col1
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-1160
SELECT - - ( - + 34 ) - - - 6 * - 24 + + - COUNT( * )
----
109

skipif mysql # not compatible
query I rowsort label-1160
SELECT - - ( - + 34 ) - - - 6 * - 24 + + - COUNT ( * )
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-1161
SELECT - - 10 * - SUM( + 53 ) * + - 39
----
20670

skipif mysql # not compatible
query I rowsort label-1161
SELECT - - 10 * - SUM ( + 53 ) * + - 39
----
20670

onlyif mysql # aggregate syntax: 
query I rowsort label-1162
SELECT - + MIN( DISTINCT - + 61 ) - - + 7 * 43 * + - COUNT( * ) col1
----
-240

skipif mysql # not compatible
query I rowsort label-1162
SELECT - + MIN ( DISTINCT - + 61 ) - - + 7 * 43 * + - COUNT ( * ) col1
----
-240

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

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

query I rowsort
SELECT DISTINCT + CASE 46 WHEN - ( + 92 ) THEN + 55 ELSE NULL END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1166
SELECT 20 * + 55 * - 62 + + COUNT( * ) * - CASE - + 40 WHEN - 36 + 80 THEN - 17 WHEN + 79 THEN - 93 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1166
SELECT 20 * + 55 * - 62 + + COUNT ( * ) * - CASE - + 40 WHEN - 36 + 80 THEN - 17 WHEN + 79 THEN - 93 ELSE NULL END
----
NULL

query I rowsort
SELECT - 80 - 56 + + 93 * - 69
----
-6553

query I rowsort
SELECT - 50 * - 85
----
4250

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1169
SELECT + 55 * MIN( ALL - + 7 ) + + - 38 DIV 84 + 8 + - + 52 AS col0
----
-429

skipif mysql # not compatible
query I rowsort label-1169
SELECT + 55 * MIN ( ALL - + 7 ) + + - 38 / 84 + 8 + - + 52 AS col0
----
-429

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1170
SELECT ALL + ( - CASE + ( + - CAST( + - MIN( + 65 ) AS SIGNED ) ) WHEN + 76 / 83 * 60 + - + ( + - 82 ) THEN NULL WHEN - 88 THEN + CAST( + + 3 AS SIGNED ) ELSE + 61 END ) AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-1170
SELECT ALL + ( - CASE + ( + - CAST ( + - MIN ( + 65 ) AS INTEGER ) ) WHEN + 76 / 83 * 60 + - + ( + - 82 ) THEN NULL WHEN - 88 THEN + CAST ( + + 3 AS INTEGER ) ELSE + 61 END ) AS col0
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-1171
SELECT - SUM( DISTINCT + ( 42 ) ) * 82 + + 77 + 34 + + - 91
----
-3424

skipif mysql # not compatible
query I rowsort label-1171
SELECT - SUM ( DISTINCT + ( 42 ) ) * 82 + + 77 + 34 + + - 91
----
-3424

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1172
SELECT + COALESCE ( - 91, + SUM( ALL - + 90 ) * - 47 + + 87, 70 + + - CAST( + COUNT( * ) AS SIGNED ) ) AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-1172
SELECT + COALESCE ( - 91, + SUM ( ALL - + 90 ) * - 47 + + 87, 70 + + - CAST ( + COUNT ( * ) AS INTEGER ) ) AS col1
----
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1173
SELECT - 44 + - 40 DIV - - ( - - 2 ) - + COUNT( * )
----
-65

skipif mysql # not compatible
query I rowsort label-1173
SELECT - 44 + - 40 / - - ( - - 2 ) - + COUNT ( * )
----
-65

query I rowsort
SELECT - NULLIF ( + 28, + 77 + + 12 - - 11 * + 53 * + 62 ) + - COALESCE ( - 27, 36 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1175
SELECT COALESCE ( CAST( + + 83 AS SIGNED ), - 92 ) col2
----
83

skipif mysql # not compatible
query I rowsort label-1175
SELECT COALESCE ( CAST ( + + 83 AS INTEGER ), - 92 ) col2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-1176
SELECT ( - 23 ) * COUNT( * ) + + 52 * - 30
----
-1583

skipif mysql # not compatible
query I rowsort label-1176
SELECT ( - 23 ) * COUNT ( * ) + + 52 * - 30
----
-1583

query I rowsort
SELECT + COALESCE ( 19, 11 - + ( + 87 ), - 57 )
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1178
SELECT + ( + + 5 ) DIV - + MIN( + 1 ) AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-1178
SELECT + ( + + 5 ) / - + MIN ( + 1 ) AS col0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-1179
SELECT - NULLIF ( - COUNT( * ), - - 85 + + COUNT( * ) ) + 29 * + 24 - + + 87 * + 5
----
262

skipif mysql # not compatible
query I rowsort label-1179
SELECT - NULLIF ( - COUNT ( * ), - - 85 + + COUNT ( * ) ) + 29 * + 24 - + + 87 * + 5
----
262

onlyif mysql # aggregate syntax: 
query I rowsort label-1180
SELECT NULLIF ( - 90, COUNT( * ) ) AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-1180
SELECT NULLIF ( - 90, COUNT ( * ) ) AS col0
----
-90

query I rowsort
SELECT ALL 18 * - - 28 + 70 + - 64 * - + 90 * - 49
----
-281666

query I rowsort
SELECT + - 15 * + 8 * + 2 AS col1
----
-240

onlyif mysql # aggregate syntax: 
query I rowsort label-1183
SELECT MAX( - ( - 6 ) ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-1183
SELECT MAX ( - ( - 6 ) ) AS col2
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1184
SELECT - 39 * 18 + + CASE NULLIF ( - - 71, + - 9 + + ( + COUNT( * ) ) ) WHEN + 31 * - - 79 - - COUNT( * ) THEN NULL ELSE - + 80 END - - CAST( - COUNT( * ) AS SIGNED ) + + MAX( DISTINCT - - CAST( NULL AS SIGNED ) ) * + 30 * - - NULLIF ( - 16, 86 ) * + 25 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1184
SELECT - 39 * 18 + + CASE NULLIF ( - - 71, + - 9 + + ( + COUNT ( * ) ) ) WHEN + 31 * - - 79 - - COUNT ( * ) THEN NULL ELSE - + 80 END - - CAST ( - COUNT ( * ) AS INTEGER ) + + MAX ( DISTINCT - - CAST ( NULL AS INTEGER ) ) * + 30 * - - NULLIF ( - 16, 86 ) * + 25 AS col1
----
NULL

query I rowsort
SELECT DISTINCT 89 * + 35 + - + 78
----
3037

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1186
SELECT ALL 26 * CASE - 82 WHEN - 30 THEN + 10 WHEN + 89 THEN - COUNT( * ) * - 23 ELSE NULL END / - 20 + - + 99 + + - 56 * + - 25 * NULLIF ( 51, 32 / - COALESCE ( AVG ( - - 78 ), + COUNT( * ), - - COALESCE ( 92, + ( + 41 ) * + 18 + + 76, - 33, COUNT( * ) + + 94 / CAST( NULL AS SIGNED ) ) / ( - MAX( ALL - 23 ) ) * - ( + 56 ) * 62 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1186
SELECT ALL 26 * CASE - 82 WHEN - 30 THEN + 10 WHEN + 89 THEN - COUNT ( * ) * - 23 ELSE NULL END / - 20 + - + 99 + + - 56 * + - 25 * NULLIF ( 51, 32 / - COALESCE ( AVG ( - - 78 ), + COUNT ( * ), - - COALESCE ( 92, + ( + 41 ) * + 18 + + 76, - 33, COUNT ( * ) + + 94 / CAST ( NULL AS INTEGER ) ) / ( - MAX ( ALL - 23 ) ) * - ( + 56 ) * 62 ) )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1187
SELECT DISTINCT - COUNT ( * ) * 2 - + ( - 8 ) AS col0
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-1188
SELECT ALL 7 * - - COUNT( * ) + 50 AS col1, COUNT( DISTINCT - 33 ) * - 25
----
57
-25

skipif mysql # not compatible
query II rowsort label-1188
SELECT ALL 7 * - - COUNT ( * ) + 50 AS col1, COUNT ( DISTINCT - 33 ) * - 25
----
57
-25

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

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

query I rowsort
SELECT + + 83 + 52 AS col1
----
135

query I rowsort
SELECT DISTINCT - CASE - 65 WHEN + 31 THEN - ( - + ( + - 3 ) ) + + - 33 ELSE NULL END - - - 91
----
NULL

query II rowsort
SELECT + ( - + 25 ), - 11 AS col0
----
-25
-11

query I rowsort
SELECT + 66 + - 88
----
-22

query I rowsort
SELECT DISTINCT 36 - - 73 AS col2
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-1195
SELECT + MIN( + 20 ) + + + COALESCE ( - + 24, + - 43, + 80 ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-1195
SELECT + MIN ( + 20 ) + + + COALESCE ( - + 24, + - 43, + 80 ) AS col2
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-1196
SELECT ALL - 61 DIV - 61 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1196
SELECT ALL - 61 / - 61 AS col0
----
1

query I rowsort
SELECT - 86 * + 21 AS col2
----
-1806

onlyif mysql # aggregate syntax: 
query II rowsort label-1198
SELECT ALL COUNT( * ) col1, COALESCE ( + + ( - ( + - 42 ) ), - 38 + - ( - - 65 ) )
----
1
42

skipif mysql # not compatible
query II rowsort label-1198
SELECT ALL COUNT ( * ) col1, COALESCE ( + + ( - ( + - 42 ) ), - 38 + - ( - - 65 ) )
----
1
42

query I rowsort
SELECT + 98 * + + 44 * - 78
----
-336336

query I rowsort
SELECT - 4 + 82 AS col0
----
78

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1202
SELECT DISTINCT - 70 DIV 57 * 34 AS col2, + 48
----
-34
48

skipif mysql # not compatible
query II rowsort label-1202
SELECT DISTINCT - 70 / 57 * 34 AS col2, + 48
----
-34
48

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1204
SELECT 28 DIV - COUNT( * ) AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-1204
SELECT 28 / - COUNT ( * ) AS col2
----
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1205
SELECT 63 + - COUNT( ALL + - 97 ) * - COALESCE ( + COALESCE ( 39, 29 DIV + 82 ), 30 ) * - 42 * - 23
----
37737

skipif mysql # not compatible
query I rowsort label-1205
SELECT 63 + - COUNT ( ALL + - 97 ) * - COALESCE ( + COALESCE ( 39, 29 / + 82 ), 30 ) * - 42 * - 23
----
37737

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

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

query I rowsort
SELECT 73 * + ( + 83 )
----
6059

query III rowsort
SELECT DISTINCT 91 + + 36 * + + 23 AS col0, CASE - + 8 WHEN - 89 * + - 77 THEN - - 89 * - NULLIF ( - + ( + 65 ), + 8 - + 7 ) END + - ( 93 ) + + 45, CASE 67 WHEN - ( - 10 ) + - - 54 THEN + + 41 END + AVG ( ALL + 37 ) AS col2
----
919
NULL
NULL

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

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

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

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

query I rowsort
SELECT DISTINCT + 80 * - 88
----
-7040

query II rowsort
SELECT ALL - 26 + - ( 28 ) AS col2, 9 AS col2
----
-54
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1213
SELECT MIN( - - 60 ) * + ( - - 63 ) - - 6 + COUNT( * ) + 9 AS col0
----
3796

skipif mysql # not compatible
query I rowsort label-1213
SELECT MIN ( - - 60 ) * + ( - - 63 ) - - 6 + COUNT ( * ) + 9 AS col0
----
3796

query I rowsort
SELECT 53 + + 70 - - - ( - + 35 ) * - 9
----
-192

query I rowsort
SELECT ALL + 54 + - + 35 col2
----
19

onlyif mysql # aggregate syntax: 
query II rowsort label-1216
SELECT 51, 71 * - - SUM( ALL - 80 ) + - COUNT( * ) col2
----
51
-5681

skipif mysql # not compatible
query II rowsort label-1216
SELECT 51, 71 * - - SUM ( ALL - 80 ) + - COUNT ( * ) col2
----
51
-5681

query II rowsort
SELECT ALL - - 95 col0, 92 AS col1
----
95
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1218
SELECT ALL + + 87 - - COUNT( * ) + - 59 + - CAST( - + 38 AS SIGNED ) * + + 54 AS col1, 62 * + + 52
----
2081
3224

skipif mysql # not compatible
query II rowsort label-1218
SELECT ALL + + 87 - - COUNT ( * ) + - 59 + - CAST ( - + 38 AS INTEGER ) * + + 54 AS col1, 62 * + + 52
----
2081
3224

onlyif mysql # aggregate syntax: 
query I rowsort label-1219
SELECT ALL CASE - 7 WHEN 52 THEN - 93 * - 43 * - + 88 ELSE - 77 * - - 62 + - 56 - - 51 END - 21 - + 19 * + 97 * + - ( + + COUNT( * ) ) AS col1
----
-2957

skipif mysql # not compatible
query I rowsort label-1219
SELECT ALL CASE - 7 WHEN 52 THEN - 93 * - 43 * - + 88 ELSE - 77 * - - 62 + - 56 - - 51 END - 21 - + 19 * + 97 * + - ( + + COUNT ( * ) ) AS col1
----
-2957

query I rowsort
SELECT + 61 * ( - 18 ) + + 47 * + 11
----
-581

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1223
SELECT COALESCE ( - 50, 27 + - COUNT( * ), - 12 + + 21 ) - - - 40 col1
----
-90

skipif mysql # not compatible
query I rowsort label-1223
SELECT COALESCE ( - 50, 27 + - COUNT ( * ), - 12 + + 21 ) - - - 40 col1
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-1224
SELECT + 28 * COUNT( * ) * + + 30 AS col2
----
840

skipif mysql # not compatible
query I rowsort label-1224
SELECT + 28 * COUNT ( * ) * + + 30 AS col2
----
840

query III rowsort
SELECT 46 * - NULLIF ( + 69, + + 85 + - ( - + 66 ) ) * + 44 + - - 56 AS col0, 18 AS col2, - 2 AS col1
----
-139600
18
-2

query I rowsort
SELECT - 41 * - + 15 AS col2
----
615

query II rowsort
SELECT - 50 AS col2, 37 + - 68 AS col0
----
-50
-31

query I rowsort
SELECT DISTINCT + - 69 * - + 94 AS col0
----
6486

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1229
SELECT - 68 + 79 - CAST( COUNT( 65 ) AS SIGNED ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-1229
SELECT - 68 + 79 - CAST ( COUNT ( 65 ) AS INTEGER ) AS col2
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1230
SELECT CAST( + MIN( 24 ) AS SIGNED ) AS col2
----
24

skipif mysql # not compatible
query I rowsort label-1230
SELECT CAST ( + MIN ( 24 ) AS INTEGER ) AS col2
----
24

query I rowsort
SELECT 18 + - 82 * - 45
----
3708

query I rowsort
SELECT ALL 86 * - + 87
----
-7482

onlyif mysql # aggregate syntax: 
query I rowsort label-1233
SELECT COUNT( * ) - 96 + + - 92 * + 91 AS col2
----
-8467

skipif mysql # not compatible
query I rowsort label-1233
SELECT COUNT ( * ) - 96 + + - 92 * + 91 AS col2
----
-8467

query I rowsort
SELECT 73 * 31
----
2263

query I rowsort
SELECT 44 + 49 AS col1
----
93

query I rowsort
SELECT ALL + 85 + + 11 AS col2
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1237
SELECT ( - CASE + 87 WHEN + CAST( + 54 AS SIGNED ) + - + MAX( DISTINCT + 87 ) THEN 11 WHEN - 26 * MAX( DISTINCT - 43 ) THEN NULL WHEN + 64 * - - CAST( - - 86 AS DECIMAL ) - 25 - - 35 + - ( 23 ) THEN NULL END ) / COUNT( * ) + + 0 + 63 + - 9 * + + 76 + + COUNT( * ) * + 85 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1237
SELECT ( - CASE + 87 WHEN + CAST ( + 54 AS INTEGER ) + - + MAX ( DISTINCT + 87 ) THEN 11 WHEN - 26 * MAX ( DISTINCT - 43 ) THEN NULL WHEN + 64 * - - CAST ( - - 86 AS REAL ) - 25 - - 35 + - ( 23 ) THEN NULL END ) / COUNT ( * ) + + 0 + 63 + - 9 * + + 76 + + COUNT ( * ) * + 85 col0
----
NULL

query I rowsort
SELECT 69 * 59 * + 17
----
69207

onlyif mysql # aggregate syntax: 
query I rowsort label-1239
SELECT SUM( DISTINCT - - 72 ) col0
----
72

skipif mysql # not compatible
query I rowsort label-1239
SELECT SUM ( DISTINCT - - 72 ) col0
----
72

onlyif mysql # DIV for integer division: 
query II rowsort label-1240
SELECT ALL 79 + - + ( - + 2 ) DIV 5, + 20 + - + 20 * - - 16 AS col0
----
79
-300

skipif mysql # not compatible
query II rowsort label-1240
SELECT ALL 79 + - + ( - + 2 ) / 5, + 20 + - + 20 * - - 16 AS col0
----
79
-300

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1241
SELECT + 96 DIV COUNT( * ) - + ( 7 )
----
89

skipif mysql # not compatible
query I rowsort label-1241
SELECT + 96 / COUNT ( * ) - + ( 7 )
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1242
SELECT COUNT( ALL + 73 ) * - + MAX( + - 33 ) + COALESCE ( + + COALESCE ( - + 1, + 26 ), ( + CAST( NULL AS SIGNED ) ) + + 81 )
----
32

skipif mysql # not compatible
query I rowsort label-1242
SELECT COUNT ( ALL + 73 ) * - + MAX ( + - 33 ) + COALESCE ( + + COALESCE ( - + 1, + 26 ), ( + CAST ( NULL AS INTEGER ) ) + + 81 )
----
32

query I rowsort
SELECT ALL 72 + - - 56 AS col0
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-1244
SELECT + SUM( + - 91 )
----
-91

skipif mysql # not compatible
query I rowsort label-1244
SELECT + SUM ( + - 91 )
----
-91

query I rowsort
SELECT DISTINCT - COALESCE ( - - 36, + 81, + 12 ) AS col0
----
-36

query I rowsort
SELECT ALL - 95 * - 20
----
1900

onlyif mysql # DIV for integer division: 
query I rowsort label-1247
SELECT ALL 36 DIV - 76 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1247
SELECT ALL 36 / - 76 AS col1
----
0

query I rowsort
SELECT ALL - - 39 * - - 3 + + + 61 + 52
----
230

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1249
SELECT + CAST( + NULLIF ( - NULLIF ( COUNT( DISTINCT 79 ), - + 6 / + 2 - COALESCE ( - - 28, 23 ) * + COUNT( * ) ), - COUNT( * ) ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1249
SELECT + CAST ( + NULLIF ( - NULLIF ( COUNT ( DISTINCT 79 ), - + 6 / + 2 - COALESCE ( - - 28, 23 ) * + COUNT ( * ) ), - COUNT ( * ) ) AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1250
SELECT - 73 + + COUNT( * ) + + COUNT( * ) + CASE + ( + + 86 ) WHEN - - MAX( DISTINCT + 16 ) + - 73 + + MAX( DISTINCT + 90 ) + 9 THEN NULL WHEN + 22 THEN NULL WHEN 84 THEN + 30 - - 95 + - - 80 * + NULLIF ( + 70, + + 55 ) ELSE NULL END * + 30
----
NULL

skipif mysql # not compatible
query I rowsort label-1250
SELECT - 73 + + COUNT ( * ) + + COUNT ( * ) + CASE + ( + + 86 ) WHEN - - MAX ( DISTINCT + 16 ) + - 73 + + MAX ( DISTINCT + 90 ) + 9 THEN NULL WHEN + 22 THEN NULL WHEN 84 THEN + 30 - - 95 + - - 80 * + NULLIF ( + 70, + + 55 ) ELSE NULL END * + 30
----
NULL

query II rowsort
SELECT ( 45 ) AS col2, ( - 96 ) AS col1
----
45
-96

query I rowsort
SELECT 30 + + 48
----
78

query I rowsort
SELECT - 26 * + - 0 + 86
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-1254
SELECT DISTINCT NULLIF ( ( - 11 ), + + 9 + + 45 ) * - COUNT( * ) * + 48
----
528

skipif mysql # not compatible
query I rowsort label-1254
SELECT DISTINCT NULLIF ( ( - 11 ), + + 9 + + 45 ) * - COUNT ( * ) * + 48
----
528

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1255
SELECT DISTINCT - 92 + - + 4 AS col2, - 27 / CAST( NULL AS SIGNED ) * + + COUNT( DISTINCT + - 13 ) * - 82
----
-96
NULL

skipif mysql # not compatible
query II rowsort label-1255
SELECT DISTINCT - 92 + - + 4 AS col2, - 27 / CAST ( NULL AS INTEGER ) * + + COUNT ( DISTINCT + - 13 ) * - 82
----
-96
NULL

query I rowsort
SELECT - - 87 - - + 12 AS col0
----
99

onlyif mysql # aggregate syntax: 
query II rowsort label-1257
SELECT ALL CASE + MAX( DISTINCT 90 ) WHEN + 40 THEN + 18 ELSE NULL END AS col1, 98 * - 72
----
NULL
-7056

skipif mysql # not compatible
query II rowsort label-1257
SELECT ALL CASE + MAX ( DISTINCT 90 ) WHEN + 40 THEN + 18 ELSE NULL END AS col1, 98 * - 72
----
NULL
-7056

query I rowsort
SELECT DISTINCT + 43 + - 22 + + - 19
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1259
SELECT - 68 + ( - CAST( - 71 AS SIGNED ) ) + + 18 * + 77 AS col2
----
1389

skipif mysql # not compatible
query I rowsort label-1259
SELECT - 68 + ( - CAST ( - 71 AS INTEGER ) ) + + 18 * + 77 AS col2
----
1389

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1260
SELECT ALL + COUNT( DISTINCT - + 42 ) + + - 95 * - - CAST( ( + 2 ) AS SIGNED ) * 38 - - COUNT( * ) * + + 50 + - MAX( ALL - 92 ) * + - CAST( NULL AS SIGNED ) * + 80 + - ( + - 0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1260
SELECT ALL + COUNT ( DISTINCT - + 42 ) + + - 95 * - - CAST ( ( + 2 ) AS INTEGER ) * 38 - - COUNT ( * ) * + + 50 + - MAX ( ALL - 92 ) * + - CAST ( NULL AS INTEGER ) * + 80 + - ( + - 0 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1261
SELECT DISTINCT + ( - 24 ) + MIN( DISTINCT - 36 ) col2
----
-60

skipif mysql # not compatible
query I rowsort label-1261
SELECT DISTINCT + ( - 24 ) + MIN ( DISTINCT - 36 ) col2
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-1262
SELECT ALL 32 + - COALESCE ( COUNT( ALL - - 98 ), + ( 54 ) + + COUNT( ALL + 17 ) * 68 ) * + 47 AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-1262
SELECT ALL 32 + - COALESCE ( COUNT ( ALL - - 98 ), + ( 54 ) + + COUNT ( ALL + 17 ) * 68 ) * + 47 AS col0
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-1263
SELECT ALL 91 DIV + 67
----
1

skipif mysql # not compatible
query I rowsort label-1263
SELECT ALL 91 / + 67
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1264
SELECT 60 col1, 15 + + 26 + 71 + - - 74 * + 99 + - COUNT( * ) AS col2
----
60
7437

skipif mysql # not compatible
query II rowsort label-1264
SELECT 60 col1, 15 + + 26 + 71 + - - 74 * + 99 + - COUNT ( * ) AS col2
----
60
7437

onlyif mysql # DIV for integer division: 
query I rowsort label-1265
SELECT ALL + 26 + + 29 - + + 57 DIV - 98 * + 77
----
55

skipif mysql # not compatible
query I rowsort label-1265
SELECT ALL + 26 + + 29 - + + 57 / - 98 * + 77
----
55

query I rowsort
SELECT - 85 * + 73 AS col1
----
-6205

query I rowsort
SELECT + 91 + - - 84 AS col2
----
175

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1268
SELECT + ( 59 ) + 33 + 23 + - 57 * - + 10 - - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1268
SELECT + ( 59 ) + 33 + 23 + - 57 * - + 10 - - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ( COALESCE ( 35, 43 ) )
----
35

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

skipif mysql # not compatible
query I rowsort label-1270
SELECT + 61 * + + CAST ( NULL AS INTEGER ) * - - 8
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-1271
SELECT + CASE 95 WHEN - 21 * + - 76 THEN - ( + 92 ) * + + 20 WHEN CAST( 74 AS DECIMAL ) THEN NULL ELSE COUNT( * ) + + - 77 - + COUNT( * ) + + COUNT( * ) + - 54 + 17 + - 0 - + 18 DIV - 39 + + 57 * - 8 END col0
----
-569

skipif mysql # not compatible
query I rowsort label-1271
SELECT + CASE 95 WHEN - 21 * + - 76 THEN - ( + 92 ) * + + 20 WHEN CAST ( 74 AS REAL ) THEN NULL ELSE COUNT ( * ) + + - 77 - + COUNT ( * ) + + COUNT ( * ) + - 54 + 17 + - 0 - + 18 / - 39 + + 57 * - 8 END col0
----
-569

onlyif mysql # aggregate syntax: 
query I rowsort label-1272
SELECT ALL MIN( DISTINCT - + 64 ) * - COUNT( * ) - - 29 + 76 * + 99 - + 28
----
7589

skipif mysql # not compatible
query I rowsort label-1272
SELECT ALL MIN ( DISTINCT - + 64 ) * - COUNT ( * ) - - 29 + 76 * + 99 - + 28
----
7589

query I rowsort
SELECT CASE - 55 WHEN - 18 THEN COALESCE ( - 37, + - 22 ) * - 4 * + + ( + 63 ) WHEN 1 THEN + 61 + - 54 * - + 74 END
----
NULL

query I rowsort
SELECT DISTINCT 30 * - 92 * - 80 AS col1
----
220800

onlyif mysql # aggregate syntax: 
query I rowsort label-1275
SELECT ALL + + SUM( + 5 ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-1275
SELECT ALL + + SUM ( + 5 ) AS col0
----
5

query I rowsort
SELECT + 87 + - - 57 AS col1
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-1277
SELECT + 1 * COUNT( * ) + - 38 * - + 16 * - 18 AS col0
----
-10943

skipif mysql # not compatible
query I rowsort label-1277
SELECT + 1 * COUNT ( * ) + - 38 * - + 16 * - 18 AS col0
----
-10943

onlyif mysql # DIV for integer division: 
query I rowsort label-1278
SELECT - + 21 DIV 59
----
0

skipif mysql # not compatible
query I rowsort label-1278
SELECT - + 21 / 59
----
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1279
SELECT ALL + CAST( - CASE - - 78 WHEN + CAST( NULL AS DECIMAL ) THEN + 98 + - - 67 WHEN + - 29 THEN + + CAST( + 26 AS SIGNED ) * 51 - 48 * - - 67 - + 54 ELSE - 10 END AS SIGNED ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-1279
SELECT ALL + CAST ( - CASE - - 78 WHEN + CAST ( NULL AS REAL ) THEN + 98 + - - 67 WHEN + - 29 THEN + + CAST ( + 26 AS INTEGER ) * 51 - 48 * - - 67 - + 54 ELSE - 10 END AS INTEGER ) AS col0
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-1280
SELECT - 46 DIV - 59 * 52
----
0

skipif mysql # not compatible
query I rowsort label-1280
SELECT - 46 / - 59 * 52
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1281
SELECT ALL - 66 * - + SUM( DISTINCT + - 26 ) + - - 53 * - 61 col2
----
-4949

skipif mysql # not compatible
query I rowsort label-1281
SELECT ALL - 66 * - + SUM ( DISTINCT + - 26 ) + - - 53 * - 61 col2
----
-4949

query I rowsort
SELECT + 99 * - - 84
----
8316

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1283
SELECT - - 66 * 39 + + ( - CASE + - 36 WHEN + ( 74 ) THEN NULL ELSE COUNT( * ) + - COALESCE ( + ( - - COUNT( * ) ), - 5, 21 + - 35 + - CAST( + 5 AS SIGNED ) * - + 31 ) END ) AS col1
----
2574

skipif mysql # not compatible
query I rowsort label-1283
SELECT - - 66 * 39 + + ( - CASE + - 36 WHEN + ( 74 ) THEN NULL ELSE COUNT ( * ) + - COALESCE ( + ( - - COUNT ( * ) ), - 5, 21 + - 35 + - CAST ( + 5 AS INTEGER ) * - + 31 ) END ) AS col1
----
2574

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1286
SELECT ALL - - 27 + - 8 - - - 13 * + COUNT( * )
----
6

skipif mysql # not compatible
query I rowsort label-1286
SELECT ALL - - 27 + - 8 - - - 13 * + COUNT ( * )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1287
SELECT - 4 + - + 9 + - + 0 + - + 34 + - 4 * COUNT( * ) - - - 31 * - 3 AS col0
----
42

skipif mysql # not compatible
query I rowsort label-1287
SELECT - 4 + - + 9 + - + 0 + - + 34 + - 4 * COUNT ( * ) - - - 31 * - 3 AS col0
----
42

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1289
SELECT ALL + 57 + ( + CASE - - 4 WHEN 87 * 42 THEN NULL WHEN - - 78 * 93 * + 10 + + ( 61 ) THEN NULL ELSE + - COUNT( * ) + + - 45 END )
----
11

skipif mysql # not compatible
query I rowsort label-1289
SELECT ALL + 57 + ( + CASE - - 4 WHEN 87 * 42 THEN NULL WHEN - - 78 * 93 * + 10 + + ( 61 ) THEN NULL ELSE + - COUNT ( * ) + + - 45 END )
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-1290
SELECT ALL COALESCE ( + 15, 51 + + COUNT( + 87 ) * - 84 ) AS col0, 69 AS col0
----
15
69

skipif mysql # not compatible
query II rowsort label-1290
SELECT ALL COALESCE ( + 15, 51 + + COUNT ( + 87 ) * - 84 ) AS col0, 69 AS col0
----
15
69

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

query I rowsort
SELECT - CASE 41 WHEN - 90 THEN + 58 END / + - 74 * + 24
----
NULL

query I rowsort
SELECT - COALESCE ( + 73, - - 90 + + ( + ( - 58 ) ) ) * 90 AS col2
----
-6570

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1294
SELECT ALL CAST( + 58 AS SIGNED ), + 29 AS col1
----
58
29

skipif mysql # not compatible
query II rowsort label-1294
SELECT ALL CAST ( + 58 AS INTEGER ), + 29 AS col1
----
58
29

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1296
SELECT - 31 + + + 35 + 61 DIV - 71
----
4

skipif mysql # not compatible
query I rowsort label-1296
SELECT - 31 + + + 35 + 61 / - 71
----
4

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

skipif mysql # not compatible
query I rowsort label-1297
SELECT - CAST ( NULL AS INTEGER ) + + - 18 + + 79 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1298
SELECT ALL CAST( + NULLIF ( - CASE 99 WHEN + - 53 * - 64 THEN NULL ELSE + 10 END, 32 ) AS SIGNED )
----
-10

skipif mysql # not compatible
query I rowsort label-1298
SELECT ALL CAST ( + NULLIF ( - CASE 99 WHEN + - 53 * - 64 THEN NULL ELSE + 10 END, 32 ) AS INTEGER )
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1299
SELECT CAST( + 2 AS SIGNED ) DIV + + 96 + - 65 * + - ( COUNT( 70 ) ) - + + 56 AS col0
----
9

skipif mysql # not compatible
query I rowsort label-1299
SELECT CAST ( + 2 AS INTEGER ) / + + 96 + - 65 * + - ( COUNT ( 70 ) ) - + + 56 AS col0
----
9

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1301
SELECT DISTINCT + 77 DIV - - 96 col0
----
0

skipif mysql # not compatible
query I rowsort label-1301
SELECT DISTINCT + 77 / - - 96 col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1302
SELECT + 84 * - NULLIF ( 52, + 16 ) * + NULLIF ( + 44, MAX( - 90 ) ) * 46 + + 99 DIV + COUNT( * ) AS col0
----
-8840733

skipif mysql # not compatible
query I rowsort label-1302
SELECT + 84 * - NULLIF ( 52, + 16 ) * + NULLIF ( + 44, MAX ( - 90 ) ) * 46 + + 99 / + COUNT ( * ) AS col0
----
-8840733

query I rowsort
SELECT + + 16 + + 94 * 59
----
5562

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1304
SELECT + - 41 + + + 43 + 10 DIV - MIN( + 12 ) + 79 - + - 73 AS col2
----
154

skipif mysql # not compatible
query I rowsort label-1304
SELECT + - 41 + + + 43 + 10 / - MIN ( + 12 ) + 79 - + - 73 AS col2
----
154

query II rowsort
SELECT - + 30 * + - 91 AS col0, 48 AS col0
----
2730
48

query I rowsort
SELECT + + 25 * - - 76
----
1900

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1307
SELECT DISTINCT CAST( NULL AS SIGNED ) * MAX( - 55 ) * - 32 AS col2, 2 + + - COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-1307
SELECT DISTINCT CAST ( NULL AS INTEGER ) * MAX ( - 55 ) * - 32 AS col2, 2 + + - COUNT ( * )
----
NULL
1

query I rowsort
SELECT + + 81 + + + ( - 20 ) * - 14
----
361

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1310
SELECT ALL - - 32 DIV - - COUNT( * ) + ( - MIN( ALL - 61 ) ) AS col0
----
93

skipif mysql # not compatible
query I rowsort label-1310
SELECT ALL - - 32 / - - COUNT ( * ) + ( - MIN ( ALL - 61 ) ) AS col0
----
93

query I rowsort
SELECT DISTINCT + COALESCE ( 53, + 80 ) AS col1
----
53

query I rowsort
SELECT ALL 4 + - - 45 col2
----
49

query II rowsort
SELECT + - ( - 36 ) AS col1, 12 AS col0
----
36
12

query I rowsort
SELECT + 71 + 78
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-1315
SELECT + NULLIF ( + SUM( 45 ), + MIN( ALL + 25 ) )
----
45

skipif mysql # not compatible
query I rowsort label-1315
SELECT + NULLIF ( + SUM ( 45 ), + MIN ( ALL + 25 ) )
----
45

query II rowsort
SELECT ALL + 26 - + 77 AS col2, 41 * - 3 AS col0
----
-51
-123

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1317
SELECT DISTINCT 21 * + COUNT( * ) * - - CASE - 29 WHEN - + CASE - 96 WHEN + 56 - + + 89 * + 1 - + COUNT( * ) THEN + 16 / MAX( DISTINCT 18 ) END * + COUNT( * ) * 9 THEN NULL ELSE - ( - - 44 ) * - - MIN( COALESCE ( + 12, 49 ) ) * - 32 - - + 85 + 29 * - - CAST( NULL AS SIGNED ) * - 60 * + + 78 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1317
SELECT DISTINCT 21 * + COUNT ( * ) * - - CASE - 29 WHEN - + CASE - 96 WHEN + 56 - + + 89 * + 1 - + COUNT ( * ) THEN + 16 / MAX ( DISTINCT 18 ) END * + COUNT ( * ) * 9 THEN NULL ELSE - ( - - 44 ) * - - MIN ( COALESCE ( + 12, 49 ) ) * - 32 - - + 85 + 29 * - - CAST ( NULL AS INTEGER ) * - 60 * + + 78 END AS col2
----
NULL

query I rowsort
SELECT 79 + + - 82 + + 62 + + 54 AS col0
----
113

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1319
SELECT 82 * + ( 73 ) * 24 + 3 + - - 86 + - 58 - CAST( NULL AS SIGNED ) AS col0, ( + 57 ) * - - 17 * 18
----
NULL
17442

skipif mysql # not compatible
query II rowsort label-1319
SELECT 82 * + ( 73 ) * 24 + 3 + - - 86 + - 58 - CAST ( NULL AS INTEGER ) AS col0, ( + 57 ) * - - 17 * 18
----
NULL
17442

query II rowsort
SELECT ALL + 35 * - + 36 col1, 17 + - 18 * + - 85 col0
----
-1260
1547

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1321
SELECT 88 + + MIN( ALL 23 ) * - CAST( NULL AS SIGNED ) - - 7
----
NULL

skipif mysql # not compatible
query I rowsort label-1321
SELECT 88 + + MIN ( ALL 23 ) * - CAST ( NULL AS INTEGER ) - - 7
----
NULL

query I rowsort
SELECT ALL + 8 - + 13
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-1323
SELECT 72 * - NULLIF ( - 61, - - 54 * + - ( - ( + COUNT( * ) ) ) ) AS col1
----
4392

skipif mysql # not compatible
query I rowsort label-1323
SELECT 72 * - NULLIF ( - 61, - - 54 * + - ( - ( + COUNT ( * ) ) ) ) AS col1
----
4392

onlyif mysql # DIV for integer division: 
query II rowsort label-1324
SELECT ALL 20 * - 9 AS col1, + 0 DIV 40 AS col2
----
-180
0

skipif mysql # not compatible
query II rowsort label-1324
SELECT ALL 20 * - 9 AS col1, + 0 / 40 AS col2
----
-180
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1326
SELECT ALL + ( - 0 ) * - + 75 * + + COALESCE ( 23, - - CAST( - + 22 AS SIGNED ), - ( 93 ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1326
SELECT ALL + ( - 0 ) * - + 75 * + + COALESCE ( 23, - - CAST ( - + 22 AS INTEGER ), - ( 93 ) ) AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1327
SELECT DISTINCT + 91 DIV - + 50 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1327
SELECT DISTINCT + 91 / - + 50 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1328
SELECT ALL + 73 * + COALESCE ( 83, ( 45 ) * + - ( + + COUNT( * ) ) - 53 ) * ( - + ( + 97 ) )
----
-587723

skipif mysql # not compatible
query I rowsort label-1328
SELECT ALL + 73 * + COALESCE ( 83, ( 45 ) * + - ( + + COUNT ( * ) ) - 53 ) * ( - + ( + 97 ) )
----
-587723

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1329
SELECT CAST( + COALESCE ( - 52, + CAST( 85 AS SIGNED ) ) AS SIGNED ) * NULLIF ( 79, - 3 / - COALESCE ( + MAX( - 38 ), - - 81 + - 51 - COALESCE ( - 49, + 33, + 98 ) * - COUNT( * ), - - 11 ) ) * 23
----
-94484

skipif mysql # not compatible
query I rowsort label-1329
SELECT CAST ( + COALESCE ( - 52, + CAST ( 85 AS INTEGER ) ) AS INTEGER ) * NULLIF ( 79, - 3 / - COALESCE ( + MAX ( - 38 ), - - 81 + - 51 - COALESCE ( - 49, + 33, + 98 ) * - COUNT ( * ), - - 11 ) ) * 23
----
-94484

onlyif mysql # DIV for integer division: 
query I rowsort label-1330
SELECT + COALESCE ( - + 66, - 50, + 2 DIV + 60 * + 7 * + 10 )
----
-66

skipif mysql # not compatible
query I rowsort label-1330
SELECT + COALESCE ( - + 66, - 50, + 2 / + 60 * + 7 * + 10 )
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-1331
SELECT DISTINCT - CASE + + 91 WHEN + NULLIF ( + 91, - 25 ) - - 68 THEN + 39 * + - COUNT( DISTINCT + 8 ) + 43 + 98 * 3 / + 99 * 12 * + 98 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1331
SELECT DISTINCT - CASE + + 91 WHEN + NULLIF ( + 91, - 25 ) - - 68 THEN + 39 * + - COUNT ( DISTINCT + 8 ) + 43 + 98 * 3 / + 99 * 12 * + 98 END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1332
SELECT ALL COUNT( * ) + 12 col2
----
13

skipif mysql # not compatible
query I rowsort label-1332
SELECT ALL COUNT ( * ) + 12 col2
----
13

onlyif mysql # DIV for integer division: 
query II rowsort label-1333
SELECT - 19 DIV + 88 * 54 + + 44 + 59, - 92 * + - 70 AS col1
----
103
6440

skipif mysql # not compatible
query II rowsort label-1333
SELECT - 19 / + 88 * 54 + + 44 + 59, - 92 * + - 70 AS col1
----
103
6440

onlyif mysql # aggregate syntax: 
query I rowsort label-1334
SELECT ALL - COUNT( * ) + 62 + + ( + + 91 ) * - COUNT( * ) * - 91
----
8342

skipif mysql # not compatible
query I rowsort label-1334
SELECT ALL - COUNT ( * ) + 62 + + ( + + 91 ) * - COUNT ( * ) * - 91
----
8342

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1335
SELECT ALL - - COUNT( * ) DIV - NULLIF ( + - 11, MIN( + + NULLIF ( - 53, - + 1 DIV + 33 * + 88 ) ) ) + + - 65 AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-1335
SELECT ALL - - COUNT ( * ) / - NULLIF ( + - 11, MIN ( + + NULLIF ( - 53, - + 1 / + 33 * + 88 ) ) ) + + - 65 AS col1
----
-65

query I rowsort
SELECT ALL + + 85 + + 83 AS col2
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-1337
SELECT + 85 + - CASE - COUNT( * ) WHEN + ( + 25 ) * - 0 + - 69 + + 3 THEN 78 / + 88 END + 10 + + - 59 + + 8 * + 15
----
NULL

skipif mysql # not compatible
query I rowsort label-1337
SELECT + 85 + - CASE - COUNT ( * ) WHEN + ( + 25 ) * - 0 + - 69 + + 3 THEN 78 / + 88 END + 10 + + - 59 + + 8 * + 15
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1338
SELECT ALL 38 + ( - + MIN( DISTINCT - 86 ) )
----
124

skipif mysql # not compatible
query I rowsort label-1338
SELECT ALL 38 + ( - + MIN ( DISTINCT - 86 ) )
----
124

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1339
SELECT DISTINCT + + CAST( NULL AS SIGNED ) + + 19 AS col0, 25 + + 36 - + COUNT( * )
----
NULL
60

skipif mysql # not compatible
query II rowsort label-1339
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) + + 19 AS col0, 25 + + 36 - + COUNT ( * )
----
NULL
60

onlyif mysql # aggregate syntax: 
query I rowsort label-1340
SELECT - 35 + - MAX( ALL - 47 ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-1340
SELECT - 35 + - MAX ( ALL - 47 ) AS col2
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1341
SELECT ALL + 53 - + CAST( + NULLIF ( - - COUNT( * ), - 95 + 88 + + 5 * + NULLIF ( + 4, + 66 - + - COUNT( * ) - 91 ) ) AS SIGNED ) col2
----
52

skipif mysql # not compatible
query I rowsort label-1341
SELECT ALL + 53 - + CAST ( + NULLIF ( - - COUNT ( * ), - 95 + 88 + + 5 * + NULLIF ( + 4, + 66 - + - COUNT ( * ) - 91 ) ) AS INTEGER ) col2
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1342
SELECT - 56 * - + 72 * + MAX( DISTINCT - + CAST( NULL AS SIGNED ) ) * - 26 * 34 + 42 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1342
SELECT - 56 * - + 72 * + MAX ( DISTINCT - + CAST ( NULL AS INTEGER ) ) * - 26 * 34 + 42 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1343
SELECT 82 - + + ( - COUNT( * ) ) col0
----
83

skipif mysql # not compatible
query I rowsort label-1343
SELECT 82 - + + ( - COUNT ( * ) ) col0
----
83

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1345
SELECT - COUNT( + 10 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1345
SELECT - COUNT ( + 10 ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1346
SELECT ALL 9 DIV + CAST( - 87 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-1346
SELECT ALL 9 / + CAST ( - 87 AS INTEGER )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1347
SELECT 72 DIV 42 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1347
SELECT 72 / 42 AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1348
SELECT ALL 38 DIV + - 41
----
0

skipif mysql # not compatible
query I rowsort label-1348
SELECT ALL 38 / + - 41
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1349
SELECT 97 DIV - - 30 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-1349
SELECT 97 / - - 30 AS col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1350
SELECT COUNT( * ) - - SUM( - - 21 ) + + ( 3 ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-1350
SELECT COUNT ( * ) - - SUM ( - - 21 ) + + ( 3 ) AS col0
----
25

query I rowsort
SELECT DISTINCT 8 * - - 2 AS col2
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1352
SELECT ( - - 97 ) + 89 AS col2, - 40 - 0 + - COUNT( + + 34 ) + 96 DIV - 19 AS col1
----
186
-46

skipif mysql # not compatible
query II rowsort label-1352
SELECT ( - - 97 ) + 89 AS col2, - 40 - 0 + - COUNT ( + + 34 ) + 96 / - 19 AS col1
----
186
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-1353
SELECT MIN( - NULLIF ( + 59, 26 ) ) + + - 22 AS col2
----
-81

skipif mysql # not compatible
query I rowsort label-1353
SELECT MIN ( - NULLIF ( + 59, 26 ) ) + + - 22 AS col2
----
-81

query I rowsort
SELECT 32 * 62
----
1984

query I rowsort
SELECT ALL - 70 + 19 * - 83
----
-1647

onlyif mysql # aggregate syntax: 
query II rowsort label-1356
SELECT 84 + + - 27 * - 1 * + SUM( - 24 ) + + 71 AS col2, COUNT( * )
----
-493
1

skipif mysql # not compatible
query II rowsort label-1356
SELECT 84 + + - 27 * - 1 * + SUM ( - 24 ) + + 71 AS col2, COUNT ( * )
----
-493
1

query I rowsort
SELECT ALL - 59 + + ( - 59 )
----
-118

onlyif mysql # aggregate syntax: 
query I rowsort label-1358
SELECT DISTINCT + - MIN( ALL + 71 ) AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-1358
SELECT DISTINCT + - MIN ( ALL + 71 ) AS col0
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1359
SELECT ALL + - 82 AS col1, COUNT( * ) * + 57 / - CAST( NULL AS SIGNED ) * 93 + + CAST( + - COUNT( * ) AS SIGNED ) col1
----
-82
NULL

skipif mysql # not compatible
query II rowsort label-1359
SELECT ALL + - 82 AS col1, COUNT ( * ) * + 57 / - CAST ( NULL AS INTEGER ) * 93 + + CAST ( + - COUNT ( * ) AS INTEGER ) col1
----
-82
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1361
SELECT + COALESCE ( - 37, - 59 * + COUNT( * ) * 24, - CAST( + NULLIF ( 30, - NULLIF ( - 57, 66 ) ) AS SIGNED ) - - - 81 + 50 + 62 + + 52 + ( + - 31 ) )
----
-37

skipif mysql # not compatible
query I rowsort label-1361
SELECT + COALESCE ( - 37, - 59 * + COUNT ( * ) * 24, - CAST ( + NULLIF ( 30, - NULLIF ( - 57, 66 ) ) AS INTEGER ) - - - 81 + 50 + 62 + + 52 + ( + - 31 ) )
----
-37

query I rowsort
SELECT ALL - + 28 * 74 + - - 99 + 87 * - 80 - + - 59 + + + 66
----
-8808

onlyif mysql # aggregate syntax: 
query II rowsort label-1363
SELECT ALL + - 50 AS col1, + 70 + - MIN( + - 66 )
----
-50
136

skipif mysql # not compatible
query II rowsort label-1363
SELECT ALL + - 50 AS col1, + 70 + - MIN ( + - 66 )
----
-50
136

query I rowsort
SELECT - - 71 * NULLIF ( + 85, + 36 )
----
6035

query II rowsort
SELECT - + 96 * 68 * - ( - ( + 38 ) ) * 28 AS col1, 26 col1
----
-6945792
26

onlyif mysql # aggregate syntax: 
query I rowsort label-1366
SELECT - COUNT( + COALESCE ( + 38, - 44 ) ) + + - COUNT( * ) - COUNT( * ) AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-1366
SELECT - COUNT ( + COALESCE ( + 38, - 44 ) ) + + - COUNT ( * ) - COUNT ( * ) AS col1
----
-3

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1368
SELECT DISTINCT + COALESCE ( SUM( 61 ), - - NULLIF ( 89, - + 31 * + - COUNT( * ) DIV - 18 ) * 27, + - 22 DIV + - CAST( 28 AS SIGNED ) + + 61 ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-1368
SELECT DISTINCT + COALESCE ( SUM ( 61 ), - - NULLIF ( 89, - + 31 * + - COUNT ( * ) / - 18 ) * 27, + - 22 / + - CAST ( 28 AS INTEGER ) + + 61 ) AS col1
----
61

query I rowsort
SELECT ALL 20 * + + NULLIF ( + 44, + 82 * - + 92 ) * 79 - 65
----
69455

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1370
SELECT - 38 * - + CAST( NULL AS SIGNED ) AS col0, + 18 col1
----
NULL
18

skipif mysql # not compatible
query II rowsort label-1370
SELECT - 38 * - + CAST ( NULL AS INTEGER ) AS col0, + 18 col1
----
NULL
18

query I rowsort
SELECT DISTINCT 68 * + 32 AS col0
----
2176

query I rowsort
SELECT DISTINCT - 91 * 75
----
-6825

onlyif mysql # aggregate syntax: 
query I rowsort label-1373
SELECT - 55 - 47 * + COUNT( * )
----
-102

skipif mysql # not compatible
query I rowsort label-1373
SELECT - 55 - 47 * + COUNT ( * )
----
-102

query II rowsort
SELECT - NULLIF ( - - 7, - 31 * + COALESCE ( 15, ( + - 6 ) + 28, - + 54 + ( 91 ) ) + - 36 ), 76 + - - 1 col2
----
-7
77

query I rowsort
SELECT - 72 * NULLIF ( - 10, - + 66 * - 5 * 15 )
----
720

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

query I rowsort
SELECT + 54 + 33 AS col1
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-1378
SELECT ALL CASE - + 8 WHEN + 52 - + 1 THEN NULL WHEN 69 THEN - - COUNT( * ) END + - NULLIF ( + + ( + COUNT( DISTINCT - 80 ) ), + SUM( + - 99 ) * - 75 ) + 29 * - AVG ( + 46 ) / 84 + - - 85
----
NULL

skipif mysql # not compatible
query I rowsort label-1378
SELECT ALL CASE - + 8 WHEN + 52 - + 1 THEN NULL WHEN 69 THEN - - COUNT ( * ) END + - NULLIF ( + + ( + COUNT ( DISTINCT - 80 ) ), + SUM ( + - 99 ) * - 75 ) + 29 * - AVG ( + 46 ) / 84 + - - 85
----
NULL

query I rowsort
SELECT + 31 + + 13
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-1380
SELECT DISTINCT + COUNT( * ) + - 32 col1
----
-31

skipif mysql # not compatible
query I rowsort label-1380
SELECT DISTINCT + COUNT ( * ) + - 32 col1
----
-31

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1382
SELECT ALL + 4 DIV 92 col1
----
0

skipif mysql # not compatible
query I rowsort label-1382
SELECT ALL + 4 / 92 col1
----
0

query I rowsort
SELECT ALL - 13 + - 48
----
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1384
SELECT + COUNT( * ) * ( - 77 ) DIV COUNT( * ) + - NULLIF ( + 1, - 46 - - + 66 ) * - 85 AS col0
----
8

skipif mysql # not compatible
query I rowsort label-1384
SELECT + COUNT ( * ) * ( - 77 ) / COUNT ( * ) + - NULLIF ( + 1, - 46 - - + 66 ) * - 85 AS col0
----
8

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

skipif mysql # not compatible
query I rowsort label-1385
SELECT + COUNT ( * ) / - 79 + + 32 AS col0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-1386
SELECT ALL 80 + ( + COUNT( + 22 ) )
----
81

skipif mysql # not compatible
query I rowsort label-1386
SELECT ALL 80 + ( + COUNT ( + 22 ) )
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1387
SELECT ALL CASE - CAST( NULL AS SIGNED ) WHEN 64 THEN + 27 WHEN 61 * - - 5 THEN + - 11 END - MIN( + 18 ) AS col2, - COUNT( * )
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-1387
SELECT ALL CASE - CAST ( NULL AS INTEGER ) WHEN 64 THEN + 27 WHEN 61 * - - 5 THEN + - 11 END - MIN ( + 18 ) AS col2, - COUNT ( * )
----
NULL
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1388
SELECT DISTINCT + 42 DIV 88 + - + SUM( DISTINCT + ( ( - NULLIF ( - - ( - 27 ), 3 ) ) ) ) - - + 15 * + + 32
----
453

skipif mysql # not compatible
query I rowsort label-1388
SELECT DISTINCT + 42 / 88 + - + SUM ( DISTINCT + ( ( - NULLIF ( - - ( - 27 ), 3 ) ) ) ) - - + 15 * + + 32
----
453

onlyif mysql # aggregate syntax: 
query I rowsort label-1389
SELECT + CASE + 19 WHEN - + 37 + 42 * + 32 * - ( 79 ) + + + 43 + + 39 THEN + MAX( - + 24 ) * - 59 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1389
SELECT + CASE + 19 WHEN - + 37 + 42 * + 32 * - ( 79 ) + + + 43 + + 39 THEN + MAX ( - + 24 ) * - 59 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1390
SELECT ALL 5 DIV + 35 - + MAX( ALL - + 38 ) AS col1
----
38

skipif mysql # not compatible
query I rowsort label-1390
SELECT ALL 5 / + 35 - + MAX ( ALL - + 38 ) AS col1
----
38

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

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

query I rowsort
SELECT - 26 * + 52
----
-1352

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1393
SELECT + 65 * + CAST( NULL AS SIGNED ) * 78 / - 83 + - 79 - 80
----
NULL

skipif mysql # not compatible
query I rowsort label-1393
SELECT + 65 * + CAST ( NULL AS INTEGER ) * 78 / - 83 + - 79 - 80
----
NULL

query I rowsort
SELECT + 70 + 71
----
141

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

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

query I rowsort
SELECT ALL - 76 * 6 AS col0
----
-456

onlyif mysql # aggregate syntax: 
query I rowsort label-1397
SELECT - NULLIF ( + CASE - COUNT( * ) WHEN 95 THEN 18 WHEN + 92 * COUNT( * ) + - - 73 + - 52 - - 94 / + 4 THEN NULL END, - SUM( - 76 ) ) * - ( CASE + ( - 17 ) WHEN NULLIF ( - ( - 56 ), 60 ) + - 17 THEN NULL ELSE - + 99 * - 36 * 73 END ) * - 40 + 21 + 6 * + 42 * 3 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1397
SELECT - NULLIF ( + CASE - COUNT ( * ) WHEN 95 THEN 18 WHEN + 92 * COUNT ( * ) + - - 73 + - 52 - - 94 / + 4 THEN NULL END, - SUM ( - 76 ) ) * - ( CASE + ( - 17 ) WHEN NULLIF ( - ( - 56 ), 60 ) + - 17 THEN NULL ELSE - + 99 * - 36 * 73 END ) * - 40 + 21 + 6 * + 42 * 3 AS col0
----
NULL

query I rowsort
SELECT ALL + 67 * + 77 AS col2
----
5159

onlyif mysql # aggregate syntax: 
query I rowsort label-1399
SELECT DISTINCT 62 * - - COUNT( * )
----
62

skipif mysql # not compatible
query I rowsort label-1399
SELECT DISTINCT 62 * - - COUNT ( * )
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1400
SELECT ( CASE - - 77 WHEN + - 47 * 36 * + 81 + CAST( + 12 AS SIGNED ) THEN NULL ELSE 29 END )
----
29

skipif mysql # not compatible
query I rowsort label-1400
SELECT ( CASE - - 77 WHEN + - 47 * 36 * + 81 + CAST ( + 12 AS INTEGER ) THEN NULL ELSE 29 END )
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-1401
SELECT + 72 * 87 + - + COUNT( * )
----
6263

skipif mysql # not compatible
query I rowsort label-1401
SELECT + 72 * 87 + - + COUNT ( * )
----
6263

query I rowsort
SELECT ALL + 77 * + - 3
----
-231

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1403
SELECT DISTINCT - 22 * + - CASE - + 50 WHEN 77 * COUNT( * ) THEN + - 42 + + CAST( + COUNT( * ) AS SIGNED ) WHEN + CAST( - 67 AS SIGNED ) THEN - COUNT( * ) END * 70 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1403
SELECT DISTINCT - 22 * + - CASE - + 50 WHEN 77 * COUNT ( * ) THEN + - 42 + + CAST ( + COUNT ( * ) AS INTEGER ) WHEN + CAST ( - 67 AS INTEGER ) THEN - COUNT ( * ) END * 70 AS col1
----
NULL

query I rowsort
SELECT - 85 * 82 AS col2
----
-6970

query I rowsort
SELECT NULLIF ( + 20, + 13 )
----
20

query I rowsort
SELECT + 9 * + 39 * + 94 * 27 + + + 3
----
890841

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1407
SELECT COALESCE ( + 72, - + 48 * NULLIF ( 70, 8 + - AVG ( DISTINCT + 37 ) + - 45 * + CAST( - 44 AS SIGNED ) ) * - 1, 5 * COUNT( ( - - 68 ) ) * 90 ) AS col0
----
72

skipif mysql # not compatible
query I rowsort label-1407
SELECT COALESCE ( + 72, - + 48 * NULLIF ( 70, 8 + - AVG ( DISTINCT + 37 ) + - 45 * + CAST ( - 44 AS INTEGER ) ) * - 1, 5 * COUNT ( ( - - 68 ) ) * 90 ) AS col0
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1408
SELECT - CASE - 94 WHEN 0 THEN NULL WHEN 2 * + - COUNT( * ) THEN - 32 * + 21 * - + 80 + CASE 55 WHEN - + 99 THEN - ( + 25 ) * - 21 + - ( + 41 ) WHEN + + 83 + + COUNT( * ) + 13 THEN NULL ELSE NULL END + NULLIF ( + 72, - + COUNT( * ) DIV 80 + - 77 * - - 19 * ( + 56 ) ) ELSE - 34 DIV - 67 * + - 58 + + ( 78 ) END DIV 72
----
-1

skipif mysql # not compatible
query I rowsort label-1408
SELECT - CASE - 94 WHEN 0 THEN NULL WHEN 2 * + - COUNT ( * ) THEN - 32 * + 21 * - + 80 + CASE 55 WHEN - + 99 THEN - ( + 25 ) * - 21 + - ( + 41 ) WHEN + + 83 + + COUNT ( * ) + 13 THEN NULL ELSE NULL END + NULLIF ( + 72, - + COUNT ( * ) / 80 + - 77 * - - 19 * ( + 56 ) ) ELSE - 34 / - 67 * + - 58 + + ( 78 ) END / 72
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1409
SELECT - 78 * + MAX( - - 31 )
----
-2418

skipif mysql # not compatible
query I rowsort label-1409
SELECT - 78 * + MAX ( - - 31 )
----
-2418

query I rowsort
SELECT DISTINCT 71 * 68 + - - 10 + - + 18 AS col0
----
4820

query I rowsort
SELECT - 49 * - 30 AS col2
----
1470

query I rowsort
SELECT - 34 * - + 21 + - 97
----
617

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1413
SELECT ALL - 19 * + CASE - - 88 WHEN + + 97 * + 30 THEN NULL WHEN - CAST( NULL AS DECIMAL ) - + CAST( NULL AS SIGNED ) + + - 23 THEN 60 ELSE NULL END * + 15 + - + 24 * + SUM( ALL + 55 ) + + - 30 + + 75 * + - 57 / 60
----
NULL

skipif mysql # not compatible
query I rowsort label-1413
SELECT ALL - 19 * + CASE - - 88 WHEN + + 97 * + 30 THEN NULL WHEN - CAST ( NULL AS REAL ) - + CAST ( NULL AS INTEGER ) + + - 23 THEN 60 ELSE NULL END * + 15 + - + 24 * + SUM ( ALL + 55 ) + + - 30 + + 75 * + - 57 / 60
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1414
SELECT - 43 - 26 DIV 80 + - CASE + - 34 WHEN 84 DIV CASE + 47 WHEN - CASE + AVG ( + ( - - 32 ) ) WHEN - NULLIF ( + 41, + 75 * 56 + 53 + + 52 ) THEN + ( 21 ) WHEN - ( 14 ) DIV - - 19 THEN NULL WHEN - - 7 THEN NULL ELSE + 66 END THEN 5 * - COUNT( * ) END THEN NULL ELSE - + 66 + + 45 END
----
-22

skipif mysql # not compatible
query I rowsort label-1414
SELECT - 43 - 26 / 80 + - CASE + - 34 WHEN 84 / CASE + 47 WHEN - CASE + AVG ( + ( - - 32 ) ) WHEN - NULLIF ( + 41, + 75 * 56 + 53 + + 52 ) THEN + ( 21 ) WHEN - ( 14 ) / - - 19 THEN NULL WHEN - - 7 THEN NULL ELSE + 66 END THEN 5 * - COUNT ( * ) END THEN NULL ELSE - + 66 + + 45 END
----
-22

query I rowsort
SELECT DISTINCT 9 * - 17 + 66 - 43
----
-130

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1417
SELECT ALL 15 * - 70 + + COUNT( * ) * 69 col0
----
-981

skipif mysql # not compatible
query I rowsort label-1417
SELECT ALL 15 * - 70 + + COUNT ( * ) * 69 col0
----
-981

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1418
SELECT ALL CAST( - 53 AS SIGNED ) AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-1418
SELECT ALL CAST ( - 53 AS INTEGER ) AS col1
----
-53

query I rowsort
SELECT DISTINCT - 60 * - 74 AS col1
----
4440

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1421
SELECT DISTINCT - 88 + MAX( ALL 37 )
----
-51

skipif mysql # not compatible
query I rowsort label-1421
SELECT DISTINCT - 88 + MAX ( ALL 37 )
----
-51

query I rowsort
SELECT 12 + 25 col0
----
37

query I rowsort
SELECT 22 + - 87 AS col2
----
-65

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

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

query I rowsort
SELECT 38 + + 96 AS col2
----
134

query I rowsort
SELECT ALL 99 * + 5
----
495

query I rowsort
SELECT NULLIF ( 85, + 56 ) + + 39 * + 20
----
865

query I rowsort
SELECT ALL + 7 - 61
----
-54

query I rowsort
SELECT ALL 93 - 35 col1
----
58

query I rowsort
SELECT DISTINCT 52 * - 32 AS col2
----
-1664

query I rowsort
SELECT ( - ( 24 ) ) + - NULLIF ( + 65, - 28 ) * 17 AS col1
----
-1129

query I rowsort
SELECT ALL 63 * - 71 AS col2
----
-4473

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1433
SELECT + 50 DIV + 69 + CAST( + 45 AS SIGNED ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-1433
SELECT + 50 / + 69 + CAST ( + 45 AS INTEGER ) AS col2
----
45

query I rowsort
SELECT DISTINCT 98 * - 89
----
-8722

query I rowsort
SELECT ALL 57 * 83 col1
----
4731

query I rowsort
SELECT + 62 * + 94 + COALESCE ( - 48, + NULLIF ( + 63, - COALESCE ( + 98, 64 + + 0 / + 30, + 83, + 52 ) * ( 20 ) ) ) AS col2
----
5780

query I rowsort
SELECT ALL 4 * 31 AS col2
----
124

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1438
SELECT ALL - COUNT( * ) + - 92 DIV 4
----
-24

skipif mysql # not compatible
query I rowsort label-1438
SELECT ALL - COUNT ( * ) + - 92 / 4
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-1439
SELECT DISTINCT 15 + COUNT( * ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-1439
SELECT DISTINCT 15 + COUNT ( * ) AS col0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-1440
SELECT ALL + NULLIF ( - 59, - COUNT( 79 ) ) * COUNT( * )
----
-59

skipif mysql # not compatible
query I rowsort label-1440
SELECT ALL + NULLIF ( - 59, - COUNT ( 79 ) ) * COUNT ( * )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-1441
SELECT ALL 91 + - MAX( DISTINCT - 52 ) * 2 AS col1
----
195

skipif mysql # not compatible
query I rowsort label-1441
SELECT ALL 91 + - MAX ( DISTINCT - 52 ) * 2 AS col1
----
195

query I rowsort
SELECT ALL 50 + 89
----
139

query I rowsort
SELECT DISTINCT 8 + 64 * - COALESCE ( 66 * 2, 57 )
----
-8440

onlyif mysql # aggregate syntax: 
query I rowsort label-1444
SELECT 78 + + ( + 29 ) * - COALESCE ( - 90 + + 52 * 43, + COUNT( * ) * - COUNT( * ) + 93, 82 + 37 ) AS col2
----
-62156

skipif mysql # not compatible
query I rowsort label-1444
SELECT 78 + + ( + 29 ) * - COALESCE ( - 90 + + 52 * 43, + COUNT ( * ) * - COUNT ( * ) + 93, 82 + 37 ) AS col2
----
-62156

onlyif mysql # aggregate syntax: 
query I rowsort label-1445
SELECT CASE 6 WHEN + 8 * 48 THEN 86 - - NULLIF ( + 70, 99 ) * 37 WHEN - 32 * + COUNT( * ) + 57 THEN - 26 END * 51 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1445
SELECT CASE 6 WHEN + 8 * 48 THEN 86 - - NULLIF ( + 70, 99 ) * 37 WHEN - 32 * + COUNT ( * ) + 57 THEN - 26 END * 51 col1
----
NULL

query I rowsort
SELECT ALL + 46 * + 98
----
4508

onlyif mysql # DIV for integer division: 
query I rowsort label-1447
SELECT 23 DIV + 64 col0
----
0

skipif mysql # not compatible
query I rowsort label-1447
SELECT 23 / + 64 col0
----
0

query I rowsort
SELECT 26 + - NULLIF ( - 24, 66 * - 8 )
----
50

query I rowsort
SELECT ALL - 73 + - 42 AS col0
----
-115

query I rowsort
SELECT ALL + ( 99 ) + - 10 AS col2
----
89

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1453
SELECT - 29 * 26 + NULLIF ( + 70, 15 ) DIV + 24 AS col2
----
-752

skipif mysql # not compatible
query I rowsort label-1453
SELECT - 29 * 26 + NULLIF ( + 70, 15 ) / + 24 AS col2
----
-752

query I rowsort
SELECT DISTINCT + 1 + 81 AS col0
----
82

query I rowsort
SELECT DISTINCT NULLIF ( - 65, - 68 * + ( 48 ) ) * 26
----
-1690

query I rowsort
SELECT ALL - 74 + 45 * + 7
----
241

onlyif mysql # DIV for integer division: 
query I rowsort label-1457
SELECT ALL + ( - 58 ) DIV + 55 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1457
SELECT ALL + ( - 58 ) / + 55 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1458
SELECT CASE + 74 WHEN MIN( ALL - NULLIF ( + 39, - 73 * + 98 ) ) / 11 THEN + CASE + 58 WHEN 97 / + 88 THEN - 26 END END + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1458
SELECT CASE + 74 WHEN MIN ( ALL - NULLIF ( + 39, - 73 * + 98 ) ) / 11 THEN + CASE + 58 WHEN 97 / + 88 THEN - 26 END END + COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1459
SELECT - COUNT( ALL 55 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-1459
SELECT - COUNT ( ALL 55 ) col2
----
-1

query I rowsort
SELECT ALL - 80 - 32
----
-112

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1461
SELECT ALL - COUNT( * ) DIV NULLIF ( + 87 * + 31, + 37 + - 13 )
----
0

skipif mysql # not compatible
query I rowsort label-1461
SELECT ALL - COUNT ( * ) / NULLIF ( + 87 * + 31, + 37 + - 13 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1462
SELECT NULLIF ( ( + 15 ), + 31 ) * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1462
SELECT NULLIF ( ( + 15 ), + 31 ) * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ( 84 ) + - 92 AS col1
----
-8

query I rowsort
SELECT DISTINCT NULLIF ( 60, ( 13 ) + + COALESCE ( + 32, 80 / 25 + - 99, + 70 ) * 3 ) AS col1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-1465
SELECT ALL + - COUNT( * ) * + 43 col1
----
-43

skipif mysql # not compatible
query I rowsort label-1465
SELECT ALL + - COUNT ( * ) * + 43 col1
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-1466
SELECT COALESCE ( - 32, + COALESCE ( - ( - 2 ), + COUNT( * ) * + 50, + COALESCE ( - 70, + NULLIF ( 97, - 30 * 44 ) + - 54 ) + COUNT( ALL 64 ) ) * 15, + 16, - 54 ) * COUNT( * ) AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-1466
SELECT COALESCE ( - 32, + COALESCE ( - ( - 2 ), + COUNT ( * ) * + 50, + COALESCE ( - 70, + NULLIF ( 97, - 30 * 44 ) + - 54 ) + COUNT ( ALL 64 ) ) * 15, + 16, - 54 ) * COUNT ( * ) AS col0
----
-32

query I rowsort
SELECT 77 * - 11 AS col1
----
-847

query I rowsort
SELECT - - ( + 22 ) col1
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-1469
SELECT 95 DIV 40 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-1469
SELECT 95 / 40 AS col1
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1470
SELECT CASE - 15 WHEN + 85 * CAST( 75 AS SIGNED ) - + 76 * + 28 THEN NULL WHEN CASE WHEN NOT 20 IS NULL THEN + NULLIF ( - 40, 65 ) END * + 3 THEN NULL ELSE 15 END / CASE - 32 - 70 WHEN - 43 THEN + 39 * + 47 + 14 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1470
SELECT CASE - 15 WHEN + 85 * CAST ( 75 AS INTEGER ) - + 76 * + 28 THEN NULL WHEN CASE WHEN NOT 20 IS NULL THEN + NULLIF ( - 40, 65 ) END * + 3 THEN NULL ELSE 15 END / CASE - 32 - 70 WHEN - 43 THEN + 39 * + 47 + 14 ELSE NULL END
----
NULL

query I rowsort
SELECT + + 25 * - CASE 25 - 57 WHEN 22 THEN 96 / + 1 ELSE NULL END - 17
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1472
SELECT DISTINCT 83 * - 58 + CAST( NULL AS DECIMAL ) * + 24 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1472
SELECT DISTINCT 83 * - 58 + CAST ( NULL AS REAL ) * + 24 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1473
SELECT DISTINCT + 58 DIV - 93 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1473
SELECT DISTINCT + 58 / - 93 AS col0
----
0

query I rowsort
SELECT DISTINCT 77 * - 10 + + 78
----
-692

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1476
SELECT ALL CASE + 27 WHEN 25 THEN - CAST( 45 AS SIGNED ) / - 69 END * + NULLIF ( - 40, - 6 / CAST( NULL AS SIGNED ) ) + + 54 / + CASE 85 WHEN 40 / + 51 THEN NULL WHEN 62 THEN - 92 / MAX( ALL ( + 84 ) * 38 ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1476
SELECT ALL CASE + 27 WHEN 25 THEN - CAST ( 45 AS INTEGER ) / - 69 END * + NULLIF ( - 40, - 6 / CAST ( NULL AS INTEGER ) ) + + 54 / + CASE 85 WHEN 40 / + 51 THEN NULL WHEN 62 THEN - 92 / MAX ( ALL ( + 84 ) * 38 ) ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1477
SELECT + 64 * - - 82 * 36 + + ( - COUNT( 22 ) ) AS col1
----
188927

skipif mysql # not compatible
query I rowsort label-1477
SELECT + 64 * - - 82 * 36 + + ( - COUNT ( 22 ) ) AS col1
----
188927

query I rowsort
SELECT 16 * 24
----
384

query I rowsort
SELECT ALL 44 * NULLIF ( 39, + 91 * 49 - - 94 ) AS col2
----
1716

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

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

query I rowsort
SELECT 50 * + 45 + 21 * 14 AS col1
----
2544

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1482
SELECT DISTINCT SUM( - 25 ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1482
SELECT DISTINCT SUM ( - 25 ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1483
SELECT - ( + COALESCE ( 97, 6 * 13 + 46 DIV 87, - 17 + 74 ) ) * - 95 + 22 * 12
----
9479

skipif mysql # not compatible
query I rowsort label-1483
SELECT - ( + COALESCE ( 97, 6 * 13 + 46 / 87, - 17 + 74 ) ) * - 95 + 22 * 12
----
9479

onlyif mysql # aggregate syntax: 
query I rowsort label-1484
SELECT ALL + COUNT( + 69 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1484
SELECT ALL + COUNT ( + 69 ) AS col1
----
1

query I rowsort
SELECT + CASE + 21 WHEN ( 53 ) THEN NULL ELSE 65 END
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1486
SELECT + 83 + + - 2 + + 47 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1486
SELECT + 83 + + - 2 + + 47 * CAST ( NULL AS INTEGER )
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1489
SELECT + COUNT( * ) * + 98 + ( 60 ) AS col2
----
158

skipif mysql # not compatible
query I rowsort label-1489
SELECT + COUNT ( * ) * + 98 + ( 60 ) AS col2
----
158

onlyif mysql # aggregate syntax: 
query I rowsort label-1490
SELECT ALL NULLIF ( - + 32, MIN( 0 ) / COALESCE ( + 65 * SUM( 7 ), ( 29 ) / 59 + 65 ) )
----
-32

skipif mysql # not compatible
query I rowsort label-1490
SELECT ALL NULLIF ( - + 32, MIN ( 0 ) / COALESCE ( + 65 * SUM ( 7 ), ( 29 ) / 59 + 65 ) )
----
-32

query I rowsort
SELECT DISTINCT - 92 * 14 AS col1
----
-1288

onlyif mysql # DIV for integer division: 
query I rowsort label-1492
SELECT + ( - - 63 ) - + 19 DIV - 22
----
63

skipif mysql # not compatible
query I rowsort label-1492
SELECT + ( - - 63 ) - + 19 / - 22
----
63

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

query I rowsort
SELECT DISTINCT NULLIF ( + 38, NULLIF ( + 31, + 96 + 49 * + 42 ) ) AS col0
----
38

query I rowsort
SELECT DISTINCT - 32 * 45 + 78 AS col2
----
-1362

onlyif mysql # aggregate syntax: 
query I rowsort label-1496
SELECT DISTINCT + + CASE - - 20 WHEN 10 THEN ( + NULLIF ( + COUNT( * ), ( - 31 ) ) ) ELSE NULL END - + ( 84 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1496
SELECT DISTINCT + + CASE - - 20 WHEN 10 THEN ( + NULLIF ( + COUNT ( * ), ( - 31 ) ) ) ELSE NULL END - + ( 84 ) AS col0
----
NULL

query I rowsort
SELECT ALL - 99 * - 55 AS col2
----
5445

onlyif mysql # aggregate syntax: 
query I rowsort label-1498
SELECT + COUNT( ALL - CASE - 5 WHEN 22 + + 40 THEN 1 - - 26 WHEN 51 THEN - 77 ELSE 86 * 10 + + 21 END )
----
1

skipif mysql # not compatible
query I rowsort label-1498
SELECT + COUNT ( ALL - CASE - 5 WHEN 22 + + 40 THEN 1 - - 26 WHEN 51 THEN - 77 ELSE 86 * 10 + + 21 END )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1499
SELECT + + 18 + SUM( ALL - 57 ) + 12 * + 31 AS col0
----
333

skipif mysql # not compatible
query I rowsort label-1499
SELECT + + 18 + SUM ( ALL - 57 ) + 12 * + 31 AS col0
----
333

query I rowsort
SELECT - 79 - 93
----
-172

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1501
SELECT - - MAX( ALL + COALESCE ( + 6, CAST( NULL AS SIGNED ), + 10 ) ) / - CASE - 95 + + ( 92 ) WHEN 13 THEN NULL WHEN SUM( DISTINCT - 37 ) THEN + 62 / 59 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1501
SELECT - - MAX ( ALL + COALESCE ( + 6, CAST ( NULL AS INTEGER ), + 10 ) ) / - CASE - 95 + + ( 92 ) WHEN 13 THEN NULL WHEN SUM ( DISTINCT - 37 ) THEN + 62 / 59 END AS col1
----
NULL

query I rowsort
SELECT ALL COALESCE ( - 78, + 69 )
----
-78

query I rowsort
SELECT + - 44 + - 38 AS col1
----
-82

query I rowsort
SELECT - 92 - - 91 col1
----
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1506
SELECT - 45 + 15 * - COUNT( * ) AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-1506
SELECT - 45 + 15 * - COUNT ( * ) AS col0
----
-60

query I rowsort
SELECT ALL - 83 + - 64 AS col1
----
-147

onlyif mysql # aggregate syntax: 
query I rowsort label-1508
SELECT DISTINCT - 55 + COUNT( * ) - 93 * + CASE + 98 + - 17 WHEN NULLIF ( COUNT( * ), COUNT( * ) ) THEN 85 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1508
SELECT DISTINCT - 55 + COUNT ( * ) - 93 * + CASE + 98 + - 17 WHEN NULLIF ( COUNT ( * ), COUNT ( * ) ) THEN 85 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1509
SELECT ALL + 92 * NULLIF ( - CASE AVG ( DISTINCT 24 ) WHEN + COUNT( * ) THEN NULL ELSE 16 END, COUNT( * ) * + 23 ) AS col0
----
-1472

skipif mysql # not compatible
query I rowsort label-1509
SELECT ALL + 92 * NULLIF ( - CASE AVG ( DISTINCT 24 ) WHEN + COUNT ( * ) THEN NULL ELSE 16 END, COUNT ( * ) * + 23 ) AS col0
----
-1472

onlyif mysql # aggregate syntax: 
query I rowsort label-1510
SELECT DISTINCT + 72 + + COUNT( + - 12 ) - 8 AS col1
----
65

skipif mysql # not compatible
query I rowsort label-1510
SELECT DISTINCT + 72 + + COUNT ( + - 12 ) - 8 AS col1
----
65

query I rowsort
SELECT ALL - 18 + + 12 * + 50 * + 7 + 8
----
4190

query I rowsort
SELECT DISTINCT + 63 * ( COALESCE ( 95, 90, 57 * 74 ) ) * 98 AS col1
----
586530

query I rowsort
SELECT - 44 + + 63 * - 86 * - 43
----
232930

query I rowsort
SELECT - 56 * 63 AS col0
----
-3528

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1515
SELECT 82 DIV COUNT( * ) + - + 21
----
61

skipif mysql # not compatible
query I rowsort label-1515
SELECT 82 / COUNT ( * ) + - + 21
----
61

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1517
SELECT ALL + NULLIF ( + - COUNT( * ), - 41 )
----
-1

skipif mysql # not compatible
query I rowsort label-1517
SELECT ALL + NULLIF ( + - COUNT ( * ), - 41 )
----
-1

query I rowsort
SELECT + 38 + + - 38 AS col0
----
0

query I rowsort
SELECT ALL - 53 * - 73 + NULLIF ( + 66, 73 ) + 51 AS col2
----
3986

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1520
SELECT - 26 * - COUNT( * ) * NULLIF ( + CAST( NULL AS SIGNED ), + 6 + - 77 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1520
SELECT - 26 * - COUNT ( * ) * NULLIF ( + CAST ( NULL AS INTEGER ), + 6 + - 77 ) AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1522
SELECT ALL + 3 * COUNT( * ) * + - 34 + 56
----
-46

skipif mysql # not compatible
query I rowsort label-1522
SELECT ALL + 3 * COUNT ( * ) * + - 34 + 56
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-1523
SELECT DISTINCT 55 DIV CASE - - 32 WHEN + 71 THEN + 7 WHEN 0 * 46 THEN 28 ELSE 59 END
----
0

skipif mysql # not compatible
query I rowsort label-1523
SELECT DISTINCT 55 / CASE - - 32 WHEN + 71 THEN + 7 WHEN 0 * 46 THEN 28 ELSE 59 END
----
0

query II rowsort
SELECT ALL + 77, 77
----
77
77

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

query I rowsort
SELECT ALL 90 * + 11 AS col2
----
990

query I rowsort
SELECT ( + - 31 ) col2
----
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-1528
SELECT ALL - 10 DIV 46
----
0

skipif mysql # not compatible
query I rowsort label-1528
SELECT ALL - 10 / 46
----
0

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

skipif mysql # not compatible
query I rowsort label-1529
SELECT ALL + COUNT ( * ) * + COUNT ( * ) - 33 AS col2
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-1530
SELECT + 48 DIV + 86 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1530
SELECT + 48 / + 86 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1531
SELECT ALL 54 * - CAST( - - 7 AS SIGNED ) AS col2
----
-378

skipif mysql # not compatible
query I rowsort label-1531
SELECT ALL 54 * - CAST ( - - 7 AS INTEGER ) AS col2
----
-378

query I rowsort
SELECT - 60 * 82
----
-4920

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1533
SELECT COUNT( * ) * CASE 14 WHEN ( 64 ) THEN + CAST( NULL AS SIGNED ) WHEN - 14 * 31 THEN NULL END + 42 / - 42
----
NULL

skipif mysql # not compatible
query I rowsort label-1533
SELECT COUNT ( * ) * CASE 14 WHEN ( 64 ) THEN + CAST ( NULL AS INTEGER ) WHEN - 14 * 31 THEN NULL END + 42 / - 42
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1534
SELECT + COALESCE ( - + 33, - 67 + + 74 * + COUNT( * ), CASE - 17 WHEN 9 THEN - 97 END ) * + 0 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1534
SELECT + COALESCE ( - + 33, - 67 + + 74 * + COUNT ( * ), CASE - 17 WHEN 9 THEN - 97 END ) * + 0 AS col1
----
0

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

skipif mysql # not compatible
query I rowsort label-1535
SELECT + MAX ( + - 89 )
----
-89

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

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

query I rowsort
SELECT ALL - 76 * + 32 + - 89 + 66 - - 17 AS col1
----
-2438

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

skipif mysql # not compatible
query I rowsort label-1538
SELECT + COUNT ( * ) - - 68 AS col0
----
69

query I rowsort
SELECT + - 8 + - 63 - - 91 AS col0
----
20

query I rowsort
SELECT ALL - 3 * COALESCE ( - 20, 41, + 75 ) + 95 AS col2
----
155

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1542
SELECT + CAST( - 45 AS SIGNED ) AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-1542
SELECT + CAST ( - 45 AS INTEGER ) AS col1
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-1543
SELECT + MIN( DISTINCT ( - 88 ) ) + 71
----
-17

skipif mysql # not compatible
query I rowsort label-1543
SELECT + MIN ( DISTINCT ( - 88 ) ) + 71
----
-17

query II rowsort
SELECT - 57, + 71 col0
----
-57
71

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

skipif mysql # not compatible
query I rowsort label-1545
SELECT DISTINCT + COUNT ( * ) + - 50 AS col2
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-1546
SELECT + 21 * + 24 + + 57 DIV 52
----
505

skipif mysql # not compatible
query I rowsort label-1546
SELECT + 21 * + 24 + + 57 / 52
----
505

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1547
SELECT - COUNT( ALL 97 ) + - AVG ( DISTINCT - 97 ) - CASE 62 WHEN - 26 THEN NULL WHEN 3 THEN + 0 WHEN 73 * - 61 THEN NULL ELSE 96 * - 22 + + CAST( NULL AS SIGNED ) END * 89 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1547
SELECT - COUNT ( ALL 97 ) + - AVG ( DISTINCT - 97 ) - CASE 62 WHEN - 26 THEN NULL WHEN 3 THEN + 0 WHEN 73 * - 61 THEN NULL ELSE 96 * - 22 + + CAST ( NULL AS INTEGER ) END * 89 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1548
SELECT ALL + 87 + + 85 * 93 + - 92 * - COUNT( * )
----
8084

skipif mysql # not compatible
query I rowsort label-1548
SELECT ALL + 87 + + 85 * 93 + - 92 * - COUNT ( * )
----
8084

query I rowsort
SELECT ALL + 18 + - 42 AS col2
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-1550
SELECT ALL - - SUM( 99 ) + + 55 AS col0
----
154

skipif mysql # not compatible
query I rowsort label-1550
SELECT ALL - - SUM ( 99 ) + + 55 AS col0
----
154

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

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

query I rowsort
SELECT ALL + 26 + - 96 * + 34 AS col0
----
-3238

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1554
SELECT ALL + 46 + + + 23 DIV - 88 AS col2
----
46

skipif mysql # not compatible
query I rowsort label-1554
SELECT ALL + 46 + + + 23 / - 88 AS col2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-1555
SELECT - 62 * - - 27 * + 29 * - COUNT( DISTINCT 98 ) * COUNT( * )
----
48546

skipif mysql # not compatible
query I rowsort label-1555
SELECT - 62 * - - 27 * + 29 * - COUNT ( DISTINCT 98 ) * COUNT ( * )
----
48546

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1556
SELECT ALL NULLIF ( + 19, - - CAST( + ( COUNT( * ) ) AS SIGNED ) )
----
19

skipif mysql # not compatible
query I rowsort label-1556
SELECT ALL NULLIF ( + 19, - - CAST ( + ( COUNT ( * ) ) AS INTEGER ) )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-1557
SELECT ALL CASE ( + 9 ) WHEN 8 THEN - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1557
SELECT ALL CASE ( + 9 ) WHEN 8 THEN - COUNT ( * ) END
----
NULL

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

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

query II rowsort
SELECT - 38 * - - 95 AS col1, 84 + - ( 11 )
----
-3610
73

onlyif mysql # DIV for integer division: 
query I rowsort label-1560
SELECT - 15 DIV 77
----
0

skipif mysql # not compatible
query I rowsort label-1560
SELECT - 15 / 77
----
0

query I rowsort
SELECT ALL + 87 - + 37
----
50

query I rowsort
SELECT - COALESCE ( + + 0, - - 79 ) * + 81 AS col0
----
0

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

skipif mysql # not compatible
query I rowsort label-1563
SELECT ALL 32 / COUNT ( * )
----
32

query I rowsort
SELECT 87 * + + 79 - + 89 AS col2
----
6784

onlyif mysql # aggregate syntax: 
query I rowsort label-1565
SELECT ALL - CASE COALESCE ( + 26, + + 20 ) WHEN 90 * COALESCE ( 68, + COUNT( * ) + 82 ) - 56 THEN - ( COUNT( * ) ) - + 8 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1565
SELECT ALL - CASE COALESCE ( + 26, + + 20 ) WHEN 90 * COALESCE ( 68, + COUNT ( * ) + 82 ) - 56 THEN - ( COUNT ( * ) ) - + 8 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1566
SELECT ALL + CASE 50 WHEN 73 + - 92 THEN NULL WHEN COALESCE ( 25, MIN( DISTINCT - 22 ) + 82 ) - - ( SUM( - ( 55 ) ) ) * - 94 THEN NULL WHEN COALESCE ( + 84, + 1 * 18, COUNT( * ) ) * 9 + - CAST( NULL AS SIGNED ) THEN - SUM( CASE 61 WHEN + 0 * - 85 THEN NULL WHEN + 69 THEN NULL WHEN - 53 + + 83 * 3 THEN - 78 * + 79 ELSE - 84 END ) + 83 END - ( 29 ) / 62 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1566
SELECT ALL + CASE 50 WHEN 73 + - 92 THEN NULL WHEN COALESCE ( 25, MIN ( DISTINCT - 22 ) + 82 ) - - ( SUM ( - ( 55 ) ) ) * - 94 THEN NULL WHEN COALESCE ( + 84, + 1 * 18, COUNT ( * ) ) * 9 + - CAST ( NULL AS INTEGER ) THEN - SUM ( CASE 61 WHEN + 0 * - 85 THEN NULL WHEN + 69 THEN NULL WHEN - 53 + + 83 * 3 THEN - 78 * + 79 ELSE - 84 END ) + 83 END - ( 29 ) / 62 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1567
SELECT ALL - ( - - NULLIF ( 60, + 34 + - SUM( DISTINCT - 90 ) ) ) - + 46
----
-106

skipif mysql # not compatible
query I rowsort label-1567
SELECT ALL - ( - - NULLIF ( 60, + 34 + - SUM ( DISTINCT - 90 ) ) ) - + 46
----
-106

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1568
SELECT - 17 DIV - COUNT( * ) + + 43 AS col2
----
60

skipif mysql # not compatible
query I rowsort label-1568
SELECT - 17 / - COUNT ( * ) + + 43 AS col2
----
60

query II rowsort
SELECT DISTINCT - 97 * 34 AS col2, 28 AS col0
----
-3298
28

onlyif mysql # aggregate syntax: 
query I rowsort label-1570
SELECT 24 * 69 - MIN( - 24 ) * - COUNT( * ) AS col1
----
1632

skipif mysql # not compatible
query I rowsort label-1570
SELECT 24 * 69 - MIN ( - 24 ) * - COUNT ( * ) AS col1
----
1632

query I rowsort
SELECT 22 * - 6
----
-132

query I rowsort
SELECT 57 * 15 AS col2
----
855

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1573
SELECT DISTINCT - MIN( DISTINCT + 8 ), 0 DIV + 20 + 69 AS col2
----
-8
69

skipif mysql # not compatible
query II rowsort label-1573
SELECT DISTINCT - MIN ( DISTINCT + 8 ), 0 / + 20 + 69 AS col2
----
-8
69

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

skipif mysql # not compatible
query I rowsort label-1574
SELECT ALL - CAST ( MAX ( 97 ) AS INTEGER )
----
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-1575
SELECT DISTINCT - SUM( ALL + 63 ) AS col1, ( 1 )
----
-63
1

skipif mysql # not compatible
query II rowsort label-1575
SELECT DISTINCT - SUM ( ALL + 63 ) AS col1, ( 1 )
----
-63
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1576
SELECT 44 * - ( + COUNT( ALL + 42 ) ) * 66 AS col0
----
-2904

skipif mysql # not compatible
query I rowsort label-1576
SELECT 44 * - ( + COUNT ( ALL + 42 ) ) * 66 AS col0
----
-2904

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1577
SELECT DISTINCT - COUNT( * ) * - 73 AS col1, + 83 * - CAST( + 43 AS SIGNED ) + 77 * - 81 AS col2
----
73
-9806

skipif mysql # not compatible
query II rowsort label-1577
SELECT DISTINCT - COUNT ( * ) * - 73 AS col1, + 83 * - CAST ( + 43 AS INTEGER ) + 77 * - 81 AS col2
----
73
-9806

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1578
SELECT ALL + CASE 19 WHEN - COALESCE ( - - ( - 27 ), - CASE - 86 WHEN - 79 THEN - 79 END ) / + 70 THEN + 50 * - 55 END / + CAST( + 95 * COUNT( * ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1578
SELECT ALL + CASE 19 WHEN - COALESCE ( - - ( - 27 ), - CASE - 86 WHEN - 79 THEN - 79 END ) / + 70 THEN + 50 * - 55 END / + CAST ( + 95 * COUNT ( * ) AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1579
SELECT ALL + + 27 DIV - 44 + + 68 AS col2
----
68

skipif mysql # not compatible
query I rowsort label-1579
SELECT ALL + + 27 / - 44 + + 68 AS col2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-1580
SELECT COUNT( * ) + + - 52 * + MAX( - 92 ) + - 54 * - 86 AS col1
----
9429

skipif mysql # not compatible
query I rowsort label-1580
SELECT COUNT ( * ) + + - 52 * + MAX ( - 92 ) + - 54 * - 86 AS col1
----
9429

query I rowsort
SELECT + ( ( + 80 ) ) * 39 * 92 AS col2
----
287040

query I rowsort
SELECT + 91 * - 76 * ( + - 35 )
----
242060

query I rowsort
SELECT ALL + 91 + - 58 + + 88 * 39 * 31
----
106425

query I rowsort
SELECT - CASE - - 77 WHEN + 75 + - + 83 + 4 THEN 78 END col1
----
NULL

query I rowsort
SELECT ALL - 16 + - 21 + - + 5 + + 44 * 89 AS col0
----
3874

onlyif mysql # aggregate syntax: 
query I rowsort label-1586
SELECT + 19 * - - COUNT( * ) + 21 + - COUNT( * ) - 73 * - 22 AS col1
----
1645

skipif mysql # not compatible
query I rowsort label-1586
SELECT + 19 * - - COUNT ( * ) + 21 + - COUNT ( * ) - 73 * - 22 AS col1
----
1645

onlyif mysql # aggregate syntax: 
query I rowsort label-1587
SELECT ALL - 47 * 21 * - COALESCE ( 14, 45 + - 96 ) + MAX( DISTINCT 44 ) AS col0
----
13862

skipif mysql # not compatible
query I rowsort label-1587
SELECT ALL - 47 * 21 * - COALESCE ( 14, 45 + - 96 ) + MAX ( DISTINCT 44 ) AS col0
----
13862

query II rowsort
SELECT - + ( + 25 ), - 52 col2
----
-25
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1589
SELECT ALL - 97 * + CAST( 67 AS SIGNED ) * - 89 + + 65 * 17 AS col0
----
579516

skipif mysql # not compatible
query I rowsort label-1589
SELECT ALL - 97 * + CAST ( 67 AS INTEGER ) * - 89 + + 65 * 17 AS col0
----
579516

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1590
SELECT DISTINCT + NULLIF ( + - 8, - + 62 * - CAST( COUNT( * ) AS DECIMAL ) ) + + 3 * - 41
----
-131

skipif mysql # not compatible
query I rowsort label-1590
SELECT DISTINCT + NULLIF ( + - 8, - + 62 * - CAST ( COUNT ( * ) AS REAL ) ) + + 3 * - 41
----
-131

query I rowsort
SELECT ALL ( + 28 ) + 17 col2
----
45

query I rowsort
SELECT - 7 + 75
----
68

query I rowsort
SELECT 81 + + 55 AS col1
----
136

onlyif mysql # aggregate syntax: 
query II rowsort label-1594
SELECT MIN( DISTINCT + 52 ) * + 28 AS col2, COUNT( ALL - 86 ) col1
----
1456
1

skipif mysql # not compatible
query II rowsort label-1594
SELECT MIN ( DISTINCT + 52 ) * + 28 AS col2, COUNT ( ALL - 86 ) col1
----
1456
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1595
SELECT ALL ( - 96 ) - - ( - 9 ) DIV + + 95 * 48 + 53 * - 64
----
-3488

skipif mysql # not compatible
query I rowsort label-1595
SELECT ALL ( - 96 ) - - ( - 9 ) / + + 95 * 48 + 53 * - 64
----
-3488

onlyif mysql # DIV for integer division: 
query I rowsort label-1596
SELECT ALL 91 DIV + 95 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1596
SELECT ALL 91 / + 95 AS col0
----
0

query I rowsort
SELECT NULLIF ( + - ( - + 53 ), - 95 ) + + - 60 + + ( 79 ) * 37 AS col1
----
2916

onlyif mysql # aggregate syntax: 
query I rowsort label-1598
SELECT ALL + 82 * + ( - 36 ) * 81 * + 40 + + 18 * - COUNT( * ) AS col1
----
-9564498

skipif mysql # not compatible
query I rowsort label-1598
SELECT ALL + 82 * + ( - 36 ) * 81 * + 40 + + 18 * - COUNT ( * ) AS col1
----
-9564498

onlyif mysql # DIV for integer division: 
query II rowsort label-1599
SELECT ALL 7 AS col2, - 15 - - 69 + 27 - 53 + 46 DIV 39 * - ( - 22 * - 77 ) * 31 * 80 AS col2
----
7
-4201092

skipif mysql # not compatible
query II rowsort label-1599
SELECT ALL 7 AS col2, - 15 - - 69 + 27 - 53 + 46 / 39 * - ( - 22 * - 77 ) * 31 * 80 AS col2
----
7
-4201092

query I rowsort
SELECT ALL 85 - + - 72 AS col2
----
157

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1602
SELECT ( + CAST( - MIN( + 88 ) AS SIGNED ) ) + + - 94 * 70
----
-6668

skipif mysql # not compatible
query I rowsort label-1602
SELECT ( + CAST ( - MIN ( + 88 ) AS INTEGER ) ) + + - 94 * 70
----
-6668

onlyif mysql # aggregate syntax: 
query I rowsort label-1603
SELECT CASE - COUNT( * ) WHEN - 15 THEN - 20 END / COUNT( * ) + + 70
----
NULL

skipif mysql # not compatible
query I rowsort label-1603
SELECT CASE - COUNT ( * ) WHEN - 15 THEN - 20 END / COUNT ( * ) + + 70
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1604
SELECT 32 DIV - + 40 col2
----
0

skipif mysql # not compatible
query I rowsort label-1604
SELECT 32 / - + 40 col2
----
0

query I rowsort
SELECT 41 + - 62
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-1606
SELECT MAX( - 82 )
----
-82

skipif mysql # not compatible
query I rowsort label-1606
SELECT MAX ( - 82 )
----
-82

query I rowsort
SELECT 51 + + 47 AS col1
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1608
SELECT ( + - COUNT( * ) ) / + - CASE 61 WHEN - + 86 THEN + ( 43 ) WHEN + 67 THEN + 21 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1608
SELECT ( + - COUNT ( * ) ) / + - CASE 61 WHEN - + 86 THEN + ( 43 ) WHEN + 67 THEN + 21 END
----
NULL

query I rowsort
SELECT 57 * 60
----
3420

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1610
SELECT 29 * - 32 + + 43 * + - CAST( + 81 AS SIGNED ) AS col0
----
-4411

skipif mysql # not compatible
query I rowsort label-1610
SELECT 29 * - 32 + + 43 * + - CAST ( + 81 AS INTEGER ) AS col0
----
-4411

onlyif mysql # aggregate syntax: 
query II rowsort label-1611
SELECT ALL - 96, - MAX( DISTINCT - 71 ) * + 20 AS col1
----
-96
1420

skipif mysql # not compatible
query II rowsort label-1611
SELECT ALL - 96, - MAX ( DISTINCT - 71 ) * + 20 AS col1
----
-96
1420

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1612
SELECT DISTINCT ( - ( 66 ) ) DIV + COUNT( - 5 ) + + 29
----
-37

skipif mysql # not compatible
query I rowsort label-1612
SELECT DISTINCT ( - ( 66 ) ) / + COUNT ( - 5 ) + + 29
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1613
SELECT DISTINCT CAST( NULL AS SIGNED ) + + 48 + + 79 * + 59 * - 22 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1613
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + 48 + + 79 * + 59 * - 22 * COUNT ( * )
----
NULL

query II rowsort
SELECT ALL - 86 AS col1, 6 * + 8
----
-86
48

onlyif mysql # aggregate syntax: 
query I rowsort label-1615
SELECT - 53 - - SUM( DISTINCT - + 1 )
----
-54

skipif mysql # not compatible
query I rowsort label-1615
SELECT - 53 - - SUM ( DISTINCT - + 1 )
----
-54

onlyif mysql # DIV for integer division: 
query II rowsort label-1616
SELECT ALL - 49 AS col1, ( - COALESCE ( 71, - 59, + ( 84 ) DIV - 27 ) ) * - 50 + - 94
----
-49
3456

skipif mysql # not compatible
query II rowsort label-1616
SELECT ALL - 49 AS col1, ( - COALESCE ( 71, - 59, + ( 84 ) / - 27 ) ) * - 50 + - 94
----
-49
3456

query I rowsort
SELECT 8 - - COALESCE ( - + 21, - + 79 - + 43 + + 60 * 74 )
----
-13

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1619
SELECT DISTINCT + 20 + + CASE + CASE WHEN NOT NULL = ( + CAST( NULL AS SIGNED ) ) THEN - 50 + 4 WHEN 60 * COUNT( * ) IS NOT NULL THEN NULL ELSE CAST( NULL AS SIGNED ) / - 5 END WHEN 73 * 93 + + MAX( 27 ) * + COUNT( * ) THEN NULL WHEN + AVG ( ALL - 7 ) THEN NULL ELSE ( + COUNT( * ) ) END * + SUM( ALL + 88 * - 75 ) AS col0
----
-6580

skipif mysql # not compatible
query I rowsort label-1619
SELECT DISTINCT + 20 + + CASE + CASE WHEN NOT NULL = ( + CAST ( NULL AS INTEGER ) ) THEN - 50 + 4 WHEN 60 * COUNT ( * ) IS NOT NULL THEN NULL ELSE CAST ( NULL AS INTEGER ) / - 5 END WHEN 73 * 93 + + MAX ( 27 ) * + COUNT ( * ) THEN NULL WHEN + AVG ( ALL - 7 ) THEN NULL ELSE ( + COUNT ( * ) ) END * + SUM ( ALL + 88 * - 75 ) AS col0
----
-6580

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1620
SELECT + COALESCE ( + CASE COUNT( * ) WHEN + 48 THEN NULL WHEN + 71 * + 18 THEN + CAST( + 88 AS SIGNED ) WHEN 70 - COALESCE ( CASE + 51 WHEN - CASE + COUNT( DISTINCT - 3 ) WHEN - COUNT( * ) THEN 16 - + 34 * COUNT( * ) WHEN 80 THEN NULL ELSE 60 * - ( - 69 ) END THEN + 95 END, + ( + 29 ), 12 + - ( COUNT( * ) + + ( - 28 + CAST( NULL AS SIGNED ) ) ), + 90 * COUNT( * ) ) THEN NULL ELSE NULL END, + MAX( + 37 ) )
----
37

skipif mysql # not compatible
query I rowsort label-1620
SELECT + COALESCE ( + CASE COUNT ( * ) WHEN + 48 THEN NULL WHEN + 71 * + 18 THEN + CAST ( + 88 AS INTEGER ) WHEN 70 - COALESCE ( CASE + 51 WHEN - CASE + COUNT ( DISTINCT - 3 ) WHEN - COUNT ( * ) THEN 16 - + 34 * COUNT ( * ) WHEN 80 THEN NULL ELSE 60 * - ( - 69 ) END THEN + 95 END, + ( + 29 ), 12 + - ( COUNT ( * ) + + ( - 28 + CAST ( NULL AS INTEGER ) ) ), + 90 * COUNT ( * ) ) THEN NULL ELSE NULL END, + MAX ( + 37 ) )
----
37

query I rowsort
SELECT ALL + 70 + + 67 AS col1
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-1622
SELECT ALL - - COUNT( + 14 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1622
SELECT ALL - - COUNT ( + 14 ) AS col1
----
1

query I rowsort
SELECT 8 + 4
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1624
SELECT ALL - + CAST( - + 37 AS SIGNED ) + + 59 * + + 82
----
4875

skipif mysql # not compatible
query I rowsort label-1624
SELECT ALL - + CAST ( - + 37 AS INTEGER ) + + 59 * + + 82
----
4875

onlyif mysql # aggregate syntax: 
query I rowsort label-1625
SELECT DISTINCT + ( - - COUNT( * ) ) + - 53 * CASE - 23 WHEN + 95 THEN NULL ELSE - 9 END AS col1
----
478

skipif mysql # not compatible
query I rowsort label-1625
SELECT DISTINCT + ( - - COUNT ( * ) ) + - 53 * CASE - 23 WHEN + 95 THEN NULL ELSE - 9 END AS col1
----
478

onlyif mysql # DIV for integer division: 
query I rowsort label-1626
SELECT DISTINCT + - 83 DIV - + 65 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1626
SELECT DISTINCT + - 83 / - + 65 AS col0
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1627
SELECT ALL + NULLIF ( 33, - 35 * CAST( NULL AS DECIMAL ) ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-1627
SELECT ALL + NULLIF ( 33, - 35 * CAST ( NULL AS REAL ) ) AS col2
----
33

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

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

query I rowsort
SELECT + 61 + - 35
----
26

query I rowsort
SELECT - NULLIF ( - 28, + 39 )
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-1631
SELECT CASE - 20 WHEN - COUNT( * ) THEN NULL WHEN - COALESCE ( - 41, - 63, 16 ) + + 90 THEN 60 END + + 0
----
NULL

skipif mysql # not compatible
query I rowsort label-1631
SELECT CASE - 20 WHEN - COUNT ( * ) THEN NULL WHEN - COALESCE ( - 41, - 63, 16 ) + + 90 THEN 60 END + + 0
----
NULL

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

query I rowsort
SELECT ALL + 85 * ( 9 )
----
765

query I rowsort
SELECT + 88 + 57
----
145

query I rowsort
SELECT 97 * 86
----
8342

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

skipif mysql # not compatible
query I rowsort label-1636
SELECT COUNT ( * ) * - 34
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-1637
SELECT DISTINCT - 41 * + + COUNT( * ) col0
----
-41

skipif mysql # not compatible
query I rowsort label-1637
SELECT DISTINCT - 41 * + + COUNT ( * ) col0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-1638
SELECT ALL + 87 - - + 24 * - NULLIF ( - CASE - 17 WHEN 24 THEN + 83 * MAX( ALL 2 * 89 ) END, + 52 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1638
SELECT ALL + 87 - - + 24 * - NULLIF ( - CASE - 17 WHEN 24 THEN + 83 * MAX ( ALL 2 * 89 ) END, + 52 ) AS col2
----
NULL

query II rowsort
SELECT ALL 53 col1, - 5 * - + 49
----
53
245

onlyif mysql # aggregate syntax: 
query I rowsort label-1640
SELECT DISTINCT CASE - 63 WHEN + + 71 + - COUNT( * ) * - 34 THEN + 60 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1640
SELECT DISTINCT CASE - 63 WHEN + + 71 + - COUNT ( * ) * - 34 THEN + 60 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1641
SELECT - 43 - - 67 * + 33 * + COUNT( * ) + + COUNT( DISTINCT + + 52 ) * 6 AS col0
----
2174

skipif mysql # not compatible
query I rowsort label-1641
SELECT - 43 - - 67 * + 33 * + COUNT ( * ) + + COUNT ( DISTINCT + + 52 ) * 6 AS col0
----
2174

onlyif mysql # aggregate syntax: 
query I rowsort label-1642
SELECT - COALESCE ( MIN( ALL + 18 ), - COALESCE ( 92, 15 ) )
----
-18

skipif mysql # not compatible
query I rowsort label-1642
SELECT - COALESCE ( MIN ( ALL + 18 ), - COALESCE ( 92, 15 ) )
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1643
SELECT DISTINCT ( - - 38 ) * CAST( NULL AS SIGNED ) * - MAX( - + 94 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1643
SELECT DISTINCT ( - - 38 ) * CAST ( NULL AS INTEGER ) * - MAX ( - + 94 )
----
NULL

query I rowsort
SELECT + 96 * CASE + - 6 WHEN + 32 THEN - 95 WHEN ( - 0 ) THEN NULL END * 61
----
NULL

query I rowsort
SELECT + 13 - - + NULLIF ( - 35, 30 ) + - 16 AS col2
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1646
SELECT ALL CAST( NULL AS SIGNED ) * 91 + 2 / - + COUNT( * ) * - - 62 / 86 * MAX( DISTINCT + CAST( NULL AS SIGNED ) ) + 84 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1646
SELECT ALL CAST ( NULL AS INTEGER ) * 91 + 2 / - + COUNT ( * ) * - - 62 / 86 * MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) + 84 AS col0
----
NULL

query II rowsort
SELECT ALL + 76 AS col1, 59 + + 83 AS col0
----
76
142

onlyif mysql # aggregate syntax: 
query I rowsort label-1648
SELECT + NULLIF ( + - COUNT( * ), - 93 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1648
SELECT + NULLIF ( + - COUNT ( * ), - 93 ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1649
SELECT ALL CAST( + 94 AS SIGNED ) * ( + - COUNT( * ) ) + - - CASE - 89 WHEN 51 + 93 THEN 65 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1649
SELECT ALL CAST ( + 94 AS INTEGER ) * ( + - COUNT ( * ) ) + - - CASE - 89 WHEN 51 + 93 THEN 65 END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1650
SELECT ALL + COALESCE ( 28, 1 - - CAST( - + 80 AS SIGNED ) )
----
28

skipif mysql # not compatible
query I rowsort label-1650
SELECT ALL + COALESCE ( 28, 1 - - CAST ( - + 80 AS INTEGER ) )
----
28

query I rowsort
SELECT + CASE 53 WHEN + - 58 THEN NULL WHEN 81 THEN NULL ELSE + + 17 END AS col1
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1652
SELECT 61 * + 23 * + + NULLIF ( - COUNT( * ), - 76 ) / - 15 * 4 + + 56 + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1652
SELECT 61 * + 23 * + + NULLIF ( - COUNT ( * ), - 76 ) / - 15 * 4 + + 56 + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1653
SELECT - + ( - + COUNT( * ) ) DIV - 36 * 56 + MIN( DISTINCT + + 44 )
----
44

skipif mysql # not compatible
query I rowsort label-1653
SELECT - + ( - + COUNT ( * ) ) / - 36 * 56 + MIN ( DISTINCT + + 44 )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-1654
SELECT + 69 * - + CASE + 54 WHEN - COUNT( * ) THEN - MAX( - 79 ) + ( + COUNT( * ) - + COUNT( * ) ) ELSE + 10 END * 62 - 12 * 28
----
-43116

skipif mysql # not compatible
query I rowsort label-1654
SELECT + 69 * - + CASE + 54 WHEN - COUNT ( * ) THEN - MAX ( - 79 ) + ( + COUNT ( * ) - + COUNT ( * ) ) ELSE + 10 END * 62 - 12 * 28
----
-43116

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1655
SELECT - COUNT( * ) DIV - 32 - 68
----
-68

skipif mysql # not compatible
query I rowsort label-1655
SELECT - COUNT ( * ) / - 32 - 68
----
-68

query I rowsort
SELECT DISTINCT + 27 * + + 8 + - 82
----
134

onlyif mysql # DIV for integer division: 
query I rowsort label-1657
SELECT DISTINCT - 33 DIV + 55 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1657
SELECT DISTINCT - 33 / + 55 AS col0
----
0

query I rowsort
SELECT + CASE + 62 WHEN 9 THEN + 92 END * COALESCE ( + 2, 67 * - 22 ) / + 81 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1659
SELECT + + MIN( DISTINCT + 46 ) DIV + + 77 col2
----
0

skipif mysql # not compatible
query I rowsort label-1659
SELECT + + MIN ( DISTINCT + 46 ) / + + 77 col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1660
SELECT ALL + - 70, + MAX( ALL + 7 ) AS col1
----
-70
7

skipif mysql # not compatible
query II rowsort label-1660
SELECT ALL + - 70, + MAX ( ALL + 7 ) AS col1
----
-70
7

query II rowsort
SELECT DISTINCT + - 44 AS col0, 5
----
-44
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1662
SELECT ALL + + CASE COALESCE ( 90, + MIN( - 65 ), + 30 / + 18 ) WHEN COUNT( * ) + 37 / + MIN( + 36 * 29 ) THEN NULL WHEN 22 * 47 + + ( 73 ) * 96 THEN NULL ELSE - 89 END
----
-89

skipif mysql # not compatible
query I rowsort label-1662
SELECT ALL + + CASE COALESCE ( 90, + MIN ( - 65 ), + 30 / + 18 ) WHEN COUNT ( * ) + 37 / + MIN ( + 36 * 29 ) THEN NULL WHEN 22 * 47 + + ( 73 ) * 96 THEN NULL ELSE - 89 END
----
-89

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

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

query I rowsort
SELECT + - 33 + + ( + 17 ) + 60 * - 63 AS col0
----
-3796

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1667
SELECT + MIN( ALL - 58 ) + + 24 + + + 84 DIV + 12
----
-27

skipif mysql # not compatible
query I rowsort label-1667
SELECT + MIN ( ALL - 58 ) + + 24 + + + 84 / + 12
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-1668
SELECT DISTINCT 55 * + 55 - COUNT( * ) + + 89 * + 77 * 96 * 19 - 52
----
12502844

skipif mysql # not compatible
query I rowsort label-1668
SELECT DISTINCT 55 * + 55 - COUNT ( * ) + + 89 * + 77 * 96 * 19 - 52
----
12502844

query II rowsort
SELECT + 4, 98 + - + 62 * + 99 * + 78 + 45 AS col0
----
4
-478621

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1671
SELECT ALL - CASE - - COUNT( * ) WHEN CAST( + 61 AS SIGNED ) + + - NULLIF ( + 77, + 4 ) * ( + 93 + 27 ) THEN NULL WHEN 26 * 48 THEN + 9 * 38 - - NULLIF ( - 75 + 33, + NULLIF ( + 54, + COUNT( * ) ) * 69 ) ELSE + 13 END * COUNT( * ) - + 54 * 94
----
-5089

skipif mysql # not compatible
query I rowsort label-1671
SELECT ALL - CASE - - COUNT ( * ) WHEN CAST ( + 61 AS INTEGER ) + + - NULLIF ( + 77, + 4 ) * ( + 93 + 27 ) THEN NULL WHEN 26 * 48 THEN + 9 * 38 - - NULLIF ( - 75 + 33, + NULLIF ( + 54, + COUNT ( * ) ) * 69 ) ELSE + 13 END * COUNT ( * ) - + 54 * 94
----
-5089

query I rowsort
SELECT - 3 * 19 * - CASE + 59 WHEN + 5 THEN NULL ELSE - - CASE 41 WHEN 84 * NULLIF ( AVG ( + 76 ), - 4 ) THEN 50 WHEN - 98 * + 32 + - 4 THEN NULL ELSE NULL END END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1673
SELECT + - ( - - 93 ) * - 84 - + + CAST( NULL AS SIGNED ) - - 16 - - 9 * - AVG ( DISTINCT - 51 ) * + 24
----
NULL

skipif mysql # not compatible
query I rowsort label-1673
SELECT + - ( - - 93 ) * - 84 - + + CAST ( NULL AS INTEGER ) - - 16 - - 9 * - AVG ( DISTINCT - 51 ) * + 24
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1674
SELECT DISTINCT ( CAST( - SUM( DISTINCT + 35 ) AS SIGNED ) ) col2
----
-35

skipif mysql # not compatible
query I rowsort label-1674
SELECT DISTINCT ( CAST ( - SUM ( DISTINCT + 35 ) AS INTEGER ) ) col2
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1675
SELECT - 80 + + CAST( NULL AS SIGNED ), + 76 AS col1
----
NULL
76

skipif mysql # not compatible
query II rowsort label-1675
SELECT - 80 + + CAST ( NULL AS INTEGER ), + 76 AS col1
----
NULL
76

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1676
SELECT ALL + CAST( - - 40 AS SIGNED ) DIV - 4 AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-1676
SELECT ALL + CAST ( - - 40 AS INTEGER ) / - 4 AS col2
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1677
SELECT DISTINCT CASE COUNT( ALL + CAST( 13 AS SIGNED ) ) WHEN + + COUNT( * ) - + - ( 66 ) + - 15 / 78 THEN + COUNT( DISTINCT 92 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1677
SELECT DISTINCT CASE COUNT ( ALL + CAST ( 13 AS INTEGER ) ) WHEN + + COUNT ( * ) - + - ( 66 ) + - 15 / 78 THEN + COUNT ( DISTINCT 92 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1678
SELECT - MAX( DISTINCT - + 8 ) AS col2, SUM( ALL 99 ) col2
----
8
99

skipif mysql # not compatible
query II rowsort label-1678
SELECT - MAX ( DISTINCT - + 8 ) AS col2, SUM ( ALL 99 ) col2
----
8
99

query I rowsort
SELECT - 32 * 52 * 81
----
-134784

onlyif mysql # DIV for integer division: 
query I rowsort label-1680
SELECT ALL - 65 DIV - 82
----
0

skipif mysql # not compatible
query I rowsort label-1680
SELECT ALL - 65 / - 82
----
0

query I rowsort
SELECT - 44 + - 47
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-1682
SELECT ALL - CASE + - 47 WHEN 90 THEN NULL WHEN + NULLIF ( 6, - 19 ) THEN - 18 END * MIN( 36 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1682
SELECT ALL - CASE + - 47 WHEN 90 THEN NULL WHEN + NULLIF ( 6, - 19 ) THEN - 18 END * MIN ( 36 )
----
NULL

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1685
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + + COALESCE ( - 28, - 73, + 47 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1685
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + + COALESCE ( - 28, - 73, + 47 ) col2
----
NULL

query I rowsort
SELECT ALL - 65 + - 19 AS col1
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1687
SELECT DISTINCT CASE + 33 WHEN + - 36 / - + CAST( 38 AS SIGNED ) * + COALESCE ( - COALESCE ( + ( CASE ( 84 ) WHEN 37 THEN NULL ELSE 43 + - 31 * 99 END ), 55 ), - COUNT( * ), ( 74 ) - 48 ) + + SUM( ALL 16 ) THEN 69 WHEN ( + 95 ) THEN 75 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1687
SELECT DISTINCT CASE + 33 WHEN + - 36 / - + CAST ( 38 AS INTEGER ) * + COALESCE ( - COALESCE ( + ( CASE ( 84 ) WHEN 37 THEN NULL ELSE 43 + - 31 * 99 END ), 55 ), - COUNT ( * ), ( 74 ) - 48 ) + + SUM ( ALL 16 ) THEN 69 WHEN ( + 95 ) THEN 75 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1688
SELECT ALL 84 + + 53 + + 68 AS col0, SUM( DISTINCT - 92 ) - + 48 col1
----
205
-140

skipif mysql # not compatible
query II rowsort label-1688
SELECT ALL 84 + + 53 + + 68 AS col0, SUM ( DISTINCT - 92 ) - + 48 col1
----
205
-140

onlyif mysql # aggregate syntax: 
query I rowsort label-1689
SELECT - MAX( DISTINCT - 5 ) + + 2
----
7

skipif mysql # not compatible
query I rowsort label-1689
SELECT - MAX ( DISTINCT - 5 ) + + 2
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1690
SELECT ALL + CAST( 43 AS SIGNED ) * - MIN( ALL + + 53 ) AS col2
----
-2279

skipif mysql # not compatible
query I rowsort label-1690
SELECT ALL + CAST ( 43 AS INTEGER ) * - MIN ( ALL + + 53 ) AS col2
----
-2279

query I rowsort
SELECT + 66 + + NULLIF ( 55, 40 - COALESCE ( - + 14, 46 ) ) * 98 AS col0
----
5456

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1693
SELECT ALL + CASE - 75 WHEN + ( 73 ) - + - 35 THEN NULL ELSE COUNT( * ) END + + + NULLIF ( 36, COUNT( * ) * - 76 )
----
37

skipif mysql # not compatible
query I rowsort label-1693
SELECT ALL + CASE - 75 WHEN + ( 73 ) - + - 35 THEN NULL ELSE COUNT ( * ) END + + + NULLIF ( 36, COUNT ( * ) * - 76 )
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-1694
SELECT - 49 * ( - + 62 ) * - COALESCE ( + 8, - 9 * - 31 ) + COUNT( * ) * 73
----
-24231

skipif mysql # not compatible
query I rowsort label-1694
SELECT - 49 * ( - + 62 ) * - COALESCE ( + 8, - 9 * - 31 ) + COUNT ( * ) * 73
----
-24231

onlyif mysql # aggregate syntax: 
query I rowsort label-1695
SELECT + 41 * - 88 + + MAX( ALL - - 30 ) + + COUNT( * ) * - + 14 AS col0
----
-3592

skipif mysql # not compatible
query I rowsort label-1695
SELECT + 41 * - 88 + + MAX ( ALL - - 30 ) + + COUNT ( * ) * - + 14 AS col0
----
-3592

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1697
SELECT DISTINCT 8 DIV - + 30 + - + 52 AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-1697
SELECT DISTINCT 8 / - + 30 + - + 52 AS col0
----
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1698
SELECT ALL - COUNT( * ) DIV COUNT( - ( 95 ) ) + 50 + + - 78 AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-1698
SELECT ALL - COUNT ( * ) / COUNT ( - ( 95 ) ) + 50 + + - 78 AS col2
----
-29

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1700
SELECT ALL + MIN( - + 90 ) DIV + - CASE - 75 WHEN - + 84 + + + 74 + + - MIN( 93 ) + COUNT( * ) THEN NULL ELSE - 60 + 18 * ( 81 + - 88 ) END
----
0

skipif mysql # not compatible
query I rowsort label-1700
SELECT ALL + MIN ( - + 90 ) / + - CASE - 75 WHEN - + 84 + + + 74 + + - MIN ( 93 ) + COUNT ( * ) THEN NULL ELSE - 60 + 18 * ( 81 + - 88 ) END
----
0

query II rowsort
SELECT DISTINCT + - ( - - 53 ) AS col2, + 50
----
-53
50

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1702
SELECT ALL + 93 / COUNT( DISTINCT - 69 ) - - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1702
SELECT ALL + 93 / COUNT ( DISTINCT - 69 ) - - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1703
SELECT + + COALESCE ( + CAST( NULL AS SIGNED ), - 57 ) - 32 * - 11
----
295

skipif mysql # not compatible
query I rowsort label-1703
SELECT + + COALESCE ( + CAST ( NULL AS INTEGER ), - 57 ) - 32 * - 11
----
295

query I rowsort
SELECT 82 * 85 + - - 36
----
7006

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1705
SELECT DISTINCT CAST( NULL AS SIGNED ) / - COUNT( * ) - + 63 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1705
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - COUNT ( * ) - + 63 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1706
SELECT - SUM( ALL + 79 ) AS col2, + 16 col1
----
-79
16

skipif mysql # not compatible
query II rowsort label-1706
SELECT - SUM ( ALL + 79 ) AS col2, + 16 col1
----
-79
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1707
SELECT - 48 / ( CAST( NULL AS SIGNED ) ) + + SUM( + 71 ) AS col0, 31
----
NULL
31

skipif mysql # not compatible
query II rowsort label-1707
SELECT - 48 / ( CAST ( NULL AS INTEGER ) ) + + SUM ( + 71 ) AS col0, 31
----
NULL
31

onlyif mysql # aggregate syntax: 
query I rowsort label-1708
SELECT + 87 * - 85 * - COUNT( * )
----
7395

skipif mysql # not compatible
query I rowsort label-1708
SELECT + 87 * - 85 * - COUNT ( * )
----
7395

onlyif mysql # aggregate syntax: 
query I rowsort label-1709
SELECT - - COUNT( * ) + ( + - 33 ) * 46
----
-1517

skipif mysql # not compatible
query I rowsort label-1709
SELECT - - COUNT ( * ) + ( + - 33 ) * 46
----
-1517

onlyif mysql # aggregate syntax: 
query I rowsort label-1710
SELECT COUNT( * ) + + COUNT( * ) + - 8 + + + SUM( ALL 79 ) * + + 4 AS col0
----
310

skipif mysql # not compatible
query I rowsort label-1710
SELECT COUNT ( * ) + + COUNT ( * ) + - 8 + + + SUM ( ALL 79 ) * + + 4 AS col0
----
310

onlyif mysql # aggregate syntax: 
query I rowsort label-1711
SELECT - - 71 * 29 * + 22 + 34 + 63 - COUNT( * ) * 21
----
45374

skipif mysql # not compatible
query I rowsort label-1711
SELECT - - 71 * 29 * + 22 + 34 + 63 - COUNT ( * ) * 21
----
45374

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1713
SELECT ALL - CASE WHEN NOT NULL <> ( + 58 ) THEN + CASE - ( AVG ( DISTINCT + 67 ) ) WHEN - COUNT( * ) THEN - 11 WHEN MAX( DISTINCT 41 ) THEN NULL WHEN 93 THEN NULL ELSE - NULLIF ( + 72, + COUNT( * ) * 26 - + 68 ) + - 2 END WHEN NOT COUNT( * ) * MAX( ALL - 56 ) NOT IN ( COALESCE ( - 56, + COUNT( * ) * 70 ) * + 59 ) THEN CAST( NULL AS SIGNED ) ELSE 57 * 55 END DIV 76 AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-1713
SELECT ALL - CASE WHEN NOT NULL <> ( + 58 ) THEN + CASE - ( AVG ( DISTINCT + 67 ) ) WHEN - COUNT ( * ) THEN - 11 WHEN MAX ( DISTINCT 41 ) THEN NULL WHEN 93 THEN NULL ELSE - NULLIF ( + 72, + COUNT ( * ) * 26 - + 68 ) + - 2 END WHEN NOT COUNT ( * ) * MAX ( ALL - 56 ) NOT IN ( COALESCE ( - 56, + COUNT ( * ) * 70 ) * + 59 ) THEN CAST ( NULL AS INTEGER ) ELSE 57 * 55 END / 76 AS col0
----
-41

query I rowsort
SELECT 26 * - + 73 col2
----
-1898

query I rowsort
SELECT 32 + 75
----
107

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

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

query I rowsort
SELECT ALL - 69 * + 58
----
-4002

query I rowsort
SELECT 97 * + 18 + + + 72
----
1818

query II rowsort
SELECT ALL 58 AS col0, + 21 - 99
----
58
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-1720
SELECT ALL + 97 + + - 97 * + COALESCE ( - 0, - 55, - 13 * + 95 ) * + + 52 + - MAX( ALL 3 - + 43 * 59 ) AS col1
----
2631

skipif mysql # not compatible
query I rowsort label-1720
SELECT ALL + 97 + + - 97 * + COALESCE ( - 0, - 55, - 13 * + 95 ) * + + 52 + - MAX ( ALL 3 - + 43 * 59 ) AS col1
----
2631

query II rowsort
SELECT ALL 68 AS col1, + 1
----
68
1

query I rowsort
SELECT DISTINCT - 52 + - + 33
----
-85

query I rowsort
SELECT ALL - 7 * - - ( 35 ) AS col0
----
-245

onlyif mysql # DIV for integer division: 
query I rowsort label-1724
SELECT 60 DIV 33 * - 95
----
-95

skipif mysql # not compatible
query I rowsort label-1724
SELECT 60 / 33 * - 95
----
-95

query I rowsort
SELECT 31 - - + 4 * - ( + ( + + 4 ) ) * 5 + + ( 53 ) + 67 * + 95
----
6369

onlyif mysql # aggregate syntax: 
query I rowsort label-1726
SELECT 66 * + MAX( - - 94 ) AS col0
----
6204

skipif mysql # not compatible
query I rowsort label-1726
SELECT 66 * + MAX ( - - 94 ) AS col0
----
6204

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

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

query I rowsort
SELECT ALL - 7 * - 38 * - 85
----
-22610

onlyif mysql # aggregate syntax: 
query II rowsort label-1729
SELECT 50 + + 99 + - 74, - COUNT( * ) * 67 + 79 AS col2
----
75
12

skipif mysql # not compatible
query II rowsort label-1729
SELECT 50 + + 99 + - 74, - COUNT ( * ) * 67 + 79 AS col2
----
75
12

onlyif mysql # DIV for integer division: 
query I rowsort label-1730
SELECT 86 DIV 40 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-1730
SELECT 86 / 40 AS col0
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-1731
SELECT DISTINCT - ( COALESCE ( ( + 48 ), + 66 ) ) * 24 DIV - 54 + 55 + + 81 * 24 AS col2
----
2020

skipif mysql # not compatible
query I rowsort label-1731
SELECT DISTINCT - ( COALESCE ( ( + 48 ), + 66 ) ) * 24 / - 54 + 55 + + 81 * 24 AS col2
----
2020

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1732
SELECT + 55 - - - COUNT( * ) + 18 - + 99 DIV - 33
----
75

skipif mysql # not compatible
query I rowsort label-1732
SELECT + 55 - - - COUNT ( * ) + 18 - + 99 / - 33
----
75

query I rowsort
SELECT DISTINCT - 30 * + 57 AS col2
----
-1710

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1734
SELECT + 82 + 69 + + COUNT( * ) DIV - 61 * - + 81
----
151

skipif mysql # not compatible
query I rowsort label-1734
SELECT + 82 + 69 + + COUNT ( * ) / - 61 * - + 81
----
151

query I rowsort
SELECT + - 82 * - 89 + - - 63 AS col0
----
7361

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

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

query I rowsort
SELECT - 49 + - 83 col0
----
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-1738
SELECT + 58 * COALESCE ( + 13, MAX( ALL 45 ) )
----
754

skipif mysql # not compatible
query I rowsort label-1738
SELECT + 58 * COALESCE ( + 13, MAX ( ALL 45 ) )
----
754

query II rowsort
SELECT + 27 AS col2, 77 * 16
----
27
1232

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1740
SELECT - - 10 DIV 50 - - - MAX( + COALESCE ( + + ( - - 68 ), 49 ) ) * + 19 * - 37 AS col2
----
47804

skipif mysql # not compatible
query I rowsort label-1740
SELECT - - 10 / 50 - - - MAX ( + COALESCE ( + + ( - - 68 ), 49 ) ) * + 19 * - 37 AS col2
----
47804

query I rowsort
SELECT ALL - 98 * 18 * - ( - - 52 ) AS col1
----
91728

query I rowsort
SELECT 31 * + + 45 AS col2
----
1395

onlyif mysql # aggregate syntax: 
query I rowsort label-1743
SELECT - + 81 * + ( + 53 ) * 29 - AVG ( DISTINCT + + 64 ) * + CASE - 77 WHEN 63 THEN - 41 / COUNT( * ) - 33 WHEN + 62 THEN NULL ELSE NULL END + - 34
----
NULL

skipif mysql # not compatible
query I rowsort label-1743
SELECT - + 81 * + ( + 53 ) * 29 - AVG ( DISTINCT + + 64 ) * + CASE - 77 WHEN 63 THEN - 41 / COUNT ( * ) - 33 WHEN + 62 THEN NULL ELSE NULL END + - 34
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1744
SELECT DISTINCT - - COUNT ( + - 38 ) * - MIN ( ALL + + CAST ( NULL AS INTEGER ) )
----
NULL

query II rowsort
SELECT ALL - 11 AS col1, 98
----
-11
98

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1747
SELECT COUNT( * ) + - CAST( + 14 AS SIGNED ) + - NULLIF ( - 41, - + 50 + - - 29 ) * - + 97 AS col1
----
-3990

skipif mysql # not compatible
query I rowsort label-1747
SELECT COUNT ( * ) + - CAST ( + 14 AS INTEGER ) + - NULLIF ( - 41, - + 50 + - - 29 ) * - + 97 AS col1
----
-3990

query I rowsort
SELECT DISTINCT 80 * + + 68
----
5440

query I rowsort
SELECT ALL 8 + 8 * 36 * - + 87 - + - 55 AS col1
----
-24993

query I rowsort
SELECT 32 + 0 AS col1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-1751
SELECT COALESCE ( 93, - COUNT( * ) * + 61 - - 37 * + 11 + - NULLIF ( + MAX( ALL - 84 ), 70 * + 49 ) + - 55 * + ( - COUNT( * ) ), + ( MIN( 14 ) ) * 30 ) + 92 * + COUNT( * ) AS col1
----
185

skipif mysql # not compatible
query I rowsort label-1751
SELECT COALESCE ( 93, - COUNT ( * ) * + 61 - - 37 * + 11 + - NULLIF ( + MAX ( ALL - 84 ), 70 * + 49 ) + - 55 * + ( - COUNT ( * ) ), + ( MIN ( 14 ) ) * 30 ) + 92 * + COUNT ( * ) AS col1
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-1752
SELECT DISTINCT + 93 * COUNT( * ) * - 95 * - 30 AS col0
----
265050

skipif mysql # not compatible
query I rowsort label-1752
SELECT DISTINCT + 93 * COUNT ( * ) * - 95 * - 30 AS col0
----
265050

onlyif mysql # aggregate syntax: 
query I rowsort label-1753
SELECT ALL 72 + - SUM( DISTINCT + - 82 ) AS col1
----
154

skipif mysql # not compatible
query I rowsort label-1753
SELECT ALL 72 + - SUM ( DISTINCT + - 82 ) AS col1
----
154

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1755
SELECT 67 - - 75 + 44 + + - 58 AS col1, COUNT( * ) * 45
----
128
45

skipif mysql # not compatible
query II rowsort label-1755
SELECT 67 - - 75 + 44 + + - 58 AS col1, COUNT ( * ) * 45
----
128
45

query I rowsort
SELECT 41 + + - 70 AS col2
----
-29

query II rowsort
SELECT 76 - + + 71, - 77 + + 16 AS col1
----
5
-61

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

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

query II rowsort
SELECT ALL 6 * - 27, + 55 AS col2
----
-162
55

onlyif mysql # aggregate syntax: 
query I rowsort label-1760
SELECT 51 + + - 32 + - COUNT( * ) + 7 AS col0
----
25

skipif mysql # not compatible
query I rowsort label-1760
SELECT 51 + + - 32 + - COUNT ( * ) + 7 AS col0
----
25

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

skipif mysql # not compatible
query I rowsort label-1761
SELECT 97 + - - 19 + - + COUNT ( * ) AS col2
----
115

query I rowsort
SELECT ALL 36 - + + 60
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-1763
SELECT 28 * - MIN( ALL - ( - 15 ) ) * - 36 + - + 27
----
15093

skipif mysql # not compatible
query I rowsort label-1763
SELECT 28 * - MIN ( ALL - ( - 15 ) ) * - 36 + - + 27
----
15093

onlyif mysql # aggregate syntax: 
query I rowsort label-1764
SELECT - SUM( ALL - - 44 ) + + 7 * + - COUNT( * )
----
-51

skipif mysql # not compatible
query I rowsort label-1764
SELECT - SUM ( ALL - - 44 ) + + 7 * + - COUNT ( * )
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1765
SELECT DISTINCT + - 24 - + SUM( - CAST( NULL AS SIGNED ) ) * + 45
----
NULL

skipif mysql # not compatible
query I rowsort label-1765
SELECT DISTINCT + - 24 - + SUM ( - CAST ( NULL AS INTEGER ) ) * + 45
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1766
SELECT + 29 + - 90 AS col2, - CASE ( - + NULLIF ( + 43, - - COUNT( * ) ) ) WHEN + 33 THEN + 41 END AS col0
----
-61
NULL

skipif mysql # not compatible
query II rowsort label-1766
SELECT + 29 + - 90 AS col2, - CASE ( - + NULLIF ( + 43, - - COUNT ( * ) ) ) WHEN + 33 THEN + 41 END AS col0
----
-61
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1767
SELECT COUNT( * ) + + + 17 + + 51
----
69

skipif mysql # not compatible
query I rowsort label-1767
SELECT COUNT ( * ) + + + 17 + + 51
----
69

query I rowsort
SELECT ( - 1 ) * 84 + - 33
----
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-1769
SELECT - COALESCE ( + - NULLIF ( - - COUNT( * ), 12 ), - 79 * 97 * + + 15 ) * 27 AS col0
----
27

skipif mysql # not compatible
query I rowsort label-1769
SELECT - COALESCE ( + - NULLIF ( - - COUNT ( * ), 12 ), - 79 * 97 * + + 15 ) * 27 AS col0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-1770
SELECT DISTINCT + + NULLIF ( + 63, + 59 ) * + COUNT( * ) * + ( + + COUNT( * ) ) + + + 80 + 58
----
201

skipif mysql # not compatible
query I rowsort label-1770
SELECT DISTINCT + + NULLIF ( + 63, + 59 ) * + COUNT ( * ) * + ( + + COUNT ( * ) ) + + + 80 + 58
----
201

query I rowsort
SELECT ALL + + 99 * - + 57 AS col0
----
-5643

onlyif mysql # aggregate syntax: 
query I rowsort label-1772
SELECT DISTINCT - + 36 * + + SUM( + 8 )
----
-288

skipif mysql # not compatible
query I rowsort label-1772
SELECT DISTINCT - + 36 * + + SUM ( + 8 )
----
-288

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1773
SELECT - 65 / + + 99 * - CASE CASE + - 6 WHEN + 4 THEN - CAST( NULL AS SIGNED ) / + COUNT( * ) + - - 83 WHEN + 56 / MAX( ALL 6 * + 9 ) THEN NULL ELSE NULL END WHEN 27 / NULLIF ( + 82, - 7 ) - - 19 THEN 15 END + 39
----
NULL

skipif mysql # not compatible
query I rowsort label-1773
SELECT - 65 / + + 99 * - CASE CASE + - 6 WHEN + 4 THEN - CAST ( NULL AS INTEGER ) / + COUNT ( * ) + - - 83 WHEN + 56 / MAX ( ALL 6 * + 9 ) THEN NULL ELSE NULL END WHEN 27 / NULLIF ( + 82, - 7 ) - - 19 THEN 15 END + 39
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1774
SELECT - CASE - COUNT( * ) WHEN - 98 THEN + 99 * - 65 WHEN - - 55 + - - 96 THEN NULL ELSE NULL END + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1774
SELECT - CASE - COUNT ( * ) WHEN - 98 THEN + 99 * - 65 WHEN - - 55 + - - 96 THEN NULL ELSE NULL END + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1775
SELECT - 77 * + + 65 * MIN( + + 91 ) * 31 + + 60 DIV + ( COUNT( * ) )
----
-14119045

skipif mysql # not compatible
query I rowsort label-1775
SELECT - 77 * + + 65 * MIN ( + + 91 ) * 31 + + 60 / + ( COUNT ( * ) )
----
-14119045

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1777
SELECT DISTINCT + 35 * - 5 + + 77 AS col0, 66 * - - SUM( + CAST( NULL AS SIGNED ) ) AS col0
----
-98
NULL

skipif mysql # not compatible
query II rowsort label-1777
SELECT DISTINCT + 35 * - 5 + + 77 AS col0, 66 * - - SUM ( + CAST ( NULL AS INTEGER ) ) AS col0
----
-98
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1778
SELECT ALL - 52 * - 97 + + + 37 AS col0, - CAST( - + 60 AS SIGNED ) + 97 + 78 + - - 12 AS col1
----
5081
247

skipif mysql # not compatible
query II rowsort label-1778
SELECT ALL - 52 * - 97 + + + 37 AS col0, - CAST ( - + 60 AS INTEGER ) + 97 + 78 + - - 12 AS col1
----
5081
247

onlyif mysql # DIV for integer division: 
query I rowsort label-1779
SELECT ALL - 2 * CASE + - ( ( + 55 ) ) WHEN 84 THEN NULL ELSE + 10 END DIV 67 + - 26
----
-26

skipif mysql # not compatible
query I rowsort label-1779
SELECT ALL - 2 * CASE + - ( ( + 55 ) ) WHEN 84 THEN NULL ELSE + 10 END / 67 + - 26
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-1780
SELECT 97 * - COUNT( * ) + - - 44
----
-53

skipif mysql # not compatible
query I rowsort label-1780
SELECT 97 * - COUNT ( * ) + - - 44
----
-53

query I rowsort
SELECT DISTINCT 26 * + 13
----
338

onlyif mysql # aggregate syntax: 
query I rowsort label-1782
SELECT DISTINCT - MIN( DISTINCT + 96 ) * - + 14 + + COALESCE ( 33, + - 4 ) AS col2
----
1377

skipif mysql # not compatible
query I rowsort label-1782
SELECT DISTINCT - MIN ( DISTINCT + 96 ) * - + 14 + + COALESCE ( 33, + - 4 ) AS col2
----
1377

query I rowsort
SELECT + 49 - - + 98
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-1784
SELECT ALL 61 * - COALESCE ( COUNT( * ), 88, 56 + + 21 + + 98 )
----
-61

skipif mysql # not compatible
query I rowsort label-1784
SELECT ALL 61 * - COALESCE ( COUNT ( * ), 88, 56 + + 21 + + 98 )
----
-61

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1786
SELECT ALL + ( COUNT( * ) ) + + - 77 - + 44 AS col0
----
-120

skipif mysql # not compatible
query I rowsort label-1786
SELECT ALL + ( COUNT ( * ) ) + + - 77 - + 44 AS col0
----
-120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1787
SELECT DISTINCT - MAX( + 7 ) + + COUNT( * ) + - 20 + + 20 + - COUNT( + + CAST( NULL AS SIGNED ) ) - + 68 + - 27 - - ( + ( 49 ) ) DIV CAST( + ( + 80 ) * COALESCE ( CAST( NULL AS SIGNED ) DIV COUNT( * ), - 56, - 4 * MIN( DISTINCT 39 * + 98 ) + + 52 ) AS SIGNED ) * 30 * - 56 * 11 AS col1
----
-101

skipif mysql # not compatible
query I rowsort label-1787
SELECT DISTINCT - MAX ( + 7 ) + + COUNT ( * ) + - 20 + + 20 + - COUNT ( + + CAST ( NULL AS INTEGER ) ) - + 68 + - 27 - - ( + ( 49 ) ) / CAST ( + ( + 80 ) * COALESCE ( CAST ( NULL AS INTEGER ) / COUNT ( * ), - 56, - 4 * MIN ( DISTINCT 39 * + 98 ) + + 52 ) AS INTEGER ) * 30 * - 56 * 11 AS col1
----
-101

onlyif mysql # DIV for integer division: 
query I rowsort label-1788
SELECT + 61 + 37 + + + 14 DIV 49 - + 40 AS col2
----
58

skipif mysql # not compatible
query I rowsort label-1788
SELECT + 61 + 37 + + + 14 / 49 - + 40 AS col2
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1789
SELECT - CASE + 65 WHEN + 32 * + - 46 THEN - - 68 WHEN - - CAST( NULL AS SIGNED ) THEN - AVG ( ALL - - 64 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1789
SELECT - CASE + 65 WHEN + 32 * + - 46 THEN - - 68 WHEN - - CAST ( NULL AS INTEGER ) THEN - AVG ( ALL - - 64 ) END AS col1
----
NULL

query I rowsort
SELECT ALL 25 * - 61
----
-1525

query I rowsort
SELECT ALL 19 - + 88 + + 74 + - + CASE + 48 WHEN - + 25 * 62 + - - COALESCE ( 52, + + 17 + - 17 ) THEN NULL WHEN 97 THEN 59 * 72 END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1792
SELECT ALL 95 DIV - 71 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1792
SELECT ALL 95 / - 71 AS col1
----
-1

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

skipif mysql # not compatible
query I rowsort label-1793
SELECT DISTINCT COUNT ( * ) / + ( + + 69 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1794
SELECT - COALESCE ( MAX( - 46 ), 33 + - 89 * + 9 ) AS col1, - 0 DIV + ( + COUNT( * ) ) + 84 + - ( + 8 + - 31 )
----
46
107

skipif mysql # not compatible
query II rowsort label-1794
SELECT - COALESCE ( MAX ( - 46 ), 33 + - 89 * + 9 ) AS col1, - 0 / + ( + COUNT ( * ) ) + 84 + - ( + 8 + - 31 )
----
46
107

query I rowsort
SELECT ALL 81 * + + 81 * 15
----
98415

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-1796
SELECT + 72 AS col1, 60 DIV + - 29 AS col1, + ( COUNT( * ) ) + 96 AS col2
----
72
-2
97

skipif mysql # not compatible
query III rowsort label-1796
SELECT + 72 AS col1, 60 / + - 29 AS col1, + ( COUNT ( * ) ) + 96 AS col2
----
72
-2
97

onlyif mysql # DIV for integer division: 
query I rowsort label-1797
SELECT ALL + 72 DIV 53 DIV + 44 * - - 23 * 61 * 74 + + 99
----
99

skipif mysql # not compatible
query I rowsort label-1797
SELECT ALL + 72 / 53 / + 44 * - - 23 * 61 * 74 + + 99
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-1798
SELECT + - ( + - 98 ) DIV - 80
----
-1

skipif mysql # not compatible
query I rowsort label-1798
SELECT + - ( + - 98 ) / - 80
----
-1

query I rowsort
SELECT + - 92 + + 58
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-1800
SELECT + + MAX( + 66 ) * + 93 * - - 30 AS col0
----
184140

skipif mysql # not compatible
query I rowsort label-1800
SELECT + + MAX ( + 66 ) * + 93 * - - 30 AS col0
----
184140

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1802
SELECT + + 17 + COUNT( * ) * + 82 * 39 + - + 2 - + + 73 + 74 * + 89 + + 64 * ( 7 ) + + 47 * MIN( 6 * 88 ) col2
----
34990

skipif mysql # not compatible
query I rowsort label-1802
SELECT + + 17 + COUNT ( * ) * + 82 * 39 + - + 2 - + + 73 + 74 * + 89 + + 64 * ( 7 ) + + 47 * MIN ( 6 * 88 ) col2
----
34990

onlyif mysql # aggregate syntax: 
query I rowsort label-1803
SELECT + - COUNT( * ) + - 20 * + 15 + + 87
----
-214

skipif mysql # not compatible
query I rowsort label-1803
SELECT + - COUNT ( * ) + - 20 * + 15 + + 87
----
-214

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1805
SELECT + 54 - - + 59 - - CASE 82 WHEN + 44 * + + CAST( 77 AS SIGNED ) + + + ( - 51 ) + 40 + - 20 + 62 * NULLIF ( COUNT( * ) * MAX( 57 * + 42 ), 10 ) THEN COUNT( * ) * 30 + 56 ELSE 47 END * - 26 col1
----
-1109

skipif mysql # not compatible
query I rowsort label-1805
SELECT + 54 - - + 59 - - CASE 82 WHEN + 44 * + + CAST ( 77 AS INTEGER ) + + + ( - 51 ) + 40 + - 20 + 62 * NULLIF ( COUNT ( * ) * MAX ( 57 * + 42 ), 10 ) THEN COUNT ( * ) * 30 + 56 ELSE 47 END * - 26 col1
----
-1109

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1806
SELECT DISTINCT 28 * + + 39 * - 31 + + + 36 + 14 * NULLIF ( + 91, + 22 * + COUNT( - + 5 ) + ( 9 ) * - ( 95 ) ) * + SUM( 71 ) + + 61 DIV - COUNT( * ) AS col0
----
56577

skipif mysql # not compatible
query I rowsort label-1806
SELECT DISTINCT 28 * + + 39 * - 31 + + + 36 + 14 * NULLIF ( + 91, + 22 * + COUNT ( - + 5 ) + ( 9 ) * - ( 95 ) ) * + SUM ( 71 ) + + 61 / - COUNT ( * ) AS col0
----
56577

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1807
SELECT DISTINCT 17 DIV - + 33 * COUNT( * ) + + ( + ( + ( + + 90 ) ) ) + + 21 * 36 AS col2
----
846

skipif mysql # not compatible
query I rowsort label-1807
SELECT DISTINCT 17 / - + 33 * COUNT ( * ) + + ( + ( + ( + + 90 ) ) ) + + 21 * 36 AS col2
----
846

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1808
SELECT - - MAX( - - 83 ) * + + 8, 23 * + + 29 + - CAST( + COUNT( * ) AS SIGNED ) + + - 41 AS col1
----
664
625

skipif mysql # not compatible
query II rowsort label-1808
SELECT - - MAX ( - - 83 ) * + + 8, 23 * + + 29 + - CAST ( + COUNT ( * ) AS INTEGER ) + + - 41 AS col1
----
664
625

query I rowsort
SELECT - 81 + + + 61
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1810
SELECT + + 40 + ( - CAST( NULL AS SIGNED ) ) + - 3 + - SUM( DISTINCT 83 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1810
SELECT + + 40 + ( - CAST ( NULL AS INTEGER ) ) + - 3 + - SUM ( DISTINCT 83 ) AS col2
----
NULL

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

onlyif mysql # DIV for integer division: 
query III rowsort label-1812
SELECT ( + COALESCE ( - + COALESCE ( - + 50, - - 82 ), + 48 ) ), NULLIF ( + 81, + 60 ) AS col0, - 48 * 90 DIV 8 col1
----
50
81
-540

skipif mysql # not compatible
query III rowsort label-1812
SELECT ( + COALESCE ( - + COALESCE ( - + 50, - - 82 ), + 48 ) ), NULLIF ( + 81, + 60 ) AS col0, - 48 * 90 / 8 col1
----
50
81
-540

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1813
SELECT ALL NULLIF ( - - 97, - - COUNT( CAST( + + 12 AS SIGNED ) ) ) DIV 4 col2
----
24

skipif mysql # not compatible
query I rowsort label-1813
SELECT ALL NULLIF ( - - 97, - - COUNT ( CAST ( + + 12 AS INTEGER ) ) ) / 4 col2
----
24

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

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

query I rowsort
SELECT ALL - 38 * - + 84 * + 43
----
137256

onlyif mysql # aggregate syntax: 
query I rowsort label-1816
SELECT ALL + NULLIF ( - COUNT( * ), + 28 ) * + 79 + - - COALESCE ( - - 94, + 72 ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-1816
SELECT ALL + NULLIF ( - COUNT ( * ), + 28 ) * + 79 + - - COALESCE ( - - 94, + 72 ) AS col1
----
15

query II rowsort
SELECT + 1 AS col2, 61 + 16
----
1
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1818
SELECT COALESCE ( - 59, + + COUNT( * ) ) AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-1818
SELECT COALESCE ( - 59, + + COUNT ( * ) ) AS col2
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1819
SELECT - 55 + 42 + - ( - + COUNT( * ) ) * + CAST( - 14 AS SIGNED ) * 86 * - + 97 * 10 AS col1
----
1167867

skipif mysql # not compatible
query I rowsort label-1819
SELECT - 55 + 42 + - ( - + COUNT ( * ) ) * + CAST ( - 14 AS INTEGER ) * 86 * - + 97 * 10 AS col1
----
1167867

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

skipif mysql # not compatible
query II rowsort label-1820
SELECT ALL + 5, COUNT ( * ) / + 97 AS col2
----
5
0

query I rowsort
SELECT 39 * - 36 + + 11 AS col0
----
-1393

query I rowsort
SELECT NULLIF ( - + ( 43 ), 6 * - AVG ( 35 ) )
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1823
SELECT + 13 * 90 * - - 4 / - 13 + 70 + - COALESCE ( + - 3, - 5 + ( - + 80 ) ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1823
SELECT + 13 * 90 * - - 4 / - 13 + 70 + - COALESCE ( + - 3, - 5 + ( - + 80 ) ) * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + CASE - 33 WHEN 63 * - 98 THEN NULL WHEN + 50 THEN COALESCE ( + 40, + - 61 + + 70 * + 23 ) * + 94 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1825
SELECT ALL 38 * + COUNT( * ) - - + 29
----
67

skipif mysql # not compatible
query I rowsort label-1825
SELECT ALL 38 * + COUNT ( * ) - - + 29
----
67

query I rowsort
SELECT + 51 * + 70 * - - 24 + 81
----
85761

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

skipif mysql # not compatible
query I rowsort label-1827
SELECT ALL ( - MAX ( ALL - 95 ) )
----
95

query I rowsort
SELECT - 1 + - 83
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1829
SELECT ALL SUM( DISTINCT - ( NULLIF ( COALESCE ( - CAST( NULL AS SIGNED ), 12, - NULLIF ( + - 70, - 5 ) ), - 28 + - 81 ) ) ) * + 73
----
-876

skipif mysql # not compatible
query I rowsort label-1829
SELECT ALL SUM ( DISTINCT - ( NULLIF ( COALESCE ( - CAST ( NULL AS INTEGER ), 12, - NULLIF ( + - 70, - 5 ) ), - 28 + - 81 ) ) ) * + 73
----
-876

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1831
SELECT + + COUNT( * ) + ( COUNT( DISTINCT + - 1 ) )
----
2

skipif mysql # not compatible
query I rowsort label-1831
SELECT + + COUNT ( * ) + ( COUNT ( DISTINCT + - 1 ) )
----
2

query I rowsort
SELECT - 88 + + 6 AS col0
----
-82

query I rowsort
SELECT - 2 + - 88 col2
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1834
SELECT + MIN( + CAST( + - 97 AS SIGNED ) ) + 9
----
-88

skipif mysql # not compatible
query I rowsort label-1834
SELECT + MIN ( + CAST ( + - 97 AS INTEGER ) ) + 9
----
-88

query II rowsort
SELECT 60 * + 78, + 32 AS col0
----
4680
32

query I rowsort
SELECT - 85 + 62 + - 23
----
-46

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

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

query I rowsort
SELECT ALL 82 + + 6
----
88

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

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

query I rowsort
SELECT ( + 95 ) + + 62 + + 63
----
220

onlyif mysql # DIV for integer division: 
query I rowsort label-1841
SELECT DISTINCT 39 DIV + - 40 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1841
SELECT DISTINCT 39 / + - 40 AS col0
----
0

query II rowsort
SELECT 99 AS col1, 70 + - 22 + - 27
----
99
21

query I rowsort
SELECT 9 * 4 * + 38 AS col1
----
1368

onlyif mysql # aggregate syntax: 
query I rowsort label-1844
SELECT - 1 + ( + 48 ) + 87 * + + COUNT( * ) * + 91 * 79 + + 44 AS col2
----
625534

skipif mysql # not compatible
query I rowsort label-1844
SELECT - 1 + ( + 48 ) + 87 * + + COUNT ( * ) * + 91 * 79 + + 44 AS col2
----
625534

onlyif mysql # aggregate syntax: 
query I rowsort label-1845
SELECT + 48 * + 54 * COUNT( * ) + - 6 + - 21
----
2565

skipif mysql # not compatible
query I rowsort label-1845
SELECT + 48 * + 54 * COUNT ( * ) + - 6 + - 21
----
2565

onlyif mysql # aggregate syntax: 
query I rowsort label-1846
SELECT ALL COUNT( 67 ) + 63 AS col0
----
64

skipif mysql # not compatible
query I rowsort label-1846
SELECT ALL COUNT ( 67 ) + 63 AS col0
----
64

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

skipif mysql # not compatible
query I rowsort label-1847
SELECT DISTINCT 28 + COUNT ( * ) AS col1
----
29

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1848
SELECT CAST( NULL AS DECIMAL ) * - - 19 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1848
SELECT CAST ( NULL AS REAL ) * - - 19 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1849
SELECT DISTINCT ( 95 ) + COUNT( * ) DIV 66 + + ( + + 97 ) + - 13 col0, 63 AS col0
----
179
63

skipif mysql # not compatible
query II rowsort label-1849
SELECT DISTINCT ( 95 ) + COUNT ( * ) / 66 + + ( + + 97 ) + - 13 col0, 63 AS col0
----
179
63

query II rowsort
SELECT DISTINCT - 34 - - + 75 AS col2, 59 AS col0
----
41
59

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1852
SELECT COUNT( * ) - - - COUNT( + 21 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1852
SELECT COUNT ( * ) - - - COUNT ( + 21 ) AS col0
----
0

query I rowsort
SELECT DISTINCT + 34 - + 0 * + 73
----
34

query I rowsort
SELECT 50 * + ( + + 71 ) * + 36 * + - 47 + + 48
----
-6006552

onlyif mysql # aggregate syntax: 
query II rowsort label-1855
SELECT DISTINCT - 62 * 26 AS col2, COUNT( DISTINCT - - 55 )
----
-1612
1

skipif mysql # not compatible
query II rowsort label-1855
SELECT DISTINCT - 62 * 26 AS col2, COUNT ( DISTINCT - - 55 )
----
-1612
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1856
SELECT DISTINCT 48 DIV - + ( + + 94 )
----
0

skipif mysql # not compatible
query I rowsort label-1856
SELECT DISTINCT 48 / - + ( + + 94 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1857
SELECT 95 / CASE + MIN( DISTINCT - - 3 ) WHEN - 74 * + - 77 * + 71 * + 93 * + - ( - 82 ) / + + 21 + - 2 THEN 64 / 75 WHEN MIN( DISTINCT + 16 ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1857
SELECT 95 / CASE + MIN ( DISTINCT - - 3 ) WHEN - 74 * + - 77 * + 71 * + 93 * + - ( - 82 ) / + + 21 + - 2 THEN 64 / 75 WHEN MIN ( DISTINCT + 16 ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1858
SELECT MIN( + - 41 ) * COUNT( * )
----
-41

skipif mysql # not compatible
query I rowsort label-1858
SELECT MIN ( + - 41 ) * COUNT ( * )
----
-41

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1860
SELECT DISTINCT - MAX( ALL + 56 ) + COUNT( * ) AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-1860
SELECT DISTINCT - MAX ( ALL + 56 ) + COUNT ( * ) AS col2
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-1861
SELECT ALL - + ( 15 ) * 53 * + 60 * + + COUNT( * )
----
-47700

skipif mysql # not compatible
query I rowsort label-1861
SELECT ALL - + ( 15 ) * 53 * + 60 * + + COUNT ( * )
----
-47700

query I rowsort
SELECT ALL + 29 + - ( - 62 ) + + ( 85 )
----
176

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1863
SELECT 85 + + + MIN( DISTINCT 56 ) * - 60 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1863
SELECT 85 + + + MIN ( DISTINCT 56 ) * - 60 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1864
SELECT ALL - + 62 * + 49 AS col2, + CAST( NULL AS SIGNED ) - + 69 + 42 + - - 4
----
-3038
NULL

skipif mysql # not compatible
query II rowsort label-1864
SELECT ALL - + 62 * + 49 AS col2, + CAST ( NULL AS INTEGER ) - + 69 + 42 + - - 4
----
-3038
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1865
SELECT 31 + - COALESCE ( - 37, - CAST( NULL AS SIGNED ) )
----
68

skipif mysql # not compatible
query I rowsort label-1865
SELECT 31 + - COALESCE ( - 37, - CAST ( NULL AS INTEGER ) )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-1866
SELECT - COALESCE ( SUM( ALL - 43 ), + COUNT( * ) * - 35 + + 74 + 28 - + 92 ) + - + 0
----
43

skipif mysql # not compatible
query I rowsort label-1866
SELECT - COALESCE ( SUM ( ALL - 43 ), + COUNT ( * ) * - 35 + + 74 + 28 - + 92 ) + - + 0
----
43

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1867
SELECT COUNT( * ) * + CASE ( + - 35 ) WHEN + 93 + + MIN( ALL 5 ) THEN NULL WHEN + - 89 * + COALESCE ( + 39, COALESCE ( 28, - COUNT( - CAST( NULL AS DECIMAL ) ) ) ) - 56 + - 44 THEN - 90 / ( + 84 ) ELSE NULL END - + 51 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1867
SELECT COUNT ( * ) * + CASE ( + - 35 ) WHEN + 93 + + MIN ( ALL 5 ) THEN NULL WHEN + - 89 * + COALESCE ( + 39, COALESCE ( 28, - COUNT ( - CAST ( NULL AS REAL ) ) ) ) - 56 + - 44 THEN - 90 / ( + 84 ) ELSE NULL END - + 51 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-1868
SELECT 52 + CAST( - 11 AS SIGNED ) + 48 DIV 98 + + MIN( ALL - + 94 ) AS col0, CASE + - ( - 10 ) WHEN - 94 + + + 35 THEN NULL WHEN 97 THEN NULL ELSE - COUNT( * ) * + CAST( NULL AS DECIMAL ) END AS col0
----
-53
NULL

skipif mysql # not compatible
query II rowsort label-1868
SELECT 52 + CAST ( - 11 AS INTEGER ) + 48 / 98 + + MIN ( ALL - + 94 ) AS col0, CASE + - ( - 10 ) WHEN - 94 + + + 35 THEN NULL WHEN 97 THEN NULL ELSE - COUNT ( * ) * + CAST ( NULL AS REAL ) END AS col0
----
-53
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1869
SELECT ALL - - 20 * + 33 + + COUNT( * ) DIV - 67
----
660

skipif mysql # not compatible
query I rowsort label-1869
SELECT ALL - - 20 * + 33 + + COUNT ( * ) / - 67
----
660

onlyif mysql # aggregate syntax: 
query I rowsort label-1870
SELECT DISTINCT + - 58 - - + 11 + COUNT( * )
----
-46

skipif mysql # not compatible
query I rowsort label-1870
SELECT DISTINCT + - 58 - - + 11 + COUNT ( * )
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-1871
SELECT ALL 91 DIV - 92
----
0

skipif mysql # not compatible
query I rowsort label-1871
SELECT ALL 91 / - 92
----
0

query I rowsort
SELECT 54 + + 64 - 42 AS col2
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-1873
SELECT 25 DIV 13
----
1

skipif mysql # not compatible
query I rowsort label-1873
SELECT 25 / 13
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1874
SELECT MIN( 75 ) * 0 * - + 18 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1874
SELECT MIN ( 75 ) * 0 * - + 18 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1875
SELECT - 25 / - 80 + + 62 * SUM( + CAST( NULL AS SIGNED ) ) - COUNT( * ) + 92 * - 12 + + ( - 75 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1875
SELECT - 25 / - 80 + + 62 * SUM ( + CAST ( NULL AS INTEGER ) ) - COUNT ( * ) + 92 * - 12 + + ( - 75 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1876
SELECT DISTINCT 43 * CAST( - CAST( + + 9 AS SIGNED ) AS SIGNED ) * 69 * + 57
----
-1522071

skipif mysql # not compatible
query I rowsort label-1876
SELECT DISTINCT 43 * CAST ( - CAST ( + + 9 AS INTEGER ) AS INTEGER ) * 69 * + 57
----
-1522071

onlyif mysql # aggregate syntax: 
query I rowsort label-1877
SELECT MIN( ALL 12 ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-1877
SELECT MIN ( ALL 12 ) AS col1
----
12

query I rowsort
SELECT 60 * - ( - 59 ) * + 65
----
230100

query I rowsort
SELECT ALL 96 * + 6
----
576

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1880
SELECT DISTINCT 8 * CAST( 56 AS SIGNED )
----
448

skipif mysql # not compatible
query I rowsort label-1880
SELECT DISTINCT 8 * CAST ( 56 AS INTEGER )
----
448

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

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

query I rowsort
SELECT 85 * - - 81
----
6885

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

skipif mysql # not compatible
query I rowsort label-1883
SELECT + MIN ( - 43 )
----
-43

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

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

query I rowsort
SELECT 1 - - - 48 AS col1
----
-47

query I rowsort
SELECT 13 * + 78 + + 43 - + ( - - 46 )
----
1011

onlyif mysql # DIV for integer division: 
query I rowsort label-1887
SELECT ALL 30 DIV - 59
----
0

skipif mysql # not compatible
query I rowsort label-1887
SELECT ALL 30 / - 59
----
0

query I rowsort
SELECT + 19 * + 96 + 63 + + 96 AS col2
----
1983

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1890
SELECT + CAST( NULL AS SIGNED ) + AVG ( ALL + 59 ), 36 + CAST( 95 AS SIGNED ) AS col1
----
NULL
131

skipif mysql # not compatible
query II rowsort label-1890
SELECT + CAST ( NULL AS INTEGER ) + AVG ( ALL + 59 ), 36 + CAST ( 95 AS INTEGER ) AS col1
----
NULL
131

onlyif mysql # DIV for integer division: 
query I rowsort label-1891
SELECT ALL 76 DIV - COALESCE ( + 25, 81 ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-1891
SELECT ALL 76 / - COALESCE ( + 25, 81 ) AS col2
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1892
SELECT ALL + MIN( ALL + + 64 ) + + 66 DIV - 88 AS col0
----
64

skipif mysql # not compatible
query I rowsort label-1892
SELECT ALL + MIN ( ALL + + 64 ) + + 66 / - 88 AS col0
----
64

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

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

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

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

query I rowsort
SELECT DISTINCT + ( - - 33 ) AS col1
----
33

query I rowsort
SELECT ALL - + 60 + - 82 col0
----
-142

onlyif mysql # aggregate syntax: 
query I rowsort label-1897
SELECT + + 3 * + + COUNT( * ) * + 84 - + 70
----
182

skipif mysql # not compatible
query I rowsort label-1897
SELECT + + 3 * + + COUNT ( * ) * + 84 - + 70
----
182

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1898
SELECT - - ( - - CAST( - 33 AS SIGNED ) ) + + 16 AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-1898
SELECT - - ( - - CAST ( - 33 AS INTEGER ) ) + + 16 AS col0
----
-17

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1900
SELECT - SUM( 2 ) col1
----
-2

skipif mysql # not compatible
query I rowsort label-1900
SELECT - SUM ( 2 ) col1
----
-2

query I rowsort
SELECT ALL + 67 - - - 68
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1902
SELECT - COUNT( * ) + - - ( ( - 84 ) ) * + - CASE 29 WHEN + - CAST( + ( + 65 ) AS SIGNED ) / + + COALESCE ( + 66, + MAX( 4 ), COUNT( * ) * 29 ) / 22 + 52 THEN + 29 * - CAST( NULL AS SIGNED ) WHEN + NULLIF ( - MIN( 93 ), 82 ) * 11 THEN NULL ELSE NULL END * + 3 + 3 * + 10 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1902
SELECT - COUNT ( * ) + - - ( ( - 84 ) ) * + - CASE 29 WHEN + - CAST ( + ( + 65 ) AS INTEGER ) / + + COALESCE ( + 66, + MAX ( 4 ), COUNT ( * ) * 29 ) / 22 + 52 THEN + 29 * - CAST ( NULL AS INTEGER ) WHEN + NULLIF ( - MIN ( 93 ), 82 ) * 11 THEN NULL ELSE NULL END * + 3 + 3 * + 10 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1903
SELECT ALL - + CAST( - + 15 AS SIGNED ) * - - 88 * + 36 + - 68
----
47452

skipif mysql # not compatible
query I rowsort label-1903
SELECT ALL - + CAST ( - + 15 AS INTEGER ) * - - 88 * + 36 + - 68
----
47452

query I rowsort
SELECT ALL 89 * + + 5 col1
----
445

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

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

query I rowsort
SELECT DISTINCT + 34 - + + 99 AS col2
----
-65

query I rowsort
SELECT - 32 * NULLIF ( + - 39, - 6 ) AS col0
----
1248

query II rowsort
SELECT DISTINCT + COALESCE ( - - 99, - 73, - 85 ), 14 AS col0
----
99
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1909
SELECT ALL + ( - - CASE WHEN - 67 BETWEEN NULL AND ( NULL ) THEN COUNT( * ) DIV + ( 27 ) ELSE - + COUNT( * ) END ) * 14 * + - 42
----
588

skipif mysql # not compatible
query I rowsort label-1909
SELECT ALL + ( - - CASE WHEN - 67 BETWEEN NULL AND ( NULL ) THEN COUNT ( * ) / + ( 27 ) ELSE - + COUNT ( * ) END ) * 14 * + - 42
----
588

onlyif mysql # aggregate syntax: 
query I rowsort label-1910
SELECT DISTINCT + NULLIF ( + 63, + + SUM( + 45 ) * + 69 )
----
63

skipif mysql # not compatible
query I rowsort label-1910
SELECT DISTINCT + NULLIF ( + 63, + + SUM ( + 45 ) * + 69 )
----
63

query I rowsort
SELECT + 78 + + 63 - + + 0 AS col0
----
141

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1913
SELECT + CASE + 58 WHEN + AVG ( DISTINCT + 7 ) THEN + 91 + + 88 ELSE NULL END + - 46 * - - 12 + + COUNT( * ) - - 23 + - + 60
----
NULL

skipif mysql # not compatible
query I rowsort label-1913
SELECT + CASE + 58 WHEN + AVG ( DISTINCT + 7 ) THEN + 91 + + 88 ELSE NULL END + - 46 * - - 12 + + COUNT ( * ) - - 23 + - + 60
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1914
SELECT ALL 63 * ( 12 ) DIV - 80 + - 65 AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-1914
SELECT ALL 63 * ( 12 ) / - 80 + - 65 AS col2
----
-74

query I rowsort
SELECT + 31 * ( + + 77 ) col1
----
2387

query I rowsort
SELECT DISTINCT 38 * - 0 + 85 + - 67
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-1917
SELECT - COALESCE ( 56, 28 ) - ( + COUNT( * ) ) * COALESCE ( - 53, 30 )
----
-3

skipif mysql # not compatible
query I rowsort label-1917
SELECT - COALESCE ( 56, 28 ) - ( + COUNT ( * ) ) * COALESCE ( - 53, 30 )
----
-3

query I rowsort
SELECT COALESCE ( - 59, 84 ) col0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-1919
SELECT - 0 * + ( + + COUNT( * ) ) + NULLIF ( - 19, - + 52 ) col1
----
-19

skipif mysql # not compatible
query I rowsort label-1919
SELECT - 0 * + ( + + COUNT ( * ) ) + NULLIF ( - 19, - + 52 ) col1
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-1920
SELECT CASE + 3 WHEN + - 32 * - - 61 * - 61 + + + 98 THEN - ( ( COUNT( * ) ) ) ELSE - + 57 END
----
-57

skipif mysql # not compatible
query I rowsort label-1920
SELECT CASE + 3 WHEN + - 32 * - - 61 * - 61 + + + 98 THEN - ( ( COUNT ( * ) ) ) ELSE - + 57 END
----
-57

query I rowsort
SELECT + 95 * 54 * - + 83 * + 8
----
-3406320

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1922
SELECT ALL 7 * - + CAST( NULL AS DECIMAL ) / - 98 + + 81 + + 49 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1922
SELECT ALL 7 * - + CAST ( NULL AS REAL ) / - 98 + + 81 + + 49 AS col1
----
NULL

query I rowsort
SELECT DISTINCT 75 * - + 86 + + 29 AS col2
----
-6421

query I rowsort
SELECT + CASE WHEN NOT 80 <> 99 THEN + 68 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL + 41 * - 30 + + 9 AS col1
----
-1221

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1926
SELECT DISTINCT - 85 * - + 78 * 86 + - COALESCE ( + 55, + + 33 ) + COUNT( * ) * + 13 DIV + 83 - + 74 + - + COUNT( * ) + - 26 + + 79 AS col2
----
570103

skipif mysql # not compatible
query I rowsort label-1926
SELECT DISTINCT - 85 * - + 78 * 86 + - COALESCE ( + 55, + + 33 ) + COUNT ( * ) * + 13 / + 83 - + 74 + - + COUNT ( * ) + - 26 + + 79 AS col2
----
570103

query I rowsort
SELECT COALESCE ( - - 2, 44 * - - 50 * + + 62 * 50 )
----
2

query I rowsort
SELECT + 4 * - + 10 AS col2
----
-40

query I rowsort
SELECT + + 7 - 30 + + - ( 30 )
----
-53

query I rowsort
SELECT + - 26 * + 59
----
-1534

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1931
SELECT - CAST( - 82 AS SIGNED ) AS col1, 68 * + COUNT( 29 ) AS col0
----
82
68

skipif mysql # not compatible
query II rowsort label-1931
SELECT - CAST ( - 82 AS INTEGER ) AS col1, 68 * + COUNT ( 29 ) AS col0
----
82
68

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

skipif mysql # not compatible
query I rowsort label-1932
SELECT ALL - 88 / COUNT ( * ) / + + 25 AS col0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-1933
SELECT DISTINCT + 38 - + + 99 * + + 18 + + 11 DIV + + 97
----
-1744

skipif mysql # not compatible
query I rowsort label-1933
SELECT DISTINCT + 38 - + + 99 * + + 18 + + 11 / + + 97
----
-1744

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1934
SELECT ALL MAX( ALL + 28 ) DIV - COALESCE ( - 92, + 77 + + 40 ) + 93
----
93

skipif mysql # not compatible
query I rowsort label-1934
SELECT ALL MAX ( ALL + 28 ) / - COALESCE ( - 92, + 77 + + 40 ) + 93
----
93

query I rowsort
SELECT - + 99 * + 86 * + 6 * 69 * + ( - 31 ) AS col2
----
109268676

query I rowsort
SELECT DISTINCT - 94 * + 76 * + 8 + + 80
----
-57072

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1937
SELECT ALL - 36 * 85 + - ( + MAX( DISTINCT 65 ) ) DIV + - 11
----
-3055

skipif mysql # not compatible
query I rowsort label-1937
SELECT ALL - 36 * 85 + - ( + MAX ( DISTINCT 65 ) ) / + - 11
----
-3055

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1938
SELECT + - 30 + - COALESCE ( - - 30, - CASE + SUM( + - 48 ) WHEN - COUNT( * ) + 80 * 36 THEN - 31 - + 26 WHEN CAST( + 52 AS SIGNED ) THEN NULL ELSE NULL END ) AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-1938
SELECT + - 30 + - COALESCE ( - - 30, - CASE + SUM ( + - 48 ) WHEN - COUNT ( * ) + 80 * 36 THEN - 31 - + 26 WHEN CAST ( + 52 AS INTEGER ) THEN NULL ELSE NULL END ) AS col1
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-1939
SELECT - - COUNT( * ) * - 92 * COALESCE ( - 56, - 99 - - 33 ) * + 33 * + + ( 69 ) + - NULLIF ( - + COALESCE ( 13, - - 64 ), - + ( 59 ) ) AS col1
----
11731117

skipif mysql # not compatible
query I rowsort label-1939
SELECT - - COUNT ( * ) * - 92 * COALESCE ( - 56, - 99 - - 33 ) * + 33 * + + ( 69 ) + - NULLIF ( - + COALESCE ( 13, - - 64 ), - + ( 59 ) ) AS col1
----
11731117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1940
SELECT + + 55 + 88 - ( + 79 ) + + + 98 * - + CAST( + 82 AS SIGNED ) - + - 97 + - + COUNT( * ), - 60 AS col2
----
-7876
-60

skipif mysql # not compatible
query II rowsort label-1940
SELECT + + 55 + 88 - ( + 79 ) + + + 98 * - + CAST ( + 82 AS INTEGER ) - + - 97 + - + COUNT ( * ), - 60 AS col2
----
-7876
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-1941
SELECT - + 50 - + COUNT( - 32 )
----
-51

skipif mysql # not compatible
query I rowsort label-1941
SELECT - + 50 - + COUNT ( - 32 )
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1942
SELECT ALL CASE + 37 WHEN 82 THEN 14 WHEN COUNT( * ) THEN - COALESCE ( - 76, - + ( + + CAST( NULL AS SIGNED ) ) ) / ( - + 57 ) / - 97 - - 62 - 42 - - 89 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1942
SELECT ALL CASE + 37 WHEN 82 THEN 14 WHEN COUNT ( * ) THEN - COALESCE ( - 76, - + ( + + CAST ( NULL AS INTEGER ) ) ) / ( - + 57 ) / - 97 - - 62 - 42 - - 89 END AS col0
----
NULL

query I rowsort
SELECT + 9 * - 25 AS col0
----
-225

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1945
SELECT - MAX( - 56 ) + + 26
----
82

skipif mysql # not compatible
query I rowsort label-1945
SELECT - MAX ( - 56 ) + + 26
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1946
SELECT DISTINCT NULLIF ( CAST( NULL AS SIGNED ), + 82 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1946
SELECT DISTINCT NULLIF ( CAST ( NULL AS INTEGER ), + 82 ) col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1947
SELECT ALL 59 DIV + 51 + + 74
----
75

skipif mysql # not compatible
query I rowsort label-1947
SELECT ALL 59 / + 51 + + 74
----
75

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1949
SELECT 58 DIV - + 76 * + - ( NULLIF ( + 46, + 19 ) ) + - 36 * - + 88
----
3168

skipif mysql # not compatible
query I rowsort label-1949
SELECT 58 / - + 76 * + - ( NULLIF ( + 46, + 19 ) ) + - 36 * - + 88
----
3168

onlyif mysql # aggregate syntax: 
query III rowsort label-1950
SELECT + 18 AS col0, 73 + - - 53, - + SUM( - 73 ) AS col0
----
18
126
73

skipif mysql # not compatible
query III rowsort label-1950
SELECT + 18 AS col0, 73 + - - 53, - + SUM ( - 73 ) AS col0
----
18
126
73

onlyif mysql # DIV for integer division: 
query I rowsort label-1951
SELECT ALL + 13 + 58 - + + 1 + - 65 + - 94 DIV - 38
----
7

skipif mysql # not compatible
query I rowsort label-1951
SELECT ALL + 13 + 58 - + + 1 + - 65 + - 94 / - 38
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1952
SELECT DISTINCT + 41 * + - MIN( - - 1 ), 45 * + 50 * + CAST( NULL AS SIGNED ) + 71 - + - COALESCE ( + - 34, - 58 * + + 16 * - COUNT( * ), + COUNT( * ) ) * - 87 AS col2
----
-41
NULL

skipif mysql # not compatible
query II rowsort label-1952
SELECT DISTINCT + 41 * + - MIN ( - - 1 ), 45 * + 50 * + CAST ( NULL AS INTEGER ) + 71 - + - COALESCE ( + - 34, - 58 * + + 16 * - COUNT ( * ), + COUNT ( * ) ) * - 87 AS col2
----
-41
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1953
SELECT DISTINCT COALESCE ( - - ( - + 89 ), 93 ) + - + 32 * + SUM( - 79 ) AS col0
----
2439

skipif mysql # not compatible
query I rowsort label-1953
SELECT DISTINCT COALESCE ( - - ( - + 89 ), 93 ) + - + 32 * + SUM ( - 79 ) AS col0
----
2439

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

skipif mysql # not compatible
query I rowsort label-1954
SELECT COUNT ( * ) * - ( 79 )
----
-79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1955
SELECT COUNT( * ) DIV + ( 51 ) * 87 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1955
SELECT COUNT ( * ) / + ( 51 ) * 87 AS col2
----
0

query I rowsort
SELECT 91 + + 40 AS col1
----
131

onlyif mysql # DIV for integer division: 
query I rowsort label-1957
SELECT + 46 * + + 82 + + 75 + + - 82 DIV ( - - 45 ) AS col1
----
3846

skipif mysql # not compatible
query I rowsort label-1957
SELECT + 46 * + + 82 + + 75 + + - 82 / ( - - 45 ) AS col1
----
3846

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1958
SELECT 83 AS col2, - 47 + 18 DIV 28 - - + COUNT( ALL - 48 ) col1
----
83
-46

skipif mysql # not compatible
query II rowsort label-1958
SELECT 83 AS col2, - 47 + 18 / 28 - - + COUNT ( ALL - 48 ) col1
----
83
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1959
SELECT - + CAST( 24 AS SIGNED ) * 43 + 71
----
-961

skipif mysql # not compatible
query I rowsort label-1959
SELECT - + CAST ( 24 AS INTEGER ) * 43 + 71
----
-961

onlyif mysql # aggregate syntax: 
query II rowsort label-1960
SELECT 20 AS col0, 41 * - + COUNT( * ) AS col1
----
20
-41

skipif mysql # not compatible
query II rowsort label-1960
SELECT 20 AS col0, 41 * - + COUNT ( * ) AS col1
----
20
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-1961
SELECT DISTINCT + NULLIF ( + 9, MAX( - 50 ) - - - 35 ) - + 60 AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-1961
SELECT DISTINCT + NULLIF ( + 9, MAX ( - 50 ) - - - 35 ) - + 60 AS col0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-1962
SELECT + 4 + - + 81 + + + COUNT( DISTINCT 48 ) + - COUNT( * )
----
-77

skipif mysql # not compatible
query I rowsort label-1962
SELECT + 4 + - + 81 + + + COUNT ( DISTINCT 48 ) + - COUNT ( * )
----
-77

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

skipif mysql # not compatible
query I rowsort label-1963
SELECT ALL + CAST ( - 45 AS INTEGER ) AS col1
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1964
SELECT + SUM( - - CAST( NULL AS SIGNED ) ) * + COALESCE ( - + COUNT( * ), - - 49 * - + 78 ) AS col1, 93
----
NULL
93

skipif mysql # not compatible
query II rowsort label-1964
SELECT + SUM ( - - CAST ( NULL AS INTEGER ) ) * + COALESCE ( - + COUNT ( * ), - - 49 * - + 78 ) AS col1, 93
----
NULL
93

onlyif mysql # aggregate syntax: 
query I rowsort label-1965
SELECT + - 65 * 35 + - COUNT( * ) - + 84 + - 24 * + 48 AS col1
----
-3512

skipif mysql # not compatible
query I rowsort label-1965
SELECT + - 65 * 35 + - COUNT ( * ) - + 84 + - 24 * + 48 AS col1
----
-3512

query I rowsort
SELECT ALL + 65 * 31
----
2015

query I rowsort
SELECT DISTINCT + 7 - + 48 AS col2
----
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1968
SELECT - SUM( DISTINCT + 61 ) + 8 * - COUNT( * ) DIV + 47
----
-61

skipif mysql # not compatible
query I rowsort label-1968
SELECT - SUM ( DISTINCT + 61 ) + 8 * - COUNT ( * ) / + 47
----
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-1969
SELECT 44 col2, 31 - + COALESCE ( 15, - 26 - COUNT( * ) + + - COUNT( * ) * - + 52 - + ( - ( - + 40 ) ) ) + 46 - + ( + - 67 ) + - MAX( - 14 ) * + 42 AS col2
----
44
717

skipif mysql # not compatible
query II rowsort label-1969
SELECT 44 col2, 31 - + COALESCE ( 15, - 26 - COUNT ( * ) + + - COUNT ( * ) * - + 52 - + ( - ( - + 40 ) ) ) + 46 - + ( + - 67 ) + - MAX ( - 14 ) * + 42 AS col2
----
44
717

query I rowsort
SELECT 78 * - - 14
----
1092

query I rowsort
SELECT - 68 + + 56
----
-12

query II rowsort
SELECT 71, 4 AS col2
----
71
4

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1974
SELECT ALL 40 AS col2, COALESCE ( - + 54, + 82 ) * - 6 + - COUNT( * ) AS col0
----
40
323

skipif mysql # not compatible
query II rowsort label-1974
SELECT ALL 40 AS col2, COALESCE ( - + 54, + 82 ) * - 6 + - COUNT ( * ) AS col0
----
40
323

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

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

query I rowsort
SELECT 89 * + 68
----
6052

onlyif mysql # aggregate syntax: 
query I rowsort label-1977
SELECT ALL 20 + + SUM( ALL 45 ) AS col1
----
65

skipif mysql # not compatible
query I rowsort label-1977
SELECT ALL 20 + + SUM ( ALL 45 ) AS col1
----
65

query I rowsort
SELECT 59 - - 74 AS col1
----
133

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1979
SELECT DISTINCT - COUNT( + - 48 ) + - CAST( 72 AS SIGNED ) AS col1, 52
----
-73
52

skipif mysql # not compatible
query II rowsort label-1979
SELECT DISTINCT - COUNT ( + - 48 ) + - CAST ( 72 AS INTEGER ) AS col1, 52
----
-73
52

onlyif mysql # DIV for integer division: 
query I rowsort label-1980
SELECT 79 DIV + 48 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1980
SELECT 79 / + 48 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1981
SELECT ALL + COUNT( * ) + - 19 + - 43 * - + 90 AS col0
----
3852

skipif mysql # not compatible
query I rowsort label-1981
SELECT ALL + COUNT ( * ) + - 19 + - 43 * - + 90 AS col0
----
3852

onlyif mysql # aggregate syntax: 
query I rowsort label-1982
SELECT 10 + - ( + COUNT( * ) ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-1982
SELECT 10 + - ( + COUNT ( * ) ) AS col0
----
9

query I rowsort
SELECT ALL 71 + + 68 col0
----
139

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1984
SELECT - 4 AS col1, COUNT( * ) + + 65 DIV - - 74 - + 92 - + - 64 AS col0
----
-4
-27

skipif mysql # not compatible
query II rowsort label-1984
SELECT - 4 AS col1, COUNT ( * ) + + 65 / - - 74 - + 92 - + - 64 AS col0
----
-4
-27

query II rowsort
SELECT + 37, - 2 AS col1
----
37
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1986
SELECT 85 * + COUNT( * ) + - NULLIF ( - - COUNT( * ), - CAST( - 30 AS SIGNED ) ) * + 39 + - 77
----
-31

skipif mysql # not compatible
query I rowsort label-1986
SELECT 85 * + COUNT ( * ) + - NULLIF ( - - COUNT ( * ), - CAST ( - 30 AS INTEGER ) ) * + 39 + - 77
----
-31

query I rowsort
SELECT 65 * + 40
----
2600

query I rowsort
SELECT ALL + - 53 * + - 22 + + 94 + 48 AS col0
----
1308

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1989
SELECT CAST( - ( ( 17 ) ) AS SIGNED ) AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-1989
SELECT CAST ( - ( ( 17 ) ) AS INTEGER ) AS col2
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1990
SELECT DISTINCT - CAST( - - 45 AS SIGNED )
----
-45

skipif mysql # not compatible
query I rowsort label-1990
SELECT DISTINCT - CAST ( - - 45 AS INTEGER )
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-1991
SELECT ALL - + COALESCE ( + COUNT( * ), ( + + 66 ) + + + 7 + - 29 * + 17 + + MAX( ALL + 35 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1991
SELECT ALL - + COALESCE ( + COUNT ( * ), ( + + 66 ) + + + 7 + - 29 * + 17 + + MAX ( ALL + 35 ) ) AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1992
SELECT SUM( - CAST( NULL AS SIGNED ) ) AS col1, 12 col2
----
NULL
12

skipif mysql # not compatible
query II rowsort label-1992
SELECT SUM ( - CAST ( NULL AS INTEGER ) ) AS col1, 12 col2
----
NULL
12

onlyif mysql # aggregate syntax: 
query I rowsort label-1993
SELECT 23 * COALESCE ( + 91, - + NULLIF ( COUNT( * ), + 2 * ( 5 ) + 65 ) + - 76 ) * + 2 AS col0
----
4186

skipif mysql # not compatible
query I rowsort label-1993
SELECT 23 * COALESCE ( + 91, - + NULLIF ( COUNT ( * ), + 2 * ( 5 ) + 65 ) + - 76 ) * + 2 AS col0
----
4186

onlyif mysql # aggregate syntax: 
query II rowsort label-1994
SELECT - 16 * + 43, - 9 + - COUNT( * ) + + 38 AS col1
----
-688
28

skipif mysql # not compatible
query II rowsort label-1994
SELECT - 16 * + 43, - 9 + - COUNT ( * ) + + 38 AS col1
----
-688
28

onlyif mysql # aggregate syntax: 
query I rowsort label-1995
SELECT MIN( ALL + 79 ) * 70 - - 67 + + + 18
----
5615

skipif mysql # not compatible
query I rowsort label-1995
SELECT MIN ( ALL + 79 ) * 70 - - 67 + + + 18
----
5615

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1996
SELECT DISTINCT - - CAST( NULL AS DECIMAL ) / 12 * - 6 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1996
SELECT DISTINCT - - CAST ( NULL AS REAL ) / 12 * - 6 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1997
SELECT - 82 * + 6 + - 6 - 98 + + COUNT( DISTINCT 98 ) + - + COUNT( * ) - + 7
----
-603

skipif mysql # not compatible
query I rowsort label-1997
SELECT - 82 * + 6 + - 6 - 98 + + COUNT ( DISTINCT 98 ) + - + COUNT ( * ) - + 7
----
-603

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1999
SELECT ALL - 53 + 97 - 36 + + + 49 DIV 86 * + - 6, + 78 AS col1
----
8
78

skipif mysql # not compatible
query II rowsort label-1999
SELECT ALL - 53 + 97 - 36 + + + 49 / 86 * + - 6, + 78 AS col1
----
8
78

onlyif mysql # aggregate syntax: 
query I rowsort label-2000
SELECT 23 - - + COUNT( * ) - 97
----
-73

skipif mysql # not compatible
query I rowsort label-2000
SELECT 23 - - + COUNT ( * ) - 97
----
-73

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

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

query I rowsort
SELECT ALL - COALESCE ( 11, COALESCE ( + + 93, + 14 ) ) + 41 AS col1
----
30

onlyif mysql # aggregate syntax: 
query II rowsort label-2003
SELECT ALL COUNT( * ) + 35 + 29, + ( - - 86 ) AS col1
----
65
86

skipif mysql # not compatible
query II rowsort label-2003
SELECT ALL COUNT ( * ) + 35 + 29, + ( - - 86 ) AS col1
----
65
86

query I rowsort
SELECT ( + 96 ) * 65 AS col2
----
6240

onlyif mysql # DIV for integer division: 
query I rowsort label-2005
SELECT ALL + 58 + - 65 - - 96 DIV + 84
----
-6

skipif mysql # not compatible
query I rowsort label-2005
SELECT ALL + 58 + - 65 - - 96 / + 84
----
-6

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2007
SELECT 60 + + 65 AS col1, COALESCE ( 80, - + 13 + + NULLIF ( ( - + 68 ), 75 ) + 11 DIV + ( - 43 ) * + 82 * - 85 + - COALESCE ( 85, + + 41 * 68 ), - 77 * + 64 )
----
125
80

skipif mysql # not compatible
query II rowsort label-2007
SELECT 60 + + 65 AS col1, COALESCE ( 80, - + 13 + + NULLIF ( ( - + 68 ), 75 ) + 11 / + ( - 43 ) * + 82 * - 85 + - COALESCE ( 85, + + 41 * 68 ), - 77 * + 64 )
----
125
80

query I rowsort
SELECT - 2 + + - ( 37 ) + - + 30 AS col0
----
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-2009
SELECT + 8 - - - 28, 13 * + COUNT( - ( - + 56 ) ) AS col0
----
-20
13

skipif mysql # not compatible
query II rowsort label-2009
SELECT + 8 - - - 28, 13 * + COUNT ( - ( - + 56 ) ) AS col0
----
-20
13

onlyif mysql # aggregate syntax: 
query I rowsort label-2010
SELECT DISTINCT NULLIF ( + - ( - - MAX( - 9 ) ), + + CASE + + 85 WHEN + 55 * - 42 THEN - + MAX( DISTINCT ( + 63 ) ) - + 44 ELSE + COUNT( * ) END + + 49 * + + COUNT( * ) ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-2010
SELECT DISTINCT NULLIF ( + - ( - - MAX ( - 9 ) ), + + CASE + + 85 WHEN + 55 * - 42 THEN - + MAX ( DISTINCT ( + 63 ) ) - + 44 ELSE + COUNT ( * ) END + + 49 * + + COUNT ( * ) ) AS col0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-2011
SELECT ALL 66 + + - 50 DIV + + 73 + - 88 AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-2011
SELECT ALL 66 + + - 50 / + + 73 + - 88 AS col1
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2012
SELECT + 48 + ( ( + CAST( NULL AS SIGNED ) ) ) / - - 64 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2012
SELECT + 48 + ( ( + CAST ( NULL AS INTEGER ) ) ) / - - 64 col0
----
NULL

query I rowsort
SELECT + 24 + - NULLIF ( + 33, + NULLIF ( + - 11, + - 89 - + 46 ) ) AS col2
----
-9

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2015
SELECT + 53 - + COUNT( * ) AS col0
----
52

skipif mysql # not compatible
query I rowsort label-2015
SELECT + 53 - + COUNT ( * ) AS col0
----
52

query I rowsort
SELECT DISTINCT 65 * + - 75 * + 51
----
-248625

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2018
SELECT - - 64 DIV 54 * - 60 + - - COUNT( 51 ) - 72 col2
----
-131

skipif mysql # not compatible
query I rowsort label-2018
SELECT - - 64 / 54 * - 60 + - - COUNT ( 51 ) - 72 col2
----
-131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2019
SELECT ALL - 64 * CAST( 22 AS SIGNED ) - COUNT( * )
----
-1409

skipif mysql # not compatible
query I rowsort label-2019
SELECT ALL - 64 * CAST ( 22 AS INTEGER ) - COUNT ( * )
----
-1409

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

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

query II rowsort
SELECT + - 18 + + 64 + + 26 AS col1, - 48 AS col0
----
72
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-2022
SELECT + - 85 * 61 - 21 DIV + NULLIF ( 34, ( - + 68 ) )
----
-5185

skipif mysql # not compatible
query I rowsort label-2022
SELECT + - 85 * 61 - 21 / + NULLIF ( 34, ( - + 68 ) )
----
-5185

query I rowsort
SELECT - 14 * - + 74 AS col1
----
1036

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2024
SELECT ALL - 48 * 73 + CAST( NULL AS SIGNED ) - + 54 + - 65 + 94 - - COUNT( * ) * - 61 * - 0 * + 57 * + - 28
----
NULL

skipif mysql # not compatible
query I rowsort label-2024
SELECT ALL - 48 * 73 + CAST ( NULL AS INTEGER ) - + 54 + - 65 + 94 - - COUNT ( * ) * - 61 * - 0 * + 57 * + - 28
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2025
SELECT - + CASE + + COUNT( * ) WHEN + - 31 DIV + 54 - - 50 + + COUNT( * ) THEN + + 5 + - ( + COUNT( * ) ) * - 3 ELSE 85 END DIV + 48 col0
----
-1

skipif mysql # not compatible
query I rowsort label-2025
SELECT - + CASE + + COUNT ( * ) WHEN + - 31 / + 54 - - 50 + + COUNT ( * ) THEN + + 5 + - ( + COUNT ( * ) ) * - 3 ELSE 85 END / + 48 col0
----
-1

query I rowsort
SELECT ALL + + 32 * - 41 + + NULLIF ( + 57, + ( - 11 ) + ( - 27 ) ) * + ( + 51 )
----
1595

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2027
SELECT - CAST( + 31 AS SIGNED ) + + MAX( + + 30 ) * - 32 + + + 71
----
-920

skipif mysql # not compatible
query I rowsort label-2027
SELECT - CAST ( + 31 AS INTEGER ) + + MAX ( + + 30 ) * - 32 + + + 71
----
-920

onlyif mysql # aggregate syntax: 
query II rowsort label-2028
SELECT ALL + - COUNT( * ) * - 27 + - COUNT( * ) + + 85 + 8 + + + 9 * + - 97, - 27 * - 67 col0
----
-754
1809

skipif mysql # not compatible
query II rowsort label-2028
SELECT ALL + - COUNT ( * ) * - 27 + - COUNT ( * ) + + 85 + 8 + + + 9 * + - 97, - 27 * - 67 col0
----
-754
1809

onlyif mysql # aggregate syntax: 
query I rowsort label-2029
SELECT DISTINCT + COALESCE ( + 15, + - 80, COUNT( * ) ) * COUNT( * ) * - ( + SUM( DISTINCT + 37 ) ) + - 43 + 1 AS col2
----
-597

skipif mysql # not compatible
query I rowsort label-2029
SELECT DISTINCT + COALESCE ( + 15, + - 80, COUNT ( * ) ) * COUNT ( * ) * - ( + SUM ( DISTINCT + 37 ) ) + - 43 + 1 AS col2
----
-597

query I rowsort
SELECT ALL - 98 + 6 AS col0
----
-92

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2032
SELECT ALL - 26 + 5 * + 45, - SUM( + 11 ) AS col0
----
199
-11

skipif mysql # not compatible
query II rowsort label-2032
SELECT ALL - 26 + 5 * + 45, - SUM ( + 11 ) AS col0
----
199
-11

query I rowsort
SELECT - 50 * - 6 AS col0
----
300

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2035
SELECT ALL - MIN( ALL - 14 ) + + 69 AS col0, 19 - + 9 + 28
----
83
38

skipif mysql # not compatible
query II rowsort label-2035
SELECT ALL - MIN ( ALL - 14 ) + + 69 AS col0, 19 - + 9 + 28
----
83
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2036
SELECT - COUNT( * ) DIV + - 31 * 96 * - - 27
----
0

skipif mysql # not compatible
query I rowsort label-2036
SELECT - COUNT ( * ) / + - 31 * 96 * - - 27
----
0

query I rowsort
SELECT + 84 + + + 80 * - ( 0 ) AS col0
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2038
SELECT ALL - COALESCE ( + + MAX( - - 75 ), + - 86, ( + 19 ), + - COUNT( * ) ) + + - 67 * 85 DIV - - 14 AS col2
----
-481

skipif mysql # not compatible
query I rowsort label-2038
SELECT ALL - COALESCE ( + + MAX ( - - 75 ), + - 86, ( + 19 ), + - COUNT ( * ) ) + + - 67 * 85 / - - 14 AS col2
----
-481

query II rowsort
SELECT - 4 col0, ( 30 ) AS col0
----
-4
30

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

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

query I rowsort
SELECT DISTINCT 25 * 7 AS col2
----
175

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2042
SELECT ALL 60 AS col1, - CAST( NULL AS SIGNED ) AS col0
----
60
NULL

skipif mysql # not compatible
query II rowsort label-2042
SELECT ALL 60 AS col1, - CAST ( NULL AS INTEGER ) AS col0
----
60
NULL

query I rowsort
SELECT ALL - 27 * + COALESCE ( + 20, 39 ) col0
----
-540

onlyif mysql # aggregate syntax: 
query I rowsort label-2044
SELECT - CASE + 64 WHEN - - 31 * MIN( + 46 ) * 72 - + - 33 * - 48 THEN ( - 73 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2044
SELECT - CASE + 64 WHEN - - 31 * MIN ( + 46 ) * 72 - + - 33 * - 48 THEN ( - 73 ) END AS col0
----
NULL

query I rowsort
SELECT ALL + 64 - + 73 col1
----
-9

query II rowsort
SELECT - 69 AS col1, 27 + + 64 AS col0
----
-69
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2047
SELECT - 12 - + ( + 99 ) + 77 DIV SUM( + 67 ) * 0 + - 70
----
-181

skipif mysql # not compatible
query I rowsort label-2047
SELECT - 12 - + ( + 99 ) + 77 / SUM ( + 67 ) * 0 + - 70
----
-181

query I rowsort
SELECT + 18 * 47 * + 4 AS col0
----
3384

onlyif mysql # DIV for integer division: 
query II rowsort label-2049
SELECT ALL 26 AS col2, ( - 0 ) * 1 + - 30 DIV 50 col1
----
26
0

skipif mysql # not compatible
query II rowsort label-2049
SELECT ALL 26 AS col2, ( - 0 ) * 1 + - 30 / 50 col1
----
26
0

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

skipif mysql # not compatible
query I rowsort label-2050
SELECT - 30 + - CAST ( NULL AS INTEGER ) * + + 66
----
NULL

query II rowsort
SELECT 77 AS col1, 84 - 12
----
77
72

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2053
SELECT + 35 * + - 69 * + + 59, + COUNT( * ) AS col1
----
-142485
1

skipif mysql # not compatible
query II rowsort label-2053
SELECT + 35 * + - 69 * + + 59, + COUNT ( * ) AS col1
----
-142485
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2054
SELECT ALL + - COALESCE ( - 55, 34 + + - COUNT( * ) + + CAST( NULL AS SIGNED ) ) AS col2
----
55

skipif mysql # not compatible
query I rowsort label-2054
SELECT ALL + - COALESCE ( - 55, 34 + + - COUNT ( * ) + + CAST ( NULL AS INTEGER ) ) AS col2
----
55

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

skipif mysql # not compatible
query II rowsort label-2055
SELECT COUNT ( * ), COUNT ( * ) * + 21 col2
----
1
21

query I rowsort
SELECT + 62 - - 70 + - + 28 * + 60 col0
----
-1548

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2057
SELECT ALL NULLIF ( + CASE - 70 WHEN COUNT( * ) THEN + 37 WHEN 61 * + 8 * 45 THEN + 22 * - - 77 * - 84 WHEN - CAST( NULL AS SIGNED ) DIV + + 70 * + 86 DIV + MIN( DISTINCT - 62 ) - ( 43 ) + 22 THEN 13 ELSE - CASE + AVG ( ALL + 36 ) WHEN 34 THEN NULL ELSE - CAST( + 78 AS SIGNED ) - 81 * + 27 END END, 31 * + 17 ) DIV + COUNT( * )
----
2265

skipif mysql # not compatible
query I rowsort label-2057
SELECT ALL NULLIF ( + CASE - 70 WHEN COUNT ( * ) THEN + 37 WHEN 61 * + 8 * 45 THEN + 22 * - - 77 * - 84 WHEN - CAST ( NULL AS INTEGER ) / + + 70 * + 86 / + MIN ( DISTINCT - 62 ) - ( 43 ) + 22 THEN 13 ELSE - CASE + AVG ( ALL + 36 ) WHEN 34 THEN NULL ELSE - CAST ( + 78 AS INTEGER ) - 81 * + 27 END END, 31 * + 17 ) / + COUNT ( * )
----
2265

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2058
SELECT + + COUNT( * ) + + + CASE NULLIF ( + 65, ( + 3 ) ) WHEN + + 43 * - CAST( - 52 AS SIGNED ) + - 88 THEN 93 WHEN + 11 THEN NULL WHEN 89 THEN NULL ELSE - 63 * + 9 + + + 72 - + + MIN( DISTINCT + NULLIF ( + 53, 27 * 31 ) ) + - 41 * - 25 + + ( - 19 ) END + ( + NULLIF ( NULLIF ( MAX( 0 ), - 14 * + COUNT( * ) + - 94 ), + 80 ) + - 40 ) AS col2
----
419

skipif mysql # not compatible
query I rowsort label-2058
SELECT + + COUNT ( * ) + + + CASE NULLIF ( + 65, ( + 3 ) ) WHEN + + 43 * - CAST ( - 52 AS INTEGER ) + - 88 THEN 93 WHEN + 11 THEN NULL WHEN 89 THEN NULL ELSE - 63 * + 9 + + + 72 - + + MIN ( DISTINCT + NULLIF ( + 53, 27 * 31 ) ) + - 41 * - 25 + + ( - 19 ) END + ( + NULLIF ( NULLIF ( MAX ( 0 ), - 14 * + COUNT ( * ) + - 94 ), + 80 ) + - 40 ) AS col2
----
419

onlyif mysql # aggregate syntax: 
query I rowsort label-2059
SELECT - 15 * + + 24 * - COUNT( * ) + - 45 + + 15 + + - COUNT( * ) * 51 + - 74 + 65 + - 63 * - + 86
----
5688

skipif mysql # not compatible
query I rowsort label-2059
SELECT - 15 * + + 24 * - COUNT ( * ) + - 45 + + 15 + + - COUNT ( * ) * 51 + - 74 + 65 + - 63 * - + 86
----
5688

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2060
SELECT + + CASE + - 30 WHEN - - COUNT( * ) * + + 55 THEN NULL WHEN + 9 THEN NULL ELSE 36 END DIV + - 81 * - - 90 AS col1, 83 AS col0
----
0
83

skipif mysql # not compatible
query II rowsort label-2060
SELECT + + CASE + - 30 WHEN - - COUNT ( * ) * + + 55 THEN NULL WHEN + 9 THEN NULL ELSE 36 END / + - 81 * - - 90 AS col1, 83 AS col0
----
0
83

query I rowsort
SELECT + - COALESCE ( - ( + 16 ), - 79 * - - 26, 10 ) * + + 20 + + 20 col2
----
340

query II rowsort
SELECT + 35 AS col0, + 2 + - 1
----
35
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2063
SELECT - 20 + - 0 + 1 DIV - + 10 * - - ( - 1 )
----
-20

skipif mysql # not compatible
query I rowsort label-2063
SELECT - 20 + - 0 + 1 / - + 10 * - - ( - 1 )
----
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2064
SELECT ALL + ( 12 ) DIV 52 * - 47 + + + 67 + - MIN( + + 4 ) * + COUNT( * ) + - 81 - 32 * 88
----
-2834

skipif mysql # not compatible
query I rowsort label-2064
SELECT ALL + ( 12 ) / 52 * - 47 + + + 67 + - MIN ( + + 4 ) * + COUNT ( * ) + - 81 - 32 * 88
----
-2834

query II rowsort
SELECT DISTINCT 29 * + + ( 82 ) AS col1, 31 AS col0
----
2378
31

onlyif mysql # aggregate syntax: 
query I rowsort label-2066
SELECT ALL + 9 * - MIN( 66 ) * + 37 * + - 29 + + 37 + - - 69 - + 4 + + ( + - 23 ) + + + 95 AS col1
----
637536

skipif mysql # not compatible
query I rowsort label-2066
SELECT ALL + 9 * - MIN ( 66 ) * + 37 * + - 29 + + 37 + - - 69 - + 4 + + ( + - 23 ) + + + 95 AS col1
----
637536

query I rowsort
SELECT DISTINCT - 73 * - + 75 + 50 + + 37 * 98 + + 1 * + 31 AS col0
----
9182

query II rowsort
SELECT - 58 AS col0, - 21 + + NULLIF ( - - 26, - 82 )
----
-58
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2069
SELECT ALL - 44 * 63 - + + MIN( - - 42 ) - - + CAST( - 77 AS SIGNED ) * ( + + 18 ) + - COUNT( * )
----
-4201

skipif mysql # not compatible
query I rowsort label-2069
SELECT ALL - 44 * 63 - + + MIN ( - - 42 ) - - + CAST ( - 77 AS INTEGER ) * ( + + 18 ) + - COUNT ( * )
----
-4201

onlyif mysql # aggregate syntax: 
query I rowsort label-2070
SELECT DISTINCT 56 * 54 - + 16 + 67 + + ( - MIN( - 92 ) )
----
3167

skipif mysql # not compatible
query I rowsort label-2070
SELECT DISTINCT 56 * 54 - + 16 + 67 + + ( - MIN ( - 92 ) )
----
3167

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2071
SELECT + + 45 - - + 99 + 25 * - + CAST( + 36 AS SIGNED )
----
-756

skipif mysql # not compatible
query I rowsort label-2071
SELECT + + 45 - - + 99 + 25 * - + CAST ( + 36 AS INTEGER )
----
-756

query II rowsort
SELECT DISTINCT + - 79, - 91 AS col1
----
-79
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-2073
SELECT 94 * - - MAX( 54 ) - + 69 AS col2, - 92 AS col1
----
5007
-92

skipif mysql # not compatible
query II rowsort label-2073
SELECT 94 * - - MAX ( 54 ) - + 69 AS col2, - 92 AS col1
----
5007
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-2074
SELECT 95 * ( + - ( + NULLIF ( - - 91, COUNT( * ) ) ) )
----
-8645

skipif mysql # not compatible
query I rowsort label-2074
SELECT 95 * ( + - ( + NULLIF ( - - 91, COUNT ( * ) ) ) )
----
-8645

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

query I rowsort
SELECT 14 * - 6 AS col0
----
-84

query I rowsort
SELECT ALL 2 * + 66
----
132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2078
SELECT ALL + 95 * + COALESCE ( - + 25, + ( - 85 ) * 41 * 34 * 51 * - - 68 * + + CAST( NULL AS SIGNED ), 57 * - 12 * + 30 * + ( 74 ) ) AS col0
----
-2375

skipif mysql # not compatible
query I rowsort label-2078
SELECT ALL + 95 * + COALESCE ( - + 25, + ( - 85 ) * 41 * 34 * 51 * - - 68 * + + CAST ( NULL AS INTEGER ), 57 * - 12 * + 30 * + ( 74 ) ) AS col0
----
-2375

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2079
SELECT 10 * - 53, + CAST( 82 AS SIGNED ) + + + 98 + - ( - 82 ) col1
----
-530
262

skipif mysql # not compatible
query II rowsort label-2079
SELECT 10 * - 53, + CAST ( 82 AS INTEGER ) + + + 98 + - ( - 82 ) col1
----
-530
262

query I rowsort
SELECT 94 + + 72 - + - 10 AS col0
----
176

onlyif mysql # DIV for integer division: 
query I rowsort label-2081
SELECT 29 DIV + 56
----
0

skipif mysql # not compatible
query I rowsort label-2081
SELECT 29 / + 56
----
0

query I rowsort
SELECT 0 * + 34 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2083
SELECT 4 + + COUNT( * ) * + 45 AS col2
----
49

skipif mysql # not compatible
query I rowsort label-2083
SELECT 4 + + COUNT ( * ) * + 45 AS col2
----
49

query I rowsort
SELECT 39 - - 8 + 21
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2085
SELECT 13 + + COUNT( - 69 ) AS col0
----
14

skipif mysql # not compatible
query I rowsort label-2085
SELECT 13 + + COUNT ( - 69 ) AS col0
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-2086
SELECT 19 DIV + 36 col0
----
0

skipif mysql # not compatible
query I rowsort label-2086
SELECT 19 / + 36 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2087
SELECT ALL + CASE SUM( + 44 ) WHEN - 18 THEN - + 31 * - 44 * - - 98 WHEN 66 THEN NULL END / 36 + 14 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2087
SELECT ALL + CASE SUM ( + 44 ) WHEN - 18 THEN - + 31 * - 44 * - - 98 WHEN 66 THEN NULL END / 36 + 14 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2088
SELECT DISTINCT + + 5 DIV 31 DIV + + 88 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2088
SELECT DISTINCT + + 5 / 31 / + + 88 AS col0
----
0

query I rowsort
SELECT ALL + 42 * 53 AS col0
----
2226

onlyif mysql # aggregate syntax: 
query I rowsort label-2090
SELECT - 46 + - 41 + - - COUNT( * ) - - COUNT( * ) * - 28 + - 62
----
-176

skipif mysql # not compatible
query I rowsort label-2090
SELECT - 46 + - 41 + - - COUNT ( * ) - - COUNT ( * ) * - 28 + - 62
----
-176

query I rowsort
SELECT DISTINCT - 14 * - 31 AS col2
----
434

query I rowsort
SELECT 42 + - 89
----
-47

query I rowsort
SELECT + ( - + 52 ) * - 48 AS col2
----
2496

onlyif mysql # DIV for integer division: 
query I rowsort label-2094
SELECT ALL - 81 + - 26 + + + 96 * 7 + + - 40 DIV - 68 + - 69 AS col2
----
496

skipif mysql # not compatible
query I rowsort label-2094
SELECT ALL - 81 + - 26 + + + 96 * 7 + + - 40 / - 68 + - 69 AS col2
----
496

query I rowsort
SELECT 60 + 73
----
133

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2096
SELECT - 46 * NULLIF ( - - CAST( NULL AS DECIMAL ), + 30 ) + - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2096
SELECT - 46 * NULLIF ( - - CAST ( NULL AS REAL ), + 30 ) + - COUNT ( * ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2097
SELECT DISTINCT CAST( + 84 AS SIGNED ) + - + 0 - + + 95 AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-2097
SELECT DISTINCT CAST ( + 84 AS INTEGER ) + - + 0 - + + 95 AS col0
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2098
SELECT - 35 * NULLIF ( + CAST( + 18 AS SIGNED ), MAX( ALL + 22 ) ) AS col0
----
-630

skipif mysql # not compatible
query I rowsort label-2098
SELECT - 35 * NULLIF ( + CAST ( + 18 AS INTEGER ), MAX ( ALL + 22 ) ) AS col0
----
-630

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2099
SELECT - 5 * COUNT( * ) * + ( 74 ) * - - COUNT( * ) * + + 24 * + 97 + - NULLIF ( 32, - CAST( NULL AS SIGNED ) + + 10 - + + 24 ) AS col1, 44
----
-861392
44

skipif mysql # not compatible
query II rowsort label-2099
SELECT - 5 * COUNT ( * ) * + ( 74 ) * - - COUNT ( * ) * + + 24 * + 97 + - NULLIF ( 32, - CAST ( NULL AS INTEGER ) + + 10 - + + 24 ) AS col1, 44
----
-861392
44

query I rowsort
SELECT DISTINCT + + 0 + + - 7 AS col2
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-2101
SELECT + SUM( ALL + 58 ) + + 4 * 16 col0
----
122

skipif mysql # not compatible
query I rowsort label-2101
SELECT + SUM ( ALL + 58 ) + + 4 * 16 col0
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-2102
SELECT ALL + - 50 + + - COUNT( * ) + + 70 * COUNT( * ) * 31 + - 77
----
2042

skipif mysql # not compatible
query I rowsort label-2102
SELECT ALL + - 50 + + - COUNT ( * ) + + 70 * COUNT ( * ) * 31 + - 77
----
2042

onlyif mysql # aggregate syntax: 
query I rowsort label-2103
SELECT - NULLIF ( - - COUNT( * ), COUNT( DISTINCT + 17 ) * + 39 )
----
-1

skipif mysql # not compatible
query I rowsort label-2103
SELECT - NULLIF ( - - COUNT ( * ), COUNT ( DISTINCT + 17 ) * + 39 )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-2104
SELECT ALL + 5 * + COUNT( * ) col2, - 95 * - 3
----
5
285

skipif mysql # not compatible
query II rowsort label-2104
SELECT ALL + 5 * + COUNT ( * ) col2, - 95 * - 3
----
5
285

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2105
SELECT + - NULLIF ( + + 27, + SUM( 20 ) ) * - 83 + + 7 - + 77 + - 94 DIV - 26 AS col2
----
2174

skipif mysql # not compatible
query I rowsort label-2105
SELECT + - NULLIF ( + + 27, + SUM ( 20 ) ) * - 83 + + 7 - + 77 + - 94 / - 26 AS col2
----
2174

query II rowsort
SELECT + ( 85 ) AS col1, 5 AS col1
----
85
5

query I rowsort
SELECT 99 * + 21 + - 91
----
1988

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2109
SELECT + COUNT( * ) * - 25 / 17 + + CAST( + 62 AS SIGNED ) + + COALESCE ( - 54, - - 57 + - - 47 ) - + 45 + - - 49 * + + CAST( NULL AS SIGNED ) + - 91 * - 20 * - + 91 - 31 * + ( 31 ) + + AVG ( DISTINCT + 22 ) / 63 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2109
SELECT + COUNT ( * ) * - 25 / 17 + + CAST ( + 62 AS INTEGER ) + + COALESCE ( - 54, - - 57 + - - 47 ) - + 45 + - - 49 * + + CAST ( NULL AS INTEGER ) + - 91 * - 20 * - + 91 - 31 * + ( 31 ) + + AVG ( DISTINCT + 22 ) / 63 col0
----
NULL

query I rowsort
SELECT ALL + 99 * - 36 AS col1
----
-3564

query I rowsort
SELECT DISTINCT 20 - + 75 col0
----
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-2112
SELECT ALL 79 * + 25 * + - 44 * - - MIN( ALL 84 ) * + + 65 AS col1, 47 * 97 * + 61 AS col2
----
-474474000
278099

skipif mysql # not compatible
query II rowsort label-2112
SELECT ALL 79 * + 25 * + - 44 * - - MIN ( ALL 84 ) * + + 65 AS col1, 47 * 97 * + 61 AS col2
----
-474474000
278099

query I rowsort
SELECT 4 + - 67 AS col1
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-2114
SELECT ALL 55 - + 0 + - COUNT( * ) * - 30 * - 87
----
-2555

skipif mysql # not compatible
query I rowsort label-2114
SELECT ALL 55 - + 0 + - COUNT ( * ) * - 30 * - 87
----
-2555

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-2115
SELECT DISTINCT 16 AS col2, 38 * + CAST( NULL AS SIGNED ) + + 64 + + COUNT( - 73 ) * - - 83 * + 26 AS col0, + 44
----
16
NULL
44

skipif mysql # not compatible
query III rowsort label-2115
SELECT DISTINCT 16 AS col2, 38 * + CAST ( NULL AS INTEGER ) + + 64 + + COUNT ( - 73 ) * - - 83 * + 26 AS col0, + 44
----
16
NULL
44

query I rowsort
SELECT ALL + 64 * + NULLIF ( + - 58, - - 71 )
----
-3712

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2117
SELECT ( - 93 ) * - 27 * - 86 + - 54 + + 18 * 87 * CAST( NULL AS SIGNED ) - 51 * COUNT( * ) * - - 40 + + ( - 39 ) * + CAST( - + 71 AS SIGNED ) * - 85 + - SUM( 3 ) * + 30
----
NULL

skipif mysql # not compatible
query I rowsort label-2117
SELECT ( - 93 ) * - 27 * - 86 + - 54 + + 18 * 87 * CAST ( NULL AS INTEGER ) - 51 * COUNT ( * ) * - - 40 + + ( - 39 ) * + CAST ( - + 71 AS INTEGER ) * - 85 + - SUM ( 3 ) * + 30
----
NULL

query I rowsort
SELECT DISTINCT + 44 * + - 86
----
-3784

query I rowsort
SELECT DISTINCT - 85 + + 41 + 38 + 93 - + + 74 * + + 0 AS col0
----
87

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

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

query I rowsort
SELECT + 75 + 5 + + 50 + + ( + + 16 )
----
146

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

skipif mysql # not compatible
query I rowsort label-2122
SELECT ALL + + COUNT ( * ) / + COUNT ( + CAST ( - - 11 AS INTEGER ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2123
SELECT ALL CAST( - - CAST( + CASE - + 19 WHEN 1 THEN NULL WHEN + - 81 + - 46 THEN - 47 WHEN + - 7 * - 55 THEN 77 * + 28 * - 84 * + 62 + 27 + - 1 ELSE NULL END AS DECIMAL ) AS SIGNED ) + - + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2123
SELECT ALL CAST ( - - CAST ( + CASE - + 19 WHEN 1 THEN NULL WHEN + - 81 + - 46 THEN - 47 WHEN + - 7 * - 55 THEN 77 * + 28 * - 84 * + 62 + 27 + - 1 ELSE NULL END AS REAL ) AS INTEGER ) + - + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2124
SELECT DISTINCT - 28 * + - MIN( 71 ) * 84 AS col2
----
166992

skipif mysql # not compatible
query I rowsort label-2124
SELECT DISTINCT - 28 * + - MIN ( 71 ) * 84 AS col2
----
166992

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2125
SELECT ALL + 43 * - - CAST( NULL AS SIGNED ) + - 35 * 86 - + CASE - 69 WHEN + 95 * MIN( + 64 ) + + + COUNT( * ) THEN NULL WHEN - + 29 THEN NULL WHEN - 80 THEN NULL ELSE + 44 * - COALESCE ( COUNT( * ), + 51 ) + 76 END / + ( + - CAST( - NULLIF ( 52, 61 ) AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2125
SELECT ALL + 43 * - - CAST ( NULL AS INTEGER ) + - 35 * 86 - + CASE - 69 WHEN + 95 * MIN ( + 64 ) + + + COUNT ( * ) THEN NULL WHEN - + 29 THEN NULL WHEN - 80 THEN NULL ELSE + 44 * - COALESCE ( COUNT ( * ), + 51 ) + 76 END / + ( + - CAST ( - NULLIF ( 52, 61 ) AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2126
SELECT 89 / 24 * + 79 * - CAST( 61 AS SIGNED ) + + - 12 + - 94 + + CAST( 15 AS SIGNED ) - + ( + 7 ) * - - 68 + + 9 + - + 53 * - + 44 + - 78 / + CASE + 68 WHEN - - 4 + - - 9 * + COUNT( * ) THEN 49 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2126
SELECT 89 / 24 * + 79 * - CAST ( 61 AS INTEGER ) + + - 12 + - 94 + + CAST ( 15 AS INTEGER ) - + ( + 7 ) * - - 68 + + 9 + - + 53 * - + 44 + - 78 / + CASE + 68 WHEN - - 4 + - - 9 * + COUNT ( * ) THEN 49 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2127
SELECT + + 43 * - 73 - - 22 DIV COALESCE ( ( + 15 ), - - 48, + 10 * - + 20 * 91 ) AS col1, + 97 col1
----
-3138
97

skipif mysql # not compatible
query II rowsort label-2127
SELECT + + 43 * - 73 - - 22 / COALESCE ( ( + 15 ), - - 48, + 10 * - + 20 * 91 ) AS col1, + 97 col1
----
-3138
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2128
SELECT ALL 23 * - 19 + + - 7 + 25 * + CASE - MIN( DISTINCT + + 60 ) WHEN - + 35 THEN - 35 ELSE + 79 * - 38 * - 92 + - + MIN( ALL + 69 ) + - CAST( + NULLIF ( - + 55, - AVG ( ALL + + 50 ) + + CAST( NULL AS SIGNED ) + 95 * 51 ) AS SIGNED ) + + CAST( NULL AS DECIMAL ) END + 31 * + 74 + 18 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2128
SELECT ALL 23 * - 19 + + - 7 + 25 * + CASE - MIN ( DISTINCT + + 60 ) WHEN - + 35 THEN - 35 ELSE + 79 * - 38 * - 92 + - + MIN ( ALL + 69 ) + - CAST ( + NULLIF ( - + 55, - AVG ( ALL + + 50 ) + + CAST ( NULL AS INTEGER ) + 95 * 51 ) AS INTEGER ) + + CAST ( NULL AS REAL ) END + 31 * + 74 + 18 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2129
SELECT - ( 58 ) * + ( 65 ) + + 39 - + COUNT( * ) * + - 1
----
-3730

skipif mysql # not compatible
query I rowsort label-2129
SELECT - ( 58 ) * + ( 65 ) + + 39 - + COUNT ( * ) * + - 1
----
-3730

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2130
SELECT - SUM( ( 23 ) ) AS col2, CASE - 82 WHEN - + CAST( NULL AS DECIMAL ) * - 64 + + 48 - + 39 THEN - NULLIF ( + ( - - 80 ), - + 0 ) + - - 69 WHEN + 77 THEN NULL END AS col1
----
-23
NULL

skipif mysql # not compatible
query II rowsort label-2130
SELECT - SUM ( ( 23 ) ) AS col2, CASE - 82 WHEN - + CAST ( NULL AS REAL ) * - 64 + + 48 - + 39 THEN - NULLIF ( + ( - - 80 ), - + 0 ) + - - 69 WHEN + 77 THEN NULL END AS col1
----
-23
NULL

query I rowsort
SELECT - 31 * + ( - 74 ) + + 62 + 34 * - 37
----
1098

onlyif mysql # aggregate syntax: 
query I rowsort label-2132
SELECT ALL + 28 * + 61 + - - COUNT( * ) - - 23 * + + 56 * + ( - 11 ) + - + 78
----
-12537

skipif mysql # not compatible
query I rowsort label-2132
SELECT ALL + 28 * + 61 + - - COUNT ( * ) - - 23 * + + 56 * + ( - 11 ) + - + 78
----
-12537

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

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

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

skipif mysql # not compatible
query I rowsort label-2134
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) * + 23
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-2135
SELECT MIN( ALL + 19 ) AS col1, + 54 * + 48 + + + ( + + 63 ) * - + COUNT( * ) AS col2
----
19
2529

skipif mysql # not compatible
query II rowsort label-2135
SELECT MIN ( ALL + 19 ) AS col1, + 54 * + 48 + + + ( + + 63 ) * - + COUNT ( * ) AS col2
----
19
2529

onlyif mysql # aggregate syntax: 
query III rowsort label-2136
SELECT ALL + COUNT( * ), + 38 * 0 * - 43 col0, - 68 + 57 AS col2
----
1
0
-11

skipif mysql # not compatible
query III rowsort label-2136
SELECT ALL + COUNT ( * ), + 38 * 0 * - 43 col0, - 68 + 57 AS col2
----
1
0
-11

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2138
SELECT ALL + 68 DIV + 73
----
0

skipif mysql # not compatible
query I rowsort label-2138
SELECT ALL + 68 / + 73
----
0

query I rowsort
SELECT - 37 - 3
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-2140
SELECT + 43 DIV - 69
----
0

skipif mysql # not compatible
query I rowsort label-2140
SELECT + 43 / - 69
----
0

query I rowsort
SELECT + 35 * - 86 - + 31 AS col1
----
-3041

onlyif mysql # DIV for integer division: 
query I rowsort label-2142
SELECT + 78 DIV - - 13
----
6

skipif mysql # not compatible
query I rowsort label-2142
SELECT + 78 / - - 13
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-2143
SELECT - NULLIF ( - 28, + 46 - MAX( + + ( + 81 ) ) ) AS col2, 35 / + COALESCE ( ( + + ( - 22 ) ), + 84 * - + 56 ) / - 72 * CASE - 73 WHEN - COUNT( * ) THEN 68 / 58 END * + 4 / + 65
----
28
NULL

skipif mysql # not compatible
query II rowsort label-2143
SELECT - NULLIF ( - 28, + 46 - MAX ( + + ( + 81 ) ) ) AS col2, 35 / + COALESCE ( ( + + ( - 22 ) ), + 84 * - + 56 ) / - 72 * CASE - 73 WHEN - COUNT ( * ) THEN 68 / 58 END * + 4 / + 65
----
28
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2144
SELECT + 7 DIV + - 57 * - - 18 * 59, ( + COUNT( * ) ) AS col0
----
0
1

skipif mysql # not compatible
query II rowsort label-2144
SELECT + 7 / + - 57 * - - 18 * 59, ( + COUNT ( * ) ) AS col0
----
0
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2145
SELECT 58 AS col1, COALESCE ( + - 77, - COUNT( * ), - 19 )
----
58
-77

skipif mysql # not compatible
query II rowsort label-2145
SELECT 58 AS col1, COALESCE ( + - 77, - COUNT ( * ), - 19 )
----
58
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2146
SELECT ALL ( + CAST( + - NULLIF ( + 14, + + 85 ) AS SIGNED ) )
----
-14

skipif mysql # not compatible
query I rowsort label-2146
SELECT ALL ( + CAST ( + - NULLIF ( + 14, + + 85 ) AS INTEGER ) )
----
-14

query II rowsort
SELECT DISTINCT - 51 * 82 AS col2, 32 AS col1
----
-4182
32

onlyif mysql # DIV for integer division: 
query I rowsort label-2148
SELECT + 42 DIV + + 44
----
0

skipif mysql # not compatible
query I rowsort label-2148
SELECT + 42 / + + 44
----
0

query I rowsort
SELECT ALL 54 + - + 45 AS col1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2150
SELECT + 59 - 6 * + 9 * 27 * - CAST( 62 AS SIGNED ), + 19 AS col2
----
90455
19

skipif mysql # not compatible
query II rowsort label-2150
SELECT + 59 - 6 * + 9 * 27 * - CAST ( 62 AS INTEGER ), + 19 AS col2
----
90455
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2151
SELECT DISTINCT COALESCE ( + 33, + CAST( NULL AS SIGNED ) ) + NULLIF ( + 65, + - 46 * 99 / - - 12 * + 82 ) - + - 89 AS col2
----
187

skipif mysql # not compatible
query I rowsort label-2151
SELECT DISTINCT COALESCE ( + 33, + CAST ( NULL AS INTEGER ) ) + NULLIF ( + 65, + - 46 * 99 / - - 12 * + 82 ) - + - 89 AS col2
----
187

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

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

query I rowsort
SELECT DISTINCT ( - 55 ) + 66
----
11

query II rowsort
SELECT - 91 AS col2, 94 + 77 + 32
----
-91
203

onlyif mysql # DIV for integer division: 
query I rowsort label-2155
SELECT + 81 + + 40 DIV + + NULLIF ( + 32, 64 DIV 17 + + 67 + - - 23 + + 49 ) col1
----
82

skipif mysql # not compatible
query I rowsort label-2155
SELECT + 81 + + 40 / + + NULLIF ( + 32, 64 / 17 + + 67 + - - 23 + + 49 ) col1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2156
SELECT + + SUM( - + CASE + 36 WHEN - 95 * - - CASE - ( + 49 ) WHEN + CASE + 68 WHEN - 61 THEN + 76 WHEN 54 THEN NULL ELSE + + 29 * 1 * - - 30 + - 93 + + 94 * - + 29 * - 11 END THEN NULL ELSE 22 END THEN NULL ELSE - + 94 * - 9 END ) * - 61 AS col0
----
51606

skipif mysql # not compatible
query I rowsort label-2156
SELECT + + SUM ( - + CASE + 36 WHEN - 95 * - - CASE - ( + 49 ) WHEN + CASE + 68 WHEN - 61 THEN + 76 WHEN 54 THEN NULL ELSE + + 29 * 1 * - - 30 + - 93 + + 94 * - + 29 * - 11 END THEN NULL ELSE 22 END THEN NULL ELSE - + 94 * - 9 END ) * - 61 AS col0
----
51606

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2157
SELECT + CASE 7 WHEN - 86 THEN - - COUNT( * ) ELSE + 67 DIV 36 DIV 20 * - 75 END + + ( + + 53 ) + - 20 AS col2
----
33

skipif mysql # not compatible
query I rowsort label-2157
SELECT + CASE 7 WHEN - 86 THEN - - COUNT ( * ) ELSE + 67 / 36 / 20 * - 75 END + + ( + + 53 ) + - 20 AS col2
----
33

query I rowsort
SELECT - - 96 - - 52 + + 39 AS col0
----
187

onlyif mysql # aggregate syntax: 
query II rowsort label-2159
SELECT ALL + 46, MAX( - 92 ) AS col0
----
46
-92

skipif mysql # not compatible
query II rowsort label-2159
SELECT ALL + 46, MAX ( - 92 ) AS col0
----
46
-92

query II rowsort
SELECT - - 89, + ( 54 ) AS col1
----
89
54

onlyif mysql # aggregate syntax: 
query II rowsort label-2161
SELECT DISTINCT 69 col1, 94 * - 33 * + MAX( DISTINCT + ( + ( ( + COALESCE ( + 89, + 96 + - + 24 ) ) ) ) )
----
69
-276078

skipif mysql # not compatible
query II rowsort label-2161
SELECT DISTINCT 69 col1, 94 * - 33 * + MAX ( DISTINCT + ( + ( ( + COALESCE ( + 89, + 96 + - + 24 ) ) ) ) )
----
69
-276078

query I rowsort
SELECT ALL + 40 + - 44
----
-4

query II rowsort
SELECT ALL + 25, COALESCE ( - 91, 81, 36 + + 88 ) AS col0
----
25
-91

query I rowsort
SELECT DISTINCT + 71 * 10 col2
----
710

query I rowsort
SELECT - + 60 + 12 - + + 25
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-2166
SELECT ALL 23 * - 70 + + COUNT( * )
----
-1609

skipif mysql # not compatible
query I rowsort label-2166
SELECT ALL 23 * - 70 + + COUNT ( * )
----
-1609

query I rowsort
SELECT ALL 27 - - 97 AS col2
----
124

query I rowsort
SELECT + 11 * - 48
----
-528

query II rowsort
SELECT 82, 21 AS col1
----
82
21

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

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

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

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

query II rowsort
SELECT DISTINCT + + 7, 4 AS col0
----
7
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2174
SELECT ALL - COUNT( * ) * MAX( - 48 ) AS col1
----
48

skipif mysql # not compatible
query I rowsort label-2174
SELECT ALL - COUNT ( * ) * MAX ( - 48 ) AS col1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-2175
SELECT - COUNT( 73 ) - SUM( ALL + 1 ) * - 13
----
12

skipif mysql # not compatible
query I rowsort label-2175
SELECT - COUNT ( 73 ) - SUM ( ALL + 1 ) * - 13
----
12

query I rowsort
SELECT ALL + NULLIF ( - + ( + 33 ), 46 )
----
-33

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2177
SELECT DISTINCT - SUM( + CAST( NULL AS DECIMAL ) ) / + 87
----
NULL

skipif mysql # not compatible
query I rowsort label-2177
SELECT DISTINCT - SUM ( + CAST ( NULL AS REAL ) ) / + 87
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2179
SELECT - COUNT( * ) + - CAST( NULL AS SIGNED ), - MAX( 87 ) AS col0
----
NULL
-87

skipif mysql # not compatible
query II rowsort label-2179
SELECT - COUNT ( * ) + - CAST ( NULL AS INTEGER ), - MAX ( 87 ) AS col0
----
NULL
-87

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

skipif mysql # not compatible
query I rowsort label-2180
SELECT - CAST ( - + 86 AS INTEGER ) * - 61 - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 74 * - 90 - - 93
----
6753

query I rowsort
SELECT ALL - 64 * + - 90 AS col0
----
5760

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2183
SELECT - ( 89 ) * - + SUM( 72 ) * + 55 + + + 95 + 80 - - 44 * COUNT( * ) * + 59 + + 53 DIV - 12 AS col1, COUNT( * ) AS col0
----
355207
1

skipif mysql # not compatible
query II rowsort label-2183
SELECT - ( 89 ) * - + SUM ( 72 ) * + 55 + + + 95 + 80 - - 44 * COUNT ( * ) * + 59 + + 53 / - 12 AS col1, COUNT ( * ) AS col0
----
355207
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2184
SELECT COALESCE ( COUNT( * ), - 8, + NULLIF ( - 10, - 39 * - - 23 ) * 20 * 38 + - - 41 + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-2184
SELECT COALESCE ( COUNT ( * ), - 8, + NULLIF ( - 10, - 39 * - - 23 ) * 20 * 38 + - - 41 + COUNT ( * ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2185
SELECT ALL + 12 * COUNT( * ) + + + 54 + - 29
----
37

skipif mysql # not compatible
query I rowsort label-2185
SELECT ALL + 12 * COUNT ( * ) + + + 54 + - 29
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2186
SELECT ALL + CASE 27 WHEN + CAST( NULL AS SIGNED ) + - - 31 THEN COUNT( * ) / 58 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2186
SELECT ALL + CASE 27 WHEN + CAST ( NULL AS INTEGER ) + - - 31 THEN COUNT ( * ) / 58 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2187
SELECT MAX( 27 ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-2187
SELECT MAX ( 27 ) AS col2
----
27

query I rowsort
SELECT + 88 + + 6 AS col1
----
94

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

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

query II rowsort
SELECT + 6 * - ( CASE ( + 46 ) WHEN + 76 * + - 87 THEN NULL ELSE + 89 - + - 7 * COALESCE ( - 95, - 3 ) END ) AS col1, - 50 * + 34
----
3456
-1700

query I rowsort
SELECT ALL - 94 * 29 AS col2
----
-2726

onlyif mysql # aggregate syntax: 
query I rowsort label-2192
SELECT - - 88 + - COUNT( * ) AS col1
----
87

skipif mysql # not compatible
query I rowsort label-2192
SELECT - - 88 + - COUNT ( * ) AS col1
----
87

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2194
SELECT ALL - 50 + - 52 * - - CAST( - - 38 AS SIGNED )
----
-2026

skipif mysql # not compatible
query I rowsort label-2194
SELECT ALL - 50 + - 52 * - - CAST ( - - 38 AS INTEGER )
----
-2026

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2196
SELECT DISTINCT - 42 - COUNT( * ) col2
----
-43

skipif mysql # not compatible
query I rowsort label-2196
SELECT DISTINCT - 42 - COUNT ( * ) col2
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-2197
SELECT COUNT( 74 ) - + 23 + + ( - + COUNT( * ) )
----
-23

skipif mysql # not compatible
query I rowsort label-2197
SELECT COUNT ( 74 ) - + 23 + + ( - + COUNT ( * ) )
----
-23

query II rowsort
SELECT - + COALESCE ( + 66, - + NULLIF ( + 71, + 33 ) ) AS col0, 59
----
-66
59

query II rowsort
SELECT ALL - ( 70 ) AS col1, - ( + - 7 ) AS col2
----
-70
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2200
SELECT DISTINCT + CASE + 81 WHEN + 98 + + NULLIF ( - 53, 64 ) THEN NULL WHEN + 12 * - 69 * - 96 / - + 83 * + 86 + + - 12 THEN - - 61 / + CASE - + 82 WHEN + 51 THEN 52 ELSE NULL END * 71 + + 68 - - 89 / - 69 / + 8 * 87 - 4 + + COUNT( * ) WHEN 39 + + 90 THEN NULL WHEN + 42 * - 3 THEN - SUM( 23 ) * - 24 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2200
SELECT DISTINCT + CASE + 81 WHEN + 98 + + NULLIF ( - 53, 64 ) THEN NULL WHEN + 12 * - 69 * - 96 / - + 83 * + 86 + + - 12 THEN - - 61 / + CASE - + 82 WHEN + 51 THEN 52 ELSE NULL END * 71 + + 68 - - 89 / - 69 / + 8 * 87 - 4 + + COUNT ( * ) WHEN 39 + + 90 THEN NULL WHEN + 42 * - 3 THEN - SUM ( 23 ) * - 24 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2201
SELECT 22 - + 10 AS col1, - 66 + COUNT( * ) * - MAX( - 41 ) AS col0
----
12
-25

skipif mysql # not compatible
query II rowsort label-2201
SELECT 22 - + 10 AS col1, - 66 + COUNT ( * ) * - MAX ( - 41 ) AS col0
----
12
-25

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

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

query I rowsort
SELECT ALL 57 * 55 * - 6 * 11
----
-206910

onlyif mysql # DIV for integer division: 
query I rowsort label-2204
SELECT 45 DIV + 58 - - 38
----
38

skipif mysql # not compatible
query I rowsort label-2204
SELECT 45 / + 58 - - 38
----
38

query II rowsort
SELECT DISTINCT - ( 16 ) AS col2, 42
----
-16
42

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2207
SELECT DISTINCT - 52 AS col1, + 29 * + + CAST( - AVG ( ALL + 43 ) AS SIGNED )
----
-52
-1247

skipif mysql # not compatible
query II rowsort label-2207
SELECT DISTINCT - 52 AS col1, + 29 * + + CAST ( - AVG ( ALL + 43 ) AS INTEGER )
----
-52
-1247

query I rowsort
SELECT 23 * - 9 * - 95 AS col1
----
19665

query II rowsort
SELECT 88 AS col1, 76 * - - 43 + 49 + 6 AS col1
----
88
3323

onlyif mysql # aggregate syntax: 
query II rowsort label-2210
SELECT ALL + ( + + 83 ) + + 37 AS col0, 48 - - + COUNT( 30 ) AS col0
----
120
49

skipif mysql # not compatible
query II rowsort label-2210
SELECT ALL + ( + + 83 ) + + 37 AS col0, 48 - - + COUNT ( 30 ) AS col0
----
120
49

query I rowsort
SELECT ALL 48 + - - 12 AS col0
----
60

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2213
SELECT DISTINCT - 33 * - SUM( DISTINCT - CASE 85 WHEN - 5 THEN NULL WHEN + 80 THEN NULL ELSE 7 END ) * - + ( + 85 ) AS col1
----
19635

skipif mysql # not compatible
query I rowsort label-2213
SELECT DISTINCT - 33 * - SUM ( DISTINCT - CASE 85 WHEN - 5 THEN NULL WHEN + 80 THEN NULL ELSE 7 END ) * - + ( + 85 ) AS col1
----
19635

onlyif mysql # aggregate syntax: 
query I rowsort label-2214
SELECT DISTINCT - ( COUNT( * ) ) + - COUNT( DISTINCT - - 27 ) + - - COUNT( * ) + + + 22
----
21

skipif mysql # not compatible
query I rowsort label-2214
SELECT DISTINCT - ( COUNT ( * ) ) + - COUNT ( DISTINCT - - 27 ) + - - COUNT ( * ) + + + 22
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-2215
SELECT ALL + COUNT( * ) + 97 + - + 65 AS col0, 58 * + 56 AS col0
----
33
3248

skipif mysql # not compatible
query II rowsort label-2215
SELECT ALL + COUNT ( * ) + 97 + - + 65 AS col0, 58 * + 56 AS col0
----
33
3248

query I rowsort
SELECT 48 * - 30 AS col2
----
-1440

query I rowsort
SELECT ALL - 42 + 57 * 1 + 89
----
104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2218
SELECT DISTINCT - COUNT( * ) * + 26 DIV CAST( COUNT( ALL + 6 ) AS SIGNED ) AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-2218
SELECT DISTINCT - COUNT ( * ) * + 26 / CAST ( COUNT ( ALL + 6 ) AS INTEGER ) AS col0
----
-26

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2219
SELECT - 88 * + 10 - - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2219
SELECT - 88 * + 10 - - CAST ( NULL AS REAL ) AS col2
----
NULL

query II rowsort
SELECT + 74 AS col0, 22 / - CASE - 21 WHEN - - 85 THEN + - ( NULLIF ( + 44, - + 25 + - 46 ) ) END
----
74
NULL

query I rowsort
SELECT ALL - 15 * + 86 col2
----
-1290

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2222
SELECT 38 + + 53 * + 51 DIV + COALESCE ( - COUNT( * ), 12, - - 37 ) AS col1
----
-2665

skipif mysql # not compatible
query I rowsort label-2222
SELECT 38 + + 53 * + 51 / + COALESCE ( - COUNT ( * ), 12, - - 37 ) AS col1
----
-2665

query I rowsort
SELECT 74 * - - 94
----
6956

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2224
SELECT ( - CASE - 78 WHEN SUM( DISTINCT + - 29 ) / MIN( - 49 ) - + 70 + - - 90 THEN 0 WHEN - - COUNT( * ) * CAST( NULL AS SIGNED ) THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-2224
SELECT ( - CASE - 78 WHEN SUM ( DISTINCT + - 29 ) / MIN ( - 49 ) - + 70 + - - 90 THEN 0 WHEN - - COUNT ( * ) * CAST ( NULL AS INTEGER ) THEN NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2225
SELECT DISTINCT CASE + 92 WHEN + 86 THEN + 37 WHEN + - 32 - ( SUM( ALL - + 58 ) ) THEN NULL WHEN 83 + - 54 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2225
SELECT DISTINCT CASE + 92 WHEN + 86 THEN + 37 WHEN + - 32 - ( SUM ( ALL - + 58 ) ) THEN NULL WHEN 83 + - 54 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2226
SELECT ALL + - 20 - - ( + 12 ) * + 76 + + + 12 * + 62 DIV COUNT( * ) col2
----
1636

skipif mysql # not compatible
query I rowsort label-2226
SELECT ALL + - 20 - - ( + 12 ) * + 76 + + + 12 * + 62 / COUNT ( * ) col2
----
1636

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2228
SELECT 19 - - NULLIF ( + 53, + 21 * - CASE + 68 WHEN - 52 THEN + 59 WHEN - 84 THEN - NULLIF ( 94, - + 64 + 66 ) + - - 8 END + 9 DIV 21 ) + SUM( DISTINCT - 5 ) DIV 8 AS col0
----
72

skipif mysql # not compatible
query I rowsort label-2228
SELECT 19 - - NULLIF ( + 53, + 21 * - CASE + 68 WHEN - 52 THEN + 59 WHEN - 84 THEN - NULLIF ( 94, - + 64 + 66 ) + - - 8 END + 9 / 21 ) + SUM ( DISTINCT - 5 ) / 8 AS col0
----
72

query I rowsort
SELECT ALL + - 28 - 33 col1
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2230
SELECT ALL + NULLIF ( - + 18, - 79 ) / - 12 + ( + CAST( NULL AS SIGNED ) ) * + 97 * - + 77 + 83 - - 39 + - 45 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2230
SELECT ALL + NULLIF ( - + 18, - 79 ) / - 12 + ( + CAST ( NULL AS INTEGER ) ) * + 97 * - + 77 + 83 - - 39 + - 45 AS col2
----
NULL

query I rowsort
SELECT ( - 54 ) * - + 9 + - 51 col2
----
435

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2232
SELECT ALL + + 16 * + 85 * 74 AS col0, CAST( NULL AS SIGNED ) * - - AVG ( - + 76 )
----
100640
NULL

skipif mysql # not compatible
query II rowsort label-2232
SELECT ALL + + 16 * + 85 * 74 AS col0, CAST ( NULL AS INTEGER ) * - - AVG ( - + 76 )
----
100640
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2233
SELECT - 62 - - + ( + + 70 ) + 69 * - 5 / 96 + - NULLIF ( - 33, 69 ) * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2233
SELECT - 62 - - + ( + + 70 ) + 69 * - 5 / 96 + - NULLIF ( - 33, 69 ) * - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2234
SELECT ALL - 6 DIV + 7
----
0

skipif mysql # not compatible
query I rowsort label-2234
SELECT ALL - 6 / + 7
----
0

query I rowsort
SELECT + 38 * 49 AS col1
----
1862

query I rowsort
SELECT COALESCE ( - - 12, + 40 + - 83 ) * + 61 AS col2
----
732

query I rowsort
SELECT ( 76 ) * + + 87
----
6612

onlyif mysql # aggregate syntax: 
query I rowsort label-2238
SELECT COUNT( + + COALESCE ( + ( - ( 84 ) ), - - 68 + - 32, - + 64 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2238
SELECT COUNT ( + + COALESCE ( + ( - ( 84 ) ), - - 68 + - 32, - + 64 ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2239
SELECT ALL - 40 * - - MIN( 2 ) + 81 + + + COUNT( * ) * - - 57 * + - COALESCE ( - 32, + 66, + - NULLIF ( - 40, COALESCE ( - 91, + 94 ) - 21 ) ) AS col2, + ( 63 )
----
1825
63

skipif mysql # not compatible
query II rowsort label-2239
SELECT ALL - 40 * - - MIN ( 2 ) + 81 + + + COUNT ( * ) * - - 57 * + - COALESCE ( - 32, + 66, + - NULLIF ( - 40, COALESCE ( - 91, + 94 ) - 21 ) ) AS col2, + ( 63 )
----
1825
63

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2241
SELECT 9 DIV + COUNT( * ) + + ( + 40 )
----
49

skipif mysql # not compatible
query I rowsort label-2241
SELECT 9 / + COUNT ( * ) + + ( + 40 )
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-2242
SELECT COUNT( * ) * + - ( + + NULLIF ( + 47, - 16 ) ) AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-2242
SELECT COUNT ( * ) * + - ( + + NULLIF ( + 47, - 16 ) ) AS col2
----
-47

query I rowsort
SELECT DISTINCT - NULLIF ( + 24, - + ( + 41 ) / + 82 )
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2244
SELECT MIN( - 97 ), CASE + CAST( NULL AS SIGNED ) WHEN + 49 * + 31 + - + COALESCE ( + - 1, - 29 ) * + + 90 THEN NULLIF ( + 20, - AVG ( 30 ) ) * - + 65 * - - 7 * - 85 - 97 WHEN - ( - 30 ) - 99 + - 68 THEN NULL ELSE NULL END / + 23 + - 51 + + 1 AS col2
----
-97
NULL

skipif mysql # not compatible
query II rowsort label-2244
SELECT MIN ( - 97 ), CASE + CAST ( NULL AS INTEGER ) WHEN + 49 * + 31 + - + COALESCE ( + - 1, - 29 ) * + + 90 THEN NULLIF ( + 20, - AVG ( 30 ) ) * - + 65 * - - 7 * - 85 - 97 WHEN - ( - 30 ) - 99 + - 68 THEN NULL ELSE NULL END / + 23 + - 51 + + 1 AS col2
----
-97
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2245
SELECT ALL - 13 * COUNT( * ) * 29 + + 36 - - + 43 * + - 55 + + + MAX( + 93 ) * - 14 AS col0
----
-4008

skipif mysql # not compatible
query I rowsort label-2245
SELECT ALL - 13 * COUNT ( * ) * 29 + + 36 - - + 43 * + - 55 + + + MAX ( + 93 ) * - 14 AS col0
----
-4008

query I rowsort
SELECT DISTINCT 7 + 40
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2247
SELECT ALL NULLIF ( + MAX( DISTINCT 84 ), + 93 ) * + 31
----
2604

skipif mysql # not compatible
query I rowsort label-2247
SELECT ALL NULLIF ( + MAX ( DISTINCT 84 ), + 93 ) * + 31
----
2604

query I rowsort
SELECT - 84 * + 90 * - 56 + - 85 AS col2
----
423275

onlyif mysql # aggregate syntax: 
query II rowsort label-2249
SELECT 55 * - COUNT( * ) AS col0, - 88 AS col1
----
-55
-88

skipif mysql # not compatible
query II rowsort label-2249
SELECT 55 * - COUNT ( * ) AS col0, - 88 AS col1
----
-55
-88

query II rowsort
SELECT 29 + - 21, 14 AS col0
----
8
14

query I rowsort
SELECT 64 - + 51
----
13

query I rowsort
SELECT 74 + + 36 col1
----
110

onlyif mysql # aggregate syntax: 
query II rowsort label-2253
SELECT ALL + 75 - + - 22 * + 5 * 70, + COUNT( * ) AS col0
----
7775
1

skipif mysql # not compatible
query II rowsort label-2253
SELECT ALL + 75 - + - 22 * + 5 * 70, + COUNT ( * ) AS col0
----
7775
1

query I rowsort
SELECT ALL - 11 - - 14 AS col2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2255
SELECT + COALESCE ( + - ( ( - - 47 ) ), 81, - 97 DIV + ( - 25 ) ) AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-2255
SELECT + COALESCE ( + - ( ( - - 47 ) ), 81, - 97 / + ( - 25 ) ) AS col0
----
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-2256
SELECT ALL - MAX( DISTINCT - 75 ) AS col2, + 78 * + 16
----
75
1248

skipif mysql # not compatible
query II rowsort label-2256
SELECT ALL - MAX ( DISTINCT - 75 ) AS col2, + 78 * + 16
----
75
1248

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2257
SELECT ALL 44 DIV 3, 41 - - COUNT( * ) * - 51 * + ( + + CAST( + COUNT( * ) AS SIGNED ) ) AS col1
----
14
-10

skipif mysql # not compatible
query II rowsort label-2257
SELECT ALL 44 / 3, 41 - - COUNT ( * ) * - 51 * + ( + + CAST ( + COUNT ( * ) AS INTEGER ) ) AS col1
----
14
-10

query I rowsort
SELECT ALL + 11 * - + 21 + - 20 col2
----
-251

onlyif mysql # aggregate syntax: 
query I rowsort label-2259
SELECT ALL - 53 * COALESCE ( + COUNT( * ), - COALESCE ( - + 31, + 88 ) ) AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-2259
SELECT ALL - 53 * COALESCE ( + COUNT ( * ), - COALESCE ( - + 31, + 88 ) ) AS col0
----
-53

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2262
SELECT - COALESCE ( + COUNT( * ), + + SUM( 59 ), + - 88 ) * 9
----
-9

skipif mysql # not compatible
query I rowsort label-2262
SELECT - COALESCE ( + COUNT ( * ), + + SUM ( 59 ), + - 88 ) * 9
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2263
SELECT DISTINCT NULLIF ( - + 6, COALESCE ( + - COUNT( * ), 81 * + + 71 ) + + 95 + - NULLIF ( - COUNT( * ), - CAST( - - MIN( DISTINCT 3 ) AS SIGNED ) ) * - 67 )
----
-6

skipif mysql # not compatible
query I rowsort label-2263
SELECT DISTINCT NULLIF ( - + 6, COALESCE ( + - COUNT ( * ), 81 * + + 71 ) + + 95 + - NULLIF ( - COUNT ( * ), - CAST ( - - MIN ( DISTINCT 3 ) AS INTEGER ) ) * - 67 )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2264
SELECT DISTINCT 51 * COUNT( * ) + + COALESCE ( + MAX( - 94 ), - 10 + 34 - 49, COALESCE ( - 82, + 59 * - COUNT( * ) + 39 + - - 10 + 76 * 38 ) ) - + 55 AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-2264
SELECT DISTINCT 51 * COUNT ( * ) + + COALESCE ( + MAX ( - 94 ), - 10 + 34 - 49, COALESCE ( - 82, + 59 * - COUNT ( * ) + 39 + - - 10 + 76 * 38 ) ) - + 55 AS col0
----
-98

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2266
SELECT ALL CAST( + COALESCE ( + 8, 9 ) AS SIGNED ) AS col1
----
8

skipif mysql # not compatible
query I rowsort label-2266
SELECT ALL CAST ( + COALESCE ( + 8, 9 ) AS INTEGER ) AS col1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2267
SELECT DISTINCT - + 84 + 80 + - COUNT( DISTINCT - + 6 ) * - - 44
----
-48

skipif mysql # not compatible
query I rowsort label-2267
SELECT DISTINCT - + 84 + 80 + - COUNT ( DISTINCT - + 6 ) * - - 44
----
-48

query I rowsort
SELECT ALL COALESCE ( 91, - ( + 55 ), - - 91 )
----
91

query II rowsort
SELECT - 35 + + 11, 54 AS col1
----
-24
54

onlyif mysql # DIV for integer division: 
query I rowsort label-2270
SELECT DISTINCT + - 71 DIV + + 33
----
-2

skipif mysql # not compatible
query I rowsort label-2270
SELECT DISTINCT + - 71 / + + 33
----
-2

query I rowsort
SELECT ALL - - 9 + - + 25 - - + 70 AS col1
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2272
SELECT - CAST( 62 AS SIGNED ) - + 76 * 72
----
-5534

skipif mysql # not compatible
query I rowsort label-2272
SELECT - CAST ( 62 AS INTEGER ) - + 76 * 72
----
-5534

onlyif mysql # DIV for integer division: 
query I rowsort label-2273
SELECT - 91 DIV + 23
----
-3

skipif mysql # not compatible
query I rowsort label-2273
SELECT - 91 / + 23
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2274
SELECT + MIN( DISTINCT + 89 ) + + 23 * + 6 AS col0
----
227

skipif mysql # not compatible
query I rowsort label-2274
SELECT + MIN ( DISTINCT + 89 ) + + 23 * + 6 AS col0
----
227

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2275
SELECT DISTINCT + 5 + + - 46 - - 80 * + 58 - + 32 + 84 * + 8 * - 6 + 29 + - MIN( DISTINCT + CAST( - 70 AS SIGNED ) ) * + ( 29 )
----
2594

skipif mysql # not compatible
query I rowsort label-2275
SELECT DISTINCT + 5 + + - 46 - - 80 * + 58 - + 32 + 84 * + 8 * - 6 + 29 + - MIN ( DISTINCT + CAST ( - 70 AS INTEGER ) ) * + ( 29 )
----
2594

onlyif mysql # aggregate syntax: 
query I rowsort label-2276
SELECT ALL - SUM( + - 65 ) + 50 AS col1
----
115

skipif mysql # not compatible
query I rowsort label-2276
SELECT ALL - SUM ( + - 65 ) + 50 AS col1
----
115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2277
SELECT ALL CAST( NULL AS SIGNED ) + - 59 * 61 * COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2277
SELECT ALL CAST ( NULL AS INTEGER ) + - 59 * 61 * COUNT ( * ) col2
----
NULL

query II rowsort
SELECT DISTINCT - 86 * - - 66 + 98 AS col0, + 71 AS col0
----
-5578
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2279
SELECT DISTINCT + 3 * - 22 + - 55 + 94 + NULLIF ( + COUNT( * ), SUM( ALL - 40 ) ) DIV 91 * 74 AS col1, - 47 AS col0
----
-27
-47

skipif mysql # not compatible
query II rowsort label-2279
SELECT DISTINCT + 3 * - 22 + - 55 + 94 + NULLIF ( + COUNT ( * ), SUM ( ALL - 40 ) ) / 91 * 74 AS col1, - 47 AS col0
----
-27
-47

query I rowsort
SELECT + 37 * - 37 AS col2
----
-1369

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2281
SELECT ALL - 53 * - 97 + - + COUNT( * ) + - ( - + COALESCE ( + 48, + - 88 ) ) - + COUNT( * ) * - + 13 DIV - 62 * 96 * - 78 * - 85 + 39 * - 33 col0
----
3901

skipif mysql # not compatible
query I rowsort label-2281
SELECT ALL - 53 * - 97 + - + COUNT ( * ) + - ( - + COALESCE ( + 48, + - 88 ) ) - + COUNT ( * ) * - + 13 / - 62 * 96 * - 78 * - 85 + 39 * - 33 col0
----
3901

query II rowsort
SELECT ALL + 77, - 88 AS col1
----
77
-88

query I rowsort
SELECT ( - ( - NULLIF ( - 50, + 44 ) ) )
----
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2284
SELECT + 55 * - 16 + - + 49 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2284
SELECT + 55 * - 16 + - + 49 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2285
SELECT ( COUNT( * ) ) DIV + 85 * COUNT( * ) * + 70 + + 64 * - - 19 * - 26 + - 28 * COUNT( * ) * + COUNT( * )
----
-31644

skipif mysql # not compatible
query I rowsort label-2285
SELECT ( COUNT ( * ) ) / + 85 * COUNT ( * ) * + 70 + + 64 * - - 19 * - 26 + - 28 * COUNT ( * ) * + COUNT ( * )
----
-31644

query I rowsort
SELECT + COALESCE ( + + 33, 20 )
----
33

query I rowsort
SELECT ALL + + COALESCE ( + 44, NULLIF ( + 78, + 45 ) )
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2288
SELECT - 99, + ( CASE - 21 WHEN + CAST( NULL AS SIGNED ) / COUNT( * ) * + 50 + + ( - ( + 36 ) ) THEN 39 END ) AS col1
----
-99
NULL

skipif mysql # not compatible
query II rowsort label-2288
SELECT - 99, + ( CASE - 21 WHEN + CAST ( NULL AS INTEGER ) / COUNT ( * ) * + 50 + + ( - ( + 36 ) ) THEN 39 END ) AS col1
----
-99
NULL

query I rowsort
SELECT + 20 * - 7
----
-140

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2291
SELECT DISTINCT - CASE - 58 WHEN 98 THEN NULL ELSE COUNT( * ) END * - 37 col0, + COALESCE ( 90, - ( + - 66 ) ) AS col0
----
37
90

skipif mysql # not compatible
query II rowsort label-2291
SELECT DISTINCT - CASE - 58 WHEN 98 THEN NULL ELSE COUNT ( * ) END * - 37 col0, + COALESCE ( 90, - ( + - 66 ) ) AS col0
----
37
90

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2292
SELECT ALL + ( + CAST( 24 AS SIGNED ) ), ( 30 ) * - + 46 AS col0
----
24
-1380

skipif mysql # not compatible
query II rowsort label-2292
SELECT ALL + ( + CAST ( 24 AS INTEGER ) ), ( 30 ) * - + 46 AS col0
----
24
-1380

onlyif mysql # aggregate syntax: 
query I rowsort label-2293
SELECT + + 99 * 61 + - CASE + 48 WHEN - COUNT( * ) THEN - COUNT( * ) + + 45 * + 11 ELSE 56 END AS col1
----
5983

skipif mysql # not compatible
query I rowsort label-2293
SELECT + + 99 * 61 + - CASE + 48 WHEN - COUNT ( * ) THEN - COUNT ( * ) + + 45 * + 11 ELSE 56 END AS col1
----
5983

onlyif mysql # aggregate syntax: 
query I rowsort label-2294
SELECT ALL + ( + - NULLIF ( + COUNT( - - 21 ), ( - CASE - 32 WHEN - 56 THEN + COUNT( * ) + 58 - 59 END ) ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2294
SELECT ALL + ( + - NULLIF ( + COUNT ( - - 21 ), ( - CASE - 32 WHEN - 56 THEN + COUNT ( * ) + 58 - 59 END ) ) ) AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2295
SELECT DISTINCT 5 DIV + 18
----
0

skipif mysql # not compatible
query I rowsort label-2295
SELECT DISTINCT 5 / + 18
----
0

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

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

query I rowsort
SELECT ALL + - 86 + + 86 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2298
SELECT + - CASE + 15 WHEN + 81 + - - COALESCE ( + 80, MAX( DISTINCT 55 ) ) THEN NULL ELSE + + 74 * - 44 + + 82 + + 35 END - + + 32 AS col0
----
3107

skipif mysql # not compatible
query I rowsort label-2298
SELECT + - CASE + 15 WHEN + 81 + - - COALESCE ( + 80, MAX ( DISTINCT 55 ) ) THEN NULL ELSE + + 74 * - 44 + + 82 + + 35 END - + + 32 AS col0
----
3107

query II rowsort
SELECT ALL 18 AS col2, + 41
----
18
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2300
SELECT - COUNT( * ) * + 19 * 9 * 94 + + ( + 79 ) + + MIN( + 46 ) * - CAST( + + 96 AS SIGNED ) * + 20
----
-104315

skipif mysql # not compatible
query I rowsort label-2300
SELECT - COUNT ( * ) * + 19 * 9 * 94 + + ( + 79 ) + + MIN ( + 46 ) * - CAST ( + + 96 AS INTEGER ) * + 20
----
-104315

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2301
SELECT ALL 80 DIV + + COUNT( * ) + + + 95 - + COUNT( * ) AS col0
----
174

skipif mysql # not compatible
query I rowsort label-2301
SELECT ALL 80 / + + COUNT ( * ) + + + 95 - + COUNT ( * ) AS col0
----
174

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2302
SELECT DISTINCT + CAST( 61 AS SIGNED ) AS col2
----
61

skipif mysql # not compatible
query I rowsort label-2302
SELECT DISTINCT + CAST ( 61 AS INTEGER ) AS col2
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-2303
SELECT ALL - ( COUNT( * ) ) + 74 col0
----
73

skipif mysql # not compatible
query I rowsort label-2303
SELECT ALL - ( COUNT ( * ) ) + 74 col0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-2304
SELECT + 64 + + SUM( - + COALESCE ( + 73, ( - 1 ) ) ) + + NULLIF ( + + 69, + 47 ) AS col2
----
60

skipif mysql # not compatible
query I rowsort label-2304
SELECT + 64 + + SUM ( - + COALESCE ( + 73, ( - 1 ) ) ) + + NULLIF ( + + 69, + 47 ) AS col2
----
60

query I rowsort
SELECT ALL + - 69 + 3
----
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2306
SELECT + ( - 71 ) + 94, COALESCE ( 8, + - 72 ) * + + COUNT( * ) DIV - 55 + + + 36 AS col1
----
23
36

skipif mysql # not compatible
query II rowsort label-2306
SELECT + ( - 71 ) + 94, COALESCE ( 8, + - 72 ) * + + COUNT ( * ) / - 55 + + + 36 AS col1
----
23
36

query I rowsort
SELECT + 91 + + 9
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-2308
SELECT ALL MIN( DISTINCT - 29 ) * + - 81 col0
----
2349

skipif mysql # not compatible
query I rowsort label-2308
SELECT ALL MIN ( DISTINCT - 29 ) * + - 81 col0
----
2349

onlyif mysql # aggregate syntax: 
query I rowsort label-2309
SELECT ALL 32 + + 64 * - MAX( + + 31 ) * ( + 63 ) AS col0
----
-124960

skipif mysql # not compatible
query I rowsort label-2309
SELECT ALL 32 + + 64 * - MAX ( + + 31 ) * ( + 63 ) AS col0
----
-124960

query I rowsort
SELECT DISTINCT + 28 + + - 24
----
4

query I rowsort
SELECT ALL + 92 + - 42 * - 34 * 46
----
65780

onlyif mysql # aggregate syntax: 
query I rowsort label-2312
SELECT - COUNT( * ) + 16 * + 9 * 58 AS col0
----
8351

skipif mysql # not compatible
query I rowsort label-2312
SELECT - COUNT ( * ) + 16 * + 9 * 58 AS col0
----
8351

query I rowsort
SELECT DISTINCT - 28 + 63
----
35

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2314
SELECT - 96 + MAX( + 53 ) + + ( - + COUNT( * ) ) + + 67 * - SUM( ALL + + 77 ) + ( CASE 21 WHEN + - CAST( NULL AS DECIMAL ) THEN 40 - 71 + 95 END ) + + 94 / - - 11 + NULLIF ( 56, + MAX( 46 ) * ( + COUNT( * ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2314
SELECT - 96 + MAX ( + 53 ) + + ( - + COUNT ( * ) ) + + 67 * - SUM ( ALL + + 77 ) + ( CASE 21 WHEN + - CAST ( NULL AS REAL ) THEN 40 - 71 + 95 END ) + + 94 / - - 11 + NULLIF ( 56, + MAX ( 46 ) * ( + COUNT ( * ) ) ) AS col2
----
NULL

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

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

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

query I rowsort
SELECT - 25 + - ( - - 94 ) - - - 26 * - 56
----
1337

query I rowsort
SELECT - 84 * - 17 * - 21
----
-29988

onlyif mysql # aggregate syntax: 
query II rowsort label-2319
SELECT - 89 * 42 * + CASE - - 6 WHEN + 18 THEN 40 * - 66 WHEN 1 THEN + 16 / CASE - 25 WHEN + + CASE + + 60 WHEN 96 THEN 87 END THEN NULL ELSE 13 END * - COUNT( * ) ELSE NULL END col2, ( - 6 ) AS col2
----
NULL
-6

skipif mysql # not compatible
query II rowsort label-2319
SELECT - 89 * 42 * + CASE - - 6 WHEN + 18 THEN 40 * - 66 WHEN 1 THEN + 16 / CASE - 25 WHEN + + CASE + + 60 WHEN 96 THEN 87 END THEN NULL ELSE 13 END * - COUNT ( * ) ELSE NULL END col2, ( - 6 ) AS col2
----
NULL
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2320
SELECT 47 * - NULLIF ( + COUNT( * ), + 1 ) + + 98 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2320
SELECT 47 * - NULLIF ( + COUNT ( * ), + 1 ) + + 98 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2321
SELECT - ( - CAST( NULL AS SIGNED ) ) / - 12 + 6 - + 35 * - NULLIF ( + + 44, - - 42 / + 20 ) * + + CAST( - 55 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2321
SELECT - ( - CAST ( NULL AS INTEGER ) ) / - 12 + 6 - + 35 * - NULLIF ( + + 44, - - 42 / + 20 ) * + + CAST ( - 55 AS INTEGER )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2323
SELECT - 54 + CASE 88 WHEN + 3 THEN - ( - - 91 ) * - SUM( DISTINCT 74 ) + + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2323
SELECT - 54 + CASE 88 WHEN + 3 THEN - ( - - 91 ) * - SUM ( DISTINCT 74 ) + + COUNT ( * ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2324
SELECT DISTINCT + CASE + 50 WHEN + CAST( 63 AS SIGNED ) THEN + CAST( COALESCE ( COUNT( * ), - 18 * CAST( + COUNT( * ) AS SIGNED ) ) AS SIGNED ) + + - 1 * 5 ELSE 46 + + 23 END col0, - ( - + 50 ) + - + 38 AS col2
----
69
12

skipif mysql # not compatible
query II rowsort label-2324
SELECT DISTINCT + CASE + 50 WHEN + CAST ( 63 AS INTEGER ) THEN + CAST ( COALESCE ( COUNT ( * ), - 18 * CAST ( + COUNT ( * ) AS INTEGER ) ) AS INTEGER ) + + - 1 * 5 ELSE 46 + + 23 END col0, - ( - + 50 ) + - + 38 AS col2
----
69
12

query I rowsort
SELECT ALL - 57 * 40 AS col2
----
-2280

query I rowsort
SELECT 84 * 75 + - 25 AS col1
----
6275

query II rowsort
SELECT DISTINCT - 45, ( + + 70 ) AS col0
----
-45
70

query I rowsort
SELECT 4 + - 14 AS col1
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-2329
SELECT - MIN( - 77 ) + + - ( + 83 ) + + - 81 - - - MAX( ALL 45 ) + - NULLIF ( - 96, - 52 + 33 + 58 * 88 * - - ( - - 31 ) ) * - 61 AS col2
----
-5988

skipif mysql # not compatible
query I rowsort label-2329
SELECT - MIN ( - 77 ) + + - ( + 83 ) + + - 81 - - - MAX ( ALL 45 ) + - NULLIF ( - 96, - 52 + 33 + 58 * 88 * - - ( - - 31 ) ) * - 61 AS col2
----
-5988

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2330
SELECT CAST( + 43 AS SIGNED ) + - 23 - + - 25 + + CASE + ( + 34 ) WHEN - + 93 THEN - - AVG ( 48 ) WHEN MAX( - + 19 ) THEN ( + + COUNT( * ) ) END + 83 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2330
SELECT CAST ( + 43 AS INTEGER ) + - 23 - + - 25 + + CASE + ( + 34 ) WHEN - + 93 THEN - - AVG ( 48 ) WHEN MAX ( - + 19 ) THEN ( + + COUNT ( * ) ) END + 83 AS col0
----
NULL

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

query II rowsort
SELECT ALL - + 42 + + + 37, 5 AS col0
----
-5
5

query II rowsort
SELECT DISTINCT - + 33, 25 + - 28 col0
----
-33
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2334
SELECT ALL COUNT( * ) + - + 93 + 99 + + + 0 + 65
----
72

skipif mysql # not compatible
query I rowsort label-2334
SELECT ALL COUNT ( * ) + - + 93 + 99 + + + 0 + 65
----
72

query I rowsort
SELECT - 81 + - 44 AS col2
----
-125

query II rowsort
SELECT - 35 AS col1, + 32 AS col1
----
-35
32

onlyif mysql # aggregate syntax: 
query I rowsort label-2337
SELECT DISTINCT + COUNT( * ) + - - 40
----
41

skipif mysql # not compatible
query I rowsort label-2337
SELECT DISTINCT + COUNT ( * ) + - - 40
----
41

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2340
SELECT - MIN( - + 38 ), 35 + 62 + - ( - 33 ) AS col1
----
38
130

skipif mysql # not compatible
query II rowsort label-2340
SELECT - MIN ( - + 38 ), 35 + 62 + - ( - 33 ) AS col1
----
38
130

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2342
SELECT ALL + NULLIF ( + 43, - - ( - 85 ) + + 1 - + + COUNT( * ) + - 74 * - + 1 + - 13 * + 3 / - 59 + 33 + - 59 - + + 96 * - + SUM( 50 ) * - 10 + - 79 )
----
43

skipif mysql # not compatible
query I rowsort label-2342
SELECT ALL + NULLIF ( + 43, - - ( - 85 ) + + 1 - + + COUNT ( * ) + - 74 * - + 1 + - 13 * + 3 / - 59 + 33 + - 59 - + + 96 * - + SUM ( 50 ) * - 10 + - 79 )
----
43

query II rowsort
SELECT 5 col1, 0
----
5
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2344
SELECT + CAST( 85 AS SIGNED ) DIV - + ( - 75 )
----
1

skipif mysql # not compatible
query I rowsort label-2344
SELECT + CAST ( 85 AS INTEGER ) / - + ( - 75 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2345
SELECT ALL 23 + - + COUNT( * )
----
22

skipif mysql # not compatible
query I rowsort label-2345
SELECT ALL 23 + - + COUNT ( * )
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2346
SELECT CAST( NULL AS SIGNED ) + - + COALESCE ( + ( - - 79 ), + 5 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2346
SELECT CAST ( NULL AS INTEGER ) + - + COALESCE ( + ( - - 79 ), + 5 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2347
SELECT ALL 26 DIV - - 1
----
26

skipif mysql # not compatible
query I rowsort label-2347
SELECT ALL 26 / - - 1
----
26

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2349
SELECT DISTINCT SUM( + 60 ) * - 76 * - COUNT( * ) col0
----
4560

skipif mysql # not compatible
query I rowsort label-2349
SELECT DISTINCT SUM ( + 60 ) * - 76 * - COUNT ( * ) col0
----
4560

onlyif mysql # aggregate syntax: 
query I rowsort label-2350
SELECT ALL SUM( - + 89 ) - 21
----
-110

skipif mysql # not compatible
query I rowsort label-2350
SELECT ALL SUM ( - + 89 ) - 21
----
-110

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

query I rowsort
SELECT 67 * - - 73 * + + ( 43 )
----
210313

onlyif mysql # aggregate syntax: 
query I rowsort label-2353
SELECT ALL - 88 * - - COUNT( * ) * - 11 * - + 67 AS col1
----
-64856

skipif mysql # not compatible
query I rowsort label-2353
SELECT ALL - 88 * - - COUNT ( * ) * - 11 * - + 67 AS col1
----
-64856

query I rowsort
SELECT DISTINCT 18 * + 13 AS col0
----
234

query I rowsort
SELECT 57 * 43
----
2451

onlyif mysql # aggregate syntax: 
query I rowsort label-2356
SELECT 83 * + COALESCE ( - 88, COALESCE ( 2, + + 9 ), + MIN( 78 ) ) * - 46 AS col0
----
335984

skipif mysql # not compatible
query I rowsort label-2356
SELECT 83 * + COALESCE ( - 88, COALESCE ( 2, + + 9 ), + MIN ( 78 ) ) * - 46 AS col0
----
335984

query I rowsort
SELECT + NULLIF ( + + 54, + 13 / 56 + - - 88 ) AS col1
----
54

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

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

query I rowsort
SELECT DISTINCT - ( + - ( 22 ) ) + + + 63 AS col2
----
85

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2360
SELECT ALL 96 + - - CAST( - 24 AS SIGNED ) AS col2, - 57 DIV - 71
----
72
0

skipif mysql # not compatible
query II rowsort label-2360
SELECT ALL 96 + - - CAST ( - 24 AS INTEGER ) AS col2, - 57 / - 71
----
72
0

query I rowsort
SELECT + 66 * - 79 + 34 AS col0
----
-5180

query I rowsort
SELECT ALL - 28 * + - 64 AS col2
----
1792

query I rowsort
SELECT ALL + 70 * - 37 AS col0
----
-2590

query II rowsort
SELECT DISTINCT + + 65 + - 80 AS col0, 63 * - 45
----
-15
-2835

query I rowsort
SELECT + - 13 * - 57 + - 66
----
675

onlyif mysql # aggregate syntax: 
query I rowsort label-2366
SELECT 11 * 55 + - 39 * - COALESCE ( 89, MAX( DISTINCT - 15 ), 90 )
----
4076

skipif mysql # not compatible
query I rowsort label-2366
SELECT 11 * 55 + - 39 * - COALESCE ( 89, MAX ( DISTINCT - 15 ), 90 )
----
4076

query I rowsort
SELECT + 46 + 14 AS col2
----
60

query I rowsort
SELECT 60 + 2 col0
----
62

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

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

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

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

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

query I rowsort
SELECT - 82 * - 17 * - 43
----
-59942

query I rowsort
SELECT - + 12 * + 62 * + 47 * + 42 - 27 * + - 46 AS col2
----
-1467414

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2375
SELECT DISTINCT - ( + + ( COUNT( * ) ) ) * - + 38 col2, + 59
----
38
59

skipif mysql # not compatible
query II rowsort label-2375
SELECT DISTINCT - ( + + ( COUNT ( * ) ) ) * - + 38 col2, + 59
----
38
59

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2376
SELECT DISTINCT CASE - CAST( - 37 AS DECIMAL ) WHEN + 10 THEN 78 * + COUNT( * ) / - + 18 + - - 35 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2376
SELECT DISTINCT CASE - CAST ( - 37 AS REAL ) WHEN + 10 THEN 78 * + COUNT ( * ) / - + 18 + - - 35 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT 13 * 90 AS col2
----
1170

query I rowsort
SELECT 48 * 76 * 21
----
76608

onlyif mysql # aggregate syntax: 
query I rowsort label-2379
SELECT ALL COUNT( * ) * - SUM( + 17 ) * SUM( DISTINCT 69 ) * - 61 * - + 28
----
-2003484

skipif mysql # not compatible
query I rowsort label-2379
SELECT ALL COUNT ( * ) * - SUM ( + 17 ) * SUM ( DISTINCT 69 ) * - 61 * - + 28
----
-2003484

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2380
SELECT COUNT( * ) + + 23 + - + 0 DIV - 1 + - + 7 AS col1
----
17

skipif mysql # not compatible
query I rowsort label-2380
SELECT COUNT ( * ) + + 23 + - + 0 / - 1 + - + 7 AS col1
----
17

query I rowsort
SELECT 32 + - + 75 AS col1
----
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2382
SELECT SUM( ALL - 3 ) DIV + 38 * + 91 * + 4 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2382
SELECT SUM ( ALL - 3 ) / + 38 * + 91 * + 4 AS col2
----
0

query II rowsort
SELECT 38 * - 68 * + - 30, 48 + - 20 AS col0
----
77520
28

onlyif mysql # aggregate syntax: 
query II rowsort label-2384
SELECT ALL - ( - - 59 ) * - 84 AS col0, + 71 * + - 67 - - + 98 - MAX( DISTINCT - - 29 ) * - 75 + + 45 AS col0
----
4956
-2439

skipif mysql # not compatible
query II rowsort label-2384
SELECT ALL - ( - - 59 ) * - 84 AS col0, + 71 * + - 67 - - + 98 - MAX ( DISTINCT - - 29 ) * - 75 + + 45 AS col0
----
4956
-2439

query II rowsort
SELECT ALL 2, - 31 col2
----
2
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2386
SELECT ALL 25 DIV 8 * + COUNT( * ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-2386
SELECT ALL 25 / 8 * + COUNT ( * ) AS col0
----
3

query II rowsort
SELECT ALL 56 AS col1, + 44
----
56
44

query I rowsort
SELECT + 7 + - 35 AS col2
----
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2389
SELECT + COUNT( ALL - 97 ) DIV + + ( - 35 ) * - - 49
----
0

skipif mysql # not compatible
query I rowsort label-2389
SELECT + COUNT ( ALL - 97 ) / + + ( - 35 ) * - - 49
----
0

query I rowsort
SELECT ALL 6 + 29 AS col1
----
35

onlyif mysql # aggregate syntax: 
query II rowsort label-2391
SELECT + COUNT( * ) + + ( - 17 ) + - 26, 51 AS col0
----
-42
51

skipif mysql # not compatible
query II rowsort label-2391
SELECT + COUNT ( * ) + + ( - 17 ) + - 26, 51 AS col0
----
-42
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2392
SELECT DISTINCT 24 * - COUNT( * )
----
-24

skipif mysql # not compatible
query I rowsort label-2392
SELECT DISTINCT 24 * - COUNT ( * )
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2393
SELECT NULLIF ( + COALESCE ( 77, + - 92 * - 34 ), + - COUNT( * ) * - 82 ) * + CAST( NULL AS SIGNED ) * + 33 + 40 * 10 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2393
SELECT NULLIF ( + COALESCE ( 77, + - 92 * - 34 ), + - COUNT ( * ) * - 82 ) * + CAST ( NULL AS INTEGER ) * + 33 + 40 * 10 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2394
SELECT NULLIF ( - COUNT( * ), + 35 )
----
-1

skipif mysql # not compatible
query I rowsort label-2394
SELECT NULLIF ( - COUNT ( * ), + 35 )
----
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2396
SELECT + 59 / + - CASE + SUM( 30 ) WHEN - - 64 * + + ( - 94 ) THEN - 83 END + 55
----
NULL

skipif mysql # not compatible
query I rowsort label-2396
SELECT + 59 / + - CASE + SUM ( 30 ) WHEN - - 64 * + + ( - 94 ) THEN - 83 END + 55
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2397
SELECT ALL + 17 * - - 31 * - 87 + - + COUNT( * ) DIV - 80 * + - 77 + + ( + - ( + ( - - 44 ) ) ) - + - MIN( - 14 ) + + 13 * + + ( - COUNT( * ) ) AS col0
----
-45920

skipif mysql # not compatible
query I rowsort label-2397
SELECT ALL + 17 * - - 31 * - 87 + - + COUNT ( * ) / - 80 * + - 77 + + ( + - ( + ( - - 44 ) ) ) - + - MIN ( - 14 ) + + 13 * + + ( - COUNT ( * ) ) AS col0
----
-45920

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

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

query I rowsort
SELECT ALL - 32 * - 54
----
1728

onlyif mysql # aggregate syntax: 
query I rowsort label-2400
SELECT - + MIN( ALL - - 36 ) + - COUNT( * ) AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-2400
SELECT - + MIN ( ALL - - 36 ) + - COUNT ( * ) AS col2
----
-37

query I rowsort
SELECT DISTINCT 25 * - - 93 + 88 AS col2
----
2413

query II rowsort
SELECT ALL 62 * - 82 + 31 AS col1, - 71 col1
----
-5053
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2403
SELECT DISTINCT + - 71 * + - COUNT( * ) DIV - 88 + - - 95 + - 70 AS col2
----
25

skipif mysql # not compatible
query I rowsort label-2403
SELECT DISTINCT + - 71 * + - COUNT ( * ) / - 88 + - - 95 + - 70 AS col2
----
25

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2405
SELECT + COUNT( * ) * NULLIF ( + NULLIF ( + ( - + SUM( - 42 ) ), 94 * - 30 - - COUNT( * ) ), - ( 3 ) * 5 * - 73 ) + - 40
----
2

skipif mysql # not compatible
query I rowsort label-2405
SELECT + COUNT ( * ) * NULLIF ( + NULLIF ( + ( - + SUM ( - 42 ) ), 94 * - 30 - - COUNT ( * ) ), - ( 3 ) * 5 * - 73 ) + - 40
----
2

query I rowsort
SELECT - 0 + - 17 AS col1
----
-17

query I rowsort
SELECT ALL + + 62 * + 67 * 42
----
174468

onlyif mysql # aggregate syntax: 
query II rowsort label-2408
SELECT + + 28, - 95 + - + ( COUNT( * ) ) + + + NULLIF ( - COUNT( * ), + ( + COUNT( * ) ) ) + - COUNT( * ) + 53 * 4 + - 49 col0
----
28
65

skipif mysql # not compatible
query II rowsort label-2408
SELECT + + 28, - 95 + - + ( COUNT ( * ) ) + + + NULLIF ( - COUNT ( * ), + ( + COUNT ( * ) ) ) + - COUNT ( * ) + 53 * 4 + - 49 col0
----
28
65

onlyif mysql # DIV for integer division: 
query II rowsort label-2409
SELECT DISTINCT 18 DIV - - NULLIF ( + 7, + 77 ) AS col0, CASE + + 46 WHEN + 32 - - AVG ( ALL 77 ) THEN + 51 + 44 END * + 98 + - 60 + + + 98 DIV 75
----
2
NULL

skipif mysql # not compatible
query II rowsort label-2409
SELECT DISTINCT 18 / - - NULLIF ( + 7, + 77 ) AS col0, CASE + + 46 WHEN + 32 - - AVG ( ALL 77 ) THEN + 51 + 44 END * + 98 + - 60 + + + 98 / 75
----
2
NULL

query II rowsort
SELECT 34, + 67 AS col1
----
34
67

onlyif mysql # aggregate syntax: 
query II rowsort label-2411
SELECT ALL - + 8 * - 91 + - + 55 - NULLIF ( - 44, COUNT( * ) * 77 ) - + + COUNT( * ) * ( - COUNT( * ) ) * + - 88 + 50 - - 57 * + 68 + - + 21 * + 53 AS col2, 80 * 86 AS col1
----
3442
6880

skipif mysql # not compatible
query II rowsort label-2411
SELECT ALL - + 8 * - 91 + - + 55 - NULLIF ( - 44, COUNT ( * ) * 77 ) - + + COUNT ( * ) * ( - COUNT ( * ) ) * + - 88 + 50 - - 57 * + 68 + - + 21 * + 53 AS col2, 80 * 86 AS col1
----
3442
6880

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

skipif mysql # not compatible
query I rowsort label-2412
SELECT ALL + - 70 * + 57 * + COUNT ( * ) AS col2
----
-3990

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

skipif mysql # not compatible
query I rowsort label-2413
SELECT DISTINCT + - 20 * - - 78 * + - COUNT ( * ) * + 1
----
1560

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

skipif mysql # not compatible
query I rowsort label-2414
SELECT SUM ( ALL - 70 )
----
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2415
SELECT - 8 DIV COUNT( DISTINCT 7 )
----
-8

skipif mysql # not compatible
query I rowsort label-2415
SELECT - 8 / COUNT ( DISTINCT 7 )
----
-8

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2417
SELECT - 85 * - - CAST( - 72 AS SIGNED ) col2
----
6120

skipif mysql # not compatible
query I rowsort label-2417
SELECT - 85 * - - CAST ( - 72 AS INTEGER ) col2
----
6120

query I rowsort
SELECT + 90 * ( 78 ) AS col2
----
7020

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

query I rowsort
SELECT - 2 + + ( 3 ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2421
SELECT DISTINCT CAST( - 58 AS SIGNED ) AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-2421
SELECT DISTINCT CAST ( - 58 AS INTEGER ) AS col1
----
-58

query I rowsort
SELECT ALL 66 * + - 3
----
-198

onlyif mysql # aggregate syntax: 
query I rowsort label-2423
SELECT DISTINCT 84 * MAX( ALL + 46 ) AS col2
----
3864

skipif mysql # not compatible
query I rowsort label-2423
SELECT DISTINCT 84 * MAX ( ALL + 46 ) AS col2
----
3864

onlyif mysql # aggregate syntax: 
query II rowsort label-2424
SELECT DISTINCT ( + + 37 ) AS col2, 24 + - 35 - ( - 27 ) * - 92 + - 53 * - 4 * + + 23 * + - 10 + + + COUNT( * )
----
37
-51254

skipif mysql # not compatible
query II rowsort label-2424
SELECT DISTINCT ( + + 37 ) AS col2, 24 + - 35 - ( - 27 ) * - 92 + - 53 * - 4 * + + 23 * + - 10 + + + COUNT ( * )
----
37
-51254

query I rowsort
SELECT DISTINCT ( ( + + 1 ) ) col2
----
1

query I rowsort
SELECT ALL 65 + - 43 AS col1
----
22

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2428
SELECT + ( - - ( 14 ) ) + + MIN( ALL + - 23 ) AS col1, - 40 - - COUNT( * ) AS col1
----
-9
-39

skipif mysql # not compatible
query II rowsort label-2428
SELECT + ( - - ( 14 ) ) + + MIN ( ALL + - 23 ) AS col1, - 40 - - COUNT ( * ) AS col1
----
-9
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-2429
SELECT DISTINCT COUNT( * ) + MIN( + 18 ) col2
----
19

skipif mysql # not compatible
query I rowsort label-2429
SELECT DISTINCT COUNT ( * ) + MIN ( + 18 ) col2
----
19

query I rowsort
SELECT ALL 76 + + 78 * - 69
----
-5306

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2431
SELECT - CASE - + NULLIF ( - ( + 29 ), COUNT( * ) ) WHEN + + 49 / - 44 THEN - + 7 * + 62 - + MIN( DISTINCT - - 4 ) WHEN - 54 + + 51 + + SUM( DISTINCT - - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) ) + + - 55 * - 53 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2431
SELECT - CASE - + NULLIF ( - ( + 29 ), COUNT ( * ) ) WHEN + + 49 / - 44 THEN - + 7 * + 62 - + MIN ( DISTINCT - - 4 ) WHEN - 54 + + 51 + + SUM ( DISTINCT - - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) + + - 55 * - 53 THEN NULL END
----
NULL

query I rowsort
SELECT ALL + 72 + + - 75 + - 5 AS col2
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-2433
SELECT + ( + ( + 31 ) ) * - COUNT( * ) AS col0, 35
----
-31
35

skipif mysql # not compatible
query II rowsort label-2433
SELECT + ( + ( + 31 ) ) * - COUNT ( * ) AS col0, 35
----
-31
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2434
SELECT DISTINCT + COUNT( * ) DIV 45 * - - 95 * COUNT( * ) + - 78 * + 62 AS col2
----
-4836

skipif mysql # not compatible
query I rowsort label-2434
SELECT DISTINCT + COUNT ( * ) / 45 * - - 95 * COUNT ( * ) + - 78 * + 62 AS col2
----
-4836

onlyif mysql # DIV for integer division: 
query I rowsort label-2435
SELECT + ( + - 57 ) DIV + 33 col1
----
-1

skipif mysql # not compatible
query I rowsort label-2435
SELECT + ( + - 57 ) / + 33 col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2436
SELECT ALL 23 DIV + 95 + - 3 + + + 49 * COALESCE ( + 42, + + 79 * - MIN( DISTINCT - 3 ) + - + 41 ) * - 20
----
-41163

skipif mysql # not compatible
query I rowsort label-2436
SELECT ALL 23 / + 95 + - 3 + + + 49 * COALESCE ( + 42, + + 79 * - MIN ( DISTINCT - 3 ) + - + 41 ) * - 20
----
-41163

query I rowsort
SELECT + + 12 * 2 - 86
----
-62

query I rowsort
SELECT + 1 * 91 AS col0
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2439
SELECT - - CAST( - + MIN( - 98 ) AS SIGNED ) DIV + COUNT( DISTINCT + 87 ) + 49
----
147

skipif mysql # not compatible
query I rowsort label-2439
SELECT - - CAST ( - + MIN ( - 98 ) AS INTEGER ) / + COUNT ( DISTINCT + 87 ) + 49
----
147

query I rowsort
SELECT ALL 58 * + ( + 83 )
----
4814

onlyif mysql # aggregate syntax: 
query II rowsort label-2441
SELECT MIN( ALL - - 95 ) AS col1, - 38
----
95
-38

skipif mysql # not compatible
query II rowsort label-2441
SELECT MIN ( ALL - - 95 ) AS col1, - 38
----
95
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-2442
SELECT ALL + + 30 DIV - 80 - 33 col1
----
-33

skipif mysql # not compatible
query I rowsort label-2442
SELECT ALL + + 30 / - 80 - 33 col1
----
-33

query I rowsort
SELECT + + 65 * 19 AS col2
----
1235

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2444
SELECT DISTINCT ( - + ( COUNT( * ) ) ) * + COALESCE ( + 20, + - 83 + 7, - 25 DIV 14 * - 49 + - 80 )
----
-20

skipif mysql # not compatible
query I rowsort label-2444
SELECT DISTINCT ( - + ( COUNT ( * ) ) ) * + COALESCE ( + 20, + - 83 + 7, - 25 / 14 * - 49 + - 80 )
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2445
SELECT MAX( + CAST( NULL AS SIGNED ) ) * - 0 * + 0 - - - 99, 7 AS col0
----
NULL
7

skipif mysql # not compatible
query II rowsort label-2445
SELECT MAX ( + CAST ( NULL AS INTEGER ) ) * - 0 * + 0 - - - 99, 7 AS col0
----
NULL
7

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

skipif mysql # not compatible
query I rowsort label-2446
SELECT ALL + COUNT ( DISTINCT + 76 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2447
SELECT + 61 + - + 67 + - 98, - COUNT( * ) * + COUNT( ALL NULLIF ( + 67, - 63 * 70 + + 97 * - 34 + - 24 ) ) + - 98 AS col0
----
-104
-99

skipif mysql # not compatible
query II rowsort label-2447
SELECT + 61 + - + 67 + - 98, - COUNT ( * ) * + COUNT ( ALL NULLIF ( + 67, - 63 * 70 + + 97 * - 34 + - 24 ) ) + - 98 AS col0
----
-104
-99

query I rowsort
SELECT DISTINCT + 38 * - 14
----
-532

query I rowsort
SELECT ALL + 29 * - 13 * 4 col2
----
-1508

query I rowsort
SELECT + 4 * + 40 + + - 10 + - 91 + 89
----
148

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2451
SELECT 73 DIV - MIN( + 82 ) * + 60 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2451
SELECT 73 / - MIN ( + 82 ) * + 60 AS col1
----
0

query I rowsort
SELECT ALL + 66 * + 59 * + 22
----
85668

onlyif mysql # aggregate syntax: 
query I rowsort label-2453
SELECT 83 * MIN( DISTINCT + ( - + 26 ) )
----
-2158

skipif mysql # not compatible
query I rowsort label-2453
SELECT 83 * MIN ( DISTINCT + ( - + 26 ) )
----
-2158

onlyif mysql # aggregate syntax: 
query I rowsort label-2454
SELECT 54 - + COUNT( * ) + + 86 col1
----
139

skipif mysql # not compatible
query I rowsort label-2454
SELECT 54 - + COUNT ( * ) + + 86 col1
----
139

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2455
SELECT 57 + + CASE + COUNT( * ) WHEN - 80 THEN + + 58 END - - 44 * + + 74 / - 67 + ( - COUNT( * ) ) * + 48, CAST( NULL AS SIGNED ) + - 20 AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2455
SELECT 57 + + CASE + COUNT ( * ) WHEN - 80 THEN + + 58 END - - 44 * + + 74 / - 67 + ( - COUNT ( * ) ) * + 48, CAST ( NULL AS INTEGER ) + - 20 AS col1
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2456
SELECT 43, + MIN( DISTINCT + 39 ) AS col2
----
43
39

skipif mysql # not compatible
query II rowsort label-2456
SELECT 43, + MIN ( DISTINCT + 39 ) AS col2
----
43
39

onlyif mysql # DIV for integer division: 
query I rowsort label-2457
SELECT 63 DIV + + 32
----
1

skipif mysql # not compatible
query I rowsort label-2457
SELECT 63 / + + 32
----
1

query I rowsort
SELECT 99 * - + 99 AS col1
----
-9801

onlyif mysql # aggregate syntax: 
query I rowsort label-2459
SELECT DISTINCT - 76 + + MIN( - + 89 ) AS col0
----
-165

skipif mysql # not compatible
query I rowsort label-2459
SELECT DISTINCT - 76 + + MIN ( - + 89 ) AS col0
----
-165

onlyif mysql # aggregate syntax: 
query I rowsort label-2460
SELECT ALL + COUNT( * ) + - 45 + 11 * 92 * + COUNT( * )
----
968

skipif mysql # not compatible
query I rowsort label-2460
SELECT ALL + COUNT ( * ) + - 45 + 11 * 92 * + COUNT ( * )
----
968

onlyif mysql # aggregate syntax: 
query I rowsort label-2461
SELECT 89 - + MIN( - 29 )
----
118

skipif mysql # not compatible
query I rowsort label-2461
SELECT 89 - + MIN ( - 29 )
----
118

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

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

query I rowsort
SELECT ALL + - 71 + 90
----
19

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

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

query II rowsort
SELECT + 76, + 65 col0
----
76
65

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

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

query I rowsort
SELECT ALL + + 29 * + 15 col1
----
435

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2468
SELECT - - 36 DIV + + ( - COUNT( * ) ) + 63 * - 26 * + 56 col0, + 8 DIV 96 AS col0
----
-91764
0

skipif mysql # not compatible
query II rowsort label-2468
SELECT - - 36 / + + ( - COUNT ( * ) ) + 63 * - 26 * + 56 col0, + 8 / 96 AS col0
----
-91764
0

query I rowsort
SELECT 96 * 40 * + 22 - - + 47
----
84527

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

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

query I rowsort
SELECT 58 * 52 AS col1
----
3016

onlyif mysql # DIV for integer division: 
query I rowsort label-2472
SELECT ALL 78 DIV - 96 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2472
SELECT ALL 78 / - 96 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2473
SELECT NULLIF ( + 58, + - COUNT( * ) * + ( + - 21 ) - 46 * COUNT( * ) ) * 59 + - + 47 + + 91 + + + 6 + + + 30 AS col0
----
3502

skipif mysql # not compatible
query I rowsort label-2473
SELECT NULLIF ( + 58, + - COUNT ( * ) * + ( + - 21 ) - 46 * COUNT ( * ) ) * 59 + - + 47 + + 91 + + + 6 + + + 30 AS col0
----
3502

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2474
SELECT ( - CAST( - + 57 AS SIGNED ) )
----
57

skipif mysql # not compatible
query I rowsort label-2474
SELECT ( - CAST ( - + 57 AS INTEGER ) )
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-2475
SELECT 37 DIV 61 * 30 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2475
SELECT 37 / 61 * 30 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2476
SELECT - COUNT( + + 66 ) + + - 9 * - COUNT( ALL - 55 ) AS col1, + 69
----
8
69

skipif mysql # not compatible
query II rowsort label-2476
SELECT - COUNT ( + + 66 ) + + - 9 * - COUNT ( ALL - 55 ) AS col1, + 69
----
8
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2477
SELECT CAST( 36 AS SIGNED ) col2
----
36

skipif mysql # not compatible
query I rowsort label-2477
SELECT CAST ( 36 AS INTEGER ) col2
----
36

query I rowsort
SELECT + + ( - 40 ) col1
----
-40

query I rowsort
SELECT DISTINCT 63 * + 8 AS col0
----
504

onlyif mysql # DIV for integer division: 
query I rowsort label-2480
SELECT DISTINCT - 42 DIV - 74
----
0

skipif mysql # not compatible
query I rowsort label-2480
SELECT DISTINCT - 42 / - 74
----
0

query I rowsort
SELECT 42 * 55 * + 28 * + 0 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2482
SELECT ALL CAST( NULL AS SIGNED ) + CASE + - 23 WHEN + + 95 + 14 THEN 42 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2482
SELECT ALL CAST ( NULL AS INTEGER ) + CASE + - 23 WHEN + + 95 + 14 THEN 42 END
----
NULL

query I rowsort
SELECT ALL - NULLIF ( + 55, 40 )
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2484
SELECT ALL - 70 + ( CAST( ( - + 52 ) AS SIGNED ) )
----
-122

skipif mysql # not compatible
query I rowsort label-2484
SELECT ALL - 70 + ( CAST ( ( - + 52 ) AS INTEGER ) )
----
-122

query II rowsort
SELECT ALL - 2, - 48 AS col0
----
-2
-48

query I rowsort
SELECT ALL 89 + + 27 + - + 2 AS col1
----
114

onlyif mysql # DIV for integer division: 
query II rowsort label-2487
SELECT 69 AS col2, + 84 DIV - - 21
----
69
4

skipif mysql # not compatible
query II rowsort label-2487
SELECT 69 AS col2, + 84 / - - 21
----
69
4

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

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

query I rowsort
SELECT ALL 7 + - 0 + 13 AS col0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-2490
SELECT 67 * - CASE 77 WHEN + COALESCE ( + + 61, + - 7 * + COALESCE ( 82, - 81 ) * - MAX( DISTINCT + 44 ) + - 3 ) THEN NULL ELSE + - 95 END AS col1
----
6365

skipif mysql # not compatible
query I rowsort label-2490
SELECT 67 * - CASE 77 WHEN + COALESCE ( + + 61, + - 7 * + COALESCE ( 82, - 81 ) * - MAX ( DISTINCT + 44 ) + - 3 ) THEN NULL ELSE + - 95 END AS col1
----
6365

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2491
SELECT DISTINCT - MAX( + ( + + 87 ) ) + + COUNT( * ) DIV - - ( + COUNT( * ) ) AS col2, 1 AS col0
----
-86
1

skipif mysql # not compatible
query II rowsort label-2491
SELECT DISTINCT - MAX ( + ( + + 87 ) ) + + COUNT ( * ) / - - ( + COUNT ( * ) ) AS col2, 1 AS col0
----
-86
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2492
SELECT - COUNT( + 22 ), 80 AS col0
----
-1
80

skipif mysql # not compatible
query II rowsort label-2492
SELECT - COUNT ( + 22 ), 80 AS col0
----
-1
80

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

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

query I rowsort
SELECT DISTINCT 6 + - 15 + + 11 AS col2
----
2

query I rowsort
SELECT 92 * + ( - + 68 )
----
-6256

query I rowsort
SELECT 98 + - 61
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-2497
SELECT - SUM( + + 31 )
----
-31

skipif mysql # not compatible
query I rowsort label-2497
SELECT - SUM ( + + 31 )
----
-31

query I rowsort
SELECT 8 + + 47 AS col1
----
55

query I rowsort
SELECT ALL - ( - 9 ) - - 22 + - - 27 AS col2
----
58

query I rowsort
SELECT 11 * - 12 + + 58 AS col2
----
-74

query I rowsort
SELECT + 30 * 57
----
1710

query I rowsort
SELECT - - ( + + COALESCE ( + - ( - ( - 61 ) ), + 66, - - ( - + 71 ) ) )
----
-61

onlyif mysql # DIV for integer division: 
query II rowsort label-2503
SELECT + 15 AS col1, 10 + - 87 DIV - ( - 57 ) AS col0
----
15
9

skipif mysql # not compatible
query II rowsort label-2503
SELECT + 15 AS col1, 10 + - 87 / - ( - 57 ) AS col0
----
15
9

query I rowsort
SELECT 32 + - + 23 AS col0
----
9

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

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

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

query II rowsort
SELECT ALL 5, + 18 col0
----
5
18

query II rowsort
SELECT - 16 AS col2, 4 AS col1
----
-16
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2509
SELECT ALL 27, ( - - SUM( ALL - + 16 ) ) + + + 8 + 16 DIV + 39 AS col2
----
27
-8

skipif mysql # not compatible
query II rowsort label-2509
SELECT ALL 27, ( - - SUM ( ALL - + 16 ) ) + + + 8 + 16 / + 39 AS col2
----
27
-8

onlyif mysql # DIV for integer division: 
query II rowsort label-2510
SELECT DISTINCT - COALESCE ( - 47, + CASE 2 WHEN 55 THEN NULL ELSE + 84 END, + + 10 ), + 99 DIV 36 AS col1
----
47
2

skipif mysql # not compatible
query II rowsort label-2510
SELECT DISTINCT - COALESCE ( - 47, + CASE 2 WHEN 55 THEN NULL ELSE + 84 END, + + 10 ), + 99 / 36 AS col1
----
47
2

query III rowsort
SELECT 22 AS col2, - 91, + + 46 AS col1
----
22
-91
46

query I rowsort
SELECT DISTINCT 67 * + 54 col2
----
3618

onlyif mysql # aggregate syntax: 
query I rowsort label-2513
SELECT MAX( + 32 ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-2513
SELECT MAX ( + 32 ) AS col0
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2514
SELECT 60 * - 40 * + 56 * + 16 * - + 11 + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2514
SELECT 60 * - 40 * + 56 * + 16 * - + 11 + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT 66 AS col2, 70 * - - 37
----
66
2590

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

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

query I rowsort
SELECT DISTINCT - + 51 * - - 25
----
-1275

onlyif mysql # DIV for integer division: 
query I rowsort label-2518
SELECT - 80 DIV - - 18 - + - 53 col2
----
49

skipif mysql # not compatible
query I rowsort label-2518
SELECT - 80 / - - 18 - + - 53 col2
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-2519
SELECT + CASE CAST( 68 AS DECIMAL ) WHEN 24 DIV + - 78 THEN NULL WHEN + + COUNT( * ) * - 1 THEN 17 * 84 + + CAST( NULL AS SIGNED ) * 18 + - COALESCE ( + + SUM( DISTINCT + - 54 ), + - 31 DIV - - ( - ( + + 63 ) ) + - 72 - 88 * - 68 + COUNT( * ) - + ( + + 22 ) * + - 82 * 63 ) WHEN + 95 * 1 THEN NULL ELSE - 33 + 15 + - 22 END * ( - MAX( + COALESCE ( CAST( NULL AS SIGNED ), 9 + - 26 ) ) ) AS col1
----
-680

skipif mysql # not compatible
query I rowsort label-2519
SELECT + CASE CAST ( 68 AS REAL ) WHEN 24 / + - 78 THEN NULL WHEN + + COUNT ( * ) * - 1 THEN 17 * 84 + + CAST ( NULL AS INTEGER ) * 18 + - COALESCE ( + + SUM ( DISTINCT + - 54 ), + - 31 / - - ( - ( + + 63 ) ) + - 72 - 88 * - 68 + COUNT ( * ) - + ( + + 22 ) * + - 82 * 63 ) WHEN + 95 * 1 THEN NULL ELSE - 33 + 15 + - 22 END * ( - MAX ( + COALESCE ( CAST ( NULL AS INTEGER ), 9 + - 26 ) ) ) AS col1
----
-680

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2520
SELECT ALL - - 1 * ( + + 16 ) + + + COALESCE ( 84, + CASE - 44 WHEN 53 THEN + - 75 - + 26 * 53 END, - CAST( + COUNT( * ) AS SIGNED ) * - + MAX( ALL + + 62 ) DIV 89 + + 48 DIV + + COUNT( * ) + - 46 ) * - + 68 * - 22 * + + 93
----
11686768

skipif mysql # not compatible
query I rowsort label-2520
SELECT ALL - - 1 * ( + + 16 ) + + + COALESCE ( 84, + CASE - 44 WHEN 53 THEN + - 75 - + 26 * 53 END, - CAST ( + COUNT ( * ) AS INTEGER ) * - + MAX ( ALL + + 62 ) / 89 + + 48 / + + COUNT ( * ) + - 46 ) * - + 68 * - 22 * + + 93
----
11686768

query II rowsort
SELECT + + 26 AS col0, 73
----
26
73

query II rowsort
SELECT ALL - - 65 AS col0, 93 AS col0
----
65
93

query II rowsort
SELECT 46 AS col1, + 4
----
46
4

onlyif mysql # DIV for integer division: 
query I rowsort label-2524
SELECT - 14 DIV - - 93 * + 41
----
0

skipif mysql # not compatible
query I rowsort label-2524
SELECT - 14 / - - 93 * + 41
----
0

query I rowsort
SELECT ALL - 85 * 92 + 63 - + 90 * + 73 + - + 72 + 7
----
-14392

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2526
SELECT ALL 43 / + + ( - CAST( NULL AS SIGNED ) ) * 29 + + - ( - 3 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2526
SELECT ALL 43 / + + ( - CAST ( NULL AS INTEGER ) ) * 29 + + - ( - 3 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2527
SELECT + MAX( ALL - 21 ) * - + 9 - - COUNT( * ) + + - 87 + - CASE - - 86 WHEN - + AVG ( + 43 ) THEN COUNT( * ) END * - AVG ( DISTINCT 95 ) * 94 * + COUNT( * ) / + 34
----
NULL

skipif mysql # not compatible
query I rowsort label-2527
SELECT + MAX ( ALL - 21 ) * - + 9 - - COUNT ( * ) + + - 87 + - CASE - - 86 WHEN - + AVG ( + 43 ) THEN COUNT ( * ) END * - AVG ( DISTINCT 95 ) * 94 * + COUNT ( * ) / + 34
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2528
SELECT + 95 * - + 22 + + COUNT ( * ) AS col1
----
-2089

query II rowsort
SELECT ALL 60 * - - 18 * + - 50 * - 72 * + + 88 AS col1, 51 AS col0
----
342144000
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2530
SELECT MIN( DISTINCT - 70 )
----
-70

skipif mysql # not compatible
query I rowsort label-2530
SELECT MIN ( DISTINCT - 70 )
----
-70

query I rowsort
SELECT ALL 36 + 46 AS col1
----
82

query I rowsort
SELECT DISTINCT 65 - - ( + 32 ) AS col1
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2533
SELECT + 70 + 77 * SUM( DISTINCT + - 29 )
----
-2163

skipif mysql # not compatible
query I rowsort label-2533
SELECT + 70 + 77 * SUM ( DISTINCT + - 29 )
----
-2163

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

query I rowsort
SELECT ALL - - 53 * - NULLIF ( + 97, - 37 + - 20 ) * - 0 * - 12
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2536
SELECT + COUNT( 9 ) * 35 - + - 88 * + 95
----
8395

skipif mysql # not compatible
query I rowsort label-2536
SELECT + COUNT ( 9 ) * 35 - + - 88 * + 95
----
8395

query I rowsort
SELECT ALL - - 28 * + 46 - - 48
----
1336

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2538
SELECT ALL COALESCE ( + + 51, 42 * - 89 DIV 74, - COALESCE ( + ( - 64 ), - COUNT( * ), + + CASE + NULLIF ( - COUNT( * ), + ( 15 ) * - + 32 * + ( + ( 18 ) ) ) WHEN - 8 THEN NULL WHEN + + 6 THEN NULL ELSE 85 END ) ) AS col1
----
51

skipif mysql # not compatible
query I rowsort label-2538
SELECT ALL COALESCE ( + + 51, 42 * - 89 / 74, - COALESCE ( + ( - 64 ), - COUNT ( * ), + + CASE + NULLIF ( - COUNT ( * ), + ( 15 ) * - + 32 * + ( + ( 18 ) ) ) WHEN - 8 THEN NULL WHEN + + 6 THEN NULL ELSE 85 END ) ) AS col1
----
51

query I rowsort
SELECT - + 3 + + + 42
----
39

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2541
SELECT + + 33 * + MAX( - + 92 ) * + - 64 DIV - COUNT( * )
----
-194304

skipif mysql # not compatible
query I rowsort label-2541
SELECT + + 33 * + MAX ( - + 92 ) * + - 64 / - COUNT ( * )
----
-194304

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2542
SELECT - + COUNT( * ) DIV - + NULLIF ( COUNT( * ), - + ( - - 30 ) + 3 * + - CAST( - MAX( DISTINCT + COALESCE ( - 39, 71 ) ) AS SIGNED ) * + COUNT( * ) ) + 64 * + + NULLIF ( - - 9, - COUNT( - 92 ) DIV MAX( - 5 ) )
----
577

skipif mysql # not compatible
query I rowsort label-2542
SELECT - + COUNT ( * ) / - + NULLIF ( COUNT ( * ), - + ( - - 30 ) + 3 * + - CAST ( - MAX ( DISTINCT + COALESCE ( - 39, 71 ) ) AS INTEGER ) * + COUNT ( * ) ) + 64 * + + NULLIF ( - - 9, - COUNT ( - 92 ) / MAX ( - 5 ) )
----
577

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2543
SELECT DISTINCT + ( 34 ) AS col1, CAST( - 97 AS SIGNED )
----
34
-97

skipif mysql # not compatible
query II rowsort label-2543
SELECT DISTINCT + ( 34 ) AS col1, CAST ( - 97 AS INTEGER )
----
34
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2544
SELECT ALL - + 61 DIV - 67 * + - MAX( + 70 ) * 83 + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2544
SELECT ALL - + 61 / - 67 * + - MAX ( + 70 ) * 83 + COUNT ( * ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2545
SELECT DISTINCT + 23 DIV - 14 + + - 76 * 8 - - 59 * 56 * - + CAST( - CAST( COUNT( * ) AS SIGNED ) AS SIGNED )
----
2695

skipif mysql # not compatible
query I rowsort label-2545
SELECT DISTINCT + 23 / - 14 + + - 76 * 8 - - 59 * 56 * - + CAST ( - CAST ( COUNT ( * ) AS INTEGER ) AS INTEGER )
----
2695

query I rowsort
SELECT - + 1 + + 42
----
41

query I rowsort
SELECT ALL 73 * + 48 + + 11
----
3515

query I rowsort
SELECT 70 * - 75 + + - 66 AS col2
----
-5316

onlyif mysql # aggregate syntax: 
query I rowsort label-2549
SELECT + COUNT( - ( + 28 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2549
SELECT + COUNT ( - ( + 28 ) ) AS col2
----
1

query I rowsort
SELECT ALL 10 * + 2 * 71 + + 20 col1
----
1440

query I rowsort
SELECT - 72 * - + 6 AS col1
----
432

query I rowsort
SELECT ALL - 9 * 55 * - 26 - - - 8
----
12862

query I rowsort
SELECT NULLIF ( + + 80, + 10 * - + 72 )
----
80

query I rowsort
SELECT - NULLIF ( + + 88, + 37 ) * - 13 + - 72
----
1072

query I rowsort
SELECT + 12 * - - COALESCE ( + 36, - - 33 + + 55 ) AS col2
----
432

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2557
SELECT NULLIF ( - 63, + + 7 * - 62 * - CAST( SUM( DISTINCT - 12 ) AS SIGNED ) + + - 21 + - 33 + - + 29 ) AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-2557
SELECT NULLIF ( - 63, + + 7 * - 62 * - CAST ( SUM ( DISTINCT - 12 ) AS INTEGER ) + + - 21 + - 33 + - + 29 ) AS col2
----
-63

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

query I rowsort
SELECT 63 * + - 22 + 51 col1
----
-1335

onlyif mysql # aggregate syntax: 
query I rowsort label-2560
SELECT - ( NULLIF ( + NULLIF ( 98, - - 88 ), + + 29 ) ) - ( - 93 ) + - + CASE + 79 WHEN + 39 THEN - - COUNT( * ) + + 31 * - 69 WHEN - + 74 * - 51 THEN NULL END + - 12 + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2560
SELECT - ( NULLIF ( + NULLIF ( 98, - - 88 ), + + 29 ) ) - ( - 93 ) + - + CASE + 79 WHEN + 39 THEN - - COUNT ( * ) + + 31 * - 69 WHEN - + 74 * - 51 THEN NULL END + - 12 + + COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2561
SELECT + 64 DIV - + ( + 76 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2561
SELECT + 64 / - + ( + 76 ) AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2562
SELECT - CAST( + - 62 AS SIGNED ) * - - 54 * + 47 + - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2562
SELECT - CAST ( + - 62 AS INTEGER ) * - - 54 * + 47 + - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 62 * + 20 col2
----
1240

query I rowsort
SELECT ALL + 3 * 69
----
207

query I rowsort
SELECT ALL - ( - COALESCE ( 48, + 81 ) ) AS col0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-2566
SELECT ALL + 34 * - 56 * - - MAX( + 92 ) + - 51
----
-175219

skipif mysql # not compatible
query I rowsort label-2566
SELECT ALL + 34 * - 56 * - - MAX ( + 92 ) + - 51
----
-175219

onlyif mysql # DIV for integer division: 
query I rowsort label-2567
SELECT + - 23 DIV + 23 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2567
SELECT + - 23 / + 23 AS col1
----
-1

query I rowsort
SELECT ALL + 43 * 70
----
3010

query I rowsort
SELECT + 1 + - 11 col2
----
-10

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2572
SELECT + 28 * - + MIN( - + 18 ) * + 76 * + CAST( - MIN( - - 76 ) AS SIGNED )
----
-2911104

skipif mysql # not compatible
query I rowsort label-2572
SELECT + 28 * - + MIN ( - + 18 ) * + 76 * + CAST ( - MIN ( - - 76 ) AS INTEGER )
----
-2911104

query I rowsort
SELECT + - 66 + + 43 AS col1
----
-23

query I rowsort
SELECT DISTINCT - CASE 74 WHEN + ( + 94 ) THEN NULL ELSE + - NULLIF ( + 70, - + 2 ) END
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-2575
SELECT + 94 DIV 71 DIV 81
----
0

skipif mysql # not compatible
query I rowsort label-2575
SELECT + 94 / 71 / 81
----
0

query I rowsort
SELECT ALL - 16 + + - NULLIF ( ( + - 60 ), 41 ) AS col0
----
44

query I rowsort
SELECT DISTINCT 69 + - 24 AS col2
----
45

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2578
SELECT ALL - NULLIF ( 21, + 77 + - + 33 ) + CAST( 47 AS SIGNED ) DIV - 9 + + 71 col1
----
45

skipif mysql # not compatible
query I rowsort label-2578
SELECT ALL - NULLIF ( 21, + 77 + - + 33 ) + CAST ( 47 AS INTEGER ) / - 9 + + 71 col1
----
45

query I rowsort
SELECT 89 * + 19 * 21 AS col1
----
35511

query I rowsort
SELECT DISTINCT 32 * + - 86 AS col2
----
-2752

onlyif mysql # aggregate syntax: 
query I rowsort label-2581
SELECT NULLIF ( - 85, - ( - 9 ) * - 78 / 31 ) * + 9 - - COUNT( * ) AS col2
----
-764

skipif mysql # not compatible
query I rowsort label-2581
SELECT NULLIF ( - 85, - ( - 9 ) * - 78 / 31 ) * + 9 - - COUNT ( * ) AS col2
----
-764

query I rowsort
SELECT 93 * - - 11
----
1023

onlyif mysql # DIV for integer division: 
query I rowsort label-2583
SELECT DISTINCT + 48 DIV + - 80 * + 38 * 32 * + ( - 58 )
----
0

skipif mysql # not compatible
query I rowsort label-2583
SELECT DISTINCT + 48 / + - 80 * + 38 * 32 * + ( - 58 )
----
0

query I rowsort
SELECT DISTINCT 89 - 92
----
-3

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

skipif mysql # not compatible
query I rowsort label-2585
SELECT DISTINCT + COUNT ( * ) / 88
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2586
SELECT 2 - + - CAST( NULL AS SIGNED ) + 80 * SUM( 52 ) / - 79 * + 16 + + 70 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2586
SELECT 2 - + - CAST ( NULL AS INTEGER ) + 80 * SUM ( 52 ) / - 79 * + 16 + + 70 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2587
SELECT ALL + MAX( DISTINCT + 89 ) * COUNT( * )
----
89

skipif mysql # not compatible
query I rowsort label-2587
SELECT ALL + MAX ( DISTINCT + 89 ) * COUNT ( * )
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-2588
SELECT + COUNT( * ) * - - 26 + - 26 col1
----
0

skipif mysql # not compatible
query I rowsort label-2588
SELECT + COUNT ( * ) * - - 26 + - 26 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2589
SELECT 17 * - ( - 21 ) * - + MIN( + - 37 ) + - - 24 * + ( + 7 ) AS col0
----
13377

skipif mysql # not compatible
query I rowsort label-2589
SELECT 17 * - ( - 21 ) * - + MIN ( + - 37 ) + - - 24 * + ( + 7 ) AS col0
----
13377

query I rowsort
SELECT 1 + - + 28 AS col1
----
-27

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2593
SELECT 78 + + + CASE + + 61 WHEN + 64 THEN - 74 * COUNT( * ) + + COALESCE ( + SUM( - + 74 ), - 22, - 34 ) * - MAX( ALL - 4 ) - 50 + + 13 ELSE NULL END AS col1, - 44 * COUNT( * ) * - - 20
----
NULL
-880

skipif mysql # not compatible
query II rowsort label-2593
SELECT 78 + + + CASE + + 61 WHEN + 64 THEN - 74 * COUNT ( * ) + + COALESCE ( + SUM ( - + 74 ), - 22, - 34 ) * - MAX ( ALL - 4 ) - 50 + + 13 ELSE NULL END AS col1, - 44 * COUNT ( * ) * - - 20
----
NULL
-880

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

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

query II rowsort
SELECT DISTINCT 91 * - + 10 * + 85 - + 4, + 92 * - - 0 * - 50 * + 26 AS col1
----
-77354
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2596
SELECT ALL - - 65 + ( 42 ) + COUNT( + 48 )
----
108

skipif mysql # not compatible
query I rowsort label-2596
SELECT ALL - - 65 + ( 42 ) + COUNT ( + 48 )
----
108

query I rowsort
SELECT DISTINCT 13 + 27 AS col1
----
40

query I rowsort
SELECT ALL 18 + + 17
----
35

query I rowsort
SELECT DISTINCT - 29 * + + ( - 55 )
----
1595

query I rowsort
SELECT - 1 - + 70 * - + 76
----
5319

query I rowsort
SELECT 57 + - + 61
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-2602
SELECT MAX( ALL - + CASE - + 84 WHEN + 3 + 92 * 93 THEN NULL WHEN + - 78 THEN - + ( + 92 ) ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-2602
SELECT MAX ( ALL - + CASE - + 84 WHEN + 3 + 92 * 93 THEN NULL WHEN + - 78 THEN - + ( + 92 ) ELSE NULL END )
----
NULL

query I rowsort
SELECT ALL 37 - - 67 AS col1
----
104

query I rowsort
SELECT ( - 36 ) * - 18 + - ( - 10 )
----
658

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2605
SELECT ALL NULLIF ( COUNT( * ), + SUM( 74 ) ) * - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2605
SELECT ALL NULLIF ( COUNT ( * ), + SUM ( 74 ) ) * - CAST ( NULL AS INTEGER ) col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2607
SELECT 76 * - MAX( + - 87 ) * - - NULLIF ( + + 53, + 60 * + 47 * 19 * - - 31 )
----
350436

skipif mysql # not compatible
query I rowsort label-2607
SELECT 76 * - MAX ( + - 87 ) * - - NULLIF ( + + 53, + 60 * + 47 * 19 * - - 31 )
----
350436

onlyif mysql # DIV for integer division: 
query I rowsort label-2608
SELECT 81 DIV 43 + - 42 col0
----
-41

skipif mysql # not compatible
query I rowsort label-2608
SELECT 81 / 43 + - 42 col0
----
-41

query I rowsort
SELECT ALL 77 * 29
----
2233

onlyif mysql # DIV for integer division: 
query I rowsort label-2610
SELECT 18 DIV + 7
----
2

skipif mysql # not compatible
query I rowsort label-2610
SELECT 18 / + 7
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2611
SELECT MIN( DISTINCT NULLIF ( + 61, - + 0 * + - 25 + - 56 ) ) col2
----
61

skipif mysql # not compatible
query I rowsort label-2611
SELECT MIN ( DISTINCT NULLIF ( + 61, - + 0 * + - 25 + - 56 ) ) col2
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-2612
SELECT 27 + - ( 89 ) + - 90 + ( + - 58 ) DIV + 26
----
-154

skipif mysql # not compatible
query I rowsort label-2612
SELECT 27 + - ( 89 ) + - 90 + ( + - 58 ) / + 26
----
-154

onlyif mysql # aggregate syntax: 
query I rowsort label-2613
SELECT CASE - ( - MAX( 53 ) ) WHEN + 0 THEN NULL WHEN - COUNT( * ) THEN NULL ELSE + - 67 END + - MIN( DISTINCT - + 6 ) AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-2613
SELECT CASE - ( - MAX ( 53 ) ) WHEN + 0 THEN NULL WHEN - COUNT ( * ) THEN NULL ELSE + - 67 END + - MIN ( DISTINCT - + 6 ) AS col0
----
-61

query I rowsort
SELECT DISTINCT 82 * 76 col0
----
6232

query I rowsort
SELECT ALL 41 * - 53 AS col0
----
-2173

onlyif mysql # DIV for integer division: 
query I rowsort label-2616
SELECT 7 DIV + - ( 85 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-2616
SELECT 7 / + - ( 85 ) col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2617
SELECT DISTINCT - NULLIF ( + CAST( NULL AS SIGNED ), + 61 ) / 21 + 86
----
NULL

skipif mysql # not compatible
query I rowsort label-2617
SELECT DISTINCT - NULLIF ( + CAST ( NULL AS INTEGER ), + 61 ) / 21 + 86
----
NULL

query I rowsort
SELECT DISTINCT 35 + - + 50 AS col2
----
-15

query I rowsort
SELECT + ( + 8 ) * 40
----
320

onlyif mysql # aggregate syntax: 
query I rowsort label-2620
SELECT + - COUNT( DISTINCT + 15 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-2620
SELECT + - COUNT ( DISTINCT + 15 ) col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2621
SELECT ALL - 51 + - - CAST( NULL AS SIGNED ) * + AVG ( ALL - 8 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2621
SELECT ALL - 51 + - - CAST ( NULL AS INTEGER ) * + AVG ( ALL - 8 )
----
NULL

query I rowsort
SELECT 11 + 70 AS col0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2623
SELECT ALL + - NULLIF ( - 26, - 7 * - + 58 + + COUNT( * ) ) * + SUM( + 43 ) + ( 9 ) AS col1
----
1127

skipif mysql # not compatible
query I rowsort label-2623
SELECT ALL + - NULLIF ( - 26, - 7 * - + 58 + + COUNT ( * ) ) * + SUM ( + 43 ) + ( 9 ) AS col1
----
1127

onlyif mysql # aggregate syntax: 
query I rowsort label-2624
SELECT - COALESCE ( + + 8, - - 23 * - 39 ) * - COALESCE ( - - COUNT( * ), ( + 10 ) ) + + 92
----
100

skipif mysql # not compatible
query I rowsort label-2624
SELECT - COALESCE ( + + 8, - - 23 * - 39 ) * - COALESCE ( - - COUNT ( * ), ( + 10 ) ) + + 92
----
100

query I rowsort
SELECT ALL 19 + - 84
----
-65

query I rowsort
SELECT ALL - 91 + - + 69
----
-160

onlyif mysql # aggregate syntax: 
query I rowsort label-2627
SELECT ALL - + 29 + - - 51 + COUNT( * ) + - - 88 AS col2
----
111

skipif mysql # not compatible
query I rowsort label-2627
SELECT ALL - + 29 + - - 51 + COUNT ( * ) + - - 88 AS col2
----
111

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

query I rowsort
SELECT - + 14 + 2 col1
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2630
SELECT ALL + + 37 + + + COUNT( * ) + - 49 + + 44 DIV - - 53
----
-11

skipif mysql # not compatible
query I rowsort label-2630
SELECT ALL + + 37 + + + COUNT ( * ) + - 49 + + 44 / - - 53
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-2631
SELECT DISTINCT - - 25 DIV 98
----
0

skipif mysql # not compatible
query I rowsort label-2631
SELECT DISTINCT - - 25 / 98
----
0

query I rowsort
SELECT + - 89 * - 43 AS col2
----
3827

query I rowsort
SELECT ALL - 84 * + - 35
----
2940

onlyif mysql # aggregate syntax: 
query II rowsort label-2634
SELECT 32, - 51 * - - COUNT( * ) * - 53 * + - 59 AS col0
----
32
-159477

skipif mysql # not compatible
query II rowsort label-2634
SELECT 32, - 51 * - - COUNT ( * ) * - 53 * + - 59 AS col0
----
32
-159477

query I rowsort
SELECT DISTINCT 78 * - 42
----
-3276

onlyif mysql # aggregate syntax: 
query I rowsort label-2636
SELECT - ( 9 ) * + COUNT( * ) + COUNT( * ) * - 37 AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-2636
SELECT - ( 9 ) * + COUNT ( * ) + COUNT ( * ) * - 37 AS col2
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2637
SELECT DISTINCT CASE - + 98 WHEN + + SUM( ALL - 2 ) + CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) * COUNT( * ) * - 39 + - 73 - + - 16 * + 48 * - - 85 * - 63 THEN - 70 ELSE - 48 END col1
----
-48

skipif mysql # not compatible
query I rowsort label-2637
SELECT DISTINCT CASE - + 98 WHEN + + SUM ( ALL - 2 ) + CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) * COUNT ( * ) * - 39 + - 73 - + - 16 * + 48 * - - 85 * - 63 THEN - 70 ELSE - 48 END col1
----
-48

query I rowsort
SELECT ALL - 49 * - ( + 35 )
----
1715

query II rowsort
SELECT DISTINCT 86 AS col0, + 68
----
86
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2640
SELECT ( + 60 ) * + ( + 67 ) + - - 90 DIV 70 * 39 - + MAX( DISTINCT - - 38 ) + - + 22 + + - 56 AS col0
----
3943

skipif mysql # not compatible
query I rowsort label-2640
SELECT ( + 60 ) * + ( + 67 ) + - - 90 / 70 * 39 - + MAX ( DISTINCT - - 38 ) + - + 22 + + - 56 AS col0
----
3943

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2641
SELECT + 48 * + - ( - 13 ) * - COUNT( * ) DIV 1 * - 15 * + 9 + + + 61
----
84301

skipif mysql # not compatible
query I rowsort label-2641
SELECT + 48 * + - ( - 13 ) * - COUNT ( * ) / 1 * - 15 * + 9 + + + 61
----
84301

query I rowsort
SELECT - 59 - - 81 - - 52 AS col2
----
74

query I rowsort
SELECT + NULLIF ( + + 61, + 81 ) AS col0
----
61

query I rowsort
SELECT + 36 + - 34
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2645
SELECT ALL + NULLIF ( + COUNT( * ), - - 55 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2645
SELECT ALL + NULLIF ( + COUNT ( * ), - - 55 ) AS col1
----
1

query I rowsort
SELECT ALL 23 * - 88 * + 95
----
-192280

query II rowsort
SELECT ALL + 52, 99 * - + ( - 92 ) AS col2
----
52
9108

onlyif mysql # aggregate syntax: 
query II rowsort label-2648
SELECT ALL + COUNT( * ) * - 13 + MAX( DISTINCT - 74 ) - - 82 * - - 54, - 7 col2
----
4341
-7

skipif mysql # not compatible
query II rowsort label-2648
SELECT ALL + COUNT ( * ) * - 13 + MAX ( DISTINCT - 74 ) - - 82 * - - 54, - 7 col2
----
4341
-7

query I rowsort
SELECT - 59 * + 34 * 78 - 1 * - - 22 - + + 60
----
-156550

onlyif mysql # aggregate syntax: 
query I rowsort label-2650
SELECT + 82 - + + 27 * - 48 * - - COUNT( * ) * 35 AS col1
----
45442

skipif mysql # not compatible
query I rowsort label-2650
SELECT + 82 - + + 27 * - 48 * - - COUNT ( * ) * 35 AS col1
----
45442

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2651
SELECT CAST( + 14 AS SIGNED ) col1
----
14

skipif mysql # not compatible
query I rowsort label-2651
SELECT CAST ( + 14 AS INTEGER ) col1
----
14

query II rowsort
SELECT ALL + 36 col1, 40 * 84
----
36
3360

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2653
SELECT 0 * - ( ( + 23 ) ) + 48 + 87 DIV + COUNT( * ) + - + 24 + ( + 78 ) AS col2
----
189

skipif mysql # not compatible
query I rowsort label-2653
SELECT 0 * - ( ( + 23 ) ) + 48 + 87 / + COUNT ( * ) + - + 24 + ( + 78 ) AS col2
----
189

onlyif mysql # aggregate syntax: 
query II rowsort label-2654
SELECT - 94 * - COUNT( * ), + 14 AS col0
----
94
14

skipif mysql # not compatible
query II rowsort label-2654
SELECT - 94 * - COUNT ( * ), + 14 AS col0
----
94
14

onlyif mysql # aggregate syntax: 
query I rowsort label-2655
SELECT + COUNT( * ) + + 62
----
63

skipif mysql # not compatible
query I rowsort label-2655
SELECT + COUNT ( * ) + + 62
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-2656
SELECT ALL - 96 * + COUNT( 36 ) + + + 19 col1
----
-77

skipif mysql # not compatible
query I rowsort label-2656
SELECT ALL - 96 * + COUNT ( 36 ) + + + 19 col1
----
-77

query I rowsort
SELECT DISTINCT + 62 * + 80 AS col0
----
4960

onlyif mysql # DIV for integer division: 
query I rowsort label-2658
SELECT + + 34 * - 9 + 43 DIV - + 44 AS col2
----
-306

skipif mysql # not compatible
query I rowsort label-2658
SELECT + + 34 * - 9 + 43 / - + 44 AS col2
----
-306

onlyif mysql # aggregate syntax: 
query I rowsort label-2659
SELECT ALL CASE - + 66 WHEN - + 42 THEN + COUNT( + 60 ) WHEN + 34 THEN + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2659
SELECT ALL CASE - + 66 WHEN - + 42 THEN + COUNT ( + 60 ) WHEN + 34 THEN + COUNT ( * ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2660
SELECT DISTINCT - 77, CASE + 48 WHEN + 11 * + 71 + - COUNT( * ) / - CAST( + + ( + + 2 ) AS SIGNED ) + 3 THEN - 67 + + + 18 + - + 95 WHEN 2 - + 68 * + 31 + 57 + + 64 * + COUNT( * ) / - 11 THEN NULL ELSE + 85 * - 18 - - 52 END * + 88 - + + ( + 57 ) AS col1
----
-77
-130121

skipif mysql # not compatible
query II rowsort label-2660
SELECT DISTINCT - 77, CASE + 48 WHEN + 11 * + 71 + - COUNT ( * ) / - CAST ( + + ( + + 2 ) AS INTEGER ) + 3 THEN - 67 + + + 18 + - + 95 WHEN 2 - + 68 * + 31 + 57 + + 64 * + COUNT ( * ) / - 11 THEN NULL ELSE + 85 * - 18 - - 52 END * + 88 - + + ( + 57 ) AS col1
----
-77
-130121

query I rowsort
SELECT + + 66 * - 15 + - + 69 * - 37 + - 48
----
1515

onlyif mysql # aggregate syntax: 
query II rowsort label-2662
SELECT - COUNT( * ) AS col0, COUNT( DISTINCT 37 ) * + 25 * 49 + + 91 * + NULLIF ( + 14, + 25 ) AS col1
----
-1
2499

skipif mysql # not compatible
query II rowsort label-2662
SELECT - COUNT ( * ) AS col0, COUNT ( DISTINCT 37 ) * + 25 * 49 + + 91 * + NULLIF ( + 14, + 25 ) AS col1
----
-1
2499

query I rowsort
SELECT + 36 + - 14 + 43 col1
----
65

query I rowsort
SELECT + - 99 * - 42 * + 16 AS col1
----
66528

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2665
SELECT + 37 AS col0, - CAST( 4 AS SIGNED ) AS col0
----
37
-4

skipif mysql # not compatible
query II rowsort label-2665
SELECT + 37 AS col0, - CAST ( 4 AS INTEGER ) AS col0
----
37
-4

query I rowsort
SELECT ALL - 88 * + 83 col1
----
-7304

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2667
SELECT ALL COUNT( * ) - - 58 + + COUNT( * ) * COUNT( - 96 ) * - CASE + - 93 WHEN + - CAST( + 61 AS SIGNED ) THEN - 88 WHEN + 88 THEN + - 9 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2667
SELECT ALL COUNT ( * ) - - 58 + + COUNT ( * ) * COUNT ( - 96 ) * - CASE + - 93 WHEN + - CAST ( + 61 AS INTEGER ) THEN - 88 WHEN + 88 THEN + - 9 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2668
SELECT DISTINCT - CASE - 92 WHEN COUNT( * ) / - 26 - + + 88 - 92 THEN + 85 ELSE - + 69 END
----
69

skipif mysql # not compatible
query I rowsort label-2668
SELECT DISTINCT - CASE - 92 WHEN COUNT ( * ) / - 26 - + + 88 - 92 THEN + 85 ELSE - + 69 END
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-2669
SELECT - 43 - + + 72 AS col2, + COUNT( * ) - + 4 AS col1
----
-115
-3

skipif mysql # not compatible
query II rowsort label-2669
SELECT - 43 - + + 72 AS col2, + COUNT ( * ) - + 4 AS col1
----
-115
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-2670
SELECT + 90 * - 29 AS col1, 63 + - COUNT( * ) + 86 AS col2
----
-2610
148

skipif mysql # not compatible
query II rowsort label-2670
SELECT + 90 * - 29 AS col1, 63 + - COUNT ( * ) + 86 AS col2
----
-2610
148

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2671
SELECT - 7 + NULLIF ( + + CASE 60 WHEN COALESCE ( - 51, + CASE - 41 WHEN - + CAST( - 86 AS SIGNED ) + + 43 * + - ( + 48 ) THEN - + 78 + - - 85 WHEN 74 THEN - 86 ELSE NULL END + COUNT( * ) + - - 0 ) THEN + COUNT( * ) END, 76 / - COUNT( * ) ) + - 83 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2671
SELECT - 7 + NULLIF ( + + CASE 60 WHEN COALESCE ( - 51, + CASE - 41 WHEN - + CAST ( - 86 AS INTEGER ) + + 43 * + - ( + 48 ) THEN - + 78 + - - 85 WHEN 74 THEN - 86 ELSE NULL END + COUNT ( * ) + - - 0 ) THEN + COUNT ( * ) END, 76 / - COUNT ( * ) ) + - 83 col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2672
SELECT - CAST( - 91 AS SIGNED ) + + 70
----
161

skipif mysql # not compatible
query I rowsort label-2672
SELECT - CAST ( - 91 AS INTEGER ) + + 70
----
161

onlyif mysql # DIV for integer division: 
query I rowsort label-2673
SELECT - 48 DIV - + 69 col1
----
0

skipif mysql # not compatible
query I rowsort label-2673
SELECT - 48 / - + 69 col1
----
0

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

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

query I rowsort
SELECT - 36 + - - 67 AS col2
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2676
SELECT - 12 DIV - - COUNT( * ) AS col1
----
-12

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2677
SELECT - 30 + CAST( NULL AS SIGNED ) * - + 58 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2677
SELECT - 30 + CAST ( NULL AS INTEGER ) * - + 58 col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2678
SELECT DISTINCT + 96 DIV + 68 + - 87 AS col0
----
-86

skipif mysql # not compatible
query I rowsort label-2678
SELECT DISTINCT + 96 / + 68 + - 87 AS col0
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-2679
SELECT - 92 * + SUM( DISTINCT - 56 ) + 50 + - 43
----
5159

skipif mysql # not compatible
query I rowsort label-2679
SELECT - 92 * + SUM ( DISTINCT - 56 ) + 50 + - 43
----
5159

onlyif mysql # DIV for integer division: 
query I rowsort label-2680
SELECT ALL + 63 DIV + 76 * + CASE WHEN NOT COALESCE ( + 19, + - 66 ) BETWEEN - + 72 AND NULL THEN NULL ELSE - + 39 END + 88
----
88

skipif mysql # not compatible
query I rowsort label-2680
SELECT ALL + 63 / + 76 * + CASE WHEN NOT COALESCE ( + 19, + - 66 ) BETWEEN - + 72 AND NULL THEN NULL ELSE - + 39 END + 88
----
88

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2682
SELECT 55 DIV - 46 + 97 AS col1
----
96

skipif mysql # not compatible
query I rowsort label-2682
SELECT 55 / - 46 + 97 AS col1
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-2683
SELECT + 79 + COUNT( - - 34 ) AS col1, 96 AS col0
----
80
96

skipif mysql # not compatible
query II rowsort label-2683
SELECT + 79 + COUNT ( - - 34 ) AS col1, 96 AS col0
----
80
96

query I rowsort
SELECT 94 + - 55 AS col2
----
39

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2686
SELECT + MIN( + - 83 ) AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-2686
SELECT + MIN ( + - 83 ) AS col2
----
-83

query I rowsort
SELECT DISTINCT 80 * 76 col0
----
6080

query I rowsort
SELECT 63 + - ( + ( - 61 ) ) * + + 17 AS col0
----
1100

query I rowsort
SELECT DISTINCT - 50 * 13 * 54 col0
----
-35100

onlyif mysql # DIV for integer division: 
query I rowsort label-2690
SELECT 12 DIV - 16 * + 67 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2690
SELECT 12 / - 16 * + 67 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2691
SELECT - CASE + NULLIF ( 15, + + 61 * - COUNT( * ) ) WHEN - 39 THEN NULL ELSE + 30 - - COUNT( * ) END * - NULLIF ( - 73, + 33 ) * + 6 AS col0, COUNT( DISTINCT - 69 )
----
-13578
1

skipif mysql # not compatible
query II rowsort label-2691
SELECT - CASE + NULLIF ( 15, + + 61 * - COUNT ( * ) ) WHEN - 39 THEN NULL ELSE + 30 - - COUNT ( * ) END * - NULLIF ( - 73, + 33 ) * + 6 AS col0, COUNT ( DISTINCT - 69 )
----
-13578
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2692
SELECT ALL 64 * 74 + - COUNT( * ) + - CAST( NULL AS SIGNED ) * - 67 * - 51
----
NULL

skipif mysql # not compatible
query I rowsort label-2692
SELECT ALL 64 * 74 + - COUNT ( * ) + - CAST ( NULL AS INTEGER ) * - 67 * - 51
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2693
SELECT - 38 - + COALESCE ( - + 5, 2, + COUNT( + 18 ), + CAST( + - 37 AS SIGNED ) * SUM( DISTINCT - - 42 ) ) AS col1, - 19 * + - 11
----
-33
209

skipif mysql # not compatible
query II rowsort label-2693
SELECT - 38 - + COALESCE ( - + 5, 2, + COUNT ( + 18 ), + CAST ( + - 37 AS INTEGER ) * SUM ( DISTINCT - - 42 ) ) AS col1, - 19 * + - 11
----
-33
209

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2696
SELECT DISTINCT 26 * NULLIF ( + 24, 39 ) + - SUM( DISTINCT - - 57 )
----
567

skipif mysql # not compatible
query I rowsort label-2696
SELECT DISTINCT 26 * NULLIF ( + 24, 39 ) + - SUM ( DISTINCT - - 57 )
----
567

query I rowsort
SELECT 92 + - 4
----
88

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2698
SELECT 2 * - 89 * + 35, 66 DIV - - CAST( - - 35 AS SIGNED ) AS col0
----
-6230
1

skipif mysql # not compatible
query II rowsort label-2698
SELECT 2 * - 89 * + 35, 66 / - - CAST ( - - 35 AS INTEGER ) AS col0
----
-6230
1

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

query I rowsort
SELECT 11 * + 8 AS col1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-2701
SELECT ALL + MIN( DISTINCT + 82 ) + + - 11 col1
----
71

skipif mysql # not compatible
query I rowsort label-2701
SELECT ALL + MIN ( DISTINCT + 82 ) + + - 11 col1
----
71

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

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

query I rowsort
SELECT 27 + + ( - 84 ) AS col2
----
-57

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2705
SELECT ALL - COUNT( * ) + - 23 * + MIN( 54 ) - 22 AS col1
----
-1265

skipif mysql # not compatible
query I rowsort label-2705
SELECT ALL - COUNT ( * ) + - 23 * + MIN ( 54 ) - 22 AS col1
----
-1265

query I rowsort
SELECT ALL + 86 + - - 25 AS col0
----
111

query I rowsort
SELECT 27 * 88 AS col1
----
2376

query I rowsort
SELECT ALL + 14 + + + 74
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-2709
SELECT DISTINCT - MIN( ALL + 27 ) AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-2709
SELECT DISTINCT - MIN ( ALL + 27 ) AS col2
----
-27

query I rowsort
SELECT 52 * - 28
----
-1456

onlyif mysql # aggregate syntax: 
query I rowsort label-2711
SELECT 26 + - 91 + + - COUNT( * ) + + 15 * + + 38 AS col1
----
504

skipif mysql # not compatible
query I rowsort label-2711
SELECT 26 + - 91 + + - COUNT ( * ) + + 15 * + + 38 AS col1
----
504

onlyif mysql # aggregate syntax: 
query I rowsort label-2712
SELECT - - NULLIF ( - 79, + + COUNT( * ) ) * - 33 * 37 + + COUNT( * ) + - - MAX( DISTINCT - 47 ) + - - 0
----
96413

skipif mysql # not compatible
query I rowsort label-2712
SELECT - - NULLIF ( - 79, + + COUNT ( * ) ) * - 33 * 37 + + COUNT ( * ) + - - MAX ( DISTINCT - 47 ) + - - 0
----
96413

onlyif mysql # DIV for integer division: 
query II rowsort label-2713
SELECT DISTINCT - + 50, 94 DIV + + 51 AS col2
----
-50
1

skipif mysql # not compatible
query II rowsort label-2713
SELECT DISTINCT - + 50, 94 / + + 51 AS col2
----
-50
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2714
SELECT + 52 * - CAST( - 41 AS SIGNED ) - + 61
----
2071

skipif mysql # not compatible
query I rowsort label-2714
SELECT + 52 * - CAST ( - 41 AS INTEGER ) - + 61
----
2071

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2716
SELECT + 52 * - COUNT( * ) DIV + 1 AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-2716
SELECT + 52 * - COUNT ( * ) / + 1 AS col1
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2717
SELECT 47 + + + COALESCE ( - + CAST( NULL AS SIGNED ), COUNT( * ) )
----
48

skipif mysql # not compatible
query I rowsort label-2717
SELECT 47 + + + COALESCE ( - + CAST ( NULL AS INTEGER ), COUNT ( * ) )
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-2718
SELECT + 99 AS col1, + SUM( - 11 ) AS col2
----
99
-11

skipif mysql # not compatible
query II rowsort label-2718
SELECT + 99 AS col1, + SUM ( - 11 ) AS col2
----
99
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-2719
SELECT ALL - 21 * COUNT( * ) AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-2719
SELECT ALL - 21 * COUNT ( * ) AS col1
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-2720
SELECT + - COUNT( * ) * - - 19 + 70 + - 71 AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-2720
SELECT + - COUNT ( * ) * - - 19 + 70 + - 71 AS col1
----
-20

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2722
SELECT NULLIF ( + 0, - 7 * + 87 ) + - 85 + CAST( - - 42 AS SIGNED ) * - 59 AS col2, 28
----
-2563
28

skipif mysql # not compatible
query II rowsort label-2722
SELECT NULLIF ( + 0, - 7 * + 87 ) + - 85 + CAST ( - - 42 AS INTEGER ) * - 59 AS col2, 28
----
-2563
28

query I rowsort
SELECT 58 * 42
----
2436

onlyif mysql # aggregate syntax: 
query I rowsort label-2724
SELECT ALL - + COUNT( ALL + 69 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2724
SELECT ALL - + COUNT ( ALL + 69 ) AS col1
----
-1

query I rowsort
SELECT ALL 98 * - 33 AS col0
----
-3234

onlyif mysql # aggregate syntax: 
query I rowsort label-2726
SELECT - COUNT( DISTINCT 78 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2726
SELECT - COUNT ( DISTINCT 78 ) AS col0
----
-1

query I rowsort
SELECT ( + + 46 ) * 58
----
2668

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

query I rowsort
SELECT DISTINCT 72 + + + 72 + + 52 AS col1
----
196

onlyif mysql # aggregate syntax: 
query I rowsort label-2730
SELECT DISTINCT - MAX( DISTINCT - 49 ) + + 27 - - + 90 + - 72 + COUNT( * ) * - 42 * - 50
----
2194

skipif mysql # not compatible
query I rowsort label-2730
SELECT DISTINCT - MAX ( DISTINCT - 49 ) + + 27 - - + 90 + - 72 + COUNT ( * ) * - 42 * - 50
----
2194

query I rowsort
SELECT ALL 19 + - 96
----
-77

query II rowsort
SELECT ALL + 55 + - 65 AS col2, - 25
----
-10
-25

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2734
SELECT ALL ( - + 56 ) + 62 * 78 AS col1, + 40 * + COUNT( * ) + 57 + - 16 DIV 25
----
4780
97

skipif mysql # not compatible
query II rowsort label-2734
SELECT ALL ( - + 56 ) + 62 * 78 AS col1, + 40 * + COUNT ( * ) + 57 + - 16 / 25
----
4780
97

query I rowsort
SELECT COALESCE ( 67, 91 ) + 18 AS col2
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2736
SELECT COUNT( * ) + - 23 DIV ( + + ( 88 ) ) + - ( 20 ) * 62
----
-1239

skipif mysql # not compatible
query I rowsort label-2736
SELECT COUNT ( * ) + - 23 / ( + + ( 88 ) ) + - ( 20 ) * 62
----
-1239

query I rowsort
SELECT 46 + - 75 * - ( + 74 ) AS col2
----
5596

onlyif mysql # aggregate syntax: 
query I rowsort label-2738
SELECT + 47 + + - 21 * + COUNT( * ) * - MIN( DISTINCT + 38 ) AS col0
----
845

skipif mysql # not compatible
query I rowsort label-2738
SELECT + 47 + + - 21 * + COUNT ( * ) * - MIN ( DISTINCT + 38 ) AS col0
----
845

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2739
SELECT ALL + ( + CAST( + - 34 AS SIGNED ) ) * - 48 + + 48
----
1680

skipif mysql # not compatible
query I rowsort label-2739
SELECT ALL + ( + CAST ( + - 34 AS INTEGER ) ) * - 48 + + 48
----
1680

query I rowsort
SELECT - NULLIF ( - + NULLIF ( + 78, - 71 ), - 54 + + 72 - + + 82 ) AS col1
----
78

query I rowsort
SELECT + NULLIF ( - 69, 34 ) AS col0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-2742
SELECT + COUNT( * ) * - 70 + 59
----
-11

skipif mysql # not compatible
query I rowsort label-2742
SELECT + COUNT ( * ) * - 70 + 59
----
-11

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2745
SELECT - 16 * - + COUNT( * ) - - - 24
----
-8

skipif mysql # not compatible
query I rowsort label-2745
SELECT - 16 * - + COUNT ( * ) - - - 24
----
-8

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

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

query I rowsort
SELECT - 30 * ( + 65 ) AS col1
----
-1950

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2748
SELECT ALL - - 49 DIV - + COUNT( * ), - 3 AS col1
----
-49
-3

skipif mysql # not compatible
query II rowsort label-2748
SELECT ALL - - 49 / - + COUNT ( * ), - 3 AS col1
----
-49
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2749
SELECT - + CASE CAST( NULL AS SIGNED ) WHEN - - 86 THEN 65 END * - - 14 + 17
----
NULL

skipif mysql # not compatible
query I rowsort label-2749
SELECT - + CASE CAST ( NULL AS INTEGER ) WHEN - - 86 THEN 65 END * - - 14 + 17
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2750
SELECT - 70 * + CAST( - COUNT( * ) AS SIGNED ) + + + NULLIF ( + 80, - - 80 + + - 87 ) + - - 17
----
167

skipif mysql # not compatible
query I rowsort label-2750
SELECT - 70 * + CAST ( - COUNT ( * ) AS INTEGER ) + + + NULLIF ( + 80, - - 80 + + - 87 ) + - - 17
----
167

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2751
SELECT ALL - 40 * - CAST( NULL AS SIGNED ) + - 35 * - 38 * - 41 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2751
SELECT ALL - 40 * - CAST ( NULL AS INTEGER ) + - 35 * - 38 * - 41 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2752
SELECT + MAX( ( - 60 ) ) AS col1, - 49 AS col1
----
-60
-49

skipif mysql # not compatible
query II rowsort label-2752
SELECT + MAX ( ( - 60 ) ) AS col1, - 49 AS col1
----
-60
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2753
SELECT - ( - CAST( NULL AS SIGNED ) ) * - 49 / 99 + - ( + ( + 97 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2753
SELECT - ( - CAST ( NULL AS INTEGER ) ) * - 49 / 99 + - ( + ( + 97 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2754
SELECT - 19 - + COUNT( - 42 ) + + 52 AS col0
----
32

skipif mysql # not compatible
query I rowsort label-2754
SELECT - 19 - + COUNT ( - 42 ) + + 52 AS col0
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2755
SELECT DISTINCT + COUNT( * ) * - 27 DIV + ( + 56 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-2755
SELECT DISTINCT + COUNT ( * ) * - 27 / + ( + 56 ) col1
----
0

query I rowsort
SELECT ALL - 86 + - 19 AS col2
----
-105

query I rowsort
SELECT - 30 * + 84 AS col0
----
-2520

onlyif mysql # aggregate syntax: 
query I rowsort label-2758
SELECT + 65 - + 52 - - SUM( + 53 ) * + 96 AS col2
----
5101

skipif mysql # not compatible
query I rowsort label-2758
SELECT + 65 - + 52 - - SUM ( + 53 ) * + 96 AS col2
----
5101

onlyif mysql # aggregate syntax: 
query I rowsort label-2759
SELECT - 95 * + COALESCE ( - 95, - COUNT( + - 40 ) * + + 97, + 89 )
----
9025

skipif mysql # not compatible
query I rowsort label-2759
SELECT - 95 * + COALESCE ( - 95, - COUNT ( + - 40 ) * + + 97, + 89 )
----
9025

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2760
SELECT - 50, CASE + + 53 WHEN + COALESCE ( 99, - 80 ) THEN NULL ELSE - + COALESCE ( + 83, + + 63, - COUNT( * ) ) END + 29 DIV 35 AS col0
----
-50
-83

skipif mysql # not compatible
query II rowsort label-2760
SELECT - 50, CASE + + 53 WHEN + COALESCE ( 99, - 80 ) THEN NULL ELSE - + COALESCE ( + 83, + + 63, - COUNT ( * ) ) END + 29 / 35 AS col0
----
-50
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-2761
SELECT - CASE 85 WHEN - + 55 * - + COUNT( * ) THEN NULL ELSE - 13 + + COUNT( * ) END
----
12

skipif mysql # not compatible
query I rowsort label-2761
SELECT - CASE 85 WHEN - + 55 * - + COUNT ( * ) THEN NULL ELSE - 13 + + COUNT ( * ) END
----
12

query I rowsort
SELECT - 29 * 18
----
-522

query I rowsort
SELECT + 35 * + + 2
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2764
SELECT ALL CAST( - CASE - 5 WHEN - 88 THEN NULL WHEN + - 28 * - NULLIF ( + 15, 50 ) THEN + AVG ( ALL - 9 ) END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2764
SELECT ALL CAST ( - CASE - 5 WHEN - 88 THEN NULL WHEN + - 28 * - NULLIF ( + 15, 50 ) THEN + AVG ( ALL - 9 ) END AS INTEGER )
----
NULL

query I rowsort
SELECT + 99 * - - 84 * + 25 * + 58 AS col0
----
12058200

onlyif mysql # DIV for integer division: 
query I rowsort label-2766
SELECT + 17 DIV + - 67 * + 11
----
0

skipif mysql # not compatible
query I rowsort label-2766
SELECT + 17 / + - 67 * + 11
----
0

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

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

query I rowsort
SELECT - - 65 * - - ( + 20 ) * + 88 AS col0
----
114400

query I rowsort
SELECT + + 6 + + 2 col2
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2770
SELECT + - CASE + 18 WHEN - 35 + + 73 * 21 / - 8 THEN NULL WHEN + COUNT( 88 ) + - 9 * - 1 THEN + + AVG ( - + 95 ) * 11 * + - 21 * + 80 / - 59 END / + - 24 + + 75 * ( + + 6 ) * + SUM( 65 ) * 12
----
NULL

skipif mysql # not compatible
query I rowsort label-2770
SELECT + - CASE + 18 WHEN - 35 + + 73 * 21 / - 8 THEN NULL WHEN + COUNT ( 88 ) + - 9 * - 1 THEN + + AVG ( - + 95 ) * 11 * + - 21 * + 80 / - 59 END / + - 24 + + 75 * ( + + 6 ) * + SUM ( 65 ) * 12
----
NULL

query II rowsort
SELECT ALL + - 31, - 85 AS col0
----
-31
-85

query I rowsort
SELECT DISTINCT 35 * - - 22
----
770

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

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

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

skipif mysql # not compatible
query I rowsort label-2774
SELECT DISTINCT + CAST ( - - 15 AS INTEGER ) col1
----
15

query I rowsort
SELECT + + ( + 47 ) + 79 * + CASE - 88 WHEN - + ( 1 ) THEN NULL ELSE + - 17 END * - 23
----
30936

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2776
SELECT - 50 * + + COUNT( * ) DIV - + COUNT( * ) + NULLIF ( + + 27, + 74 * - + 61 * - 32 ) * + 22 + 74 AS col1
----
718

skipif mysql # not compatible
query I rowsort label-2776
SELECT - 50 * + + COUNT ( * ) / - + COUNT ( * ) + NULLIF ( + + 27, + 74 * - + 61 * - 32 ) * + 22 + 74 AS col1
----
718

query I rowsort
SELECT DISTINCT 71 * + 87 - - 26 + - + 25 AS col0
----
6178

query I rowsort
SELECT + - CASE + NULLIF ( 83, - 45 ) WHEN 16 THEN NULLIF ( - 97, + + 48 ) ELSE + 46 END
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-2779
SELECT ALL - 48 * + - 80 - + - COUNT( * ) + - 9 AS col1
----
3832

skipif mysql # not compatible
query I rowsort label-2779
SELECT ALL - 48 * + - 80 - + - COUNT ( * ) + - 9 AS col1
----
3832

onlyif mysql # aggregate syntax: 
query I rowsort label-2780
SELECT ALL + CASE 61 WHEN NULLIF ( + COUNT( * ), 90 ) + 9 THEN + COUNT( * ) + - 91 / - + ( - 65 ) + - 4 + - NULLIF ( - COUNT( - 65 ), + 64 / - 40 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2780
SELECT ALL + CASE 61 WHEN NULLIF ( + COUNT ( * ), 90 ) + 9 THEN + COUNT ( * ) + - 91 / - + ( - 65 ) + - 4 + - NULLIF ( - COUNT ( - 65 ), + 64 / - 40 ) END AS col0
----
NULL

query I rowsort
SELECT ALL 27 * 1 + 16
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-2782
SELECT ALL - MAX( DISTINCT - 68 ) * - - 75 - + 93 + - 30 AS col2
----
4977

skipif mysql # not compatible
query I rowsort label-2782
SELECT ALL - MAX ( DISTINCT - 68 ) * - - 75 - + 93 + - 30 AS col2
----
4977

onlyif mysql # aggregate syntax: 
query I rowsort label-2783
SELECT ALL + 81 * + 10 + + ( - + SUM( ALL + 11 ) ) + + 86 + + 73 + + 29 * + 77
----
3191

skipif mysql # not compatible
query I rowsort label-2783
SELECT ALL + 81 * + 10 + + ( - + SUM ( ALL + 11 ) ) + + 86 + + 73 + + 29 * + 77
----
3191

query II rowsort
SELECT + 82, + 47 * + + 17 * - + 46 + - + 29 * + - ( 53 ) - + 95 * + 2 col2
----
82
-35407

query I rowsort
SELECT - 7 * + 55 * - + 83 col0
----
31955

query I rowsort
SELECT 0 * - + 6 + + 80 AS col1
----
80

query I rowsort
SELECT + 77 * 38
----
2926

onlyif mysql # aggregate syntax: 
query II rowsort label-2788
SELECT - COUNT( * ), - 83 + - 54 col0
----
-1
-137

skipif mysql # not compatible
query II rowsort label-2788
SELECT - COUNT ( * ), - 83 + - 54 col0
----
-1
-137

query I rowsort
SELECT ALL + 87 * 8 - 37
----
659

query II rowsort
SELECT DISTINCT 98 col1, 11 - + 32 AS col1
----
98
-21

query II rowsort
SELECT 26 + 14 * + 51 * + - 8 col1, 85 + - - 48 AS col2
----
-5686
133

onlyif mysql # aggregate syntax: 
query I rowsort label-2792
SELECT 36 + 67 + - + MIN( DISTINCT - 69 ) col2
----
172

skipif mysql # not compatible
query I rowsort label-2792
SELECT 36 + 67 + - + MIN ( DISTINCT - 69 ) col2
----
172

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2793
SELECT ALL - 92 * + CAST( + AVG ( - 23 ) AS SIGNED ) AS col2
----
2116

skipif mysql # not compatible
query I rowsort label-2793
SELECT ALL - 92 * + CAST ( + AVG ( - 23 ) AS INTEGER ) AS col2
----
2116

query I rowsort
SELECT DISTINCT + ( - 11 ) - + 28 AS col0
----
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-2795
SELECT DISTINCT 9 AS col2, 31 * + + COUNT( * ) + + - COUNT( + 92 )
----
9
30

skipif mysql # not compatible
query II rowsort label-2795
SELECT DISTINCT 9 AS col2, 31 * + + COUNT ( * ) + + - COUNT ( + 92 )
----
9
30

query I rowsort
SELECT 52 + - 31 + + 32
----
53

onlyif mysql # aggregate syntax: 
query II rowsort label-2797
SELECT - 16, + MIN( DISTINCT + 51 ) col0
----
-16
51

skipif mysql # not compatible
query II rowsort label-2797
SELECT - 16, + MIN ( DISTINCT + 51 ) col0
----
-16
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2798
SELECT 61 + - CAST( NULL AS SIGNED ) / + + 97
----
NULL

skipif mysql # not compatible
query I rowsort label-2798
SELECT 61 + - CAST ( NULL AS INTEGER ) / + + 97
----
NULL

query I rowsort
SELECT 32 * 82 AS col2
----
2624

query I rowsort
SELECT 53 + + 93 - + - 53
----
199

query I rowsort
SELECT COALESCE ( + 7, - 24 ) AS col1
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2802
SELECT - CAST( NULL AS SIGNED ) + + + COUNT( * ) * - CAST( + 77 AS SIGNED ) * - 93 + 74 + SUM( 99 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2802
SELECT - CAST ( NULL AS INTEGER ) + + + COUNT ( * ) * - CAST ( + 77 AS INTEGER ) * - 93 + 74 + SUM ( 99 ) AS col0
----
NULL

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

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

query I rowsort
SELECT ALL - 33 * + 39 AS col0
----
-1287

query I rowsort
SELECT DISTINCT - + 7 + 12 + + + 85
----
90

query II rowsort
SELECT DISTINCT - - 63, + 52 AS col0
----
63
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2807
SELECT ALL - + NULLIF ( - COUNT( * ), 64 - CAST( + + 22 AS SIGNED ) * + + 81 / + - 8 ) * + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-2807
SELECT ALL - + NULLIF ( - COUNT ( * ), 64 - CAST ( + + 22 AS INTEGER ) * + + 81 / + - 8 ) * + COUNT ( * )
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2809
SELECT ALL - 40 + 64 * - + NULLIF ( - COUNT( * ), + 23 )
----
24

skipif mysql # not compatible
query I rowsort label-2809
SELECT ALL - 40 + 64 * - + NULLIF ( - COUNT ( * ), + 23 )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-2810
SELECT 29 * + + 80 * - 23 + - + COUNT( * )
----
-53361

skipif mysql # not compatible
query I rowsort label-2810
SELECT 29 * + + 80 * - 23 + - + COUNT ( * )
----
-53361

onlyif mysql # aggregate syntax: 
query II rowsort label-2811
SELECT 30 AS col0, 50 + + + COALESCE ( - - 55, NULLIF ( - + MAX( DISTINCT + - 75 ), - 67 ), + 22 * + 17 ) AS col1
----
30
105

skipif mysql # not compatible
query II rowsort label-2811
SELECT 30 AS col0, 50 + + + COALESCE ( - - 55, NULLIF ( - + MAX ( DISTINCT + - 75 ), - 67 ), + 22 * + 17 ) AS col1
----
30
105

onlyif mysql # aggregate syntax: 
query I rowsort label-2812
SELECT ALL 8 + + + 13 + COUNT( * ) * ( - - COUNT( * ) ) AS col2
----
22

skipif mysql # not compatible
query I rowsort label-2812
SELECT ALL 8 + + + 13 + COUNT ( * ) * ( - - COUNT ( * ) ) AS col2
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2813
SELECT 94 DIV + 52 + - MIN( ALL - 74 ) col1, 52 * + - ( - + NULLIF ( + 89, COUNT( * ) + + CAST( NULL AS SIGNED ) + 3 * + COUNT( * ) - - + NULLIF ( 16, + 26 ) ) ) col1
----
75
4628

skipif mysql # not compatible
query II rowsort label-2813
SELECT 94 / + 52 + - MIN ( ALL - 74 ) col1, 52 * + - ( - + NULLIF ( + 89, COUNT ( * ) + + CAST ( NULL AS INTEGER ) + 3 * + COUNT ( * ) - - + NULLIF ( 16, + 26 ) ) ) col1
----
75
4628

query I rowsort
SELECT 81 * + + 73
----
5913

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2815
SELECT ( - ( + CAST( - 7 AS SIGNED ) ) ) + NULLIF ( - + ( 67 ), + 97 ) col2
----
-60

skipif mysql # not compatible
query I rowsort label-2815
SELECT ( - ( + CAST ( - 7 AS INTEGER ) ) ) + NULLIF ( - + ( 67 ), + 97 ) col2
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-2816
SELECT DISTINCT + COUNT( * ) + + 65
----
66

skipif mysql # not compatible
query I rowsort label-2816
SELECT DISTINCT + COUNT ( * ) + + 65
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-2817
SELECT ALL 75 + - 66 DIV - 21
----
78

skipif mysql # not compatible
query I rowsort label-2817
SELECT ALL 75 + - 66 / - 21
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-2818
SELECT + COALESCE ( COUNT( * ), + 31 - + 53 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2818
SELECT + COALESCE ( COUNT ( * ), + 31 - + 53 ) AS col2
----
1

query I rowsort
SELECT DISTINCT + 66 + + 28 AS col1
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2820
SELECT ALL - CAST( - + 32 AS SIGNED ) - - - CAST( NULL AS SIGNED ) * ( - + SUM( - 52 ) ) + - + 26 * + + 90
----
NULL

skipif mysql # not compatible
query I rowsort label-2820
SELECT ALL - CAST ( - + 32 AS INTEGER ) - - - CAST ( NULL AS INTEGER ) * ( - + SUM ( - 52 ) ) + - + 26 * + + 90
----
NULL

query I rowsort
SELECT ALL 96 * + + 67 AS col2
----
6432

query II rowsort
SELECT ALL 48 - + - 44 AS col2, - 25 * - - 21 * 1
----
92
-525

query II rowsort
SELECT 10 * - + 85 AS col2, 83
----
-850
83

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2825
SELECT NULLIF ( 69, + COUNT( * ) ) * 97
----
6693

skipif mysql # not compatible
query I rowsort label-2825
SELECT NULLIF ( 69, + COUNT ( * ) ) * 97
----
6693

query II rowsort
SELECT DISTINCT + 6 * + - 74, 51 AS col1
----
-444
51

onlyif mysql # DIV for integer division: 
query II rowsort label-2827
SELECT 55 DIV + - 3 col2, 53
----
-18
53

skipif mysql # not compatible
query II rowsort label-2827
SELECT 55 / + - 3 col2, 53
----
-18
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2828
SELECT COALESCE ( + 98, - + CASE 46 WHEN + 31 * - + 13 * + 53 + 1 * + COUNT( DISTINCT + 56 ) + AVG ( - - 93 ) THEN NULL WHEN COUNT( - 24 ) THEN NULL ELSE + + 38 END, - 43 * MAX( + 62 ) DIV - COUNT( * ) - - 27 ) * + - COALESCE ( + 31, - - COUNT( * ) DIV + 47 DIV + 85 DIV + NULLIF ( - 65, - COUNT( * ) + + 76 ) ) + + 97 col1, MIN( - 9 )
----
-2941
-9

skipif mysql # not compatible
query II rowsort label-2828
SELECT COALESCE ( + 98, - + CASE 46 WHEN + 31 * - + 13 * + 53 + 1 * + COUNT ( DISTINCT + 56 ) + AVG ( - - 93 ) THEN NULL WHEN COUNT ( - 24 ) THEN NULL ELSE + + 38 END, - 43 * MAX ( + 62 ) / - COUNT ( * ) - - 27 ) * + - COALESCE ( + 31, - - COUNT ( * ) / + 47 / + 85 / + NULLIF ( - 65, - COUNT ( * ) + + 76 ) ) + + 97 col1, MIN ( - 9 )
----
-2941
-9

query I rowsort
SELECT 61 * + 89 * + - 67 * + 59
----
-21460837

onlyif mysql # aggregate syntax: 
query I rowsort label-2830
SELECT ALL - 61 * + 5 * - NULLIF ( - - 79, + 97 + + SUM( ALL - + 60 ) ) * + COUNT( * )
----
24095

skipif mysql # not compatible
query I rowsort label-2830
SELECT ALL - 61 * + 5 * - NULLIF ( - - 79, + 97 + + SUM ( ALL - + 60 ) ) * + COUNT ( * )
----
24095

onlyif mysql # aggregate syntax: 
query II rowsort label-2831
SELECT 42 - - COUNT( * ), 25 AS col1
----
43
25

skipif mysql # not compatible
query II rowsort label-2831
SELECT 42 - - COUNT ( * ), 25 AS col1
----
43
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2832
SELECT 68 DIV COALESCE ( - + 97, + COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-2832
SELECT 68 / COALESCE ( - + 97, + COUNT ( * ) )
----
0

query I rowsort
SELECT DISTINCT - - 71 + + - 4 col2
----
67

query I rowsort
SELECT ALL - 43 + - - 3 AS col0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-2835
SELECT DISTINCT + MIN( - 1 ) + - + 66 AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-2835
SELECT DISTINCT + MIN ( - 1 ) + - + 66 AS col0
----
-67

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2838
SELECT ALL + 28 * - MIN( + 84 ) AS col2
----
-2352

skipif mysql # not compatible
query I rowsort label-2838
SELECT ALL + 28 * - MIN ( + 84 ) AS col2
----
-2352

query I rowsort
SELECT ALL 37 * 34 * + + 90 + 61 AS col2
----
113281

onlyif mysql # aggregate syntax: 
query I rowsort label-2840
SELECT DISTINCT - CASE MIN( + 26 ) WHEN - 28 THEN 49 * 14 + + + 34 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2840
SELECT DISTINCT - CASE MIN ( + 26 ) WHEN - 28 THEN 49 * 14 + + + 34 END
----
NULL

query I rowsort
SELECT 47 * + 62 + - - 93
----
3007

query I rowsort
SELECT ALL - 54 * - 98 - 23
----
5269

query I rowsort
SELECT 91 * - 83 col0
----
-7553

onlyif mysql # aggregate syntax: 
query I rowsort label-2844
SELECT + MAX( COALESCE ( 0, 97 / + + 89 ) )
----
0

skipif mysql # not compatible
query I rowsort label-2844
SELECT + MAX ( COALESCE ( 0, 97 / + + 89 ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2845
SELECT DISTINCT - CAST( - 63 AS SIGNED ) AS col1
----
63

skipif mysql # not compatible
query I rowsort label-2845
SELECT DISTINCT - CAST ( - 63 AS INTEGER ) AS col1
----
63

onlyif mysql # aggregate syntax: 
query II rowsort label-2846
SELECT ( MIN( DISTINCT + + 87 ) ) + NULLIF ( - 92, + 93 * - 65 * + 24 ) * - NULLIF ( + + 55, - COALESCE ( + 67, - 30 ) ) AS col0, + 10 AS col2
----
5147
10

skipif mysql # not compatible
query II rowsort label-2846
SELECT ( MIN ( DISTINCT + + 87 ) ) + NULLIF ( - 92, + 93 * - 65 * + 24 ) * - NULLIF ( + + 55, - COALESCE ( + 67, - 30 ) ) AS col0, + 10 AS col2
----
5147
10

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2848
SELECT DISTINCT + SUM( ALL - - 93 )
----
93

skipif mysql # not compatible
query I rowsort label-2848
SELECT DISTINCT + SUM ( ALL - - 93 )
----
93

query I rowsort
SELECT ALL 94 * + 10 AS col1
----
940

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2851
SELECT + COALESCE ( + + 92, - CAST( + 58 AS SIGNED ), - + 17 - COUNT( + + NULLIF ( + 60, + CASE - 44 WHEN + + 6 / + 73 THEN + + 66 END * - - 83 * + 25 ) ) * + + 55 ) AS col1, 74 AS col1
----
92
74

skipif mysql # not compatible
query II rowsort label-2851
SELECT + COALESCE ( + + 92, - CAST ( + 58 AS INTEGER ), - + 17 - COUNT ( + + NULLIF ( + 60, + CASE - 44 WHEN + + 6 / + 73 THEN + + 66 END * - - 83 * + 25 ) ) * + + 55 ) AS col1, 74 AS col1
----
92
74

onlyif mysql # aggregate syntax: 
query I rowsort label-2852
SELECT 65 * 78 * + + 57 * MAX( ALL 43 ) * + 22 + + - 42
----
273384498

skipif mysql # not compatible
query I rowsort label-2852
SELECT 65 * 78 * + + 57 * MAX ( ALL 43 ) * + 22 + + - 42
----
273384498

onlyif mysql # aggregate syntax: 
query I rowsort label-2853
SELECT - COALESCE ( + + 47, + + COUNT( * ), 93 )
----
-47

skipif mysql # not compatible
query I rowsort label-2853
SELECT - COALESCE ( + + 47, + + COUNT ( * ), 93 )
----
-47

query I rowsort
SELECT + 64 * + 20
----
1280

onlyif mysql # aggregate syntax: 
query II rowsort label-2855
SELECT + SUM( ALL - 62 ) * + ( 45 ), + 46 AS col2
----
-2790
46

skipif mysql # not compatible
query II rowsort label-2855
SELECT + SUM ( ALL - 62 ) * + ( 45 ), + 46 AS col2
----
-2790
46

query I rowsort
SELECT + 58 + - 85
----
-27

query I rowsort
SELECT ALL 14 + + - 45 AS col1
----
-31

query II rowsort
SELECT ALL - 42 + + - 86 + - - 8 AS col2, 67
----
-120
67

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

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

query I rowsort
SELECT DISTINCT + 14 + - 94 AS col0
----
-80

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2862
SELECT - 94 + 47 + - ( + MAX( DISTINCT + 77 ) ) + + + 73 DIV + 73 AS col2
----
-123

skipif mysql # not compatible
query I rowsort label-2862
SELECT - 94 + 47 + - ( + MAX ( DISTINCT + 77 ) ) + + + 73 / + 73 AS col2
----
-123

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2863
SELECT + - COUNT( * ) * - - 37 + + 99 DIV + + 55 AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-2863
SELECT + - COUNT ( * ) * - - 37 + + 99 / + + 55 AS col0
----
-36

query I rowsort
SELECT - - 95 * + 41 AS col2
----
3895

onlyif mysql # aggregate syntax: 
query I rowsort label-2865
SELECT DISTINCT + CASE + - COUNT( * ) WHEN - 11 * 32 THEN NULL WHEN - ( - - 44 ) + - 14 * + COUNT( ALL - - 80 ) * - 1 + - MIN( DISTINCT - 4 ) * + COUNT( * ) THEN - COALESCE ( COUNT( DISTINCT ( + ( - NULLIF ( + 84, - 50 ) ) ) ), 3, - 87 ) ELSE - + 34 END * 33 AS col0
----
-1122

skipif mysql # not compatible
query I rowsort label-2865
SELECT DISTINCT + CASE + - COUNT ( * ) WHEN - 11 * 32 THEN NULL WHEN - ( - - 44 ) + - 14 * + COUNT ( ALL - - 80 ) * - 1 + - MIN ( DISTINCT - 4 ) * + COUNT ( * ) THEN - COALESCE ( COUNT ( DISTINCT ( + ( - NULLIF ( + 84, - 50 ) ) ) ), 3, - 87 ) ELSE - + 34 END * 33 AS col0
----
-1122

query I rowsort
SELECT DISTINCT + 99 - - 90 AS col2
----
189

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2867
SELECT DISTINCT + 88 * ( 30 ) * + SUM( DISTINCT 27 ) * 29 + + - COUNT( * ) DIV - - 79 * + 51 AS col2
----
2067120

skipif mysql # not compatible
query I rowsort label-2867
SELECT DISTINCT + 88 * ( 30 ) * + SUM ( DISTINCT 27 ) * 29 + + - COUNT ( * ) / - - 79 * + 51 AS col2
----
2067120

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

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

query II rowsort
SELECT ALL + - 66 col0, - 59 + - 50
----
-66
-109

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

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

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

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

skipif mysql # not compatible
query I rowsort label-2872
SELECT ALL + COUNT ( * ) / + - 7 - + + 14 AS col0
----
-14

query II rowsort
SELECT - 78 * - 38 AS col0, 51
----
2964
51

query I rowsort
SELECT - 84 * + + 93
----
-7812

onlyif mysql # DIV for integer division: 
query I rowsort label-2875
SELECT + COALESCE ( COALESCE ( 4, + + ( + 88 ) + 99 ), + ( - 57 ) ) DIV 37 + + ( 96 ) - + 31 AS col1
----
65

skipif mysql # not compatible
query I rowsort label-2875
SELECT + COALESCE ( COALESCE ( 4, + + ( + 88 ) + 99 ), + ( - 57 ) ) / 37 + + ( 96 ) - + 31 AS col1
----
65

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

skipif mysql # not compatible
query I rowsort label-2876
SELECT DISTINCT + ( - 13 ) * - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2877
SELECT DISTINCT + CASE 1 WHEN ( + 1 ) * 1 * + + 18 THEN - - 8 WHEN - 71 THEN NULL END * - MIN( - 76 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2877
SELECT DISTINCT + CASE 1 WHEN ( + 1 ) * 1 * + + 18 THEN - - 8 WHEN - 71 THEN NULL END * - MIN ( - 76 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2878
SELECT - COUNT( * ) DIV - 56 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2878
SELECT - COUNT ( * ) / - 56 AS col1
----
0

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

skipif mysql # not compatible
query I rowsort label-2879
SELECT ALL + 33 * - 0 / + 7 * COUNT ( * )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2880
SELECT DISTINCT + SUM( ALL + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2881
SELECT NULLIF ( + - SUM( + 23 ), + - 67 ) AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-2881
SELECT NULLIF ( + - SUM ( + 23 ), + - 67 ) AS col1
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-2882
SELECT + 70 + + 38 + MIN( DISTINCT + 53 ) - + - COALESCE ( 7, + 34, MIN( ALL 22 ) + 74 ) AS col2
----
168

skipif mysql # not compatible
query I rowsort label-2882
SELECT + 70 + + 38 + MIN ( DISTINCT + 53 ) - + - COALESCE ( 7, + 34, MIN ( ALL 22 ) + 74 ) AS col2
----
168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2883
SELECT COALESCE ( - 85, 84 * + ( - 7 ) - 81 + 5 * - CAST( NULL AS SIGNED ) * - COUNT( * ) * CAST( NULL AS SIGNED ) * + - ( - 10 ) ) AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-2883
SELECT COALESCE ( - 85, 84 * + ( - 7 ) - 81 + 5 * - CAST ( NULL AS INTEGER ) * - COUNT ( * ) * CAST ( NULL AS INTEGER ) * + - ( - 10 ) ) AS col2
----
-85

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2885
SELECT - 17 - 7 + - - 63 * + + MIN( + 27 ) + COALESCE ( - COUNT( * ), 57 * 6 ) + 49
----
1725

skipif mysql # not compatible
query I rowsort label-2885
SELECT - 17 - 7 + - - 63 * + + MIN ( + 27 ) + COALESCE ( - COUNT ( * ), 57 * 6 ) + 49
----
1725

onlyif mysql # DIV for integer division: 
query I rowsort label-2886
SELECT + 34 DIV - 8 AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-2886
SELECT + 34 / - 8 AS col0
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2887
SELECT DISTINCT COUNT( * ) * - 42 + - - 3 * CASE - + 20 WHEN 12 THEN + - 32 WHEN 75 * - COUNT( * ) + - 79 THEN 53 + + CASE - - COUNT( * ) WHEN 88 THEN + + CAST( NULL AS SIGNED ) - + - 65 - - 57 WHEN - 58 THEN NULL END * + 98 END * - - 64
----
NULL

skipif mysql # not compatible
query I rowsort label-2887
SELECT DISTINCT COUNT ( * ) * - 42 + - - 3 * CASE - + 20 WHEN 12 THEN + - 32 WHEN 75 * - COUNT ( * ) + - 79 THEN 53 + + CASE - - COUNT ( * ) WHEN 88 THEN + + CAST ( NULL AS INTEGER ) - + - 65 - - 57 WHEN - 58 THEN NULL END * + 98 END * - - 64
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2888
SELECT DISTINCT - 54 * - COUNT ( - + 39 ) AS col1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-2889
SELECT + CASE 51 WHEN - + 82 * MIN( - 52 ) + + + 4 THEN NULL WHEN MIN( - + 91 ) THEN + - ( + MAX( ALL - 49 ) ) ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2889
SELECT + CASE 51 WHEN - + 82 * MIN ( - 52 ) + + + 4 THEN NULL WHEN MIN ( - + 91 ) THEN + - ( + MAX ( ALL - 49 ) ) ELSE NULL END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2890
SELECT + - 16 * SUM( ALL 91 )
----
-1456

skipif mysql # not compatible
query I rowsort label-2890
SELECT + - 16 * SUM ( ALL 91 )
----
-1456

onlyif mysql # aggregate syntax: 
query I rowsort label-2891
SELECT + COUNT( * ) * - 55 * + 15 AS col1
----
-825

skipif mysql # not compatible
query I rowsort label-2891
SELECT + COUNT ( * ) * - 55 * + 15 AS col1
----
-825

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2892
SELECT COALESCE ( - 90, - 33 * - 60 * - COUNT( * ) * + - 85 - + COUNT( * ) + 64 - ( - + 6 ) * - 16, + SUM( DISTINCT + CAST( + 7 AS SIGNED ) ) ) AS col2, ( 52 ) + + CAST( - MAX( + CAST( + 73 AS SIGNED ) ) AS SIGNED ) AS col2
----
-90
-21

skipif mysql # not compatible
query II rowsort label-2892
SELECT COALESCE ( - 90, - 33 * - 60 * - COUNT ( * ) * + - 85 - + COUNT ( * ) + 64 - ( - + 6 ) * - 16, + SUM ( DISTINCT + CAST ( + 7 AS INTEGER ) ) ) AS col2, ( 52 ) + + CAST ( - MAX ( + CAST ( + 73 AS INTEGER ) ) AS INTEGER ) AS col2
----
-90
-21

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2894
SELECT + + 89 * + - 49 + 72 - + - 48 DIV - 60 + 77
----
-4212

skipif mysql # not compatible
query I rowsort label-2894
SELECT + + 89 * + - 49 + 72 - + - 48 / - 60 + 77
----
-4212

query I rowsort
SELECT DISTINCT - + 37 * - - 37 AS col0
----
-1369

query I rowsort
SELECT + + 45 + - 79
----
-34

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

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

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

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

query I rowsort
SELECT DISTINCT 86 * 38
----
3268

query II rowsort
SELECT - 5 * 97 * - COALESCE ( + - 57, + - 82 * - 37 ) * 35 + - 45 AS col2, 84 AS col2
----
-967620
84

query I rowsort
SELECT 46 * - ( + + 20 )
----
-920

onlyif mysql # aggregate syntax: 
query I rowsort label-2902
SELECT ALL + CASE - 70 WHEN - 47 THEN + - ( 54 ) WHEN 30 THEN + + 41 * - - 49 ELSE + COUNT( * ) END * + COALESCE ( + 14, + - 98 )
----
14

skipif mysql # not compatible
query I rowsort label-2902
SELECT ALL + CASE - 70 WHEN - 47 THEN + - ( 54 ) WHEN 30 THEN + + 41 * - - 49 ELSE + COUNT ( * ) END * + COALESCE ( + 14, + - 98 )
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-2903
SELECT 73 DIV 24 * - 18 + - - 20
----
-34

skipif mysql # not compatible
query I rowsort label-2903
SELECT 73 / 24 * - 18 + - - 20
----
-34

query I rowsort
SELECT ALL 37 * + 92 AS col1
----
3404

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

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

query I rowsort
SELECT ALL - NULLIF ( + + 50, + 99 )
----
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-2907
SELECT 36 * + 0 * - - 26 * - + 82 * 53 AS col2, + SUM( + - ( - 14 ) ) AS col1
----
0
14

skipif mysql # not compatible
query II rowsort label-2907
SELECT 36 * + 0 * - - 26 * - + 82 * 53 AS col2, + SUM ( + - ( - 14 ) ) AS col1
----
0
14

query I rowsort
SELECT ALL ( + ( + 57 ) ) * + - 55
----
-3135

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2910
SELECT ALL - CASE + ( + COUNT( * ) ) WHEN - ( + 12 ) THEN + + 6 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2910
SELECT ALL - CASE + ( + COUNT ( * ) ) WHEN - ( + 12 ) THEN + + 6 END AS col1
----
NULL

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

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

query I rowsort
SELECT 61 * + ( ( + - 75 ) )
----
-4575

query I rowsort
SELECT 65 + - 52 + ( + 95 )
----
108

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2915
SELECT 51 * + + CAST( - - ( - + 41 ) AS SIGNED ) * + + 65 * + 13 AS col0
----
-1766895

skipif mysql # not compatible
query I rowsort label-2915
SELECT 51 * + + CAST ( - - ( - + 41 ) AS INTEGER ) * + + 65 * + 13 AS col0
----
-1766895

query I rowsort
SELECT ALL - 75 * ( + 34 ) AS col1
----
-2550

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2918
SELECT DISTINCT + 48 + + COUNT( * )
----
49

skipif mysql # not compatible
query I rowsort label-2918
SELECT DISTINCT + 48 + + COUNT ( * )
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-2919
SELECT + 49 - - - MAX( + 97 ) + 31 + - - 78 AS col1
----
61

skipif mysql # not compatible
query I rowsort label-2919
SELECT + 49 - - - MAX ( + 97 ) + 31 + - - 78 AS col1
----
61

query I rowsort
SELECT DISTINCT + 14 + 7 + + COALESCE ( - + 15, - 39 - - + 59 )
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2921
SELECT ALL - 56 * + COALESCE ( CASE 36 WHEN - ( + 28 ) THEN NULL ELSE - 63 * - 47 * COUNT( * ) END, - - COALESCE ( + 87, + 87 + - 82 + - - 7 + - 76 ) * + COUNT( * ) + + CASE - CAST( CASE 87 WHEN + 47 + + 68 THEN - ( + 1 ) * - + 2 * 81 - 81 END AS SIGNED ) WHEN - + 24 THEN + 56 + COUNT( * ) ELSE NULL END * - 2 + - 74 * CASE 27 WHEN + + ( - 81 ) THEN + 22 END + + ( - 23 ) + + 49, - - ( + + ( 29 ) ) DIV - - 75 * - 75 + NULLIF ( + COUNT( * ) + 70, 14 ) ) * - 32 AS col1
----
5306112

skipif mysql # not compatible
query I rowsort label-2921
SELECT ALL - 56 * + COALESCE ( CASE 36 WHEN - ( + 28 ) THEN NULL ELSE - 63 * - 47 * COUNT ( * ) END, - - COALESCE ( + 87, + 87 + - 82 + - - 7 + - 76 ) * + COUNT ( * ) + + CASE - CAST ( CASE 87 WHEN + 47 + + 68 THEN - ( + 1 ) * - + 2 * 81 - 81 END AS INTEGER ) WHEN - + 24 THEN + 56 + COUNT ( * ) ELSE NULL END * - 2 + - 74 * CASE 27 WHEN + + ( - 81 ) THEN + 22 END + + ( - 23 ) + + 49, - - ( + + ( 29 ) ) / - - 75 * - 75 + NULLIF ( + COUNT ( * ) + 70, 14 ) ) * - 32 AS col1
----
5306112

query I rowsort
SELECT - 15 + 94 col2
----
79

query I rowsort
SELECT 25 * 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2924
SELECT - CASE - - ( + MAX( DISTINCT - - 48 ) ) WHEN - ( - 66 ) THEN NULL ELSE + + CASE + - 22 WHEN - 20 * - 3 THEN NULL ELSE - 72 * - 81 * 50 * - + 58 END * COUNT( * ) END * - + 4
----
-67651200

skipif mysql # not compatible
query I rowsort label-2924
SELECT - CASE - - ( + MAX ( DISTINCT - - 48 ) ) WHEN - ( - 66 ) THEN NULL ELSE + + CASE + - 22 WHEN - 20 * - 3 THEN NULL ELSE - 72 * - 81 * 50 * - + 58 END * COUNT ( * ) END * - + 4
----
-67651200

onlyif mysql # DIV for integer division: 
query I rowsort label-2925
SELECT ALL 59 DIV - 78
----
0

skipif mysql # not compatible
query I rowsort label-2925
SELECT ALL 59 / - 78
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2926
SELECT MAX( ALL + - 44 ) + + COUNT( * ) * - 62 AS col0
----
-106

skipif mysql # not compatible
query I rowsort label-2926
SELECT MAX ( ALL + - 44 ) + + COUNT ( * ) * - 62 AS col0
----
-106

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

skipif mysql # not compatible
query I rowsort label-2927
SELECT ALL - + CAST ( NULL AS REAL ) - 22
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2928
SELECT ALL + CAST( + + 79 AS SIGNED ) - ( - COUNT( * ) ) * - 66 AS col1
----
13

skipif mysql # not compatible
query I rowsort label-2928
SELECT ALL + CAST ( + + 79 AS INTEGER ) - ( - COUNT ( * ) ) * - 66 AS col1
----
13

query I rowsort
SELECT DISTINCT + 71 - 33 AS col1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-2930
SELECT 94 * + COUNT( * ) + 29 AS col1
----
123

skipif mysql # not compatible
query I rowsort label-2930
SELECT 94 * + COUNT ( * ) + 29 AS col1
----
123

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2931
SELECT ALL + 49 * ( - 77 ) - + SUM( - 58 ) + - CAST( 91 AS SIGNED )
----
-3806

skipif mysql # not compatible
query I rowsort label-2931
SELECT ALL + 49 * ( - 77 ) - + SUM ( - 58 ) + - CAST ( 91 AS INTEGER )
----
-3806

onlyif mysql # aggregate syntax: 
query I rowsort label-2932
SELECT ( + - COUNT( - - CASE + 30 WHEN - - 49 THEN + - 34 ELSE NULL END ) ) + - 38 AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-2932
SELECT ( + - COUNT ( - - CASE + 30 WHEN - - 49 THEN + - 34 ELSE NULL END ) ) + - 38 AS col1
----
-38

query I rowsort
SELECT ALL ( 21 ) * + ( + + 52 ) + + 62 AS col2
----
1154

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

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

query I rowsort
SELECT DISTINCT + 5 * - 7 AS col1
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-2936
SELECT - 5 + + - 24 * + MAX( ALL - 62 ) + + ( + 70 ) AS col0
----
1553

skipif mysql # not compatible
query I rowsort label-2936
SELECT - 5 + + - 24 * + MAX ( ALL - 62 ) + + ( + 70 ) AS col0
----
1553

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2937
SELECT ALL CASE + 49 WHEN + 38 * + 88 + + 5 THEN CASE WHEN NOT NULL = 9 THEN NULL ELSE 79 END * - 19 WHEN - - CAST( NULL AS SIGNED ) THEN NULL END * 41 + - - 15 * - 78
----
NULL

skipif mysql # not compatible
query I rowsort label-2937
SELECT ALL CASE + 49 WHEN + 38 * + 88 + + 5 THEN CASE WHEN NOT NULL = 9 THEN NULL ELSE 79 END * - 19 WHEN - - CAST ( NULL AS INTEGER ) THEN NULL END * 41 + - - 15 * - 78
----
NULL

query I rowsort
SELECT - 14 * - 78 * 52
----
56784

query I rowsort
SELECT 63 + - 83 + - 30
----
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-2940
SELECT DISTINCT 24 AS col2, NULLIF ( - 10, SUM( DISTINCT - - 47 ) ) AS col1
----
24
-10

skipif mysql # not compatible
query II rowsort label-2940
SELECT DISTINCT 24 AS col2, NULLIF ( - 10, SUM ( DISTINCT - - 47 ) ) AS col1
----
24
-10

query I rowsort
SELECT DISTINCT + 33 + - 89
----
-56

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

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

query II rowsort
SELECT + 34, - 87 AS col2
----
34
-87

query I rowsort
SELECT ALL 36 + 61 AS col2
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2945
SELECT COUNT( * ) * + 91 * - 67
----
-6097

skipif mysql # not compatible
query I rowsort label-2945
SELECT COUNT ( * ) * + 91 * - 67
----
-6097

query II rowsort
SELECT + 44 AS col1, ( + 55 )
----
44
55

query I rowsort
SELECT ALL 41 + 97
----
138

onlyif mysql # aggregate syntax: 
query II rowsort label-2948
SELECT ALL - COUNT( * ), - 83 col1
----
-1
-83

skipif mysql # not compatible
query II rowsort label-2948
SELECT ALL - COUNT ( * ), - 83 col1
----
-1
-83

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

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

query II rowsort
SELECT 5, + COALESCE ( - ( - 67 ), + ( - 49 ) + + ( + - 0 ) ) AS col2
----
5
67

query II rowsort
SELECT ALL - 51 AS col1, - 38 AS col0
----
-51
-38

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2953
SELECT + SUM( ALL + 18 ) AS col1
----
18

skipif mysql # not compatible
query I rowsort label-2953
SELECT + SUM ( ALL + 18 ) AS col1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-2954
SELECT DISTINCT - NULLIF ( + 23, + 11 + - - COUNT( * ) * - ( - + 96 ) * + 5 ) AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-2954
SELECT DISTINCT - NULLIF ( + 23, + 11 + - - COUNT ( * ) * - ( - + 96 ) * + 5 ) AS col2
----
-23

query I rowsort
SELECT - NULLIF ( ( + ( + + 29 ) ), - 54 ) AS col0
----
-29

query I rowsort
SELECT 40 + - 60
----
-20

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

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

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

query I rowsort
SELECT ALL - 67 * - 24 col0
----
1608

query II rowsort
SELECT 28 AS col2, ( - 27 ) AS col0
----
28
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2961
SELECT - 20 DIV SUM( + + 27 )
----
0

skipif mysql # not compatible
query I rowsort label-2961
SELECT - 20 / SUM ( + + 27 )
----
0

query I rowsort
SELECT + 90 * 56 * - + 44 col1
----
-221760

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2963
SELECT 72 AS col0, CAST( NULL AS SIGNED ) + - + COUNT( * )
----
72
NULL

skipif mysql # not compatible
query II rowsort label-2963
SELECT 72 AS col0, CAST ( NULL AS INTEGER ) + - + COUNT ( * )
----
72
NULL

query I rowsort
SELECT - - 37 - + 31 AS col0
----
6

query I rowsort
SELECT DISTINCT - 15 + 51 col1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-2966
SELECT ALL - ( - 97 ) + - 65 * - 35 * SUM( DISTINCT + 62 )
----
141147

skipif mysql # not compatible
query I rowsort label-2966
SELECT ALL - ( - 97 ) + - 65 * - 35 * SUM ( DISTINCT + 62 )
----
141147

onlyif mysql # aggregate syntax: 
query I rowsort label-2967
SELECT DISTINCT + MIN( - ( 67 ) ) + ( - 16 ) + ( + 52 ) + + 38
----
7

skipif mysql # not compatible
query I rowsort label-2967
SELECT DISTINCT + MIN ( - ( 67 ) ) + ( - 16 ) + ( + 52 ) + + 38
----
7

query I rowsort
SELECT - 48 + + 41
----
-7

query II rowsort
SELECT + 54 * 49 AS col2, + 50 AS col0
----
2646
50

query I rowsort
SELECT DISTINCT 77 + - - 72 - + 40 AS col0
----
109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2971
SELECT - COUNT( * ) + CAST( 87 AS SIGNED ) + + + 46 * + 33 * - 41 col0
----
-62152

skipif mysql # not compatible
query I rowsort label-2971
SELECT - COUNT ( * ) + CAST ( 87 AS INTEGER ) + + + 46 * + 33 * - 41 col0
----
-62152

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2972
SELECT + 18 + - - 0 + - + ( - CASE - 61 WHEN + 36 THEN 42 * + NULLIF ( + 9, + 86 ) * + - 74 + + - 78 - + 13 - + - 9 * - 50 * - 47 + - 49 + + CASE + 27 WHEN 34 THEN NULL WHEN 27 + - + 9 THEN - 69 * - 32 DIV 90 * - 57 END + - 89 + + 26 * COUNT( * ) + + 40 ELSE NULL END ), - 84 DIV - COUNT( * ) col0
----
NULL
84

skipif mysql # not compatible
query II rowsort label-2972
SELECT + 18 + - - 0 + - + ( - CASE - 61 WHEN + 36 THEN 42 * + NULLIF ( + 9, + 86 ) * + - 74 + + - 78 - + 13 - + - 9 * - 50 * - 47 + - 49 + + CASE + 27 WHEN 34 THEN NULL WHEN 27 + - + 9 THEN - 69 * - 32 / 90 * - 57 END + - 89 + + 26 * COUNT ( * ) + + 40 ELSE NULL END ), - 84 / - COUNT ( * ) col0
----
NULL
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2973
SELECT DISTINCT - COUNT( * ) * ( - - 55 )
----
-55

skipif mysql # not compatible
query I rowsort label-2973
SELECT DISTINCT - COUNT ( * ) * ( - - 55 )
----
-55

query I rowsort
SELECT ALL 83 * 86 * - 27 + 98 * + 14
----
-191354

query I rowsort
SELECT ALL ( - + 82 ) * - 61 - - - 45 + ( - + AVG ( CASE + - 80 WHEN - - ( - 73 ) / 65 + + + 87 + - 83 - 11 THEN 68 END ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2976
SELECT NULLIF ( CAST( NULL AS SIGNED ), + CASE - CAST( NULL AS SIGNED ) WHEN + ( + 32 ) + 27 THEN NULL ELSE + 6 + ( - - 10 ) + + 1 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-2976
SELECT NULLIF ( CAST ( NULL AS INTEGER ), + CASE - CAST ( NULL AS INTEGER ) WHEN + ( + 32 ) + 27 THEN NULL ELSE + 6 + ( - - 10 ) + + 1 END )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2977
SELECT ( 59 ) DIV 35 + + CAST( + COALESCE ( - + 53, + 10 ) AS SIGNED ) DIV + COUNT( * )
----
-52

skipif mysql # not compatible
query I rowsort label-2977
SELECT ( 59 ) / 35 + + CAST ( + COALESCE ( - + 53, + 10 ) AS INTEGER ) / + COUNT ( * )
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-2978
SELECT CASE - - 39 WHEN - COUNT( * ) THEN - 79 ELSE 70 END col0
----
70

skipif mysql # not compatible
query I rowsort label-2978
SELECT CASE - - 39 WHEN - COUNT ( * ) THEN - 79 ELSE 70 END col0
----
70

query I rowsort
SELECT + ( + 19 ) + 69 col0
----
88

query I rowsort
SELECT + 58 * + 61 AS col2
----
3538

query I rowsort
SELECT ALL 63 * 57
----
3591

onlyif mysql # aggregate syntax: 
query I rowsort label-2982
SELECT - NULLIF ( + COUNT( - + 25 ), 68 * - 64 - NULLIF ( + - 32, - 33 * + + COUNT( * ) ) * + 68 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2982
SELECT - NULLIF ( + COUNT ( - + 25 ), 68 * - 64 - NULLIF ( + - 32, - 33 * + + COUNT ( * ) ) * + 68 ) AS col1
----
-1

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

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

query I rowsort
SELECT + 11 * - + 38
----
-418

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2985
SELECT ALL CASE 61 WHEN 23 THEN NULL WHEN + 69 + - 65 * - 70 THEN - + 80 + + AVG ( - 26 ) + + - 36 - 65 ELSE NULL END * + + 50 * + COUNT( + CAST( + + 58 AS SIGNED ) ) * - 94 - + + 45 + ( + - 45 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2985
SELECT ALL CASE 61 WHEN 23 THEN NULL WHEN + 69 + - 65 * - 70 THEN - + 80 + + AVG ( - 26 ) + + - 36 - 65 ELSE NULL END * + + 50 * + COUNT ( + CAST ( + + 58 AS INTEGER ) ) * - 94 - + + 45 + ( + - 45 )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2987
SELECT + 91 * 38 + - 37 + - + COUNT( * )
----
3420

skipif mysql # not compatible
query I rowsort label-2987
SELECT + 91 * 38 + - 37 + - + COUNT ( * )
----
3420

onlyif mysql # aggregate syntax: 
query I rowsort label-2988
SELECT ALL - MAX( + 68 ) AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-2988
SELECT ALL - MAX ( + 68 ) AS col0
----
-68

query I rowsort
SELECT + 43 * + + 53 + - + 91
----
2188

query I rowsort
SELECT - - 77 * + 28 AS col1
----
2156

query I rowsort
SELECT DISTINCT 92 + + 4 AS col2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2992
SELECT - - 91 + + ( 72 ) * - COUNT( * ) * + 54 col2
----
-3797

skipif mysql # not compatible
query I rowsort label-2992
SELECT - - 91 + + ( 72 ) * - COUNT ( * ) * + 54 col2
----
-3797

query I rowsort
SELECT ALL 10 + 29 * + 66
----
1924

onlyif mysql # aggregate syntax: 
query I rowsort label-2994
SELECT DISTINCT - 28 / CASE + ( + ( 26 ) ) WHEN + ( 80 ) THEN NULL WHEN - 49 / - COUNT( * ) THEN NULL WHEN + 41 THEN 65 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2994
SELECT DISTINCT - 28 / CASE + ( + ( 26 ) ) WHEN + ( 80 ) THEN NULL WHEN - 49 / - COUNT ( * ) THEN NULL WHEN + 41 THEN 65 END AS col0
----
NULL

query I rowsort
SELECT - CASE + 42 WHEN - - 13 THEN + 46 END / - 69 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2996
SELECT - 63 + + MIN( + 57 ) + 24
----
18

skipif mysql # not compatible
query I rowsort label-2996
SELECT - 63 + + MIN ( + 57 ) + 24
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-2997
SELECT ALL + 95 * - + 99 * COUNT( * ) * - 42 AS col0
----
395010

skipif mysql # not compatible
query I rowsort label-2997
SELECT ALL + 95 * - + 99 * COUNT ( * ) * - 42 AS col0
----
395010

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2998
SELECT - CAST( NULL AS SIGNED ), + ( - 74 ) * - + COUNT( DISTINCT + ( + 34 ) ) * - CASE 26 WHEN - MIN( DISTINCT - 41 ) THEN COUNT( DISTINCT + 47 ) ELSE NULL END AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2998
SELECT - CAST ( NULL AS INTEGER ), + ( - 74 ) * - + COUNT ( DISTINCT + ( + 34 ) ) * - CASE 26 WHEN - MIN ( DISTINCT - 41 ) THEN COUNT ( DISTINCT + 47 ) ELSE NULL END AS col1
----
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2999
SELECT - 48 DIV - COUNT( * ) AS col2
----
48

skipif mysql # not compatible
query I rowsort label-2999
SELECT - 48 / - COUNT ( * ) AS col2
----
48

query I rowsort
SELECT ALL + 79 + - 4
----
75

query I rowsort
SELECT - 30 + + 97
----
67

onlyif mysql # aggregate syntax: 
query II rowsort label-3002
SELECT ALL - 15 + + + 4 * COALESCE ( - - MAX( DISTINCT + 65 ), + 29 - - 41 * - 48 + + CASE WHEN NOT NULL IS NULL THEN NULL WHEN - AVG ( - ( - + 56 ) ) IS NOT NULL THEN + - ( - 81 ) - + + ( + 49 ) - - + 7 END, - + 98 ) AS col2, - NULLIF ( + 98, - AVG ( 23 ) / 16 * + 11 ) + + COUNT( * ) - + + 24
----
245
-121

skipif mysql # not compatible
query II rowsort label-3002
SELECT ALL - 15 + + + 4 * COALESCE ( - - MAX ( DISTINCT + 65 ), + 29 - - 41 * - 48 + + CASE WHEN NOT NULL IS NULL THEN NULL WHEN - AVG ( - ( - + 56 ) ) IS NOT NULL THEN + - ( - 81 ) - + + ( + 49 ) - - + 7 END, - + 98 ) AS col2, - NULLIF ( + 98, - AVG ( 23 ) / 16 * + 11 ) + + COUNT ( * ) - + + 24
----
245
-121

query I rowsort
SELECT DISTINCT ( - + 70 ) col0
----
-70

query II rowsort
SELECT 52 AS col2, 94 * + + 47
----
52
4418

query I rowsort
SELECT DISTINCT - ( - 21 ) + 2 AS col0
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-3006
SELECT ALL + 43 DIV 52 DIV NULLIF ( + 50, - 62 * 27 + + + 46 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3006
SELECT ALL + 43 / 52 / NULLIF ( + 50, - 62 * 27 + + + 46 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3007
SELECT ALL + COUNT( * ) AS col2, + 65 * - 81
----
1
-5265

skipif mysql # not compatible
query II rowsort label-3007
SELECT ALL + COUNT ( * ) AS col2, + 65 * - 81
----
1
-5265

onlyif mysql # aggregate syntax: 
query II rowsort label-3008
SELECT + CASE - 70 WHEN - 62 THEN NULL WHEN - COUNT( * ) THEN 99 END * + 93 AS col2, - 87
----
NULL
-87

skipif mysql # not compatible
query II rowsort label-3008
SELECT + CASE - 70 WHEN - 62 THEN NULL WHEN - COUNT ( * ) THEN 99 END * + 93 AS col2, - 87
----
NULL
-87

query I rowsort
SELECT DISTINCT + 71 * - 23
----
-1633

onlyif mysql # DIV for integer division: 
query I rowsort label-3010
SELECT ALL 66 DIV - 63 - 29
----
-30

skipif mysql # not compatible
query I rowsort label-3010
SELECT ALL 66 / - 63 - 29
----
-30

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

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

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

query I rowsort
SELECT + 34 * + - 52 * - 53 * + 41
----
3841864

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3014
SELECT DISTINCT + 18 AS col1, - CAST( + - COUNT( * ) AS SIGNED )
----
18
1

skipif mysql # not compatible
query II rowsort label-3014
SELECT DISTINCT + 18 AS col1, - CAST ( + - COUNT ( * ) AS INTEGER )
----
18
1

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3016
SELECT - 5, - COUNT( * ) + + COALESCE ( - 33, 83 ) col0
----
-5
-34

skipif mysql # not compatible
query II rowsort label-3016
SELECT - 5, - COUNT ( * ) + + COALESCE ( - 33, 83 ) col0
----
-5
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-3017
SELECT DISTINCT + + SUM( ALL + 4 )
----
4

skipif mysql # not compatible
query I rowsort label-3017
SELECT DISTINCT + + SUM ( ALL + 4 )
----
4

query I rowsort
SELECT ALL + NULLIF ( - - 16, ( 93 ) + - 2 )
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3019
SELECT DISTINCT + 59 col1, CAST( NULL AS SIGNED )
----
59
NULL

skipif mysql # not compatible
query II rowsort label-3019
SELECT DISTINCT + 59 col1, CAST ( NULL AS INTEGER )
----
59
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3020
SELECT CAST( + - 69 AS SIGNED ) + - 84 AS col1
----
-153

skipif mysql # not compatible
query I rowsort label-3020
SELECT CAST ( + - 69 AS INTEGER ) + - 84 AS col1
----
-153

onlyif mysql # aggregate syntax: 
query II rowsort label-3021
SELECT ALL - 51 + - 61 + + SUM( - 6 ) col1, - 98 AS col0
----
-118
-98

skipif mysql # not compatible
query II rowsort label-3021
SELECT ALL - 51 + - 61 + + SUM ( - 6 ) col1, - 98 AS col0
----
-118
-98

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3023
SELECT ALL 41 + - COUNT( * ) + + - 61 * + 37 AS col0
----
-2217

skipif mysql # not compatible
query I rowsort label-3023
SELECT ALL 41 + - COUNT ( * ) + + - 61 * + 37 AS col0
----
-2217

query I rowsort
SELECT ALL 81 + - + 57
----
24

query I rowsort
SELECT - 24 * + 58 AS col0
----
-1392

onlyif mysql # aggregate syntax: 
query II rowsort label-3026
SELECT ALL + ( 22 ) + COUNT( * ) + - 34 + + 96 * - 75, 39 + - ( + ( COUNT( * ) ) ) AS col0
----
-7211
38

skipif mysql # not compatible
query II rowsort label-3026
SELECT ALL + ( 22 ) + COUNT ( * ) + - 34 + + 96 * - 75, 39 + - ( + ( COUNT ( * ) ) ) AS col0
----
-7211
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3027
SELECT DISTINCT - 99 * - 11 * + ( + 73 ) * - COUNT( * ) - + + CAST( + COUNT( * ) AS SIGNED )
----
-79498

skipif mysql # not compatible
query I rowsort label-3027
SELECT DISTINCT - 99 * - 11 * + ( + 73 ) * - COUNT ( * ) - + + CAST ( + COUNT ( * ) AS INTEGER )
----
-79498

query II rowsort
SELECT ALL - 35 + 17 + 91 * 54, 11 col1
----
4896
11

query I rowsort
SELECT DISTINCT ( + - NULLIF ( 69, + 97 / 59 * + 34 ) ) AS col2
----
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-3030
SELECT ALL 60 + 68 * + COUNT( DISTINCT - 69 ) * 63, - 48 AS col2
----
4344
-48

skipif mysql # not compatible
query II rowsort label-3030
SELECT ALL 60 + 68 * + COUNT ( DISTINCT - 69 ) * 63, - 48 AS col2
----
4344
-48

query II rowsort
SELECT 81 * + 63 AS col1, + 58 AS col0
----
5103
58

query I rowsort
SELECT 55 - + 78 + + 19
----
-4

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3034
SELECT ALL + 57 * - 91 * - COALESCE ( - 15, + + COUNT( 91 ) ) * - - 67 + + 73 AS col0
----
-5212862

skipif mysql # not compatible
query I rowsort label-3034
SELECT ALL + 57 * - 91 * - COALESCE ( - 15, + + COUNT ( 91 ) ) * - - 67 + + 73 AS col0
----
-5212862

query I rowsort
SELECT 71 * - 43
----
-3053

onlyif mysql # DIV for integer division: 
query I rowsort label-3036
SELECT DISTINCT 18 DIV + 72 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3036
SELECT DISTINCT 18 / + 72 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3037
SELECT ALL - MIN( ALL - 72 ) - + + 21 AS col0
----
51

skipif mysql # not compatible
query I rowsort label-3037
SELECT ALL - MIN ( ALL - 72 ) - + + 21 AS col0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3038
SELECT 80 - + 10 * CASE + NULLIF ( + 56, 95 * - + 70 * - - CAST( NULL AS SIGNED ) ) WHEN - ( + 43 ) THEN - 37 * 53 END + 9
----
NULL

skipif mysql # not compatible
query I rowsort label-3038
SELECT 80 - + 10 * CASE + NULLIF ( + 56, 95 * - + 70 * - - CAST ( NULL AS INTEGER ) ) WHEN - ( + 43 ) THEN - 37 * 53 END + 9
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3039
SELECT CAST( 23 AS SIGNED ) + + 16 - + ( - 33 ) + - + 28 - + 73 DIV + - 17
----
48

skipif mysql # not compatible
query I rowsort label-3039
SELECT CAST ( 23 AS INTEGER ) + + 16 - + ( - 33 ) + - + 28 - + 73 / + - 17
----
48

query I rowsort
SELECT 90 - - ( + 31 ) - - 44 + - 38 * 80 + 66 col0
----
-2809

query I rowsort
SELECT 99 - - - 65 AS col0
----
34

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

query I rowsort
SELECT 80 + 19 - + 17 AS col1
----
82

query I rowsort
SELECT 86 * - 93 AS col1
----
-7998

query I rowsort
SELECT 89 + + 9 AS col1
----
98

query II rowsort
SELECT ALL - 57 * - 72 AS col0, 11 * - 72 * - 18 * + 55 col0
----
4104
784080

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3047
SELECT 22 DIV + - 61 - + COUNT( * ) + 66 AS col0
----
65

skipif mysql # not compatible
query I rowsort label-3047
SELECT 22 / + - 61 - + COUNT ( * ) + 66 AS col0
----
65

query II rowsort
SELECT ALL - ( - - 51 ) AS col0, - 44 col0
----
-51
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-3049
SELECT 2 DIV + 37 - - - 81 + 41 * 9
----
288

skipif mysql # not compatible
query I rowsort label-3049
SELECT 2 / + 37 - - - 81 + 41 * 9
----
288

onlyif mysql # aggregate syntax: 
query I rowsort label-3050
SELECT + NULLIF ( - NULLIF ( COUNT( ALL - 79 ), + 19 ), - 1 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3050
SELECT + NULLIF ( - NULLIF ( COUNT ( ALL - 79 ), + 19 ), - 1 ) col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3051
SELECT - 82 + 52 - + 8 DIV + - 27 AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-3051
SELECT - 82 + 52 - + 8 / + - 27 AS col1
----
-30

query I rowsort
SELECT DISTINCT + 88 * + - 74 * 17
----
-110704

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3053
SELECT ALL NULLIF ( COUNT( * ), ( 10 ) - + 76 + - 30 + 75 + + AVG ( ALL + 11 ) * - 78 / - 90 ) + CAST( ( 67 ) AS SIGNED ) * 94 AS col0
----
6299

skipif mysql # not compatible
query I rowsort label-3053
SELECT ALL NULLIF ( COUNT ( * ), ( 10 ) - + 76 + - 30 + 75 + + AVG ( ALL + 11 ) * - 78 / - 90 ) + CAST ( ( 67 ) AS INTEGER ) * 94 AS col0
----
6299

query I rowsort
SELECT - 88 * - - 16 * + 6 + - 61 + + + 46 * + 12 AS col1
----
-7957

onlyif mysql # aggregate syntax: 
query II rowsort label-3055
SELECT ALL - + 80 + - - COALESCE ( NULLIF ( - 38, + 97 ), 5, - 40 ) AS col2, 45 + COUNT( - - 82 ) + + + 19 AS col0
----
-118
65

skipif mysql # not compatible
query II rowsort label-3055
SELECT ALL - + 80 + - - COALESCE ( NULLIF ( - 38, + 97 ), 5, - 40 ) AS col2, 45 + COUNT ( - - 82 ) + + + 19 AS col0
----
-118
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3056
SELECT + 9 * - + COALESCE ( 11, COUNT( 5 ) DIV + 19 DIV 58 DIV + CASE - + COUNT( * ) WHEN 96 + - NULLIF ( - COALESCE ( - ( + 38 ), SUM( - + 73 ) * ( + + 6 ) + - 80 + + 44 ), 68 * - 14 * 60 ) THEN NULL WHEN - 83 THEN + ( - 13 ) END ) AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-3056
SELECT + 9 * - + COALESCE ( 11, COUNT ( 5 ) / + 19 / 58 / + CASE - + COUNT ( * ) WHEN 96 + - NULLIF ( - COALESCE ( - ( + 38 ), SUM ( - + 73 ) * ( + + 6 ) + - 80 + + 44 ), 68 * - 14 * 60 ) THEN NULL WHEN - 83 THEN + ( - 13 ) END ) AS col2
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3057
SELECT DISTINCT + - 67 * + 65 / + CASE WHEN NOT 18 NOT BETWEEN - 39 AND + - MAX( 89 ) + 17 + + + MAX( - - 21 ) THEN - - 81 / - 7 - + MAX( ALL - 75 ) + COUNT( * ) * + 54 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3057
SELECT DISTINCT + - 67 * + 65 / + CASE WHEN NOT 18 NOT BETWEEN - 39 AND + - MAX ( 89 ) + 17 + + + MAX ( - - 21 ) THEN - - 81 / - 7 - + MAX ( ALL - 75 ) + COUNT ( * ) * + 54 END
----
NULL

query I rowsort
SELECT + 31 - 18 * 57
----
-995

onlyif mysql # aggregate syntax: 
query I rowsort label-3059
SELECT 94 + - 25 * - 3 + + CASE + + 4 WHEN + + 34 + - COUNT( * ) + - - 27 * + + 82 THEN + 13 * - + 16 ELSE NULL END - - 39 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3059
SELECT 94 + - 25 * - 3 + + CASE + + 4 WHEN + + 34 + - COUNT ( * ) + - - 27 * + + 82 THEN + 13 * - + 16 ELSE NULL END - - 39 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3060
SELECT ALL 15 + + - ( - - 10 ) + - + 10 DIV + 15 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-3060
SELECT ALL 15 + + - ( - - 10 ) + - + 10 / + 15 AS col0
----
5

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3061
SELECT + 12 * - - 46 * - 66 + CAST( - NULLIF ( + + 55, 58 * + - CAST( NULL AS DECIMAL ) ) AS SIGNED ) AS col1
----
-36487

skipif mysql # not compatible
query I rowsort label-3061
SELECT + 12 * - - 46 * - 66 + CAST ( - NULLIF ( + + 55, 58 * + - CAST ( NULL AS REAL ) ) AS INTEGER ) AS col1
----
-36487

query I rowsort
SELECT ALL 28 + 6 AS col1
----
34

query I rowsort
SELECT 43 * + 46 AS col2
----
1978

query I rowsort
SELECT 81 * - 85
----
-6885

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3065
SELECT DISTINCT - ( - 83 ) / + 26 - - CAST( NULL AS SIGNED ) + 19 - + + MIN( - 18 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3065
SELECT DISTINCT - ( - 83 ) / + 26 - - CAST ( NULL AS INTEGER ) + 19 - + + MIN ( - 18 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3066
SELECT ALL - CAST( + + 50 AS SIGNED ) * - NULLIF ( 8, + - 5 - COUNT( * ) ) + - COALESCE ( + 57, 35 + COUNT( * ) * + 37 )
----
343

skipif mysql # not compatible
query I rowsort label-3066
SELECT ALL - CAST ( + + 50 AS INTEGER ) * - NULLIF ( 8, + - 5 - COUNT ( * ) ) + - COALESCE ( + 57, 35 + COUNT ( * ) * + 37 )
----
343

query I rowsort
SELECT ( - 75 ) * - - 79 + + - 14 + 55 - + 49
----
-5933

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

skipif mysql # not compatible
query I rowsort label-3068
SELECT ALL 7 - + - COUNT ( * ) + - - COUNT ( * ) AS col2
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-3069
SELECT 71 DIV 65 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3069
SELECT 71 / 65 AS col0
----
1

query I rowsort
SELECT DISTINCT 18 * + 51
----
918

query I rowsort
SELECT DISTINCT 12 * - - 19 AS col2
----
228

query I rowsort
SELECT ALL 71 - + 16
----
55

query I rowsort
SELECT 6 * + - ( - - 90 ) * + 0
----
0

query I rowsort
SELECT 9 + - ( - - 22 )
----
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-3075
SELECT ALL 3 AS col0, + 62 * + 68 + + 9 + 22 * + 77 * + - 41 + - NULLIF ( - + 81, COUNT( * ) ) * + 0 * - COUNT( * )
----
3
-65229

skipif mysql # not compatible
query II rowsort label-3075
SELECT ALL 3 AS col0, + 62 * + 68 + + 9 + 22 * + 77 * + - 41 + - NULLIF ( - + 81, COUNT ( * ) ) * + 0 * - COUNT ( * )
----
3
-65229

query II rowsort
SELECT DISTINCT 54 AS col0, 89 + 40 - 36 * 9
----
54
-195

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3077
SELECT - CASE - COALESCE ( - 9, - 54, NULLIF ( + 97, - 53 ) ) WHEN - + COUNT( * ) * + 37 + - 31 THEN NULL WHEN CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) + - - 99 THEN NULL WHEN + 44 THEN + 66 * - - COALESCE ( - - MAX( ALL + + 36 ), - COUNT( * ) ) * - 32 + - - 77 ELSE + 15 END
----
-15

skipif mysql # not compatible
query I rowsort label-3077
SELECT - CASE - COALESCE ( - 9, - 54, NULLIF ( + 97, - 53 ) ) WHEN - + COUNT ( * ) * + 37 + - 31 THEN NULL WHEN CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) + - - 99 THEN NULL WHEN + 44 THEN + 66 * - - COALESCE ( - - MAX ( ALL + + 36 ), - COUNT ( * ) ) * - 32 + - - 77 ELSE + 15 END
----
-15

query I rowsort
SELECT ALL 63 + + 80
----
143

onlyif mysql # DIV for integer division: 
query I rowsort label-3079
SELECT + 88 DIV - 74 - - 89 AS col0
----
88

skipif mysql # not compatible
query I rowsort label-3079
SELECT + 88 / - 74 - - 89 AS col0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3080
SELECT ALL + MIN( ALL - 34 ) AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-3080
SELECT ALL + MIN ( ALL - 34 ) AS col2
----
-34

query I rowsort
SELECT - 69 + 14
----
-55

query I rowsort
SELECT - 27 * 29
----
-783

onlyif mysql # aggregate syntax: 
query I rowsort label-3083
SELECT ALL + ( - SUM( 63 ) ) AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-3083
SELECT ALL + ( - SUM ( 63 ) ) AS col0
----
-63

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3085
SELECT DISTINCT - COUNT( * ) * 40 + 55 * - 44 AS col0
----
-2460

skipif mysql # not compatible
query I rowsort label-3085
SELECT DISTINCT - COUNT ( * ) * 40 + 55 * - 44 AS col0
----
-2460

onlyif mysql # aggregate syntax: 
query I rowsort label-3086
SELECT DISTINCT - 47 * - 6 + COUNT( * ) AS col2
----
283

skipif mysql # not compatible
query I rowsort label-3086
SELECT DISTINCT - 47 * - 6 + COUNT ( * ) AS col2
----
283

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

skipif mysql # not compatible
query I rowsort label-3087
SELECT DISTINCT + MIN ( 65 ) AS col1
----
65

query I rowsort
SELECT DISTINCT - 37 * 41 AS col0
----
-1517

query I rowsort
SELECT - 61 * + 20
----
-1220

query I rowsort
SELECT - 79 + 13 AS col0
----
-66

query I rowsort
SELECT DISTINCT + 20 * 52 - - 33 AS col0
----
1073

query I rowsort
SELECT - 55 + - 73
----
-128

onlyif mysql # aggregate syntax: 
query I rowsort label-3093
SELECT ALL + NULLIF ( - 82, - COUNT( * ) * 75 ) col1
----
-82

skipif mysql # not compatible
query I rowsort label-3093
SELECT ALL + NULLIF ( - 82, - COUNT ( * ) * 75 ) col1
----
-82

query I rowsort
SELECT DISTINCT - 74 * - 16
----
1184

query I rowsort
SELECT ALL + NULLIF ( + 84, - 38 ) col0
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3096
SELECT + NULLIF ( - 73, - 8 ) + CAST( 0 + 12 * MIN( ALL - 87 ) AS SIGNED ) AS col0
----
-1117

skipif mysql # not compatible
query I rowsort label-3096
SELECT + NULLIF ( - 73, - 8 ) + CAST ( 0 + 12 * MIN ( ALL - 87 ) AS INTEGER ) AS col0
----
-1117

query I rowsort
SELECT ALL - 56 * + 83 AS col2
----
-4648

query I rowsort
SELECT DISTINCT + ( - 11 ) col0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-3099
SELECT ALL + CASE COUNT( * ) WHEN + 53 + - COUNT( * ) THEN NULL WHEN 75 / CASE 62 WHEN - ( - COALESCE ( - 63, - COUNT( * ) ) ) - + COUNT( * ) THEN COALESCE ( COUNT( 17 ), COUNT( * ), CASE 25 WHEN - 25 THEN AVG ( DISTINCT 78 ) END ) + MAX( DISTINCT 6 ) END + 87 THEN NULLIF ( CASE 65 WHEN 12 THEN NULL WHEN 46 * - 45 THEN + 27 ELSE NULL END, 34 * 28 ) * - ( - 18 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3099
SELECT ALL + CASE COUNT ( * ) WHEN + 53 + - COUNT ( * ) THEN NULL WHEN 75 / CASE 62 WHEN - ( - COALESCE ( - 63, - COUNT ( * ) ) ) - + COUNT ( * ) THEN COALESCE ( COUNT ( 17 ), COUNT ( * ), CASE 25 WHEN - 25 THEN AVG ( DISTINCT 78 ) END ) + MAX ( DISTINCT 6 ) END + 87 THEN NULLIF ( CASE 65 WHEN 12 THEN NULL WHEN 46 * - 45 THEN + 27 ELSE NULL END, 34 * 28 ) * - ( - 18 ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3100
SELECT DISTINCT CASE + COUNT( * ) WHEN 75 - COALESCE ( 46 - - MAX( + ( + 45 ) - + 34 ) * 7, + 44 * + MAX( 12 ) + - COALESCE ( + 90, + 48 ), 73 + 46 * - 69 ) THEN + CAST( NULL AS SIGNED ) ELSE 59 * + COUNT( DISTINCT 15 ) END AS col2
----
59

skipif mysql # not compatible
query I rowsort label-3100
SELECT DISTINCT CASE + COUNT ( * ) WHEN 75 - COALESCE ( 46 - - MAX ( + ( + 45 ) - + 34 ) * 7, + 44 * + MAX ( 12 ) + - COALESCE ( + 90, + 48 ), 73 + 46 * - 69 ) THEN + CAST ( NULL AS INTEGER ) ELSE 59 * + COUNT ( DISTINCT 15 ) END AS col2
----
59

query I rowsort
SELECT ALL NULLIF ( 18, - 62 )
----
18

query I rowsort
SELECT - 36 * - 3 AS col0
----
108

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3105
SELECT - CAST( NULL AS SIGNED ) - 67 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3105
SELECT - CAST ( NULL AS INTEGER ) - 67 AS col0
----
NULL

query I rowsort
SELECT ALL 0 + - 83 * CASE WHEN NOT 5 + + 42 * - 87 <> ( - 12 ) THEN NULL WHEN 73 + + 96 NOT IN ( 9 ) THEN - 82 END col1
----
6806

onlyif mysql # DIV for integer division: 
query I rowsort label-3107
SELECT ALL - 22 DIV + 95
----
0

skipif mysql # not compatible
query I rowsort label-3107
SELECT ALL - 22 / + 95
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3108
SELECT ALL COUNT( * ) * + CASE WHEN - 6 * 1 IS NULL THEN + MIN( DISTINCT + 17 ) * MAX( 79 + + CAST( NULL AS SIGNED ) ) ELSE - CAST( NULL AS SIGNED ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3108
SELECT ALL COUNT ( * ) * + CASE WHEN - 6 * 1 IS NULL THEN + MIN ( DISTINCT + 17 ) * MAX ( 79 + + CAST ( NULL AS INTEGER ) ) ELSE - CAST ( NULL AS INTEGER ) END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3109
SELECT + NULLIF ( + 80, + 85 * + CAST( NULL AS SIGNED ) + - 44 ) DIV MAX( + 44 )
----
1

skipif mysql # not compatible
query I rowsort label-3109
SELECT + NULLIF ( + 80, + 85 * + CAST ( NULL AS INTEGER ) + - 44 ) / MAX ( + 44 )
----
1

query I rowsort
SELECT DISTINCT + 13 + - ( 32 )
----
-19

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3111
SELECT ALL 64 + 88 DIV + CAST( - 50 * - 33 AS SIGNED )
----
64

skipif mysql # not compatible
query I rowsort label-3111
SELECT ALL 64 + 88 / + CAST ( - 50 * - 33 AS INTEGER )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3112
SELECT DISTINCT 22 + - MIN( DISTINCT 41 )
----
-19

skipif mysql # not compatible
query I rowsort label-3112
SELECT DISTINCT 22 + - MIN ( DISTINCT 41 )
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3113
SELECT - CASE - 85 WHEN 23 THEN 20 WHEN 98 THEN + 9 * - MAX( ( 63 ) ) ELSE MIN( ALL + 92 ) END DIV - 13 AS col0
----
7

skipif mysql # not compatible
query I rowsort label-3113
SELECT - CASE - 85 WHEN 23 THEN 20 WHEN 98 THEN + 9 * - MAX ( ( 63 ) ) ELSE MIN ( ALL + 92 ) END / - 13 AS col0
----
7

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3115
SELECT + NULLIF ( + COUNT( * ), + 98 )
----
1

skipif mysql # not compatible
query I rowsort label-3115
SELECT + NULLIF ( + COUNT ( * ), + 98 )
----
1

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

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

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

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

query I rowsort
SELECT - 15 * 45
----
-675

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

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

query I rowsort
SELECT + - 99 + NULLIF ( - 1, 1 )
----
-100

onlyif mysql # DIV for integer division: 
query I rowsort label-3121
SELECT ALL + - NULLIF ( 52, 93 + - 9 ) DIV 47 + 69 * - 72
----
-4969

skipif mysql # not compatible
query I rowsort label-3121
SELECT ALL + - NULLIF ( 52, 93 + - 9 ) / 47 + 69 * - 72
----
-4969

onlyif mysql # aggregate syntax: 
query I rowsort label-3122
SELECT + + NULLIF ( 44, 35 * - COUNT( ALL COALESCE ( + 40, + 41 ) * - 35 ) ) + - 30 AS col0
----
14

skipif mysql # not compatible
query I rowsort label-3122
SELECT + + NULLIF ( 44, 35 * - COUNT ( ALL COALESCE ( + 40, + 41 ) * - 35 ) ) + - 30 AS col0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3123
SELECT 50 * - 37 + NULLIF ( 50, + COALESCE ( 25, 12 * 96 + 39 ) * 5 ) * COUNT( DISTINCT 83 )
----
-1800

skipif mysql # not compatible
query I rowsort label-3123
SELECT 50 * - 37 + NULLIF ( 50, + COALESCE ( 25, 12 * 96 + 39 ) * 5 ) * COUNT ( DISTINCT 83 )
----
-1800

query I rowsort
SELECT ALL - - 42 * 97
----
4074

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

query I rowsort
SELECT ALL - 22 * 16 AS col2
----
-352

onlyif mysql # DIV for integer division: 
query I rowsort label-3127
SELECT DISTINCT - - 49 DIV - 31 - - 0
----
-1

skipif mysql # not compatible
query I rowsort label-3127
SELECT DISTINCT - - 49 / - 31 - - 0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3128
SELECT - - 30 DIV - 63 + - 63
----
-63

skipif mysql # not compatible
query I rowsort label-3128
SELECT - - 30 / - 63 + - 63
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3129
SELECT ALL CAST( AVG ( 50 ) AS DECIMAL ) * CASE AVG ( ALL 32 ) WHEN + CAST( - COUNT( * ) AS SIGNED ) THEN COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3129
SELECT ALL CAST ( AVG ( 50 ) AS REAL ) * CASE AVG ( ALL 32 ) WHEN + CAST ( - COUNT ( * ) AS INTEGER ) THEN COUNT ( * ) END AS col1
----
NULL

query I rowsort
SELECT + - 73 * 24 AS col0
----
-1752

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

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

query I rowsort
SELECT ALL + + COALESCE ( 53, 78 + + 63 ) AS col2
----
53

query I rowsort
SELECT + + 81 + 9 AS col2
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-3134
SELECT + - 23 DIV - 29 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3134
SELECT + - 23 / - 29 AS col2
----
0

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

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

query I rowsort
SELECT + + 36 * 62 + 29 * 22 AS col2
----
2870

query I rowsort
SELECT ALL + + NULLIF ( 18, - 66 ) AS col1
----
18

query I rowsort
SELECT - 96 + - 14
----
-110

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3139
SELECT ALL + 98 DIV + SUM( DISTINCT - 63 )
----
-1

skipif mysql # not compatible
query I rowsort label-3139
SELECT ALL + 98 / + SUM ( DISTINCT - 63 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3140
SELECT - CASE 40 WHEN 82 THEN COUNT( * ) END * - 21 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3140
SELECT - CASE 40 WHEN 82 THEN COUNT ( * ) END * - 21 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3141
SELECT ALL + 25 DIV 68 * - 58 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3141
SELECT ALL + 25 / 68 * - 58 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3142
SELECT ALL + MAX( ALL - - 40 ) * - 28 AS col0
----
-1120

skipif mysql # not compatible
query I rowsort label-3142
SELECT ALL + MAX ( ALL - - 40 ) * - 28 AS col0
----
-1120

onlyif mysql # DIV for integer division: 
query I rowsort label-3143
SELECT DISTINCT + 16 DIV + - 69 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3143
SELECT DISTINCT + 16 / + - 69 AS col1
----
0

query I rowsort
SELECT ALL + NULLIF ( + 2, - 88 ) AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3145
SELECT COALESCE ( 73, + COUNT( * ), COUNT( * ) * - 0, 79 ) col1
----
73

skipif mysql # not compatible
query I rowsort label-3145
SELECT COALESCE ( 73, + COUNT ( * ), COUNT ( * ) * - 0, 79 ) col1
----
73

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

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

query I rowsort
SELECT - 12 * + + 5
----
-60

query I rowsort
SELECT - 18 * + - 35
----
630

onlyif mysql # DIV for integer division: 
query I rowsort label-3149
SELECT ALL 81 * - 27 + + 71 DIV 50 AS col2
----
-2186

skipif mysql # not compatible
query I rowsort label-3149
SELECT ALL 81 * - 27 + + 71 / 50 AS col2
----
-2186

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3150
SELECT - COUNT( * ) + + 17 DIV - 36
----
-1

skipif mysql # not compatible
query I rowsort label-3150
SELECT - COUNT ( * ) + + 17 / - 36
----
-1

query I rowsort
SELECT ALL NULLIF ( + 41, + 92 )
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3152
SELECT ALL CASE CAST( NULL AS SIGNED ) WHEN - 75 THEN COUNT( * ) WHEN MAX( ALL - 36 ) THEN - 67 WHEN - 34 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3152
SELECT ALL CASE CAST ( NULL AS INTEGER ) WHEN - 75 THEN COUNT ( * ) WHEN MAX ( ALL - 36 ) THEN - 67 WHEN - 34 THEN NULL END AS col0
----
NULL

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

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

query I rowsort
SELECT DISTINCT 49 * + 82 + + 90 * 2
----
4198

onlyif mysql # aggregate syntax: 
query I rowsort label-3155
SELECT DISTINCT COUNT( * ) + - 58 * 41 col2
----
-2377

skipif mysql # not compatible
query I rowsort label-3155
SELECT DISTINCT COUNT ( * ) + - 58 * 41 col2
----
-2377

query I rowsort
SELECT ALL 70 + + 86 AS col0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-3157
SELECT ALL + SUM( DISTINCT + - 29 ) + 56 * 32 col1
----
1763

skipif mysql # not compatible
query I rowsort label-3157
SELECT ALL + SUM ( DISTINCT + - 29 ) + 56 * 32 col1
----
1763

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

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

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

skipif mysql # not compatible
query I rowsort label-3159
SELECT ALL + COUNT ( * ) + + 10 AS col0
----
11

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

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

query I rowsort
SELECT ALL 92 * - ( 50 ) + 63 AS col2
----
-4537

query I rowsort
SELECT ALL + 73 - 17
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3163
SELECT - 75 * + - ( CAST( + COALESCE ( - 83, - 17 ) AS SIGNED ) ) AS col0
----
-6225

skipif mysql # not compatible
query I rowsort label-3163
SELECT - 75 * + - ( CAST ( + COALESCE ( - 83, - 17 ) AS INTEGER ) ) AS col0
----
-6225

onlyif mysql # aggregate syntax: 
query I rowsort label-3164
SELECT ALL - + NULLIF ( - 47, - 78 ) * + COUNT( * ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-3164
SELECT ALL - + NULLIF ( - 47, - 78 ) * + COUNT ( * ) AS col1
----
47

query I rowsort
SELECT - 19 - 55 AS col0
----
-74

query I rowsort
SELECT ALL + 82 * - + 55
----
-4510

onlyif mysql # DIV for integer division: 
query I rowsort label-3167
SELECT 0 + + 28 DIV 24 col2
----
1

skipif mysql # not compatible
query I rowsort label-3167
SELECT 0 + + 28 / 24 col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3168
SELECT + 2 DIV + 29 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3168
SELECT + 2 / + 29 AS col2
----
0

query I rowsort
SELECT + 41 * 60 AS col2
----
2460

onlyif mysql # aggregate syntax: 
query I rowsort label-3170
SELECT + 93 * COUNT( 76 ) * + ( - 0 * 2 ) + + 19 + 42 * 12
----
523

skipif mysql # not compatible
query I rowsort label-3170
SELECT + 93 * COUNT ( 76 ) * + ( - 0 * 2 ) + + 19 + 42 * 12
----
523

query I rowsort
SELECT 48 * - 20
----
-960

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

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

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

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

query I rowsort
SELECT + ( + 43 ) * 98 - + 91 col1
----
4123

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3177
SELECT DISTINCT 37 * + 21 * - CASE COALESCE ( - 65, NULLIF ( - 42, - 6 + + SUM( - 79 + 54 ) ) ) WHEN + 44 - 77 THEN NULL ELSE 58 * + 59 END col0
----
-2658894

skipif mysql # not compatible
query I rowsort label-3177
SELECT DISTINCT 37 * + 21 * - CASE COALESCE ( - 65, NULLIF ( - 42, - 6 + + SUM ( - 79 + 54 ) ) ) WHEN + 44 - 77 THEN NULL ELSE 58 * + 59 END col0
----
-2658894

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3178
SELECT - 34 * NULLIF ( - COUNT( * ), 32 ) + + MAX( 86 ) * CAST( 39 - - 5 AS SIGNED ) AS col2
----
3818

skipif mysql # not compatible
query I rowsort label-3178
SELECT - 34 * NULLIF ( - COUNT ( * ), 32 ) + + MAX ( 86 ) * CAST ( 39 - - 5 AS INTEGER ) AS col2
----
3818

query I rowsort
SELECT ALL 54 * 58 AS col0
----
3132

onlyif mysql # aggregate syntax: 
query I rowsort label-3180
SELECT ( - 39 ) + - 12 + COUNT( * ) AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-3180
SELECT ( - 39 ) + - 12 + COUNT ( * ) AS col1
----
-50

query I rowsort
SELECT 3 * + + 75 - 15 - 94
----
116

onlyif mysql # aggregate syntax: 
query II rowsort label-3182
SELECT ALL - 28, + 33 * - COUNT( * ) AS col2
----
-28
-33

skipif mysql # not compatible
query II rowsort label-3182
SELECT ALL - 28, + 33 * - COUNT ( * ) AS col2
----
-28
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-3183
SELECT DISTINCT 89 * + CASE - - 32 WHEN 23 + + SUM( + COALESCE ( 67, 4 ) + - ( - ( 97 ) ) * + 50 ) / 21 THEN 38 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3183
SELECT DISTINCT 89 * + CASE - - 32 WHEN 23 + + SUM ( + COALESCE ( 67, 4 ) + - ( - ( 97 ) ) * + 50 ) / 21 THEN 38 END AS col0
----
NULL

query I rowsort
SELECT ALL 48 + 70 col2
----
118

query II rowsort
SELECT 79 AS col2, + 1
----
79
1

query I rowsort
SELECT ( + + 74 ) * - - 20 + - 71 * 75 col1
----
-3845

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3187
SELECT 87, + ( 83 ) DIV COUNT( * ) AS col2
----
87
83

skipif mysql # not compatible
query II rowsort label-3187
SELECT 87, + ( 83 ) / COUNT ( * ) AS col2
----
87
83

onlyif mysql # aggregate syntax: 
query I rowsort label-3188
SELECT DISTINCT 53 + 54 + COUNT( * ) * + COUNT( * )
----
108

skipif mysql # not compatible
query I rowsort label-3188
SELECT DISTINCT 53 + 54 + COUNT ( * ) * + COUNT ( * )
----
108

query I rowsort
SELECT ALL - 21 + 83 * + 0 * 46 AS col1
----
-21

query I rowsort
SELECT DISTINCT - 13 + - 90 AS col2
----
-103

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

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

skipif mysql # not compatible
query I rowsort label-3192
SELECT ALL + 68 / - - COUNT ( * ) AS col2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3193
SELECT 89 + - COUNT( * ) + COUNT( DISTINCT + 93 ) * 47
----
135

skipif mysql # not compatible
query I rowsort label-3193
SELECT 89 + - COUNT ( * ) + COUNT ( DISTINCT + 93 ) * 47
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-3194
SELECT 95 * - 77 / CASE 75 WHEN + 87 * 55 THEN MIN( 85 ) END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3194
SELECT 95 * - 77 / CASE 75 WHEN + 87 * 55 THEN MIN ( 85 ) END col0
----
NULL

query II rowsort
SELECT - 55 AS col2, + 38 AS col0
----
-55
38

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

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

query I rowsort
SELECT ALL + 95 + - - 71 AS col1
----
166

query I rowsort
SELECT 5 - 25 col2
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-3199
SELECT ALL - 32 + 31 + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-3199
SELECT ALL - 32 + 31 + COUNT ( * )
----
0

query I rowsort
SELECT 14 - - 62 + - 25 * + 7 AS col0
----
-99

query I rowsort
SELECT 15 + - 27 AS col1
----
-12

query II rowsort
SELECT DISTINCT - 17 AS col2, + 71 AS col1
----
-17
71

query I rowsort
SELECT DISTINCT + - 8 * + 80
----
-640

query I rowsort
SELECT 94 + + - 3 + - - 11 * 32 AS col1
----
443

onlyif mysql # aggregate syntax: 
query I rowsort label-3205
SELECT + 73 - - ( - COUNT( * ) ) AS col0
----
72

skipif mysql # not compatible
query I rowsort label-3205
SELECT + 73 - - ( - COUNT ( * ) ) AS col0
----
72

query I rowsort
SELECT 25 * + 58
----
1450

query II rowsort
SELECT DISTINCT 21, + 0 col1
----
21
0

query I rowsort
SELECT + 0 + + 85 * + - 90 col2
----
-7650

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3209
SELECT - 39 DIV + COUNT( - 79 )
----
-39

skipif mysql # not compatible
query I rowsort label-3209
SELECT - 39 / + COUNT ( - 79 )
----
-39

query I rowsort
SELECT - COALESCE ( 54, - 17 + 44 ) * + 13
----
-702

query I rowsort
SELECT 63 + NULLIF ( - - 84, 35 + - 9 ) * 93 col0
----
7875

query I rowsort
SELECT DISTINCT - NULLIF ( - 6, + 79 ) col1
----
6

query I rowsort
SELECT - 66 + - - 89 - + 94 AS col1
----
-71

query I rowsort
SELECT DISTINCT - 79 * - - 31
----
-2449

query I rowsort
SELECT DISTINCT - 68 * + 29 + 56
----
-1916

query I rowsort
SELECT DISTINCT + + ( + 73 ) * - 94 AS col1
----
-6862

query I rowsort
SELECT ALL - COALESCE ( - + 66, CASE 89 WHEN 47 THEN 98 - + 26 ELSE NULL END + 69, 9 ) * - ( - 22 )
----
1452

query I rowsort
SELECT + 42 + + 96
----
138

query I rowsort
SELECT 90 * - 59
----
-5310

onlyif mysql # aggregate syntax: 
query I rowsort label-3220
SELECT CASE + 84 WHEN 38 THEN - - 70 WHEN 61 + + ( COUNT( * ) ) * - 44 THEN NULL END + 81 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3220
SELECT CASE + 84 WHEN 38 THEN - - 70 WHEN 61 + + ( COUNT ( * ) ) * - 44 THEN NULL END + 81 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3221
SELECT 64 * + COUNT( * ) * - NULLIF ( 73, 70 ) * - MIN( ALL 9 ) AS col0
----
42048

skipif mysql # not compatible
query I rowsort label-3221
SELECT 64 * + COUNT ( * ) * - NULLIF ( 73, 70 ) * - MIN ( ALL 9 ) AS col0
----
42048

onlyif mysql # aggregate syntax: 
query I rowsort label-3222
SELECT CASE - - 64 WHEN + 26 + COUNT( ALL 6 ) * 0 THEN + 50 ELSE NULL END * 12 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3222
SELECT CASE - - 64 WHEN + 26 + COUNT ( ALL 6 ) * 0 THEN + 50 ELSE NULL END * 12 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3223
SELECT ALL 30 * + + 19 * - COUNT( * ) + - 78
----
-648

skipif mysql # not compatible
query I rowsort label-3223
SELECT ALL 30 * + + 19 * - COUNT ( * ) + - 78
----
-648

onlyif mysql # aggregate syntax: 
query II rowsort label-3224
SELECT MAX( 52 ) AS col1, - 66 * COUNT( * )
----
52
-66

skipif mysql # not compatible
query II rowsort label-3224
SELECT MAX ( 52 ) AS col1, - 66 * COUNT ( * )
----
52
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3225
SELECT 99 + 38 DIV MIN( + 40 ) + + ( 65 )
----
164

skipif mysql # not compatible
query I rowsort label-3225
SELECT 99 + 38 / MIN ( + 40 ) + + ( 65 )
----
164

query I rowsort
SELECT ALL 94 + - 39
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3227
SELECT 90 * + - 25 / 27 / + MAX( DISTINCT CAST( NULL AS SIGNED ) ) + 9
----
NULL

skipif mysql # not compatible
query I rowsort label-3227
SELECT 90 * + - 25 / 27 / + MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) + 9
----
NULL

query I rowsort
SELECT + 76 + 22 col0
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3229
SELECT - 16 * - ( - COUNT( * ) ) + - 62 DIV 20 AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-3229
SELECT - 16 * - ( - COUNT ( * ) ) + - 62 / 20 AS col0
----
-19

query II rowsort
SELECT ALL 34 + - 98 AS col0, - 89
----
-64
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3231
SELECT + 40 + + + 23 + 32 + + CAST( 46 AS SIGNED )
----
141

skipif mysql # not compatible
query I rowsort label-3231
SELECT + 40 + + + 23 + 32 + + CAST ( 46 AS INTEGER )
----
141

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

skipif mysql # not compatible
query I rowsort label-3232
SELECT - 46 * + + CAST ( NULL AS INTEGER ) * - - 40
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3233
SELECT - 5 + + + 69 - CAST( NULL AS DECIMAL ) * + + 29
----
NULL

skipif mysql # not compatible
query I rowsort label-3233
SELECT - 5 + + + 69 - CAST ( NULL AS REAL ) * + + 29
----
NULL

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

query I rowsort
SELECT + 93 + + - 0 AS col0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3236
SELECT + + 95 * 75 + + + SUM( + 11 ) col2
----
7136

skipif mysql # not compatible
query I rowsort label-3236
SELECT + + 95 * 75 + + + SUM ( + 11 ) col2
----
7136

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3237
SELECT DISTINCT - 84 DIV + CAST( + - ( 29 ) AS SIGNED ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-3237
SELECT DISTINCT - 84 / + CAST ( + - ( 29 ) AS INTEGER ) AS col0
----
2

query I rowsort
SELECT ALL + 26 - - + 94 + - 86
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3239
SELECT - + MIN( DISTINCT + 57 ) * + 67 * - ( 67 )
----
255873

skipif mysql # not compatible
query I rowsort label-3239
SELECT - + MIN ( DISTINCT + 57 ) * + 67 * - ( 67 )
----
255873

query II rowsort
SELECT - 57 + + - 25, 21 col1
----
-82
21

query I rowsort
SELECT + 96 * 15
----
1440

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3245
SELECT DISTINCT + NULLIF ( + + 70, + - MIN( + 18 ) ) AS col1
----
70

skipif mysql # not compatible
query I rowsort label-3245
SELECT DISTINCT + NULLIF ( + + 70, + - MIN ( + 18 ) ) AS col1
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3246
SELECT ALL - 91 * CASE - 44 WHEN - - 35 THEN NULL WHEN - CAST( + NULLIF ( + 41, 33 * 82 ) AS SIGNED ) THEN 16 ELSE NULL END / 86
----
NULL

skipif mysql # not compatible
query I rowsort label-3246
SELECT ALL - 91 * CASE - 44 WHEN - - 35 THEN NULL WHEN - CAST ( + NULLIF ( + 41, 33 * 82 ) AS INTEGER ) THEN 16 ELSE NULL END / 86
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3247
SELECT DISTINCT + COUNT( * ) * + 30 - - 51 + 22 DIV 8 col2
----
83

skipif mysql # not compatible
query I rowsort label-3247
SELECT DISTINCT + COUNT ( * ) * + 30 - - 51 + 22 / 8 col2
----
83

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3249
SELECT - - MAX( ALL 2 ) + - 69
----
-67

skipif mysql # not compatible
query I rowsort label-3249
SELECT - - MAX ( ALL 2 ) + - 69
----
-67

query I rowsort
SELECT DISTINCT - 88 * - ( 63 ) AS col1
----
5544

query I rowsort
SELECT - - COALESCE ( - - 52, + 1 * + 13 )
----
52

query I rowsort
SELECT - + 61 * - - 89 + - + 72 + - 36 * 61 AS col2
----
-7697

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

skipif mysql # not compatible
query I rowsort label-3253
SELECT ALL - COUNT ( * ) * 64 * - + COUNT ( + 6 ) AS col2
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-3254
SELECT DISTINCT + 23 DIV + - 33 + + + NULLIF ( + + 13, 78 ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-3254
SELECT DISTINCT + 23 / + - 33 + + + NULLIF ( + + 13, 78 ) AS col2
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3255
SELECT 78 * + 68 * + - 64 * - COUNT( * ) + 57 + 55 DIV + ( 15 - - 73 ) AS col1
----
339513

skipif mysql # not compatible
query I rowsort label-3255
SELECT 78 * + 68 * + - 64 * - COUNT ( * ) + 57 + 55 / + ( 15 - - 73 ) AS col1
----
339513

onlyif mysql # DIV for integer division: 
query I rowsort label-3256
SELECT DISTINCT - 85 DIV + 41 col0
----
-2

skipif mysql # not compatible
query I rowsort label-3256
SELECT DISTINCT - 85 / + 41 col0
----
-2

query I rowsort
SELECT DISTINCT 19 * - 28 * + 9 * + 46 + 74 * - 38 AS col0
----
-223060

onlyif mysql # aggregate syntax: 
query I rowsort label-3258
SELECT ALL - 67 * + COALESCE ( + + 88, - COUNT( * ) * 0 )
----
-5896

skipif mysql # not compatible
query I rowsort label-3258
SELECT ALL - 67 * + COALESCE ( + + 88, - COUNT ( * ) * 0 )
----
-5896

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3259
SELECT - 7 DIV 52 * - - CAST( - ( + 41 ) AS SIGNED ) col0
----
0

skipif mysql # not compatible
query I rowsort label-3259
SELECT - 7 / 52 * - - CAST ( - ( + 41 ) AS INTEGER ) col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3260
SELECT ALL COUNT( + 73 ) * - - 84 + + 25 * 79 + CAST( NULL AS SIGNED ) + - 58 * - CAST( 10 * NULLIF ( - 26 * - MAX( ALL CAST( NULL AS SIGNED ) ), ( 16 ) / + ( 91 ) ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3260
SELECT ALL COUNT ( + 73 ) * - - 84 + + 25 * 79 + CAST ( NULL AS INTEGER ) + - 58 * - CAST ( 10 * NULLIF ( - 26 * - MAX ( ALL CAST ( NULL AS INTEGER ) ), ( 16 ) / + ( 91 ) ) AS INTEGER ) AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3262
SELECT ALL + 36 * - + 58 + + + COALESCE ( COUNT( * ), - 86 * - 29, 89 + 77 ) AS col1
----
-2087

skipif mysql # not compatible
query I rowsort label-3262
SELECT ALL + 36 * - + 58 + + + COALESCE ( COUNT ( * ), - 86 * - 29, 89 + 77 ) AS col1
----
-2087

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3263
SELECT ALL - AVG ( DISTINCT ( + - 14 ) ) * + ( - CAST( NULL AS SIGNED ) ) + 28 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3263
SELECT ALL - AVG ( DISTINCT ( + - 14 ) ) * + ( - CAST ( NULL AS INTEGER ) ) + 28 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3264
SELECT - 71 DIV + 72 col0
----
0

skipif mysql # not compatible
query I rowsort label-3264
SELECT - 71 / + 72 col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3265
SELECT + 77 DIV - + 13 AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-3265
SELECT + 77 / - + 13 AS col1
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3266
SELECT ALL + CASE WHEN NOT - 41 IS NOT NULL THEN - 33 WHEN NOT ( - 20 * - NULLIF ( - 67 DIV + COUNT( * ), 60 ) ) NOT BETWEEN NULL AND 26 THEN NULL ELSE + 53 * 7 END * + 81 - + 77 DIV 76
----
30050

skipif mysql # not compatible
query I rowsort label-3266
SELECT ALL + CASE WHEN NOT - 41 IS NOT NULL THEN - 33 WHEN NOT ( - 20 * - NULLIF ( - 67 / + COUNT ( * ), 60 ) ) NOT BETWEEN NULL AND 26 THEN NULL ELSE + 53 * 7 END * + 81 - + 77 / 76
----
30050

onlyif mysql # aggregate syntax: 
query I rowsort label-3267
SELECT CASE 93 WHEN - + 99 THEN NULL ELSE + MAX( ALL + + 32 ) END AS col1
----
32

skipif mysql # not compatible
query I rowsort label-3267
SELECT CASE 93 WHEN - + 99 THEN NULL ELSE + MAX ( ALL + + 32 ) END AS col1
----
32

query I rowsort
SELECT COALESCE ( + - 98, + + 99 + ( - 42 ) ) AS col1
----
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-3269
SELECT COALESCE ( 54, + + 14 * 6, + - 58 DIV - 42 ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-3269
SELECT COALESCE ( 54, + + 14 * 6, + - 58 / - 42 ) AS col1
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-3270
SELECT DISTINCT + 85, - NULLIF ( COUNT( * ), + CASE + 33 WHEN ( 77 ) * ( 24 ) THEN + 85 WHEN 12 THEN NULL END ) AS col1
----
85
-1

skipif mysql # not compatible
query II rowsort label-3270
SELECT DISTINCT + 85, - NULLIF ( COUNT ( * ), + CASE + 33 WHEN ( 77 ) * ( 24 ) THEN + 85 WHEN 12 THEN NULL END ) AS col1
----
85
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3271
SELECT + NULLIF ( + 91, 28 * + 99 + - COUNT( * ) ) AS col2
----
91

skipif mysql # not compatible
query I rowsort label-3271
SELECT + NULLIF ( + 91, 28 * + 99 + - COUNT ( * ) ) AS col2
----
91

query I rowsort
SELECT ALL 81 * + 60 * - + ( + ( - 47 ) )
----
228420

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3274
SELECT - - 75, + COUNT( * ) - 11 AS col2
----
75
-10

skipif mysql # not compatible
query II rowsort label-3274
SELECT - - 75, + COUNT ( * ) - 11 AS col2
----
75
-10

query II rowsort
SELECT ALL 25 * + 43 + - 21 AS col2, 29
----
1054
29

onlyif mysql # aggregate syntax: 
query I rowsort label-3276
SELECT + - 89 * - - COALESCE ( - - 80, COUNT( * ) )
----
-7120

skipif mysql # not compatible
query I rowsort label-3276
SELECT + - 89 * - - COALESCE ( - - 80, COUNT ( * ) )
----
-7120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3277
SELECT + 99 + + CAST( + 14 AS SIGNED ) AS col2
----
113

skipif mysql # not compatible
query I rowsort label-3277
SELECT + 99 + + CAST ( + 14 AS INTEGER ) AS col2
----
113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3278
SELECT + + 14 - - COALESCE ( + 2, - 79 DIV + AVG ( ALL + 45 ) + - COUNT( * ) * 31, - CAST( NULL AS SIGNED ) + + MIN( DISTINCT 83 ) ) DIV CAST( 63 * - 40 + 4 AS SIGNED ) col0
----
14

skipif mysql # not compatible
query I rowsort label-3278
SELECT + + 14 - - COALESCE ( + 2, - 79 / + AVG ( ALL + 45 ) + - COUNT ( * ) * 31, - CAST ( NULL AS INTEGER ) + + MIN ( DISTINCT 83 ) ) / CAST ( 63 * - 40 + 4 AS INTEGER ) col0
----
14

query I rowsort
SELECT DISTINCT NULLIF ( + 71, + 80 * + + 42 )
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-3280
SELECT + - 39 + - + COUNT( * ) + + + 20 AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-3280
SELECT + - 39 + - + COUNT ( * ) + + + 20 AS col2
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3281
SELECT ALL - COALESCE ( COUNT( * ), - 70 * 7 + + + 61, + COUNT( * ) - 28 * COALESCE ( 9 * 57 + CAST( + 51 AS SIGNED ), COUNT( * ) + - ( 75 ) DIV MIN( DISTINCT + 1 - 58 ) ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3281
SELECT ALL - COALESCE ( COUNT ( * ), - 70 * 7 + + + 61, + COUNT ( * ) - 28 * COALESCE ( 9 * 57 + CAST ( + 51 AS INTEGER ), COUNT ( * ) + - ( 75 ) / MIN ( DISTINCT + 1 - 58 ) ) ) AS col0
----
-1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3283
SELECT ALL + CAST( MAX( ALL + ( - 66 ) ) AS SIGNED )
----
-66

skipif mysql # not compatible
query I rowsort label-3283
SELECT ALL + CAST ( MAX ( ALL + ( - 66 ) ) AS INTEGER )
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-3284
SELECT + - CASE + COALESCE ( + 66, - + 89 + - CASE + 90 WHEN 61 THEN NULL WHEN CASE - MAX( ALL - 30 ) WHEN NULLIF ( - 95, + 60 - 44 ) - + 26 THEN NULL WHEN - 17 * + 88 THEN NULL ELSE 24 END * COUNT( * ) THEN 41 * COUNT( * ) + - 91 WHEN 36 + 54 THEN - 60 - 28 ELSE NULL END ) WHEN 99 THEN 99 - ( 78 ) END + 2
----
NULL

skipif mysql # not compatible
query I rowsort label-3284
SELECT + - CASE + COALESCE ( + 66, - + 89 + - CASE + 90 WHEN 61 THEN NULL WHEN CASE - MAX ( ALL - 30 ) WHEN NULLIF ( - 95, + 60 - 44 ) - + 26 THEN NULL WHEN - 17 * + 88 THEN NULL ELSE 24 END * COUNT ( * ) THEN 41 * COUNT ( * ) + - 91 WHEN 36 + 54 THEN - 60 - 28 ELSE NULL END ) WHEN 99 THEN 99 - ( 78 ) END + 2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3285
SELECT ALL - + ( - 81 ) DIV + 84 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3285
SELECT ALL - + ( - 81 ) / + 84 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3286
SELECT + 97 DIV + + CAST( - 38 AS SIGNED )
----
-2

skipif mysql # not compatible
query I rowsort label-3286
SELECT + 97 / + + CAST ( - 38 AS INTEGER )
----
-2

query I rowsort
SELECT + 1 + - - 26
----
27

query I rowsort
SELECT - 71 - - 96 AS col1
----
25

query I rowsort
SELECT + COALESCE ( + ( + 95 ), + 62 * - 31 + 95 ) AS col0
----
95

query I rowsort
SELECT - - 82 * - ( + + 36 ) AS col0
----
-2952

query I rowsort
SELECT DISTINCT + 76 + - 32 * + 2 AS col1
----
12

query I rowsort
SELECT - NULLIF ( 10, - NULLIF ( + 84, + 15 - + 35 ) * - 74 - - 61 * 22 )
----
-10

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

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

query I rowsort
SELECT + NULLIF ( + 26, - 26 ) * + + ( + - 55 ) * 55 + + 93
----
-78557

onlyif mysql # aggregate syntax: 
query I rowsort label-3295
SELECT DISTINCT 37 + - + SUM( 95 )
----
-58

skipif mysql # not compatible
query I rowsort label-3295
SELECT DISTINCT 37 + - + SUM ( 95 )
----
-58

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

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

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

skipif mysql # not compatible
query II rowsort label-3297
SELECT + 75, 25 * COUNT ( * ) AS col0
----
75
25

onlyif mysql # aggregate syntax: 
query II rowsort label-3298
SELECT ALL - COUNT( * ) AS col0, - 57 * + 3
----
-1
-171

skipif mysql # not compatible
query II rowsort label-3298
SELECT ALL - COUNT ( * ) AS col0, - 57 * + 3
----
-1
-171

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

query I rowsort
SELECT 18 * + 98 * 6 AS col1
----
10584

query II rowsort
SELECT + 32, + 51 AS col0
----
32
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3302
SELECT ALL - SUM( + 34 ) - 10 AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-3302
SELECT ALL - SUM ( + 34 ) - 10 AS col2
----
-44

query II rowsort
SELECT 3 AS col2, - 96
----
3
-96

query II rowsort
SELECT 38 AS col1, 49 * + 2 AS col0
----
38
98

query I rowsort
SELECT 5 + + - 4 col1
----
1

query II rowsort
SELECT 0 * 57 * - 60 + - 30, 14 * 69 AS col0
----
-30
966

query I rowsort
SELECT ALL - 64 - 57
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-3308
SELECT - COUNT( * ) * - 9 + - - 47
----
56

skipif mysql # not compatible
query I rowsort label-3308
SELECT - COUNT ( * ) * - 9 + - - 47
----
56

query I rowsort
SELECT ALL + 64 - 10 AS col1
----
54

query II rowsort
SELECT DISTINCT - 66, + 30 * 13 + - 68 * - 42 AS col2
----
-66
3246

query I rowsort
SELECT ALL 81 * - 6
----
-486

query I rowsort
SELECT 40 + - + COALESCE ( + 55, 15 ) * 73
----
-3975

query II rowsort
SELECT ALL - 78 AS col2, 33 AS col2
----
-78
33

query I rowsort
SELECT DISTINCT + 19 * - 29 * 96 AS col2
----
-52896

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3315
SELECT + 69 * NULLIF ( - + CASE CAST( - - 5 AS DECIMAL ) WHEN - 17 - + COUNT( * ) * - 24 THEN 11 + AVG ( 91 - 96 ) WHEN 40 * + 57 THEN 95 ELSE NULL END, + 71 + - COALESCE ( - 30, - COUNT( * ) + 5 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3315
SELECT + 69 * NULLIF ( - + CASE CAST ( - - 5 AS REAL ) WHEN - 17 - + COUNT ( * ) * - 24 THEN 11 + AVG ( 91 - 96 ) WHEN 40 * + 57 THEN 95 ELSE NULL END, + 71 + - COALESCE ( - 30, - COUNT ( * ) + 5 ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3316
SELECT + - 66 * 77 + + 97 - + - 99 - - 80 DIV + 49 + + 10 * + 86 AS col1
----
-4025

skipif mysql # not compatible
query I rowsort label-3316
SELECT + - 66 * 77 + + 97 - + - 99 - - 80 / + 49 + + 10 * + 86 AS col1
----
-4025

query I rowsort
SELECT ALL - NULLIF ( + + 4, - 46 ) AS col2
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3318
SELECT + + CAST( + 94 AS SIGNED ) AS col1
----
94

skipif mysql # not compatible
query I rowsort label-3318
SELECT + + CAST ( + 94 AS INTEGER ) AS col1
----
94

query II rowsort
SELECT + 53 + - 64 * - + ( + 84 ) AS col0, - 37 col1
----
5429
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3320
SELECT - 45 AS col1, + NULLIF ( - 71, - + 94 * 46 * 54 * 43 ) DIV - MIN( ALL 6 * + 21 - - 94 )
----
-45
0

skipif mysql # not compatible
query II rowsort label-3320
SELECT - 45 AS col1, + NULLIF ( - 71, - + 94 * 46 * 54 * 43 ) / - MIN ( ALL 6 * + 21 - - 94 )
----
-45
0

query I rowsort
SELECT 69 + - 49
----
20

query II rowsort
SELECT ALL 95, + 76 - 14 AS col2
----
95
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3323
SELECT ALL - COUNT( ALL 98 ) + 1 DIV + - 85 * COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-3323
SELECT ALL - COUNT ( ALL 98 ) + 1 / + - 85 * COUNT ( * )
----
-1

query II rowsort
SELECT ALL - 2 col0, + 82 * + 5
----
-2
410

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3326
SELECT ALL 72 + + MIN( DISTINCT - - 75 ) + - 12
----
135

skipif mysql # not compatible
query I rowsort label-3326
SELECT ALL 72 + + MIN ( DISTINCT - - 75 ) + - 12
----
135

query II rowsort
SELECT + 18 AS col2, - 37 AS col1
----
18
-37

query I rowsort
SELECT ALL 16 + 3 * - 65
----
-179

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3329
SELECT - + CAST( NULL AS SIGNED ) AS col2, + NULLIF ( 56, + 16 )
----
NULL
56

skipif mysql # not compatible
query II rowsort label-3329
SELECT - + CAST ( NULL AS INTEGER ) AS col2, + NULLIF ( 56, + 16 )
----
NULL
56

onlyif mysql # aggregate syntax: 
query I rowsort label-3330
SELECT DISTINCT 43 * - ( + 98 ) + + SUM( DISTINCT + + 52 ) * 92
----
570

skipif mysql # not compatible
query I rowsort label-3330
SELECT DISTINCT 43 * - ( + 98 ) + + SUM ( DISTINCT + + 52 ) * 92
----
570

onlyif mysql # aggregate syntax: 
query I rowsort label-3331
SELECT COALESCE ( - - 49, - 30 + MIN( 30 ) + - 62, + ( 17 ) + 55 * + 84 ) + 96 AS col0
----
145

skipif mysql # not compatible
query I rowsort label-3331
SELECT COALESCE ( - - 49, - 30 + MIN ( 30 ) + - 62, + ( 17 ) + 55 * + 84 ) + 96 AS col0
----
145

query II rowsort
SELECT ALL 61 * + 94 AS col1, 7 * COALESCE ( + 25, - 24 )
----
5734
175

onlyif mysql # aggregate syntax: 
query I rowsort label-3333
SELECT ALL - 98 + - MAX( ALL - - 95 )
----
-193

skipif mysql # not compatible
query I rowsort label-3333
SELECT ALL - 98 + - MAX ( ALL - - 95 )
----
-193

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3335
SELECT 10 DIV - 52
----
0

skipif mysql # not compatible
query I rowsort label-3335
SELECT 10 / - 52
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3336
SELECT ALL - MAX( ALL CAST( + 11 AS SIGNED ) ) - + COUNT( * ) DIV - 35
----
-11

skipif mysql # not compatible
query I rowsort label-3336
SELECT ALL - MAX ( ALL CAST ( + 11 AS INTEGER ) ) - + COUNT ( * ) / - 35
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3337
SELECT MAX( - 77 ) + + 96 * - CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) + + CASE - 54 WHEN + 64 + + 65 * - 78 THEN NULL WHEN + COUNT( * ) + 44 THEN COALESCE ( 90, MIN( DISTINCT - 97 ) ) ELSE + SUM( DISTINCT + 98 ) + - 52 * 56 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3337
SELECT MAX ( - 77 ) + + 96 * - CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) + + CASE - 54 WHEN + 64 + + 65 * - 78 THEN NULL WHEN + COUNT ( * ) + 44 THEN COALESCE ( 90, MIN ( DISTINCT - 97 ) ) ELSE + SUM ( DISTINCT + 98 ) + - 52 * 56 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3338
SELECT CAST( NULL AS SIGNED ) + 93 + SUM( ALL - 99 ) * - 64 * - - 56 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3338
SELECT CAST ( NULL AS INTEGER ) + 93 + SUM ( ALL - 99 ) * - 64 * - - 56 AS col0
----
NULL

query I rowsort
SELECT 28 * 1 * - 6 AS col0
----
-168

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3340
SELECT ( - 34 ) DIV - COALESCE ( 81, 67 ) * + - 88 * - COUNT( * ) * 80 + 40 AS col1
----
40

skipif mysql # not compatible
query I rowsort label-3340
SELECT ( - 34 ) / - COALESCE ( 81, 67 ) * + - 88 * - COUNT ( * ) * 80 + 40 AS col1
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3341
SELECT DISTINCT - ( - 8 ) * + + CASE 26 WHEN + COALESCE ( - 90, - 59 ) THEN NULL WHEN + 40 - + ( COUNT( * ) ) * CAST( + 52 * + 32 - + 76 * 92 AS SIGNED ) THEN + COUNT( * ) ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3341
SELECT DISTINCT - ( - 8 ) * + + CASE 26 WHEN + COALESCE ( - 90, - 59 ) THEN NULL WHEN + 40 - + ( COUNT ( * ) ) * CAST ( + 52 * + 32 - + 76 * 92 AS INTEGER ) THEN + COUNT ( * ) ELSE NULL END col1
----
NULL

query I rowsort
SELECT 14 * + + 10 - 89
----
51

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3344
SELECT ALL - SUM( - 2 ) AS col1, + 40 * + + COUNT( * )
----
2
40

skipif mysql # not compatible
query II rowsort label-3344
SELECT ALL - SUM ( - 2 ) AS col1, + 40 * + + COUNT ( * )
----
2
40

onlyif mysql # aggregate syntax: 
query II rowsort label-3345
SELECT 43 * 91 AS col0, COUNT( * ) * - 12 + - COUNT( * ) AS col2
----
3913
-13

skipif mysql # not compatible
query II rowsort label-3345
SELECT 43 * 91 AS col0, COUNT ( * ) * - 12 + - COUNT ( * ) AS col2
----
3913
-13

query I rowsort
SELECT ALL + ( - COALESCE ( 38, - 94 * + 90 * - + 38 * - 72 + + 32 ) ) * + 36 col1
----
-1368

onlyif mysql # aggregate syntax: 
query I rowsort label-3347
SELECT ( + 41 ) * - - SUM( DISTINCT 97 ) AS col0
----
3977

skipif mysql # not compatible
query I rowsort label-3347
SELECT ( + 41 ) * - - SUM ( DISTINCT 97 ) AS col0
----
3977

query II rowsort
SELECT ALL - 3 + 79, + 49 AS col1
----
76
49

query I rowsort
SELECT DISTINCT + 45 + - - 48 AS col1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3350
SELECT ALL - + COUNT( * ) + + ( 34 ) + + 79
----
112

skipif mysql # not compatible
query I rowsort label-3350
SELECT ALL - + COUNT ( * ) + + ( 34 ) + + 79
----
112

query I rowsort
SELECT + NULLIF ( - ( - 58 ), - + 56 - + 4 ) - + 49 AS col0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3352
SELECT 63 + - - CAST( - 91 AS SIGNED ) * - 7 AS col0
----
700

skipif mysql # not compatible
query I rowsort label-3352
SELECT 63 + - - CAST ( - 91 AS INTEGER ) * - 7 AS col0
----
700

onlyif mysql # DIV for integer division: 
query II rowsort label-3353
SELECT 7 * 87 DIV + 46, 62 + - 38 * + 31 AS col2
----
13
-1116

skipif mysql # not compatible
query II rowsort label-3353
SELECT 7 * 87 / + 46, 62 + - 38 * + 31 AS col2
----
13
-1116

query I rowsort
SELECT ALL + 51 * 52 * 17
----
45084

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

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

query I rowsort
SELECT + + 32 * + 7 + 5 * - - 3
----
239

onlyif mysql # aggregate syntax: 
query I rowsort label-3357
SELECT 86 + + 78 + MAX( ALL + 33 ) * + 51 - + 49
----
1798

skipif mysql # not compatible
query I rowsort label-3357
SELECT 86 + + 78 + MAX ( ALL + 33 ) * + 51 - + 49
----
1798

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3358
SELECT 32 + + + CAST( - MIN( DISTINCT + 78 ) AS SIGNED ) + - + 45 * + + 89 * + - 86 AS col2
----
344384

skipif mysql # not compatible
query I rowsort label-3358
SELECT 32 + + + CAST ( - MIN ( DISTINCT + 78 ) AS INTEGER ) + - + 45 * + + 89 * + - 86 AS col2
----
344384

query I rowsort
SELECT ALL + ( + - 29 ) + - 55 * - 54
----
2941

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3360
SELECT ALL - SUM( 59 ) AS col0, - 96 * + CAST( NULL AS SIGNED ) + CAST( NULL AS DECIMAL ) * + MAX( ALL + 8 ) / 77
----
-59
NULL

skipif mysql # not compatible
query II rowsort label-3360
SELECT ALL - SUM ( 59 ) AS col0, - 96 * + CAST ( NULL AS INTEGER ) + CAST ( NULL AS REAL ) * + MAX ( ALL + 8 ) / 77
----
-59
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3361
SELECT ALL - CAST( 19 AS SIGNED )
----
-19

skipif mysql # not compatible
query I rowsort label-3361
SELECT ALL - CAST ( 19 AS INTEGER )
----
-19

query I rowsort
SELECT + 60 * + 72 AS col1
----
4320

onlyif mysql # aggregate syntax: 
query I rowsort label-3363
SELECT - 30 + + MIN( ALL - - 3 ) * - + COUNT( * ) AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-3363
SELECT - 30 + + MIN ( ALL - - 3 ) * - + COUNT ( * ) AS col2
----
-33

query I rowsort
SELECT + 36 + + 97 + 34 - + ( + ( + - 84 ) ) * ( - 51 ) * ( 96 ) * 4
----
-1644889

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3366
SELECT - CAST( NULL AS SIGNED ) * - 8
----
NULL

skipif mysql # not compatible
query I rowsort label-3366
SELECT - CAST ( NULL AS INTEGER ) * - 8
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3367
SELECT ALL NULLIF ( - 93, - + CAST( NULL AS SIGNED ) ) * - 95 - - - 68
----
8767

skipif mysql # not compatible
query I rowsort label-3367
SELECT ALL NULLIF ( - 93, - + CAST ( NULL AS INTEGER ) ) * - 95 - - - 68
----
8767

query II rowsort
SELECT DISTINCT ( + - 39 ) * - - 19 AS col0, 6
----
-741
6

query I rowsort
SELECT + 76 + - 13 AS col2
----
63

query I rowsort
SELECT ALL + NULLIF ( - + 65, - 11 ) * - 45 AS col0
----
2925

onlyif mysql # aggregate syntax: 
query I rowsort label-3371
SELECT CASE + + 94 WHEN - COUNT( * ) THEN NULL ELSE - - 69 + - - 1 * + 88 + + 76 + + 81 + - ( 92 ) * NULLIF ( 2, - COUNT( * ) * AVG ( - 38 ) + - 58 ) * - 30 END
----
5834

skipif mysql # not compatible
query I rowsort label-3371
SELECT CASE + + 94 WHEN - COUNT ( * ) THEN NULL ELSE - - 69 + - - 1 * + 88 + + 76 + + 81 + - ( 92 ) * NULLIF ( 2, - COUNT ( * ) * AVG ( - 38 ) + - 58 ) * - 30 END
----
5834

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3372
SELECT + COUNT( * ) DIV 55 * SUM( ALL 68 ) * - 9
----
0

skipif mysql # not compatible
query I rowsort label-3372
SELECT + COUNT ( * ) / 55 * SUM ( ALL 68 ) * - 9
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3373
SELECT + COALESCE ( - ( 5 ), ( - 12 ), + COUNT( * ) DIV - 6 + - COUNT( * ) ) col0
----
-5

skipif mysql # not compatible
query I rowsort label-3373
SELECT + COALESCE ( - ( 5 ), ( - 12 ), + COUNT ( * ) / - 6 + - COUNT ( * ) ) col0
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-3374
SELECT + 34 + + 33 + 43 DIV 37 col1
----
68

skipif mysql # not compatible
query I rowsort label-3374
SELECT + 34 + + 33 + 43 / 37 col1
----
68

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3376
SELECT + 10 DIV 66 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3376
SELECT + 10 / 66 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3377
SELECT - 16 / CASE - COUNT( * ) WHEN + - CAST( 10 AS SIGNED ) THEN - - COUNT( * ) ELSE NULL END AS col1, 83 AS col1
----
NULL
83

skipif mysql # not compatible
query II rowsort label-3377
SELECT - 16 / CASE - COUNT ( * ) WHEN + - CAST ( 10 AS INTEGER ) THEN - - COUNT ( * ) ELSE NULL END AS col1, 83 AS col1
----
NULL
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3378
SELECT ALL 36 * - 27 + - 6 * - + COUNT( * ) + 98 DIV + - 93 - + 94 AS col0
----
-1061

skipif mysql # not compatible
query I rowsort label-3378
SELECT ALL 36 * - 27 + - 6 * - + COUNT ( * ) + 98 / + - 93 - + 94 AS col0
----
-1061

onlyif mysql # DIV for integer division: 
query I rowsort label-3379
SELECT DISTINCT 34 DIV + 45
----
0

skipif mysql # not compatible
query I rowsort label-3379
SELECT DISTINCT 34 / + 45
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3380
SELECT ALL - MIN( - 56 ) * + - 19 + 0 AS col0
----
-1064

skipif mysql # not compatible
query I rowsort label-3380
SELECT ALL - MIN ( - 56 ) * + - 19 + 0 AS col0
----
-1064

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3381
SELECT DISTINCT - 16 * - + CASE + ( 13 ) WHEN - MAX( ALL - 27 ) THEN + - CAST( - 90 AS DECIMAL ) / - 26 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3381
SELECT DISTINCT - 16 * - + CASE + ( 13 ) WHEN - MAX ( ALL - 27 ) THEN + - CAST ( - 90 AS REAL ) / - 26 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3382
SELECT ALL 84 * 70 + 27 + 1 + - - NULLIF ( - - COUNT( - + 53 ), - 73 * + 21 + 57 ) DIV + 54 AS col0
----
5908

skipif mysql # not compatible
query I rowsort label-3382
SELECT ALL 84 * 70 + 27 + 1 + - - NULLIF ( - - COUNT ( - + 53 ), - 73 * + 21 + 57 ) / + 54 AS col0
----
5908

onlyif mysql # aggregate syntax: 
query II rowsort label-3383
SELECT ALL + + 21 * - MIN( ALL 76 ) AS col0, 49 AS col0
----
-1596
49

skipif mysql # not compatible
query II rowsort label-3383
SELECT ALL + + 21 * - MIN ( ALL 76 ) AS col0, 49 AS col0
----
-1596
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3384
SELECT + + 77 + CAST( 18 AS SIGNED )
----
95

skipif mysql # not compatible
query I rowsort label-3384
SELECT + + 77 + CAST ( 18 AS INTEGER )
----
95

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3386
SELECT ALL CAST( 20 AS DECIMAL ) * + - CAST( NULL AS SIGNED ) * + 7 * - 26 * - 59 * + 66 + + 63 + SUM( DISTINCT 95 - + 79 * - 10 ) * 9
----
NULL

skipif mysql # not compatible
query I rowsort label-3386
SELECT ALL CAST ( 20 AS REAL ) * + - CAST ( NULL AS INTEGER ) * + 7 * - 26 * - 59 * + 66 + + 63 + SUM ( DISTINCT 95 - + 79 * - 10 ) * 9
----
NULL

query I rowsort
SELECT ALL 17 * + 52 + - 31 * + 80
----
-1596

onlyif mysql # aggregate syntax: 
query II rowsort label-3388
SELECT ALL 14 AS col0, - CASE WHEN NULL <> + COUNT( * ) THEN 80 / COUNT( * ) END + + - 73 col0
----
14
NULL

skipif mysql # not compatible
query II rowsort label-3388
SELECT ALL 14 AS col0, - CASE WHEN NULL <> + COUNT ( * ) THEN 80 / COUNT ( * ) END + + - 73 col0
----
14
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3389
SELECT - - MAX( ALL + CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3389
SELECT - - MAX ( ALL + CAST ( NULL AS REAL ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3390
SELECT DISTINCT + + 75 - COUNT( * )
----
74

skipif mysql # not compatible
query I rowsort label-3390
SELECT DISTINCT + + 75 - COUNT ( * )
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3391
SELECT + 79 * - COUNT( * ) + 77 + + 35 DIV - COUNT( * ) AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-3391
SELECT + 79 * - COUNT ( * ) + 77 + + 35 / - COUNT ( * ) AS col0
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-3392
SELECT - NULLIF ( - - COUNT( * ), + - 98 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3392
SELECT - NULLIF ( - - COUNT ( * ), + - 98 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3393
SELECT ALL CASE + NULLIF ( ( + + COUNT( * ) ), - - 68 ) WHEN - + 6 + - COUNT( * ) THEN - 18 * + - 45 ELSE COUNT( ALL 66 ) END
----
1

skipif mysql # not compatible
query I rowsort label-3393
SELECT ALL CASE + NULLIF ( ( + + COUNT ( * ) ), - - 68 ) WHEN - + 6 + - COUNT ( * ) THEN - 18 * + - 45 ELSE COUNT ( ALL 66 ) END
----
1

query I rowsort
SELECT DISTINCT - 22 * + 94
----
-2068

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3395
SELECT - 30 * 45 * + COALESCE ( - - 70, + 0 - + COUNT( * ), - 84 ), 62 DIV + 30 AS col0
----
-94500
2

skipif mysql # not compatible
query II rowsort label-3395
SELECT - 30 * 45 * + COALESCE ( - - 70, + 0 - + COUNT ( * ), - 84 ), 62 / + 30 AS col0
----
-94500
2

query II rowsort
SELECT ALL ( 70 ) AS col2, 77 AS col0
----
70
77

query I rowsort
SELECT - 1 - - 64 AS col0
----
63

query I rowsort
SELECT ALL + 77 * + 30 AS col0
----
2310

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3400
SELECT ALL - CAST( 24 AS SIGNED ) DIV + 19
----
-1

skipif mysql # not compatible
query I rowsort label-3400
SELECT ALL - CAST ( 24 AS INTEGER ) / + 19
----
-1

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3402
SELECT - 41 + 7 * + MAX( ALL - CAST( NULL AS SIGNED ) ) col0
----
NULL

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

query I rowsort
SELECT + 64 + - 55 - + 24 - + 36 * + 43
----
-1563

onlyif mysql # aggregate syntax: 
query I rowsort label-3404
SELECT - 35 * - COALESCE ( NULLIF ( - + 91, + 41 * COUNT( * ) * 1 ), 24, 39 )
----
-3185

skipif mysql # not compatible
query I rowsort label-3404
SELECT - 35 * - COALESCE ( NULLIF ( - + 91, + 41 * COUNT ( * ) * 1 ), 24, 39 )
----
-3185

query I rowsort
SELECT + NULLIF ( - 3, - + 27 ) + 82 * + 46
----
3769

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3407
SELECT ALL 64 DIV + + 61 + + 54 * - - 95 + + + 61 col1
----
5192

skipif mysql # not compatible
query I rowsort label-3407
SELECT ALL 64 / + + 61 + + 54 * - - 95 + + + 61 col1
----
5192

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3408
SELECT ALL CAST( NULL AS SIGNED ) / + CASE - + COUNT( * ) WHEN - 96 THEN + - 12 END + 49 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3408
SELECT ALL CAST ( NULL AS INTEGER ) / + CASE - + COUNT ( * ) WHEN - 96 THEN + - 12 END + 49 AS col0
----
NULL

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

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

query I rowsort
SELECT DISTINCT - 97 * 29 AS col2
----
-2813

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3411
SELECT ALL + COUNT( * ) DIV - 93 + - - MIN( + + 81 ) * 38
----
3078

skipif mysql # not compatible
query I rowsort label-3411
SELECT ALL + COUNT ( * ) / - 93 + - - MIN ( + + 81 ) * 38
----
3078

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3412
SELECT + CAST( + 45 AS SIGNED ) * + ( + 38 ) AS col2, - 1 AS col0
----
1710
-1

skipif mysql # not compatible
query II rowsort label-3412
SELECT + CAST ( + 45 AS INTEGER ) * + ( + 38 ) AS col2, - 1 AS col0
----
1710
-1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3414
SELECT - COUNT( + 73 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3414
SELECT - COUNT ( + 73 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3415
SELECT COALESCE ( - COALESCE ( - MIN( + - 34 ), + - 9 + - 51 * - - 4, 13 * + 36 * 88 ), 19, + 26 ) * 33 - + 75 * + 27 AS col2
----
-3147

skipif mysql # not compatible
query I rowsort label-3415
SELECT COALESCE ( - COALESCE ( - MIN ( + - 34 ), + - 9 + - 51 * - - 4, 13 * + 36 * 88 ), 19, + 26 ) * 33 - + 75 * + 27 AS col2
----
-3147

query II rowsort
SELECT + ( 51 ) AS col2, 86 AS col1
----
51
86

onlyif mysql # aggregate syntax: 
query II rowsort label-3417
SELECT ALL - + COUNT( DISTINCT 37 ) col0, - 59 * + + ( + 11 )
----
-1
-649

skipif mysql # not compatible
query II rowsort label-3417
SELECT ALL - + COUNT ( DISTINCT 37 ) col0, - 59 * + + ( + 11 )
----
-1
-649

query II rowsort
SELECT 46 * - ( - 26 ) + 15 AS col1, + 57
----
1211
57

query II rowsort
SELECT + COALESCE ( - 84, + + 78 + - 67 ) col1, 6 * NULLIF ( 45, - 58 )
----
-84
270

query I rowsort
SELECT - 54 + ( + 15 ) + - 11 AS col0
----
-50

query I rowsort
SELECT 26 * - + 28 * - - 38 AS col1
----
-27664

onlyif mysql # aggregate syntax: 
query I rowsort label-3422
SELECT - 81 + - CASE 2 WHEN - COUNT( * ) * - 49 - - NULLIF ( - - COUNT( * ), + + 60 + COUNT( * ) * 65 ) THEN - 70 ELSE - 85 END + + COUNT( * ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-3422
SELECT - 81 + - CASE 2 WHEN - COUNT ( * ) * - 49 - - NULLIF ( - - COUNT ( * ), + + 60 + COUNT ( * ) * 65 ) THEN - 70 ELSE - 85 END + + COUNT ( * ) AS col1
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3423
SELECT 8 + - CASE + + 92 WHEN + - 16 + - 71 - + ( + 43 ) + + 85 + - NULLIF ( - + 81, - MAX( DISTINCT - CAST( NULL AS SIGNED ) ) * + 27 - 25 ) * - 17 * 65 / 90 * - 32 THEN + 71 WHEN 58 THEN + 49 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3423
SELECT 8 + - CASE + + 92 WHEN + - 16 + - 71 - + ( + 43 ) + + 85 + - NULLIF ( - + 81, - MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) * + 27 - 25 ) * - 17 * 65 / 90 * - 32 THEN + 71 WHEN 58 THEN + 49 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3424
SELECT DISTINCT 67, 78 + + COUNT( * ) DIV - 22 AS col0
----
67
78

skipif mysql # not compatible
query II rowsort label-3424
SELECT DISTINCT 67, 78 + + COUNT ( * ) / - 22 AS col0
----
67
78

query I rowsort
SELECT ( - + 47 ) + + 56 AS col1
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-3426
SELECT 34 DIV - 30 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3426
SELECT 34 / - 30 AS col1
----
-1

query I rowsort
SELECT DISTINCT - 73 + ( - 85 ) * 52
----
-4493

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3428
SELECT DISTINCT - CAST( NULL AS DECIMAL ) / + COALESCE ( - COUNT( * ), + 70 - ( + COUNT( * ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3428
SELECT DISTINCT - CAST ( NULL AS REAL ) / + COALESCE ( - COUNT ( * ), + 70 - ( + COUNT ( * ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3429
SELECT COUNT( * ) * COUNT( * ) * + - 84, - 99 * ( + - 84 ) col0
----
-84
8316

skipif mysql # not compatible
query II rowsort label-3429
SELECT COUNT ( * ) * COUNT ( * ) * + - 84, - 99 * ( + - 84 ) col0
----
-84
8316

query I rowsort
SELECT 53 + 93
----
146

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3431
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - COALESCE ( 26, + 46, + 31 ) + - CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) * COALESCE ( - AVG ( ALL - 55 ), 93 + + COUNT( * ) * 76, 80 ) * 20 * 34 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3431
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - COALESCE ( 26, + 46, + 31 ) + - CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) * COALESCE ( - AVG ( ALL - 55 ), 93 + + COUNT ( * ) * 76, 80 ) * 20 * 34 col1
----
NULL

query II rowsort
SELECT ALL - 56 + 44 * 53 AS col2, 64
----
2276
64

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

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

query I rowsort
SELECT 52 + - 52 * ( + - 52 ) AS col2
----
2756

onlyif mysql # aggregate syntax: 
query I rowsort label-3435
SELECT - 17 * + 64 + - 33 + - - 5 + + MAX( ALL - ( - 51 ) ) * 70 AS col0
----
2454

skipif mysql # not compatible
query I rowsort label-3435
SELECT - 17 * + 64 + - 33 + - - 5 + + MAX ( ALL - ( - 51 ) ) * 70 AS col0
----
2454

query I rowsort
SELECT - 14 * + - 27 + 55 AS col1
----
433

onlyif mysql # aggregate syntax: 
query II rowsort label-3437
SELECT + 59 col1, - COUNT( * ) + + 70
----
59
69

skipif mysql # not compatible
query II rowsort label-3437
SELECT + 59 col1, - COUNT ( * ) + + 70
----
59
69

onlyif mysql # aggregate syntax: 
query I rowsort label-3438
SELECT - COUNT( * ) * - MIN( DISTINCT + 18 ) * - 28 - - 81 AS col2
----
-423

skipif mysql # not compatible
query I rowsort label-3438
SELECT - COUNT ( * ) * - MIN ( DISTINCT + 18 ) * - 28 - - 81 AS col2
----
-423

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3439
SELECT + CAST( + COUNT( * ) AS SIGNED ) DIV + 85 + + - COUNT( * ) + - MAX( DISTINCT - 65 )
----
64

skipif mysql # not compatible
query I rowsort label-3439
SELECT + CAST ( + COUNT ( * ) AS INTEGER ) / + 85 + + - COUNT ( * ) + - MAX ( DISTINCT - 65 )
----
64

query II rowsort
SELECT - NULLIF ( - + 17, - 38 ) AS col0, - 17 + - + 28 * + 15
----
17
-437

query I rowsort
SELECT ALL + - COALESCE ( + 80, 73 ) - - 37 AS col0
----
-43

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

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

query I rowsort
SELECT 92 + + 81 * 66 AS col0
----
5438

query II rowsort
SELECT + + 7 AS col1, 44
----
7
44

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

skipif mysql # not compatible
query I rowsort label-3445
SELECT ALL - MAX ( 36 )
----
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-3446
SELECT DISTINCT - + 95 * + - 24 * - COUNT( * ) AS col1, - 95 AS col0
----
-2280
-95

skipif mysql # not compatible
query II rowsort label-3446
SELECT DISTINCT - + 95 * + - 24 * - COUNT ( * ) AS col1, - 95 AS col0
----
-2280
-95

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

query I rowsort
SELECT ALL - 28 * - 52 AS col2
----
1456

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3449
SELECT DISTINCT + 70 - CAST( - 83 AS SIGNED ) DIV - 5 AS col2
----
54

skipif mysql # not compatible
query I rowsort label-3449
SELECT DISTINCT + 70 - CAST ( - 83 AS INTEGER ) / - 5 AS col2
----
54

query II rowsort
SELECT 20 AS col1, 0
----
20
0

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

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

query I rowsort
SELECT - 13 * + - 84
----
1092

onlyif mysql # DIV for integer division: 
query I rowsort label-3453
SELECT + ( 92 ) DIV - 17
----
-5

skipif mysql # not compatible
query I rowsort label-3453
SELECT + ( 92 ) / - 17
----
-5

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

query I rowsort
SELECT 93 * + - 76 + - - 32 col0
----
-7036

query II rowsort
SELECT - 22, - NULLIF ( + 65, 37 * + - 76 ) + + 41 AS col2
----
-22
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-3457
SELECT + 79 DIV 34 * - 73 + + 51 AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-3457
SELECT + 79 / 34 * - 73 + + 51 AS col0
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-3458
SELECT MIN( + + 98 ) + 39 * - + 52
----
-1930

skipif mysql # not compatible
query I rowsort label-3458
SELECT MIN ( + + 98 ) + 39 * - + 52
----
-1930

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3459
SELECT ALL COALESCE ( - 48, - - ( - 70 ) + - 47 + + MIN( ALL 87 ) ) * - - 76 DIV + 2 AS col0, + 77 AS col1
----
-1824
77

skipif mysql # not compatible
query II rowsort label-3459
SELECT ALL COALESCE ( - 48, - - ( - 70 ) + - 47 + + MIN ( ALL 87 ) ) * - - 76 / + 2 AS col0, + 77 AS col1
----
-1824
77

query I rowsort
SELECT DISTINCT + 4 + + 33
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3461
SELECT 24 * + CASE + 32 WHEN - 65 * - 80 + - - 35 THEN CASE - 71 WHEN COALESCE ( + NULLIF ( - - 38, - 42 * - COUNT( * ) + 14 ), 57 + 10, COUNT( * ) ) THEN - 39 + - 61 WHEN - 71 * - 18 THEN NULL ELSE NULL END ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3461
SELECT 24 * + CASE + 32 WHEN - 65 * - 80 + - - 35 THEN CASE - 71 WHEN COALESCE ( + NULLIF ( - - 38, - 42 * - COUNT ( * ) + 14 ), 57 + 10, COUNT ( * ) ) THEN - 39 + - 61 WHEN - 71 * - 18 THEN NULL ELSE NULL END ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT COALESCE ( + - 51, - NULLIF ( - 20, - ( + 64 ) ), - 12 ) * + 44 AS col2
----
-2244

onlyif mysql # aggregate syntax: 
query I rowsort label-3463
SELECT ALL CASE + + ( - 34 ) WHEN COUNT( 41 ) THEN COUNT( * ) END + - + 1
----
NULL

skipif mysql # not compatible
query I rowsort label-3463
SELECT ALL CASE + + ( - 34 ) WHEN COUNT ( 41 ) THEN COUNT ( * ) END + - + 1
----
NULL

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

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

query I rowsort
SELECT ALL 53 * + 35 AS col0
----
1855

query I rowsort
SELECT 14 * + - 30 * 51
----
-21420

query I rowsort
SELECT 27 * + 67
----
1809

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3469
SELECT - 36 AS col0, CAST( 31 AS SIGNED ) + - - ( + 57 ) AS col1
----
-36
88

skipif mysql # not compatible
query II rowsort label-3469
SELECT - 36 AS col0, CAST ( 31 AS INTEGER ) + - - ( + 57 ) AS col1
----
-36
88

query II rowsort
SELECT DISTINCT 40, + 38 col2
----
40
38

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3472
SELECT DISTINCT CAST( NULL AS SIGNED ) + - AVG ( + 95 ) - 77 * 30 - - COUNT( DISTINCT - 82 ) / + 44 - MIN( + ( - 62 ) ) + 70 * 44
----
NULL

skipif mysql # not compatible
query I rowsort label-3472
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - AVG ( + 95 ) - 77 * 30 - - COUNT ( DISTINCT - 82 ) / + 44 - MIN ( + ( - 62 ) ) + 70 * 44
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-3474
SELECT COUNT ( * ) + 60 AS col1
----
61

query I rowsort
SELECT 77 * + 6
----
462

query II rowsort
SELECT 81 AS col0, 92 - 37 - + + ( - - 19 ) - NULLIF ( - - 51, 1 ) + - + 81 * - 38 * - - 52 * 72
----
81
11524017

onlyif mysql # aggregate syntax: 
query I rowsort label-3477
SELECT + SUM( DISTINCT - + NULLIF ( + 53, 37 ) ) + + 23
----
-30

skipif mysql # not compatible
query I rowsort label-3477
SELECT + SUM ( DISTINCT - + NULLIF ( + 53, 37 ) ) + + 23
----
-30

query I rowsort
SELECT - CASE - 53 WHEN + + 52 THEN NULL WHEN - 3 / - - 23 + 44 + 9 THEN + 62 END AS col0
----
NULL

query I rowsort
SELECT + 34 * 66 * - + 98
----
-219912

query I rowsort
SELECT DISTINCT - 91 * - 69 AS col1
----
6279

onlyif mysql # aggregate syntax: 
query I rowsort label-3481
SELECT - SUM( - - 26 ) * + COUNT( * ) col1
----
-26

skipif mysql # not compatible
query I rowsort label-3481
SELECT - SUM ( - - 26 ) * + COUNT ( * ) col1
----
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-3482
SELECT ALL + - 97 DIV + 78
----
-1

skipif mysql # not compatible
query I rowsort label-3482
SELECT ALL + - 97 / + 78
----
-1

query II rowsort
SELECT DISTINCT + 27, 83 * + - 64 AS col0
----
27
-5312

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3484
SELECT + - 77 - CASE - - 88 WHEN + 72 THEN CASE + MAX( DISTINCT - + 10 ) WHEN - 55 * + 27 + + - 6 + COUNT( ALL 8 ) THEN NULL WHEN 91 THEN 78 * CAST( NULL AS SIGNED ) ELSE - 56 * 92 + 56 * - CAST( - 88 AS SIGNED ) END ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3484
SELECT + - 77 - CASE - - 88 WHEN + 72 THEN CASE + MAX ( DISTINCT - + 10 ) WHEN - 55 * + 27 + + - 6 + COUNT ( ALL 8 ) THEN NULL WHEN 91 THEN 78 * CAST ( NULL AS INTEGER ) ELSE - 56 * 92 + 56 * - CAST ( - 88 AS INTEGER ) END ELSE NULL END
----
NULL

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

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

query II rowsort
SELECT DISTINCT + 4 AS col0, - ( - 93 ) + + + 95 + + + 73
----
4
261

onlyif mysql # aggregate syntax: 
query I rowsort label-3487
SELECT - - COUNT( * ) * + 61 + 67
----
128

skipif mysql # not compatible
query I rowsort label-3487
SELECT - - COUNT ( * ) * + 61 + 67
----
128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3488
SELECT ALL - + 18 * - + MAX( ALL + + 14 ) + + - 51 + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3488
SELECT ALL - + 18 * - + MAX ( ALL + + 14 ) + + - 51 + + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 9 * - 81 - - 9 + - 42
----
696

onlyif mysql # aggregate syntax: 
query II rowsort label-3490
SELECT 91 AS col1, COUNT( * ) * - - COUNT( * ) + + NULLIF ( 71, COUNT( * ) ) AS col1
----
91
72

skipif mysql # not compatible
query II rowsort label-3490
SELECT 91 AS col1, COUNT ( * ) * - - COUNT ( * ) + + NULLIF ( 71, COUNT ( * ) ) AS col1
----
91
72

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

skipif mysql # not compatible
query I rowsort label-3491
SELECT COUNT ( * ) * + 81 - 60 AS col2
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3492
SELECT ALL + AVG ( ALL + + CAST( NULL AS SIGNED ) ) * + - 29 * + + 74 + COUNT( * ) + - - CASE + 75 WHEN - 89 THEN 75 + - 9 END * 17 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3492
SELECT ALL + AVG ( ALL + + CAST ( NULL AS INTEGER ) ) * + - 29 * + + 74 + COUNT ( * ) + - - CASE + 75 WHEN - 89 THEN 75 + - 9 END * 17 AS col2
----
NULL

query II rowsort
SELECT - 86 * - 80 AS col0, + 44 + 22 * + 39 AS col1
----
6880
902

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3494
SELECT ALL + + 96 * 89 DIV - + ( - 93 ) DIV + - COUNT( * ) + - + 11 + + - 88
----
-190

skipif mysql # not compatible
query I rowsort label-3494
SELECT ALL + + 96 * 89 / - + ( - 93 ) / + - COUNT ( * ) + - + 11 + + - 88
----
-190

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3495
SELECT DISTINCT - ( ( 22 ) ) * + 15 + 70 + - - COUNT( * ) + NULLIF ( - 75, - - 28 + - + 3 * CAST( 69 AS SIGNED ) ) col2
----
-334

skipif mysql # not compatible
query I rowsort label-3495
SELECT DISTINCT - ( ( 22 ) ) * + 15 + 70 + - - COUNT ( * ) + NULLIF ( - 75, - - 28 + - + 3 * CAST ( 69 AS INTEGER ) ) col2
----
-334

onlyif mysql # DIV for integer division: 
query I rowsort label-3496
SELECT + 30 DIV NULLIF ( + 46, - 70 )
----
0

skipif mysql # not compatible
query I rowsort label-3496
SELECT + 30 / NULLIF ( + 46, - 70 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3497
SELECT - 84 * COUNT( * ) - - 30
----
-54

skipif mysql # not compatible
query I rowsort label-3497
SELECT - 84 * COUNT ( * ) - - 30
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3498
SELECT - COALESCE ( + 88, - CAST( NULL AS SIGNED ) ) AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-3498
SELECT - COALESCE ( + 88, - CAST ( NULL AS INTEGER ) ) AS col0
----
-88

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3500
SELECT - 12 * COUNT( - 66 ) col1
----
-12

skipif mysql # not compatible
query I rowsort label-3500
SELECT - 12 * COUNT ( - 66 ) col1
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3501
SELECT ALL COALESCE ( + + COUNT( * ), - 57 - - + CAST( + 39 AS SIGNED ) + ( 3 ) DIV COUNT( * ) * + 91 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3501
SELECT ALL COALESCE ( + + COUNT ( * ), - 57 - - + CAST ( + 39 AS INTEGER ) + ( 3 ) / COUNT ( * ) * + 91 ) AS col2
----
1

query II rowsort
SELECT ALL 58 * + 29 AS col0, 68 * 25 + 25 AS col0
----
1682
1725

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3503
SELECT + CASE + ( + 42 ) WHEN 12 * + 60 + - 75 THEN + CASE ( 15 ) WHEN - 72 THEN + + AVG ( ALL - 43 ) - 90 WHEN 56 + 83 THEN 18 + + ( - 53 - - ( COUNT( * ) ) / 77 ) END ELSE - 79 * + COUNT( * ) END + 53 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3503
SELECT + CASE + ( + 42 ) WHEN 12 * + 60 + - 75 THEN + CASE ( 15 ) WHEN - 72 THEN + + AVG ( ALL - 43 ) - 90 WHEN 56 + 83 THEN 18 + + ( - 53 - - ( COUNT ( * ) ) / 77 ) END ELSE - 79 * + COUNT ( * ) END + 53 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL + ( + 85 ) + 99 AS col2
----
184

onlyif mysql # aggregate syntax: 
query II rowsort label-3505
SELECT DISTINCT 98 * + + COUNT( * ), 11 AS col1
----
98
11

skipif mysql # not compatible
query II rowsort label-3505
SELECT DISTINCT 98 * + + COUNT ( * ), 11 AS col1
----
98
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3506
SELECT DISTINCT 57 - + CAST( - - 68 AS SIGNED )
----
-11

skipif mysql # not compatible
query I rowsort label-3506
SELECT DISTINCT 57 - + CAST ( - - 68 AS INTEGER )
----
-11

query II rowsort
SELECT - ( + - 68 ) AS col0, 71 col2
----
68
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3508
SELECT + + 69 + + MAX( DISTINCT 78 ) DIV - 73 + - 31
----
37

skipif mysql # not compatible
query I rowsort label-3508
SELECT + + 69 + + MAX ( DISTINCT 78 ) / - 73 + - 31
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3509
SELECT ALL COALESCE ( - COUNT( * ), - + 14 ) - 14
----
-15

skipif mysql # not compatible
query I rowsort label-3509
SELECT ALL COALESCE ( - COUNT ( * ), - + 14 ) - 14
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-3510
SELECT + 32 * + + 85 * - - COUNT( - - 1 )
----
2720

skipif mysql # not compatible
query I rowsort label-3510
SELECT + 32 * + + 85 * - - COUNT ( - - 1 )
----
2720

onlyif mysql # aggregate syntax: 
query I rowsort label-3511
SELECT + + SUM( DISTINCT - 93 ) + - 66 * + + 35 AS col1
----
-2403

skipif mysql # not compatible
query I rowsort label-3511
SELECT + + SUM ( DISTINCT - 93 ) + - 66 * + + 35 AS col1
----
-2403

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3512
SELECT ALL - ( - 13 ) AS col1, CASE + 45 WHEN 57 / - + ( + 66 ) / - - 23 + - 89 + + 62 * - + 8 THEN + 56 * - CASE NULLIF ( - 74, - CAST( 22 AS SIGNED ) / - AVG ( ALL CAST( NULL AS DECIMAL ) - 78 ) + 13 * + COUNT( * ) ) * 48 WHEN - 22 + - 53 * + ( 23 * SUM( ALL + 99 ) ) THEN - 18 ELSE - 34 END + - 65 * + 58 WHEN 7 * - 77 THEN NULL WHEN - 16 THEN + 67 ELSE - CAST( - MAX( DISTINCT 0 ) AS SIGNED ) * - 46 END AS col1
----
13
0

skipif mysql # not compatible
query II rowsort label-3512
SELECT ALL - ( - 13 ) AS col1, CASE + 45 WHEN 57 / - + ( + 66 ) / - - 23 + - 89 + + 62 * - + 8 THEN + 56 * - CASE NULLIF ( - 74, - CAST ( 22 AS INTEGER ) / - AVG ( ALL CAST ( NULL AS REAL ) - 78 ) + 13 * + COUNT ( * ) ) * 48 WHEN - 22 + - 53 * + ( 23 * SUM ( ALL + 99 ) ) THEN - 18 ELSE - 34 END + - 65 * + 58 WHEN 7 * - 77 THEN NULL WHEN - 16 THEN + 67 ELSE - CAST ( - MAX ( DISTINCT 0 ) AS INTEGER ) * - 46 END AS col1
----
13
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3513
SELECT ALL + COALESCE ( - CAST( NULL AS SIGNED ), + 98 * CAST( + - 57 AS SIGNED ), + 18 )
----
-5586

skipif mysql # not compatible
query I rowsort label-3513
SELECT ALL + COALESCE ( - CAST ( NULL AS INTEGER ), + 98 * CAST ( + - 57 AS INTEGER ), + 18 )
----
-5586

query I rowsort
SELECT ALL + - 95 * + 55 - + 31 AS col2
----
-5256

onlyif mysql # aggregate syntax: 
query I rowsort label-3515
SELECT - 77 - - MIN( DISTINCT + + 75 ) col1
----
-2

skipif mysql # not compatible
query I rowsort label-3515
SELECT - 77 - - MIN ( DISTINCT + + 75 ) col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3516
SELECT - 74 * - - COUNT( * ) + 83 * 87 col0
----
7147

skipif mysql # not compatible
query I rowsort label-3516
SELECT - 74 * - - COUNT ( * ) + 83 * 87 col0
----
7147

onlyif mysql # DIV for integer division: 
query II rowsort label-3517
SELECT + 34 DIV + 91, - 36 AS col2
----
0
-36

skipif mysql # not compatible
query II rowsort label-3517
SELECT + 34 / + 91, - 36 AS col2
----
0
-36

query I rowsort
SELECT - 4 * + - 53 + 51 col0
----
263

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

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

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

query I rowsort
SELECT DISTINCT 45 * 75 * + 14 AS col1
----
47250

query I rowsort
SELECT - + 16 + + 86
----
70

query I rowsort
SELECT ALL + 31 * - 81 + + CASE + - 97 WHEN + 31 THEN - 13 END + - 65 col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3524
SELECT DISTINCT - 32 DIV - - COALESCE ( + ( - COUNT( * ) ), - ( - 71 ) + - - 92 + + COUNT( * ) * - + 96 ), + COUNT( * ) AS col0
----
32
1

skipif mysql # not compatible
query II rowsort label-3524
SELECT DISTINCT - 32 / - - COALESCE ( + ( - COUNT ( * ) ), - ( - 71 ) + - - 92 + + COUNT ( * ) * - + 96 ), + COUNT ( * ) AS col0
----
32
1

query I rowsort
SELECT - 48 + + - 23
----
-71

query I rowsort
SELECT + 18 * - 61 AS col1
----
-1098

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3527
SELECT + 17 * - 87 + + + 45 DIV - + 24 + + 82 * COUNT( DISTINCT - + ( 16 ) ) col1
----
-1398

skipif mysql # not compatible
query I rowsort label-3527
SELECT + 17 * - 87 + + + 45 / - + 24 + + 82 * COUNT ( DISTINCT - + ( 16 ) ) col1
----
-1398

onlyif mysql # aggregate syntax: 
query I rowsort label-3528
SELECT NULLIF ( COUNT( * ), + 11 )
----
1

skipif mysql # not compatible
query I rowsort label-3528
SELECT NULLIF ( COUNT ( * ), + 11 )
----
1

query I rowsort
SELECT + COALESCE ( 55, 77, + 79 )
----
55

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3531
SELECT DISTINCT - COUNT( * ) * 43 + ( - + 99 )
----
-142

skipif mysql # not compatible
query I rowsort label-3531
SELECT DISTINCT - COUNT ( * ) * 43 + ( - + 99 )
----
-142

onlyif mysql # aggregate syntax: 
query I rowsort label-3532
SELECT ALL + CASE WHEN 26 IS NOT NULL THEN - 43 ELSE + - 81 * + 98 - COUNT( * ) END
----
-43

skipif mysql # not compatible
query I rowsort label-3532
SELECT ALL + CASE WHEN 26 IS NOT NULL THEN - 43 ELSE + - 81 * + 98 - COUNT ( * ) END
----
-43

onlyif mysql # aggregate syntax: 
query III rowsort label-3533
SELECT - 31 AS col1, 81 * COUNT( * ) * 17, - ( - - 20 ) AS col1
----
-31
1377
-20

skipif mysql # not compatible
query III rowsort label-3533
SELECT - 31 AS col1, 81 * COUNT ( * ) * 17, - ( - - 20 ) AS col1
----
-31
1377
-20

query I rowsort
SELECT DISTINCT + 69 * 97 * - + 0 AS col2
----
0

query I rowsort
SELECT ALL 91 * + - NULLIF ( 25, - + 10 ) - + 62 * + 24 * - 85 AS col1
----
124205

query I rowsort
SELECT - ( + 34 ) * 40
----
-1360

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3538
SELECT ALL CAST( NULL AS SIGNED ) AS col0, + COUNT( ALL - 66 ) + CASE - COUNT( * ) WHEN CASE - 39 WHEN - 51 THEN + - 72 END THEN + - 68 ELSE NULL END
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3538
SELECT ALL CAST ( NULL AS INTEGER ) AS col0, + COUNT ( ALL - 66 ) + CASE - COUNT ( * ) WHEN CASE - 39 WHEN - 51 THEN + - 72 END THEN + - 68 ELSE NULL END
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3539
SELECT - 28 - + ( - COUNT( * ) ) + + 94 * - ( - 67 ) + + 94 AS col1
----
6365

skipif mysql # not compatible
query I rowsort label-3539
SELECT - 28 - + ( - COUNT ( * ) ) + + 94 * - ( - 67 ) + + 94 AS col1
----
6365

query I rowsort
SELECT - 22 * - 6 * - 40
----
-5280

onlyif mysql # aggregate syntax: 
query II rowsort label-3541
SELECT + 28 * + COUNT( * ) * 75 * + + 57 AS col2, 93 + - + 96
----
119700
-3

skipif mysql # not compatible
query II rowsort label-3541
SELECT + 28 * + COUNT ( * ) * 75 * + + 57 AS col2, 93 + - + 96
----
119700
-3

query I rowsort
SELECT - ( COALESCE ( + - 27, - + 37 + 79 ) ) col0
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-3543
SELECT DISTINCT 51 DIV 76 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3543
SELECT DISTINCT 51 / 76 AS col2
----
0

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

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

query I rowsort
SELECT + 25 * - 56
----
-1400

onlyif mysql # aggregate syntax: 
query I rowsort label-3546
SELECT - + MAX( + 49 ) AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-3546
SELECT - + MAX ( + 49 ) AS col2
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-3547
SELECT ALL + COALESCE ( 86, + 64 * 9, - COUNT( * ) )
----
86

skipif mysql # not compatible
query I rowsort label-3547
SELECT ALL + COALESCE ( 86, + 64 * 9, - COUNT ( * ) )
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-3548
SELECT DISTINCT - - 89 DIV 32
----
2

skipif mysql # not compatible
query I rowsort label-3548
SELECT DISTINCT - - 89 / 32
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3549
SELECT ALL COALESCE ( - SUM( + 3 ), - + 82, - - 89 )
----
-3

skipif mysql # not compatible
query I rowsort label-3549
SELECT ALL COALESCE ( - SUM ( + 3 ), - + 82, - - 89 )
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-3550
SELECT 36 DIV - 16
----
-2

skipif mysql # not compatible
query I rowsort label-3550
SELECT 36 / - 16
----
-2

query I rowsort
SELECT - 5 * - 93 * 26 - + ( - - 10 ) AS col2
----
12080

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

skipif mysql # not compatible
query I rowsort label-3552
SELECT - 75 + - CAST ( NULL AS INTEGER ) + 43 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3553
SELECT ALL 45 AS col1, - CASE + - ( + 30 ) WHEN 33 + + ( - SUM( ALL + - 52 ) ) + 7 THEN - 27 + - + COUNT( * ) WHEN 44 THEN NULL END col2
----
45
NULL

skipif mysql # not compatible
query II rowsort label-3553
SELECT ALL 45 AS col1, - CASE + - ( + 30 ) WHEN 33 + + ( - SUM ( ALL + - 52 ) ) + 7 THEN - 27 + - + COUNT ( * ) WHEN 44 THEN NULL END col2
----
45
NULL

query I rowsort
SELECT NULLIF ( + ( - 0 ), 11 ) AS col1
----
0

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

skipif mysql # not compatible
query I rowsort label-3555
SELECT ALL - COUNT ( * ) + - 50 AS col1
----
-51

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

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

query I rowsort
SELECT ALL + 89 + - 98 + + + 91 col1
----
82

query I rowsort
SELECT ALL 94 + - 87
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-3559
SELECT SUM( - 89 ) DIV - 30 AS col1, - 50 * ( COUNT( * ) ), - 88 DIV ( - 43 ) AS col0
----
2
-50
2

skipif mysql # not compatible
query III rowsort label-3559
SELECT SUM ( - 89 ) / - 30 AS col1, - 50 * ( COUNT ( * ) ), - 88 / ( - 43 ) AS col0
----
2
-50
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3560
SELECT ALL - CAST( + ( MIN( ALL - ( 30 ) ) ) AS SIGNED ) AS col1
----
30

skipif mysql # not compatible
query I rowsort label-3560
SELECT ALL - CAST ( + ( MIN ( ALL - ( 30 ) ) ) AS INTEGER ) AS col1
----
30

query II rowsort
SELECT + 91, 5 AS col2
----
91
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3562
SELECT - 21 + COUNT( * ) * + 46 * COUNT( * ) * + - 59
----
-2735

skipif mysql # not compatible
query I rowsort label-3562
SELECT - 21 + COUNT ( * ) * + 46 * COUNT ( * ) * + - 59
----
-2735

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3563
SELECT 53 DIV NULLIF ( COUNT( * ), - + MAX( DISTINCT + + CAST( NULL AS SIGNED ) ) )
----
53

skipif mysql # not compatible
query I rowsort label-3563
SELECT 53 / NULLIF ( COUNT ( * ), - + MAX ( DISTINCT + + CAST ( NULL AS INTEGER ) ) )
----
53

query I rowsort
SELECT ALL 30 + + 55 + 52 + + ( + 47 )
----
184

query II rowsort
SELECT - 75 * 58 * + 20 - + 70 AS col0, ( + + 53 ) * + 0 AS col2
----
-87070
0

query I rowsort
SELECT ALL 94 * + - 44 AS col1
----
-4136

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3567
SELECT CAST( - - 28 AS SIGNED ) + - 66
----
-38

skipif mysql # not compatible
query I rowsort label-3567
SELECT CAST ( - - 28 AS INTEGER ) + - 66
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-3568
SELECT ALL - COALESCE ( + 65, - + 73 + SUM( ALL 19 ) ) AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-3568
SELECT ALL - COALESCE ( + 65, - + 73 + SUM ( ALL 19 ) ) AS col2
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3569
SELECT DISTINCT CAST( 57 AS SIGNED ) * + 17 * + + COUNT( * ) * 73 + - COUNT( * )
----
70736

skipif mysql # not compatible
query I rowsort label-3569
SELECT DISTINCT CAST ( 57 AS INTEGER ) * + 17 * + + COUNT ( * ) * 73 + - COUNT ( * )
----
70736

onlyif mysql # DIV for integer division: 
query I rowsort label-3570
SELECT 68 DIV + + ( - 39 )
----
-1

skipif mysql # not compatible
query I rowsort label-3570
SELECT 68 / + + ( - 39 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3571
SELECT CAST( NULL AS SIGNED ) + NULLIF ( - 37, 19 * 78 * COUNT( * ) + + + 3 + MAX( DISTINCT 7 ) / + + COUNT( * ) * - + 55 + - - 87 ) + AVG ( 8 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3571
SELECT CAST ( NULL AS INTEGER ) + NULLIF ( - 37, 19 * 78 * COUNT ( * ) + + + 3 + MAX ( DISTINCT 7 ) / + + COUNT ( * ) * - + 55 + - - 87 ) + AVG ( 8 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3572
SELECT + COUNT( * ) * + + 48 DIV + 12 - + 61 * - 20 - 28
----
1196

skipif mysql # not compatible
query I rowsort label-3572
SELECT + COUNT ( * ) * + + 48 / + 12 - + 61 * - 20 - 28
----
1196

onlyif mysql # aggregate syntax: 
query I rowsort label-3573
SELECT 87 - + NULLIF ( COUNT( * ), + + COUNT( * ) + - 56 ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-3573
SELECT 87 - + NULLIF ( COUNT ( * ), + + COUNT ( * ) + - 56 ) AS col2
----
86

query I rowsort
SELECT ALL - 93 - - 74
----
-19

query II rowsort
SELECT ALL - 20 * - 50 AS col2, 41 * + 15
----
1000
615

query I rowsort
SELECT + 80 * + - 84 + 71 + + 21
----
-6628

query II rowsort
SELECT + 14 + - 58 AS col1, + 97 AS col1
----
-44
97

query I rowsort
SELECT ALL - 56 * + CASE - 61 WHEN AVG ( ALL - 0 ) / 34 THEN NULL ELSE + 36 + - - 99 END
----
-7560

query I rowsort
SELECT - 23 * + - 88
----
2024

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

skipif mysql # not compatible
query I rowsort label-3580
SELECT + 89 * - + 58 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - NULLIF ( - 14, ( - 52 ) - + + 45 + - + AVG ( 65 ) )
----
14

query I rowsort
SELECT - - NULLIF ( + ( - 65 ), - 95 ) AS col1
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3583
SELECT ALL + 29 + - - CAST( NULL AS SIGNED ), 41 col2
----
NULL
41

skipif mysql # not compatible
query II rowsort label-3583
SELECT ALL + 29 + - - CAST ( NULL AS INTEGER ), 41 col2
----
NULL
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3584
SELECT 61 + + COUNT( * ) + - 70 col2
----
-8

skipif mysql # not compatible
query I rowsort label-3584
SELECT 61 + + COUNT ( * ) + - 70 col2
----
-8

query I rowsort
SELECT DISTINCT NULLIF ( + 51, - 30 )
----
51

query I rowsort
SELECT COALESCE ( + - 92, - 82 )
----
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-3587
SELECT ALL - 69 + - 61 + - 56 * + + 8, COUNT( * ) - 85 - - + 17 + 5 + - 49 * 41 * + 71 * - 90 AS col1
----
-578
12837448

skipif mysql # not compatible
query II rowsort label-3587
SELECT ALL - 69 + - 61 + - 56 * + + 8, COUNT ( * ) - 85 - - + 17 + 5 + - 49 * 41 * + 71 * - 90 AS col1
----
-578
12837448

query I rowsort
SELECT - ( - 68 ) * 67 - + 68 AS col2
----
4488

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3589
SELECT 96 DIV + MIN( ALL + 70 ) + - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-3589
SELECT 96 / + MIN ( ALL + 70 ) + - COUNT ( * )
----
0

query I rowsort
SELECT 33 + 24
----
57

query I rowsort
SELECT DISTINCT - 87 * 92
----
-8004

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3592
SELECT - COALESCE ( + CAST( - - 87 AS SIGNED ), 45, - 29 ) * - ( 30 ) * - 90 + + + 7 AS col2
----
-234893

skipif mysql # not compatible
query I rowsort label-3592
SELECT - COALESCE ( + CAST ( - - 87 AS INTEGER ), 45, - 29 ) * - ( 30 ) * - 90 + + + 7 AS col2
----
-234893

onlyif mysql # aggregate syntax: 
query I rowsort label-3593
SELECT ALL + 65 * - - ( + 24 ) - + 26 + SUM( DISTINCT + - 48 ) - + 63 * + 84 AS col0
----
-3806

skipif mysql # not compatible
query I rowsort label-3593
SELECT ALL + 65 * - - ( + 24 ) - + 26 + SUM ( DISTINCT + - 48 ) - + 63 * + 84 AS col0
----
-3806

query I rowsort
SELECT DISTINCT - ( + 40 ) col0
----
-40

query I rowsort
SELECT ALL 77 - 49 col2
----
28

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

skipif mysql # not compatible
query I rowsort label-3596
SELECT SUM ( DISTINCT - 97 )
----
-97

query I rowsort
SELECT 71 * - 29
----
-2059

onlyif mysql # aggregate syntax: 
query I rowsort label-3598
SELECT 78 + - MIN( + 2 )
----
76

skipif mysql # not compatible
query I rowsort label-3598
SELECT 78 + - MIN ( + 2 )
----
76

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

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

query I rowsort
SELECT + 71 * + - 77 + + 26 * + 88
----
-3179

onlyif mysql # aggregate syntax: 
query I rowsort label-3601
SELECT + MIN( - 98 ) AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-3601
SELECT + MIN ( - 98 ) AS col2
----
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3602
SELECT 61 * + - CAST( - ( 82 ) AS SIGNED ) * - COUNT( * ), - 63 col2
----
-5002
-63

skipif mysql # not compatible
query II rowsort label-3602
SELECT 61 * + - CAST ( - ( 82 ) AS INTEGER ) * - COUNT ( * ), - 63 col2
----
-5002
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-3603
SELECT ALL 5 DIV 66 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3603
SELECT ALL 5 / 66 AS col1
----
0

query I rowsort
SELECT ALL + COALESCE ( + 45, - + 87 * + 38 )
----
45

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3607
SELECT + CASE 79 WHEN 28 + - CASE - 86 WHEN 46 - + - 6 - - 88 * COUNT( * ) / - CAST( + 86 AS SIGNED ) + - CAST( + + ( + COUNT( * ) ) AS SIGNED ) + 39 * 19 THEN - 26 * MAX( ALL 24 ) + 58 END + 47 THEN NULL WHEN 24 / + COALESCE ( COALESCE ( - 41, 16, - 86 * 35 ), + 14, - 51 ) + - 83 THEN + 59 - ( 27 + - SUM( - 38 + - 67 ) ) END / - 31
----
NULL

skipif mysql # not compatible
query I rowsort label-3607
SELECT + CASE 79 WHEN 28 + - CASE - 86 WHEN 46 - + - 6 - - 88 * COUNT ( * ) / - CAST ( + 86 AS INTEGER ) + - CAST ( + + ( + COUNT ( * ) ) AS INTEGER ) + 39 * 19 THEN - 26 * MAX ( ALL 24 ) + 58 END + 47 THEN NULL WHEN 24 / + COALESCE ( COALESCE ( - 41, 16, - 86 * 35 ), + 14, - 51 ) + - 83 THEN + 59 - ( 27 + - SUM ( - 38 + - 67 ) ) END / - 31
----
NULL

query I rowsort
SELECT ALL 75 + + + ( + 76 ) * 24
----
1899

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3610
SELECT + + COALESCE ( + ( 92 ), + 62 ) - - CAST( + 55 AS SIGNED ) + NULLIF ( - 55, - ( + 71 ) / - 34 ) * ( COUNT( + 34 ) ) AS col1
----
92

skipif mysql # not compatible
query I rowsort label-3610
SELECT + + COALESCE ( + ( 92 ), + 62 ) - - CAST ( + 55 AS INTEGER ) + NULLIF ( - 55, - ( + 71 ) / - 34 ) * ( COUNT ( + 34 ) ) AS col1
----
92

query I rowsort
SELECT - + 30 * + + 14 AS col2
----
-420

onlyif mysql # DIV for integer division: 
query I rowsort label-3612
SELECT ALL - 24 DIV - 69 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3612
SELECT ALL - 24 / - 69 AS col2
----
0

query I rowsort
SELECT - 43 + 27 AS col2
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-3614
SELECT - - MIN( DISTINCT - 27 ) AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-3614
SELECT - - MIN ( DISTINCT - 27 ) AS col0
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3615
SELECT - CAST( - + 66 AS SIGNED ) + 1
----
67

skipif mysql # not compatible
query I rowsort label-3615
SELECT - CAST ( - + 66 AS INTEGER ) + 1
----
67

query I rowsort
SELECT ALL - - 59 + - 49
----
10

query I rowsort
SELECT DISTINCT 66 + + NULLIF ( 78, - + 42 )
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-3618
SELECT - COUNT( * ) - - 32
----
31

skipif mysql # not compatible
query I rowsort label-3618
SELECT - COUNT ( * ) - - 32
----
31

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

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

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

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

query I rowsort
SELECT ALL - + 17 + 81 col2
----
64

query I rowsort
SELECT + 81 * - ( - - 73 ) col0
----
-5913

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3623
SELECT - - ( - 45 ) + - 70 * 68 * - - 17 * - + 52 * - CASE + + COUNT( * ) WHEN ( 4 ) THEN NULL WHEN 71 THEN NULL ELSE 32 DIV 35 * - + 54 * + 87 DIV - COUNT( * ) + - 30 END
----
126235155

skipif mysql # not compatible
query I rowsort label-3623
SELECT - - ( - 45 ) + - 70 * 68 * - - 17 * - + 52 * - CASE + + COUNT ( * ) WHEN ( 4 ) THEN NULL WHEN 71 THEN NULL ELSE 32 / 35 * - + 54 * + 87 / - COUNT ( * ) + - 30 END
----
126235155

query I rowsort
SELECT DISTINCT - 6 - - 23
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-3625
SELECT - + COUNT( * ) + + 74 + + CASE 74 WHEN ( 2 ) THEN 52 ELSE NULL END / - ( 68 ) + + 1 * 82 * + 67 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3625
SELECT - + COUNT ( * ) + + 74 + + CASE 74 WHEN ( 2 ) THEN 52 ELSE NULL END / - ( 68 ) + + 1 * 82 * + 67 AS col2
----
NULL

query II rowsort
SELECT - 37 col0, ( 36 )
----
-37
36

onlyif mysql # DIV for integer division: 
query II rowsort label-3627
SELECT DISTINCT + 10 DIV - + 52 AS col1, 65
----
0
65

skipif mysql # not compatible
query II rowsort label-3627
SELECT DISTINCT + 10 / - + 52 AS col1, 65
----
0
65

onlyif mysql # DIV for integer division: 
query I rowsort label-3628
SELECT - 48 DIV - 8 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-3628
SELECT - 48 / - 8 AS col0
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-3629
SELECT ALL + MIN( - 97 ), + 35 AS col1
----
-97
35

skipif mysql # not compatible
query II rowsort label-3629
SELECT ALL + MIN ( - 97 ), + 35 AS col1
----
-97
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3630
SELECT DISTINCT 94 * - + COALESCE ( - CAST( - ( 68 ) AS SIGNED ), + 94 * CAST( 64 AS SIGNED ) + - - 75, 54 ) AS col2
----
-6392

skipif mysql # not compatible
query I rowsort label-3630
SELECT DISTINCT 94 * - + COALESCE ( - CAST ( - ( 68 ) AS INTEGER ), + 94 * CAST ( 64 AS INTEGER ) + - - 75, 54 ) AS col2
----
-6392

query I rowsort
SELECT ALL + 93 * - 70 AS col0
----
-6510

query I rowsort
SELECT ALL - 38 * - - ( + 60 ) col0
----
-2280

onlyif mysql # aggregate syntax: 
query I rowsort label-3633
SELECT CASE 40 WHEN 96 * 54 THEN NULL ELSE + - 58 - COUNT( * ) END AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-3633
SELECT CASE 40 WHEN 96 * 54 THEN NULL ELSE + - 58 - COUNT ( * ) END AS col2
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-3634
SELECT DISTINCT 35 * COUNT( - 80 ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-3634
SELECT DISTINCT 35 * COUNT ( - 80 ) AS col1
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3635
SELECT + COUNT( * ) * 71 - + CAST( - 0 AS SIGNED ) AS col1, 95 col2
----
71
95

skipif mysql # not compatible
query II rowsort label-3635
SELECT + COUNT ( * ) * 71 - + CAST ( - 0 AS INTEGER ) AS col1, 95 col2
----
71
95

query II rowsort
SELECT ALL + ( - 98 ) AS col1, + 37 * 66
----
-98
2442

query I rowsort
SELECT ALL - 39 * 31 AS col1
----
-1209

onlyif mysql # aggregate syntax: 
query I rowsort label-3638
SELECT DISTINCT 85 * 55 / + 34 + - 24 + - - CASE 80 WHEN - + 46 THEN 82 END * - 44 * - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3638
SELECT DISTINCT 85 * 55 / + 34 + - 24 + - - CASE 80 WHEN - + 46 THEN 82 END * - 44 * - COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3639
SELECT ALL MAX( - 65 ) * 34 * + + ( - ( + 47 ) ) + 22 AS col2
----
103892

skipif mysql # not compatible
query I rowsort label-3639
SELECT ALL MAX ( - 65 ) * 34 * + + ( - ( + 47 ) ) + 22 AS col2
----
103892

onlyif mysql # aggregate syntax: 
query I rowsort label-3640
SELECT + NULLIF ( - - COUNT( * ), - 79 * COALESCE ( 83, - - 54 / - 29 - - COUNT( * ) ) - + ( + - 21 ) * - 76 * 88 + + 97 + 16 * - 70 + 45 ) * - 74 AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-3640
SELECT + NULLIF ( - - COUNT ( * ), - 79 * COALESCE ( 83, - - 54 / - 29 - - COUNT ( * ) ) - + ( + - 21 ) * - 76 * 88 + + 97 + 16 * - 70 + 45 ) * - 74 AS col2
----
-74

query I rowsort
SELECT ALL 59 * + - 21 + + 12 + + + 9 AS col0
----
-1218

query I rowsort
SELECT + 72 * + - 82 + 94 + + - 47 * - - 72
----
-9194

query I rowsort
SELECT - 16 + 72 AS col2
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3644
SELECT + 40 * - 56 + + CAST( + COALESCE ( 6, + - 22 ) AS SIGNED ) + - ( - - 47 ) - - ( 17 )
----
-2264

skipif mysql # not compatible
query I rowsort label-3644
SELECT + 40 * - 56 + + CAST ( + COALESCE ( 6, + - 22 ) AS INTEGER ) + - ( - - 47 ) - - ( 17 )
----
-2264

query I rowsort
SELECT + - 84 - + - 43 AS col0
----
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-3646
SELECT DISTINCT - 8 * 72 + - - 67 * + 71 * 75 DIV 25 * - + 16 + + - ( + + ( - - 68 ) )
----
-228980

skipif mysql # not compatible
query I rowsort label-3646
SELECT DISTINCT - 8 * 72 + - - 67 * + 71 * 75 / 25 * - + 16 + + - ( + + ( - - 68 ) )
----
-228980

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3648
SELECT DISTINCT 59 DIV 73 DIV - - 90
----
0

skipif mysql # not compatible
query I rowsort label-3648
SELECT DISTINCT 59 / 73 / - - 90
----
0

query I rowsort
SELECT + 98 + + 67
----
165

query I rowsort
SELECT ALL + 43 + + 9
----
52

query II rowsort
SELECT DISTINCT 14 AS col2, - 37 AS col1
----
14
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-3652
SELECT DISTINCT - NULLIF ( 71, 76 + COUNT( * ) ) - + 13
----
-84

skipif mysql # not compatible
query I rowsort label-3652
SELECT DISTINCT - NULLIF ( 71, 76 + COUNT ( * ) ) - + 13
----
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-3653
SELECT + - ( - 13 ) DIV + 91 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3653
SELECT + - ( - 13 ) / + 91 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3654
SELECT + + 58 * - ( + CAST( + + CAST( NULL AS DECIMAL ) AS SIGNED ) ) * + + 49 * - 67 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3654
SELECT + + 58 * - ( + CAST ( + + CAST ( NULL AS REAL ) AS INTEGER ) ) * + + 49 * - 67 AS col1
----
NULL

query I rowsort
SELECT + 74 + 37 AS col2
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-3656
SELECT + + COUNT( ALL - 71 ) * - CASE + 92 WHEN + + 33 * MAX( 22 ) + - + AVG ( ( + 15 ) ) THEN NULL ELSE - 23 END AS col0
----
23

skipif mysql # not compatible
query I rowsort label-3656
SELECT + + COUNT ( ALL - 71 ) * - CASE + 92 WHEN + + 33 * MAX ( 22 ) + - + AVG ( ( + 15 ) ) THEN NULL ELSE - 23 END AS col0
----
23

query II rowsort
SELECT - 43, 7 + + + 89 + + 47 col0
----
-43
143

query I rowsort
SELECT - + 8 + + 42
----
34

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

query II rowsort
SELECT - 93 col1, 30
----
-93
30

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3661
SELECT + 14 * CAST( 87 AS SIGNED ) - + 39 AS col0, 32 + 28 - - - 63 AS col1
----
1179
-3

skipif mysql # not compatible
query II rowsort label-3661
SELECT + 14 * CAST ( 87 AS INTEGER ) - + 39 AS col0, 32 + 28 - - - 63 AS col1
----
1179
-3

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

query II rowsort
SELECT DISTINCT 60, - 18 AS col0
----
60
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-3664
SELECT 32 AS col1, - 11 * + - ( COUNT( * ) ) + 29 AS col1
----
32
40

skipif mysql # not compatible
query II rowsort label-3664
SELECT 32 AS col1, - 11 * + - ( COUNT ( * ) ) + 29 AS col1
----
32
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3665
SELECT ALL NULLIF ( - - CASE 60 WHEN + 48 * + AVG ( ALL + + 14 ) + - COUNT( - CAST( 33 AS SIGNED ) ) THEN + COALESCE ( ( - 32 ), + 51 + 51 ) WHEN + 4 * + 89 * - 18 THEN NULL END, 9 * 54 + CAST( - 99 AS SIGNED ) ) - - 18 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3665
SELECT ALL NULLIF ( - - CASE 60 WHEN + 48 * + AVG ( ALL + + 14 ) + - COUNT ( - CAST ( 33 AS INTEGER ) ) THEN + COALESCE ( ( - 32 ), + 51 + 51 ) WHEN + 4 * + 89 * - 18 THEN NULL END, 9 * 54 + CAST ( - 99 AS INTEGER ) ) - - 18 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3666
SELECT 97 * MAX( + 54 ) * - 51 / - 51 + CAST( NULL AS SIGNED ) + - 33 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3666
SELECT 97 * MAX ( + 54 ) * - 51 / - 51 + CAST ( NULL AS INTEGER ) + - 33 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3667
SELECT + COUNT( ALL 68 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-3667
SELECT + COUNT ( ALL 68 ) col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3668
SELECT + 25 DIV 4 DIV - + 54 + 63 AS col0
----
63

skipif mysql # not compatible
query I rowsort label-3668
SELECT + 25 / 4 / - + 54 + 63 AS col0
----
63

query I rowsort
SELECT 97 + - 79 * - 81
----
6496

onlyif mysql # aggregate syntax: 
query I rowsort label-3670
SELECT ALL - COUNT( * ) + + - 69
----
-70

skipif mysql # not compatible
query I rowsort label-3670
SELECT ALL - COUNT ( * ) + + - 69
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3671
SELECT 68 + 70 / ( - 10 ) + CASE 46 WHEN + ( - CASE - 38 WHEN - ( - COUNT( * ) ) * + + ( + CAST( NULLIF ( COUNT( * ), COUNT( * ) * NULLIF ( 41, 59 ) * - 13 ) AS SIGNED ) ) + 78 THEN + 41 / + 22 END ) * 60 THEN 44 / - 78 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3671
SELECT 68 + 70 / ( - 10 ) + CASE 46 WHEN + ( - CASE - 38 WHEN - ( - COUNT ( * ) ) * + + ( + CAST ( NULLIF ( COUNT ( * ), COUNT ( * ) * NULLIF ( 41, 59 ) * - 13 ) AS INTEGER ) ) + 78 THEN + 41 / + 22 END ) * 60 THEN 44 / - 78 END
----
NULL

query I rowsort
SELECT DISTINCT - 52 + - ( - 1 ) AS col2
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3673
SELECT ALL - 7 + - + CAST( NULL AS SIGNED ) * + - 45 + 26 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3673
SELECT ALL - 7 + - + CAST ( NULL AS INTEGER ) * + - 45 + 26 col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3674
SELECT DISTINCT + 80 DIV 27 * 59 DIV 41 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-3674
SELECT DISTINCT + 80 / 27 * 59 / 41 AS col2
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3675
SELECT MAX( 90 ) / - + 21 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3675
SELECT MAX ( 90 ) / - + 21 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 67 * ( + 74 ) AS col0
----
4958

onlyif mysql # DIV for integer division: 
query I rowsort label-3677
SELECT ALL + 62 DIV - 68 * + + 77
----
0

skipif mysql # not compatible
query I rowsort label-3677
SELECT ALL + 62 / - 68 * + + 77
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3678
SELECT 71 * CAST( - 93 AS SIGNED ) + - 63 AS col2
----
-6666

skipif mysql # not compatible
query I rowsort label-3678
SELECT 71 * CAST ( - 93 AS INTEGER ) + - 63 AS col2
----
-6666

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

skipif mysql # not compatible
query I rowsort label-3679
SELECT + MAX ( - 3 )
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3680
SELECT 49 + CAST( + - COUNT( * ) AS SIGNED ) - CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) + - 84 * + 4 * - + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-3680
SELECT 49 + CAST ( + - COUNT ( * ) AS INTEGER ) - CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) + - 84 * + 4 * - + 99
----
NULL

query II rowsort
SELECT ALL 99 + + 35, COALESCE ( - 66, + 50 ) AS col0
----
134
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-3682
SELECT MAX( 74 ) col1
----
74

skipif mysql # not compatible
query I rowsort label-3682
SELECT MAX ( 74 ) col1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3683
SELECT ALL + COUNT( * ) * COUNT( * ) * - 14 * + 63
----
-882

skipif mysql # not compatible
query I rowsort label-3683
SELECT ALL + COUNT ( * ) * COUNT ( * ) * - 14 * + 63
----
-882

query I rowsort
SELECT ALL + CASE + 11 WHEN + 10 THEN - 19 WHEN - + 10 - + + 32 THEN - 11 END - - 9 - + ( - 7 ) + 33 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-3685
SELECT + 49 - - 38, 8 AS col1, + ( + 87 ) + 65 * - MAX( - + 3 ) + COALESCE ( - 53, - COALESCE ( 85, - ( + CAST( NULL AS SIGNED ) ) * - 90 ) + - - ( + MAX( + 75 ) ) ) AS col1
----
87
8
229

skipif mysql # not compatible
query III rowsort label-3685
SELECT + 49 - - 38, 8 AS col1, + ( + 87 ) + 65 * - MAX ( - + 3 ) + COALESCE ( - 53, - COALESCE ( 85, - ( + CAST ( NULL AS INTEGER ) ) * - 90 ) + - - ( + MAX ( + 75 ) ) ) AS col1
----
87
8
229

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3686
SELECT COUNT( * ) * - 37 AS col2, ( + COALESCE ( + 76, + 41, - - COALESCE ( 60, - SUM( + 20 ), + 69, - 42 + + ( - + ( + 60 ) ) ) ) ) * - 7 * + CAST( NULL AS DECIMAL ) * 89 col1
----
-37
NULL

skipif mysql # not compatible
query II rowsort label-3686
SELECT COUNT ( * ) * - 37 AS col2, ( + COALESCE ( + 76, + 41, - - COALESCE ( 60, - SUM ( + 20 ), + 69, - 42 + + ( - + ( + 60 ) ) ) ) ) * - 7 * + CAST ( NULL AS REAL ) * 89 col1
----
-37
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3687
SELECT + CAST( NULL AS SIGNED ) + - 70 AS col0, - 8 AS col0
----
NULL
-8

skipif mysql # not compatible
query II rowsort label-3687
SELECT + CAST ( NULL AS INTEGER ) + - 70 AS col0, - 8 AS col0
----
NULL
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3688
SELECT COUNT( * ) + + 19, + CAST( NULL AS SIGNED ) AS col1
----
20
NULL

skipif mysql # not compatible
query II rowsort label-3688
SELECT COUNT ( * ) + + 19, + CAST ( NULL AS INTEGER ) AS col1
----
20
NULL

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

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

query I rowsort
SELECT ( 69 ) col1
----
69

query II rowsort
SELECT DISTINCT 77 * 55 col0, 16
----
4235
16

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3692
SELECT DISTINCT CASE 1 WHEN - + 24 * 41 * - 62 + - 76 THEN + 72 WHEN + 73 * NULLIF ( 92, + - 9 * + COUNT( * ) * - + CAST( COUNT( * ) AS DECIMAL ) ) + - SUM( DISTINCT - 70 ) THEN - 22 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3692
SELECT DISTINCT CASE 1 WHEN - + 24 * 41 * - 62 + - 76 THEN + 72 WHEN + 73 * NULLIF ( 92, + - 9 * + COUNT ( * ) * - + CAST ( COUNT ( * ) AS REAL ) ) + - SUM ( DISTINCT - 70 ) THEN - 22 END
----
NULL

query I rowsort
SELECT ALL - ( - + 8 ) * - 85 + + 18 AS col1
----
-662

query I rowsort
SELECT DISTINCT 0 * + 25 AS col2
----
0

query I rowsort
SELECT 33 * + - 6
----
-198

query II rowsort
SELECT DISTINCT 11, 63 * 86 * + 45 AS col1
----
11
243810

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3698
SELECT 52 DIV 16 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-3698
SELECT 52 / 16 AS col0
----
3

query I rowsort
SELECT 97 * - 67 col1
----
-6499

onlyif mysql # aggregate syntax: 
query II rowsort label-3700
SELECT DISTINCT - 35 AS col1, ( 93 ) + 64 + - 93 + + + 83 + 64 * - 39 * + - ( - + CASE - ( - ( CASE - - 53 WHEN + ( 95 ) THEN NULL WHEN 39 THEN COUNT( * ) ELSE NULL END ) ) WHEN + 43 + 16 THEN - NULLIF ( + SUM( ALL 88 ), + 16 - 76 ) WHEN ( 74 ) THEN - 68 END ) * 2
----
-35
NULL

skipif mysql # not compatible
query II rowsort label-3700
SELECT DISTINCT - 35 AS col1, ( 93 ) + 64 + - 93 + + + 83 + 64 * - 39 * + - ( - + CASE - ( - ( CASE - - 53 WHEN + ( 95 ) THEN NULL WHEN 39 THEN COUNT ( * ) ELSE NULL END ) ) WHEN + 43 + 16 THEN - NULLIF ( + SUM ( ALL 88 ), + 16 - 76 ) WHEN ( 74 ) THEN - 68 END ) * 2
----
-35
NULL

query I rowsort
SELECT DISTINCT 23 + + ( - - 89 ) AS col1
----
112

query I rowsort
SELECT ALL 82 + - ( 15 )
----
67

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

skipif mysql # not compatible
query I rowsort label-3703
SELECT ALL + 75 * - + COUNT ( * ) * 2 AS col1
----
-150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3704
SELECT CAST( + 71 AS SIGNED ) * + 2 AS col2
----
142

skipif mysql # not compatible
query I rowsort label-3704
SELECT CAST ( + 71 AS INTEGER ) * + 2 AS col2
----
142

query II rowsort
SELECT DISTINCT - 25, + 66 col0
----
-25
66

query II rowsort
SELECT + 36 AS col0, 31
----
36
31

query I rowsort
SELECT ALL + 76 * + 23 AS col0
----
1748

query I rowsort
SELECT 12 * - 17
----
-204

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3709
SELECT CAST( + - 17 AS SIGNED ) * + 6 + + + CAST( + AVG ( 85 ) AS SIGNED ), + 4 * - - ( + + ( - + NULLIF ( + 80, + + 83 ) ) ) AS col1
----
-17
-320

skipif mysql # not compatible
query II rowsort label-3709
SELECT CAST ( + - 17 AS INTEGER ) * + 6 + + + CAST ( + AVG ( 85 ) AS INTEGER ), + 4 * - - ( + + ( - + NULLIF ( + 80, + + 83 ) ) ) AS col1
----
-17
-320

query I rowsort
SELECT ALL - 3 + 38 AS col0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-3711
SELECT + COUNT( 73 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3711
SELECT + COUNT ( 73 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3712
SELECT + 1 AS col1, 46 - - + NULLIF ( + COUNT( ALL + + 50 ), - 93 )
----
1
47

skipif mysql # not compatible
query II rowsort label-3712
SELECT + 1 AS col1, 46 - - + NULLIF ( + COUNT ( ALL + + 50 ), - 93 )
----
1
47

query I rowsort
SELECT ALL 74 * + - 53 col0
----
-3922

query I rowsort
SELECT 4 * + - 33 * - - ( 68 ) - - 47
----
-8929

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3715
SELECT SUM( DISTINCT + + 98 ) + ( + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3715
SELECT SUM ( DISTINCT + + 98 ) + ( + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3716
SELECT ALL + SUM( + 26 ) - 91 * + 23 AS col2
----
-2067

skipif mysql # not compatible
query I rowsort label-3716
SELECT ALL + SUM ( + 26 ) - 91 * + 23 AS col2
----
-2067

onlyif mysql # DIV for integer division: 
query I rowsort label-3717
SELECT ALL - + 2 DIV 64 * - 13 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3717
SELECT ALL - + 2 / 64 * - 13 AS col2
----
0

query I rowsort
SELECT ALL - - 85 - - 81
----
166

query I rowsort
SELECT 30 + + + 73
----
103

query I rowsort
SELECT - 47 + + 55
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3721
SELECT 41 * - 41 * 84 - NULLIF ( - - 13, - 90 * + 6 + 76 + + 67 + + MAX( ALL 44 ) + - 65 + + 57 - 46 * + 50 * - 90 * + 29 / + 98 + + NULLIF ( - NULLIF ( 0, - 60 ), NULLIF ( COUNT( * ), + 95 * + COUNT( * ) ) / 28 - 18 * 33 ) ) * - 31 - - 75
----
-140726

skipif mysql # not compatible
query I rowsort label-3721
SELECT 41 * - 41 * 84 - NULLIF ( - - 13, - 90 * + 6 + 76 + + 67 + + MAX ( ALL 44 ) + - 65 + + 57 - 46 * + 50 * - 90 * + 29 / + 98 + + NULLIF ( - NULLIF ( 0, - 60 ), NULLIF ( COUNT ( * ), + 95 * + COUNT ( * ) ) / 28 - 18 * 33 ) ) * - 31 - - 75
----
-140726

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3723
SELECT CASE + 68 WHEN + COUNT( * ) + ( + + 55 ) * COALESCE ( + 21, + CAST( NULL AS SIGNED ) ) + - 59 THEN 60 END * 17 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3723
SELECT CASE + 68 WHEN + COUNT ( * ) + ( + + 55 ) * COALESCE ( + 21, + CAST ( NULL AS INTEGER ) ) + - 59 THEN 60 END * 17 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3724
SELECT DISTINCT - + 60 * - + 9 + + MIN( DISTINCT - CASE + 18 WHEN - 53 * - + 35 + + 14 THEN 43 ELSE - + 7 END ) + 76
----
623

skipif mysql # not compatible
query I rowsort label-3724
SELECT DISTINCT - + 60 * - + 9 + + MIN ( DISTINCT - CASE + 18 WHEN - 53 * - + 35 + + 14 THEN 43 ELSE - + 7 END ) + 76
----
623

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3725
SELECT ( + CAST( NULL AS DECIMAL ) ) * - COUNT( 48 ) * + COALESCE ( + 80, + COALESCE ( - - MAX( + 5 ), - CASE - - 33 WHEN + ( + 49 ) + - COUNT( * ) / SUM( 32 ) - - 89 THEN 42 * COUNT( * ) END * 19, 3 * - COUNT( * ) ) - 49 ) / - 58 + - 65 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3725
SELECT ( + CAST ( NULL AS REAL ) ) * - COUNT ( 48 ) * + COALESCE ( + 80, + COALESCE ( - - MAX ( + 5 ), - CASE - - 33 WHEN + ( + 49 ) + - COUNT ( * ) / SUM ( 32 ) - - 89 THEN 42 * COUNT ( * ) END * 19, 3 * - COUNT ( * ) ) - 49 ) / - 58 + - 65 col0
----
NULL

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

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

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

query II rowsort
SELECT ALL + 87, + 45 AS col2
----
87
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3729
SELECT + CASE 25 WHEN - 54 * - 35 + 42 THEN COUNT( + + ( 77 ) ) + + 36 + + 24 ELSE + COUNT( * ) END + - SUM( - 13 )
----
14

skipif mysql # not compatible
query I rowsort label-3729
SELECT + CASE 25 WHEN - 54 * - 35 + 42 THEN COUNT ( + + ( 77 ) ) + + 36 + + 24 ELSE + COUNT ( * ) END + - SUM ( - 13 )
----
14

query I rowsort
SELECT 78 * - COALESCE ( + 93, 20 * + - 10 + + + 16 ) * - 84 * 98 + - - 14 + - ( - + 90 ) col1
----
59715032

onlyif mysql # aggregate syntax: 
query I rowsort label-3731
SELECT COUNT( ALL - 61 ) + - NULLIF ( + 76, 18 * 80 * - + 40 + - 59 * + SUM( - 11 ) ) + + NULLIF ( 84, + - 95 * 2 ) AS col2
----
9

skipif mysql # not compatible
query I rowsort label-3731
SELECT COUNT ( ALL - 61 ) + - NULLIF ( + 76, 18 * 80 * - + 40 + - 59 * + SUM ( - 11 ) ) + + NULLIF ( 84, + - 95 * 2 ) AS col2
----
9

query I rowsort
SELECT 52 + - - ( 3 ) col2
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3733
SELECT - COUNT( - 85 ) AS col1, + 52 - 90 + + CASE NULLIF ( 21, + 84 * COUNT( * ) ) WHEN + CAST( - - 79 AS SIGNED ) THEN 21 ELSE NULL END + - 26 + - + 63 AS col2
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-3733
SELECT - COUNT ( - 85 ) AS col1, + 52 - 90 + + CASE NULLIF ( 21, + 84 * COUNT ( * ) ) WHEN + CAST ( - - 79 AS INTEGER ) THEN 21 ELSE NULL END + - 26 + - + 63 AS col2
----
-1
NULL

query I rowsort
SELECT ALL 18 + 27
----
45

onlyif mysql # aggregate syntax: 
query II rowsort label-3735
SELECT - SUM( DISTINCT 32 ) col0, - 76 AS col1
----
-32
-76

skipif mysql # not compatible
query II rowsort label-3735
SELECT - SUM ( DISTINCT 32 ) col0, - 76 AS col1
----
-32
-76

query I rowsort
SELECT ALL + 34 + + + 94
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-3737
SELECT ALL - 80 * + + MIN( ALL - CASE + 99 WHEN 40 THEN + 45 END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3737
SELECT ALL - 80 * + + MIN ( ALL - CASE + 99 WHEN 40 THEN + 45 END ) AS col1
----
NULL

query II rowsort
SELECT DISTINCT 76 * + - 33 AS col1, - 96 * 75 AS col0
----
-2508
-7200

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

query I rowsort
SELECT + NULLIF ( + + 34, + 10 )
----
34

onlyif mysql # DIV for integer division: 
query II rowsort label-3741
SELECT + 17 DIV - 48, 64 + + 12 AS col0
----
0
76

skipif mysql # not compatible
query II rowsort label-3741
SELECT + 17 / - 48, 64 + + 12 AS col0
----
0
76

query I rowsort
SELECT 71 * - - 88 + - 83 AS col1
----
6165

onlyif mysql # aggregate syntax: 
query I rowsort label-3743
SELECT ALL 85 * 3 + COUNT( * ) * - - CASE COUNT( * ) WHEN CASE - AVG ( ALL + 72 ) WHEN + 2 THEN NULL WHEN - - 76 THEN + ( 55 ) / - + 67 * + + 25 - + 16 WHEN + COALESCE ( - 57, 52 * 83 * 53 + - 13, 28 ) THEN NULL ELSE + 41 END THEN NULL WHEN + ( + 87 ) * + MAX( 96 ) THEN + 47 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3743
SELECT ALL 85 * 3 + COUNT ( * ) * - - CASE COUNT ( * ) WHEN CASE - AVG ( ALL + 72 ) WHEN + 2 THEN NULL WHEN - - 76 THEN + ( 55 ) / - + 67 * + + 25 - + 16 WHEN + COALESCE ( - 57, 52 * 83 * 53 + - 13, 28 ) THEN NULL ELSE + 41 END THEN NULL WHEN + ( + 87 ) * + MAX ( 96 ) THEN + 47 END AS col0
----
NULL

query I rowsort
SELECT CASE WHEN 8 IS NULL THEN + + 44 ELSE NULL END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3745
SELECT - 79 DIV - 40 + - 74 DIV + 9 - 98 * - + 21 * + 69 AS col2
----
141995

skipif mysql # not compatible
query I rowsort label-3745
SELECT - 79 / - 40 + - 74 / + 9 - 98 * - + 21 * + 69 AS col2
----
141995

onlyif mysql # aggregate syntax: 
query I rowsort label-3746
SELECT DISTINCT - 83 * + COALESCE ( - 64, COUNT( * ) ) + - - COUNT( * ) * 18 AS col2
----
5330

skipif mysql # not compatible
query I rowsort label-3746
SELECT DISTINCT - 83 * + COALESCE ( - 64, COUNT ( * ) ) + - - COUNT ( * ) * 18 AS col2
----
5330

query I rowsort
SELECT ALL + 24 * + 69 - + 81 AS col2
----
1575

onlyif mysql # aggregate syntax: 
query II rowsort label-3748
SELECT + - CASE 50 WHEN - 98 THEN - + 66 * + - 29 + 91 + COUNT( - + 49 ) ELSE - 45 END, 0 AS col2
----
45
0

skipif mysql # not compatible
query II rowsort label-3748
SELECT + - CASE 50 WHEN - 98 THEN - + 66 * + - 29 + 91 + COUNT ( - + 49 ) ELSE - 45 END, 0 AS col2
----
45
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3749
SELECT - - COUNT( * ) * + 13 * - 46 + 83
----
-515

skipif mysql # not compatible
query I rowsort label-3749
SELECT - - COUNT ( * ) * + 13 * - 46 + 83
----
-515

query I rowsort
SELECT DISTINCT 66 * + 66 AS col1
----
4356

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3752
SELECT + SUM( - 61 )
----
-61

skipif mysql # not compatible
query I rowsort label-3752
SELECT + SUM ( - 61 )
----
-61

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3754
SELECT 95 * - - 85 - - - MAX( DISTINCT + - 84 ) - - ( - + 29 ) + 73 + - 6 DIV - 16
----
8203

skipif mysql # not compatible
query I rowsort label-3754
SELECT 95 * - - 85 - - - MAX ( DISTINCT + - 84 ) - - ( - + 29 ) + 73 + - 6 / - 16
----
8203

onlyif mysql # DIV for integer division: 
query I rowsort label-3755
SELECT + 54 DIV - + 72
----
0

skipif mysql # not compatible
query I rowsort label-3755
SELECT + 54 / - + 72
----
0

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

skipif mysql # not compatible
query I rowsort label-3756
SELECT ALL COUNT ( * ) * - 13 + + 15 AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3757
SELECT ALL + + ( - - COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-3757
SELECT ALL + + ( - - COUNT ( * ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3758
SELECT DISTINCT + + ( + - COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-3758
SELECT DISTINCT + + ( + - COUNT ( * ) )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3759
SELECT DISTINCT - 7 DIV - 78
----
0

skipif mysql # not compatible
query I rowsort label-3759
SELECT DISTINCT - 7 / - 78
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3760
SELECT - - 43 * - + 31, + 86 DIV + 95 * 35 * + CAST( + - 90 AS SIGNED ) * - + 21 + 37 AS col0
----
-1333
37

skipif mysql # not compatible
query II rowsort label-3760
SELECT - - 43 * - + 31, + 86 / + 95 * 35 * + CAST ( + - 90 AS INTEGER ) * - + 21 + 37 AS col0
----
-1333
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3761
SELECT ALL + 38 + - 83 * + 54 * + + 75 * - 16 + - COUNT( DISTINCT 6 ) AS col2
----
5378437

skipif mysql # not compatible
query I rowsort label-3761
SELECT ALL + 38 + - 83 * + 54 * + + 75 * - 16 + - COUNT ( DISTINCT 6 ) AS col2
----
5378437

onlyif mysql # aggregate syntax: 
query II rowsort label-3762
SELECT ALL - + ( - COUNT( * ) ) + + - 36 + 32 AS col1, COUNT( * ) * + 99
----
-3
99

skipif mysql # not compatible
query II rowsort label-3762
SELECT ALL - + ( - COUNT ( * ) ) + + - 36 + 32 AS col1, COUNT ( * ) * + 99
----
-3
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3763
SELECT - 39 + 33 * + - 55 * + COUNT( * )
----
-1854

skipif mysql # not compatible
query I rowsort label-3763
SELECT - 39 + 33 * + - 55 * + COUNT ( * )
----
-1854

query I rowsort
SELECT DISTINCT - 93 * - 7
----
651

query I rowsort
SELECT DISTINCT - 20 + + 61
----
41

query I rowsort
SELECT - 77 * 92 AS col2
----
-7084

query I rowsort
SELECT DISTINCT - 2 + - 27 AS col2
----
-29

query I rowsort
SELECT DISTINCT - 93 * - - 25 * + ( 38 )
----
-88350

query I rowsort
SELECT DISTINCT ( - + 85 ) AS col0
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-3770
SELECT ALL ( NULLIF ( - 63, - + ( - - 61 ) + + 9 + COUNT( * ) ) ) AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-3770
SELECT ALL ( NULLIF ( - 63, - + ( - - 61 ) + + 9 + COUNT ( * ) ) ) AS col0
----
-63

query I rowsort
SELECT - 41 * + 37 * + 47 AS col0
----
-71299

query I rowsort
SELECT + 46 * + 90 AS col0
----
4140

onlyif mysql # aggregate syntax: 
query II rowsort label-3773
SELECT 24 AS col2, - 68 - + + COUNT( * )
----
24
-69

skipif mysql # not compatible
query II rowsort label-3773
SELECT 24 AS col2, - 68 - + + COUNT ( * )
----
24
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-3774
SELECT - COUNT( * ) - 9
----
-10

skipif mysql # not compatible
query I rowsort label-3774
SELECT - COUNT ( * ) - 9
----
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-3775
SELECT DISTINCT + 79, 61 * + + MIN( DISTINCT + 76 ) + 34 * + CASE + 91 WHEN - + 95 * 62 THEN ( - + 97 ) + + + SUM( ALL + 69 ) - + 80 * - 50 + COALESCE ( - + 72, - - 47 ) WHEN 92 * 43 + + 86 THEN COUNT( * ) * 57 + 94 END AS col1
----
79
NULL

skipif mysql # not compatible
query II rowsort label-3775
SELECT DISTINCT + 79, 61 * + + MIN ( DISTINCT + 76 ) + 34 * + CASE + 91 WHEN - + 95 * 62 THEN ( - + 97 ) + + + SUM ( ALL + 69 ) - + 80 * - 50 + COALESCE ( - + 72, - - 47 ) WHEN 92 * 43 + + 86 THEN COUNT ( * ) * 57 + 94 END AS col1
----
79
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3776
SELECT DISTINCT + COALESCE ( - 48, - 29 * 98 DIV COUNT( * ) * - 91 * 72 ) * 6 DIV + 81 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-3776
SELECT DISTINCT + COALESCE ( - 48, - 29 * 98 / COUNT ( * ) * - 91 * 72 ) * 6 / + 81 AS col0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3777
SELECT ALL + COUNT( * ) DIV 17 DIV + 2 - + - 69 * 39 * MIN( DISTINCT + 97 )
----
261027

skipif mysql # not compatible
query I rowsort label-3777
SELECT ALL + COUNT ( * ) / 17 / + 2 - + - 69 * 39 * MIN ( DISTINCT + 97 )
----
261027

query I rowsort
SELECT - 93 * - - 28 AS col2
----
-2604

query I rowsort
SELECT - + 80 + - 10
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3780
SELECT CAST( - + 2 AS SIGNED ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-3780
SELECT CAST ( - + 2 AS INTEGER ) AS col2
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3781
SELECT - - 47 * 45 DIV - 82 - 35 + - ( 54 ) + 89 * - - NULLIF ( + MIN( + ( 46 ) ), 58 DIV + 49 DIV 21 * 43 ) + + 37 * 50 + 93
----
5923

skipif mysql # not compatible
query I rowsort label-3781
SELECT - - 47 * 45 / - 82 - 35 + - ( 54 ) + 89 * - - NULLIF ( + MIN ( + ( 46 ) ), 58 / + 49 / 21 * 43 ) + + 37 * 50 + 93
----
5923

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3782
SELECT + 99 * ( CASE - COUNT( * ) WHEN + COALESCE ( + 21, + CAST( + 20 AS SIGNED ) + - 1 ) * COUNT( * ) + - CAST( NULL AS SIGNED ) + + 75 + - CASE + 41 WHEN MAX( DISTINCT + 16 ) THEN + + 45 / - - 31 WHEN 63 - + NULLIF ( + 14, 16 + + ( 73 + + 13 ) ) + - ( 77 ) THEN + 49 / + 85 ELSE 31 END * - 63 THEN NULL WHEN + 23 * CASE + 39 WHEN - 23 THEN 59 ELSE COUNT( ALL - ( - 71 ) ) END THEN + NULLIF ( - 3, 71 * 79 + 95 ) / 57 + COALESCE ( 3, CAST( NULL AS DECIMAL ) + - 37 ) ELSE NULL END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3782
SELECT + 99 * ( CASE - COUNT ( * ) WHEN + COALESCE ( + 21, + CAST ( + 20 AS INTEGER ) + - 1 ) * COUNT ( * ) + - CAST ( NULL AS INTEGER ) + + 75 + - CASE + 41 WHEN MAX ( DISTINCT + 16 ) THEN + + 45 / - - 31 WHEN 63 - + NULLIF ( + 14, 16 + + ( 73 + + 13 ) ) + - ( 77 ) THEN + 49 / + 85 ELSE 31 END * - 63 THEN NULL WHEN + 23 * CASE + 39 WHEN - 23 THEN 59 ELSE COUNT ( ALL - ( - 71 ) ) END THEN + NULLIF ( - 3, 71 * 79 + 95 ) / 57 + COALESCE ( 3, CAST ( NULL AS REAL ) + - 37 ) ELSE NULL END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3783
SELECT ALL + - 12 AS col0, CASE COUNT( * ) WHEN + - 87 + 40 * + 67 - - 8 / + + 75 THEN + - MAX( DISTINCT + ( + ( - ( + 6 ) ) ) ) * ( + + 40 ) + - 47 ELSE NULL END / + 20 + 45
----
-12
NULL

skipif mysql # not compatible
query II rowsort label-3783
SELECT ALL + - 12 AS col0, CASE COUNT ( * ) WHEN + - 87 + 40 * + 67 - - 8 / + + 75 THEN + - MAX ( DISTINCT + ( + ( - ( + 6 ) ) ) ) * ( + + 40 ) + - 47 ELSE NULL END / + 20 + 45
----
-12
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3784
SELECT DISTINCT + + COUNT( * ) AS col1, 35 - + 24 col0
----
1
11

skipif mysql # not compatible
query II rowsort label-3784
SELECT DISTINCT + + COUNT ( * ) AS col1, 35 - + 24 col0
----
1
11

onlyif mysql # aggregate syntax: 
query I rowsort label-3785
SELECT ALL + MAX( 16 ) col0
----
16

skipif mysql # not compatible
query I rowsort label-3785
SELECT ALL + MAX ( 16 ) col0
----
16

query I rowsort
SELECT + 65 + + + 6
----
71

query I rowsort
SELECT DISTINCT + 32 * + - 46 + - 69 + - - 45 AS col1
----
-1496

query I rowsort
SELECT ALL - - 30 * + 81
----
2430

onlyif mysql # aggregate syntax: 
query I rowsort label-3789
SELECT - SUM( DISTINCT + 90 ) AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-3789
SELECT - SUM ( DISTINCT + 90 ) AS col0
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3790
SELECT ALL - + 54 * - 21 + - - AVG ( CAST( NULL AS SIGNED ) ) - 45
----
NULL

skipif mysql # not compatible
query I rowsort label-3790
SELECT ALL - + 54 * - 21 + - - AVG ( CAST ( NULL AS INTEGER ) ) - 45
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3791
SELECT ALL 51 * + ( + ( COALESCE ( 21, + 71 * 48 / - SUM( - + 40 ) + - COUNT( * ) ) ) ) * + - 15 + 72 * + 43 + - COUNT( * ) + - CASE + 38 WHEN + 90 * - SUM( ALL - + 30 ) THEN - + 12 * 27 + 70 WHEN + 62 THEN - 97 - - 80 WHEN AVG ( 47 ) * 99 - + 29 THEN - COUNT( - 22 ) END * + 12 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3791
SELECT ALL 51 * + ( + ( COALESCE ( 21, + 71 * 48 / - SUM ( - + 40 ) + - COUNT ( * ) ) ) ) * + - 15 + 72 * + 43 + - COUNT ( * ) + - CASE + 38 WHEN + 90 * - SUM ( ALL - + 30 ) THEN - + 12 * 27 + 70 WHEN + 62 THEN - 97 - - 80 WHEN AVG ( 47 ) * 99 - + 29 THEN - COUNT ( - 22 ) END * + 12 col2
----
NULL

query I rowsort
SELECT + + 28 + - - 79 col0
----
107

query I rowsort
SELECT ALL - + 25 + + 10 - + 5 * - 96
----
465

onlyif mysql # DIV for integer division: 
query I rowsort label-3794
SELECT ( + - 85 ) DIV 27 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-3794
SELECT ( + - 85 ) / 27 AS col1
----
-3

query II rowsort
SELECT 7, 63 AS col1
----
7
63

query I rowsort
SELECT ALL + 16 * - 49
----
-784

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3797
SELECT 15 AS col2, 87 * 38 * 43 * + 51 + - 97 * 24 + - MAX( ( - - 52 ) ) + - MAX( ALL 21 ) + - 70 * - 49 + + + CAST( + NULLIF ( 0, + 2 ) AS SIGNED )
----
15
7251087

skipif mysql # not compatible
query II rowsort label-3797
SELECT 15 AS col2, 87 * 38 * 43 * + 51 + - 97 * 24 + - MAX ( ( - - 52 ) ) + - MAX ( ALL 21 ) + - 70 * - 49 + + + CAST ( + NULLIF ( 0, + 2 ) AS INTEGER )
----
15
7251087

onlyif mysql # aggregate syntax: 
query I rowsort label-3798
SELECT ( - 1 ) + + COUNT( * ) col2
----
0

skipif mysql # not compatible
query I rowsort label-3798
SELECT ( - 1 ) + + COUNT ( * ) col2
----
0

query I rowsort
SELECT 77 + - 24 AS col0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3800
SELECT ALL + NULLIF ( - 38, - - 84 + + + MAX( 71 ) * + ( AVG ( + 24 ) ) ) * 75 + CASE - 48 WHEN - 15 / - - 69 + - + 1 THEN NULL WHEN + + 71 * - 36 + 75 + + COUNT( * ) THEN 71 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3800
SELECT ALL + NULLIF ( - 38, - - 84 + + + MAX ( 71 ) * + ( AVG ( + 24 ) ) ) * 75 + CASE - 48 WHEN - 15 / - - 69 + - + 1 THEN NULL WHEN + + 71 * - 36 + 75 + + COUNT ( * ) THEN 71 END AS col0
----
NULL

query I rowsort
SELECT 86 * + 97
----
8342

query I rowsort
SELECT 12 + - 70 col1
----
-58

query I rowsort
SELECT 21 + + 55
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-3804
SELECT ALL - 45 * + + 51 * + COALESCE ( + 78, + MAX( DISTINCT 94 ) ) * + COUNT( * ) AS col0
----
-179010

skipif mysql # not compatible
query I rowsort label-3804
SELECT ALL - 45 * + + 51 * + COALESCE ( + 78, + MAX ( DISTINCT 94 ) ) * + COUNT ( * ) AS col0
----
-179010

query I rowsort
SELECT 37 + + 31 AS col1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3806
SELECT - 74 * - 46 + - COUNT( * ) + - - 67 AS col2
----
3470

skipif mysql # not compatible
query I rowsort label-3806
SELECT - 74 * - 46 + - COUNT ( * ) + - - 67 AS col2
----
3470

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3807
SELECT ( - 13 ) DIV NULLIF ( 60, 28 * - NULLIF ( - + 71, + COUNT( * ) ) * ( - - 39 ) + - - MIN( + + 40 ) + 55 * + - COUNT( * ) ) + - + 14 AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-3807
SELECT ( - 13 ) / NULLIF ( 60, 28 * - NULLIF ( - + 71, + COUNT ( * ) ) * ( - - 39 ) + - - MIN ( + + 40 ) + 55 * + - COUNT ( * ) ) + - + 14 AS col1
----
-14

query I rowsort
SELECT - ( + 16 ) * + - 67 AS col2
----
1072

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3809
SELECT ALL - CAST( NULL AS DECIMAL ) col0, 23 + COUNT( * ) AS col0
----
NULL
24

skipif mysql # not compatible
query II rowsort label-3809
SELECT ALL - CAST ( NULL AS REAL ) col0, 23 + COUNT ( * ) AS col0
----
NULL
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3810
SELECT DISTINCT - 71 + + + COUNT( * ) + - ( 87 ) * + 20 AS col2
----
-1810

skipif mysql # not compatible
query I rowsort label-3810
SELECT DISTINCT - 71 + + + COUNT ( * ) + - ( 87 ) * + 20 AS col2
----
-1810

query I rowsort
SELECT ALL + 13 + 23 * + 6
----
151

onlyif mysql # aggregate syntax: 
query I rowsort label-3812
SELECT - CASE - 51 WHEN - 43 * + 6 THEN NULL WHEN - + COUNT( * ) + + 5 * - 57 THEN - - COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3812
SELECT - CASE - 51 WHEN - 43 * + 6 THEN NULL WHEN - + COUNT ( * ) + + 5 * - 57 THEN - - COUNT ( * ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3813
SELECT DISTINCT + 80 + 72 * COUNT( + + 34 )
----
152

skipif mysql # not compatible
query I rowsort label-3813
SELECT DISTINCT + 80 + 72 * COUNT ( + + 34 )
----
152

query II rowsort
SELECT ALL - 18 AS col1, 50 * - + 30
----
-18
-1500

onlyif mysql # DIV for integer division: 
query I rowsort label-3815
SELECT 77 DIV 79 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3815
SELECT 77 / 79 AS col2
----
0

query II rowsort
SELECT ALL - 64 AS col1, + 1
----
-64
1

query I rowsort
SELECT DISTINCT - - ( - + 70 )
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-3818
SELECT - 43 * - + SUM( DISTINCT - 75 ) AS col0
----
-3225

skipif mysql # not compatible
query I rowsort label-3818
SELECT - 43 * - + SUM ( DISTINCT - 75 ) AS col0
----
-3225

onlyif mysql # aggregate syntax: 
query I rowsort label-3819
SELECT ALL COUNT( - - 57 ) + + 4
----
5

skipif mysql # not compatible
query I rowsort label-3819
SELECT ALL COUNT ( - - 57 ) + + 4
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3820
SELECT + 65 * - - 58 + 78 + - 95 * + 44 - MAX( + ( 76 ) ) * + 11 + - + 34
----
-1202

skipif mysql # not compatible
query I rowsort label-3820
SELECT + 65 * - - 58 + 78 + - 95 * + 44 - MAX ( + ( 76 ) ) * + 11 + - + 34
----
-1202

query I rowsort
SELECT DISTINCT - - ( + 74 ) AS col1
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3822
SELECT MAX( + 44 ) * + COALESCE ( CAST( NULL AS SIGNED ), 38 ) + 38 + + 79 DIV + 21 AS col1
----
1713

skipif mysql # not compatible
query I rowsort label-3822
SELECT MAX ( + 44 ) * + COALESCE ( CAST ( NULL AS INTEGER ), 38 ) + 38 + + 79 / + 21 AS col1
----
1713

onlyif mysql # aggregate syntax: 
query II rowsort label-3823
SELECT ALL COUNT( * ) * 50 AS col0, ( CASE + 82 WHEN 52 * 71 / + 99 * + 7 THEN NULL WHEN + + 99 THEN NULL ELSE - - 28 END )
----
50
28

skipif mysql # not compatible
query II rowsort label-3823
SELECT ALL COUNT ( * ) * 50 AS col0, ( CASE + 82 WHEN 52 * 71 / + 99 * + 7 THEN NULL WHEN + + 99 THEN NULL ELSE - - 28 END )
----
50
28

query I rowsort
SELECT ALL 18 - - - 21
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3825
SELECT ( - NULLIF ( - - 62, CAST( - ( - - 76 ) AS SIGNED ) ) ) * - 14 + 87 AS col1
----
955

skipif mysql # not compatible
query I rowsort label-3825
SELECT ( - NULLIF ( - - 62, CAST ( - ( - - 76 ) AS INTEGER ) ) ) * - 14 + 87 AS col1
----
955

query II rowsort
SELECT ALL 12 * 30, + 74 AS col0
----
360
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3827
SELECT DISTINCT COUNT( * ) * ( + 41 )
----
41

skipif mysql # not compatible
query I rowsort label-3827
SELECT DISTINCT COUNT ( * ) * ( + 41 )
----
41

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3828
SELECT ( CAST( NULL AS DECIMAL ) ) * + COUNT( * ) * - 32 * + 19 * 59 / COUNT( DISTINCT 42 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3828
SELECT ( CAST ( NULL AS REAL ) ) * + COUNT ( * ) * - 32 * + 19 * 59 / COUNT ( DISTINCT 42 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3829
SELECT DISTINCT MIN( 27 ) * - + COUNT( ALL + ( CAST( 66 AS SIGNED ) ) ) col1
----
-27

skipif mysql # not compatible
query I rowsort label-3829
SELECT DISTINCT MIN ( 27 ) * - + COUNT ( ALL + ( CAST ( 66 AS INTEGER ) ) ) col1
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-3830
SELECT DISTINCT COUNT( * ) * - ( 48 ) * - - COALESCE ( - - 37, + ( 31 ) )
----
-1776

skipif mysql # not compatible
query I rowsort label-3830
SELECT DISTINCT COUNT ( * ) * - ( 48 ) * - - COALESCE ( - - 37, + ( 31 ) )
----
-1776

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3831
SELECT CAST( NULL AS SIGNED ) - - 93 * - 84 + 89 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3831
SELECT CAST ( NULL AS INTEGER ) - - 93 * - 84 + 89 col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3832
SELECT ALL + COUNT( ALL 1 ) DIV + 30 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3832
SELECT ALL + COUNT ( ALL 1 ) / + 30 AS col2
----
0

query I rowsort
SELECT 21 * 76 AS col0
----
1596

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3834
SELECT DISTINCT ( + 55 ) DIV + COUNT( DISTINCT - 52 )
----
55

skipif mysql # not compatible
query I rowsort label-3834
SELECT DISTINCT ( + 55 ) / + COUNT ( DISTINCT - 52 )
----
55

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3835
SELECT CAST( NULL AS DECIMAL ) + - 94 + - 0 * - CAST( - 22 AS SIGNED ) AS col1, 60 AS col1
----
NULL
60

skipif mysql # not compatible
query II rowsort label-3835
SELECT CAST ( NULL AS REAL ) + - 94 + - 0 * - CAST ( - 22 AS INTEGER ) AS col1, 60 AS col1
----
NULL
60

onlyif mysql # DIV for integer division: 
query I rowsort label-3836
SELECT 40 DIV - + ( 40 )
----
-1

skipif mysql # not compatible
query I rowsort label-3836
SELECT 40 / - + ( 40 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3837
SELECT ALL + CAST( - 50 AS SIGNED ) DIV - 56 + 89 AS col1
----
89

skipif mysql # not compatible
query I rowsort label-3837
SELECT ALL + CAST ( - 50 AS INTEGER ) / - 56 + 89 AS col1
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3838
SELECT - CAST( + + COUNT( * ) AS SIGNED ) * - 28 * + 6
----
168

skipif mysql # not compatible
query I rowsort label-3838
SELECT - CAST ( + + COUNT ( * ) AS INTEGER ) * - 28 * + 6
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-3839
SELECT ALL + MAX( + 78 ) + + - 98 + - COUNT( * )
----
-21

skipif mysql # not compatible
query I rowsort label-3839
SELECT ALL + MAX ( + 78 ) + + - 98 + - COUNT ( * )
----
-21

query I rowsort
SELECT + 6 - - + 62 AS col0
----
68

query I rowsort
SELECT ALL - - 51 + - - 5 AS col0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-3842
SELECT ( 16 ) * + - MAX( DISTINCT - + 52 ) AS col1
----
832

skipif mysql # not compatible
query I rowsort label-3842
SELECT ( 16 ) * + - MAX ( DISTINCT - + 52 ) AS col1
----
832

query I rowsort
SELECT ALL 90 * - ( - + 95 )
----
8550

onlyif mysql # aggregate syntax: 
query I rowsort label-3844
SELECT DISTINCT + + 97 * 97 + - - ( - 37 ) + + COUNT( ALL 18 )
----
9373

skipif mysql # not compatible
query I rowsort label-3844
SELECT DISTINCT + + 97 * 97 + - - ( - 37 ) + + COUNT ( ALL 18 )
----
9373

query I rowsort
SELECT ALL - COALESCE ( - - 11, + ( + + 97 ) + + 33 + - 12 * 46 + + 0 )
----
-11

query I rowsort
SELECT ALL - 88 * + 38 + + 21 AS col2
----
-3323

onlyif mysql # aggregate syntax: 
query I rowsort label-3847
SELECT - COUNT( * ) + 71 + - ( + 65 ) * 8 AS col0
----
-450

skipif mysql # not compatible
query I rowsort label-3847
SELECT - COUNT ( * ) + 71 + - ( + 65 ) * 8 AS col0
----
-450

onlyif mysql # aggregate syntax: 
query I rowsort label-3848
SELECT ALL - + COALESCE ( + COUNT( * ), COUNT( * ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3848
SELECT ALL - + COALESCE ( + COUNT ( * ), COUNT ( * ) ) AS col1
----
-1

query I rowsort
SELECT - 75 * 7 + - 73
----
-598

query I rowsort
SELECT - ( 94 ) AS col0
----
-94

query I rowsort
SELECT + - 9 * - 15 + - 12
----
123

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3852
SELECT ALL + 95 * 35 + + ( - CAST( 10 AS SIGNED ) ) + 35 * + COUNT( * ) + + 59 * + - 71 * - 21 - + + 90 * 7 AS col2
----
90689

skipif mysql # not compatible
query I rowsort label-3852
SELECT ALL + 95 * 35 + + ( - CAST ( 10 AS INTEGER ) ) + 35 * + COUNT ( * ) + + 59 * + - 71 * - 21 - + + 90 * 7 AS col2
----
90689

onlyif mysql # aggregate syntax: 
query II rowsort label-3853
SELECT ALL + + ( - 51 ) AS col0, - COUNT( * )
----
-51
-1

skipif mysql # not compatible
query II rowsort label-3853
SELECT ALL + + ( - 51 ) AS col0, - COUNT ( * )
----
-51
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3854
SELECT ALL 83 * - 52 + COUNT( * ) AS col0, 15 * - - ( 67 ) AS col2
----
-4315
1005

skipif mysql # not compatible
query II rowsort label-3854
SELECT ALL 83 * - 52 + COUNT ( * ) AS col0, 15 * - - ( 67 ) AS col2
----
-4315
1005

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3855
SELECT COUNT( * ) / - + COUNT( * ) * CASE - NULLIF ( 84, + 5 ) WHEN + 50 THEN + 65 WHEN - 61 * - 28 + 92 * + 13 THEN NULL WHEN + 33 THEN - 63 * 81 / + CAST( NULL AS SIGNED ) * - ( 21 ) WHEN - 54 / COUNT( * ) * 4 + + 50 THEN 54 * 53 ELSE NULL END + - 21
----
NULL

skipif mysql # not compatible
query I rowsort label-3855
SELECT COUNT ( * ) / - + COUNT ( * ) * CASE - NULLIF ( 84, + 5 ) WHEN + 50 THEN + 65 WHEN - 61 * - 28 + 92 * + 13 THEN NULL WHEN + 33 THEN - 63 * 81 / + CAST ( NULL AS INTEGER ) * - ( 21 ) WHEN - 54 / COUNT ( * ) * 4 + + 50 THEN 54 * 53 ELSE NULL END + - 21
----
NULL

query I rowsort
SELECT - + 46 + - 1 - + 46 AS col1
----
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3857
SELECT DISTINCT - COUNT( * ) * + - COUNT( * ) DIV + COALESCE ( + 81, - 36 ) + 55
----
55

skipif mysql # not compatible
query I rowsort label-3857
SELECT DISTINCT - COUNT ( * ) * + - COUNT ( * ) / + COALESCE ( + 81, - 36 ) + 55
----
55

query I rowsort
SELECT DISTINCT - 34 * + 94 AS col1
----
-3196

query I rowsort
SELECT - 0 + + + 20 AS col1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3860
SELECT ALL - 16 * - + COUNT( * ) * - 99 AS col0
----
-1584

skipif mysql # not compatible
query I rowsort label-3860
SELECT ALL - 16 * - + COUNT ( * ) * - 99 AS col0
----
-1584

query I rowsort
SELECT - 18 * + - 5 AS col2
----
90

query I rowsort
SELECT + 59 + 15
----
74

onlyif mysql # aggregate syntax: 
query II rowsort label-3863
SELECT ALL NULLIF ( 13, - COUNT( * ) * - + 39 * MIN( + 8 ) * + 25 + 22 ), - 65 AS col2
----
13
-65

skipif mysql # not compatible
query II rowsort label-3863
SELECT ALL NULLIF ( 13, - COUNT ( * ) * - + 39 * MIN ( + 8 ) * + 25 + 22 ), - 65 AS col2
----
13
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-3864
SELECT ALL ( - COUNT( - - 77 ) ) AS col2, - 73 AS col1
----
-1
-73

skipif mysql # not compatible
query II rowsort label-3864
SELECT ALL ( - COUNT ( - - 77 ) ) AS col2, - 73 AS col1
----
-1
-73

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3865
SELECT DISTINCT ( - SUM( + 46 ) ) AS col0, - CAST( NULL AS DECIMAL ) col2
----
-46
NULL

skipif mysql # not compatible
query II rowsort label-3865
SELECT DISTINCT ( - SUM ( + 46 ) ) AS col0, - CAST ( NULL AS REAL ) col2
----
-46
NULL

query II rowsort
SELECT ALL 30 AS col0, 17 AS col1
----
30
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3867
SELECT DISTINCT CAST( 4 AS SIGNED ) * - 96 * + 94 + NULLIF ( + 11, + 72 * + + 14 + + - 91 ) AS col2
----
-36085

skipif mysql # not compatible
query I rowsort label-3867
SELECT DISTINCT CAST ( 4 AS INTEGER ) * - 96 * + 94 + NULLIF ( + 11, + 72 * + + 14 + + - 91 ) AS col2
----
-36085

query II rowsort
SELECT ALL 84 AS col0, + 24 AS col2
----
84
24

query I rowsort
SELECT + 16 * - 83
----
-1328

onlyif mysql # aggregate syntax: 
query I rowsort label-3870
SELECT - 28 + + + COUNT( + 19 ) * + COUNT( * ) col0
----
-27

skipif mysql # not compatible
query I rowsort label-3870
SELECT - 28 + + + COUNT ( + 19 ) * + COUNT ( * ) col0
----
-27

query II rowsort
SELECT ALL 41 col1, 86 AS col1
----
41
86

query I rowsort
SELECT + 4 + - - 80 + 78
----
162

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3873
SELECT + 80 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3873
SELECT + 80 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3874
SELECT + 98 + + - COUNT( * )
----
97

skipif mysql # not compatible
query I rowsort label-3874
SELECT + 98 + + - COUNT ( * )
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3875
SELECT ALL - COUNT( * ) + + + CAST( 18 AS SIGNED ) AS col1, MAX( DISTINCT CAST( NULL AS SIGNED ) ) * 19 + - 94
----
17
NULL

skipif mysql # not compatible
query II rowsort label-3875
SELECT ALL - COUNT ( * ) + + + CAST ( 18 AS INTEGER ) AS col1, MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) * 19 + - 94
----
17
NULL

query I rowsort
SELECT + 4 + - 52
----
-48

query II rowsort
SELECT - 40 AS col1, 16 + - 47 - 11 AS col2
----
-40
-42

query I rowsort
SELECT ALL + 62 * - 40 col0
----
-2480

query I rowsort
SELECT ALL 87 + 28
----
115

query I rowsort
SELECT ALL 1 + - 2 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3881
SELECT MIN( + 84 )
----
84

skipif mysql # not compatible
query I rowsort label-3881
SELECT MIN ( + 84 )
----
84

onlyif mysql # aggregate syntax: 
query II rowsort label-3882
SELECT - - 37 AS col1, COUNT( * ) AS col2
----
37
1

skipif mysql # not compatible
query II rowsort label-3882
SELECT - - 37 AS col1, COUNT ( * ) AS col2
----
37
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3883
SELECT - COUNT( + - 66 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3883
SELECT - COUNT ( + - 66 ) AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3884
SELECT + + ( 71 ) DIV - 62 + + + 52 AS col2
----
51

skipif mysql # not compatible
query I rowsort label-3884
SELECT + + ( 71 ) / - 62 + + + 52 AS col2
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-3885
SELECT ALL - 80 DIV + 76
----
-1

skipif mysql # not compatible
query I rowsort label-3885
SELECT ALL - 80 / + 76
----
-1

query I rowsort
SELECT + + 5 * 37 + - 60 * - 61
----
3845

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3887
SELECT ALL 31 / - 61 * + COUNT( * ) - - - CAST( NULL AS SIGNED ) - + 18 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3887
SELECT ALL 31 / - 61 * + COUNT ( * ) - - - CAST ( NULL AS INTEGER ) - + 18 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3888
SELECT + COUNT( * ) * ( - + 57 ), + 28 AS col0
----
-57
28

skipif mysql # not compatible
query II rowsort label-3888
SELECT + COUNT ( * ) * ( - + 57 ), + 28 AS col0
----
-57
28

onlyif mysql # DIV for integer division: 
query I rowsort label-3889
SELECT ALL 90 DIV 49
----
1

skipif mysql # not compatible
query I rowsort label-3889
SELECT ALL 90 / 49
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3890
SELECT ALL + + SUM( DISTINCT ( + NULLIF ( 10, - 72 ) ) )
----
10

skipif mysql # not compatible
query I rowsort label-3890
SELECT ALL + + SUM ( DISTINCT ( + NULLIF ( 10, - 72 ) ) )
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3891
SELECT - COUNT( * ) * - + COUNT( * ) / + - CASE - CAST( NULL AS SIGNED ) WHEN + MIN( + 5 ) * + 82 / + 25 THEN NULL WHEN + 0 * + 15 / + 13 * 79 + 3 + 68 THEN NULL WHEN - + ( - 32 ) * + 55 * - 28 THEN + NULLIF ( + 11, - ( + + NULLIF ( + - 67, 58 * COUNT( * ) ) ) + + 8 ) WHEN + COUNT( * ) THEN + 98 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3891
SELECT - COUNT ( * ) * - + COUNT ( * ) / + - CASE - CAST ( NULL AS INTEGER ) WHEN + MIN ( + 5 ) * + 82 / + 25 THEN NULL WHEN + 0 * + 15 / + 13 * 79 + 3 + 68 THEN NULL WHEN - + ( - 32 ) * + 55 * - 28 THEN + NULLIF ( + 11, - ( + + NULLIF ( + - 67, 58 * COUNT ( * ) ) ) + + 8 ) WHEN + COUNT ( * ) THEN + 98 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT ALL + 39 * 43 + - 5
----
1672

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3893
SELECT ALL 39 * + COALESCE ( COUNT( * ), + - 80 * - - 27, - - NULLIF ( + CASE - 55 WHEN 91 - + 75 * + COUNT( * ) * + - COUNT( * ) THEN SUM( ALL + 72 ) ELSE - NULLIF ( + - 81, 98 ) * 97 DIV + - 18 + COUNT( * ) + 84 * + 74 DIV + 64 * + 27 END, + 77 + COUNT( 74 ) ) * ( - 9 * ( - 96 ) ) ) - + 36
----
3

skipif mysql # not compatible
query I rowsort label-3893
SELECT ALL 39 * + COALESCE ( COUNT ( * ), + - 80 * - - 27, - - NULLIF ( + CASE - 55 WHEN 91 - + 75 * + COUNT ( * ) * + - COUNT ( * ) THEN SUM ( ALL + 72 ) ELSE - NULLIF ( + - 81, 98 ) * 97 / + - 18 + COUNT ( * ) + 84 * + 74 / + 64 * + 27 END, + 77 + COUNT ( 74 ) ) * ( - 9 * ( - 96 ) ) ) - + 36
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-3894
SELECT + - COUNT( * ) AS col2, 13 col1
----
-1
13

skipif mysql # not compatible
query II rowsort label-3894
SELECT + - COUNT ( * ) AS col2, 13 col1
----
-1
13

query I rowsort
SELECT + - 89 - - + 47 AS col2
----
-42

query I rowsort
SELECT ALL + 78 * 78 * + - 51 AS col1
----
-310284

onlyif mysql # aggregate syntax: 
query I rowsort label-3897
SELECT - 94 * - COUNT( * ) AS col1
----
94

skipif mysql # not compatible
query I rowsort label-3897
SELECT - 94 * - COUNT ( * ) AS col1
----
94

query I rowsort
SELECT - 0 * 55
----
0

query II rowsort
SELECT ALL + CASE - + COALESCE ( 7, - 93 ) WHEN COALESCE ( + 47, - 40 * 80 - + 5 ) * - 72 THEN - + NULLIF ( - + 9, + - 5 + - - 41 ) ELSE NULL END, 41 + - + 28 AS col1
----
NULL
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3900
SELECT COALESCE ( + 16, + 29, COUNT( DISTINCT - 22 ) )
----
16

skipif mysql # not compatible
query I rowsort label-3900
SELECT COALESCE ( + 16, + 29, COUNT ( DISTINCT - 22 ) )
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-3901
SELECT - 64 + + NULLIF ( 0, 98 - + 62 + + + 5 * - + ( SUM( + 94 ) ) ) + NULLIF ( + 1, + 75 )
----
-63

skipif mysql # not compatible
query I rowsort label-3901
SELECT - 64 + + NULLIF ( 0, 98 - + 62 + + + 5 * - + ( SUM ( + 94 ) ) ) + NULLIF ( + 1, + 75 )
----
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3902
SELECT DISTINCT - COUNT( * ) DIV + 71 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3902
SELECT DISTINCT - COUNT ( * ) / + 71 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3903
SELECT ALL + CASE + SUM( + 41 ) WHEN + 78 THEN NULL WHEN - COALESCE ( 94, 71 ) THEN - + 8 + - + 69 ELSE + ( 27 ) + - ( + COUNT( * ) ) END
----
26

skipif mysql # not compatible
query I rowsort label-3903
SELECT ALL + CASE + SUM ( + 41 ) WHEN + 78 THEN NULL WHEN - COALESCE ( 94, 71 ) THEN - + 8 + - + 69 ELSE + ( 27 ) + - ( + COUNT ( * ) ) END
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3904
SELECT + MAX( + NULLIF ( 63, + 52 + - ( + - 44 ) ) ) AS col1
----
63

skipif mysql # not compatible
query I rowsort label-3904
SELECT + MAX ( + NULLIF ( 63, + 52 + - ( + - 44 ) ) ) AS col1
----
63

query I rowsort
SELECT ALL - 95 * + 52 AS col1
----
-4940

query I rowsort
SELECT - NULLIF ( - 59, 6 )
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-3907
SELECT ALL - 86 * + 42 col0, COUNT( * ) AS col1
----
-3612
1

skipif mysql # not compatible
query II rowsort label-3907
SELECT ALL - 86 * + 42 col0, COUNT ( * ) AS col1
----
-3612
1

query I rowsort
SELECT - 28 * + ( - + 39 ) * + - 13
----
-14196

onlyif mysql # aggregate syntax: 
query I rowsort label-3909
SELECT - 87 + SUM( + 8 ) + + - 50 * - ( + 93 )
----
4571

skipif mysql # not compatible
query I rowsort label-3909
SELECT - 87 + SUM ( + 8 ) + + - 50 * - ( + 93 )
----
4571

onlyif mysql # aggregate syntax: 
query I rowsort label-3910
SELECT COUNT( + 19 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3910
SELECT COUNT ( + 19 ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3911
SELECT ALL CAST( 19 AS SIGNED ) AS col2
----
19

skipif mysql # not compatible
query I rowsort label-3911
SELECT ALL CAST ( 19 AS INTEGER ) AS col2
----
19

query I rowsort
SELECT DISTINCT - 68 * + 41 + - 0 AS col0
----
-2788

query I rowsort
SELECT ALL + 18 * - 15 + 82 AS col2
----
-188

onlyif mysql # aggregate syntax: 
query I rowsort label-3914
SELECT DISTINCT - 68 + + 22 * COUNT( * ) * + 93 * + 24 * - 18 AS col2
----
-883940

skipif mysql # not compatible
query I rowsort label-3914
SELECT DISTINCT - 68 + + 22 * COUNT ( * ) * + 93 * + 24 * - 18 AS col2
----
-883940

onlyif mysql # DIV for integer division: 
query I rowsort label-3915
SELECT + - 80 DIV - 90 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3915
SELECT + - 80 / - 90 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3916
SELECT ALL + 75 + 51 - - + CAST( NULL AS SIGNED ) * + - 28 AS col2, - 49 AS col2
----
NULL
-49

skipif mysql # not compatible
query II rowsort label-3916
SELECT ALL + 75 + 51 - - + CAST ( NULL AS INTEGER ) * + - 28 AS col2, - 49 AS col2
----
NULL
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-3917
SELECT ALL + 50 * NULLIF ( 52, + 15 * 48 - + COUNT( * ) ) + 56 + - - 27
----
2683

skipif mysql # not compatible
query I rowsort label-3917
SELECT ALL + 50 * NULLIF ( 52, + 15 * 48 - + COUNT ( * ) ) + 56 + - - 27
----
2683

query I rowsort
SELECT - 52 * 18 + + 7 AS col2
----
-929

onlyif mysql # aggregate syntax: 
query I rowsort label-3919
SELECT ALL 35 - + + 74 + - COUNT( * ) * - COUNT( * ) * 3
----
-36

skipif mysql # not compatible
query I rowsort label-3919
SELECT ALL 35 - + + 74 + - COUNT ( * ) * - COUNT ( * ) * 3
----
-36

query I rowsort
SELECT - 9 * - + 90 - - 10 AS col1
----
820

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3921
SELECT ALL 79 * - CAST( + 13 AS SIGNED ) col2
----
-1027

skipif mysql # not compatible
query I rowsort label-3921
SELECT ALL 79 * - CAST ( + 13 AS INTEGER ) col2
----
-1027

onlyif mysql # DIV for integer division: 
query I rowsort label-3922
SELECT - 18 - + 83 DIV + 44
----
-19

skipif mysql # not compatible
query I rowsort label-3922
SELECT - 18 - + 83 / + 44
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3923
SELECT DISTINCT - MIN( DISTINCT + 1 ) AS col2, COALESCE ( - NULLIF ( + 37, - - CAST( + + 25 AS SIGNED ) ), + + 45 ) AS col1
----
-1
-37

skipif mysql # not compatible
query II rowsort label-3923
SELECT DISTINCT - MIN ( DISTINCT + 1 ) AS col2, COALESCE ( - NULLIF ( + 37, - - CAST ( + + 25 AS INTEGER ) ), + + 45 ) AS col1
----
-1
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3924
SELECT DISTINCT + CAST( 78 AS SIGNED ) * 38 + + 46 + - 56 AS col2
----
2954

skipif mysql # not compatible
query I rowsort label-3924
SELECT DISTINCT + CAST ( 78 AS INTEGER ) * 38 + + 46 + - 56 AS col2
----
2954

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3925
SELECT + 4 DIV - - ( 21 ) * - + 87 + + CAST( 57 AS SIGNED ) DIV + 94
----
0

skipif mysql # not compatible
query I rowsort label-3925
SELECT + 4 / - - ( 21 ) * - + 87 + + CAST ( 57 AS INTEGER ) / + 94
----
0

query I rowsort
SELECT + 54 * 86 + - 54
----
4590

onlyif mysql # aggregate syntax: 
query I rowsort label-3927
SELECT + + COALESCE ( + COUNT( * ), + 30, 33 )
----
1

skipif mysql # not compatible
query I rowsort label-3927
SELECT + + COALESCE ( + COUNT ( * ), + 30, 33 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3928
SELECT 31 + - 94 * + NULLIF ( 38, - CAST( + NULLIF ( + COALESCE ( + + 46, + 48 * - 95 + + COUNT( * ) + + 54 ), + 53 * 65 ) AS SIGNED ) ) AS col1
----
-3541

skipif mysql # not compatible
query I rowsort label-3928
SELECT 31 + - 94 * + NULLIF ( 38, - CAST ( + NULLIF ( + COALESCE ( + + 46, + 48 * - 95 + + COUNT ( * ) + + 54 ), + 53 * 65 ) AS INTEGER ) ) AS col1
----
-3541

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3929
SELECT - + 29 DIV - 51 - + 39 * + 22 AS col0, - 49 * COUNT( * ) AS col0
----
-858
-49

skipif mysql # not compatible
query II rowsort label-3929
SELECT - + 29 / - 51 - + 39 * + 22 AS col0, - 49 * COUNT ( * ) AS col0
----
-858
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-3930
SELECT ALL - 74 DIV + 89
----
0

skipif mysql # not compatible
query I rowsort label-3930
SELECT ALL - 74 / + 89
----
0

query I rowsort
SELECT DISTINCT + 71 * + 21 AS col0
----
1491

query I rowsort
SELECT ( - 54 ) + - 62 + 72 AS col1
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-3933
SELECT ALL - MIN( DISTINCT + - 98 ) AS col2
----
98

skipif mysql # not compatible
query I rowsort label-3933
SELECT ALL - MIN ( DISTINCT + - 98 ) AS col2
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-3934
SELECT 12 DIV - - 33
----
0

skipif mysql # not compatible
query I rowsort label-3934
SELECT 12 / - - 33
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3935
SELECT DISTINCT COUNT( ALL ( ( + 66 ) ) ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3935
SELECT DISTINCT COUNT ( ALL ( ( + 66 ) ) ) + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3936
SELECT 22 * 37 * COUNT( ALL 48 ) AS col2
----
814

skipif mysql # not compatible
query I rowsort label-3936
SELECT 22 * 37 * COUNT ( ALL 48 ) AS col2
----
814

query I rowsort
SELECT DISTINCT 64 * + 7
----
448

onlyif mysql # aggregate syntax: 
query I rowsort label-3938
SELECT ALL - ( + 69 ) + - COALESCE ( - 5, + COUNT( * ) * + 85, MIN( - CASE 36 WHEN + + 95 THEN + 58 END ) + 13 + + 79, 40 ) AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-3938
SELECT ALL - ( + 69 ) + - COALESCE ( - 5, + COUNT ( * ) * + 85, MIN ( - CASE 36 WHEN + + 95 THEN + 58 END ) + 13 + + 79, 40 ) AS col0
----
-64

query I rowsort
SELECT DISTINCT - 82 + 23
----
-59

query I rowsort
SELECT ALL - CASE + 4 WHEN + - 92 + - 81 * + 6 THEN + ( + 72 ) END
----
NULL

query I rowsort
SELECT ALL - 55 + 28 AS col2
----
-27

query I rowsort
SELECT DISTINCT - 37 + - 53 + + - 71
----
-161

onlyif mysql # aggregate syntax: 
query I rowsort label-3943
SELECT 50 * + COUNT( * ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-3943
SELECT 50 * + COUNT ( * ) AS col2
----
50

query I rowsort
SELECT ALL - 64 + + - 90 AS col2
----
-154

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3945
SELECT 59 + + 98 + CAST( - - 36 AS SIGNED ) + + 14
----
207

skipif mysql # not compatible
query I rowsort label-3945
SELECT 59 + + 98 + CAST ( - - 36 AS INTEGER ) + + 14
----
207

query I rowsort
SELECT - + ( + 34 ) AS col2
----
-34

query I rowsort
SELECT - 53 + + 40
----
-13

query I rowsort
SELECT 49 - - NULLIF ( 59, + 88 ) AS col2
----
108

query I rowsort
SELECT + 27 * + 91
----
2457

onlyif mysql # aggregate syntax: 
query I rowsort label-3950
SELECT - SUM( DISTINCT 23 ) + - 27
----
-50

skipif mysql # not compatible
query I rowsort label-3950
SELECT - SUM ( DISTINCT 23 ) + - 27
----
-50

query I rowsort
SELECT ALL + - 40 - + 27
----
-67

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3952
SELECT 28 + - + 13 - + 90 DIV + + ( + + COALESCE ( - + CAST( NULL AS SIGNED ), + 7, - 61 ) ), + 0 AS col0
----
3
0

skipif mysql # not compatible
query II rowsort label-3952
SELECT 28 + - + 13 - + 90 / + + ( + + COALESCE ( - + CAST ( NULL AS INTEGER ), + 7, - 61 ) ), + 0 AS col0
----
3
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3953
SELECT ALL + 13 DIV - 38 + - NULLIF ( + COUNT( * ), + - MAX( DISTINCT 52 ) + + - COUNT( * ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3953
SELECT ALL + 13 / - 38 + - NULLIF ( + COUNT ( * ), + - MAX ( DISTINCT 52 ) + + - COUNT ( * ) ) AS col1
----
-1

query I rowsort
SELECT ALL + 2 - - + 18
----
20

query I rowsort
SELECT + 16 + + - 1 AS col0
----
15

onlyif mysql # aggregate syntax: 
query III rowsort label-3956
SELECT ALL 55 - + 13 + - SUM( DISTINCT 7 ) * - COUNT( * ) AS col2, 57, + - 88 AS col1
----
49
57
-88

skipif mysql # not compatible
query III rowsort label-3956
SELECT ALL 55 - + 13 + - SUM ( DISTINCT 7 ) * - COUNT ( * ) AS col2, 57, + - 88 AS col1
----
49
57
-88

query II rowsort
SELECT ALL - 56, 76 AS col1
----
-56
76

onlyif mysql # aggregate syntax: 
query I rowsort label-3958
SELECT - SUM( DISTINCT + 10 ) + + 57 AS col2
----
47

skipif mysql # not compatible
query I rowsort label-3958
SELECT - SUM ( DISTINCT + 10 ) + + 57 AS col2
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3959
SELECT - + CAST( + 36 AS SIGNED ) DIV 73 + - 95 + COUNT( DISTINCT + - 77 ) AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-3959
SELECT - + CAST ( + 36 AS INTEGER ) / 73 + - 95 + COUNT ( DISTINCT + - 77 ) AS col0
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-3960
SELECT MIN( DISTINCT 22 ) col0
----
22

skipif mysql # not compatible
query I rowsort label-3960
SELECT MIN ( DISTINCT 22 ) col0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3961
SELECT DISTINCT COUNT( ALL - - 2 ) * 69 + - 39 + + + 29 * + 1 * - - SUM( DISTINCT 66 )
----
1944

skipif mysql # not compatible
query I rowsort label-3961
SELECT DISTINCT COUNT ( ALL - - 2 ) * 69 + - 39 + + + 29 * + 1 * - - SUM ( DISTINCT 66 )
----
1944

query II rowsort
SELECT + 5, 32 AS col1
----
5
32

onlyif mysql # aggregate syntax: 
query II rowsort label-3963
SELECT NULLIF ( - COUNT( * ), COUNT( * ) ) * + 57 + ( + 23 ) AS col1, + 63 - - 34
----
-34
97

skipif mysql # not compatible
query II rowsort label-3963
SELECT NULLIF ( - COUNT ( * ), COUNT ( * ) ) * + 57 + ( + 23 ) AS col1, + 63 - - 34
----
-34
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3964
SELECT ALL COUNT( * ) + COUNT( * ) + + 54 DIV - + 69 * - 13 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-3964
SELECT ALL COUNT ( * ) + COUNT ( * ) + + 54 / - + 69 * - 13 AS col1
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-3965
SELECT DISTINCT COUNT( * ) + ( + ( - COUNT( * ) ) ) col0, 50
----
0
50

skipif mysql # not compatible
query II rowsort label-3965
SELECT DISTINCT COUNT ( * ) + ( + ( - COUNT ( * ) ) ) col0, 50
----
0
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3966
SELECT COUNT( * ) * - - 55
----
55

skipif mysql # not compatible
query I rowsort label-3966
SELECT COUNT ( * ) * - - 55
----
55

query I rowsort
SELECT ( - 24 ) * + ( + 41 )
----
-984

query I rowsort
SELECT DISTINCT ( + - 64 ) * + 95 * - 12
----
72960

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3969
SELECT ALL COALESCE ( COUNT( * ), - AVG ( 59 ) ) + + - MAX( 84 ) + + 29 + - 25 + - CAST( NULL AS DECIMAL ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3969
SELECT ALL COALESCE ( COUNT ( * ), - AVG ( 59 ) ) + + - MAX ( 84 ) + + 29 + - 25 + - CAST ( NULL AS REAL ) col0
----
NULL

query I rowsort
SELECT ( + 95 ) * 93
----
8835

query I rowsort
SELECT ALL + 23 * + 68
----
1564

onlyif mysql # aggregate syntax: 
query I rowsort label-3972
SELECT COUNT( * ) - - + ( + SUM( + 60 ) ) + + 78 AS col2
----
139

skipif mysql # not compatible
query I rowsort label-3972
SELECT COUNT ( * ) - - + ( + SUM ( + 60 ) ) + + 78 AS col2
----
139

query II rowsort
SELECT ALL - 76, - 31 AS col2
----
-76
-31

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3974
SELECT DISTINCT - NULLIF ( - CAST( 77 AS SIGNED ), AVG ( - 17 ) + + + 47 ), + COALESCE ( + 30, - - 73 ) AS col1
----
77
30

skipif mysql # not compatible
query II rowsort label-3974
SELECT DISTINCT - NULLIF ( - CAST ( 77 AS INTEGER ), AVG ( - 17 ) + + + 47 ), + COALESCE ( + 30, - - 73 ) AS col1
----
77
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3975
SELECT ALL CAST( NULL AS SIGNED ) + 21 * + + 2 * + 83 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3975
SELECT ALL CAST ( NULL AS INTEGER ) + 21 * + + 2 * + 83 AS col0
----
NULL

query I rowsort
SELECT ALL - ( - 66 ) AS col1
----
66

query II rowsort
SELECT + 94 AS col0, - 57 AS col1
----
94
-57

query I rowsort
SELECT + 98 + - 89
----
9

query I rowsort
SELECT DISTINCT - ( - + 4 )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3980
SELECT + 42 * - - 75 + + COUNT( * ) AS col0
----
3151

skipif mysql # not compatible
query I rowsort label-3980
SELECT + 42 * - - 75 + + COUNT ( * ) AS col0
----
3151

query I rowsort
SELECT - - 98 + + 2
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-3982
SELECT + + NULLIF ( - 90, + 3 + + COUNT( * ) + 43 + - + 74 * - 95 ) * - - 92 col2
----
-8280

skipif mysql # not compatible
query I rowsort label-3982
SELECT + + NULLIF ( - 90, + 3 + + COUNT ( * ) + 43 + - + 74 * - 95 ) * - - 92 col2
----
-8280

onlyif mysql # aggregate syntax: 
query I rowsort label-3983
SELECT ALL + 23 * - MAX( 30 ) AS col0
----
-690

skipif mysql # not compatible
query I rowsort label-3983
SELECT ALL + 23 * - MAX ( 30 ) AS col0
----
-690

onlyif mysql # aggregate syntax: 
query II rowsort label-3984
SELECT DISTINCT 93, + 95 + + 52 + - COUNT( * ) AS col1
----
93
146

skipif mysql # not compatible
query II rowsort label-3984
SELECT DISTINCT 93, + 95 + + 52 + - COUNT ( * ) AS col1
----
93
146

onlyif mysql # aggregate syntax: 
query II rowsort label-3985
SELECT ALL COUNT( * ) AS col1, + 18 AS col0
----
1
18

skipif mysql # not compatible
query II rowsort label-3985
SELECT ALL COUNT ( * ) AS col1, + 18 AS col0
----
1
18

onlyif mysql # aggregate syntax: 
query II rowsort label-3986
SELECT ALL 61 col0, COUNT( * )
----
61
1

skipif mysql # not compatible
query II rowsort label-3986
SELECT ALL 61 col0, COUNT ( * )
----
61
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3987
SELECT + 53 - + 26 + + - 13 DIV - 61 col2
----
27

skipif mysql # not compatible
query I rowsort label-3987
SELECT + 53 - + 26 + + - 13 / - 61 col2
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3988
SELECT - CASE + 85 WHEN - 85 * - COUNT( * ) THEN + 72 END
----
-72

skipif mysql # not compatible
query I rowsort label-3988
SELECT - CASE + 85 WHEN - 85 * - COUNT ( * ) THEN + 72 END
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-3989
SELECT - 27 * - 26 + - 67 * + + MAX( - ( - + 0 ) ) + 75 AS col1
----
777

skipif mysql # not compatible
query I rowsort label-3989
SELECT - 27 * - 26 + - 67 * + + MAX ( - ( - + 0 ) ) + 75 AS col1
----
777

query I rowsort
SELECT ALL + 7 * 44 AS col0
----
308

query I rowsort
SELECT - 67 * + 96 * - 26 AS col0
----
167232

query II rowsort
SELECT - 33, 49 AS col1
----
-33
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3993
SELECT ALL + 91 * SUM( DISTINCT + 91 )
----
8281

skipif mysql # not compatible
query I rowsort label-3993
SELECT ALL + 91 * SUM ( DISTINCT + 91 )
----
8281

onlyif mysql # aggregate syntax: 
query II rowsort label-3994
SELECT - + COUNT( * ) AS col2, + 6 AS col0
----
-1
6

skipif mysql # not compatible
query II rowsort label-3994
SELECT - + COUNT ( * ) AS col2, + 6 AS col0
----
-1
6

query I rowsort
SELECT ALL + 46 + - 32 col1
----
14

query I rowsort
SELECT - - 61 - + 88 + - - 87 * - - CASE + + 26 WHEN 51 + + - 66 THEN - 4 ELSE NULL END + + 62 AS col0
----
NULL

query I rowsort
SELECT ALL 35 * - 21 * - 83 * 41
----
2501205

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3998
SELECT + 34 DIV - 74 + + - COUNT( * ) AS col0, + 96
----
-1
96

skipif mysql # not compatible
query II rowsort label-3998
SELECT + 34 / - 74 + + - COUNT ( * ) AS col0, + 96
----
-1
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3999
SELECT ( + MAX( - 57 ) )
----
-57

skipif mysql # not compatible
query I rowsort label-3999
SELECT ( + MAX ( - 57 ) )
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-4000
SELECT ALL + 69 * 26 + MAX( ALL + + 51 ) AS col2
----
1845

skipif mysql # not compatible
query I rowsort label-4000
SELECT ALL + 69 * 26 + MAX ( ALL + + 51 ) AS col2
----
1845

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4001
SELECT MIN( ALL + 84 ) DIV + CASE - - 93 WHEN COALESCE ( + 37, + + CAST( NULL AS SIGNED ), - 37 ) THEN COUNT( * ) * + 68 * + 74 ELSE + + 79 * - NULLIF ( + 2, 42 * 76 * - ( - 31 ) ) END - - 51 + 75 + + 90 * - 90 + ( 55 ) col1
----
-7919

skipif mysql # not compatible
query I rowsort label-4001
SELECT MIN ( ALL + 84 ) / + CASE - - 93 WHEN COALESCE ( + 37, + + CAST ( NULL AS INTEGER ), - 37 ) THEN COUNT ( * ) * + 68 * + 74 ELSE + + 79 * - NULLIF ( + 2, 42 * 76 * - ( - 31 ) ) END - - 51 + 75 + + 90 * - 90 + ( 55 ) col1
----
-7919

onlyif mysql # DIV for integer division: 
query I rowsort label-4002
SELECT - 46 * 1 * 27 DIV + + 75 + 12 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-4002
SELECT - 46 * 1 * 27 / + + 75 + 12 AS col1
----
-4

query I rowsort
SELECT COALESCE ( - 84, - 47 + + ( - 76 ) ) AS col2
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-4004
SELECT + COUNT( * ) + - + 51 + + 43 + + 73
----
66

skipif mysql # not compatible
query I rowsort label-4004
SELECT + COUNT ( * ) + - + 51 + + 43 + + 73
----
66

query I rowsort
SELECT + + 69 + + 72
----
141

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4006
SELECT + - 57 * - - ( + ( COUNT( * ) ) ) DIV - COUNT( * )
----
57

skipif mysql # not compatible
query I rowsort label-4006
SELECT + - 57 * - - ( + ( COUNT ( * ) ) ) / - COUNT ( * )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4007
SELECT DISTINCT + 10 * + 47 * - - 53 - + COUNT( * )
----
24909

skipif mysql # not compatible
query I rowsort label-4007
SELECT DISTINCT + 10 * + 47 * - - 53 - + COUNT ( * )
----
24909

query I rowsort
SELECT + 71 + 64 * - + 51 AS col0
----
-3193

query I rowsort
SELECT DISTINCT - 55 * - ( + + 60 ) + - ( + 76 ) * + 0 * 57 AS col1
----
3300

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4010
SELECT DISTINCT - MIN( - + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4010
SELECT DISTINCT - MIN ( - + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4011
SELECT DISTINCT MIN( - + COALESCE ( + 29, + 3 ) ) AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-4011
SELECT DISTINCT MIN ( - + COALESCE ( + 29, + 3 ) ) AS col1
----
-29

query I rowsort
SELECT + 98 * 36 col2
----
3528

onlyif mysql # aggregate syntax: 
query I rowsort label-4013
SELECT ALL - COUNT( * ) * + - 44 - 99 col2
----
-55

skipif mysql # not compatible
query I rowsort label-4013
SELECT ALL - COUNT ( * ) * + - 44 - 99 col2
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-4014
SELECT + + 31 + + - COUNT( * ) AS col1
----
30

skipif mysql # not compatible
query I rowsort label-4014
SELECT + + 31 + + - COUNT ( * ) AS col1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4015
SELECT - + 25 - - 85 * COUNT( * ) - + + 28 + + + 61 * + 24
----
1496

skipif mysql # not compatible
query I rowsort label-4015
SELECT - + 25 - - 85 * COUNT ( * ) - + + 28 + + + 61 * + 24
----
1496

query I rowsort
SELECT DISTINCT NULLIF ( - - 77, 26 )
----
77

query I rowsort
SELECT - - 50 + - + 5 + - 57
----
-12

query I rowsort
SELECT ALL - 70 + + - 30
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-4019
SELECT - 0 + - COUNT( * ) + - 88
----
-89

skipif mysql # not compatible
query I rowsort label-4019
SELECT - 0 + - COUNT ( * ) + - 88
----
-89

query I rowsort
SELECT ALL - 4 + 87
----
83

query II rowsort
SELECT - 0 + + + ( - 96 ) col1, + 14
----
-96
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4022
SELECT ALL - 67 + COUNT( * ) * - COUNT( * ) + + SUM( DISTINCT 71 )
----
3

skipif mysql # not compatible
query I rowsort label-4022
SELECT ALL - 67 + COUNT ( * ) * - COUNT ( * ) + + SUM ( DISTINCT 71 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4023
SELECT + 12 * 43 * - + COUNT( * ) * - 65 * + 47 * + + MAX( 11 ) AS col0
----
17340180

skipif mysql # not compatible
query I rowsort label-4023
SELECT + 12 * 43 * - + COUNT ( * ) * - 65 * + 47 * + + MAX ( 11 ) AS col0
----
17340180

query I rowsort
SELECT - 18 * + 76 col2
----
-1368

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4025
SELECT DISTINCT - COUNT( * ) + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4025
SELECT DISTINCT - COUNT ( * ) + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4026
SELECT ALL - COALESCE ( 91, + 0 * + - ( - MIN( DISTINCT + 30 ) ) * - 27 ) * - - 98
----
-8918

skipif mysql # not compatible
query I rowsort label-4026
SELECT ALL - COALESCE ( 91, + 0 * + - ( - MIN ( DISTINCT + 30 ) ) * - 27 ) * - - 98
----
-8918

onlyif mysql # aggregate syntax: 
query I rowsort label-4027
SELECT COUNT( ALL - 98 ) / - 63 / CASE - 53 WHEN - 11 THEN 21 END + + 74 * - - 44
----
NULL

skipif mysql # not compatible
query I rowsort label-4027
SELECT COUNT ( ALL - 98 ) / - 63 / CASE - 53 WHEN - 11 THEN 21 END + + 74 * - - 44
----
NULL

query I rowsort
SELECT - 82 * - 18
----
1476

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4029
SELECT ALL + 59 / COUNT( * ) - - - 80 + - 85 - 10 * + 91 * - MIN( + 17 ) - - CAST( NULL AS SIGNED ) * - 24 * + 68 + + 81 * 96
----
NULL

skipif mysql # not compatible
query I rowsort label-4029
SELECT ALL + 59 / COUNT ( * ) - - - 80 + - 85 - 10 * + 91 * - MIN ( + 17 ) - - CAST ( NULL AS INTEGER ) * - 24 * + 68 + + 81 * 96
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4030
SELECT - 34 DIV - 26 col2
----
1

skipif mysql # not compatible
query I rowsort label-4030
SELECT - 34 / - 26 col2
----
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4031
SELECT ALL - 96 DIV CAST( - 18 AS SIGNED ) AS col2, 37 * + + 67
----
5
2479

skipif mysql # not compatible
query II rowsort label-4031
SELECT ALL - 96 / CAST ( - 18 AS INTEGER ) AS col2, 37 * + + 67
----
5
2479

onlyif mysql # DIV for integer division: 
query I rowsort label-4032
SELECT 59 * + 65 + - 13 DIV - 56 + - - 55 AS col0
----
3890

skipif mysql # not compatible
query I rowsort label-4032
SELECT 59 * + 65 + - 13 / - 56 + - - 55 AS col0
----
3890

onlyif mysql # aggregate syntax: 
query I rowsort label-4033
SELECT + MIN( - 19 )
----
-19

skipif mysql # not compatible
query I rowsort label-4033
SELECT + MIN ( - 19 )
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-4034
SELECT 66 DIV - 80
----
0

skipif mysql # not compatible
query I rowsort label-4034
SELECT 66 / - 80
----
0

query I rowsort
SELECT - 66 * - - 66 * + 50 - 65 + + - 85 * - + 82 AS col1
----
-210895

query II rowsort
SELECT + 92, + ( - 18 ) AS col1
----
92
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4037
SELECT ( 49 ) + CAST( + - 77 AS SIGNED )
----
-28

skipif mysql # not compatible
query I rowsort label-4037
SELECT ( 49 ) + CAST ( + - 77 AS INTEGER )
----
-28

query II rowsort
SELECT ALL - 26 AS col2, 40 AS col2
----
-26
40

query I rowsort
SELECT ALL 76 * 76 AS col2
----
5776

query I rowsort
SELECT - 46 * - 93 + + ( - 12 ) + - 87
----
4179

query I rowsort
SELECT + CASE + + 72 WHEN 85 THEN - - 19 - - 62 + + - 71 * 93 END + - 16 AS col2
----
NULL

query I rowsort
SELECT + + 70 * + + 51 - ( + 8 )
----
3562

query II rowsort
SELECT + - 42 col1, 99 * 13 col0
----
-42
1287

query I rowsort
SELECT 75 + - 15
----
60

query I rowsort
SELECT - 5 + - 51 AS col1
----
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-4046
SELECT DISTINCT 56 AS col1, - COUNT( * )
----
56
-1

skipif mysql # not compatible
query II rowsort label-4046
SELECT DISTINCT 56 AS col1, - COUNT ( * )
----
56
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4047
SELECT 52 DIV + 83 + + + 63 + - + 74 + 65 * + + ( - 60 ) AS col1
----
-3911

skipif mysql # not compatible
query I rowsort label-4047
SELECT 52 / + 83 + + + 63 + - + 74 + 65 * + + ( - 60 ) AS col1
----
-3911

onlyif mysql # aggregate syntax: 
query I rowsort label-4048
SELECT 11 - + COUNT( * ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-4048
SELECT 11 - + COUNT ( * ) AS col2
----
10

query I rowsort
SELECT ALL 6 + + 29 AS col2
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4050
SELECT ALL CAST( NULL AS SIGNED ) / - + 12 * + 73
----
NULL

skipif mysql # not compatible
query I rowsort label-4050
SELECT ALL CAST ( NULL AS INTEGER ) / - + 12 * + 73
----
NULL

query I rowsort
SELECT 5 + + ( 92 )
----
97

query I rowsort
SELECT 41 * + + CASE 70 WHEN - 31 + - 9 THEN - + ( + + 13 ) END AS col0
----
NULL

query I rowsort
SELECT ALL - NULLIF ( 50, + 14 * + + 65 + 93 ) - 36 + + CASE + AVG ( DISTINCT + 18 ) WHEN - - 76 + 31 THEN + 65 / + 44 WHEN + 3 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4054
SELECT ( - ( - COUNT( * ) ) ) - + 85 AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-4054
SELECT ( - ( - COUNT ( * ) ) ) - + 85 AS col0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-4055
SELECT DISTINCT COUNT( * ) * + 23 AS col1
----
23

skipif mysql # not compatible
query I rowsort label-4055
SELECT DISTINCT COUNT ( * ) * + 23 AS col1
----
23

query I rowsort
SELECT DISTINCT - ( + - 47 ) AS col2
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4057
SELECT COUNT( * ) DIV 61 + + 39
----
39

skipif mysql # not compatible
query I rowsort label-4057
SELECT COUNT ( * ) / 61 + + 39
----
39

query II rowsort
SELECT ALL 50 * 74, - 58 AS col1
----
3700
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4059
SELECT DISTINCT + 47 * - 66, + CAST( + + COUNT( * ) AS SIGNED ) * - COUNT( * ) AS col2
----
-3102
-1

skipif mysql # not compatible
query II rowsort label-4059
SELECT DISTINCT + 47 * - 66, + CAST ( + + COUNT ( * ) AS INTEGER ) * - COUNT ( * ) AS col2
----
-3102
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4060
SELECT - ( + MAX( + + 85 ) )
----
-85

skipif mysql # not compatible
query I rowsort label-4060
SELECT - ( + MAX ( + + 85 ) )
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-4061
SELECT DISTINCT - - 1 + + 82 * ( ( + 14 ) ) + - 92 + - COUNT( * ) * - - NULLIF ( + 21, + ( - - 22 ) / + - 99 ) * - - NULLIF ( - - 49, + 41 + - 12 )
----
28

skipif mysql # not compatible
query I rowsort label-4061
SELECT DISTINCT - - 1 + + 82 * ( ( + 14 ) ) + - 92 + - COUNT ( * ) * - - NULLIF ( + 21, + ( - - 22 ) / + - 99 ) * - - NULLIF ( - - 49, + 41 + - 12 )
----
28

query I rowsort
SELECT ALL - + COALESCE ( - 0, - - 90, - 71 ) col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4063
SELECT 41 DIV + + 49 * + 67
----
0

skipif mysql # not compatible
query I rowsort label-4063
SELECT 41 / + + 49 * + 67
----
0

query II rowsort
SELECT + ( + - 94 ) col1, 74 col0
----
-94
74

query I rowsort
SELECT + - ( + 51 ) col0
----
-51

query I rowsort
SELECT DISTINCT + - 13 + + 89 + + + 82 AS col0
----
158

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4067
SELECT DISTINCT - + CAST( NULL AS DECIMAL ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4067
SELECT DISTINCT - + CAST ( NULL AS REAL ) col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4068
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + 63, 79 * - 59 AS col1
----
NULL
-4661

skipif mysql # not compatible
query II rowsort label-4068
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 63, 79 * - 59 AS col1
----
NULL
-4661

query I rowsort
SELECT DISTINCT - + 84 + - + 36
----
-120

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4070
SELECT 90 + - 62 * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4070
SELECT 90 + - 62 * + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL - 68 + + - 73 AS col1
----
-141

query II rowsort
SELECT 77 + 76 AS col2, - NULLIF ( + - ( 70 ), 99 ) AS col2
----
153
70

query I rowsort
SELECT 66 - - 70
----
136

query I rowsort
SELECT 69 + + 89 + CASE 39 WHEN 83 * - 12 THEN NULL ELSE - 49 END
----
109

query II rowsort
SELECT ALL 98 AS col0, + 5 AS col1
----
98
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4076
SELECT DISTINCT + ( - COUNT( * ) ) DIV + + ( MIN( + 23 ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4076
SELECT DISTINCT + ( - COUNT ( * ) ) / + + ( MIN ( + 23 ) ) AS col1
----
0

query I rowsort
SELECT ALL 46 * - 18
----
-828

query I rowsort
SELECT ALL 5 * + - 10
----
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4079
SELECT CASE + + 8 WHEN - 88 THEN + + NULLIF ( 79, + ( + CAST( 56 AS SIGNED ) ) ) + - - 74 ELSE NULL END + + - 41
----
NULL

skipif mysql # not compatible
query I rowsort label-4079
SELECT CASE + + 8 WHEN - 88 THEN + + NULLIF ( 79, + ( + CAST ( 56 AS INTEGER ) ) ) + - - 74 ELSE NULL END + + - 41
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4080
SELECT - 23 DIV - 48 * CAST( + 16 AS SIGNED ) DIV + 21 + + - 14 + + 13 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4080
SELECT - 23 / - 48 * CAST ( + 16 AS INTEGER ) / + 21 + + - 14 + + 13 AS col0
----
-1

query II rowsort
SELECT 81, + COALESCE ( - 78, - 78 ) AS col2
----
81
-78

query I rowsort
SELECT + 5 + + 1 col2
----
6

query I rowsort
SELECT ALL 11 * 15 AS col0
----
165

query II rowsort
SELECT ALL 75, - 98 * + 7 AS col0
----
75
-686

onlyif mysql # aggregate syntax: 
query I rowsort label-4085
SELECT + MIN( - 43 ) * ( 64 ) AS col1
----
-2752

skipif mysql # not compatible
query I rowsort label-4085
SELECT + MIN ( - 43 ) * ( 64 ) AS col1
----
-2752

onlyif mysql # aggregate syntax: 
query I rowsort label-4086
SELECT + ( - 47 ) + COUNT( * ) * - COUNT( * ) AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-4086
SELECT + ( - 47 ) + COUNT ( * ) * - COUNT ( * ) AS col2
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4087
SELECT CASE + - COUNT( * ) WHEN - - 56 THEN NULL WHEN - + 63 THEN NULL WHEN - - 42 / + + CASE + 79 WHEN + COUNT( * ) THEN 15 ELSE NULL END * 17 + COUNT( * ) + + 55 * + 47 - + 59 + + 78 * CASE + 73 WHEN - COUNT( * ) THEN NULL WHEN SUM( + 92 ) THEN - + 20 * + - 82 * + 61 * - - SUM( + 66 ) + + - CAST( NULL AS SIGNED ) + - 40 ELSE + + 2 END THEN + - 90 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4087
SELECT CASE + - COUNT ( * ) WHEN - - 56 THEN NULL WHEN - + 63 THEN NULL WHEN - - 42 / + + CASE + 79 WHEN + COUNT ( * ) THEN 15 ELSE NULL END * 17 + COUNT ( * ) + + 55 * + 47 - + 59 + + 78 * CASE + 73 WHEN - COUNT ( * ) THEN NULL WHEN SUM ( + 92 ) THEN - + 20 * + - 82 * + 61 * - - SUM ( + 66 ) + + - CAST ( NULL AS INTEGER ) + - 40 ELSE + + 2 END THEN + - 90 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4088
SELECT ALL - 70 * + 98 * MIN( ALL 73 )
----
-500780

skipif mysql # not compatible
query I rowsort label-4088
SELECT ALL - 70 * + 98 * MIN ( ALL 73 )
----
-500780

onlyif mysql # aggregate syntax: 
query I rowsort label-4089
SELECT COUNT( * ) * + COUNT( * ) + + MIN( DISTINCT - 48 ) + 53
----
6

skipif mysql # not compatible
query I rowsort label-4089
SELECT COUNT ( * ) * + COUNT ( * ) + + MIN ( DISTINCT - 48 ) + 53
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-4090
SELECT ALL 99 * + - 65 + + - 64 DIV 62 * 17 * + 2
----
-6469

skipif mysql # not compatible
query I rowsort label-4090
SELECT ALL 99 * + - 65 + + - 64 / 62 * 17 * + 2
----
-6469

onlyif mysql # aggregate syntax: 
query I rowsort label-4091
SELECT ALL COUNT( * ) * 93 AS col1
----
93

skipif mysql # not compatible
query I rowsort label-4091
SELECT ALL COUNT ( * ) * 93 AS col1
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-4092
SELECT + - 18 DIV + + 19 + + - 1
----
-1

skipif mysql # not compatible
query I rowsort label-4092
SELECT + - 18 / + + 19 + + - 1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4093
SELECT - - COUNT( * ) + + 57 DIV - - ( - + ( + 76 ) )
----
1

skipif mysql # not compatible
query I rowsort label-4093
SELECT - - COUNT ( * ) + + 57 / - - ( - + ( + 76 ) )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4094
SELECT DISTINCT + - COUNT( * ) * - 74 + + ( 32 ) + 25 col2, - 57 + 40 * + - 82
----
131
-3337

skipif mysql # not compatible
query II rowsort label-4094
SELECT DISTINCT + - COUNT ( * ) * - 74 + + ( 32 ) + 25 col2, - 57 + 40 * + - 82
----
131
-3337

query I rowsort
SELECT ALL - + 69 * 55 + - 40
----
-3835

query I rowsort
SELECT ALL - + 70 * + 50 + - 90 + - - 18 + - 13 * - 13 + - 1
----
-3404

query I rowsort
SELECT DISTINCT - ( + 36 ) * - - 45 + 29 AS col2
----
-1591

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4098
SELECT ALL + - 11 DIV - COUNT( * )
----
11

skipif mysql # not compatible
query I rowsort label-4098
SELECT ALL + - 11 / - COUNT ( * )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4099
SELECT ALL + 67 * + COALESCE ( 93, + 48 ) - - MAX( DISTINCT - 71 ) + 69
----
6229

skipif mysql # not compatible
query I rowsort label-4099
SELECT ALL + 67 * + COALESCE ( 93, + 48 ) - - MAX ( DISTINCT - 71 ) + 69
----
6229

query II rowsort
SELECT DISTINCT + 33, 24 - + - 31 AS col1
----
33
55

query I rowsort
SELECT + 24 + - 2 AS col1
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4102
SELECT ALL + + COUNT( * ) DIV - + MIN( DISTINCT + 25 ) * - 92 + - 1
----
-1

skipif mysql # not compatible
query I rowsort label-4102
SELECT ALL + + COUNT ( * ) / - + MIN ( DISTINCT + 25 ) * - 92 + - 1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4103
SELECT ( CAST( - - 34 AS SIGNED ) )
----
34

skipif mysql # not compatible
query I rowsort label-4103
SELECT ( CAST ( - - 34 AS INTEGER ) )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4104
SELECT - - 36 + - - MAX( - 61 )
----
-25

skipif mysql # not compatible
query I rowsort label-4104
SELECT - - 36 + - - MAX ( - 61 )
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-4105
SELECT - COUNT( * ) * - - 36 AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-4105
SELECT - COUNT ( * ) * - - 36 AS col0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-4106
SELECT - - MIN( ALL + - 8 ) AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-4106
SELECT - - MIN ( ALL + - 8 ) AS col2
----
-8

query I rowsort
SELECT - + 61 + - - 77 AS col1
----
16

query I rowsort
SELECT ALL - ( + + 85 ) col1
----
-85

query I rowsort
SELECT DISTINCT + 18 - 95
----
-77

query I rowsort
SELECT - 18 * + 59 AS col2
----
-1062

query I rowsort
SELECT ALL + 9 * + + 97
----
873

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4112
SELECT ALL + COUNT( * ) * - CAST( NULL AS DECIMAL ) * - CASE - 60 WHEN 56 THEN - 20 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4112
SELECT ALL + COUNT ( * ) * - CAST ( NULL AS REAL ) * - CASE - 60 WHEN 56 THEN - 20 END AS col2
----
NULL

query I rowsort
SELECT - 23 - - - CASE WHEN NULL IS NOT NULL THEN - 98 END
----
NULL

query I rowsort
SELECT - 82 * - + 86
----
7052

query I rowsort
SELECT - 99 + 59 + + 38
----
-2

query II rowsort
SELECT 59, - ( - - 0 ) AS col2
----
59
0

query I rowsort
SELECT - 75 + - + 58 + 57 + ( + - 81 )
----
-157

onlyif mysql # aggregate syntax: 
query II rowsort label-4118
SELECT - MIN( ALL - 53 ) * ( 2 ), - 23 AS col2
----
106
-23

skipif mysql # not compatible
query II rowsort label-4118
SELECT - MIN ( ALL - 53 ) * ( 2 ), - 23 AS col2
----
106
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-4119
SELECT - MIN( ALL 96 )
----
-96

skipif mysql # not compatible
query I rowsort label-4119
SELECT - MIN ( ALL 96 )
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4120
SELECT DISTINCT ( + COALESCE ( - + 80, COUNT( * ) - - + 45 + - 62 ) )
----
-80

skipif mysql # not compatible
query I rowsort label-4120
SELECT DISTINCT ( + COALESCE ( - + 80, COUNT ( * ) - - + 45 + - 62 ) )
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-4121
SELECT ALL - COUNT( * ) + + 42 * COUNT( * ) AS col0
----
41

skipif mysql # not compatible
query I rowsort label-4121
SELECT ALL - COUNT ( * ) + + 42 * COUNT ( * ) AS col0
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4122
SELECT + 45 - + SUM( DISTINCT + 47 ) DIV + 28 DIV - COUNT( * )
----
46

skipif mysql # not compatible
query I rowsort label-4122
SELECT + 45 - + SUM ( DISTINCT + 47 ) / + 28 / - COUNT ( * )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4123
SELECT ALL COUNT( * ) + + 9 * 82 * 99 * COUNT( * ) + 9 - - 89 AS col2
----
73161

skipif mysql # not compatible
query I rowsort label-4123
SELECT ALL COUNT ( * ) + + 9 * 82 * 99 * COUNT ( * ) + 9 - - 89 AS col2
----
73161

query I rowsort
SELECT + ( 40 ) + + - 12
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-4125
SELECT ALL + 74 DIV 89
----
0

skipif mysql # not compatible
query I rowsort label-4125
SELECT ALL + 74 / 89
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4126
SELECT + CAST( NULL AS SIGNED ) / - - 23
----
NULL

skipif mysql # not compatible
query I rowsort label-4126
SELECT + CAST ( NULL AS INTEGER ) / - - 23
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4127
SELECT CAST( NULL AS SIGNED ) * 68 + CASE + - 52 WHEN - + CASE - 30 WHEN - + 10 * + - SUM( ALL + CASE + 46 WHEN ( 83 ) + - 35 THEN 39 * + + 73 END ) * + 6 - - + 69 + - CAST( NULL AS SIGNED ) * + + 64 * - 12 THEN + COALESCE ( - CAST( NULL AS SIGNED ), + 47 ) END * 0 / + CASE - AVG ( - 14 ) WHEN 14 + + AVG ( - + 81 ) + MAX( DISTINCT + 62 ) + CASE + 47 - + 6 WHEN - 26 + + 74 / - 22 THEN NULL WHEN - 53 - 28 THEN 50 * + 13 + 19 WHEN + ( + ( - COUNT( * ) ) ) THEN 3 ELSE NULL END * + 14 * 36 THEN - 32 WHEN + 12 + COALESCE ( + MAX( + 72 ) - 19 * MIN( - 2 ), - 41 * - 7, COUNT( CAST( ( - 73 ) AS SIGNED ) ) * ( - COUNT( ALL + 51 ) ) ) / ( + 51 * 89 + + COALESCE ( ( 0 ), CAST( NULL AS SIGNED ) ) * - 77 ) THEN NULL ELSE NULL END * - ( + CAST( NULL AS SIGNED ) ) - ( MAX( ( + 24 ) ) ) * 72 THEN NULL WHEN + 3 THEN 66 + - COUNT( * ) ELSE 91 + + 1 * 83 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4127
SELECT CAST ( NULL AS INTEGER ) * 68 + CASE + - 52 WHEN - + CASE - 30 WHEN - + 10 * + - SUM ( ALL + CASE + 46 WHEN ( 83 ) + - 35 THEN 39 * + + 73 END ) * + 6 - - + 69 + - CAST ( NULL AS INTEGER ) * + + 64 * - 12 THEN + COALESCE ( - CAST ( NULL AS INTEGER ), + 47 ) END * 0 / + CASE - AVG ( - 14 ) WHEN 14 + + AVG ( - + 81 ) + MAX ( DISTINCT + 62 ) + CASE + 47 - + 6 WHEN - 26 + + 74 / - 22 THEN NULL WHEN - 53 - 28 THEN 50 * + 13 + 19 WHEN + ( + ( - COUNT ( * ) ) ) THEN 3 ELSE NULL END * + 14 * 36 THEN - 32 WHEN + 12 + COALESCE ( + MAX ( + 72 ) - 19 * MIN ( - 2 ), - 41 * - 7, COUNT ( CAST ( ( - 73 ) AS INTEGER ) ) * ( - COUNT ( ALL + 51 ) ) ) / ( + 51 * 89 + + COALESCE ( ( 0 ), CAST ( NULL AS INTEGER ) ) * - 77 ) THEN NULL ELSE NULL END * - ( + CAST ( NULL AS INTEGER ) ) - ( MAX ( ( + 24 ) ) ) * 72 THEN NULL WHEN + 3 THEN 66 + - COUNT ( * ) ELSE 91 + + 1 * 83 END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4128
SELECT 75 / + 53 + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4128
SELECT 75 / + 53 + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT + + 58 * - - 2
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-4130
SELECT + MIN( + 1 )
----
1

skipif mysql # not compatible
query I rowsort label-4130
SELECT + MIN ( + 1 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4131
SELECT + - ( - MIN( ALL + + 60 ) )
----
60

skipif mysql # not compatible
query I rowsort label-4131
SELECT + - ( - MIN ( ALL + + 60 ) )
----
60

onlyif mysql # DIV for integer division: 
query II rowsort label-4132
SELECT + + 4, 91 DIV 61 - + 6 AS col1
----
4
-5

skipif mysql # not compatible
query II rowsort label-4132
SELECT + + 4, 91 / 61 - + 6 AS col1
----
4
-5

query II rowsort
SELECT ALL + 47 col1, 57
----
47
57

query II rowsort
SELECT ALL + 40, 1 + + + NULLIF ( - 20, - 67 + + + 48 ) + - 92 + ( - 1 ) * - 65 AS col0
----
40
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4135
SELECT DISTINCT + CAST( - COALESCE ( + 51, - + 61 ) AS SIGNED ) * + - ( + ( 35 ) ) * - 67 col2
----
-119595

skipif mysql # not compatible
query I rowsort label-4135
SELECT DISTINCT + CAST ( - COALESCE ( + 51, - + 61 ) AS INTEGER ) * + - ( + ( 35 ) ) * - 67 col2
----
-119595

onlyif mysql # aggregate syntax: 
query II rowsort label-4136
SELECT 46 AS col1, MIN( ALL 67 ) * + 13 + + 21 - + + 77 + - 51 + 59
----
46
823

skipif mysql # not compatible
query II rowsort label-4136
SELECT 46 AS col1, MIN ( ALL 67 ) * + 13 + + 21 - + + 77 + - 51 + 59
----
46
823

query II rowsort
SELECT + 26 AS col2, + 87 * - 63
----
26
-5481

onlyif mysql # aggregate syntax: 
query II rowsort label-4138
SELECT + - 19 col2, MIN( DISTINCT - 86 )
----
-19
-86

skipif mysql # not compatible
query II rowsort label-4138
SELECT + - 19 col2, MIN ( DISTINCT - 86 )
----
-19
-86

query I rowsort
SELECT - 71 * - - 57 + - - 24
----
-4023

onlyif mysql # aggregate syntax: 
query II rowsort label-4140
SELECT + - ( - 14 ), COUNT( * ) + 34 * + 7 + 35 - - 38 * - COALESCE ( 71, - + 4 + 36 ) AS col1
----
14
-2424

skipif mysql # not compatible
query II rowsort label-4140
SELECT + - ( - 14 ), COUNT ( * ) + 34 * + 7 + 35 - - 38 * - COALESCE ( 71, - + 4 + 36 ) AS col1
----
14
-2424

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4141
SELECT DISTINCT - + COUNT( * ) * + + 63 - - - 76 + - - 7 + 62 + + CAST( - 9 AS SIGNED ) * + 71 AS col2
----
-709

skipif mysql # not compatible
query I rowsort label-4141
SELECT DISTINCT - + COUNT ( * ) * + + 63 - - - 76 + - - 7 + 62 + + CAST ( - 9 AS INTEGER ) * + 71 AS col2
----
-709

onlyif mysql # aggregate syntax: 
query I rowsort label-4142
SELECT + - 96 + + + COUNT( * ) * - 4 AS col1
----
-100

skipif mysql # not compatible
query I rowsort label-4142
SELECT + - 96 + + + COUNT ( * ) * - 4 AS col1
----
-100

query I rowsort
SELECT DISTINCT + + COALESCE ( 31, + 43 ) * 61 * + 89 AS col2
----
168299

onlyif mysql # aggregate syntax: 
query I rowsort label-4144
SELECT DISTINCT + 57 * + MAX( ALL 88 ) * + 25 + - - ( ( + ( - 18 ) ) ) AS col1
----
125382

skipif mysql # not compatible
query I rowsort label-4144
SELECT DISTINCT + 57 * + MAX ( ALL 88 ) * + 25 + - - ( ( + ( - 18 ) ) ) AS col1
----
125382

onlyif mysql # DIV for integer division: 
query II rowsort label-4145
SELECT + - 46 DIV + 46, - 14 AS col2
----
-1
-14

skipif mysql # not compatible
query II rowsort label-4145
SELECT + - 46 / + 46, - 14 AS col2
----
-1
-14

query I rowsort
SELECT ALL ( 6 ) col2
----
6

query I rowsort
SELECT - 32 * - 0 + 84
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4148
SELECT ALL CAST( NULL AS SIGNED ) * - - 13
----
NULL

skipif mysql # not compatible
query I rowsort label-4148
SELECT ALL CAST ( NULL AS INTEGER ) * - - 13
----
NULL

query I rowsort
SELECT 50 + + 21 AS col2
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4150
SELECT NULLIF ( + 24, + COUNT( * ) / 32 ) + + 64 col0
----
88

skipif mysql # not compatible
query I rowsort label-4150
SELECT NULLIF ( + 24, + COUNT ( * ) / 32 ) + + 64 col0
----
88

onlyif mysql # DIV for integer division: 
query II rowsort label-4151
SELECT 24 DIV + - 80 AS col0, + 9 + 12 AS col1
----
0
21

skipif mysql # not compatible
query II rowsort label-4151
SELECT 24 / + - 80 AS col0, + 9 + 12 AS col1
----
0
21

query II rowsort
SELECT 69 * + 5 col2, - 84 + + + 9 + + - COALESCE ( - 57, - 39 * - - 73 + - 0 )
----
345
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-4153
SELECT DISTINCT - 60 DIV 9 * NULLIF ( - 32, 64 * 15 + 42 + + - COALESCE ( ( 2 ), - - 16 ) ) * - + 42 - + - 73 AS col1
----
-7991

skipif mysql # not compatible
query I rowsort label-4153
SELECT DISTINCT - 60 / 9 * NULLIF ( - 32, 64 * 15 + 42 + + - COALESCE ( ( 2 ), - - 16 ) ) * - + 42 - + - 73 AS col1
----
-7991

onlyif mysql # aggregate syntax: 
query II rowsort label-4154
SELECT 59 * - 85 AS col1, 7 * - 36 * + 78 + COUNT( * ) AS col0
----
-5015
-19655

skipif mysql # not compatible
query II rowsort label-4154
SELECT 59 * - 85 AS col1, 7 * - 36 * + 78 + COUNT ( * ) AS col0
----
-5015
-19655

query I rowsort
SELECT ALL ( + 82 ) + + - 66 AS col2
----
16

query I rowsort
SELECT DISTINCT + 70 * + 73 AS col1
----
5110

query I rowsort
SELECT ALL - 15 + - 43 AS col0
----
-58

query I rowsort
SELECT ALL - 43 + 18 AS col2
----
-25

query I rowsort
SELECT DISTINCT + 88 * + 56 * 96
----
473088

onlyif mysql # aggregate syntax: 
query I rowsort label-4160
SELECT ALL - 16 + - 75 - 49 * COUNT( * ) * + 48 AS col0
----
-2443

skipif mysql # not compatible
query I rowsort label-4160
SELECT ALL - 16 + - 75 - 49 * COUNT ( * ) * + 48 AS col0
----
-2443

query I rowsort
SELECT 0 + - 36 * - - 45 AS col0
----
-1620

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4162
SELECT + COUNT( * ) + - CAST( NULL AS SIGNED ) col1, - CASE - - COUNT( * ) WHEN - 80 THEN + + 78 WHEN + 57 THEN NULL END
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4162
SELECT + COUNT ( * ) + - CAST ( NULL AS INTEGER ) col1, - CASE - - COUNT ( * ) WHEN - 80 THEN + + 78 WHEN + 57 THEN NULL END
----
NULL
NULL

query I rowsort
SELECT DISTINCT - - NULLIF ( ( - 56 ), - 92 ) AS col2
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-4164
SELECT DISTINCT + COUNT( * ) - - - 78 AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-4164
SELECT DISTINCT + COUNT ( * ) - - - 78 AS col1
----
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-4165
SELECT ALL 52 * 67 DIV - 28
----
-124

skipif mysql # not compatible
query I rowsort label-4165
SELECT ALL 52 * 67 / - 28
----
-124

onlyif mysql # aggregate syntax: 
query I rowsort label-4166
SELECT DISTINCT + 24 - + 1 - - 86 * CASE COUNT( * ) WHEN + - 90 THEN - + COUNT( * ) * - + CASE WHEN + 42 IS NOT NULL THEN + - 53 ELSE + 26 END END * COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4166
SELECT DISTINCT + 24 - + 1 - - 86 * CASE COUNT ( * ) WHEN + - 90 THEN - + COUNT ( * ) * - + CASE WHEN + 42 IS NOT NULL THEN + - 53 ELSE + 26 END END * COUNT ( * ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4167
SELECT DISTINCT - - 77 DIV 86 DIV - 61 * + ( + + ( 40 ) )
----
0

skipif mysql # not compatible
query I rowsort label-4167
SELECT DISTINCT - - 77 / 86 / - 61 * + ( + + ( 40 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4168
SELECT NULLIF ( COUNT( * ), + + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4168
SELECT NULLIF ( COUNT ( * ), + + COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4169
SELECT ALL + 80 * + 59 / + + 15 + + + CASE + - 97 WHEN - 91 THEN + 70 * - COUNT( * ) + ( + + 53 ) + - - 37 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4169
SELECT ALL + 80 * + 59 / + + 15 + + + CASE + - 97 WHEN - 91 THEN + 70 * - COUNT ( * ) + ( + + 53 ) + - - 37 END AS col0
----
NULL

query I rowsort
SELECT + 56 * + 73 - 56
----
4032

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4171
SELECT + CAST( NULLIF ( - CASE - ( - + 65 ) WHEN 79 THEN 27 - + 75 * 66 WHEN 67 * 34 - + 67 + 41 * - + AVG ( + - CAST( 92 AS SIGNED ) ) / NULLIF ( - 59, - 96 + + 28 + - COUNT( * ) * + - 7 ) - + + COUNT( * ) + + 16 / + COUNT( * ) + - + 0 * + SUM( 88 ) THEN NULL ELSE + 48 END, 34 ) AS SIGNED ) * - 17
----
816

skipif mysql # not compatible
query I rowsort label-4171
SELECT + CAST ( NULLIF ( - CASE - ( - + 65 ) WHEN 79 THEN 27 - + 75 * 66 WHEN 67 * 34 - + 67 + 41 * - + AVG ( + - CAST ( 92 AS INTEGER ) ) / NULLIF ( - 59, - 96 + + 28 + - COUNT ( * ) * + - 7 ) - + + COUNT ( * ) + + 16 / + COUNT ( * ) + - + 0 * + SUM ( 88 ) THEN NULL ELSE + 48 END, 34 ) AS INTEGER ) * - 17
----
816

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4172
SELECT COUNT( * ) DIV - - 40 * - - 74
----
0

skipif mysql # not compatible
query I rowsort label-4172
SELECT COUNT ( * ) / - - 40 * - - 74
----
0

query I rowsort
SELECT 21 * ( - + COALESCE ( + - 15, - - 24 + - + 15 ) )
----
315

onlyif mysql # aggregate syntax: 
query I rowsort label-4174
SELECT - + 94 * - - 82 - COUNT( + - 43 ) * - 32 AS col0
----
-7676

skipif mysql # not compatible
query I rowsort label-4174
SELECT - + 94 * - - 82 - COUNT ( + - 43 ) * - 32 AS col0
----
-7676

query II rowsort
SELECT 54 AS col0, + 63 AS col1
----
54
63

query II rowsort
SELECT ALL - 95 AS col0, 19
----
-95
19

query II rowsort
SELECT DISTINCT - 98 AS col0, - NULLIF ( 14, - 1 )
----
-98
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-4178
SELECT 34 + - - SUM( - 95 ), 0 AS col1
----
-61
0

skipif mysql # not compatible
query II rowsort label-4178
SELECT 34 + - - SUM ( - 95 ), 0 AS col1
----
-61
0

query II rowsort
SELECT 97, 60 + + 71 AS col1
----
97
131

query I rowsort
SELECT 40 * - ( - + 82 ) AS col0
----
3280

onlyif mysql # aggregate syntax: 
query I rowsort label-4181
SELECT 75 + - SUM( 83 ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-4181
SELECT 75 + - SUM ( 83 ) AS col0
----
-8

query I rowsort
SELECT ALL 88 * - ( + + 48 )
----
-4224

onlyif mysql # aggregate syntax: 
query I rowsort label-4183
SELECT ALL - 47 + + - COUNT( * ) + + CASE ( - 99 ) WHEN 9 * + - CASE + 83 WHEN - 92 THEN NULL WHEN 64 THEN + 35 WHEN ( - 65 ) THEN + 84 END THEN 39 ELSE NULL END * - ( 97 ) + + 89 * - 55 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4183
SELECT ALL - 47 + + - COUNT ( * ) + + CASE ( - 99 ) WHEN 9 * + - CASE + 83 WHEN - 92 THEN NULL WHEN 64 THEN + 35 WHEN ( - 65 ) THEN + 84 END THEN 39 ELSE NULL END * - ( 97 ) + + 89 * - 55 AS col1
----
NULL

query II rowsort
SELECT ALL 52 + 54 * 86, 13 AS col2
----
4696
13

query I rowsort
SELECT ALL 87 * - 47
----
-4089

query I rowsort
SELECT 55 + - + 74 AS col2
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4187
SELECT 91 * ( + NULLIF ( - COUNT( * ), + CASE 41 WHEN - 79 THEN - NULLIF ( + CAST( NULL AS SIGNED ), + 81 ) * 99 WHEN 88 + + - 40 THEN NULL ELSE + 22 + - - 41 + 65 + CAST( 59 AS DECIMAL ) + - 51 + - 0 END ) )
----
-91

skipif mysql # not compatible
query I rowsort label-4187
SELECT 91 * ( + NULLIF ( - COUNT ( * ), + CASE 41 WHEN - 79 THEN - NULLIF ( + CAST ( NULL AS INTEGER ), + 81 ) * 99 WHEN 88 + + - 40 THEN NULL ELSE + 22 + - - 41 + 65 + CAST ( 59 AS REAL ) + - 51 + - 0 END ) )
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4188
SELECT ALL 80 + - - CAST( NULL AS SIGNED ) / + 66, + 72 AS col2
----
NULL
72

skipif mysql # not compatible
query II rowsort label-4188
SELECT ALL 80 + - - CAST ( NULL AS INTEGER ) / + 66, + 72 AS col2
----
NULL
72

onlyif mysql # aggregate syntax: 
query II rowsort label-4189
SELECT ( - 39 ) + + - 82 AS col1, SUM( ALL + 82 ) AS col2
----
-121
82

skipif mysql # not compatible
query II rowsort label-4189
SELECT ( - 39 ) + + - 82 AS col1, SUM ( ALL + 82 ) AS col2
----
-121
82

onlyif mysql # DIV for integer division: 
query I rowsort label-4190
SELECT 10 DIV - 47 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4190
SELECT 10 / - 47 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4191
SELECT ALL - COUNT( * ) + - + COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-4191
SELECT ALL - COUNT ( * ) + - + COUNT ( * )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4192
SELECT COUNT( ALL - + 9 ) * + + 66
----
66

skipif mysql # not compatible
query I rowsort label-4192
SELECT COUNT ( ALL - + 9 ) * + + 66
----
66

query II rowsort
SELECT DISTINCT 43, 24 AS col2
----
43
24

query II rowsort
SELECT DISTINCT + 45 * + + ( - - 40 ) AS col1, 95 + + 93
----
1800
188

query I rowsort
SELECT DISTINCT + 34 - - 43
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4196
SELECT ALL - COUNT( * ) * 90 col1
----
-90

skipif mysql # not compatible
query I rowsort label-4196
SELECT ALL - COUNT ( * ) * 90 col1
----
-90

query I rowsort
SELECT + 11 + - 73
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-4198
SELECT + MAX( ALL - - 43 )
----
43

skipif mysql # not compatible
query I rowsort label-4198
SELECT + MAX ( ALL - - 43 )
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4199
SELECT + + 48 DIV 49 - + + ( 81 ) + - 52 + 20 * - COUNT( * ) + COALESCE ( 53, 94 ) + + + CAST( - - 83 AS SIGNED ) + - - ( - 61 ) * - - 78 AS col2
----
-4775

skipif mysql # not compatible
query I rowsort label-4199
SELECT + + 48 / 49 - + + ( 81 ) + - 52 + 20 * - COUNT ( * ) + COALESCE ( 53, 94 ) + + + CAST ( - - 83 AS INTEGER ) + - - ( - 61 ) * - - 78 AS col2
----
-4775

query I rowsort
SELECT ALL - 51 * 92 AS col0
----
-4692

query I rowsort
SELECT + 77 + + 8 AS col0
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4202
SELECT 56 * 28 DIV 15 AS col0, 94 - - COUNT( * ) AS col2
----
104
95

skipif mysql # not compatible
query II rowsort label-4202
SELECT 56 * 28 / 15 AS col0, 94 - - COUNT ( * ) AS col2
----
104
95

query I rowsort
SELECT - 60 - + 31 + 84 + - 26 - - 10
----
-23

onlyif mysql # DIV for integer division: 
query II rowsort label-4204
SELECT DISTINCT - + 34, - 14 DIV 75 AS col1
----
-34
0

skipif mysql # not compatible
query II rowsort label-4204
SELECT DISTINCT - + 34, - 14 / 75 AS col1
----
-34
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4205
SELECT ALL - MAX( ALL + 11 ) * - 31 AS col1, + 6
----
341
6

skipif mysql # not compatible
query II rowsort label-4205
SELECT ALL - MAX ( ALL + 11 ) * - 31 AS col1, + 6
----
341
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4206
SELECT - 13 DIV - - 39 + + SUM( DISTINCT + 68 ) AS col0
----
68

skipif mysql # not compatible
query I rowsort label-4206
SELECT - 13 / - - 39 + + SUM ( DISTINCT + 68 ) AS col0
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4207
SELECT ALL - - MIN( ALL - 86 ) DIV 8 + - + COUNT( * ) + - 51
----
-62

skipif mysql # not compatible
query I rowsort label-4207
SELECT ALL - - MIN ( ALL - 86 ) / 8 + - + COUNT ( * ) + - 51
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-4208
SELECT + 27 + 45 - + 13 + COUNT( * ) + + 84
----
144

skipif mysql # not compatible
query I rowsort label-4208
SELECT + 27 + 45 - + 13 + COUNT ( * ) + + 84
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-4209
SELECT DISTINCT CASE - 39 WHEN - 5 + + 0 / + ( - 91 ) THEN + - ( + - 95 ) WHEN - + 18 / + + 48 * + 94 + - 18 THEN NULL ELSE NULLIF ( - 51, - 79 - 63 + - 58 ) END * - NULLIF ( 67, 60 ) - - - COALESCE ( MIN( 29 ), + - 37 * 13 * + - 76 * 7 )
----
3388

skipif mysql # not compatible
query I rowsort label-4209
SELECT DISTINCT CASE - 39 WHEN - 5 + + 0 / + ( - 91 ) THEN + - ( + - 95 ) WHEN - + 18 / + + 48 * + 94 + - 18 THEN NULL ELSE NULLIF ( - 51, - 79 - 63 + - 58 ) END * - NULLIF ( 67, 60 ) - - - COALESCE ( MIN ( 29 ), + - 37 * 13 * + - 76 * 7 )
----
3388

onlyif mysql # aggregate syntax: 
query I rowsort label-4210
SELECT - + 30 + + - NULLIF ( + - NULLIF ( CASE + - 27 WHEN - 89 THEN + + 57 + + + 65 END, + - 79 ), COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4210
SELECT - + 30 + + - NULLIF ( + - NULLIF ( CASE + - 27 WHEN - 89 THEN + + 57 + + + 65 END, + - 79 ), COUNT ( * ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4211
SELECT - + 19 DIV + 67 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4211
SELECT - + 19 / + 67 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4212
SELECT ALL - 11 * 34 + - 97 * - CAST( - 47 AS SIGNED ) AS col2
----
-4933

skipif mysql # not compatible
query I rowsort label-4212
SELECT ALL - 11 * 34 + - 97 * - CAST ( - 47 AS INTEGER ) AS col2
----
-4933

onlyif mysql # aggregate syntax: 
query I rowsort label-4213
SELECT + + COUNT( 53 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-4213
SELECT + + COUNT ( 53 ) col2
----
1

query I rowsort
SELECT + + 39 * 32 AS col0
----
1248

query I rowsort
SELECT - 76 + 33 AS col1
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-4216
SELECT ALL 47 * - ( + + COALESCE ( - + 99, - CASE + - 91 WHEN COALESCE ( - 46, 86 + + - AVG ( 61 ), - 68 * + 37 * - + 92 ) THEN + + 6 + ( + - 88 ) - 89 WHEN + - COUNT( * ) THEN NULL ELSE NULL END * + 46 * - COALESCE ( 55, + ( - + 93 ) ) ) ) * + 13 * - 83 * 2 AS col2
----
-10041174

skipif mysql # not compatible
query I rowsort label-4216
SELECT ALL 47 * - ( + + COALESCE ( - + 99, - CASE + - 91 WHEN COALESCE ( - 46, 86 + + - AVG ( 61 ), - 68 * + 37 * - + 92 ) THEN + + 6 + ( + - 88 ) - 89 WHEN + - COUNT ( * ) THEN NULL ELSE NULL END * + 46 * - COALESCE ( 55, + ( - + 93 ) ) ) ) * + 13 * - 83 * 2 AS col2
----
-10041174

onlyif mysql # aggregate syntax: 
query I rowsort label-4217
SELECT DISTINCT + 60 + - MAX( ALL + 1 ) AS col2
----
59

skipif mysql # not compatible
query I rowsort label-4217
SELECT DISTINCT + 60 + - MAX ( ALL + 1 ) AS col2
----
59

query I rowsort
SELECT ALL 40 + - + 53 - - - 30 col2
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-4219
SELECT + COUNT( * ) + + + 71 * - - 47 AS col2
----
3338

skipif mysql # not compatible
query I rowsort label-4219
SELECT + COUNT ( * ) + + + 71 * - - 47 AS col2
----
3338

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4220
SELECT DISTINCT + 42 + - + CAST( 14 AS SIGNED ) - - COUNT( * ) + - 93 / + + 73 * + CASE 14 WHEN - - 96 THEN + CAST( NULL AS SIGNED ) / - - 7 WHEN - NULLIF ( + ( - 80 ), + + COUNT( * ) ) THEN - - 55 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4220
SELECT DISTINCT + 42 + - + CAST ( 14 AS INTEGER ) - - COUNT ( * ) + - 93 / + + 73 * + CASE 14 WHEN - - 96 THEN + CAST ( NULL AS INTEGER ) / - - 7 WHEN - NULLIF ( + ( - 80 ), + + COUNT ( * ) ) THEN - - 55 END col1
----
NULL

query I rowsort
SELECT ALL - 88 * + - 23
----
2024

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4222
SELECT 15 * - ( + ( 28 ) ) + 32 / + 26 + - - COUNT( * ) - 58 + - 48 + - CAST( NULL AS SIGNED ) - + - 72 * - 38 * 36 * COALESCE ( + 76, + 74 + 14 + 92 * - 89, + ( - 91 ) + - + 97 + 74, - + 47 ), 70 AS col2
----
NULL
70

skipif mysql # not compatible
query II rowsort label-4222
SELECT 15 * - ( + ( 28 ) ) + 32 / + 26 + - - COUNT ( * ) - 58 + - 48 + - CAST ( NULL AS INTEGER ) - + - 72 * - 38 * 36 * COALESCE ( + 76, + 74 + 14 + 92 * - 89, + ( - 91 ) + - + 97 + 74, - + 47 ), 70 AS col2
----
NULL
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4223
SELECT DISTINCT 34 + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4223
SELECT DISTINCT 34 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + ( - + 36 ) + - ( - + 56 )
----
20

query I rowsort
SELECT + 86 * - 99
----
-8514

query I rowsort
SELECT + 92 + + 30 AS col2
----
122

onlyif mysql # DIV for integer division: 
query I rowsort label-4227
SELECT DISTINCT 98 DIV 69 * + 23 AS col0
----
23

skipif mysql # not compatible
query I rowsort label-4227
SELECT DISTINCT 98 / 69 * + 23 AS col0
----
23

query I rowsort
SELECT + 68 + + + 38 AS col2
----
106

query I rowsort
SELECT DISTINCT 3 - - 86
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4230
SELECT - CASE + 2 WHEN - 23 + - + MIN( - - 65 ) THEN 66 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4230
SELECT - CASE + 2 WHEN - 23 + - + MIN ( - - 65 ) THEN 66 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4231
SELECT + + 35 + - 63 AS col1, 61 + - 46 + - + 15 + COUNT( * ) DIV 26 * - 22 * 55 * + 43 + + 62 + + 68 * + + 9 * + MAX( - - 64 ) * - + 64 + - 97 DIV 86
----
-28
-2506691

skipif mysql # not compatible
query II rowsort label-4231
SELECT + + 35 + - 63 AS col1, 61 + - 46 + - + 15 + COUNT ( * ) / 26 * - 22 * 55 * + 43 + + 62 + + 68 * + + 9 * + MAX ( - - 64 ) * - + 64 + - 97 / 86
----
-28
-2506691

onlyif mysql # aggregate syntax: 
query I rowsort label-4232
SELECT + 4 * COUNT( DISTINCT 96 )
----
4

skipif mysql # not compatible
query I rowsort label-4232
SELECT + 4 * COUNT ( DISTINCT 96 )
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4233
SELECT CAST( - 90 AS SIGNED ) AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-4233
SELECT CAST ( - 90 AS INTEGER ) AS col2
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4234
SELECT + 48 * + + 83 * - CAST( - + MAX( + - 49 ) AS SIGNED )
----
-195216

skipif mysql # not compatible
query I rowsort label-4234
SELECT + 48 * + + 83 * - CAST ( - + MAX ( + - 49 ) AS INTEGER )
----
-195216

query II rowsort
SELECT - + 86 * - 33 AS col0, 96 + 4 + 13
----
2838
113

query I rowsort
SELECT - + 81 col2
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-4237
SELECT ALL 1 DIV + 77
----
0

skipif mysql # not compatible
query I rowsort label-4237
SELECT ALL 1 / + 77
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4238
SELECT + - 58 * - + ( + COUNT( ALL + 37 ) ) + - 69
----
-11

skipif mysql # not compatible
query I rowsort label-4238
SELECT + - 58 * - + ( + COUNT ( ALL + 37 ) ) + - 69
----
-11

query II rowsort
SELECT NULLIF ( 26, - 92 + 90 ) AS col0, 89 AS col2
----
26
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4240
SELECT - COUNT( * ) + 53 DIV + - 86
----
-1

skipif mysql # not compatible
query I rowsort label-4240
SELECT - COUNT ( * ) + 53 / + - 86
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4241
SELECT + + CASE + + ( SUM( - 37 ) ) WHEN CAST( NULL AS SIGNED ) THEN + - 82 WHEN + COUNT( * ) THEN NULL ELSE - ( CAST( NULL AS SIGNED ) ) END * + 80 * + 27
----
NULL

skipif mysql # not compatible
query I rowsort label-4241
SELECT + + CASE + + ( SUM ( - 37 ) ) WHEN CAST ( NULL AS INTEGER ) THEN + - 82 WHEN + COUNT ( * ) THEN NULL ELSE - ( CAST ( NULL AS INTEGER ) ) END * + 80 * + 27
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4242
SELECT ALL 58 DIV + 24 col1
----
2

skipif mysql # not compatible
query I rowsort label-4242
SELECT ALL 58 / + 24 col1
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4243
SELECT ALL + CAST( - 56 AS SIGNED )
----
-56

skipif mysql # not compatible
query I rowsort label-4243
SELECT ALL + CAST ( - 56 AS INTEGER )
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4244
SELECT 17 * - MIN( ALL + - ( + + 81 ) ) * - 85 + - 24 - - SUM( - 46 ) + 27 DIV 98 * - NULLIF ( - COALESCE ( + 58, + - 95 DIV ( 93 ) DIV CAST( NULL AS SIGNED ) + + - 63 - - - 89 + + - MIN( COALESCE ( + - 43, + - 5 ) ) * 94 + - + 90, SUM( CAST( NULL AS SIGNED ) ) ), + 8 ) + ( + 66 )
----
-117049

skipif mysql # not compatible
query I rowsort label-4244
SELECT 17 * - MIN ( ALL + - ( + + 81 ) ) * - 85 + - 24 - - SUM ( - 46 ) + 27 / 98 * - NULLIF ( - COALESCE ( + 58, + - 95 / ( 93 ) / CAST ( NULL AS INTEGER ) + + - 63 - - - 89 + + - MIN ( COALESCE ( + - 43, + - 5 ) ) * 94 + - + 90, SUM ( CAST ( NULL AS INTEGER ) ) ), + 8 ) + ( + 66 )
----
-117049

onlyif mysql # aggregate syntax: 
query I rowsort label-4245
SELECT DISTINCT - COUNT( * ) * 35 AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-4245
SELECT DISTINCT - COUNT ( * ) * 35 AS col2
----
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4246
SELECT ALL - 57 * - - 13 * - 86 + SUM( - - 20 ) + 38 DIV 39 * - 2 AS col0
----
63746

skipif mysql # not compatible
query I rowsort label-4246
SELECT ALL - 57 * - - 13 * - 86 + SUM ( - - 20 ) + 38 / 39 * - 2 AS col0
----
63746

query I rowsort
SELECT - + 56 * - 13 - + 60
----
668

onlyif mysql # aggregate syntax: 
query I rowsort label-4248
SELECT ALL + MAX( DISTINCT 26 )
----
26

skipif mysql # not compatible
query I rowsort label-4248
SELECT ALL + MAX ( DISTINCT 26 )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4249
SELECT + + NULLIF ( 50, - ( - COUNT( * ) ) * 4 ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-4249
SELECT + + NULLIF ( 50, - ( - COUNT ( * ) ) * 4 ) AS col2
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4250
SELECT - CAST( + + 36 AS SIGNED ) + + + 37 + - 6 AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-4250
SELECT - CAST ( + + 36 AS INTEGER ) + + + 37 + - 6 AS col0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4251
SELECT - COUNT( * ) * - ( ( + 19 ) ) AS col1
----
19

skipif mysql # not compatible
query I rowsort label-4251
SELECT - COUNT ( * ) * - ( ( + 19 ) ) AS col1
----
19

onlyif mysql # aggregate syntax: 
query II rowsort label-4252
SELECT ALL MIN( + 53 ) * - - COUNT( * ) * - 8 + + 96 AS col1, 11 AS col0
----
-328
11

skipif mysql # not compatible
query II rowsort label-4252
SELECT ALL MIN ( + 53 ) * - - COUNT ( * ) * - 8 + + 96 AS col1, 11 AS col0
----
-328
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4253
SELECT DISTINCT + SUM( ALL 3 )
----
3

skipif mysql # not compatible
query I rowsort label-4253
SELECT DISTINCT + SUM ( ALL 3 )
----
3

query I rowsort
SELECT NULLIF ( 74, - - 85 ) AS col1
----
74

query I rowsort
SELECT + 76 * + 25 - 18
----
1882

onlyif mysql # aggregate syntax: 
query II rowsort label-4256
SELECT ALL + COUNT( * ), 25 AS col2
----
1
25

skipif mysql # not compatible
query II rowsort label-4256
SELECT ALL + COUNT ( * ), 25 AS col2
----
1
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4257
SELECT - COALESCE ( + + COUNT( * ), + 66, + + 31 ) DIV + 61, + 57 AS col2
----
0
57

skipif mysql # not compatible
query II rowsort label-4257
SELECT - COALESCE ( + + COUNT ( * ), + 66, + + 31 ) / + 61, + 57 AS col2
----
0
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4258
SELECT ( - + 29 ) * - - 87 * 94 - - - MIN( DISTINCT - 24 ) - + MIN( + 24 )
----
-237162

skipif mysql # not compatible
query I rowsort label-4258
SELECT ( - + 29 ) * - - 87 * 94 - - - MIN ( DISTINCT - 24 ) - + MIN ( + 24 )
----
-237162

query I rowsort
SELECT NULLIF ( + - 0, + 79 )
----
0

query II rowsort
SELECT ALL 0 * - 30 + 98 AS col2, 92
----
98
92

onlyif mysql # aggregate syntax: 
query II rowsort label-4261
SELECT - COUNT( + 2 ) * COUNT( * ), MIN( DISTINCT 86 ) AS col0
----
-1
86

skipif mysql # not compatible
query II rowsort label-4261
SELECT - COUNT ( + 2 ) * COUNT ( * ), MIN ( DISTINCT 86 ) AS col0
----
-1
86

query I rowsort
SELECT + ( + 84 ) * 72 - 93 AS col1
----
5955

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4263
SELECT COALESCE ( - - 33, - - COALESCE ( + 23, - - 92 DIV + COUNT( * ) + + + 97 * + 21, - COALESCE ( 17, 47 ), - 29 ) )
----
33

skipif mysql # not compatible
query I rowsort label-4263
SELECT COALESCE ( - - 33, - - COALESCE ( + 23, - - 92 / + COUNT ( * ) + + + 97 * + 21, - COALESCE ( 17, 47 ), - 29 ) )
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4264
SELECT + 93 DIV COUNT( * ) DIV 98 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4264
SELECT + 93 / COUNT ( * ) / 98 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4265
SELECT DISTINCT + COUNT( * ) * - 88 * - - COUNT( * ) AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-4265
SELECT DISTINCT + COUNT ( * ) * - 88 * - - COUNT ( * ) AS col0
----
-88

query I rowsort
SELECT ALL - 57 * 14 col2
----
-798

onlyif mysql # aggregate syntax: 
query I rowsort label-4267
SELECT MAX( - 17 ) AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-4267
SELECT MAX ( - 17 ) AS col1
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-4268
SELECT DISTINCT 37 * + 37 - COALESCE ( 47, - - 33, + 66 * - MIN( DISTINCT 66 ) + 60 )
----
1322

skipif mysql # not compatible
query I rowsort label-4268
SELECT DISTINCT 37 * + 37 - COALESCE ( 47, - - 33, + 66 * - MIN ( DISTINCT 66 ) + 60 )
----
1322

query I rowsort
SELECT - ( + 53 ) * - - 17
----
-901

onlyif mysql # aggregate syntax: 
query I rowsort label-4270
SELECT DISTINCT 43 * + ( - 36 ) * + COUNT( - 99 ) - + CASE + 85 WHEN 8 THEN NULL WHEN + 17 THEN - 40 ELSE NULL END + + + 66 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4270
SELECT DISTINCT 43 * + ( - 36 ) * + COUNT ( - 99 ) - + CASE + 85 WHEN 8 THEN NULL WHEN + 17 THEN - 40 ELSE NULL END + + + 66 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-4271
SELECT MAX( - ( 73 ) ), CAST( - 50 AS SIGNED ) * - COUNT( 23 ) + - COUNT( * ) col1, - 32 AS col0
----
-73
49
-32

skipif mysql # not compatible
query III rowsort label-4271
SELECT MAX ( - ( 73 ) ), CAST ( - 50 AS INTEGER ) * - COUNT ( 23 ) + - COUNT ( * ) col1, - 32 AS col0
----
-73
49
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4272
SELECT ALL CAST( - + 97 AS SIGNED ) col1
----
-97

skipif mysql # not compatible
query I rowsort label-4272
SELECT ALL CAST ( - + 97 AS INTEGER ) col1
----
-97

query I rowsort
SELECT - COALESCE ( + 91, - 3 ) * - 20 AS col0
----
1820

query II rowsort
SELECT - + 17 AS col1, 0
----
-17
0

query I rowsort
SELECT - 32 + COALESCE ( - 19, - 50 * - + 54 + 43 + 95 * + 13 + 5 ) AS col0
----
-51

query II rowsort
SELECT + - 73 * - 74 + - 27 col0, 52 * + 52
----
5375
2704

query I rowsort
SELECT - 45 + 83 AS col1
----
38

query I rowsort
SELECT + - ( + 11 ) + 10
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4279
SELECT + - 13 DIV COUNT( * ) AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-4279
SELECT + - 13 / COUNT ( * ) AS col0
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-4280
SELECT DISTINCT 47 DIV + 82 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4280
SELECT DISTINCT 47 / + 82 AS col1
----
0

query I rowsort
SELECT 19 + + 14 * - - 24 * - 6 * - + 95
----
191539

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4282
SELECT + 74 DIV + COUNT( * ) + + 55
----
129

skipif mysql # not compatible
query I rowsort label-4282
SELECT + 74 / + COUNT ( * ) + + 55
----
129

query I rowsort
SELECT ALL 92 + - 32 AS col0
----
60

query I rowsort
SELECT - 75 + + 99
----
24

query I rowsort
SELECT DISTINCT 19 + ( - 6 ) * + + 28
----
-149

query I rowsort
SELECT + 58 + - 47 * - 0 + + + 87 AS col1
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-4287
SELECT DISTINCT - SUM( ALL + 8 ) AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-4287
SELECT DISTINCT - SUM ( ALL + 8 ) AS col1
----
-8

query I rowsort
SELECT DISTINCT + 15 + - 49 AS col0
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-4289
SELECT ALL - 60 + - COUNT( * ) AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-4289
SELECT ALL - 60 + - COUNT ( * ) AS col1
----
-61

query II rowsort
SELECT + 47 AS col2, + 78 AS col1
----
47
78

query I rowsort
SELECT 69 + - 69
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4292
SELECT DISTINCT 29 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4292
SELECT DISTINCT 29 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4293
SELECT 13 col2, - CAST( NULL AS SIGNED ) + + - 86 * - 58 * + CAST( NULL AS SIGNED )
----
13
NULL

skipif mysql # not compatible
query II rowsort label-4293
SELECT 13 col2, - CAST ( NULL AS INTEGER ) + + - 86 * - 58 * + CAST ( NULL AS INTEGER )
----
13
NULL

query I rowsort
SELECT + 71 * + 83 + - 69
----
5824

query I rowsort
SELECT DISTINCT + 43 * - 65 col2
----
-2795

query I rowsort
SELECT 4 * + 15 * + 1 AS col2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4297
SELECT ALL + 25 * + - COUNT( * ) * + COUNT( * ) AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-4297
SELECT ALL + 25 * + - COUNT ( * ) * + COUNT ( * ) AS col0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-4298
SELECT ( - + 51 ) + - + COUNT( * ) AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-4298
SELECT ( - + 51 ) + - + COUNT ( * ) AS col0
----
-52

query II rowsort
SELECT + 71, 5 AS col0
----
71
5

query I rowsort
SELECT 90 + + 62 + - + 22 AS col1
----
130

query I rowsort
SELECT 0 + - ( + 0 ) col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4302
SELECT DISTINCT + MIN( DISTINCT - 54 ) DIV - + 17 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-4302
SELECT DISTINCT + MIN ( DISTINCT - 54 ) / - + 17 AS col1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4303
SELECT ALL 35 AS col0, - ( 93 ) * 74 * - 91 + CAST( 7 AS SIGNED ) + + + COUNT( * ) AS col0
----
35
626270

skipif mysql # not compatible
query II rowsort label-4303
SELECT ALL 35 AS col0, - ( 93 ) * 74 * - 91 + CAST ( 7 AS INTEGER ) + + + COUNT ( * ) AS col0
----
35
626270

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4304
SELECT 83 * + 9, - 60 * + CAST( - + 72 AS SIGNED ) AS col1
----
747
4320

skipif mysql # not compatible
query II rowsort label-4304
SELECT 83 * + 9, - 60 * + CAST ( - + 72 AS INTEGER ) AS col1
----
747
4320

query II rowsort
SELECT - 92 col2, 93 - 69
----
-92
24

query II rowsort
SELECT 42 AS col0, + 37
----
42
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4307
SELECT DISTINCT + + CASE + 42 WHEN - + 38 * 65 / + + COUNT( * ) THEN NULL ELSE - MAX( ALL CAST( NULL AS SIGNED ) ) + - 33 - + + MIN( - CAST( NULL AS SIGNED ) ) END * 91 + - + 43 - + ( + MIN( ALL + - 32 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4307
SELECT DISTINCT + + CASE + 42 WHEN - + 38 * 65 / + + COUNT ( * ) THEN NULL ELSE - MAX ( ALL CAST ( NULL AS INTEGER ) ) + - 33 - + + MIN ( - CAST ( NULL AS INTEGER ) ) END * 91 + - + 43 - + ( + MIN ( ALL + - 32 ) ) AS col1
----
NULL

query II rowsort
SELECT - + 19, - 83 * - + 19 AS col0
----
-19
1577

query I rowsort
SELECT + 99 + 15 + - - 37
----
151

onlyif mysql # DIV for integer division: 
query I rowsort label-4310
SELECT + 4 DIV - - 50 * + 63 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4310
SELECT + 4 / - - 50 * + 63 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4311
SELECT CASE + 27 WHEN - 31 + - - 36 - - COUNT( * ) THEN ( - 59 ) END * ( COUNT( * ) ) * + 68 + 84, + 90 * 74 * - COUNT( DISTINCT 93 ) AS col0
----
NULL
-6660

skipif mysql # not compatible
query II rowsort label-4311
SELECT CASE + 27 WHEN - 31 + - - 36 - - COUNT ( * ) THEN ( - 59 ) END * ( COUNT ( * ) ) * + 68 + 84, + 90 * 74 * - COUNT ( DISTINCT 93 ) AS col0
----
NULL
-6660

query I rowsort
SELECT + 13 + ( + 94 ) + 48
----
155

query II rowsort
SELECT 20 col1, 35
----
20
35

query I rowsort
SELECT DISTINCT - 36 * - 71
----
2556

query II rowsort
SELECT 26, - 42 + + 65 + + 77 * 69 + + + 62 AS col2
----
26
5398

onlyif mysql # aggregate syntax: 
query I rowsort label-4316
SELECT - COUNT( DISTINCT 50 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4316
SELECT - COUNT ( DISTINCT 50 ) AS col2
----
-1

query II rowsort
SELECT ALL + + 13 + 11 AS col2, 39
----
24
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4318
SELECT + 90 AS col1, + CASE WHEN NOT NULL IN ( - 9, MIN( - CAST( NULL AS SIGNED ) ), - + AVG ( ALL - 13 ) ) THEN - + 54 - + + 14 * - 40 END AS col0
----
90
NULL

skipif mysql # not compatible
query II rowsort label-4318
SELECT + 90 AS col1, + CASE WHEN NOT NULL IN ( - 9, MIN ( - CAST ( NULL AS INTEGER ) ), - + AVG ( ALL - 13 ) ) THEN - + 54 - + + 14 * - 40 END AS col0
----
90
NULL

query I rowsort
SELECT + NULLIF ( 32, + 40 )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4320
SELECT ALL - COUNT( 45 )
----
-1

skipif mysql # not compatible
query I rowsort label-4320
SELECT ALL - COUNT ( 45 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4321
SELECT COALESCE ( 78, + COUNT( * ) * - 39, 26 + - 42 * - 87 + - 83 * + + ( + 72 ) ) * - COUNT( * )
----
-78

skipif mysql # not compatible
query I rowsort label-4321
SELECT COALESCE ( 78, + COUNT ( * ) * - 39, 26 + - 42 * - 87 + - 83 * + + ( + 72 ) ) * - COUNT ( * )
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-4322
SELECT + COUNT( * ) * - + 31
----
-31

skipif mysql # not compatible
query I rowsort label-4322
SELECT + COUNT ( * ) * - + 31
----
-31

query II rowsort
SELECT - - 44 AS col2, 65 * 45 AS col0
----
44
2925

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-4324
SELECT DISTINCT NULLIF ( 80, 80 + + 70 * + 1 * 1 ), 21 DIV + COUNT( ALL + 3 ) AS col2, 58 DIV + 33 AS col2
----
80
21
1

skipif mysql # not compatible
query III rowsort label-4324
SELECT DISTINCT NULLIF ( 80, 80 + + 70 * + 1 * 1 ), 21 / + COUNT ( ALL + 3 ) AS col2, 58 / + 33 AS col2
----
80
21
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4325
SELECT ALL - 34 AS col0, + 77 * + COUNT( 75 ) col2
----
-34
77

skipif mysql # not compatible
query II rowsort label-4325
SELECT ALL - 34 AS col0, + 77 * + COUNT ( 75 ) col2
----
-34
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4326
SELECT ALL CAST( NULL AS SIGNED ) + - 10 + 38 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4326
SELECT ALL CAST ( NULL AS INTEGER ) + - 10 + 38 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4327
SELECT ALL + CASE - 2 WHEN NULLIF ( + 35, + - 48 * + 41 / COUNT( * ) ) THEN NULL WHEN COUNT( - 54 ) THEN 57 + - NULLIF ( - - ( + + 52 ), + + 62 + 4 ) * 45 END / - 63
----
NULL

skipif mysql # not compatible
query I rowsort label-4327
SELECT ALL + CASE - 2 WHEN NULLIF ( + 35, + - 48 * + 41 / COUNT ( * ) ) THEN NULL WHEN COUNT ( - 54 ) THEN 57 + - NULLIF ( - - ( + + 52 ), + + 62 + 4 ) * 45 END / - 63
----
NULL

query I rowsort
SELECT 20 * + + NULLIF ( + - 15, + 45 ) + - 87 AS col1
----
-387

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4329
SELECT ALL 88 - + ( - CASE 63 WHEN ( + 63 ) THEN + - 25 * + MAX( - CASE - 39 WHEN + + 46 * - 18 THEN NULL WHEN 77 * 93 THEN + + CAST( 99 AS DECIMAL ) END ) * - + CAST( + 54 AS DECIMAL ) * + 14 + ( + - 48 ) * + CASE + + 84 WHEN ( - + 15 ) THEN + + 46 ELSE NULL END + + + COUNT( * ) END ) - - 39
----
NULL

skipif mysql # not compatible
query I rowsort label-4329
SELECT ALL 88 - + ( - CASE 63 WHEN ( + 63 ) THEN + - 25 * + MAX ( - CASE - 39 WHEN + + 46 * - 18 THEN NULL WHEN 77 * 93 THEN + + CAST ( 99 AS REAL ) END ) * - + CAST ( + 54 AS REAL ) * + 14 + ( + - 48 ) * + CASE + + 84 WHEN ( - + 15 ) THEN + + 46 ELSE NULL END + + + COUNT ( * ) END ) - - 39
----
NULL

query I rowsort
SELECT 49 * + 80
----
3920

query II rowsort
SELECT 85 * 76 AS col2, 76 + 34 AS col2
----
6460
110

onlyif mysql # aggregate syntax: 
query I rowsort label-4332
SELECT MIN( DISTINCT - NULLIF ( + 36, - 55 ) ) AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-4332
SELECT MIN ( DISTINCT - NULLIF ( + 36, - 55 ) ) AS col0
----
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4333
SELECT 4 DIV - + NULLIF ( + ( + - 77 ), - + 82 * - COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-4333
SELECT 4 / - + NULLIF ( + ( + - 77 ), - + 82 * - COUNT ( * ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4334
SELECT ALL - 66 * + COALESCE ( 40, MAX( DISTINCT - - 5 ) )
----
-2640

skipif mysql # not compatible
query I rowsort label-4334
SELECT ALL - 66 * + COALESCE ( 40, MAX ( DISTINCT - - 5 ) )
----
-2640

onlyif mysql # DIV for integer division: 
query I rowsort label-4335
SELECT 94 DIV 32 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-4335
SELECT 94 / 32 AS col2
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-4336
SELECT ALL 22 DIV - + 66 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4336
SELECT ALL 22 / - + 66 AS col0
----
0

query I rowsort
SELECT ALL + 94 * - 81 AS col0
----
-7614

query I rowsort
SELECT 28 * - + 60 AS col2
----
-1680

query I rowsort
SELECT DISTINCT + 35 + - 77 AS col1
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-4340
SELECT DISTINCT - 24 * - - COUNT( * ) col1
----
-24

skipif mysql # not compatible
query I rowsort label-4340
SELECT DISTINCT - 24 * - - COUNT ( * ) col1
----
-24

query I rowsort
SELECT 79 * 94 AS col0
----
7426

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4342
SELECT - CASE - 47 WHEN + CAST( + 43 AS SIGNED ) THEN + 81 + + 62 WHEN 0 + + CASE - 76 WHEN 9 THEN NULL WHEN + - 77 THEN + COUNT( * ) ELSE + + COALESCE ( - + COALESCE ( - ( + - 71 ), CAST( - + 9 AS SIGNED ), + 3 * + COUNT( * ), - 77 - - 80 * + 89 ), + 13, ( + ( - ( - - 32 ) ) ) ) END THEN NULL END * - 84 - 13 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4342
SELECT - CASE - 47 WHEN + CAST ( + 43 AS INTEGER ) THEN + 81 + + 62 WHEN 0 + + CASE - 76 WHEN 9 THEN NULL WHEN + - 77 THEN + COUNT ( * ) ELSE + + COALESCE ( - + COALESCE ( - ( + - 71 ), CAST ( - + 9 AS INTEGER ), + 3 * + COUNT ( * ), - 77 - - 80 * + 89 ), + 13, ( + ( - ( - - 32 ) ) ) ) END THEN NULL END * - 84 - 13 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4343
SELECT ALL 24 + - NULLIF ( - 24, 43 ) - + 6 * + 56 + + 16 + - 37 * - 36 * - + 66 + + CASE + - 8 WHEN 58 / 63 THEN NULL WHEN 38 THEN + + 4 END + + - 96 * 44 + + + 44 - - 29 * CASE + - COUNT( * ) WHEN 87 THEN 9 WHEN 9 THEN NULL WHEN + - CASE ( + 48 ) WHEN - NULLIF ( 52, + 88 ) THEN NULL ELSE + 94 END * - + 88 / - CASE - + CAST( + 40 AS SIGNED ) WHEN + + 58 THEN NULL WHEN - 27 THEN + 99 * 8 WHEN 96 * 55 - - AVG ( 35 ) THEN NULL END + 92 * 96 + - 1 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4343
SELECT ALL 24 + - NULLIF ( - 24, 43 ) - + 6 * + 56 + + 16 + - 37 * - 36 * - + 66 + + CASE + - 8 WHEN 58 / 63 THEN NULL WHEN 38 THEN + + 4 END + + - 96 * 44 + + + 44 - - 29 * CASE + - COUNT ( * ) WHEN 87 THEN 9 WHEN 9 THEN NULL WHEN + - CASE ( + 48 ) WHEN - NULLIF ( 52, + 88 ) THEN NULL ELSE + 94 END * - + 88 / - CASE - + CAST ( + 40 AS INTEGER ) WHEN + + 58 THEN NULL WHEN - 27 THEN + 99 * 8 WHEN 96 * 55 - - AVG ( 35 ) THEN NULL END + 92 * 96 + - 1 THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4344
SELECT ALL - + 90 + + 8 DIV + 92 + - 69 + + + 29 AS col0, + 58 AS col2
----
-130
58

skipif mysql # not compatible
query II rowsort label-4344
SELECT ALL - + 90 + + 8 / + 92 + - 69 + + + 29 AS col0, + 58 AS col2
----
-130
58

query I rowsort
SELECT ALL - 41 + 33 + - - 57 * 88 + + 45 + - 57 AS col2
----
4996

query I rowsort
SELECT - + 61 + + 9
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4347
SELECT - CASE 88 WHEN - NULLIF ( SUM( - COALESCE ( + + NULLIF ( + - ( 2 ), - 0 * - - 72 + - - 14 * - 30 + + + CAST( - + 9 AS SIGNED ) ), - 62 ) ), + COUNT( * ) ) * + 56 THEN - + ( + - 35 ) / - COALESCE ( + - 4, + 94, ( - + 23 ) * + + 4 - ( ( + 25 ) ) ) WHEN + COALESCE ( - 46, + - 45 + + 54, + + 88, - + 40 ) * - - 75 * + 33 * 58 THEN NULL WHEN 16 - + MIN( ALL + 4 ) * 88 THEN - 45 / 34 + 89 * CASE + 25 + + ( - 58 ) * 85 WHEN - MAX( - 47 ) / + COUNT( * ) + CAST( + 17 AS DECIMAL ) THEN NULL ELSE + 93 END ELSE CAST( NULL AS SIGNED ) * + 69 + 45 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4347
SELECT - CASE 88 WHEN - NULLIF ( SUM ( - COALESCE ( + + NULLIF ( + - ( 2 ), - 0 * - - 72 + - - 14 * - 30 + + + CAST ( - + 9 AS INTEGER ) ), - 62 ) ), + COUNT ( * ) ) * + 56 THEN - + ( + - 35 ) / - COALESCE ( + - 4, + 94, ( - + 23 ) * + + 4 - ( ( + 25 ) ) ) WHEN + COALESCE ( - 46, + - 45 + + 54, + + 88, - + 40 ) * - - 75 * + 33 * 58 THEN NULL WHEN 16 - + MIN ( ALL + 4 ) * 88 THEN - 45 / 34 + 89 * CASE + 25 + + ( - 58 ) * 85 WHEN - MAX ( - 47 ) / + COUNT ( * ) + CAST ( + 17 AS REAL ) THEN NULL ELSE + 93 END ELSE CAST ( NULL AS INTEGER ) * + 69 + 45 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4348
SELECT ALL - COUNT( DISTINCT - 94 ) * + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4348
SELECT ALL - COUNT ( DISTINCT - 94 ) * + + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4349
SELECT - 44 + - 58 - - 38 + + + 65 DIV + 85 + ( - 12 ) + + - 27
----
-103

skipif mysql # not compatible
query I rowsort label-4349
SELECT - 44 + - 58 - - 38 + + + 65 / + 85 + ( - 12 ) + + - 27
----
-103

query I rowsort
SELECT ( - + ( + 34 ) ) AS col2
----
-34

query I rowsort
SELECT ALL + - 86 + - 8
----
-94

query I rowsort
SELECT - 71 + + - 88 + 42 * - - 67 AS col0
----
2655

onlyif mysql # aggregate syntax: 
query II rowsort label-4353
SELECT ALL - 31 * - 84, - COUNT( * ) col0
----
2604
-1

skipif mysql # not compatible
query II rowsort label-4353
SELECT ALL - 31 * - 84, - COUNT ( * ) col0
----
2604
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4354
SELECT ALL + + COUNT( * ) * - COALESCE ( 41, 8 * 32 DIV + + 44 + - 84 ), + COUNT( * ) * - + 96 AS col1
----
-41
-96

skipif mysql # not compatible
query II rowsort label-4354
SELECT ALL + + COUNT ( * ) * - COALESCE ( 41, 8 * 32 / + + 44 + - 84 ), + COUNT ( * ) * - + 96 AS col1
----
-41
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4355
SELECT - MAX( DISTINCT 55 ) + - + COUNT( * ) + + 13
----
-43

skipif mysql # not compatible
query I rowsort label-4355
SELECT - MAX ( DISTINCT 55 ) + - + COUNT ( * ) + + 13
----
-43

query I rowsort
SELECT - ( + - 23 ) * 65
----
1495

query I rowsort
SELECT + 76 * - 78
----
-5928

query II rowsort
SELECT + 2 col0, - 78
----
2
-78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4359
SELECT - COALESCE ( + SUM( DISTINCT + + 11 ), + 16, - 24 ) DIV 48 + - + COUNT( * ) * - 84 AS col2
----
84

skipif mysql # not compatible
query I rowsort label-4359
SELECT - COALESCE ( + SUM ( DISTINCT + + 11 ), + 16, - 24 ) / 48 + - + COUNT ( * ) * - 84 AS col2
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4360
SELECT + COUNT( CAST( - 2 AS SIGNED ) ), 37 * + + 48 * - SUM( DISTINCT - - NULLIF ( + 29, CAST( NULL AS SIGNED ) - - + 47 + + 42 * - 50 ) ) AS col0
----
1
-51504

skipif mysql # not compatible
query II rowsort label-4360
SELECT + COUNT ( CAST ( - 2 AS INTEGER ) ), 37 * + + 48 * - SUM ( DISTINCT - - NULLIF ( + 29, CAST ( NULL AS INTEGER ) - - + 47 + + 42 * - 50 ) ) AS col0
----
1
-51504

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4361
SELECT DISTINCT - 7 * + 33 / + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4361
SELECT DISTINCT - 7 * + 33 / + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + ( + - 84 ) AS col1
----
-84

query I rowsort
SELECT DISTINCT 33 * - + 22 AS col1
----
-726

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4364
SELECT CAST( NULL AS SIGNED ) * + - 88 + + - 30 * CASE - + ( 34 ) WHEN - 89 + - - 64 THEN - 63 * 9 ELSE - COALESCE ( - 37, - - CAST( NULL AS SIGNED ) * - + 88 + - - CAST( - + 84 AS SIGNED ) * - ( + COUNT( * ) ) ) * CAST( NULL AS SIGNED ) + + + CAST( + 45 AS SIGNED ) * COUNT( * ) END * 31 - - 63 + ( + 99 ) + 61 + - - 69 * - - 2 * + 48 + 72 * - ( - + 32 ) + + ( - - 94 ) - + CAST( + 84 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4364
SELECT CAST ( NULL AS INTEGER ) * + - 88 + + - 30 * CASE - + ( 34 ) WHEN - 89 + - - 64 THEN - 63 * 9 ELSE - COALESCE ( - 37, - - CAST ( NULL AS INTEGER ) * - + 88 + - - CAST ( - + 84 AS INTEGER ) * - ( + COUNT ( * ) ) ) * CAST ( NULL AS INTEGER ) + + + CAST ( + 45 AS INTEGER ) * COUNT ( * ) END * 31 - - 63 + ( + 99 ) + 61 + - - 69 * - - 2 * + 48 + 72 * - ( - + 32 ) + + ( - - 94 ) - + CAST ( + 84 AS INTEGER )
----
NULL

query I rowsort
SELECT + 50 + - 12 AS col1
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4366
SELECT ALL COUNT( * ) DIV 36
----
0

skipif mysql # not compatible
query I rowsort label-4366
SELECT ALL COUNT ( * ) / 36
----
0

query I rowsort
SELECT + NULLIF ( - 42, 58 + + 55 ) AS col2
----
-42

query II rowsort
SELECT ALL - + 4 * 60 + 12, - 53 AS col2
----
-228
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-4369
SELECT 50 * ( 37 ) - - - COUNT( * ) + 43 * - COUNT( * ) - - 66 AS col2
----
1872

skipif mysql # not compatible
query I rowsort label-4369
SELECT 50 * ( 37 ) - - - COUNT ( * ) + 43 * - COUNT ( * ) - - 66 AS col2
----
1872

onlyif mysql # aggregate syntax: 
query II rowsort label-4370
SELECT ALL - 19 * + + 62 * - - 86 + + + COUNT( * ) AS col0, NULLIF ( - 90, - - MIN( ALL + 50 ) ) AS col1
----
-101307
-90

skipif mysql # not compatible
query II rowsort label-4370
SELECT ALL - 19 * + + 62 * - - 86 + + + COUNT ( * ) AS col0, NULLIF ( - 90, - - MIN ( ALL + 50 ) ) AS col1
----
-101307
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-4371
SELECT + + CASE 78 WHEN + + COUNT( * ) THEN - - 45 + 13 WHEN - COUNT( * ) * 80 THEN NULL ELSE NULL END + - - COUNT( * ) * + 7
----
NULL

skipif mysql # not compatible
query I rowsort label-4371
SELECT + + CASE 78 WHEN + + COUNT ( * ) THEN - - 45 + 13 WHEN - COUNT ( * ) * 80 THEN NULL ELSE NULL END + - - COUNT ( * ) * + 7
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4372
SELECT DISTINCT + ( CAST( + 29 AS SIGNED ) )
----
29

skipif mysql # not compatible
query I rowsort label-4372
SELECT DISTINCT + ( CAST ( + 29 AS INTEGER ) )
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4373
SELECT - - CAST( 72 AS SIGNED ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-4373
SELECT - - CAST ( 72 AS INTEGER ) AS col1
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4374
SELECT - - 1 + 28 * + + COUNT( * ) * - CAST( + 20 AS SIGNED ) AS col0
----
-559

skipif mysql # not compatible
query I rowsort label-4374
SELECT - - 1 + 28 * + + COUNT ( * ) * - CAST ( + 20 AS INTEGER ) AS col0
----
-559

onlyif mysql # aggregate syntax: 
query I rowsort label-4375
SELECT + 14 * - 22 + COUNT( * ) col1
----
-307

skipif mysql # not compatible
query I rowsort label-4375
SELECT + 14 * - 22 + COUNT ( * ) col1
----
-307

query II rowsort
SELECT - 52 AS col2, 15
----
-52
15

query II rowsort
SELECT ALL - 7 AS col2, 5
----
-7
5

query I rowsort
SELECT DISTINCT + 62 + - 93 * - 82 AS col0
----
7688

query II rowsort
SELECT 36, 33 AS col0
----
36
33

query I rowsort
SELECT + + 24 * 88 AS col1
----
2112

query I rowsort
SELECT DISTINCT + 18 * 6 AS col1
----
108

onlyif mysql # DIV for integer division: 
query I rowsort label-4382
SELECT - + 74 DIV - - 8
----
-9

skipif mysql # not compatible
query I rowsort label-4382
SELECT - + 74 / - - 8
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-4383
SELECT ALL + MIN( ALL - + 15 ) - - + 13 AS col1, 76 + - COUNT( * ) + 7 + + 81 * - 46 AS col2
----
-2
-3644

skipif mysql # not compatible
query II rowsort label-4383
SELECT ALL + MIN ( ALL - + 15 ) - - + 13 AS col1, 76 + - COUNT ( * ) + 7 + + 81 * - 46 AS col2
----
-2
-3644

query II rowsort
SELECT DISTINCT 54, 74 * 8 AS col0
----
54
592

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4385
SELECT + 70 - + ( + CASE 9 WHEN - 94 * - 0 + + + ( 69 ) * 25 * + + CAST( NULL AS SIGNED ) * + - 46 + - + ( - 64 ) THEN + 63 ELSE MAX( + + 89 ) END )
----
-19

skipif mysql # not compatible
query I rowsort label-4385
SELECT + 70 - + ( + CASE 9 WHEN - 94 * - 0 + + + ( 69 ) * 25 * + + CAST ( NULL AS INTEGER ) * + - 46 + - + ( - 64 ) THEN + 63 ELSE MAX ( + + 89 ) END )
----
-19

query I rowsort
SELECT DISTINCT - 84 * - 21
----
1764

onlyif mysql # aggregate syntax: 
query I rowsort label-4387
SELECT - COUNT( * ) * 41 * ( - 80 ) AS col1
----
3280

skipif mysql # not compatible
query I rowsort label-4387
SELECT - COUNT ( * ) * 41 * ( - 80 ) AS col1
----
3280

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4388
SELECT ALL + 66 * - 9 * + CAST( NULL AS SIGNED ) / - + 80
----
NULL

skipif mysql # not compatible
query I rowsort label-4388
SELECT ALL + 66 * - 9 * + CAST ( NULL AS INTEGER ) / - + 80
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4389
SELECT - NULLIF ( - + ( - + CAST( - + 70 AS SIGNED ) ), + + 35 ) DIV - + 27
----
-2

skipif mysql # not compatible
query I rowsort label-4389
SELECT - NULLIF ( - + ( - + CAST ( - + 70 AS INTEGER ) ), + + 35 ) / - + 27
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4390
SELECT ALL + 93 * - + MAX( + 68 ) AS col1
----
-6324

skipif mysql # not compatible
query I rowsort label-4390
SELECT ALL + 93 * - + MAX ( + 68 ) AS col1
----
-6324

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4391
SELECT ALL NULLIF ( + - 20, + 17 * 50 / - - CAST( + 90 AS SIGNED ) * - 52 ) AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-4391
SELECT ALL NULLIF ( + - 20, + 17 * 50 / - - CAST ( + 90 AS INTEGER ) * - 52 ) AS col1
----
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-4392
SELECT DISTINCT + 84 * 69 AS col2, COALESCE ( - CASE + - ( + 84 ) WHEN - 17 / 78 * COUNT( * ) * + COUNT( * ) THEN NULL ELSE + 98 END, ( + 72 ) - + + 5, + 5 )
----
5796
-98

skipif mysql # not compatible
query II rowsort label-4392
SELECT DISTINCT + 84 * 69 AS col2, COALESCE ( - CASE + - ( + 84 ) WHEN - 17 / 78 * COUNT ( * ) * + COUNT ( * ) THEN NULL ELSE + 98 END, ( + 72 ) - + + 5, + 5 )
----
5796
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-4393
SELECT ALL + ( - SUM( 73 ) )
----
-73

skipif mysql # not compatible
query I rowsort label-4393
SELECT ALL + ( - SUM ( 73 ) )
----
-73

query I rowsort
SELECT DISTINCT - 12 * - 27
----
324

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4395
SELECT ALL + COUNT( * ) / 61 * - 20 * 53 / - - 55 * COUNT( * ) + CAST( NULL AS SIGNED ) * - - 46 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4395
SELECT ALL + COUNT ( * ) / 61 * - 20 * 53 / - - 55 * COUNT ( * ) + CAST ( NULL AS INTEGER ) * - - 46 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4396
SELECT 40 DIV + 64 * 82 * - 69 + - COUNT( DISTINCT CAST( - 42 AS SIGNED ) ) * + 73 * ( + 66 ) * - - 4 - 4 * - COALESCE ( + ( 68 ), + 3 )
----
-19000

skipif mysql # not compatible
query I rowsort label-4396
SELECT 40 / + 64 * 82 * - 69 + - COUNT ( DISTINCT CAST ( - 42 AS INTEGER ) ) * + 73 * ( + 66 ) * - - 4 - 4 * - COALESCE ( + ( 68 ), + 3 )
----
-19000

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4397
SELECT CAST( 48 AS SIGNED ) AS col0, 86
----
48
86

skipif mysql # not compatible
query II rowsort label-4397
SELECT CAST ( 48 AS INTEGER ) AS col0, 86
----
48
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4398
SELECT DISTINCT MIN( - COALESCE ( - 17, - 42 ) ) * - 77 + + 54
----
-1255

skipif mysql # not compatible
query I rowsort label-4398
SELECT DISTINCT MIN ( - COALESCE ( - 17, - 42 ) ) * - 77 + + 54
----
-1255

onlyif mysql # aggregate syntax: 
query I rowsort label-4399
SELECT DISTINCT + COUNT( * ) + + + 25 + ( - + 1 ) - 26
----
-1

skipif mysql # not compatible
query I rowsort label-4399
SELECT DISTINCT + COUNT ( * ) + + + 25 + ( - + 1 ) - 26
----
-1

query I rowsort
SELECT ALL 62 * + + 94 * + 88 AS col2
----
512864

query II rowsort
SELECT ALL - - 82 + 8 AS col2, 73
----
90
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4402
SELECT ALL - CAST( COUNT( * ) AS SIGNED ) AS col1, ( + 0 )
----
-1
0

skipif mysql # not compatible
query II rowsort label-4402
SELECT ALL - CAST ( COUNT ( * ) AS INTEGER ) AS col1, ( + 0 )
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4403
SELECT DISTINCT - 57 * + ( - MIN( ALL - + ( - 77 ) ) )
----
4389

skipif mysql # not compatible
query I rowsort label-4403
SELECT DISTINCT - 57 * + ( - MIN ( ALL - + ( - 77 ) ) )
----
4389

onlyif mysql # aggregate syntax: 
query I rowsort label-4404
SELECT ALL 29 * - SUM( ALL + + 12 )
----
-348

skipif mysql # not compatible
query I rowsort label-4404
SELECT ALL 29 * - SUM ( ALL + + 12 )
----
-348

query I rowsort
SELECT + 68 * 25 * - 75 * + NULLIF ( + 39, 4 ) AS col1
----
-4972500

onlyif mysql # aggregate syntax: 
query I rowsort label-4406
SELECT DISTINCT COUNT( * ) - - NULLIF ( - 63, + 88 ) * + 35 + + COUNT( * )
----
-2203

skipif mysql # not compatible
query I rowsort label-4406
SELECT DISTINCT COUNT ( * ) - - NULLIF ( - 63, + 88 ) * + 35 + + COUNT ( * )
----
-2203

query I rowsort
SELECT DISTINCT - + 77 * + + 1 * - - 32
----
-2464

onlyif mysql # aggregate syntax: 
query II rowsort label-4408
SELECT - 35 * + NULLIF ( - 94, - - 40 ) AS col0, + NULLIF ( - 0, + 82 * 7 - - - COUNT( * ) + - 61 ) AS col1
----
3290
0

skipif mysql # not compatible
query II rowsort label-4408
SELECT - 35 * + NULLIF ( - 94, - - 40 ) AS col0, + NULLIF ( - 0, + 82 * 7 - - - COUNT ( * ) + - 61 ) AS col1
----
3290
0

query I rowsort
SELECT ( 88 ) * 91 AS col1
----
8008

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4410
SELECT ALL 92 * + CASE 12 WHEN + NULLIF ( - - ( + + 35 ), + 18 - + + ( 92 ) ) + - NULLIF ( + NULLIF ( + 28, + 93 * + 18 / + + 64 ), - SUM( ALL - + CAST( + 99 AS SIGNED ) ) * - 83 * 26 * + - MAX( DISTINCT - 22 ) ) THEN 52 * + + 80 + + CAST( NULL AS SIGNED ) + - 6 + + 27 + 11 + - - 40 * - 15 / - COUNT( * ) + - + 7 + + - 64 + - 2 END * NULLIF ( 67, + ( 77 ) + + 73 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4410
SELECT ALL 92 * + CASE 12 WHEN + NULLIF ( - - ( + + 35 ), + 18 - + + ( 92 ) ) + - NULLIF ( + NULLIF ( + 28, + 93 * + 18 / + + 64 ), - SUM ( ALL - + CAST ( + 99 AS INTEGER ) ) * - 83 * 26 * + - MAX ( DISTINCT - 22 ) ) THEN 52 * + + 80 + + CAST ( NULL AS INTEGER ) + - 6 + + 27 + 11 + - - 40 * - 15 / - COUNT ( * ) + - + 7 + + - 64 + - 2 END * NULLIF ( 67, + ( 77 ) + + 73 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4411
SELECT 91 + 40 + + - NULLIF ( - 57, AVG ( - 41 ) * + 76 * - - 74 * + + 87 - + MAX( - + 49 ) + - 33 + 29 * 12 ) AS col0
----
188

skipif mysql # not compatible
query I rowsort label-4411
SELECT 91 + 40 + + - NULLIF ( - 57, AVG ( - 41 ) * + 76 * - - 74 * + + 87 - + MAX ( - + 49 ) + - 33 + 29 * 12 ) AS col0
----
188

query III rowsort
SELECT + ( ( - 91 ) ) * + 35, - 5 AS col0, + ( - 65 ) AS col2
----
-3185
-5
-65

query I rowsort
SELECT 68 + 85
----
153

query I rowsort
SELECT + 42 + + 20 + + + 48 AS col2
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-4415
SELECT 4 - - - MAX( - 75 )
----
79

skipif mysql # not compatible
query I rowsort label-4415
SELECT 4 - - - MAX ( - 75 )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4416
SELECT ALL 59 * + 99 * + COUNT( * )
----
5841

skipif mysql # not compatible
query I rowsort label-4416
SELECT ALL 59 * + 99 * + COUNT ( * )
----
5841

onlyif mysql # aggregate syntax: 
query I rowsort label-4417
SELECT SUM( DISTINCT - - 78 ) * 86 * + 94 + COUNT( * ) + 32
----
630585

skipif mysql # not compatible
query I rowsort label-4417
SELECT SUM ( DISTINCT - - 78 ) * 86 * + 94 + COUNT ( * ) + 32
----
630585

query I rowsort
SELECT DISTINCT 70 * 6
----
420

query II rowsort
SELECT - 99 AS col2, 41
----
-99
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4420
SELECT ALL 5 * NULLIF ( - - 36, COUNT( * ) )
----
180

skipif mysql # not compatible
query I rowsort label-4420
SELECT ALL 5 * NULLIF ( - - 36, COUNT ( * ) )
----
180

query I rowsort
SELECT ALL 23 * - 5 * - ( + 41 )
----
4715

onlyif mysql # aggregate syntax: 
query I rowsort label-4422
SELECT DISTINCT 16 + - 59 + - COUNT( * )
----
-44

skipif mysql # not compatible
query I rowsort label-4422
SELECT DISTINCT 16 + - 59 + - COUNT ( * )
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-4423
SELECT ALL SUM( DISTINCT + 32 ) + - 10 AS col0
----
22

skipif mysql # not compatible
query I rowsort label-4423
SELECT ALL SUM ( DISTINCT + 32 ) + - 10 AS col0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4424
SELECT ALL - COUNT( * ) + + 53 + + 8 + - ( + 41 )
----
19

skipif mysql # not compatible
query I rowsort label-4424
SELECT ALL - COUNT ( * ) + + 53 + + 8 + - ( + 41 )
----
19

query II rowsort
SELECT 87, 63 + + + 24
----
87
87

query I rowsort
SELECT ( 16 ) * 51 + 87
----
903

onlyif mysql # aggregate syntax: 
query I rowsort label-4427
SELECT 38 + + + COUNT( * ) AS col1
----
39

skipif mysql # not compatible
query I rowsort label-4427
SELECT 38 + + + COUNT ( * ) AS col1
----
39

query II rowsort
SELECT 1 AS col2, - 2 * + 31 + - - 90
----
1
28

onlyif mysql # aggregate syntax: 
query II rowsort label-4429
SELECT ALL SUM( + - 59 ) + + 41 AS col1, + 90
----
-18
90

skipif mysql # not compatible
query II rowsort label-4429
SELECT ALL SUM ( + - 59 ) + + 41 AS col1, + 90
----
-18
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4430
SELECT DISTINCT + ( 85 ) * 60 + CAST( + 93 AS SIGNED ) AS col1
----
5193

skipif mysql # not compatible
query I rowsort label-4430
SELECT DISTINCT + ( 85 ) * 60 + CAST ( + 93 AS INTEGER ) AS col1
----
5193

onlyif mysql # aggregate syntax: 
query I rowsort label-4431
SELECT ALL - MAX( DISTINCT - + 39 ) + 74
----
113

skipif mysql # not compatible
query I rowsort label-4431
SELECT ALL - MAX ( DISTINCT - + 39 ) + 74
----
113

query I rowsort
SELECT DISTINCT 50 + + 21 * - + 43 AS col1
----
-853

query I rowsort
SELECT ALL + 36 * + 99
----
3564

onlyif mysql # aggregate syntax: 
query I rowsort label-4434
SELECT - 41 * - 24 + + 60 + + COUNT( * ) AS col2
----
1045

skipif mysql # not compatible
query I rowsort label-4434
SELECT - 41 * - 24 + + 60 + + COUNT ( * ) AS col2
----
1045

query I rowsort
SELECT DISTINCT + 91 + 5 + - 67 col2
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-4436
SELECT DISTINCT - COALESCE ( - - 71, 44 * + 66 DIV - 11 ) AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-4436
SELECT DISTINCT - COALESCE ( - - 71, 44 * + 66 / - 11 ) AS col0
----
-71

query I rowsort
SELECT ALL - + 55 + 50 + - + 49 * 23
----
-1132

onlyif mysql # aggregate syntax: 
query II rowsort label-4438
SELECT - MAX( 78 ) * + 51 - 25 + - 70 * - MIN( ( + 53 ) ) + MIN( + 43 ), 4 - - 75 col0
----
-250
79

skipif mysql # not compatible
query II rowsort label-4438
SELECT - MAX ( 78 ) * + 51 - 25 + - 70 * - MIN ( ( + 53 ) ) + MIN ( + 43 ), 4 - - 75 col0
----
-250
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4439
SELECT 57 - + SUM( - - 12 ) - + 42 DIV + - 47
----
45

skipif mysql # not compatible
query I rowsort label-4439
SELECT 57 - + SUM ( - - 12 ) - + 42 / + - 47
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4440
SELECT + CASE 67 WHEN + 30 THEN NULL WHEN - + COUNT( * ) THEN NULL ELSE - 6 END
----
-6

skipif mysql # not compatible
query I rowsort label-4440
SELECT + CASE 67 WHEN + 30 THEN NULL WHEN - + COUNT ( * ) THEN NULL ELSE - 6 END
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4441
SELECT - + NULLIF ( - 69, + NULLIF ( - 74, + 68 * 89 + + + 48 ) ) * CAST( + 28 AS SIGNED ) * + 17 + - 53 * 90 DIV 74 * 66 * + - 42 + 11 * + COUNT( + 20 ) AS col0, + 83
----
210263
83

skipif mysql # not compatible
query II rowsort label-4441
SELECT - + NULLIF ( - 69, + NULLIF ( - 74, + 68 * 89 + + + 48 ) ) * CAST ( + 28 AS INTEGER ) * + 17 + - 53 * 90 / 74 * 66 * + - 42 + 11 * + COUNT ( + 20 ) AS col0, + 83
----
210263
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4442
SELECT + CASE - 24 WHEN 54 + - + 61 + - - 36 + - 47 THEN + + CAST( 41 AS SIGNED ) END * + + CAST( - COALESCE ( + 36, - 35 ) AS SIGNED ) / - - 20 - - 41 * - NULLIF ( - 75, - + ( - 24 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4442
SELECT + CASE - 24 WHEN 54 + - + 61 + - - 36 + - 47 THEN + + CAST ( 41 AS INTEGER ) END * + + CAST ( - COALESCE ( + 36, - 35 ) AS INTEGER ) / - - 20 - - 41 * - NULLIF ( - 75, - + ( - 24 ) )
----
NULL

query I rowsort
SELECT DISTINCT + 62 - - 32
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4444
SELECT DISTINCT + + COUNT( * ) - + + 13
----
-12

skipif mysql # not compatible
query I rowsort label-4444
SELECT DISTINCT + + COUNT ( * ) - + + 13
----
-12

query I rowsort
SELECT + ( - 58 ) * - + 91
----
5278

query I rowsort
SELECT - 32 + 16 AS col2
----
-16

query I rowsort
SELECT + 83 * - 78 + + 46 AS col1
----
-6428

query I rowsort
SELECT 3 + - + 56 * + 64
----
-3581

onlyif mysql # aggregate syntax: 
query I rowsort label-4449
SELECT + MIN( DISTINCT 63 )
----
63

skipif mysql # not compatible
query I rowsort label-4449
SELECT + MIN ( DISTINCT 63 )
----
63

query I rowsort
SELECT 95 * - - 62
----
5890

onlyif mysql # aggregate syntax: 
query II rowsort label-4451
SELECT MAX( ALL 17 ) * + - 52, - MAX( ALL + 27 ) * + + 61 AS col1
----
-884
-1647

skipif mysql # not compatible
query II rowsort label-4451
SELECT MAX ( ALL 17 ) * + - 52, - MAX ( ALL + 27 ) * + + 61 AS col1
----
-884
-1647

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4452
SELECT 13 DIV 53 + + + ( - COUNT( * ) ) * - 15
----
15

skipif mysql # not compatible
query I rowsort label-4452
SELECT 13 / 53 + + + ( - COUNT ( * ) ) * - 15
----
15

query I rowsort
SELECT DISTINCT + + 70 * - + 70 col2
----
-4900

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4454
SELECT ALL NULLIF ( 0, + CAST( 43 AS DECIMAL ) ) + - 5 + + 41 + - - CAST( NULL AS DECIMAL ) * + NULLIF ( - 87, + 38 ) - COUNT( * ) + - 41
----
NULL

skipif mysql # not compatible
query I rowsort label-4454
SELECT ALL NULLIF ( 0, + CAST ( 43 AS REAL ) ) + - 5 + + 41 + - - CAST ( NULL AS REAL ) * + NULLIF ( - 87, + 38 ) - COUNT ( * ) + - 41
----
NULL

query II rowsort
SELECT 62 AS col0, + 59
----
62
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4456
SELECT ALL MAX( 83 )
----
83

skipif mysql # not compatible
query I rowsort label-4456
SELECT ALL MAX ( 83 )
----
83

query I rowsort
SELECT ALL 82 + 23 AS col1
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-4458
SELECT COUNT( * ) * - 73 * - SUM( + + 71 )
----
5183

skipif mysql # not compatible
query I rowsort label-4458
SELECT COUNT ( * ) * - 73 * - SUM ( + + 71 )
----
5183

onlyif mysql # aggregate syntax: 
query I rowsort label-4459
SELECT ALL 75 + - - 1 + - COUNT( * )
----
75

skipif mysql # not compatible
query I rowsort label-4459
SELECT ALL 75 + - - 1 + - COUNT ( * )
----
75

query I rowsort
SELECT 84 * - - 2
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-4461
SELECT ALL SUM( ALL + 2 ) + 77 col1
----
79

skipif mysql # not compatible
query I rowsort label-4461
SELECT ALL SUM ( ALL + 2 ) + 77 col1
----
79

query II rowsort
SELECT 92 AS col0, - NULLIF ( - - 32, - 18 * - 42 )
----
92
-32

query II rowsort
SELECT NULLIF ( + 67, + 10 ) * - - 77, - 55 AS col2
----
5159
-55

query II rowsort
SELECT DISTINCT 23 AS col2, 27 + + - 14 AS col1
----
23
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-4465
SELECT ALL + 25 * - - 16 + 75 + 13 DIV - + ( + COALESCE ( - 19, + + 49, - 92 - 15 ) ) * - 86 * + ( - + COALESCE ( CASE - - 73 WHEN - 18 + COUNT( * ) THEN + + MAX( DISTINCT - 32 ) + - + 29 WHEN 44 + - 26 THEN 23 * - + 20 WHEN - 83 * CAST( NULL AS DECIMAL ) * - - NULLIF ( + 70, 79 * CASE - + COALESCE ( + 29, ( - 36 ) * + SUM( + 90 ) ) WHEN - 50 THEN + COUNT( + + 48 ) * - 80 WHEN - 80 THEN NULL ELSE CAST( NULL AS SIGNED ) END ) + + 33 THEN NULL END, - COUNT( DISTINCT ( + CAST( - 84 AS SIGNED ) ) ) + - 85, - 65 ) ) * 70 * - 97 AS col0
----
475

skipif mysql # not compatible
query I rowsort label-4465
SELECT ALL + 25 * - - 16 + 75 + 13 / - + ( + COALESCE ( - 19, + + 49, - 92 - 15 ) ) * - 86 * + ( - + COALESCE ( CASE - - 73 WHEN - 18 + COUNT ( * ) THEN + + MAX ( DISTINCT - 32 ) + - + 29 WHEN 44 + - 26 THEN 23 * - + 20 WHEN - 83 * CAST ( NULL AS REAL ) * - - NULLIF ( + 70, 79 * CASE - + COALESCE ( + 29, ( - 36 ) * + SUM ( + 90 ) ) WHEN - 50 THEN + COUNT ( + + 48 ) * - 80 WHEN - 80 THEN NULL ELSE CAST ( NULL AS INTEGER ) END ) + + 33 THEN NULL END, - COUNT ( DISTINCT ( + CAST ( - 84 AS INTEGER ) ) ) + - 85, - 65 ) ) * 70 * - 97 AS col0
----
475

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4466
SELECT CASE - 49 WHEN - - 39 THEN - 18 WHEN CAST( NULL AS DECIMAL ) / - - 49 THEN NULL ELSE - COUNT( * ) + - 32 END
----
-33

skipif mysql # not compatible
query I rowsort label-4466
SELECT CASE - 49 WHEN - - 39 THEN - 18 WHEN CAST ( NULL AS REAL ) / - - 49 THEN NULL ELSE - COUNT ( * ) + - 32 END
----
-33

query II rowsort
SELECT + 86, 35 col1
----
86
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4468
SELECT - 56 * + 63 * CASE COALESCE ( + 53, + 87 / CAST( + 98 AS SIGNED ) - - 35 / + 43, + + COUNT( * ) * + 53 - - AVG ( + + 82 ) + - CAST( - ( + 45 ) AS SIGNED ) ) WHEN - + 55 THEN NULL ELSE MIN( ALL - 96 ) END + + - 71 + 18 AS col2
----
338635

skipif mysql # not compatible
query I rowsort label-4468
SELECT - 56 * + 63 * CASE COALESCE ( + 53, + 87 / CAST ( + 98 AS INTEGER ) - - 35 / + 43, + + COUNT ( * ) * + 53 - - AVG ( + + 82 ) + - CAST ( - ( + 45 ) AS INTEGER ) ) WHEN - + 55 THEN NULL ELSE MIN ( ALL - 96 ) END + + - 71 + 18 AS col2
----
338635

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4469
SELECT - - COUNT( * ) * - 39 + - + 53 + CAST( + 10 AS SIGNED ) AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-4469
SELECT - - COUNT ( * ) * - 39 + - + 53 + CAST ( + 10 AS INTEGER ) AS col2
----
-82

query II rowsort
SELECT + + 56 AS col2, 5
----
56
5

query II rowsort
SELECT + 93, 39 col2
----
93
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4472
SELECT ALL - SUM( DISTINCT + + 33 ) DIV - ( + 59 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4472
SELECT ALL - SUM ( DISTINCT + + 33 ) / - ( + 59 ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4473
SELECT DISTINCT - - 2 * 0 + COALESCE ( 31, 69, 61 + + COUNT( * ), - + MAX( ALL 62 ) - 52 ) * CASE ( + 63 ) WHEN ( + COUNT( * ) ) + + - 31 * 44 THEN 54 WHEN - 78 THEN - 47 * CAST( - 45 AS SIGNED ) * COUNT( * ) + CAST( NULL AS SIGNED ) ELSE NULL END + + COALESCE ( 59, + 4 + - COUNT( * ) ) * 94 - + + 85 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4473
SELECT DISTINCT - - 2 * 0 + COALESCE ( 31, 69, 61 + + COUNT ( * ), - + MAX ( ALL 62 ) - 52 ) * CASE ( + 63 ) WHEN ( + COUNT ( * ) ) + + - 31 * 44 THEN 54 WHEN - 78 THEN - 47 * CAST ( - 45 AS INTEGER ) * COUNT ( * ) + CAST ( NULL AS INTEGER ) ELSE NULL END + + COALESCE ( 59, + 4 + - COUNT ( * ) ) * 94 - + + 85 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4474
SELECT - + MIN( ALL 32 ) * 99 + + ( + 99 ) * - 29 * COUNT( * ) * + 99 + + - 32 DIV + COUNT( * )
----
-287429

skipif mysql # not compatible
query I rowsort label-4474
SELECT - + MIN ( ALL 32 ) * 99 + + ( + 99 ) * - 29 * COUNT ( * ) * + 99 + + - 32 / + COUNT ( * )
----
-287429

query I rowsort
SELECT + - ( - + 8 ) * + 78
----
624

onlyif mysql # aggregate syntax: 
query II rowsort label-4476
SELECT - - 12 * + SUM( ALL - 20 ) * + MIN( - 71 ) + + - 33 col2, + ( 3 )
----
17007
3

skipif mysql # not compatible
query II rowsort label-4476
SELECT - - 12 * + SUM ( ALL - 20 ) * + MIN ( - 71 ) + + - 33 col2, + ( 3 )
----
17007
3

query I rowsort
SELECT - 97 - + - 70 AS col2
----
-27

query I rowsort
SELECT DISTINCT + - ( - - 67 ) AS col0
----
-67

onlyif mysql # DIV for integer division: 
query III rowsort label-4479
SELECT ALL + - 54 col0, 37 + + + ( 42 ) AS col1, + 2 DIV 77
----
-54
79
0

skipif mysql # not compatible
query III rowsort label-4479
SELECT ALL + - 54 col0, 37 + + + ( 42 ) AS col1, + 2 / 77
----
-54
79
0

query I rowsort
SELECT ALL - 65 + + 3 AS col1
----
-62

query I rowsort
SELECT ALL NULLIF ( 97, 44 * + - 23 + + 81 - 23 ) col2
----
97

query II rowsort
SELECT ALL + 80 + - 88, 32 * + + 94 AS col1
----
-8
3008

query II rowsort
SELECT DISTINCT - 25 + 13 AS col1, 46
----
-12
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4484
SELECT DISTINCT + 62 + - ( + - CASE - 43 WHEN + - CASE WHEN NOT - 8 < AVG ( - 79 ) THEN - 74 / - 96 * - 14 + + 96 * 55 END * 44 + + COUNT( * ) * - + NULLIF ( + 29, - 28 + CASE CAST( NULL AS SIGNED ) WHEN COUNT( DISTINCT - 62 ) + + ( - - 48 ) THEN - CASE WHEN NOT + 41 IS NULL THEN NULL ELSE - 28 + - 92 END / + 0 * + 30 / - + COUNT( * ) * - 5 ELSE NULL END ) THEN NULL WHEN 22 THEN NULL ELSE + 26 + - COALESCE ( - - 20, + - 67 ) END )
----
68

skipif mysql # not compatible
query I rowsort label-4484
SELECT DISTINCT + 62 + - ( + - CASE - 43 WHEN + - CASE WHEN NOT - 8 < AVG ( - 79 ) THEN - 74 / - 96 * - 14 + + 96 * 55 END * 44 + + COUNT ( * ) * - + NULLIF ( + 29, - 28 + CASE CAST ( NULL AS INTEGER ) WHEN COUNT ( DISTINCT - 62 ) + + ( - - 48 ) THEN - CASE WHEN NOT + 41 IS NULL THEN NULL ELSE - 28 + - 92 END / + 0 * + 30 / - + COUNT ( * ) * - 5 ELSE NULL END ) THEN NULL WHEN 22 THEN NULL ELSE + 26 + - COALESCE ( - - 20, + - 67 ) END )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4485
SELECT - 58 + COUNT( * ) AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-4485
SELECT - 58 + COUNT ( * ) AS col1
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4486
SELECT - 34 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4486
SELECT - 34 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 40 - + 22
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-4488
SELECT - 10 + + 65 + - 4 DIV - + 10
----
55

skipif mysql # not compatible
query I rowsort label-4488
SELECT - 10 + + 65 + - 4 / - + 10
----
55

query I rowsort
SELECT ALL - 44 + 75 AS col0
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4490
SELECT DISTINCT ( NULLIF ( + - 94, 21 * 58 + + ( + CAST( NULL AS SIGNED ) ) + + - 24 * COUNT( * ) ) ) col2
----
-94

skipif mysql # not compatible
query I rowsort label-4490
SELECT DISTINCT ( NULLIF ( + - 94, 21 * 58 + + ( + CAST ( NULL AS INTEGER ) ) + + - 24 * COUNT ( * ) ) ) col2
----
-94

query I rowsort
SELECT ALL ( + ( - + 70 ) )
----
-70

query I rowsort
SELECT ALL ( 27 ) - 8 AS col2
----
19

query I rowsort
SELECT ALL ( - NULLIF ( ( 93 ), 50 * + 91 ) )
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-4494
SELECT DISTINCT + 63 - - COUNT( * ) + + 19 + - - 71 AS col2
----
154

skipif mysql # not compatible
query I rowsort label-4494
SELECT DISTINCT + 63 - - COUNT ( * ) + + 19 + - - 71 AS col2
----
154

query I rowsort
SELECT + 98 * + 83 * - 43 AS col1
----
-349762

onlyif mysql # aggregate syntax: 
query I rowsort label-4496
SELECT ALL ( - - COUNT( * ) ) - - 26
----
27

skipif mysql # not compatible
query I rowsort label-4496
SELECT ALL ( - - COUNT ( * ) ) - - 26
----
27

query II rowsort
SELECT - 68 * 98, 35 AS col0
----
-6664
35

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4498
SELECT CAST( + - ( 85 ) AS SIGNED ), 92 AS col0
----
-85
92

skipif mysql # not compatible
query II rowsort label-4498
SELECT CAST ( + - ( 85 ) AS INTEGER ), 92 AS col0
----
-85
92

query I rowsort
SELECT ALL + 46 * - + 40 + 20 + - NULLIF ( + 5, - 47 ) + + + 14 + 91 * + 60
----
3649

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4500
SELECT DISTINCT + 35 * + 47 AS col2, MIN( DISTINCT 80 ) * 63 + + CAST( NULL AS SIGNED ) AS col1
----
1645
NULL

skipif mysql # not compatible
query II rowsort label-4500
SELECT DISTINCT + 35 * + 47 AS col2, MIN ( DISTINCT 80 ) * 63 + + CAST ( NULL AS INTEGER ) AS col1
----
1645
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4501
SELECT + - 7 * COUNT( * ) AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-4501
SELECT + - 7 * COUNT ( * ) AS col2
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4502
SELECT + 4 DIV MIN( ALL - 97 ) + + 85 col1
----
85

skipif mysql # not compatible
query I rowsort label-4502
SELECT + 4 / MIN ( ALL - 97 ) + + 85 col1
----
85

query I rowsort
SELECT + 67 + ( + 66 )
----
133

query I rowsort
SELECT + - ( - 33 ) AS col0
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4505
SELECT - CAST( NULL AS SIGNED ) * 90 * - - 85 / - - 97
----
NULL

skipif mysql # not compatible
query I rowsort label-4505
SELECT - CAST ( NULL AS INTEGER ) * 90 * - - 85 / - - 97
----
NULL

query I rowsort
SELECT ( + 19 ) * - 1 * 21 + + 65 AS col0
----
-334

query II rowsort
SELECT - 51 - - 69 AS col1, 26 AS col1
----
18
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4508
SELECT DISTINCT - 19 DIV + COUNT( * ) + - 34 AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-4508
SELECT DISTINCT - 19 / + COUNT ( * ) + - 34 AS col2
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-4509
SELECT + 94 + - + COALESCE ( - COUNT( * ), - 59 )
----
95

skipif mysql # not compatible
query I rowsort label-4509
SELECT + 94 + - + COALESCE ( - COUNT ( * ), - 59 )
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4510
SELECT - + 36 * COUNT( * ) + ( - 46 ) - + 10 * ( 79 ) + + + COALESCE ( + 85, + - CAST( - CAST( 87 AS SIGNED ) AS SIGNED ), + 38 )
----
-787

skipif mysql # not compatible
query I rowsort label-4510
SELECT - + 36 * COUNT ( * ) + ( - 46 ) - + 10 * ( 79 ) + + + COALESCE ( + 85, + - CAST ( - CAST ( 87 AS INTEGER ) AS INTEGER ), + 38 )
----
-787

query I rowsort
SELECT ALL + - ( - 70 ) AS col1
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-4512
SELECT + 8 DIV - - 59
----
0

skipif mysql # not compatible
query I rowsort label-4512
SELECT + 8 / - - 59
----
0

query I rowsort
SELECT + - 64 + - 22 + + 66 * 1
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4514
SELECT - + 89 + - - CAST( - MAX( + - 29 ) AS SIGNED ) AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-4514
SELECT - + 89 + - - CAST ( - MAX ( + - 29 ) AS INTEGER ) AS col1
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4515
SELECT DISTINCT 90 * - 89 * - ( SUM( + 2 ) ) * + 70 + + + 68 + - 89 - + 35 - + 93 + 32 * + 44 + 39 + + ( - 77 ) * - + ( + + 43 ) + 8 * - + ( - + 8 ) * - 82 + - + NULLIF ( - 69, COALESCE ( + 9, - ( - COUNT( * ) ), - COUNT( * ) / - + CAST( + NULLIF ( 57, + - 7 + 36 * - COUNT( * ) * - SUM( 38 ) + - 34 + 17 ) AS DECIMAL ) + 33 ) + - CAST( 83 AS SIGNED ) )
----
1120830

skipif mysql # not compatible
query I rowsort label-4515
SELECT DISTINCT 90 * - 89 * - ( SUM ( + 2 ) ) * + 70 + + + 68 + - 89 - + 35 - + 93 + 32 * + 44 + 39 + + ( - 77 ) * - + ( + + 43 ) + 8 * - + ( - + 8 ) * - 82 + - + NULLIF ( - 69, COALESCE ( + 9, - ( - COUNT ( * ) ), - COUNT ( * ) / - + CAST ( + NULLIF ( 57, + - 7 + 36 * - COUNT ( * ) * - SUM ( 38 ) + - 34 + 17 ) AS REAL ) + 33 ) + - CAST ( 83 AS INTEGER ) )
----
1120830

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4516
SELECT ALL 28 * - MIN( + 47 ) - 95 * 6 + CAST( - 62 AS SIGNED ) + 2 AS col1, + 45 * - + ( - 24 )
----
-1946
1080

skipif mysql # not compatible
query II rowsort label-4516
SELECT ALL 28 * - MIN ( + 47 ) - 95 * 6 + CAST ( - 62 AS INTEGER ) + 2 AS col1, + 45 * - + ( - 24 )
----
-1946
1080

onlyif mysql # aggregate syntax: 
query I rowsort label-4517
SELECT + COUNT( * ) * + 67 * + 78 AS col0
----
5226

skipif mysql # not compatible
query I rowsort label-4517
SELECT + COUNT ( * ) * + 67 * + 78 AS col0
----
5226

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4518
SELECT - CAST( + - 70 AS SIGNED ) AS col0
----
70

skipif mysql # not compatible
query I rowsort label-4518
SELECT - CAST ( + - 70 AS INTEGER ) AS col0
----
70

query I rowsort
SELECT - 70 + - - 48 AS col1
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-4520
SELECT ALL ( 63 ) * + COALESCE ( 21, + 79 * + 38 + - - 28, - 27 + - 54 * - 89 ) + - CASE 58 WHEN + - 79 + - 31 THEN + MAX( DISTINCT + - 9 ) WHEN + 27 THEN - - 70 ELSE - SUM( ALL + - 79 ) * + 29 END AS col2
----
-968

skipif mysql # not compatible
query I rowsort label-4520
SELECT ALL ( 63 ) * + COALESCE ( 21, + 79 * + 38 + - - 28, - 27 + - 54 * - 89 ) + - CASE 58 WHEN + - 79 + - 31 THEN + MAX ( DISTINCT + - 9 ) WHEN + 27 THEN - - 70 ELSE - SUM ( ALL + - 79 ) * + 29 END AS col2
----
-968

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4521
SELECT COALESCE ( + 31, + 30 DIV - MAX( DISTINCT 90 ) )
----
31

skipif mysql # not compatible
query I rowsort label-4521
SELECT COALESCE ( + 31, + 30 / - MAX ( DISTINCT 90 ) )
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4522
SELECT ALL ( CAST( 71 AS SIGNED ) ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-4522
SELECT ALL ( CAST ( 71 AS INTEGER ) ) AS col1
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4523
SELECT ALL COUNT( * ) * 80 * + - COUNT( * ) * - ( + ( + COUNT( ALL + - CAST( 84 AS SIGNED ) ) ) ) / + 47 - - - CAST( NULL AS DECIMAL ) * 2 * + 91 + + 35 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4523
SELECT ALL COUNT ( * ) * 80 * + - COUNT ( * ) * - ( + ( + COUNT ( ALL + - CAST ( 84 AS INTEGER ) ) ) ) / + 47 - - - CAST ( NULL AS REAL ) * 2 * + 91 + + 35 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4524
SELECT ALL + 76 - + - NULLIF ( + + NULLIF ( 17, + CASE 75 WHEN 19 / + 89 + + CASE 46 WHEN + + MIN( DISTINCT - 66 ) + - + COUNT( * ) + - ( + + 99 ) + - 42 * 4 * ( 83 ) THEN + - 7 WHEN - 14 + COALESCE ( 10, + - 69 + - + CAST( 15 AS DECIMAL ) * CASE - + COUNT( * ) WHEN 82 - - 92 THEN + 4 ELSE NULL END - + 61 + - 5 * 79 ) / - 4 THEN NULL ELSE 86 + 6 END + - 8 + + 74 + 58 - - 14 / + 53 + + ( ( + 26 ) ) + 23 * 62 + - 91 THEN NULL WHEN 84 + - COUNT( * ) / 71 THEN NULL ELSE COUNT( * ) END * - COUNT( 47 ) ), 38 ) * 69 AS col1
----
1249

skipif mysql # not compatible
query I rowsort label-4524
SELECT ALL + 76 - + - NULLIF ( + + NULLIF ( 17, + CASE 75 WHEN 19 / + 89 + + CASE 46 WHEN + + MIN ( DISTINCT - 66 ) + - + COUNT ( * ) + - ( + + 99 ) + - 42 * 4 * ( 83 ) THEN + - 7 WHEN - 14 + COALESCE ( 10, + - 69 + - + CAST ( 15 AS REAL ) * CASE - + COUNT ( * ) WHEN 82 - - 92 THEN + 4 ELSE NULL END - + 61 + - 5 * 79 ) / - 4 THEN NULL ELSE 86 + 6 END + - 8 + + 74 + 58 - - 14 / + 53 + + ( ( + 26 ) ) + 23 * 62 + - 91 THEN NULL WHEN 84 + - COUNT ( * ) / 71 THEN NULL ELSE COUNT ( * ) END * - COUNT ( 47 ) ), 38 ) * 69 AS col1
----
1249

onlyif mysql # aggregate syntax: 
query II rowsort label-4525
SELECT 17 AS col1, + 11 * + COUNT( * ) + ( MAX( DISTINCT + - 69 ) ) col1
----
17
-58

skipif mysql # not compatible
query II rowsort label-4525
SELECT 17 AS col1, + 11 * + COUNT ( * ) + ( MAX ( DISTINCT + - 69 ) ) col1
----
17
-58

query I rowsort
SELECT 28 * - COALESCE ( - 5, + 94 * + - 64 ) AS col0
----
140

query I rowsort
SELECT ALL - 4 * 12
----
-48

query I rowsort
SELECT 18 - 37 * 78
----
-2868

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4529
SELECT ALL - CAST( NULL AS SIGNED ) * + 44 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4529
SELECT ALL - CAST ( NULL AS INTEGER ) * + 44 AS col0
----
NULL

query I rowsort
SELECT 28 - - 56 col1
----
84

query I rowsort
SELECT ALL - 14 * + 71
----
-994

query I rowsort
SELECT DISTINCT + COALESCE ( 7, - 40 )
----
7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4533
SELECT ALL 29 / CAST( NULL AS DECIMAL ) * 68
----
NULL

skipif mysql # not compatible
query I rowsort label-4533
SELECT ALL 29 / CAST ( NULL AS REAL ) * 68
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4534
SELECT + + 76 * - - 80 + - - 86 + - + 75 + - - CAST( + - 97 AS SIGNED ) * - 78 AS col2
----
13657

skipif mysql # not compatible
query I rowsort label-4534
SELECT + + 76 * - - 80 + - - 86 + - + 75 + - - CAST ( + - 97 AS INTEGER ) * - 78 AS col2
----
13657

onlyif mysql # DIV for integer division: 
query I rowsort label-4535
SELECT + 1 DIV 32 DIV + 69 + - 60 - - 60
----
0

skipif mysql # not compatible
query I rowsort label-4535
SELECT + 1 / 32 / + 69 + - 60 - - 60
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4536
SELECT ALL 86 DIV - - ( + - COUNT( * ) ) + SUM( - 42 ) col1
----
-128

skipif mysql # not compatible
query I rowsort label-4536
SELECT ALL 86 / - - ( + - COUNT ( * ) ) + SUM ( - 42 ) col1
----
-128

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4537
SELECT - 26 / + 49 + + + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4537
SELECT - 26 / + 49 + + + CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4538
SELECT COUNT( * ) * + + 19 + - 11 + 4 + 12 col1
----
24

skipif mysql # not compatible
query I rowsort label-4538
SELECT COUNT ( * ) * + + 19 + - 11 + 4 + 12 col1
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4539
SELECT ALL - 90 * + - COUNT( * ) AS col1
----
90

skipif mysql # not compatible
query I rowsort label-4539
SELECT ALL - 90 * + - COUNT ( * ) AS col1
----
90

query I rowsort
SELECT DISTINCT - 73 + - 59
----
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-4541
SELECT DISTINCT - - SUM( ALL + 33 ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-4541
SELECT DISTINCT - - SUM ( ALL + 33 ) AS col1
----
33

query I rowsort
SELECT ALL + 98 + 54 AS col1
----
152

query I rowsort
SELECT ALL - 40 * 82 + + + 19 + 11 col2
----
-3250

onlyif mysql # aggregate syntax: 
query I rowsort label-4544
SELECT ALL - 29 * SUM( ALL - 54 )
----
1566

skipif mysql # not compatible
query I rowsort label-4544
SELECT ALL - 29 * SUM ( ALL - 54 )
----
1566

onlyif mysql # aggregate syntax: 
query I rowsort label-4545
SELECT + + NULLIF ( + NULLIF ( 24, 94 ), + - COUNT( * ) + - COUNT( * ) + - - 97 )
----
24

skipif mysql # not compatible
query I rowsort label-4545
SELECT + + NULLIF ( + NULLIF ( 24, 94 ), + - COUNT ( * ) + - COUNT ( * ) + - - 97 )
----
24

query II rowsort
SELECT ALL - - 3 AS col1, NULLIF ( + 91, 8 + + 20 + - + 93 ) AS col0
----
3
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4547
SELECT + CASE MAX( + 26 ) WHEN + + 18 THEN ( - + ( + ( - 20 ) ) ) - - COUNT( * ) END * - + CAST( - 22 AS DECIMAL ) - + 59 - 31 + - 66 * - 9 + CAST( 53 AS DECIMAL ) - - + CAST( - 82 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4547
SELECT + CASE MAX ( + 26 ) WHEN + + 18 THEN ( - + ( + ( - 20 ) ) ) - - COUNT ( * ) END * - + CAST ( - 22 AS REAL ) - + 59 - 31 + - 66 * - 9 + CAST ( 53 AS REAL ) - - + CAST ( - 82 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4548
SELECT 32 * 11 * SUM( ALL + - ( - 42 ) )
----
14784

skipif mysql # not compatible
query I rowsort label-4548
SELECT 32 * 11 * SUM ( ALL + - ( - 42 ) )
----
14784

onlyif mysql # aggregate syntax: 
query I rowsort label-4549
SELECT ALL COUNT( * ) - + 70 + + - ( - 94 )
----
25

skipif mysql # not compatible
query I rowsort label-4549
SELECT ALL COUNT ( * ) - + 70 + + - ( - 94 )
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4550
SELECT DISTINCT COALESCE ( - 49, 76 * - 77 + + 36 + - NULLIF ( 42, - CAST( 13 AS SIGNED ) ), ( 98 ) - + 77 ) * 2 - + COUNT( * ), + COUNT( * ) AS col0
----
-99
1

skipif mysql # not compatible
query II rowsort label-4550
SELECT DISTINCT COALESCE ( - 49, 76 * - 77 + + 36 + - NULLIF ( 42, - CAST ( 13 AS INTEGER ) ), ( 98 ) - + 77 ) * 2 - + COUNT ( * ), + COUNT ( * ) AS col0
----
-99
1

query I rowsort
SELECT COALESCE ( + 44, - 14 + - - 96 ) * 53
----
2332

onlyif mysql # aggregate syntax: 
query I rowsort label-4552
SELECT ( - + COUNT( DISTINCT + + 33 ) ) + ( 69 ) - + - 89 + + 72 AS col2
----
229

skipif mysql # not compatible
query I rowsort label-4552
SELECT ( - + COUNT ( DISTINCT + + 33 ) ) + ( 69 ) - + - 89 + + 72 AS col2
----
229

onlyif mysql # DIV for integer division: 
query I rowsort label-4553
SELECT 54 DIV - - 65 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4553
SELECT 54 / - - 65 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4554
SELECT 28 + 93 * - CAST( NULL AS SIGNED ) + - 96 + 81
----
NULL

skipif mysql # not compatible
query I rowsort label-4554
SELECT 28 + 93 * - CAST ( NULL AS INTEGER ) + - 96 + 81
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4555
SELECT 63 - + + 67 - - 85 DIV - + 53
----
-5

skipif mysql # not compatible
query I rowsort label-4555
SELECT 63 - + + 67 - - 85 / - + 53
----
-5

query I rowsort
SELECT DISTINCT 85 * + ( - ( - 50 ) ) AS col0
----
4250

query I rowsort
SELECT 47 + 98 * - 44
----
-4265

onlyif mysql # aggregate syntax: 
query I rowsort label-4558
SELECT - MAX( ALL + ( COALESCE ( - 94, 32 * 3 ) ) ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-4558
SELECT - MAX ( ALL + ( COALESCE ( - 94, 32 * 3 ) ) ) AS col0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4559
SELECT DISTINCT + COUNT( * ) + + + 83 AS col1
----
84

skipif mysql # not compatible
query I rowsort label-4559
SELECT DISTINCT + COUNT ( * ) + + + 83 AS col1
----
84

query I rowsort
SELECT 77 * + - 21
----
-1617

query I rowsort
SELECT - ( 88 ) + + 50
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-4562
SELECT - + MIN( - 66 ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-4562
SELECT - + MIN ( - 66 ) AS col0
----
66

query I rowsort
SELECT - - ( - 59 )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-4564
SELECT + 49 + + SUM( DISTINCT + 90 ) AS col2
----
139

skipif mysql # not compatible
query I rowsort label-4564
SELECT + 49 + + SUM ( DISTINCT + 90 ) AS col2
----
139

query I rowsort
SELECT 26 * - 74 + + 40 AS col2
----
-1884

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4566
SELECT + COALESCE ( - COALESCE ( SUM( CAST( + 67 AS SIGNED ) ), - 65 ), - - ( 26 ) + - ( - 57 ) ) col1
----
-67

skipif mysql # not compatible
query I rowsort label-4566
SELECT + COALESCE ( - COALESCE ( SUM ( CAST ( + 67 AS INTEGER ) ), - 65 ), - - ( 26 ) + - ( - 57 ) ) col1
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-4567
SELECT + SUM( DISTINCT + 79 )
----
79

skipif mysql # not compatible
query I rowsort label-4567
SELECT + SUM ( DISTINCT + 79 )
----
79

query I rowsort
SELECT ALL 49 * 70 + - 86
----
3344

query I rowsort
SELECT DISTINCT 99 * + 97 + + 86 + - 83
----
9606

onlyif mysql # aggregate syntax: 
query I rowsort label-4570
SELECT DISTINCT COUNT( * ) * - 42 + - - 63
----
21

skipif mysql # not compatible
query I rowsort label-4570
SELECT DISTINCT COUNT ( * ) * - 42 + - - 63
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4571
SELECT ALL + COUNT( * ) * 46 + + - 65 + - COUNT( * ) + + 16 * + 12 + + - 21
----
151

skipif mysql # not compatible
query I rowsort label-4571
SELECT ALL + COUNT ( * ) * 46 + + - 65 + - COUNT ( * ) + + 16 * + 12 + + - 21
----
151

onlyif mysql # DIV for integer division: 
query I rowsort label-4572
SELECT ALL + + 86 DIV + + 62
----
1

skipif mysql # not compatible
query I rowsort label-4572
SELECT ALL + + 86 / + + 62
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4573
SELECT DISTINCT + 76 DIV ( CASE + 44 WHEN - ( + 50 ) THEN MIN( DISTINCT 39 ) * 63 WHEN + + 47 THEN NULL ELSE + - MIN( DISTINCT - 2 ) * + 77 END ) + - + 21 - + 80 * + 85 col2
----
-6821

skipif mysql # not compatible
query I rowsort label-4573
SELECT DISTINCT + 76 / ( CASE + 44 WHEN - ( + 50 ) THEN MIN ( DISTINCT 39 ) * 63 WHEN + + 47 THEN NULL ELSE + - MIN ( DISTINCT - 2 ) * + 77 END ) + - + 21 - + 80 * + 85 col2
----
-6821

query I rowsort
SELECT ALL - CASE - 92 WHEN + + 80 * + NULLIF ( - 56, 13 ) THEN + 36 * - - 88 + - 68 + - 30 WHEN 53 THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4575
SELECT - 65 * - CAST( NULL AS SIGNED ) * + MAX( DISTINCT + + 90 ) + + + 23 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4575
SELECT - 65 * - CAST ( NULL AS INTEGER ) * + MAX ( DISTINCT + + 90 ) + + + 23 col0
----
NULL

query I rowsort
SELECT ( + - 30 ) * - 35 - - + 54 AS col0
----
1104

query I rowsort
SELECT ALL - 48 * + 69 - + 99
----
-3411

query I rowsort
SELECT + 29 + + 84
----
113

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4579
SELECT ALL + 57 AS col1, CAST( NULL AS DECIMAL ) * + COUNT( * )
----
57
NULL

skipif mysql # not compatible
query II rowsort label-4579
SELECT ALL + 57 AS col1, CAST ( NULL AS REAL ) * + COUNT ( * )
----
57
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4580
SELECT DISTINCT + COUNT( * ) * + 56 AS col0
----
56

skipif mysql # not compatible
query I rowsort label-4580
SELECT DISTINCT + COUNT ( * ) * + 56 AS col0
----
56

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4581
SELECT ALL - 77 - + COUNT( * ) * + - 86, CASE - 26 WHEN - - 18 THEN - 99 + - 3 - COUNT( ALL + COALESCE ( 10, 69 ) ) * 43 WHEN - 6 THEN NULL END + + CASE - 79 WHEN + + ( COUNT( * ) ) THEN NULL WHEN - - 48 - ( - CAST( NULL AS DECIMAL ) ) * + 98 THEN NULL ELSE 75 * ( + + 81 ) * - + 12 + 29 END + 15 - + - 95 * + 76 AS col1
----
9
NULL

skipif mysql # not compatible
query II rowsort label-4581
SELECT ALL - 77 - + COUNT ( * ) * + - 86, CASE - 26 WHEN - - 18 THEN - 99 + - 3 - COUNT ( ALL + COALESCE ( 10, 69 ) ) * 43 WHEN - 6 THEN NULL END + + CASE - 79 WHEN + + ( COUNT ( * ) ) THEN NULL WHEN - - 48 - ( - CAST ( NULL AS REAL ) ) * + 98 THEN NULL ELSE 75 * ( + + 81 ) * - + 12 + 29 END + 15 - + - 95 * + 76 AS col1
----
9
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4582
SELECT ALL + 2 AS col2, CAST( + - 11 AS SIGNED ) * + 73
----
2
-803

skipif mysql # not compatible
query II rowsort label-4582
SELECT ALL + 2 AS col2, CAST ( + - 11 AS INTEGER ) * + 73
----
2
-803

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4583
SELECT ALL CASE 47 WHEN - + CAST( 4 AS DECIMAL ) + 21 THEN NULL WHEN 73 THEN ( 14 ) END * - 43
----
NULL

skipif mysql # not compatible
query I rowsort label-4583
SELECT ALL CASE 47 WHEN - + CAST ( 4 AS REAL ) + 21 THEN NULL WHEN 73 THEN ( 14 ) END * - 43
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4584
SELECT + COUNT( * ) * 89
----
89

skipif mysql # not compatible
query I rowsort label-4584
SELECT + COUNT ( * ) * 89
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4585
SELECT - MAX( 0 )
----
0

skipif mysql # not compatible
query I rowsort label-4585
SELECT - MAX ( 0 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4586
SELECT DISTINCT 74 DIV - - 87 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4586
SELECT DISTINCT 74 / - - 87 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4587
SELECT - NULLIF ( - COUNT( * ), 58 )
----
1

skipif mysql # not compatible
query I rowsort label-4587
SELECT - NULLIF ( - COUNT ( * ), 58 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4588
SELECT + MAX( ALL + + 65 ) * 72 AS col2
----
4680

skipif mysql # not compatible
query I rowsort label-4588
SELECT + MAX ( ALL + + 65 ) * 72 AS col2
----
4680

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4589
SELECT DISTINCT + 42 * + 78 * CASE + 99 WHEN 67 THEN NULL WHEN 6 * - + 40 + + 12 * 19 THEN - - 5 ELSE NULL END, NULLIF ( - + CAST( NULL AS SIGNED ), 4 + - - 88 * + CAST( NULL AS DECIMAL ) ) AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4589
SELECT DISTINCT + 42 * + 78 * CASE + 99 WHEN 67 THEN NULL WHEN 6 * - + 40 + + 12 * 19 THEN - - 5 ELSE NULL END, NULLIF ( - + CAST ( NULL AS INTEGER ), 4 + - - 88 * + CAST ( NULL AS REAL ) ) AS col0
----
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4590
SELECT DISTINCT CAST( NULL AS DECIMAL ) + - 91
----
NULL

skipif mysql # not compatible
query I rowsort label-4590
SELECT DISTINCT CAST ( NULL AS REAL ) + - 91
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4591
SELECT + MAX( - + 59 ) * - - 2 * 4 * + ( - 74 )
----
34928

skipif mysql # not compatible
query I rowsort label-4591
SELECT + MAX ( - + 59 ) * - - 2 * 4 * + ( - 74 )
----
34928

onlyif mysql # aggregate syntax: 
query I rowsort label-4592
SELECT ALL + 14 * 66 * + COUNT( * ) AS col1
----
924

skipif mysql # not compatible
query I rowsort label-4592
SELECT ALL + 14 * 66 * + COUNT ( * ) AS col1
----
924

query I rowsort
SELECT + - 34 - 34
----
-68

onlyif mysql # aggregate syntax: 
query II rowsort label-4594
SELECT ALL + 36 AS col2, COUNT( * ) AS col1
----
36
1

skipif mysql # not compatible
query II rowsort label-4594
SELECT ALL + 36 AS col2, COUNT ( * ) AS col1
----
36
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4595
SELECT + + MAX( + 19 ) - + + ( 1 ) AS col1
----
18

skipif mysql # not compatible
query I rowsort label-4595
SELECT + + MAX ( + 19 ) - + + ( 1 ) AS col1
----
18

query I rowsort
SELECT - - 53 * 16 AS col1
----
848

query II rowsort
SELECT - 24, 26 + + 82 + - 16 + - 5 * - - 34 * + 45 AS col2
----
-24
-7558

query I rowsort
SELECT ALL NULLIF ( - - 2, + 20 ) AS col1
----
2

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4599
SELECT 43 / - 46 * - - CASE + - 62 WHEN - CAST( COUNT( * ) AS DECIMAL ) - - 49 THEN NULL WHEN + 43 * 91 THEN + 96 WHEN - + 34 * 65 * - 66 THEN + + 25 END + - 78 - - 25
----
NULL

skipif mysql # not compatible
query I rowsort label-4599
SELECT 43 / - 46 * - - CASE + - 62 WHEN - CAST ( COUNT ( * ) AS REAL ) - - 49 THEN NULL WHEN + 43 * 91 THEN + 96 WHEN - + 34 * 65 * - 66 THEN + + 25 END + - 78 - - 25
----
NULL

query I rowsort
SELECT DISTINCT + + ( - 3 ) * 40 - + 37 + 60 + + CASE + - 54 WHEN + - 69 THEN + 15 END * - 68 * - 59 * 54
----
NULL

query I rowsort
SELECT + + 57 * + 59 - + 63
----
3300

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4602
SELECT - 17 DIV - CAST( + COUNT( * ) AS SIGNED ) + + NULLIF ( + 89, COUNT( * ) * + ( - COUNT( * ) ) - NULLIF ( 32, + - 49 ) ) DIV - 25 + 17 * + COUNT( - ( + + 32 ) ) + 1 AS col2
----
32

skipif mysql # not compatible
query I rowsort label-4602
SELECT - 17 / - CAST ( + COUNT ( * ) AS INTEGER ) + + NULLIF ( + 89, COUNT ( * ) * + ( - COUNT ( * ) ) - NULLIF ( 32, + - 49 ) ) / - 25 + 17 * + COUNT ( - ( + + 32 ) ) + 1 AS col2
----
32

query II rowsort
SELECT + 81, 80 AS col0
----
81
80

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4604
SELECT ALL + CAST( 24 AS SIGNED ), 95 + 2 AS col1
----
24
97

skipif mysql # not compatible
query II rowsort label-4604
SELECT ALL + CAST ( 24 AS INTEGER ), 95 + 2 AS col1
----
24
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4605
SELECT - 29 DIV 26 DIV + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-4605
SELECT - 29 / 26 / + COUNT ( * )
----
-1

query I rowsort
SELECT NULLIF ( 40, ( + 77 ) )
----
40

query I rowsort
SELECT - 75 * + + 67 AS col0
----
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-4608
SELECT 45 * + + MAX( + 83 ) - - - 30
----
3705

skipif mysql # not compatible
query I rowsort label-4608
SELECT 45 * + + MAX ( + 83 ) - - - 30
----
3705

onlyif mysql # DIV for integer division: 
query I rowsort label-4609
SELECT COALESCE ( + + 25, + 3 DIV - 46 )
----
25

skipif mysql # not compatible
query I rowsort label-4609
SELECT COALESCE ( + + 25, + 3 / - 46 )
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4610
SELECT + MIN( DISTINCT - - 78 )
----
78

skipif mysql # not compatible
query I rowsort label-4610
SELECT + MIN ( DISTINCT - - 78 )
----
78

query II rowsort
SELECT - 69 - + 46, - 86 AS col0
----
-115
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-4612
SELECT + 34 DIV + 97 * - 8
----
0

skipif mysql # not compatible
query I rowsort label-4612
SELECT + 34 / + 97 * - 8
----
0

query I rowsort
SELECT ALL - NULLIF ( + ( 68 ), 32 ) * + 31 AS col2
----
-2108

onlyif mysql # aggregate syntax: 
query I rowsort label-4614
SELECT DISTINCT COUNT( 45 ) * - 89 + 9 AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-4614
SELECT DISTINCT COUNT ( 45 ) * - 89 + 9 AS col1
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-4615
SELECT 82 * - + 51 * + 5 - 36 - - + COUNT( * )
----
-20945

skipif mysql # not compatible
query I rowsort label-4615
SELECT 82 * - + 51 * + 5 - 36 - - + COUNT ( * )
----
-20945

onlyif mysql # DIV for integer division: 
query I rowsort label-4616
SELECT - 62 + + 46 * 91 DIV - 12
----
-410

skipif mysql # not compatible
query I rowsort label-4616
SELECT - 62 + + 46 * 91 / - 12
----
-410

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4617
SELECT + 68 + - + 17 + + 10 * - 12 * - ( - ( + MAX( - 60 ) ) ) + + - 68 + - 12 + - - CAST( NULL AS SIGNED ) * - 44
----
NULL

skipif mysql # not compatible
query I rowsort label-4617
SELECT + 68 + - + 17 + + 10 * - 12 * - ( - ( + MAX ( - 60 ) ) ) + + - 68 + - 12 + - - CAST ( NULL AS INTEGER ) * - 44
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4618
SELECT + CAST( NULL AS DECIMAL ) + + 18 - + 85 * - + 21 + - 16 * 7 * + 85 * - CASE + - 43 WHEN + COUNT( * ) * - 54 THEN - 72 WHEN - - 17 + - - 23 * - + 91 * + + 49 THEN NULL WHEN 74 + 26 + 7 * + 65 * + 74 * + + CAST( 48 AS SIGNED ) * - 79 + + 42 * - 25 THEN + CASE - 24 WHEN - + 33 + + 76 THEN + 58 WHEN - 69 THEN - 49 / + - 16 + + 22 + - ( - 95 ) + + 71 * - 13 END END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4618
SELECT + CAST ( NULL AS REAL ) + + 18 - + 85 * - + 21 + - 16 * 7 * + 85 * - CASE + - 43 WHEN + COUNT ( * ) * - 54 THEN - 72 WHEN - - 17 + - - 23 * - + 91 * + + 49 THEN NULL WHEN 74 + 26 + 7 * + 65 * + 74 * + + CAST ( 48 AS INTEGER ) * - 79 + + 42 * - 25 THEN + CASE - 24 WHEN - + 33 + + 76 THEN + 58 WHEN - 69 THEN - 49 / + - 16 + + 22 + - ( - 95 ) + + 71 * - 13 END END AS col2
----
NULL

query II rowsort
SELECT - + 61 AS col2, - 50 AS col1
----
-61
-50

query I rowsort
SELECT ALL - 94 + + 20 AS col1
----
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4621
SELECT + 92 - - - COUNT( * ) DIV - 56
----
92

skipif mysql # not compatible
query I rowsort label-4621
SELECT + 92 - - - COUNT ( * ) / - 56
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-4622
SELECT ALL 75 DIV 48
----
1

skipif mysql # not compatible
query I rowsort label-4622
SELECT ALL 75 / 48
----
1

query I rowsort
SELECT DISTINCT + 86 + + 75 * 91
----
6911

query I rowsort
SELECT DISTINCT 24 + + 25 * - 21
----
-501

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4625
SELECT ALL COUNT( * ) AS col2, + 16 DIV + COALESCE ( + ( + + 8 ), - 79 * 59 + - + SUM( DISTINCT - 22 ) )
----
1
2

skipif mysql # not compatible
query II rowsort label-4625
SELECT ALL COUNT ( * ) AS col2, + 16 / + COALESCE ( + ( + + 8 ), - 79 * 59 + - + SUM ( DISTINCT - 22 ) )
----
1
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4626
SELECT ALL - 53 + - COUNT( * ) AS col1, 17 DIV - + 57 + ( 58 ) AS col0
----
-54
58

skipif mysql # not compatible
query II rowsort label-4626
SELECT ALL - 53 + - COUNT ( * ) AS col1, 17 / - + 57 + ( 58 ) AS col0
----
-54
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4627
SELECT ALL - COUNT( * ) * + 24 * - 53 * 46 AS col0
----
58512

skipif mysql # not compatible
query I rowsort label-4627
SELECT ALL - COUNT ( * ) * + 24 * - 53 * 46 AS col0
----
58512

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4628
SELECT + CAST( + - 82 AS SIGNED ) AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-4628
SELECT + CAST ( + - 82 AS INTEGER ) AS col1
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-4629
SELECT ALL 64 * + COUNT( ALL - 42 )
----
64

skipif mysql # not compatible
query I rowsort label-4629
SELECT ALL 64 * + COUNT ( ALL - 42 )
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4630
SELECT ALL - CASE 60 WHEN 87 * + ( - - 80 ) - + + 98 / - 2 * - ( + MAX( - - 1 ) ) THEN COALESCE ( - 14, 33, 78 * + CAST( NULL AS SIGNED ) + 96 ) END - + 91
----
NULL

skipif mysql # not compatible
query I rowsort label-4630
SELECT ALL - CASE 60 WHEN 87 * + ( - - 80 ) - + + 98 / - 2 * - ( + MAX ( - - 1 ) ) THEN COALESCE ( - 14, 33, 78 * + CAST ( NULL AS INTEGER ) + 96 ) END - + 91
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4631
SELECT + 39 DIV - - 94 * - - 61 col1
----
0

skipif mysql # not compatible
query I rowsort label-4631
SELECT + 39 / - - 94 * - - 61 col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4632
SELECT - COUNT( * ) * - MAX( ALL + 69 ) * 95 + - - CAST( NULL AS SIGNED ) - COUNT( * ) * + - AVG ( + - 51 ) * + 91 / - + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-4632
SELECT - COUNT ( * ) * - MAX ( ALL + 69 ) * 95 + - - CAST ( NULL AS INTEGER ) - COUNT ( * ) * + - AVG ( + - 51 ) * + 91 / - + 89
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4633
SELECT + COUNT( * ) + + - COALESCE ( - CASE 3 WHEN - + 26 THEN + 70 END, + - ( - 60 ) + - + 36, - + COUNT( * ) ) * - ( - 90 )
----
-2159

skipif mysql # not compatible
query I rowsort label-4633
SELECT + COUNT ( * ) + + - COALESCE ( - CASE 3 WHEN - + 26 THEN + 70 END, + - ( - 60 ) + - + 36, - + COUNT ( * ) ) * - ( - 90 )
----
-2159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4634
SELECT DISTINCT - 48 * - - CAST( NULL AS SIGNED ) * 1
----
NULL

skipif mysql # not compatible
query I rowsort label-4634
SELECT DISTINCT - 48 * - - CAST ( NULL AS INTEGER ) * 1
----
NULL

query I rowsort
SELECT ALL - 90 * + 1
----
-90

query I rowsort
SELECT ALL - - ( 20 )
----
20

query III rowsort
SELECT DISTINCT - 7, 53 AS col2, - - 98 + - 23 col0
----
-7
53
75

onlyif mysql # aggregate syntax: 
query II rowsort label-4638
SELECT ALL - ( - COUNT( * ) ) col1, + 30 + - + NULLIF ( 41, - + NULLIF ( 66, - + 23 ) )
----
1
-11

skipif mysql # not compatible
query II rowsort label-4638
SELECT ALL - ( - COUNT ( * ) ) col1, + 30 + - + NULLIF ( 41, - + NULLIF ( 66, - + 23 ) )
----
1
-11

query I rowsort
SELECT DISTINCT + 77 * - 62
----
-4774

onlyif mysql # aggregate syntax: 
query I rowsort label-4640
SELECT DISTINCT - MAX( - + 88 ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-4640
SELECT DISTINCT - MAX ( - + 88 ) AS col1
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4641
SELECT CAST( NULL AS SIGNED ) * + 42, - MIN( + 33 ) AS col0
----
NULL
-33

skipif mysql # not compatible
query II rowsort label-4641
SELECT CAST ( NULL AS INTEGER ) * + 42, - MIN ( + 33 ) AS col0
----
NULL
-33

query II rowsort
SELECT 47 + 98 AS col0, 53 + ( - 91 )
----
145
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4643
SELECT 50 * 49 * + CAST( NULL AS SIGNED ) / - CASE 29 WHEN - - 10 THEN 93 ELSE NULL END + + 74 + CASE - 1 WHEN - 46 THEN NULL WHEN + + 73 THEN - 95 ELSE + - 88 * - + 7 * 1 END * 0 + + 67 - - COUNT( * ) * - 83 * + 2 + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4643
SELECT 50 * 49 * + CAST ( NULL AS INTEGER ) / - CASE 29 WHEN - - 10 THEN 93 ELSE NULL END + + 74 + CASE - 1 WHEN - 46 THEN NULL WHEN + + 73 THEN - 95 ELSE + - 88 * - + 7 * 1 END * 0 + + 67 - - COUNT ( * ) * - 83 * + 2 + + COUNT ( * )
----
NULL

query I rowsort
SELECT + 51 * + 2 + - + 8
----
94

onlyif mysql # aggregate syntax: 
query II rowsort label-4645
SELECT ALL - 59 * 73 AS col1, MAX( - 71 )
----
-4307
-71

skipif mysql # not compatible
query II rowsort label-4645
SELECT ALL - 59 * 73 AS col1, MAX ( - 71 )
----
-4307
-71

query I rowsort
SELECT ALL - COALESCE ( + 20, - 31 )
----
-20

query I rowsort
SELECT ALL + 87 + 84 * - 57 AS col2
----
-4701

query I rowsort
SELECT 53 + + AVG ( ALL + CASE - - 34 WHEN 55 THEN + 71 END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4649
SELECT DISTINCT - MAX( 12 ) AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-4649
SELECT DISTINCT - MAX ( 12 ) AS col1
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4650
SELECT ( - + COALESCE ( + + 56, - - 9 + + COUNT( + 2 ) ) ) * 5 + + - 44 * + + 95
----
-4460

skipif mysql # not compatible
query I rowsort label-4650
SELECT ( - + COALESCE ( + + 56, - - 9 + + COUNT ( + 2 ) ) ) * 5 + + - 44 * + + 95
----
-4460

query I rowsort
SELECT DISTINCT - 42 + - COALESCE ( - 45, - + 88 ) AS col1
----
3

query I rowsort
SELECT DISTINCT - ( 15 ) AS col1
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4653
SELECT ALL - 24 + - CASE + 5 WHEN - - 74 * NULLIF ( + 63, - + 27 ) / + 97 - + - ( ( - 42 ) ) / - - 41 * 83 / - - SUM( DISTINCT - 46 ) * 14 + - 60 + + - 97 THEN - + 3 - + CAST( - + 6 AS SIGNED ) + - 1 + - 95 * + 41 WHEN - ( - 84 ) * - 2 * - 5 * - 89 THEN COALESCE ( 4, + COUNT( * ), - 29 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4653
SELECT ALL - 24 + - CASE + 5 WHEN - - 74 * NULLIF ( + 63, - + 27 ) / + 97 - + - ( ( - 42 ) ) / - - 41 * 83 / - - SUM ( DISTINCT - 46 ) * 14 + - 60 + + - 97 THEN - + 3 - + CAST ( - + 6 AS INTEGER ) + - 1 + - 95 * + 41 WHEN - ( - 84 ) * - 2 * - 5 * - 89 THEN COALESCE ( 4, + COUNT ( * ), - 29 ) END
----
NULL

query II rowsort
SELECT 88 * + - 61, 69 - - 45 AS col2
----
-5368
114

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4655
SELECT 32 * 60 * - 51, + CAST( NULL AS SIGNED ) AS col1
----
-97920
NULL

skipif mysql # not compatible
query II rowsort label-4655
SELECT 32 * 60 * - 51, + CAST ( NULL AS INTEGER ) AS col1
----
-97920
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4656
SELECT - 76 + + COALESCE ( 47, - - 0 ) + - - COUNT( * ) AS col1, 4 AS col1
----
-28
4

skipif mysql # not compatible
query II rowsort label-4656
SELECT - 76 + + COALESCE ( 47, - - 0 ) + - - COUNT ( * ) AS col1, 4 AS col1
----
-28
4

query I rowsort
SELECT ALL - 48 * - 99 col1
----
4752

onlyif mysql # aggregate syntax: 
query I rowsort label-4658
SELECT ALL - - MAX( DISTINCT + + 93 ) + - - MAX( COALESCE ( + 84, + 12, - 83 ) ) / + + CASE + 60 WHEN + + 24 * - 34 * + 18 THEN 6 * - 51 WHEN - 12 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4658
SELECT ALL - - MAX ( DISTINCT + + 93 ) + - - MAX ( COALESCE ( + 84, + 12, - 83 ) ) / + + CASE + 60 WHEN + + 24 * - 34 * + 18 THEN 6 * - 51 WHEN - 12 THEN NULL END AS col0
----
NULL

query I rowsort
SELECT + NULLIF ( 24, - 43 * - 82 * + - 33 + - - 17 ) AS col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4660
SELECT + 43 * + COUNT( - 89 )
----
43

skipif mysql # not compatible
query I rowsort label-4660
SELECT + 43 * + COUNT ( - 89 )
----
43

query I rowsort
SELECT ALL - 46 * 92 * - ( - 4 ) AS col1
----
-16928

onlyif mysql # DIV for integer division: 
query I rowsort label-4662
SELECT DISTINCT ( - 46 ) - + + 9 - + 54 DIV NULLIF ( - - 41, - 76 ) * 89
----
-144

skipif mysql # not compatible
query I rowsort label-4662
SELECT DISTINCT ( - 46 ) - + + 9 - + 54 / NULLIF ( - - 41, - 76 ) * 89
----
-144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4663
SELECT + 0 + - CASE + SUM( DISTINCT + 57 ) WHEN - - COUNT( * ) + + COUNT( * ) * - + 23 THEN - + 52 + MIN( ALL - 1 ) + - - ( 24 ) WHEN + 90 * ( 47 ) - + 19 THEN NULL ELSE COUNT( * ) END + - COALESCE ( - + 29, + COUNT( * ) * + 22 * + 70 + - - COUNT( * ) * + 53 * + + 11 + + - 64, - CAST( NULL AS SIGNED ), + 12 )
----
28

skipif mysql # not compatible
query I rowsort label-4663
SELECT + 0 + - CASE + SUM ( DISTINCT + 57 ) WHEN - - COUNT ( * ) + + COUNT ( * ) * - + 23 THEN - + 52 + MIN ( ALL - 1 ) + - - ( 24 ) WHEN + 90 * ( 47 ) - + 19 THEN NULL ELSE COUNT ( * ) END + - COALESCE ( - + 29, + COUNT ( * ) * + 22 * + 70 + - - COUNT ( * ) * + 53 * + + 11 + + - 64, - CAST ( NULL AS INTEGER ), + 12 )
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4664
SELECT - 36 - - - 29 * - COUNT( * ) - - + 30 + 41
----
64

skipif mysql # not compatible
query I rowsort label-4664
SELECT - 36 - - - 29 * - COUNT ( * ) - - + 30 + 41
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4665
SELECT - 50 + - + 92 * + COUNT( * )
----
-142

skipif mysql # not compatible
query I rowsort label-4665
SELECT - 50 + - + 92 * + COUNT ( * )
----
-142

onlyif mysql # aggregate syntax: 
query I rowsort label-4666
SELECT ALL + CASE - 6 WHEN 86 * SUM( ALL - - 15 ) THEN NULL ELSE - 98 END
----
-98

skipif mysql # not compatible
query I rowsort label-4666
SELECT ALL + CASE - 6 WHEN 86 * SUM ( ALL - - 15 ) THEN NULL ELSE - 98 END
----
-98

query II rowsort
SELECT ALL + 80 * - 95, + 92 AS col0
----
-7600
92

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4668
SELECT CAST( - 68 AS SIGNED ) DIV 95 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4668
SELECT CAST ( - 68 AS INTEGER ) / 95 AS col2
----
0

query II rowsort
SELECT ALL - 73 AS col2, - 21 AS col1
----
-73
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-4670
SELECT 12 / - CASE - COUNT( * ) WHEN + 13 THEN COUNT( * ) / + NULLIF ( + 40, - 83 ) + + 72 + + - 35 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4670
SELECT 12 / - CASE - COUNT ( * ) WHEN + 13 THEN COUNT ( * ) / + NULLIF ( + 40, - 83 ) + + 72 + + - 35 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4671
SELECT COUNT( * ) DIV + CAST( + - ( + COUNT( * ) ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-4671
SELECT COUNT ( * ) / + CAST ( + - ( + COUNT ( * ) ) AS INTEGER )
----
-1

query I rowsort
SELECT 18 * - + 12
----
-216

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4673
SELECT DISTINCT - 89 AS col2, + CAST( NULL AS SIGNED ) * 68
----
-89
NULL

skipif mysql # not compatible
query II rowsort label-4673
SELECT DISTINCT - 89 AS col2, + CAST ( NULL AS INTEGER ) * 68
----
-89
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4674
SELECT COUNT( * ) DIV - ( - 74 )
----
0

skipif mysql # not compatible
query I rowsort label-4674
SELECT COUNT ( * ) / - ( - 74 )
----
0

query II rowsort
SELECT DISTINCT 87 + - 44 + - 7 AS col0, - 43
----
36
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-4676
SELECT ALL - 55 + - COUNT( * ) + - COUNT( * ) + 69 AS col2
----
12

skipif mysql # not compatible
query I rowsort label-4676
SELECT ALL - 55 + - COUNT ( * ) + - COUNT ( * ) + 69 AS col2
----
12

query I rowsort
SELECT DISTINCT + 0 + 61 AS col0
----
61

query I rowsort
SELECT 28 * 66 + 7 + - 82
----
1773

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4679
SELECT COUNT( * ) * + + 35 / + CAST( NULL AS SIGNED ) - - 57 / COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4679
SELECT COUNT ( * ) * + + 35 / + CAST ( NULL AS INTEGER ) - - 57 / COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4680
SELECT ALL 50 + COUNT( * ) * + + ( + 57 )
----
107

skipif mysql # not compatible
query I rowsort label-4680
SELECT ALL 50 + COUNT ( * ) * + + ( + 57 )
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-4681
SELECT ( + + ( + 15 ) ) + - 61 + - COUNT( * ) + - + 37
----
-84

skipif mysql # not compatible
query I rowsort label-4681
SELECT ( + + ( + 15 ) ) + - 61 + - COUNT ( * ) + - + 37
----
-84

query II rowsort
SELECT 62 + + ( - 73 ) AS col1, 11
----
-11
11

query I rowsort
SELECT 98 * - 76
----
-7448

onlyif mysql # aggregate syntax: 
query I rowsort label-4684
SELECT ALL - NULLIF ( - + CASE 6 WHEN + 77 THEN - 32 ELSE NULL END, - MAX( + 65 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4684
SELECT ALL - NULLIF ( - + CASE 6 WHEN + 77 THEN - 32 ELSE NULL END, - MAX ( + 65 ) ) AS col2
----
NULL

query I rowsort
SELECT + 70 * ( 68 ) + 97 + - 47
----
4810

query I rowsort
SELECT DISTINCT - 8 * - - 17
----
-136

onlyif mysql # aggregate syntax: 
query I rowsort label-4687
SELECT ALL - + NULLIF ( 48, - ( SUM( - ( + 11 ) ) ) ) - - + 90
----
42

skipif mysql # not compatible
query I rowsort label-4687
SELECT ALL - + NULLIF ( 48, - ( SUM ( - ( + 11 ) ) ) ) - - + 90
----
42

query I rowsort
SELECT - 11 * + 43 - 68
----
-541

query I rowsort
SELECT ALL 97 * - - 86 + 32
----
8374

query II rowsort
SELECT - 82 AS col1, 97 AS col0
----
-82
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4691
SELECT ALL + 25 - + CAST( + COALESCE ( - CAST( 24 AS SIGNED ), - + 38 * + - 68 + CAST( - 38 AS SIGNED ), - 82, + ( - COUNT( * ) ) * 51 + 80 * 15 ) AS SIGNED )
----
49

skipif mysql # not compatible
query I rowsort label-4691
SELECT ALL + 25 - + CAST ( + COALESCE ( - CAST ( 24 AS INTEGER ), - + 38 * + - 68 + CAST ( - 38 AS INTEGER ), - 82, + ( - COUNT ( * ) ) * 51 + 80 * 15 ) AS INTEGER )
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-4692
SELECT + 94 DIV - 12
----
-7

skipif mysql # not compatible
query I rowsort label-4692
SELECT + 94 / - 12
----
-7

query I rowsort
SELECT 46 * - - 30
----
1380

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4694
SELECT + COUNT( * ) + CAST( - 78 AS SIGNED )
----
-77

skipif mysql # not compatible
query I rowsort label-4694
SELECT + COUNT ( * ) + CAST ( - 78 AS INTEGER )
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4695
SELECT - COUNT( ALL - 23 )
----
-1

skipif mysql # not compatible
query I rowsort label-4695
SELECT - COUNT ( ALL - 23 )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4696
SELECT - - 70 + COALESCE ( - + 35, - COUNT( * ) ) AS col2, MAX( + 21 ) AS col1
----
35
21

skipif mysql # not compatible
query II rowsort label-4696
SELECT - - 70 + COALESCE ( - + 35, - COUNT ( * ) ) AS col2, MAX ( + 21 ) AS col1
----
35
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4697
SELECT - - MAX( ALL + + 6 ) - - COUNT( * ) + - - 43 + - MAX( + - 86 ) + SUM( ALL + 3 ) * - - 94
----
418

skipif mysql # not compatible
query I rowsort label-4697
SELECT - - MAX ( ALL + + 6 ) - - COUNT ( * ) + - - 43 + - MAX ( + - 86 ) + SUM ( ALL + 3 ) * - - 94
----
418

query I rowsort
SELECT - 30 * - 32 AS col0
----
960

query I rowsort
SELECT - + 95 + + 75 AS col2
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-4700
SELECT DISTINCT + - 85 DIV 70
----
-1

skipif mysql # not compatible
query I rowsort label-4700
SELECT DISTINCT + - 85 / 70
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4701
SELECT DISTINCT - CASE CAST( - 0 AS DECIMAL ) WHEN 13 THEN + - 6 WHEN - 95 * - 8 + + + CASE - + 18 WHEN - 91 THEN ( 72 ) END THEN NULL ELSE NULL END * - ( - 21 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4701
SELECT DISTINCT - CASE CAST ( - 0 AS REAL ) WHEN 13 THEN + - 6 WHEN - 95 * - 8 + + + CASE - + 18 WHEN - 91 THEN ( 72 ) END THEN NULL ELSE NULL END * - ( - 21 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4702
SELECT DISTINCT + CAST( + COUNT( * ) AS SIGNED ) * - + 57 col0
----
-57

skipif mysql # not compatible
query I rowsort label-4702
SELECT DISTINCT + CAST ( + COUNT ( * ) AS INTEGER ) * - + 57 col0
----
-57

query I rowsort
SELECT DISTINCT - + 72 * 38 AS col1
----
-2736

onlyif mysql # aggregate syntax: 
query II rowsort label-4704
SELECT - 70 + ( + - 53 ) AS col2, 73 * 26 * - COUNT( * ) * + ( 66 ) + + - MIN( DISTINCT + + 98 ) AS col1
----
-123
-125366

skipif mysql # not compatible
query II rowsort label-4704
SELECT - 70 + ( + - 53 ) AS col2, 73 * 26 * - COUNT ( * ) * + ( 66 ) + + - MIN ( DISTINCT + + 98 ) AS col1
----
-123
-125366

onlyif mysql # DIV for integer division: 
query I rowsort label-4705
SELECT - 10 * 54 DIV 17
----
-31

skipif mysql # not compatible
query I rowsort label-4705
SELECT - 10 * 54 / 17
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4706
SELECT - - CAST( NULL AS SIGNED ) * + 30
----
NULL

skipif mysql # not compatible
query I rowsort label-4706
SELECT - - CAST ( NULL AS INTEGER ) * + 30
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4707
SELECT ALL - 7 + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4707
SELECT ALL - 7 + - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4708
SELECT - 70 + - 71 DIV - + 79 AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-4708
SELECT - 70 + - 71 / - + 79 AS col0
----
-70

query I rowsort
SELECT - 46 + + + 79
----
33

query I rowsort
SELECT + 52 * - 62
----
-3224

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4711
SELECT ALL COUNT( * ) * - 61 + - - 68 - - 92 DIV 59 AS col2
----
8

skipif mysql # not compatible
query I rowsort label-4711
SELECT ALL COUNT ( * ) * - 61 + - - 68 - - 92 / 59 AS col2
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-4712
SELECT + MIN( DISTINCT - 63 ), - COALESCE ( + 76, + + MIN( DISTINCT + - 31 ) ) AS col2
----
-63
-76

skipif mysql # not compatible
query II rowsort label-4712
SELECT + MIN ( DISTINCT - 63 ), - COALESCE ( + 76, + + MIN ( DISTINCT + - 31 ) ) AS col2
----
-63
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-4713
SELECT ALL 30 * + 0 * + 87 DIV - 87 + 50 + 59
----
109

skipif mysql # not compatible
query I rowsort label-4713
SELECT ALL 30 * + 0 * + 87 / - 87 + 50 + 59
----
109

query I rowsort
SELECT + 42 * + 14 + + 25 col0
----
613

onlyif mysql # aggregate syntax: 
query I rowsort label-4715
SELECT DISTINCT + CASE SUM( + 23 ) WHEN 20 * + COUNT( * ) / - - 10 * + - 33 THEN NULL WHEN + 0 + - 65 + - 46 + 67 * + 58 - CASE + 81 WHEN - 65 / + - 91 THEN NULL WHEN - 81 THEN 38 * COUNT( + 70 ) END + 25 * 41 + + 55 * + 82 THEN NULL ELSE - + 8 END
----
-8

skipif mysql # not compatible
query I rowsort label-4715
SELECT DISTINCT + CASE SUM ( + 23 ) WHEN 20 * + COUNT ( * ) / - - 10 * + - 33 THEN NULL WHEN + 0 + - 65 + - 46 + 67 * + 58 - CASE + 81 WHEN - 65 / + - 91 THEN NULL WHEN - 81 THEN 38 * COUNT ( + 70 ) END + 25 * 41 + + 55 * + 82 THEN NULL ELSE - + 8 END
----
-8

query I rowsort
SELECT DISTINCT 28 * - 39
----
-1092

onlyif mysql # aggregate syntax: 
query I rowsort label-4717
SELECT DISTINCT - COUNT( * ) * + + 22 + + COUNT( * )
----
-21

skipif mysql # not compatible
query I rowsort label-4717
SELECT DISTINCT - COUNT ( * ) * + + 22 + + COUNT ( * )
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-4718
SELECT COALESCE ( 18, 72 * - COUNT( * ) + - + 53 )
----
18

skipif mysql # not compatible
query I rowsort label-4718
SELECT COALESCE ( 18, 72 * - COUNT ( * ) + - + 53 )
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-4719
SELECT + CASE - 22 WHEN - + 26 THEN AVG ( ALL - + ( + 91 ) ) WHEN + MAX( ALL + NULLIF ( 6, 70 * ( 92 ) * + - 42 ) ) THEN NULL ELSE NULL END + 3 col0, + 44 + + 37
----
NULL
81

skipif mysql # not compatible
query II rowsort label-4719
SELECT + CASE - 22 WHEN - + 26 THEN AVG ( ALL - + ( + 91 ) ) WHEN + MAX ( ALL + NULLIF ( 6, 70 * ( 92 ) * + - 42 ) ) THEN NULL ELSE NULL END + 3 col0, + 44 + + 37
----
NULL
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4720
SELECT - COUNT( ALL + ( + 95 ) ) * - 75 * - CAST( NULL AS SIGNED ) * - 25 * 13 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4720
SELECT - COUNT ( ALL + ( + 95 ) ) * - 75 * - CAST ( NULL AS INTEGER ) * - 25 * 13 AS col1
----
NULL

query I rowsort
SELECT DISTINCT 42 * + + 87 + ( + 37 ) AS col1
----
3691

onlyif mysql # aggregate syntax: 
query I rowsort label-4722
SELECT + COUNT( * ) * + COUNT( * ) * COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4722
SELECT + COUNT ( * ) * + COUNT ( * ) * COUNT ( * ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4723
SELECT + ( 9 ) * + - 51 + - 7 + + - 68 * - COUNT( * )
----
-398

skipif mysql # not compatible
query I rowsort label-4723
SELECT + ( 9 ) * + - 51 + - 7 + + - 68 * - COUNT ( * )
----
-398

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4724
SELECT + 4 * 92 * + 12 + + 18 DIV - MAX( DISTINCT - - ( - NULLIF ( + 2, 12 * - - 35 ) ) ) AS col0
----
4425

skipif mysql # not compatible
query I rowsort label-4724
SELECT + 4 * 92 * + 12 + + 18 / - MAX ( DISTINCT - - ( - NULLIF ( + 2, 12 * - - 35 ) ) ) AS col0
----
4425

onlyif mysql # aggregate syntax: 
query I rowsort label-4725
SELECT ALL 22 * - 21 * 66 - 71 + - SUM( - + 82 ) * - + 79 AS col2
----
-37041

skipif mysql # not compatible
query I rowsort label-4725
SELECT ALL 22 * - 21 * 66 - 71 + - SUM ( - + 82 ) * - + 79 AS col2
----
-37041

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4726
SELECT + NULLIF ( + COUNT( * ), - COUNT( * ) * - COUNT( * ) - - COUNT( * ) ) + - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4726
SELECT + NULLIF ( + COUNT ( * ), - COUNT ( * ) * - COUNT ( * ) - - COUNT ( * ) ) + - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + + ( 91 ) AS col1
----
91

query I rowsort
SELECT + - 24 * + - 62 * 41
----
61008

query I rowsort
SELECT ALL 31 * + + 10 * - 77 AS col2
----
-23870

onlyif mysql # aggregate syntax: 
query I rowsort label-4730
SELECT DISTINCT + COUNT( * ) * 76 * - 89 * - - MIN( DISTINCT - 22 )
----
148808

skipif mysql # not compatible
query I rowsort label-4730
SELECT DISTINCT + COUNT ( * ) * 76 * - 89 * - - MIN ( DISTINCT - 22 )
----
148808

query I rowsort
SELECT + - 24 * + COALESCE ( 28, 52 * + - 51 )
----
-672

onlyif mysql # aggregate syntax: 
query I rowsort label-4732
SELECT ALL + COALESCE ( - 35, + 60 ) * + MIN( DISTINCT - 77 )
----
2695

skipif mysql # not compatible
query I rowsort label-4732
SELECT ALL + COALESCE ( - 35, + 60 ) * + MIN ( DISTINCT - 77 )
----
2695

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4733
SELECT + 27 DIV 80 DIV MAX( 97 ) - + SUM( ALL - 28 ) + - 8 AS col0, COALESCE ( 76, - 24 * + + COUNT( * ) + + + 8 + + 86 + + CAST( + 45 AS SIGNED ) ) * + MAX( ALL 23 ) AS col1
----
20
1748

skipif mysql # not compatible
query II rowsort label-4733
SELECT + 27 / 80 / MAX ( 97 ) - + SUM ( ALL - 28 ) + - 8 AS col0, COALESCE ( 76, - 24 * + + COUNT ( * ) + + + 8 + + 86 + + CAST ( + 45 AS INTEGER ) ) * + MAX ( ALL 23 ) AS col1
----
20
1748

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4734
SELECT ALL CASE 59 WHEN - 45 * + 21 + 36 THEN 6 WHEN - + CAST( NULL AS SIGNED ) THEN 11 * + MIN( ALL ( 28 ) ) END * + 60 / - + 70 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4734
SELECT ALL CASE 59 WHEN - 45 * + 21 + 36 THEN 6 WHEN - + CAST ( NULL AS INTEGER ) THEN 11 * + MIN ( ALL ( 28 ) ) END * + 60 / - + 70 AS col0
----
NULL

query I rowsort
SELECT NULLIF ( - 87, + 14 )
----
-87

query I rowsort
SELECT DISTINCT + 11 + + 15 AS col0
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4737
SELECT - + COUNT( * ) + - 43 DIV - 2 AS col1
----
20

skipif mysql # not compatible
query I rowsort label-4737
SELECT - + COUNT ( * ) + - 43 / - 2 AS col1
----
20

query I rowsort
SELECT DISTINCT + 36 + + - 41
----
-5

query I rowsort
SELECT ALL - 78 + - 23 - - 97 AS col2
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-4740
SELECT MAX( ALL 11 )
----
11

skipif mysql # not compatible
query I rowsort label-4740
SELECT MAX ( ALL 11 )
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-4741
SELECT ALL + ( - - 22 ) DIV - 75
----
0

skipif mysql # not compatible
query I rowsort label-4741
SELECT ALL + ( - - 22 ) / - 75
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4742
SELECT - 47 DIV - + ( + 78 )
----
0

skipif mysql # not compatible
query I rowsort label-4742
SELECT - 47 / - + ( + 78 )
----
0

query I rowsort
SELECT - 5 + 84 AS col2
----
79

query I rowsort
SELECT ALL 11 + - 61 AS col0
----
-50

query I rowsort
SELECT ALL + 0 * 13
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4746
SELECT ALL + 28 DIV ( + 21 )
----
1

skipif mysql # not compatible
query I rowsort label-4746
SELECT ALL + 28 / ( + 21 )
----
1

query I rowsort
SELECT ALL - 37 + - 5
----
-42

query I rowsort
SELECT ALL + 28 * + 5 AS col1
----
140

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4749
SELECT ALL ( 69 ) DIV SUM( DISTINCT 72 ) + - 15 - - COUNT( ALL + 99 ) + + 40 AS col2
----
26

skipif mysql # not compatible
query I rowsort label-4749
SELECT ALL ( 69 ) / SUM ( DISTINCT 72 ) + - 15 - - COUNT ( ALL + 99 ) + + 40 AS col2
----
26

query I rowsort
SELECT ALL + 38 * - 76 AS col2
----
-2888

query I rowsort
SELECT DISTINCT + ( + NULLIF ( - 52, + - 73 ) )
----
-52

query I rowsort
SELECT + COALESCE ( - 63, + + 16 - - 1 )
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4753
SELECT + CAST( + - 63 AS SIGNED ) * - 41
----
2583

skipif mysql # not compatible
query I rowsort label-4753
SELECT + CAST ( + - 63 AS INTEGER ) * - 41
----
2583

query I rowsort
SELECT + ( 89 ) AS col1
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4755
SELECT ( - 24 ) * MIN( + 38 ) AS col1
----
-912

skipif mysql # not compatible
query I rowsort label-4755
SELECT ( - 24 ) * MIN ( + 38 ) AS col1
----
-912

onlyif mysql # aggregate syntax: 
query I rowsort label-4756
SELECT ALL ( SUM( 78 ) ) * - SUM( DISTINCT - 89 + + 15 )
----
5772

skipif mysql # not compatible
query I rowsort label-4756
SELECT ALL ( SUM ( 78 ) ) * - SUM ( DISTINCT - 89 + + 15 )
----
5772

query I rowsort
SELECT 97 + 89
----
186

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4758
SELECT 3 * ( - 30 DIV - 94 ) + COUNT( * ) col0
----
1

skipif mysql # not compatible
query I rowsort label-4758
SELECT 3 * ( - 30 / - 94 ) + COUNT ( * ) col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4759
SELECT COUNT( * ) + 16 col2
----
17

skipif mysql # not compatible
query I rowsort label-4759
SELECT COUNT ( * ) + 16 col2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4760
SELECT ALL 59 + COUNT( DISTINCT 70 )
----
60

skipif mysql # not compatible
query I rowsort label-4760
SELECT ALL 59 + COUNT ( DISTINCT 70 )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4761
SELECT COUNT( * ) * 51
----
51

skipif mysql # not compatible
query I rowsort label-4761
SELECT COUNT ( * ) * 51
----
51

query I rowsort
SELECT ( 89 ) + 27 AS col2
----
116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4763
SELECT ALL COALESCE ( - MIN( DISTINCT - 9 ), 70, - COUNT( 43 ) ) + - 8 * + CAST( 5 * 74 + 43 * 88 AS SIGNED )
----
-33223

skipif mysql # not compatible
query I rowsort label-4763
SELECT ALL COALESCE ( - MIN ( DISTINCT - 9 ), 70, - COUNT ( 43 ) ) + - 8 * + CAST ( 5 * 74 + 43 * 88 AS INTEGER )
----
-33223

onlyif mysql # aggregate syntax: 
query I rowsort label-4764
SELECT ALL ( CASE - COUNT( * ) WHEN 85 THEN 98 ELSE 2 END ) + ( NULLIF ( + 84, 13 / - 72 ) )
----
86

skipif mysql # not compatible
query I rowsort label-4764
SELECT ALL ( CASE - COUNT ( * ) WHEN 85 THEN 98 ELSE 2 END ) + ( NULLIF ( + 84, 13 / - 72 ) )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4765
SELECT 22 + COUNT( * )
----
23

skipif mysql # not compatible
query I rowsort label-4765
SELECT 22 + COUNT ( * )
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4766
SELECT ALL CAST( NULL AS SIGNED ) + 85 * 9
----
NULL

skipif mysql # not compatible
query I rowsort label-4766
SELECT ALL CAST ( NULL AS INTEGER ) + 85 * 9
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4767
SELECT ALL COALESCE ( - 4, COUNT( * ) ) + - 88 * COUNT( * )
----
-92

skipif mysql # not compatible
query I rowsort label-4767
SELECT ALL COALESCE ( - 4, COUNT ( * ) ) + - 88 * COUNT ( * )
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-4768
SELECT COUNT( * ) + - 65 * COUNT( * ) AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-4768
SELECT COUNT ( * ) + - 65 * COUNT ( * ) AS col1
----
-64

query I rowsort
SELECT ALL - 68 + + ( - 87 ) AS col0
----
-155

query I rowsort
SELECT ALL 34 - NULLIF ( 14 + 72, - 10 ) AS col0
----
-52

query I rowsort
SELECT 47 * 42
----
1974

query I rowsort
SELECT 82 * 53 AS col2
----
4346

query I rowsort
SELECT ( 92 ) + 83 * 12
----
1088

onlyif mysql # DIV for integer division: 
query I rowsort label-4774
SELECT 66 DIV - 22
----
-3

skipif mysql # not compatible
query I rowsort label-4774
SELECT 66 / - 22
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4775
SELECT DISTINCT - 79 DIV COUNT( * )
----
-79

skipif mysql # not compatible
query I rowsort label-4775
SELECT DISTINCT - 79 / COUNT ( * )
----
-79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4776
SELECT 91 DIV - COALESCE ( + 31, ( + 75 ), COUNT( * ) * COALESCE ( 76, 82, - 86 ) ) col0
----
-2

skipif mysql # not compatible
query I rowsort label-4776
SELECT 91 / - COALESCE ( + 31, ( + 75 ), COUNT ( * ) * COALESCE ( 76, 82, - 86 ) ) col0
----
-2

query I rowsort
SELECT ALL + 7 * - 29
----
-203

onlyif mysql # aggregate syntax: 
query I rowsort label-4778
SELECT 71 * + CASE 50 WHEN 14 + COUNT( * ) * + 32 THEN + 70 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4778
SELECT 71 * + CASE 50 WHEN 14 + COUNT ( * ) * + 32 THEN + 70 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4779
SELECT COUNT( * ) + 7
----
8

skipif mysql # not compatible
query I rowsort label-4779
SELECT COUNT ( * ) + 7
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4780
SELECT DISTINCT + CAST( COUNT( * ) AS SIGNED ) * - 90 AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-4780
SELECT DISTINCT + CAST ( COUNT ( * ) AS INTEGER ) * - 90 AS col2
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-4781
SELECT + NULLIF ( + 90, + 36 ) + - 16 * COUNT( * )
----
74

skipif mysql # not compatible
query I rowsort label-4781
SELECT + NULLIF ( + 90, + 36 ) + - 16 * COUNT ( * )
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4782
SELECT 14 * MAX( + 93 * + ( 40 ) + 3 )
----
52122

skipif mysql # not compatible
query I rowsort label-4782
SELECT 14 * MAX ( + 93 * + ( 40 ) + 3 )
----
52122

onlyif mysql # aggregate syntax: 
query I rowsort label-4783
SELECT COUNT( * ) * + 8 AS col0
----
8

skipif mysql # not compatible
query I rowsort label-4783
SELECT COUNT ( * ) * + 8 AS col0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4784
SELECT DISTINCT + COUNT( * ) * - 23 AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-4784
SELECT DISTINCT + COUNT ( * ) * - 23 AS col1
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-4785
SELECT DISTINCT - MAX( + 73 )
----
-73

skipif mysql # not compatible
query I rowsort label-4785
SELECT DISTINCT - MAX ( + 73 )
----
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4786
SELECT CASE + 2 WHEN - 9 THEN - 95 DIV 38 + 52 WHEN + 37 - + 35 THEN + COUNT( * ) END * 98
----
98

skipif mysql # not compatible
query I rowsort label-4786
SELECT CASE + 2 WHEN - 9 THEN - 95 / 38 + 52 WHEN + 37 - + 35 THEN + COUNT ( * ) END * 98
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4787
SELECT ALL - - 41 + - COUNT( * ) DIV - NULLIF ( + 17, 48 + - NULLIF ( - 63, 37 ) ) AS col0
----
41

skipif mysql # not compatible
query I rowsort label-4787
SELECT ALL - - 41 + - COUNT ( * ) / - NULLIF ( + 17, 48 + - NULLIF ( - 63, 37 ) ) AS col0
----
41

query I rowsort
SELECT DISTINCT 49 * - 16
----
-784

query I rowsort
SELECT COALESCE ( - 39, - 82 )
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-4790
SELECT 73 DIV - 90
----
0

skipif mysql # not compatible
query I rowsort label-4790
SELECT 73 / - 90
----
0

query I rowsort
SELECT - 37 * 79 AS col2
----
-2923

query I rowsort
SELECT - 76 - 94 AS col2
----
-170

query I rowsort
SELECT DISTINCT + 20 * 59 AS col0
----
1180

onlyif mysql # aggregate syntax: 
query I rowsort label-4794
SELECT ALL 20 + + COUNT( * )
----
21

skipif mysql # not compatible
query I rowsort label-4794
SELECT ALL 20 + + COUNT ( * )
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4795
SELECT - COUNT( * ) DIV + 31 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4795
SELECT - COUNT ( * ) / + 31 AS col2
----
0

query I rowsort
SELECT ALL - 95 + 0 * - 42 AS col1
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4797
SELECT DISTINCT CAST( NULL AS SIGNED ) - 63
----
NULL

skipif mysql # not compatible
query I rowsort label-4797
SELECT DISTINCT CAST ( NULL AS INTEGER ) - 63
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4798
SELECT ALL 87 DIV - 76 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4798
SELECT ALL 87 / - 76 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4799
SELECT COUNT( * ) + - - ( - 20 )
----
-19

skipif mysql # not compatible
query I rowsort label-4799
SELECT COUNT ( * ) + - - ( - 20 )
----
-19

query I rowsort
SELECT ( + 68 ) * ( 31 )
----
2108

onlyif mysql # aggregate syntax: 
query I rowsort label-4801
SELECT - SUM( DISTINCT 13 ) AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-4801
SELECT - SUM ( DISTINCT 13 ) AS col1
----
-13

query I rowsort
SELECT 56 - + 41
----
15

query I rowsort
SELECT 92 * - 71 * 78
----
-509496

query I rowsort
SELECT ALL 80 * + + 72
----
5760

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4805
SELECT 82 * - CAST( NULL AS SIGNED ) * COALESCE ( 85, 77 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4805
SELECT 82 * - CAST ( NULL AS INTEGER ) * COALESCE ( 85, 77 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4806
SELECT ALL SUM( ALL + - 81 )
----
-81

skipif mysql # not compatible
query I rowsort label-4806
SELECT ALL SUM ( ALL + - 81 )
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4807
SELECT 1 - + COUNT( * ) + 87
----
87

skipif mysql # not compatible
query I rowsort label-4807
SELECT 1 - + COUNT ( * ) + 87
----
87

query I rowsort
SELECT 71 * - + NULLIF ( - 59, + 2 ) AS col0
----
4189

query I rowsort
SELECT CASE WHEN + 92 IS NOT NULL THEN 53 END AS col2
----
53

query I rowsort
SELECT CASE WHEN 90 NOT BETWEEN NULL AND ( + 88 ) THEN - 24 + + 43 ELSE NULL END col1
----
19

query I rowsort
SELECT + COALESCE ( 91, - 13, 27 * - 83 )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4812
SELECT + - COUNT( ALL 1 ) * ( 33 ) AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-4812
SELECT + - COUNT ( ALL 1 ) * ( 33 ) AS col0
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4813
SELECT ALL - + CAST( - COUNT( * ) AS SIGNED ) DIV + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4813
SELECT ALL - + CAST ( - COUNT ( * ) AS INTEGER ) / + COUNT ( * ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4814
SELECT ALL + + ( - + CASE + 49 WHEN - 66 THEN AVG ( + 49 ) / 11 + ( ( 45 ) + + 31 * 54 ) WHEN COUNT( * ) + + 18 THEN NULL WHEN - 22 THEN NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4814
SELECT ALL + + ( - + CASE + 49 WHEN - 66 THEN AVG ( + 49 ) / 11 + ( ( 45 ) + + 31 * 54 ) WHEN COUNT ( * ) + + 18 THEN NULL WHEN - 22 THEN NULL END ) AS col2
----
NULL

query I rowsort
SELECT + + 12 * + 13 AS col2
----
156

query I rowsort
SELECT ALL - 30 * - 69 + - 24 * 15 AS col1
----
1710

query I rowsort
SELECT CASE + - 37 WHEN + 47 / COALESCE ( 81, 59 * + 77 ) THEN - 95 END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4818
SELECT ALL + 65 * 19 + COUNT( * )
----
1236

skipif mysql # not compatible
query I rowsort label-4818
SELECT ALL + 65 * 19 + COUNT ( * )
----
1236

query I rowsort
SELECT - ( + - 12 ) - 16 * + 87 AS col1
----
-1380

query I rowsort
SELECT - 7 * 20
----
-140

query I rowsort
SELECT + 51 + - + 45 AS col1
----
6

query I rowsort
SELECT - - 85 + - 23 AS col1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4823
SELECT - + NULLIF ( COUNT( * ), - ( CASE + 53 WHEN + NULLIF ( SUM( 64 ), COUNT( * ) ) THEN 74 END ) - + ( + COUNT( * ) ) ) + 0
----
-1

skipif mysql # not compatible
query I rowsort label-4823
SELECT - + NULLIF ( COUNT ( * ), - ( CASE + 53 WHEN + NULLIF ( SUM ( 64 ), COUNT ( * ) ) THEN 74 END ) - + ( + COUNT ( * ) ) ) + 0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4824
SELECT 35 * MAX( ALL 92 ) + COUNT( * ) + 58 DIV NULLIF ( 30, 67 ) AS col2
----
3222

skipif mysql # not compatible
query I rowsort label-4824
SELECT 35 * MAX ( ALL 92 ) + COUNT ( * ) + 58 / NULLIF ( 30, 67 ) AS col2
----
3222

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4825
SELECT ALL + - 73 * + + COALESCE ( 5, - 39 ) - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4825
SELECT ALL + - 73 * + + COALESCE ( 5, - 39 ) - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4826
SELECT DISTINCT - 8 DIV + 86
----
0

skipif mysql # not compatible
query I rowsort label-4826
SELECT DISTINCT - 8 / + 86
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4827
SELECT ALL 54 - - ( - ( - COUNT( * ) ) )
----
55

skipif mysql # not compatible
query I rowsort label-4827
SELECT ALL 54 - - ( - ( - COUNT ( * ) ) )
----
55

query I rowsort
SELECT - 23 + + 25
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-4829
SELECT - 34, + 77 + COUNT( * ) * 66 AS col0
----
-34
143

skipif mysql # not compatible
query II rowsort label-4829
SELECT - 34, + 77 + COUNT ( * ) * 66 AS col0
----
-34
143

query I rowsort
SELECT - 52 + - - 32
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-4831
SELECT - 64 * + COUNT( * ) * + - COUNT( * ) AS col2
----
64

skipif mysql # not compatible
query I rowsort label-4831
SELECT - 64 * + COUNT ( * ) * + - COUNT ( * ) AS col2
----
64

query I rowsort
SELECT + 70 * - 26 AS col2
----
-1820

onlyif mysql # aggregate syntax: 
query I rowsort label-4833
SELECT - COUNT( - + 57 )
----
-1

skipif mysql # not compatible
query I rowsort label-4833
SELECT - COUNT ( - + 57 )
----
-1

query I rowsort
SELECT ALL ( + 84 ) AS col2
----
84

query I rowsort
SELECT ALL - 78 * + - 34
----
2652

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4836
SELECT DISTINCT + 24 - - - COUNT( - CAST( NULL AS DECIMAL ) ) + 68 col2
----
92

skipif mysql # not compatible
query I rowsort label-4836
SELECT DISTINCT + 24 - - - COUNT ( - CAST ( NULL AS REAL ) ) + 68 col2
----
92

query I rowsort
SELECT ALL NULLIF ( - 28, 42 * 75 ) AS col2
----
-28

query I rowsort
SELECT ALL + 79 * - - 41
----
3239

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4839
SELECT ALL MAX( - 33 ) DIV + 11 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-4839
SELECT ALL MAX ( - 33 ) / + 11 AS col0
----
-3

query I rowsort
SELECT DISTINCT ( - - 79 ) col0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4841
SELECT - 74 * - - COUNT( * ) * - + ( + 16 ) AS col1
----
1184

skipif mysql # not compatible
query I rowsort label-4841
SELECT - 74 * - - COUNT ( * ) * - + ( + 16 ) AS col1
----
1184

query I rowsort
SELECT + 39 + 63
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-4843
SELECT - SUM( ALL 11 ) col0
----
-11

skipif mysql # not compatible
query I rowsort label-4843
SELECT - SUM ( ALL 11 ) col0
----
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-4844
SELECT 74 AS col2, COUNT( * ) * - 75 AS col2
----
74
-75

skipif mysql # not compatible
query II rowsort label-4844
SELECT 74 AS col2, COUNT ( * ) * - 75 AS col2
----
74
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4845
SELECT ALL MAX( DISTINCT + 70 ) + - 80 + + 60 AS col1
----
50

skipif mysql # not compatible
query I rowsort label-4845
SELECT ALL MAX ( DISTINCT + 70 ) + - 80 + + 60 AS col1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4846
SELECT ALL 38 + + - 30 * - COUNT( * ) + 4 AS col0
----
72

skipif mysql # not compatible
query I rowsort label-4846
SELECT ALL 38 + + - 30 * - COUNT ( * ) + 4 AS col0
----
72

query I rowsort
SELECT + 44 + 98
----
142

onlyif mysql # aggregate syntax: 
query II rowsort label-4848
SELECT 55 AS col2, CASE - + 53 WHEN + 92 + - COUNT( * ) THEN NULL WHEN 44 THEN NULL WHEN + ( MAX( 41 ) ) THEN COUNT( * ) * - 28 WHEN + COALESCE ( 4, MAX( ALL - 73 ), 62 ) THEN 30 END AS col0
----
55
NULL

skipif mysql # not compatible
query II rowsort label-4848
SELECT 55 AS col2, CASE - + 53 WHEN + 92 + - COUNT ( * ) THEN NULL WHEN 44 THEN NULL WHEN + ( MAX ( 41 ) ) THEN COUNT ( * ) * - 28 WHEN + COALESCE ( 4, MAX ( ALL - 73 ), 62 ) THEN 30 END AS col0
----
55
NULL

query I rowsort
SELECT - ( + + 16 ) col1
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4850
SELECT DISTINCT - 89 + + 22 * + - CAST( NULL AS SIGNED ) + 63
----
NULL

skipif mysql # not compatible
query I rowsort label-4850
SELECT DISTINCT - 89 + + 22 * + - CAST ( NULL AS INTEGER ) + 63
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4851
SELECT ALL - COUNT( * ) * + + 7 + - 69 AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-4851
SELECT ALL - COUNT ( * ) * + + 7 + - 69 AS col1
----
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-4852
SELECT ALL 49 DIV - 23 - 32 + + ( 83 ) col0
----
49

skipif mysql # not compatible
query I rowsort label-4852
SELECT ALL 49 / - 23 - 32 + + ( 83 ) col0
----
49

query I rowsort
SELECT DISTINCT - 13 * 5
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-4854
SELECT - + 54 * - 48 * - 38 * ( 44 ) + - COUNT( DISTINCT + 20 ) AS col2
----
-4333825

skipif mysql # not compatible
query I rowsort label-4854
SELECT - + 54 * - 48 * - 38 * ( 44 ) + - COUNT ( DISTINCT + 20 ) AS col2
----
-4333825

query I rowsort
SELECT ALL 52 * + 97 AS col2
----
5044

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4856
SELECT - ( 12 ) DIV 60 + + CAST( - 19 AS SIGNED ) AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-4856
SELECT - ( 12 ) / 60 + + CAST ( - 19 AS INTEGER ) AS col1
----
-19

query I rowsort
SELECT + - 0 + 5
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4858
SELECT ALL - + NULLIF ( + + 4, + 61 + ( - 84 ) ) DIV - 36 + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-4858
SELECT ALL - + NULLIF ( + + 4, + 61 + ( - 84 ) ) / - 36 + + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4859
SELECT + CASE - ( + NULLIF ( - 47, 8 * - 90 ) ) WHEN MAX( DISTINCT + ( 37 ) ) THEN + ( + 36 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4859
SELECT + CASE - ( + NULLIF ( - 47, 8 * - 90 ) ) WHEN MAX ( DISTINCT + ( 37 ) ) THEN + ( + 36 ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4860
SELECT + - COALESCE ( - 53, + - 53 ) DIV ( + 78 + 86 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4860
SELECT + - COALESCE ( - 53, + - 53 ) / ( + 78 + 86 ) AS col2
----
0

query I rowsort
SELECT ALL 61 * + + 77 - + 96 - + 91
----
4510

onlyif mysql # DIV for integer division: 
query I rowsort label-4862
SELECT ALL + - 98 DIV - 38
----
2

skipif mysql # not compatible
query I rowsort label-4862
SELECT ALL + - 98 / - 38
----
2

query II rowsort
SELECT ALL + 23 AS col1, 42 col2
----
23
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4864
SELECT DISTINCT - - 29 * + - 13 * COUNT( * ) - - 66 AS col1
----
-311

skipif mysql # not compatible
query I rowsort label-4864
SELECT DISTINCT - - 29 * + - 13 * COUNT ( * ) - - 66 AS col1
----
-311

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4865
SELECT DISTINCT + + 48 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4865
SELECT DISTINCT + + 48 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4866
SELECT - COALESCE ( - CAST( NULL AS SIGNED ), + + 41 ) * CASE 42 - + 34 * - 72 WHEN 87 * 55 THEN 82 ELSE - 93 END AS col0
----
3813

skipif mysql # not compatible
query I rowsort label-4866
SELECT - COALESCE ( - CAST ( NULL AS INTEGER ), + + 41 ) * CASE 42 - + 34 * - 72 WHEN 87 * 55 THEN 82 ELSE - 93 END AS col0
----
3813

query I rowsort
SELECT ALL + ( + - 98 ) AS col0
----
-98

query I rowsort
SELECT DISTINCT + - ( - + 21 ) AS col0
----
21

query I rowsort
SELECT ALL - 10 * + + 85
----
-850

onlyif mysql # aggregate syntax: 
query I rowsort label-4870
SELECT - COUNT( * ) * 67 * + + 2 * 64
----
-8576

skipif mysql # not compatible
query I rowsort label-4870
SELECT - COUNT ( * ) * 67 * + + 2 * 64
----
-8576

query I rowsort
SELECT DISTINCT ( + ( - 31 ) )
----
-31

query I rowsort
SELECT ALL ( + ( + 86 ) ) AS col2
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4873
SELECT DISTINCT COUNT( 26 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4873
SELECT DISTINCT COUNT ( 26 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4874
SELECT ALL + COUNT( * ) * 90
----
90

skipif mysql # not compatible
query I rowsort label-4874
SELECT ALL + COUNT ( * ) * 90
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4875
SELECT - CASE - - 70 WHEN - + CAST( NULL AS SIGNED ) THEN + 66 ELSE - 91 END - + NULLIF ( 31, 41 )
----
60

skipif mysql # not compatible
query I rowsort label-4875
SELECT - CASE - - 70 WHEN - + CAST ( NULL AS INTEGER ) THEN + 66 ELSE - 91 END - + NULLIF ( 31, 41 )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4876
SELECT ALL - 2 + - MAX( ALL 56 )
----
-58

skipif mysql # not compatible
query I rowsort label-4876
SELECT ALL - 2 + - MAX ( ALL 56 )
----
-58

query I rowsort
SELECT ALL + 48 + - 6 * - 84
----
552

query I rowsort
SELECT 87 * 93 AS col0
----
8091

query I rowsort
SELECT 91 + - - 56
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-4880
SELECT ALL - 75 * COUNT( * )
----
-75

skipif mysql # not compatible
query I rowsort label-4880
SELECT ALL - 75 * COUNT ( * )
----
-75

query I rowsort
SELECT ALL - 3 + + + 44 + + 39
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4882
SELECT ALL ( + 91 ) + - CASE - ( MIN( + CASE + 22 WHEN 51 THEN NULL WHEN 25 * 31 THEN 41 + + 93 ELSE 61 + - 3 END ) ) WHEN + 80 THEN COUNT( * ) WHEN ( + 82 ) - ( COUNT( * ) ) THEN + COUNT( * ) END + + 8 * + 45
----
NULL

skipif mysql # not compatible
query I rowsort label-4882
SELECT ALL ( + 91 ) + - CASE - ( MIN ( + CASE + 22 WHEN 51 THEN NULL WHEN 25 * 31 THEN 41 + + 93 ELSE 61 + - 3 END ) ) WHEN + 80 THEN COUNT ( * ) WHEN ( + 82 ) - ( COUNT ( * ) ) THEN + COUNT ( * ) END + + 8 * + 45
----
NULL

query I rowsort
SELECT DISTINCT + 30 * - + 40 * COALESCE ( - - NULLIF ( - 83, 29 ), 9 )
----
99600

query I rowsort
SELECT DISTINCT 97 + - 7 + - COALESCE ( + 39, 15 * - 2 )
----
51

query I rowsort
SELECT 45 * - 62
----
-2790

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4886
SELECT SUM( + 88 ) DIV 81 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4886
SELECT SUM ( + 88 ) / 81 AS col0
----
1

query I rowsort
SELECT ALL ( - - 4 ) + 99 * - 95 AS col1
----
-9401

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4888
SELECT 18 DIV ( - COUNT( * ) ) * - + 72 - + COUNT( * )
----
1295

skipif mysql # not compatible
query I rowsort label-4888
SELECT 18 / ( - COUNT ( * ) ) * - + 72 - + COUNT ( * )
----
1295

query I rowsort
SELECT 55 - 66 col0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-4890
SELECT DISTINCT - - MAX( 51 )
----
51

skipif mysql # not compatible
query I rowsort label-4890
SELECT DISTINCT - - MAX ( 51 )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4891
SELECT ALL ( - COUNT( * ) ) * - 97 AS col1
----
97

skipif mysql # not compatible
query I rowsort label-4891
SELECT ALL ( - COUNT ( * ) ) * - 97 AS col1
----
97

query I rowsort
SELECT ALL - NULLIF ( - 70, + 48 + - ( 95 ) )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4893
SELECT + ( 62 ) * - - 7 - - ( + COUNT( * ) ) - 42 * + ( 75 )
----
-2715

skipif mysql # not compatible
query I rowsort label-4893
SELECT + ( 62 ) * - - 7 - - ( + COUNT ( * ) ) - 42 * + ( 75 )
----
-2715

query I rowsort
SELECT - 83 * 84
----
-6972

onlyif mysql # aggregate syntax: 
query II rowsort label-4895
SELECT ALL - + ( 74 ) AS col0, - COUNT( * ) - - + 22
----
-74
21

skipif mysql # not compatible
query II rowsort label-4895
SELECT ALL - + ( 74 ) AS col0, - COUNT ( * ) - - + 22
----
-74
21

query I rowsort
SELECT - 58 * + 93 + + ( + + 76 )
----
-5318

onlyif mysql # aggregate syntax: 
query I rowsort label-4897
SELECT + ( + COUNT( - - 7 ) )
----
1

skipif mysql # not compatible
query I rowsort label-4897
SELECT + ( + COUNT ( - - 7 ) )
----
1

query I rowsort
SELECT + 49 * + + 24 AS col1
----
1176

onlyif mysql # DIV for integer division: 
query I rowsort label-4899
SELECT - 46 DIV - 31 + + 58
----
59

skipif mysql # not compatible
query I rowsort label-4899
SELECT - 46 / - 31 + + 58
----
59

query I rowsort
SELECT - CASE - 17 WHEN - 58 + 19 * 50 THEN + 90 END AS col0
----
NULL

query I rowsort
SELECT 56 + - 13
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4902
SELECT 42 * + ( 56 ) - - CAST( 72 AS SIGNED ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4902
SELECT 42 * + ( 56 ) - - CAST ( 72 AS INTEGER ) + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4903
SELECT ALL 87 DIV - + CASE + 49 WHEN + ( 76 ) * 24 + + 81 THEN NULL WHEN - 6 - 48 THEN NULL ELSE + 9 END
----
-9

skipif mysql # not compatible
query I rowsort label-4903
SELECT ALL 87 / - + CASE + 49 WHEN + ( 76 ) * 24 + + 81 THEN NULL WHEN - 6 - 48 THEN NULL ELSE + 9 END
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4904
SELECT CAST( + + 89 AS SIGNED ) DIV - 63 AS col2, COUNT( * ) col1
----
-1
1

skipif mysql # not compatible
query II rowsort label-4904
SELECT CAST ( + + 89 AS INTEGER ) / - 63 AS col2, COUNT ( * ) col1
----
-1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4905
SELECT CASE - COUNT( * ) WHEN - MIN( 16 ) / - CAST( NULL AS SIGNED ) - 48 THEN AVG ( DISTINCT 80 ) / 74 + - 74 WHEN 26 + + 29 * - 70 THEN NULL WHEN - COALESCE ( COUNT( * ), 76 ) / AVG ( 7 ) + + SUM( ALL + CAST( NULL AS SIGNED ) ) THEN NULL ELSE NULL END * + COUNT( * ) + 35 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4905
SELECT CASE - COUNT ( * ) WHEN - MIN ( 16 ) / - CAST ( NULL AS INTEGER ) - 48 THEN AVG ( DISTINCT 80 ) / 74 + - 74 WHEN 26 + + 29 * - 70 THEN NULL WHEN - COALESCE ( COUNT ( * ), 76 ) / AVG ( 7 ) + + SUM ( ALL + CAST ( NULL AS INTEGER ) ) THEN NULL ELSE NULL END * + COUNT ( * ) + 35 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4906
SELECT DISTINCT 34 / - 97 * CASE - - CAST( + 23 AS SIGNED ) WHEN + 99 * 36 THEN NULL WHEN - 2 * + 98 THEN - 95 + 23 ELSE NULL END / - 16 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4906
SELECT DISTINCT 34 / - 97 * CASE - - CAST ( + 23 AS INTEGER ) WHEN + 99 * 36 THEN NULL WHEN - 2 * + 98 THEN - 95 + 23 ELSE NULL END / - 16 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4907
SELECT 91 + - 37 * + COUNT( * )
----
54

skipif mysql # not compatible
query I rowsort label-4907
SELECT 91 + - 37 * + COUNT ( * )
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-4908
SELECT 62 DIV - 28 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-4908
SELECT 62 / - 28 AS col1
----
-2

query I rowsort
SELECT DISTINCT 86 + 79
----
165

query I rowsort
SELECT 7 * - - 54 * + 24 * + 46
----
417312

query I rowsort
SELECT 10 + - 29
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-4912
SELECT ALL - 16 + - COUNT( * ) + + - 28 + + MAX( - - 49 ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-4912
SELECT ALL - 16 + - COUNT ( * ) + + - 28 + + MAX ( - - 49 ) AS col1
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4913
SELECT DISTINCT - CASE 32 WHEN + COUNT( * ) + + 46 * 58 * + CAST( NULL AS SIGNED ) + SUM( 55 ) THEN + SUM( ALL - 33 ) END + - 15
----
NULL

skipif mysql # not compatible
query I rowsort label-4913
SELECT DISTINCT - CASE 32 WHEN + COUNT ( * ) + + 46 * 58 * + CAST ( NULL AS INTEGER ) + SUM ( 55 ) THEN + SUM ( ALL - 33 ) END + - 15
----
NULL

query I rowsort
SELECT ALL 85 + 90
----
175

query II rowsort
SELECT DISTINCT 73 AS col0, CASE + 76 WHEN 87 * - 35 * + 34 + ( 24 ) * 48 THEN NULL WHEN 3 + - 69 THEN NULL ELSE + CASE - 42 WHEN + 81 THEN + 77 END + - 65 END
----
73
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4916
SELECT ALL - 71 + + COUNT( * ) DIV 35 * COUNT( * ) AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-4916
SELECT ALL - 71 + + COUNT ( * ) / 35 * COUNT ( * ) AS col0
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4917
SELECT ALL + COALESCE ( - 70, COUNT( * ) * - COALESCE ( - 97, + 95 * + 68 ), - 54 ) + - 8 * CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4917
SELECT ALL + COALESCE ( - 70, COUNT ( * ) * - COALESCE ( - 97, + 95 * + 68 ), - 54 ) + - 8 * CAST ( NULL AS INTEGER ) col1
----
NULL

query II rowsort
SELECT - 77, 35 AS col1
----
-77
35

query I rowsort
SELECT 22 + - - ( - 53 ) * - + 56
----
2990

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4920
SELECT - - 45 AS col1, - SUM( DISTINCT ( + ( + CAST( NULL AS SIGNED ) ) ) ) / - 12 - - MIN( - 71 ) col2
----
45
NULL

skipif mysql # not compatible
query II rowsort label-4920
SELECT - - 45 AS col1, - SUM ( DISTINCT ( + ( + CAST ( NULL AS INTEGER ) ) ) ) / - 12 - - MIN ( - 71 ) col2
----
45
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4921
SELECT 16, - COUNT( * ) AS col1
----
16
-1

skipif mysql # not compatible
query II rowsort label-4921
SELECT 16, - COUNT ( * ) AS col1
----
16
-1

query II rowsort
SELECT - 81 AS col0, - 85 * 39 * 9 * 74 AS col0
----
-81
-2207790

query I rowsort
SELECT 24 + - ( 64 )
----
-40

query II rowsort
SELECT + 96 - 83 * + 7 AS col2, 57
----
-485
57

query I rowsort
SELECT ALL + - 27 - 25
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-4926
SELECT ALL - - 14 * COUNT( * ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-4926
SELECT ALL - - 14 * COUNT ( * ) AS col2
----
14

query I rowsort
SELECT + 81 * - 58 + - - 60 + - 39 AS col0
----
-4677

query I rowsort
SELECT - 29 * 21 - 39 AS col2
----
-648

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4929
SELECT 42 DIV - COUNT( * )
----
-42

skipif mysql # not compatible
query I rowsort label-4929
SELECT 42 / - COUNT ( * )
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-4930
SELECT - COUNT( * ) * 95 * + - 99 * 63 * 37 AS col1
----
21923055

skipif mysql # not compatible
query I rowsort label-4930
SELECT - COUNT ( * ) * 95 * + - 99 * 63 * 37 AS col1
----
21923055

onlyif mysql # aggregate syntax: 
query I rowsort label-4931
SELECT 31 * - MIN( - 14 )
----
434

skipif mysql # not compatible
query I rowsort label-4931
SELECT 31 * - MIN ( - 14 )
----
434

query II rowsort
SELECT + 72, - ( 20 ) AS col1
----
72
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4933
SELECT + COALESCE ( + 7, - COUNT( * ) ) AS col2, + COUNT( * ) * 56 * - CAST( NULL AS SIGNED )
----
7
NULL

skipif mysql # not compatible
query II rowsort label-4933
SELECT + COALESCE ( + 7, - COUNT ( * ) ) AS col2, + COUNT ( * ) * 56 * - CAST ( NULL AS INTEGER )
----
7
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4934
SELECT ALL MIN( DISTINCT - - ( 90 ) ) + + 54 + + 25
----
169

skipif mysql # not compatible
query I rowsort label-4934
SELECT ALL MIN ( DISTINCT - - ( 90 ) ) + + 54 + + 25
----
169

onlyif mysql # aggregate syntax: 
query I rowsort label-4935
SELECT COUNT( DISTINCT + 3 )
----
1

skipif mysql # not compatible
query I rowsort label-4935
SELECT COUNT ( DISTINCT + 3 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4936
SELECT ALL - 20 + - COUNT( * ) + - NULLIF ( 23, - 97 ) * - CAST( NULL AS SIGNED ) + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-4936
SELECT ALL - 20 + - COUNT ( * ) + - NULLIF ( 23, - 97 ) * - CAST ( NULL AS INTEGER ) + 6
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4937
SELECT + COUNT( * ) AS col0, 96 AS col1
----
1
96

skipif mysql # not compatible
query II rowsort label-4937
SELECT + COUNT ( * ) AS col0, 96 AS col1
----
1
96

query II rowsort
SELECT + 45 col0, 45
----
45
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4939
SELECT ALL COUNT( * ) + + 81 - 50 AS col2
----
32

skipif mysql # not compatible
query I rowsort label-4939
SELECT ALL COUNT ( * ) + + 81 - 50 AS col2
----
32

onlyif mysql # aggregate syntax: 
query III rowsort label-4940
SELECT + COUNT( * ), 24 AS col0, ( + 73 ) AS col1
----
1
24
73

skipif mysql # not compatible
query III rowsort label-4940
SELECT + COUNT ( * ), 24 AS col0, ( + 73 ) AS col1
----
1
24
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4941
SELECT MIN( 50 )
----
50

skipif mysql # not compatible
query I rowsort label-4941
SELECT MIN ( 50 )
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-4942
SELECT 90 AS col0, COUNT( * ) * + + 58
----
90
58

skipif mysql # not compatible
query II rowsort label-4942
SELECT 90 AS col0, COUNT ( * ) * + + 58
----
90
58

onlyif mysql # aggregate syntax: 
query II rowsort label-4943
SELECT ALL + 52, COUNT( * ) AS col2
----
52
1

skipif mysql # not compatible
query II rowsort label-4943
SELECT ALL + 52, COUNT ( * ) AS col2
----
52
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4944
SELECT 84 * - SUM( + 93 ) - 37 - - 63
----
-7786

skipif mysql # not compatible
query I rowsort label-4944
SELECT 84 * - SUM ( + 93 ) - 37 - - 63
----
-7786

query II rowsort
SELECT 71 AS col0, + 85 AS col2
----
71
85

query II rowsort
SELECT DISTINCT 73 AS col2, 81 + + + 81 - - 48
----
73
210

query I rowsort
SELECT + 50 - - 21 col1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4948
SELECT - COUNT( ALL 8 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4948
SELECT - COUNT ( ALL 8 ) AS col2
----
-1

query I rowsort
SELECT + 67 + + 22
----
89

query I rowsort
SELECT ALL 32 - + 74 AS col1
----
-42

query II rowsort
SELECT + 37 * + 14 AS col2, + 70 - 84 + + - 63
----
518
-77

query I rowsort
SELECT - ( + 80 ) * - ( + 1 ) + 85 + 75
----
240

query I rowsort
SELECT + 2 * 46 AS col2
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4954
SELECT + CAST( NULL AS SIGNED ) AS col2, - CAST( - AVG ( DISTINCT - ( 76 ) ) AS SIGNED ) * - 45 * - 9 + - 14 - - 5
----
NULL
-30789

skipif mysql # not compatible
query II rowsort label-4954
SELECT + CAST ( NULL AS INTEGER ) AS col2, - CAST ( - AVG ( DISTINCT - ( 76 ) ) AS INTEGER ) * - 45 * - 9 + - 14 - - 5
----
NULL
-30789

onlyif mysql # aggregate syntax: 
query II rowsort label-4955
SELECT DISTINCT ( - 23 ) AS col2, + MAX( + 69 )
----
-23
69

skipif mysql # not compatible
query II rowsort label-4955
SELECT DISTINCT ( - 23 ) AS col2, + MAX ( + 69 )
----
-23
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4956
SELECT - + COALESCE ( - 29, + 57, - 94 + + 71, + + 67 * + MIN( DISTINCT 76 * 74 ) ) DIV + 50
----
0

skipif mysql # not compatible
query I rowsort label-4956
SELECT - + COALESCE ( - 29, + 57, - 94 + + 71, + + 67 * + MIN ( DISTINCT 76 * 74 ) ) / + 50
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4957
SELECT + ( - 47 ) * - 25 - + 61 + + + 22 * + 52 * + 20 * + NULLIF ( - 70 + 93 DIV + MIN( + 37 * 41 + + 40 * - ( + 3 * 21 ) ), NULLIF ( 55, - 30 * ( - 87 * + 36 ) ) ) AS col0
----
-1600486

skipif mysql # not compatible
query I rowsort label-4957
SELECT + ( - 47 ) * - 25 - + 61 + + + 22 * + 52 * + 20 * + NULLIF ( - 70 + 93 / + MIN ( + 37 * 41 + + 40 * - ( + 3 * 21 ) ), NULLIF ( 55, - 30 * ( - 87 * + 36 ) ) ) AS col0
----
-1600486

onlyif mysql # aggregate syntax: 
query II rowsort label-4958
SELECT ALL + 51, - COUNT( * ) AS col1
----
51
-1

skipif mysql # not compatible
query II rowsort label-4958
SELECT ALL + 51, - COUNT ( * ) AS col1
----
51
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4959
SELECT ALL 33 AS col0, CAST( COUNT( * ) AS SIGNED ) * + 69 + + 52 + + 93 - 82 * 31 * 69 + 12 AS col1
----
33
-175172

skipif mysql # not compatible
query II rowsort label-4959
SELECT ALL 33 AS col0, CAST ( COUNT ( * ) AS INTEGER ) * + 69 + + 52 + + 93 - 82 * 31 * 69 + 12 AS col1
----
33
-175172

onlyif mysql # aggregate syntax: 
query I rowsort label-4960
SELECT - + 0 - COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4960
SELECT - + 0 - COUNT ( * ) AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4961
SELECT - 94 AS col0, 61 + + 52 - - 15 + + 45 * - 62 + CAST( NULL AS SIGNED )
----
-94
NULL

skipif mysql # not compatible
query II rowsort label-4961
SELECT - 94 AS col0, 61 + + 52 - - 15 + + 45 * - 62 + CAST ( NULL AS INTEGER )
----
-94
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4962
SELECT - 1 * COUNT( * ) + + CAST( NULL AS SIGNED ) + + 22
----
NULL

skipif mysql # not compatible
query I rowsort label-4962
SELECT - 1 * COUNT ( * ) + + CAST ( NULL AS INTEGER ) + + 22
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4963
SELECT ALL 87 * - 38 * + + 7 * - + 58 * - + 33 + + 78 + COUNT( * ) * 12 AS col2
----
-44293698

skipif mysql # not compatible
query I rowsort label-4963
SELECT ALL 87 * - 38 * + + 7 * - + 58 * - + 33 + + 78 + COUNT ( * ) * 12 AS col2
----
-44293698

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4964
SELECT COUNT( * ) * - ( 40 ) * + COUNT( - 95 ) DIV - 41 + - 22 + + 89
----
67

skipif mysql # not compatible
query I rowsort label-4964
SELECT COUNT ( * ) * - ( 40 ) * + COUNT ( - 95 ) / - 41 + - 22 + + 89
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-4965
SELECT ALL - 20 DIV + 3 AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-4965
SELECT ALL - 20 / + 3 AS col1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4966
SELECT + + ( + MAX( 96 ) ) AS col0
----
96

skipif mysql # not compatible
query I rowsort label-4966
SELECT + + ( + MAX ( 96 ) ) AS col0
----
96

query II rowsort
SELECT ( + 49 ), - 15 AS col1
----
49
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-4968
SELECT DISTINCT 72 * MIN( - 57 ) + + - 91 * - 85 * 4
----
26836

skipif mysql # not compatible
query I rowsort label-4968
SELECT DISTINCT 72 * MIN ( - 57 ) + + - 91 * - 85 * 4
----
26836

query I rowsort
SELECT 88 * 30 + + + 82 * 58 + - 6
----
7390

onlyif mysql # aggregate syntax: 
query I rowsort label-4970
SELECT ALL 47 * - + 17 * - 72 + - COUNT( * ) AS col2
----
57527

skipif mysql # not compatible
query I rowsort label-4970
SELECT ALL 47 * - + 17 * - 72 + - COUNT ( * ) AS col2
----
57527

onlyif mysql # aggregate syntax: 
query I rowsort label-4971
SELECT CASE 22 WHEN + 36 * COUNT( * ) THEN - 81 + + 94 WHEN + 3 / + 38 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4971
SELECT CASE 22 WHEN + 36 * COUNT ( * ) THEN - 81 + + 94 WHEN + 3 / + 38 THEN NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4972
SELECT - CAST( NULL AS SIGNED ) + - - 17
----
NULL

skipif mysql # not compatible
query I rowsort label-4972
SELECT - CAST ( NULL AS INTEGER ) + - - 17
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4973
SELECT + CASE 47 WHEN - ( - 94 ) THEN + 53 WHEN + NULLIF ( + MIN( ALL + 24 ), 45 ) - NULLIF ( 64 + + ( COUNT( * ) ), + 34 / COUNT( * ) ) THEN 39 * - 5 WHEN + 61 + 63 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4973
SELECT + CASE 47 WHEN - ( - 94 ) THEN + 53 WHEN + NULLIF ( + MIN ( ALL + 24 ), 45 ) - NULLIF ( 64 + + ( COUNT ( * ) ), + 34 / COUNT ( * ) ) THEN 39 * - 5 WHEN + 61 + 63 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4974
SELECT - COALESCE ( - 2, - 18, - + 88 ) + - - CAST( NULL AS SIGNED ) / - 9 * 35
----
NULL

skipif mysql # not compatible
query I rowsort label-4974
SELECT - COALESCE ( - 2, - 18, - + 88 ) + - - CAST ( NULL AS INTEGER ) / - 9 * 35
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4975
SELECT ALL 84 * - - CASE - 31 WHEN - - MAX( - 55 ) THEN 78 + + 31 + + 66 END + 71 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4975
SELECT ALL 84 * - - CASE - 31 WHEN - - MAX ( - 55 ) THEN 78 + + 31 + + 66 END + 71 AS col1
----
NULL

query I rowsort
SELECT ALL + 58 * + 6 + - 88 AS col1
----
260

onlyif mysql # aggregate syntax: 
query I rowsort label-4977
SELECT - 84 * + - 59 + + CASE - + 35 WHEN COUNT( * ) THEN NULL WHEN + NULLIF ( 11, 17 ) - + 97 THEN NULL WHEN 7 * + 98 THEN NULL ELSE 76 END AS col1
----
5032

skipif mysql # not compatible
query I rowsort label-4977
SELECT - 84 * + - 59 + + CASE - + 35 WHEN COUNT ( * ) THEN NULL WHEN + NULLIF ( 11, 17 ) - + 97 THEN NULL WHEN 7 * + 98 THEN NULL ELSE 76 END AS col1
----
5032

onlyif mysql # aggregate syntax: 
query I rowsort label-4978
SELECT ALL + 8 * - + 21 * - NULLIF ( 15, - - ( + + 83 ) ) - - COUNT( * ) + 39 AS col1
----
2560

skipif mysql # not compatible
query I rowsort label-4978
SELECT ALL + 8 * - + 21 * - NULLIF ( 15, - - ( + + 83 ) ) - - COUNT ( * ) + 39 AS col1
----
2560

query I rowsort
SELECT + CASE - - 50 WHEN 37 * - + AVG ( + 95 ) THEN - NULLIF ( + 91, 60 ) / + 59 + AVG ( ALL + 16 ) END
----
NULL

query I rowsort
SELECT ALL - 26 * 18
----
-468

query I rowsort
SELECT ALL - 31 * 77 - 38 AS col0
----
-2425

onlyif mysql # aggregate syntax: 
query I rowsort label-4982
SELECT SUM( + ( 57 ) ) col1
----
57

skipif mysql # not compatible
query I rowsort label-4982
SELECT SUM ( + ( 57 ) ) col1
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4983
SELECT + 2 + - COALESCE ( - - 27, - - COUNT( * ) + 2 + + - MAX( - CAST( 86 AS SIGNED ) ) * + 44, + 57 )
----
-25

skipif mysql # not compatible
query I rowsort label-4983
SELECT + 2 + - COALESCE ( - - 27, - - COUNT ( * ) + 2 + + - MAX ( - CAST ( 86 AS INTEGER ) ) * + 44, + 57 )
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-4984
SELECT - 14 * + COUNT( * ) * - + COUNT( ALL + - 35 ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-4984
SELECT - 14 * + COUNT ( * ) * - + COUNT ( ALL + - 35 ) AS col1
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4985
SELECT + 20 * 62 * CAST( 10 AS SIGNED )
----
12400

skipif mysql # not compatible
query I rowsort label-4985
SELECT + 20 * 62 * CAST ( 10 AS INTEGER )
----
12400

onlyif mysql # aggregate syntax: 
query I rowsort label-4986
SELECT DISTINCT - 25 * - + COALESCE ( + 25, - MIN( 91 ) + - + 54 ) + + 21 - + 73 * 88 AS col0
----
-5778

skipif mysql # not compatible
query I rowsort label-4986
SELECT DISTINCT - 25 * - + COALESCE ( + 25, - MIN ( 91 ) + - + 54 ) + + 21 - + 73 * 88 AS col0
----
-5778

onlyif mysql # aggregate syntax: 
query I rowsort label-4987
SELECT ALL + COALESCE ( - ( + ( + COUNT( * ) ) ), + - 97 + + - 53 + + 97 + - 10 * - 8 * 3 )
----
-1

skipif mysql # not compatible
query I rowsort label-4987
SELECT ALL + COALESCE ( - ( + ( + COUNT ( * ) ) ), + - 97 + + - 53 + + 97 + - 10 * - 8 * 3 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4988
SELECT ALL 52 DIV - COALESCE ( + - 95, - 31 )
----
0

skipif mysql # not compatible
query I rowsort label-4988
SELECT ALL 52 / - COALESCE ( + - 95, - 31 )
----
0

query I rowsort
SELECT + 22 * - - ( - 52 ) - 26
----
-1170

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4990
SELECT + 36 * COUNT( * ) DIV + - 55 + + 53 + - 72 + + 80 * COUNT( * )
----
61

skipif mysql # not compatible
query I rowsort label-4990
SELECT + 36 * COUNT ( * ) / + - 55 + + 53 + - 72 + + 80 * COUNT ( * )
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4991
SELECT DISTINCT 10 DIV COUNT( * ) + CAST( + 32 AS SIGNED )
----
42

skipif mysql # not compatible
query I rowsort label-4991
SELECT DISTINCT 10 / COUNT ( * ) + CAST ( + 32 AS INTEGER )
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4992
SELECT + - 46 * + CAST( NULL AS SIGNED ) + + 61 * - 80 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4992
SELECT + - 46 * + CAST ( NULL AS INTEGER ) + + 61 * - 80 AS col0
----
NULL

query I rowsort
SELECT + - 40 * - 97 + + 96 * + 81 AS col1
----
11656

query I rowsort
SELECT + - 29 + - 45 + + NULLIF ( - 22, - 84 / - - CASE WHEN NOT - 90 IN ( 97 + + 57 * ( + 24 ) ) THEN NULL WHEN ( 8 - 29 / 34 ) <= NULL THEN NULL ELSE 76 END + NULLIF ( 60 + - 1, 70 * + 56 ) * 46 ) AS col0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4995
SELECT - SUM( DISTINCT 25 ) AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-4995
SELECT - SUM ( DISTINCT 25 ) AS col0
----
-25

query II rowsort
SELECT ALL + 60 + + 61 AS col0, + 7 * - 10
----
121
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-4997
SELECT + COALESCE ( 9, - - ( + COUNT( + 24 ) ) * + 56 ) + + + COALESCE ( + COUNT( * ), 82 ) + - 51 col0
----
-41

skipif mysql # not compatible
query I rowsort label-4997
SELECT + COALESCE ( 9, - - ( + COUNT ( + 24 ) ) * + 56 ) + + + COALESCE ( + COUNT ( * ), 82 ) + - 51 col0
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4998
SELECT ALL - 90 * + + CAST( NULL AS SIGNED ) AS col1, 89
----
NULL
89

skipif mysql # not compatible
query II rowsort label-4998
SELECT ALL - 90 * + + CAST ( NULL AS INTEGER ) AS col1, 89
----
NULL
89

query I rowsort
SELECT ALL - + NULLIF ( + + 79, AVG ( + 10 ) ) + + - 43 - + ( 97 ) col0
----
-219

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5000
SELECT ALL - CASE + SUM( DISTINCT - + 6 ) WHEN + - 95 - 24 * + + 66 THEN - - CASE 50 WHEN 32 THEN NULL WHEN + COUNT( 19 ) THEN NULL ELSE 7 END * 45 WHEN + 13 + 97 THEN COALESCE ( 81, + 2, COUNT( * ) ) END / 23 + - CASE - COUNT( * ) WHEN COALESCE ( - COUNT( * ), CAST( NULL AS SIGNED ), - CAST( 13 AS SIGNED ) * + 88 + - CAST( NULL AS SIGNED ) * - 36 ) / 12 THEN 56 WHEN COUNT( * ) THEN + SUM( + 50 ) WHEN NULLIF ( - 3, + 84 ) + - 76 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5000
SELECT ALL - CASE + SUM ( DISTINCT - + 6 ) WHEN + - 95 - 24 * + + 66 THEN - - CASE 50 WHEN 32 THEN NULL WHEN + COUNT ( 19 ) THEN NULL ELSE 7 END * 45 WHEN + 13 + 97 THEN COALESCE ( 81, + 2, COUNT ( * ) ) END / 23 + - CASE - COUNT ( * ) WHEN COALESCE ( - COUNT ( * ), CAST ( NULL AS INTEGER ), - CAST ( 13 AS INTEGER ) * + 88 + - CAST ( NULL AS INTEGER ) * - 36 ) / 12 THEN 56 WHEN COUNT ( * ) THEN + SUM ( + 50 ) WHEN NULLIF ( - 3, + 84 ) + - 76 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5001
SELECT ALL + 35 DIV - 51 + + 54 * - + 47 AS col1
----
-2538

skipif mysql # not compatible
query I rowsort label-5001
SELECT ALL + 35 / - 51 + + 54 * - + 47 AS col1
----
-2538

onlyif mysql # DIV for integer division: 
query I rowsort label-5002
SELECT - 51 DIV - NULLIF ( + 86, + 17 ) + - 19 * 21 * + 9
----
-3591

skipif mysql # not compatible
query I rowsort label-5002
SELECT - 51 / - NULLIF ( + 86, + 17 ) + - 19 * 21 * + 9
----
-3591

query I rowsort
SELECT ALL 70 + + 9 AS col0
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5004
SELECT 85 AS col1, - 32 * - CAST( NULL AS SIGNED )
----
85
NULL

skipif mysql # not compatible
query II rowsort label-5004
SELECT 85 AS col1, - 32 * - CAST ( NULL AS INTEGER )
----
85
NULL

query II rowsort
SELECT + 38 AS col1, - 93
----
38
-93

query I rowsort
SELECT 10 + + - 14 AS col1
----
-4

query I rowsort
SELECT 17 * 91 col0
----
1547

onlyif mysql # aggregate syntax: 
query I rowsort label-5008
SELECT DISTINCT - COUNT( * ) + 18
----
17

skipif mysql # not compatible
query I rowsort label-5008
SELECT DISTINCT - COUNT ( * ) + 18
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-5009
SELECT DISTINCT 69 DIV 22 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-5009
SELECT DISTINCT 69 / 22 AS col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5010
SELECT ALL + ( + MAX( DISTINCT 69 ) ) - + SUM( - + 81 ) * - COUNT( ALL - 45 ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-5010
SELECT ALL + ( + MAX ( DISTINCT 69 ) ) - + SUM ( - + 81 ) * - COUNT ( ALL - 45 ) AS col0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-5011
SELECT 7 * - + COUNT( * )
----
-7

skipif mysql # not compatible
query I rowsort label-5011
SELECT 7 * - + COUNT ( * )
----
-7

query I rowsort
SELECT DISTINCT + 12 * - + 98 * + 31 * + 49 * - 25
----
44658600

query II rowsort
SELECT ALL - 45 AS col1, + 69 * + 74 + + 95 * - 35
----
-45
1781

onlyif mysql # aggregate syntax: 
query I rowsort label-5014
SELECT ( - + 69 ) + + - MAX( 69 ) AS col0
----
-138

skipif mysql # not compatible
query I rowsort label-5014
SELECT ( - + 69 ) + + - MAX ( 69 ) AS col0
----
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-5015
SELECT ALL - MIN( DISTINCT + 28 ) AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-5015
SELECT ALL - MIN ( DISTINCT + 28 ) AS col0
----
-28

query I rowsort
SELECT 97 * - 48 AS col0
----
-4656

onlyif mysql # aggregate syntax: 
query I rowsort label-5017
SELECT 6 * - COUNT( * ) * + + 52 * 45 AS col2
----
-14040

skipif mysql # not compatible
query I rowsort label-5017
SELECT 6 * - COUNT ( * ) * + + 52 * 45 AS col2
----
-14040

onlyif mysql # aggregate syntax: 
query II rowsort label-5018
SELECT DISTINCT - 77 AS col0, + COALESCE ( + 26, - COUNT( * ) * - 57 )
----
-77
26

skipif mysql # not compatible
query II rowsort label-5018
SELECT DISTINCT - 77 AS col0, + COALESCE ( + 26, - COUNT ( * ) * - 57 )
----
-77
26

query I rowsort
SELECT 16 - - - 62 - + 95
----
-141

query I rowsort
SELECT ALL - ( + + 51 ) - COALESCE ( + 60, + - 55 )
----
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-5021
SELECT 32 * + COUNT( * ) col0
----
32

skipif mysql # not compatible
query I rowsort label-5021
SELECT 32 * + COUNT ( * ) col0
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5022
SELECT DISTINCT + MAX( DISTINCT + - CAST( NULL AS SIGNED ) ) * + + COUNT( * ) / - + 30
----
NULL

skipif mysql # not compatible
query I rowsort label-5022
SELECT DISTINCT + MAX ( DISTINCT + - CAST ( NULL AS INTEGER ) ) * + + COUNT ( * ) / - + 30
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5023
SELECT ALL + COUNT( * ) * - + 51 AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-5023
SELECT ALL + COUNT ( * ) * - + 51 AS col1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-5024
SELECT DISTINCT - - 70 * + - 62 + + COUNT( * ) * + - CASE + + 8 WHEN + 52 + - - 89 - - COALESCE ( - COUNT( * ), 65 ) / COUNT( * ) THEN - 51 ELSE NULL END - 40 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5024
SELECT DISTINCT - - 70 * + - 62 + + COUNT ( * ) * + - CASE + + 8 WHEN + 52 + - - 89 - - COALESCE ( - COUNT ( * ), 65 ) / COUNT ( * ) THEN - 51 ELSE NULL END - 40 AS col2
----
NULL

query I rowsort
SELECT - ( - 34 ) AS col0
----
34

query I rowsort
SELECT + 47 - 31
----
16

query I rowsort
SELECT + ( - 95 ) * + 3 * - 45 AS col2
----
12825

onlyif mysql # aggregate syntax: 
query I rowsort label-5028
SELECT ALL 26 + + - 21 + - 2 + - 44 * + MIN( ALL + + 23 ) + ( + COUNT( * ) )
----
-1008

skipif mysql # not compatible
query I rowsort label-5028
SELECT ALL 26 + + - 21 + - 2 + - 44 * + MIN ( ALL + + 23 ) + ( + COUNT ( * ) )
----
-1008

query I rowsort
SELECT 78 * + - 93 AS col0
----
-7254

onlyif mysql # aggregate syntax: 
query II rowsort label-5030
SELECT - 17, + MAX( DISTINCT + 31 ) AS col0
----
-17
31

skipif mysql # not compatible
query II rowsort label-5030
SELECT - 17, + MAX ( DISTINCT + 31 ) AS col0
----
-17
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5031
SELECT DISTINCT - COUNT( * ) + + 30 AS col0
----
29

skipif mysql # not compatible
query I rowsort label-5031
SELECT DISTINCT - COUNT ( * ) + + 30 AS col0
----
29

query I rowsort
SELECT + 13 + - 82 AS col2
----
-69

query I rowsort
SELECT ALL + + 28 * 79 AS col0
----
2212

onlyif mysql # DIV for integer division: 
query I rowsort label-5034
SELECT - ( - 86 ) DIV COALESCE ( 89, ( + 13 ), + ( - + AVG ( ALL + 0 ) ) * - 77 )
----
0

skipif mysql # not compatible
query I rowsort label-5034
SELECT - ( - 86 ) / COALESCE ( 89, ( + 13 ), + ( - + AVG ( ALL + 0 ) ) * - 77 )
----
0

query II rowsort
SELECT ALL + 73 AS col1, 80 AS col2
----
73
80

onlyif mysql # aggregate syntax: 
query I rowsort label-5036
SELECT DISTINCT COALESCE ( 52, 64 * 79 + - COUNT( * ), 2 * + - 33 * ( 23 ) + 8 * + COUNT( * ) ) + 24
----
76

skipif mysql # not compatible
query I rowsort label-5036
SELECT DISTINCT COALESCE ( 52, 64 * 79 + - COUNT ( * ), 2 * + - 33 * ( 23 ) + 8 * + COUNT ( * ) ) + 24
----
76

onlyif mysql # aggregate syntax: 
query II rowsort label-5037
SELECT - 91 AS col1, - NULLIF ( 27, - 93 + - 53 * + COUNT( * ) * + 68 )
----
-91
-27

skipif mysql # not compatible
query II rowsort label-5037
SELECT - 91 AS col1, - NULLIF ( 27, - 93 + - 53 * + COUNT ( * ) * + 68 )
----
-91
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-5038
SELECT + 58 DIV 70 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5038
SELECT + 58 / 70 AS col1
----
0

query I rowsort
SELECT ALL - 37 + + 99 AS col1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-5040
SELECT + SUM( - + 98 ) * - + 17 + 41 AS col2
----
1707

skipif mysql # not compatible
query I rowsort label-5040
SELECT + SUM ( - + 98 ) * - + 17 + 41 AS col2
----
1707

query I rowsort
SELECT 72 - 89 col2
----
-17

query II rowsort
SELECT ALL 16 * - 32 AS col1, - 62 + ( + - 50 )
----
-512
-112

onlyif mysql # aggregate syntax: 
query I rowsort label-5043
SELECT DISTINCT - CASE 36 WHEN 66 * + 48 * + ( 93 ) - + + 24 THEN NULL ELSE 26 * - COUNT( * ) * + 46 + 12 * 49 - 62 END AS col0
----
670

skipif mysql # not compatible
query I rowsort label-5043
SELECT DISTINCT - CASE 36 WHEN 66 * + 48 * + ( 93 ) - + + 24 THEN NULL ELSE 26 * - COUNT ( * ) * + 46 + 12 * 49 - 62 END AS col0
----
670

query I rowsort
SELECT DISTINCT 21 - - 27
----
48

query I rowsort
SELECT 26 - + 44 * + + 0 AS col2
----
26

query I rowsort
SELECT 42 * 17 * + 92 AS col0
----
65688

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5047
SELECT DISTINCT COALESCE ( - 29, + - 79 ) DIV - ( - 39 ) + - - MAX( - - CAST( + 29 AS SIGNED ) )
----
29

skipif mysql # not compatible
query I rowsort label-5047
SELECT DISTINCT COALESCE ( - 29, + - 79 ) / - ( - 39 ) + - - MAX ( - - CAST ( + 29 AS INTEGER ) )
----
29

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5048
SELECT DISTINCT + 36 * + CAST( NULL AS DECIMAL ) AS col2, - 87 * + 90 AS col0
----
NULL
-7830

skipif mysql # not compatible
query II rowsort label-5048
SELECT DISTINCT + 36 * + CAST ( NULL AS REAL ) AS col2, - 87 * + 90 AS col0
----
NULL
-7830

query II rowsort
SELECT 24 + - 19 AS col0, 30 AS col0
----
5
30

query I rowsort
SELECT + NULLIF ( 32, - 61 ) AS col2
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5051
SELECT AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) + - - COALESCE ( + - COUNT( * ), - 73 / + - 43 - + 68 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5051
SELECT AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) + - - COALESCE ( + - COUNT ( * ), - 73 / + - 43 - + 68 )
----
NULL

query I rowsort
SELECT + 31 + - - 95 AS col2
----
126

query I rowsort
SELECT ALL + 93 + - 23
----
70

query I rowsort
SELECT DISTINCT + 65 + - 85 - 0
----
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5055
SELECT DISTINCT + 1 + + 0, - 5 DIV + MAX( DISTINCT - 87 ) AS col1
----
1
0

skipif mysql # not compatible
query II rowsort label-5055
SELECT DISTINCT + 1 + + 0, - 5 / + MAX ( DISTINCT - 87 ) AS col1
----
1
0

query II rowsort
SELECT + 7 + + 72 AS col0, + 50 AS col0
----
79
50

query I rowsort
SELECT - + ( - - CASE + COALESCE ( 66, 85, - + 7 ) WHEN - ( - ( - 7 ) ) THEN - 76 WHEN ( - 38 ) * 87 + + COALESCE ( - 53, 73 + + 75 * 86 ) THEN NULL WHEN - 34 THEN NULL ELSE NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5058
SELECT - + COUNT( * ) * - 70
----
70

skipif mysql # not compatible
query I rowsort label-5058
SELECT - + COUNT ( * ) * - 70
----
70

query I rowsort
SELECT - 9 + 95
----
86

query I rowsort
SELECT - ( - 83 ) * + 76 + + - 87 col2
----
6221

query I rowsort
SELECT + 93 * 67
----
6231

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5062
SELECT - CAST( NULL AS SIGNED ) + - + 88 + ( NULLIF ( COUNT( * ), + + 29 * - + 57 * + 10 * - NULLIF ( - + 28, 64 ) + + 94 * - COALESCE ( 60, + 6 / + 2 + 0, 20 + + 32 ) ) ) + - 48 * 14
----
NULL

skipif mysql # not compatible
query I rowsort label-5062
SELECT - CAST ( NULL AS INTEGER ) + - + 88 + ( NULLIF ( COUNT ( * ), + + 29 * - + 57 * + 10 * - NULLIF ( - + 28, 64 ) + + 94 * - COALESCE ( 60, + 6 / + 2 + 0, 20 + + 32 ) ) ) + - 48 * 14
----
NULL

query I rowsort
SELECT DISTINCT COALESCE ( - 34, 18 ) - + + 32
----
-66

query II rowsort
SELECT ALL 37 AS col1, - 57
----
37
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5065
SELECT ALL NULLIF ( 37, 79 * + SUM( 96 ) - + 2 + - COALESCE ( - COUNT( * ), - CAST( NULL AS SIGNED ), - 35 + + 25 ) - 79 )
----
37

skipif mysql # not compatible
query I rowsort label-5065
SELECT ALL NULLIF ( 37, 79 * + SUM ( 96 ) - + 2 + - COALESCE ( - COUNT ( * ), - CAST ( NULL AS INTEGER ), - 35 + + 25 ) - 79 )
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-5066
SELECT - 3 * - + 12 * MAX( - + 31 ) + + SUM( 44 ) * MAX( ALL 2 )
----
-1028

skipif mysql # not compatible
query I rowsort label-5066
SELECT - 3 * - + 12 * MAX ( - + 31 ) + + SUM ( 44 ) * MAX ( ALL 2 )
----
-1028

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5067
SELECT NULLIF ( 32, + + CAST( + 2 AS SIGNED ) + CASE + 22 WHEN + 74 / + COUNT( * ) + + COUNT( - - 52 ) THEN NULL WHEN COUNT( * ) * + 6 THEN + 25 + + ( 55 ) END + - 48 )
----
32

skipif mysql # not compatible
query I rowsort label-5067
SELECT NULLIF ( 32, + + CAST ( + 2 AS INTEGER ) + CASE + 22 WHEN + 74 / + COUNT ( * ) + + COUNT ( - - 52 ) THEN NULL WHEN COUNT ( * ) * + 6 THEN + 25 + + ( 55 ) END + - 48 )
----
32

query II rowsort
SELECT COALESCE ( - 30, - 61 * 12, - + 19 ) AS col2, 42 * - + 14 AS col0
----
-30
-588

query I rowsort
SELECT - 21 * 27
----
-567

query I rowsort
SELECT NULLIF ( - 4, - + 46 )
----
-4

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5071
SELECT + 45 / + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5071
SELECT + 45 / + + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT + 91 * + 35 AS col1
----
3185

query I rowsort
SELECT + NULLIF ( - + 34, + 80 )
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-5074
SELECT + NULLIF ( - + 43, - SUM( + 91 ) * 74 + + 77 + + + COUNT( * ) )
----
-43

skipif mysql # not compatible
query I rowsort label-5074
SELECT + NULLIF ( - + 43, - SUM ( + 91 ) * 74 + + 77 + + + COUNT ( * ) )
----
-43

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5075
SELECT CASE + CAST( NULL AS DECIMAL ) WHEN - 44 THEN - 47 ELSE - 16 END AS col1, COUNT( * )
----
-16
1

skipif mysql # not compatible
query II rowsort label-5075
SELECT CASE + CAST ( NULL AS REAL ) WHEN - 44 THEN - 47 ELSE - 16 END AS col1, COUNT ( * )
----
-16
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5076
SELECT + + 24 + + - COUNT( * )
----
23

skipif mysql # not compatible
query I rowsort label-5076
SELECT + + 24 + + - COUNT ( * )
----
23

query I rowsort
SELECT + - 38 * - 94 + 2 + + ( - ( 47 ) ) * - 21 AS col2
----
4561

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5078
SELECT ALL + COUNT( * ) * - - CAST( NULL AS SIGNED ) + 48 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5078
SELECT ALL + COUNT ( * ) * - - CAST ( NULL AS INTEGER ) + 48 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5079
SELECT + COUNT( * ) * - - 12 * NULLIF ( - + ( - - 14 ), - 63 * + 61 ) + 72 - - 10 + - + COUNT( ALL - 57 )
----
-87

skipif mysql # not compatible
query I rowsort label-5079
SELECT + COUNT ( * ) * - - 12 * NULLIF ( - + ( - - 14 ), - 63 * + 61 ) + 72 - - 10 + - + COUNT ( ALL - 57 )
----
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5080
SELECT DISTINCT + 90, + COUNT( * ) + - - 65 - 20 + - ( + 53 ) DIV - - ( + 83 ) AS col1
----
90
46

skipif mysql # not compatible
query II rowsort label-5080
SELECT DISTINCT + 90, + COUNT ( * ) + - - 65 - 20 + - ( + 53 ) / - - ( + 83 ) AS col1
----
90
46

query I rowsort
SELECT DISTINCT - 14 * - 84 AS col2
----
1176

onlyif mysql # aggregate syntax: 
query I rowsort label-5082
SELECT + - 9 + - 64 + - ( - 42 ) * 0 * + COUNT( * ) AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-5082
SELECT + - 9 + - 64 + - ( - 42 ) * 0 * + COUNT ( * ) AS col2
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5083
SELECT ALL + + 65 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5083
SELECT ALL + + 65 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + - 48 + 70 col1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-5085
SELECT - 32 - - + COUNT( * )
----
-31

skipif mysql # not compatible
query I rowsort label-5085
SELECT - 32 - - + COUNT ( * )
----
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-5086
SELECT + 71 * 60 * 27 + + 3 DIV 24 + - + 83 * - 41
----
118423

skipif mysql # not compatible
query I rowsort label-5086
SELECT + 71 * 60 * 27 + + 3 / 24 + - + 83 * - 41
----
118423

onlyif mysql # aggregate syntax: 
query I rowsort label-5087
SELECT ALL CASE + 39 WHEN + 38 THEN + - COUNT( * ) WHEN 4 - 23 THEN + + 43 + - 94 * - MAX( DISTINCT - 51 ) WHEN - 53 * + 15 THEN NULL WHEN - 69 + - 34 * 78 THEN + 68 ELSE 60 END AS col2
----
60

skipif mysql # not compatible
query I rowsort label-5087
SELECT ALL CASE + 39 WHEN + 38 THEN + - COUNT ( * ) WHEN 4 - 23 THEN + + 43 + - 94 * - MAX ( DISTINCT - 51 ) WHEN - 53 * + 15 THEN NULL WHEN - 69 + - 34 * 78 THEN + 68 ELSE 60 END AS col2
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5088
SELECT - COUNT( * ) AS col1, - 9 DIV + 78 AS col1
----
-1
0

skipif mysql # not compatible
query II rowsort label-5088
SELECT - COUNT ( * ) AS col1, - 9 / + 78 AS col1
----
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5089
SELECT - 98 DIV + + 80 col2
----
-1

skipif mysql # not compatible
query I rowsort label-5089
SELECT - 98 / + + 80 col2
----
-1

query III rowsort
SELECT - 9 AS col1, 43 + + 16 AS col2, - ( + 62 ) col0
----
-9
59
-62

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5091
SELECT ALL ( CAST( CAST( 4 AS SIGNED ) AS SIGNED ) ), - 43 AS col1
----
4
-43

skipif mysql # not compatible
query II rowsort label-5091
SELECT ALL ( CAST ( CAST ( 4 AS INTEGER ) AS INTEGER ) ), - 43 AS col1
----
4
-43

query II rowsort
SELECT - 81, - 73 * 13 AS col1
----
-81
-949

onlyif mysql # aggregate syntax: 
query I rowsort label-5093
SELECT DISTINCT + 71 * - - 69 * + COUNT( * ) * - + COUNT( * )
----
-4899

skipif mysql # not compatible
query I rowsort label-5093
SELECT DISTINCT + 71 * - - 69 * + COUNT ( * ) * - + COUNT ( * )
----
-4899

query I rowsort
SELECT - 34 * + COALESCE ( - 14, 13 ) * - 75
----
-35700

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5095
SELECT - CAST( NULL AS SIGNED ) + - 67 / + 54
----
NULL

skipif mysql # not compatible
query I rowsort label-5095
SELECT - CAST ( NULL AS INTEGER ) + - 67 / + 54
----
NULL

query II rowsort
SELECT 39 AS col0, + 67
----
39
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5097
SELECT DISTINCT + CASE - - COALESCE ( - - NULLIF ( + 72, - 16 ), + 95 + - - COUNT( * ) ) WHEN + + 65 + - - 99 THEN NULL WHEN - - 85 THEN - 96 * - COALESCE ( - 3, - 98 ) ELSE NULL END * + 93
----
NULL

skipif mysql # not compatible
query I rowsort label-5097
SELECT DISTINCT + CASE - - COALESCE ( - - NULLIF ( + 72, - 16 ), + 95 + - - COUNT ( * ) ) WHEN + + 65 + - - 99 THEN NULL WHEN - - 85 THEN - 96 * - COALESCE ( - 3, - 98 ) ELSE NULL END * + 93
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5098
SELECT ALL CAST( NULL AS SIGNED ), ( + 71 ) AS col1
----
NULL
71

skipif mysql # not compatible
query II rowsort label-5098
SELECT ALL CAST ( NULL AS INTEGER ), ( + 71 ) AS col1
----
NULL
71

query I rowsort
SELECT - 39 - 68 * - - 71 AS col1
----
-4867

query I rowsort
SELECT - 98 * + 7
----
-686

query I rowsort
SELECT - 15 + - 41
----
-56

query I rowsort
SELECT + COALESCE ( + 60, + 80 ) AS col0
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5103
SELECT DISTINCT - 61 DIV - - COUNT( * ) + + 8 col1
----
-53

skipif mysql # not compatible
query I rowsort label-5103
SELECT DISTINCT - 61 / - - COUNT ( * ) + + 8 col1
----
-53

query II rowsort
SELECT ALL + 99 AS col0, 74
----
99
74

onlyif mysql # DIV for integer division: 
query I rowsort label-5105
SELECT ALL + ( - - 30 ) DIV + 38 + - 10 * - + 3
----
30

skipif mysql # not compatible
query I rowsort label-5105
SELECT ALL + ( - - 30 ) / + 38 + - 10 * - + 3
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5106
SELECT CAST( NULL AS SIGNED ), 99 AS col1
----
NULL
99

skipif mysql # not compatible
query II rowsort label-5106
SELECT CAST ( NULL AS INTEGER ), 99 AS col1
----
NULL
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5107
SELECT ALL - 29 DIV ( - + COUNT( * ) ) + - COUNT( * ) + + COUNT( ALL + 2 ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-5107
SELECT ALL - 29 / ( - + COUNT ( * ) ) + - COUNT ( * ) + + COUNT ( ALL + 2 ) AS col2
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5108
SELECT 0 * 60 + + 21 * + 59 + + + COUNT( * ) - + 37 * - 30 * + 32 * 47
----
1670680

skipif mysql # not compatible
query I rowsort label-5108
SELECT 0 * 60 + + 21 * + 59 + + + COUNT ( * ) - + 37 * - 30 * + 32 * 47
----
1670680

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5109
SELECT + - 48 * - - MAX( - 0 ) + + 7 DIV 93 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5109
SELECT + - 48 * - - MAX ( - 0 ) + + 7 / 93 AS col0
----
0

query I rowsort
SELECT - + 87 + + 84 col0
----
-3

query I rowsort
SELECT + + 82 * + ( - 66 ) * + + 91
----
-492492

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5112
SELECT ALL + CAST( - + 70 AS SIGNED ) * - - 46
----
-3220

skipif mysql # not compatible
query I rowsort label-5112
SELECT ALL + CAST ( - + 70 AS INTEGER ) * - - 46
----
-3220

onlyif mysql # aggregate syntax: 
query I rowsort label-5113
SELECT ALL + 62 * - COUNT( * ) + + - COUNT( * )
----
-63

skipif mysql # not compatible
query I rowsort label-5113
SELECT ALL + 62 * - COUNT ( * ) + + - COUNT ( * )
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-5114
SELECT + COUNT( * ) * - ( + 60 ) + 7 + 90 * + 9
----
757

skipif mysql # not compatible
query I rowsort label-5114
SELECT + COUNT ( * ) * - ( + 60 ) + 7 + 90 * + 9
----
757

onlyif mysql # aggregate syntax: 
query II rowsort label-5115
SELECT ALL 21 * + + 54 + + 81 * - - 75 AS col1, - MIN( - 85 ) * + + 82 - + SUM( ALL - 87 ) AS col1
----
7209
7057

skipif mysql # not compatible
query II rowsort label-5115
SELECT ALL 21 * + + 54 + + 81 * - - 75 AS col1, - MIN ( - 85 ) * + + 82 - + SUM ( ALL - 87 ) AS col1
----
7209
7057

query II rowsort
SELECT ALL - - 58, - 60 AS col0
----
58
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-5117
SELECT ALL 33 - + COUNT( * )
----
32

skipif mysql # not compatible
query I rowsort label-5117
SELECT ALL 33 - + COUNT ( * )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-5118
SELECT - COUNT( * ) * 72 * - 62 * 38 col2
----
169632

skipif mysql # not compatible
query I rowsort label-5118
SELECT - COUNT ( * ) * 72 * - 62 * 38 col2
----
169632

query I rowsort
SELECT ALL 72 * 94
----
6768

query I rowsort
SELECT + NULLIF ( + 22, + 31 ) + 2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5121
SELECT 15 + + COUNT( ALL - 45 )
----
16

skipif mysql # not compatible
query I rowsort label-5121
SELECT 15 + + COUNT ( ALL - 45 )
----
16

query II rowsort
SELECT - 31, 94 * + 56 AS col0
----
-31
5264

query I rowsort
SELECT ALL + 91 - ( - 8 )
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5124
SELECT + COUNT( - 0 ) * + 34 DIV + 21 + + 85 AS col2
----
86

skipif mysql # not compatible
query I rowsort label-5124
SELECT + COUNT ( - 0 ) * + 34 / + 21 + + 85 AS col2
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5125
SELECT CAST( + 38 AS SIGNED ) * - 44 / 54 * NULLIF ( - + 72, 2 - + 46 * + COUNT( * ) + - MAX( DISTINCT 80 ) ) * CAST( - CASE + 15 WHEN - COUNT( * ) + + 74 * 59 THEN - NULLIF ( 49, 59 ) WHEN - 78 + 94 THEN 57 + 57 END AS SIGNED ) + 47
----
NULL

skipif mysql # not compatible
query I rowsort label-5125
SELECT CAST ( + 38 AS INTEGER ) * - 44 / 54 * NULLIF ( - + 72, 2 - + 46 * + COUNT ( * ) + - MAX ( DISTINCT 80 ) ) * CAST ( - CASE + 15 WHEN - COUNT ( * ) + + 74 * 59 THEN - NULLIF ( 49, 59 ) WHEN - 78 + 94 THEN 57 + 57 END AS INTEGER ) + 47
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5126
SELECT ALL COUNT( + - 16 )
----
1

skipif mysql # not compatible
query I rowsort label-5126
SELECT ALL COUNT ( + - 16 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5127
SELECT - 91 + COUNT( ALL 41 ) AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-5127
SELECT - 91 + COUNT ( ALL 41 ) AS col1
----
-90

query II rowsort
SELECT 71 + 37, 10 AS col2
----
108
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-5129
SELECT 20 DIV COUNT( * ) AS col1, + 61, 96 AS col1
----
20
61
96

skipif mysql # not compatible
query III rowsort label-5129
SELECT 20 / COUNT ( * ) AS col1, + 61, 96 AS col1
----
20
61
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5130
SELECT 90 * + SUM( - + 36 )
----
-3240

skipif mysql # not compatible
query I rowsort label-5130
SELECT 90 * + SUM ( - + 36 )
----
-3240

query I rowsort
SELECT 26 + - 35 * 20 + - 77 AS col0
----
-751

onlyif mysql # aggregate syntax: 
query II rowsort label-5132
SELECT 35 + - COUNT( * ) AS col1, - MIN( ALL - 90 )
----
34
90

skipif mysql # not compatible
query II rowsort label-5132
SELECT 35 + - COUNT ( * ) AS col1, - MIN ( ALL - 90 )
----
34
90

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5133
SELECT CAST( NULL AS SIGNED ) + + 76 + - - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5133
SELECT CAST ( NULL AS INTEGER ) + + 76 + - - CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5134
SELECT COUNT( * ) / - + CAST( NULL AS SIGNED ) * - 61
----
NULL

skipif mysql # not compatible
query I rowsort label-5134
SELECT COUNT ( * ) / - + CAST ( NULL AS INTEGER ) * - 61
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5135
SELECT 45 + + - COUNT( * ) + - 54
----
-10

skipif mysql # not compatible
query I rowsort label-5135
SELECT 45 + + - COUNT ( * ) + - 54
----
-10

query II rowsort
SELECT 51 + 56, + 81 col1
----
107
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5137
SELECT ALL - CAST( + 58 AS SIGNED ) + - 83 * - - ( 15 ) AS col0, 73 AS col0
----
-1303
73

skipif mysql # not compatible
query II rowsort label-5137
SELECT ALL - CAST ( + 58 AS INTEGER ) + - 83 * - - ( 15 ) AS col0, 73 AS col0
----
-1303
73

onlyif mysql # aggregate syntax: 
query I rowsort label-5138
SELECT ALL 98 + + MIN( + - 97 ) + + 50 col1
----
51

skipif mysql # not compatible
query I rowsort label-5138
SELECT ALL 98 + + MIN ( + - 97 ) + + 50 col1
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-5139
SELECT 35 DIV + COALESCE ( + - 91, + - 40 * + CASE - - 64 WHEN - 3 THEN NULL ELSE - - 27 END, + + 70 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-5139
SELECT 35 / + COALESCE ( + - 91, + - 40 * + CASE - - 64 WHEN - 3 THEN NULL ELSE - - 27 END, + + 70 ) col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5140
SELECT ALL - MAX( - + 34 ) AS col0
----
34

skipif mysql # not compatible
query I rowsort label-5140
SELECT ALL - MAX ( - + 34 ) AS col0
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5141
SELECT DISTINCT - CAST( 33 AS SIGNED ) + + 60 AS col2
----
27

skipif mysql # not compatible
query I rowsort label-5141
SELECT DISTINCT - CAST ( 33 AS INTEGER ) + + 60 AS col2
----
27

onlyif mysql # DIV for integer division: 
query II rowsort label-5142
SELECT 70 + + - 8 AS col2, 41 * + 33 + - + 93 DIV 75
----
62
1352

skipif mysql # not compatible
query II rowsort label-5142
SELECT 70 + + - 8 AS col2, 41 * + 33 + - + 93 / 75
----
62
1352

onlyif mysql # aggregate syntax: 
query I rowsort label-5143
SELECT 41 * CASE + 51 WHEN - + COUNT( * ) * + 59 + + NULLIF ( - - COUNT( * ), 97 - 72 ) + 66 * + COUNT( * ) * + - 90 + - 8 + COUNT( DISTINCT ( 68 ) ) THEN CASE + CASE + 38 WHEN - 0 THEN - COUNT( 66 ) / + 99 - - 30 WHEN - AVG ( 21 ) * - 23 THEN NULL END WHEN - 99 THEN COUNT( * ) WHEN - MIN( - 50 ) THEN NULL WHEN COUNT( * ) * + 16 + - 95 THEN NULL END ELSE - 88 * + MIN( 23 ) END
----
-82984

skipif mysql # not compatible
query I rowsort label-5143
SELECT 41 * CASE + 51 WHEN - + COUNT ( * ) * + 59 + + NULLIF ( - - COUNT ( * ), 97 - 72 ) + 66 * + COUNT ( * ) * + - 90 + - 8 + COUNT ( DISTINCT ( 68 ) ) THEN CASE + CASE + 38 WHEN - 0 THEN - COUNT ( 66 ) / + 99 - - 30 WHEN - AVG ( 21 ) * - 23 THEN NULL END WHEN - 99 THEN COUNT ( * ) WHEN - MIN ( - 50 ) THEN NULL WHEN COUNT ( * ) * + 16 + - 95 THEN NULL END ELSE - 88 * + MIN ( 23 ) END
----
-82984

query I rowsort
SELECT - 50 * 15 + + 30
----
-720

query II rowsort
SELECT ALL - + 69 + 82 AS col1, 28 AS col0
----
13
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5146
SELECT ALL 3 - + + COUNT( * ) * COUNT( * ) DIV 7 * - MAX( ALL - 88 ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-5146
SELECT ALL 3 - + + COUNT ( * ) * COUNT ( * ) / 7 * - MAX ( ALL - 88 ) AS col2
----
3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5147
SELECT 37 * + - COUNT( * ) + + 19 + + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5147
SELECT 37 * + - COUNT ( * ) + + 19 + + CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT + 26 * + + 22 * + 94
----
53768

query I rowsort
SELECT 40 + - 58 - 83 AS col2
----
-101

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5150
SELECT - CAST( 95 AS SIGNED )
----
-95

skipif mysql # not compatible
query I rowsort label-5150
SELECT - CAST ( 95 AS INTEGER )
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-5151
SELECT - 65 * - ( 84 ) * + 52 + + 45 + + SUM( 38 ) + - 93 + + 77 AS col1
----
283987

skipif mysql # not compatible
query I rowsort label-5151
SELECT - 65 * - ( 84 ) * + 52 + + 45 + + SUM ( 38 ) + - 93 + + 77 AS col1
----
283987

onlyif mysql # aggregate syntax: 
query II rowsort label-5152
SELECT ALL + ( - + NULLIF ( - 39, + 49 * + 83 + - - 33 ) ) - 83 AS col0, CASE - - NULLIF ( - - ( - COUNT( * ) ), + 55 * - 77 ) WHEN - 23 + COUNT( * ) * 75 THEN - 77 + 78 * 15 WHEN - 21 THEN NULL ELSE NULL END
----
-44
NULL

skipif mysql # not compatible
query II rowsort label-5152
SELECT ALL + ( - + NULLIF ( - 39, + 49 * + 83 + - - 33 ) ) - 83 AS col0, CASE - - NULLIF ( - - ( - COUNT ( * ) ), + 55 * - 77 ) WHEN - 23 + COUNT ( * ) * 75 THEN - 77 + 78 * 15 WHEN - 21 THEN NULL ELSE NULL END
----
-44
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5153
SELECT + 98 * 63 - + 25 + + COUNT( * ) * - ( - 91 ) AS col0
----
6240

skipif mysql # not compatible
query I rowsort label-5153
SELECT + 98 * 63 - + 25 + + COUNT ( * ) * - ( - 91 ) AS col0
----
6240

query I rowsort
SELECT ALL 6 * + 67
----
402

onlyif mysql # aggregate syntax: 
query I rowsort label-5155
SELECT DISTINCT - 71 * + 91 + + NULLIF ( - ( - + 78 ), - - 10 ) + + COUNT( ALL 40 ) + - 49 AS col1
----
-6431

skipif mysql # not compatible
query I rowsort label-5155
SELECT DISTINCT - 71 * + 91 + + NULLIF ( - ( - + 78 ), - - 10 ) + + COUNT ( ALL 40 ) + - 49 AS col1
----
-6431

onlyif mysql # aggregate syntax: 
query II rowsort label-5156
SELECT 9 - 43 * 40 col2, 41 * - COUNT( * )
----
-1711
-41

skipif mysql # not compatible
query II rowsort label-5156
SELECT 9 - 43 * 40 col2, 41 * - COUNT ( * )
----
-1711
-41

query I rowsort
SELECT ALL + 60 * 31 AS col1
----
1860

query II rowsort
SELECT DISTINCT - ( - ( + - ( + ( + - 63 ) ) ) ), - 84 + + + 5 AS col2
----
63
-79

query I rowsort
SELECT DISTINCT NULLIF ( - 87, 38 ) AS col1
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5160
SELECT ALL - 68 * + - CASE - ( - 46 ) WHEN - - COUNT( * ) THEN - CASE - 61 WHEN + COALESCE ( 95, + 47 ) THEN + 66 WHEN + ( AVG ( DISTINCT - 40 ) ) THEN + 13 * NULLIF ( 18, 69 ) END / 42 END / CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5160
SELECT ALL - 68 * + - CASE - ( - 46 ) WHEN - - COUNT ( * ) THEN - CASE - 61 WHEN + COALESCE ( 95, + 47 ) THEN + 66 WHEN + ( AVG ( DISTINCT - 40 ) ) THEN + 13 * NULLIF ( 18, 69 ) END / 42 END / CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT 99 * - 91 col0
----
-9009

query I rowsort
SELECT 29 - - 39 col0
----
68

query I rowsort
SELECT 0 * - 96 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5164
SELECT COUNT( * ) * 70 AS col2
----
70

skipif mysql # not compatible
query I rowsort label-5164
SELECT COUNT ( * ) * 70 AS col2
----
70

query II rowsort
SELECT ALL 87 AS col2, - 16 AS col0
----
87
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-5166
SELECT 59 AS col2, + MAX( + 88 )
----
59
88

skipif mysql # not compatible
query II rowsort label-5166
SELECT 59 AS col2, + MAX ( + 88 )
----
59
88

query I rowsort
SELECT DISTINCT + 26 + + 31 AS col1
----
57

onlyif mysql # aggregate syntax: 
query II rowsort label-5168
SELECT ALL MAX( + + 79 ) + - 21, ( + 52 ) col1
----
58
52

skipif mysql # not compatible
query II rowsort label-5168
SELECT ALL MAX ( + + 79 ) + - 21, ( + 52 ) col1
----
58
52

query I rowsort
SELECT ALL - 63 + - - 17 * + 64 AS col2
----
1025

query I rowsort
SELECT ALL + 9 * ( 88 )
----
792

query II rowsort
SELECT 88 AS col2, - 30
----
88
-30

query I rowsort
SELECT 25 + + 75 AS col1
----
100

query I rowsort
SELECT ALL 44 + - 59
----
-15

query I rowsort
SELECT 76 * - 4 AS col0
----
-304

query I rowsort
SELECT 50 + 27
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5176
SELECT NULLIF ( - 89, 22 ) * SUM( ALL - + 53 ) * - + 19 + 5
----
-89618

skipif mysql # not compatible
query I rowsort label-5176
SELECT NULLIF ( - 89, 22 ) * SUM ( ALL - + 53 ) * - + 19 + 5
----
-89618

query I rowsort
SELECT DISTINCT - + NULLIF ( + 68, - 60 + - 28 )
----
-68

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5178
SELECT ALL CAST( NULL AS DECIMAL ) * + + ( - - 67 ) + - 24 - - 65 * - 3 AS col0, SUM( - ( - - ( 17 ) ) ) AS col0
----
NULL
-17

skipif mysql # not compatible
query II rowsort label-5178
SELECT ALL CAST ( NULL AS REAL ) * + + ( - - 67 ) + - 24 - - 65 * - 3 AS col0, SUM ( - ( - - ( 17 ) ) ) AS col0
----
NULL
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-5179
SELECT - - MAX( 87 ) * + 42 - + - ( - 90 )
----
3564

skipif mysql # not compatible
query I rowsort label-5179
SELECT - - MAX ( 87 ) * + 42 - + - ( - 90 )
----
3564

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5180
SELECT 35 * + 92 - + - CASE CAST( + - 1 AS DECIMAL ) WHEN + 67 THEN - 65 / + 32 * + - 9 END * + ( 45 ) - + 1 + - 22 + - 62
----
NULL

skipif mysql # not compatible
query I rowsort label-5180
SELECT 35 * + 92 - + - CASE CAST ( + - 1 AS REAL ) WHEN + 67 THEN - 65 / + 32 * + - 9 END * + ( 45 ) - + 1 + - 22 + - 62
----
NULL

query I rowsort
SELECT ALL + 60 * - + 47 * - 50 - - + 88 - - 14 AS col2
----
141102

onlyif mysql # aggregate syntax: 
query I rowsort label-5182
SELECT - + COUNT( * ) * - 56 + - 74 col0
----
-18

skipif mysql # not compatible
query I rowsort label-5182
SELECT - + COUNT ( * ) * - 56 + - 74 col0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-5183
SELECT ALL COUNT( * ) * + - COUNT( 2 )
----
-1

skipif mysql # not compatible
query I rowsort label-5183
SELECT ALL COUNT ( * ) * + - COUNT ( 2 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5184
SELECT - + MAX( - - 24 ) * + - 53 * + 95 * - 10 AS col0
----
-1208400

skipif mysql # not compatible
query I rowsort label-5184
SELECT - + MAX ( - - 24 ) * + - 53 * + 95 * - 10 AS col0
----
-1208400

onlyif mysql # aggregate syntax: 
query I rowsort label-5185
SELECT + ( + COUNT( * ) ) * 5 + - 86
----
-81

skipif mysql # not compatible
query I rowsort label-5185
SELECT + ( + COUNT ( * ) ) * 5 + - 86
----
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-5186
SELECT ALL + 21, + COUNT( * ) AS col0
----
21
1

skipif mysql # not compatible
query II rowsort label-5186
SELECT ALL + 21, + COUNT ( * ) AS col0
----
21
1

query II rowsort
SELECT ALL + 13 AS col0, 74
----
13
74

onlyif mysql # aggregate syntax: 
query II rowsort label-5188
SELECT - COALESCE ( 9, - 92 ), + MIN( - 8 ) * - 70 AS col2
----
-9
560

skipif mysql # not compatible
query II rowsort label-5188
SELECT - COALESCE ( 9, - 92 ), + MIN ( - 8 ) * - 70 AS col2
----
-9
560

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5189
SELECT + + 53 + - 11 + - + COUNT( ALL - 51 ) + MIN( ALL 1 ) DIV 22 + - 39 AS col1, 68 AS col2
----
2
68

skipif mysql # not compatible
query II rowsort label-5189
SELECT + + 53 + - 11 + - + COUNT ( ALL - 51 ) + MIN ( ALL 1 ) / 22 + - 39 AS col1, 68 AS col2
----
2
68

onlyif mysql # DIV for integer division: 
query I rowsort label-5190
SELECT + 28 DIV - - 19 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5190
SELECT + 28 / - - 19 AS col0
----
1

query I rowsort
SELECT + 87 + - 47
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5192
SELECT DISTINCT + COUNT( * ) * + + COUNT( DISTINCT 53 )
----
1

skipif mysql # not compatible
query I rowsort label-5192
SELECT DISTINCT + COUNT ( * ) * + + COUNT ( DISTINCT 53 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5193
SELECT DISTINCT - 94 + + COUNT( * ) * + 29 col1
----
-65

skipif mysql # not compatible
query I rowsort label-5193
SELECT DISTINCT - 94 + + COUNT ( * ) * + 29 col1
----
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-5194
SELECT ALL + NULLIF ( - 2, 76 ) DIV + 41
----
0

skipif mysql # not compatible
query I rowsort label-5194
SELECT ALL + NULLIF ( - 2, 76 ) / + 41
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5195
SELECT - 92 + + 69 + - COUNT( * ) * - 41 * + 77
----
3134

skipif mysql # not compatible
query I rowsort label-5195
SELECT - 92 + + 69 + - COUNT ( * ) * - 41 * + 77
----
3134

query I rowsort
SELECT DISTINCT + 22 * 5 * + + 17
----
1870

onlyif mysql # aggregate syntax: 
query I rowsort label-5197
SELECT - MIN( 88 ) AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-5197
SELECT - MIN ( 88 ) AS col2
----
-88

query I rowsort
SELECT DISTINCT + 50 + - - 53 * + 47
----
2541

query I rowsort
SELECT DISTINCT - ( 86 ) + - - 70
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-5200
SELECT + COUNT( * ) + + ( + + 36 )
----
37

skipif mysql # not compatible
query I rowsort label-5200
SELECT + COUNT ( * ) + + ( + + 36 )
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-5201
SELECT ALL NULLIF ( - - 60, + 92 * + 71 + + + 56 * + CASE + - ( COALESCE ( - 14, + 43 + - ( + 65 ) ) ) WHEN + MAX( + 96 ) * 83 THEN + 27 WHEN + COUNT( * ) * + COUNT( * ) THEN NULL ELSE NULL END + COALESCE ( + 17, + 16 ) * 63 ) + - 71 * + 85
----
-5975

skipif mysql # not compatible
query I rowsort label-5201
SELECT ALL NULLIF ( - - 60, + 92 * + 71 + + + 56 * + CASE + - ( COALESCE ( - 14, + 43 + - ( + 65 ) ) ) WHEN + MAX ( + 96 ) * 83 THEN + 27 WHEN + COUNT ( * ) * + COUNT ( * ) THEN NULL ELSE NULL END + COALESCE ( + 17, + 16 ) * 63 ) + - 71 * + 85
----
-5975

query I rowsort
SELECT + 15 + + + 89 col1
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-5203
SELECT - MIN( DISTINCT - 30 ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-5203
SELECT - MIN ( DISTINCT - 30 ) AS col0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5204
SELECT + COUNT( * ) * + + 26 col0
----
26

skipif mysql # not compatible
query I rowsort label-5204
SELECT + COUNT ( * ) * + + 26 col0
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5205
SELECT ALL + 32 - + - 46 * - - 36 * - + CASE - 34 WHEN 77 * CASE + - 0 WHEN - + CASE - COUNT( * ) WHEN - ( - 35 ) / SUM( ALL - 41 ) / - 83 THEN NULL ELSE 35 * + 87 END THEN + ( ( CAST( COALESCE ( 29, 28 * - ( - 35 ) + COALESCE ( - NULLIF ( - 73, + 73 ) + COUNT( * ), 64, 34 ) ) AS SIGNED ) ) ) * + 11 END THEN SUM( COALESCE ( 81, - COALESCE ( 54, 39 - - 67, - 20 * 38 ) ) ) + - 87 WHEN 30 THEN - 72 + - 15 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5205
SELECT ALL + 32 - + - 46 * - - 36 * - + CASE - 34 WHEN 77 * CASE + - 0 WHEN - + CASE - COUNT ( * ) WHEN - ( - 35 ) / SUM ( ALL - 41 ) / - 83 THEN NULL ELSE 35 * + 87 END THEN + ( ( CAST ( COALESCE ( 29, 28 * - ( - 35 ) + COALESCE ( - NULLIF ( - 73, + 73 ) + COUNT ( * ), 64, 34 ) ) AS INTEGER ) ) ) * + 11 END THEN SUM ( COALESCE ( 81, - COALESCE ( 54, 39 - - 67, - 20 * 38 ) ) ) + - 87 WHEN 30 THEN - 72 + - 15 END AS col2
----
NULL

query I rowsort
SELECT DISTINCT 32 * - ( + 78 )
----
-2496

onlyif mysql # aggregate syntax: 
query I rowsort label-5207
SELECT DISTINCT - 86 * - + COUNT( * ) * - COUNT( * ) * + 99 + + 60 + + 27 + - - ( + 12 )
----
-8415

skipif mysql # not compatible
query I rowsort label-5207
SELECT DISTINCT - 86 * - + COUNT ( * ) * - COUNT ( * ) * + 99 + + 60 + + 27 + - - ( + 12 )
----
-8415

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5208
SELECT + COUNT( * ) / - CAST( NULL AS SIGNED ) * 19 * - 65 * 37 + 24
----
NULL

skipif mysql # not compatible
query I rowsort label-5208
SELECT + COUNT ( * ) / - CAST ( NULL AS INTEGER ) * 19 * - 65 * 37 + 24
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5209
SELECT ALL COALESCE ( - 23, + + 7 + - 20 ) * + COUNT( * )
----
-23

skipif mysql # not compatible
query I rowsort label-5209
SELECT ALL COALESCE ( - 23, + + 7 + - 20 ) * + COUNT ( * )
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-5210
SELECT DISTINCT + + SUM( ALL - 98 )
----
-98

skipif mysql # not compatible
query I rowsort label-5210
SELECT DISTINCT + + SUM ( ALL - 98 )
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-5211
SELECT ALL + SUM( + + 65 )
----
65

skipif mysql # not compatible
query I rowsort label-5211
SELECT ALL + SUM ( + + 65 )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-5212
SELECT DISTINCT 9 * MAX( ALL + 91 ) AS col0
----
819

skipif mysql # not compatible
query I rowsort label-5212
SELECT DISTINCT 9 * MAX ( ALL + 91 ) AS col0
----
819

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5213
SELECT DISTINCT - - ( - - 66 ) DIV 78 * + - SUM( ALL 72 ) + 39 AS col0
----
39

skipif mysql # not compatible
query I rowsort label-5213
SELECT DISTINCT - - ( - - 66 ) / 78 * + - SUM ( ALL 72 ) + 39 AS col0
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5214
SELECT + + NULLIF ( - SUM( DISTINCT + 36 ), + + 29 ) * + CASE - + 49 WHEN - ( 15 ) THEN + COUNT( * ) + - COALESCE ( + ( - CAST( NULL AS DECIMAL ) ), CAST( NULL AS SIGNED ) ) WHEN CAST( NULL AS SIGNED ) + MAX( ( 91 ) ) * CAST( NULL AS SIGNED ) THEN 26 + + 16 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5214
SELECT + + NULLIF ( - SUM ( DISTINCT + 36 ), + + 29 ) * + CASE - + 49 WHEN - ( 15 ) THEN + COUNT ( * ) + - COALESCE ( + ( - CAST ( NULL AS REAL ) ), CAST ( NULL AS INTEGER ) ) WHEN CAST ( NULL AS INTEGER ) + MAX ( ( 91 ) ) * CAST ( NULL AS INTEGER ) THEN 26 + + 16 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5215
SELECT + 39 DIV + 73 * 55 + + NULLIF ( 15, 58 DIV + 60 + 80 ) * - 15 AS col0, - 25 * 82 DIV - CAST( NULLIF ( - 21, 12 + + 46 * + COUNT( * ) ) AS SIGNED ) AS col0
----
-225
-97

skipif mysql # not compatible
query II rowsort label-5215
SELECT + 39 / + 73 * 55 + + NULLIF ( 15, 58 / + 60 + 80 ) * - 15 AS col0, - 25 * 82 / - CAST ( NULLIF ( - 21, 12 + + 46 * + COUNT ( * ) ) AS INTEGER ) AS col0
----
-225
-97

onlyif mysql # DIV for integer division: 
query II rowsort label-5216
SELECT ALL - 29 * 52 + - 91 AS col0, + 96 + - 73 DIV - + 56 AS col1
----
-1599
97

skipif mysql # not compatible
query II rowsort label-5216
SELECT ALL - 29 * 52 + - 91 AS col0, + 96 + - 73 / - + 56 AS col1
----
-1599
97

query I rowsort
SELECT DISTINCT - ( + + 55 ) * - 99 * 94 * - 44 + - 47 AS col0
----
-22520567

onlyif mysql # aggregate syntax: 
query I rowsort label-5218
SELECT DISTINCT COALESCE ( - 96, - ( + 65 ) + - 65 + - 42, 73, COUNT( * ) ) * + - ( + NULLIF ( - 91, + COUNT( + 99 ) ) )
----
-8736

skipif mysql # not compatible
query I rowsort label-5218
SELECT DISTINCT COALESCE ( - 96, - ( + 65 ) + - 65 + - 42, 73, COUNT ( * ) ) * + - ( + NULLIF ( - 91, + COUNT ( + 99 ) ) )
----
-8736

query I rowsort
SELECT DISTINCT COALESCE ( + - 6, - + ( - 85 ), + 12 ) AS col0
----
-6

query I rowsort
SELECT DISTINCT - 19 * + 73 + 27 AS col0
----
-1360

query I rowsort
SELECT - 95 * + 81 * + 83 + - 7 + - CASE - + 66 WHEN + 14 + + AVG ( + 53 ) THEN - - AVG ( DISTINCT - 40 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5222
SELECT - NULLIF ( - - 55, - 96 * 19 ) * - + 99 col0, + 35 * - MAX( DISTINCT 37 ) + + 82 - - + 13
----
5445
-1200

skipif mysql # not compatible
query II rowsort label-5222
SELECT - NULLIF ( - - 55, - 96 * 19 ) * - + 99 col0, + 35 * - MAX ( DISTINCT 37 ) + + 82 - - + 13
----
5445
-1200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5223
SELECT + CAST( NULL AS SIGNED ) * 70 - MIN( 25 ) * - 40 + + 47 * 54
----
NULL

skipif mysql # not compatible
query I rowsort label-5223
SELECT + CAST ( NULL AS INTEGER ) * 70 - MIN ( 25 ) * - 40 + + 47 * 54
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5224
SELECT DISTINCT - 91 DIV - 6 AS col0
----
15

skipif mysql # not compatible
query I rowsort label-5224
SELECT DISTINCT - 91 / - 6 AS col0
----
15

query I rowsort
SELECT - 85 * + 69 * + - 8 * + - 2
----
-93840

onlyif mysql # aggregate syntax: 
query II rowsort label-5226
SELECT + 91 * SUM( - ( - 43 ) ) * + + 1, - 82 AS col1
----
3913
-82

skipif mysql # not compatible
query II rowsort label-5226
SELECT + 91 * SUM ( - ( - 43 ) ) * + + 1, - 82 AS col1
----
3913
-82

query I rowsort
SELECT ALL - 73 * + + 70 AS col2
----
-5110

query I rowsort
SELECT DISTINCT + 19 - 21 AS col2
----
-2

query I rowsort
SELECT ALL 91 - - 24
----
115

query I rowsort
SELECT ALL - 74 * + 59 * - ( + 13 ) * 88
----
4994704

query I rowsort
SELECT 76 - 94 col1
----
-18

query I rowsort
SELECT 50 + + 33
----
83

onlyif mysql # aggregate syntax: 
query II rowsort label-5233
SELECT ALL + + 50 * - - MIN( - ( - 15 ) ) + + 22 AS col1, ( - 38 ) AS col0
----
772
-38

skipif mysql # not compatible
query II rowsort label-5233
SELECT ALL + + 50 * - - MIN ( - ( - 15 ) ) + + 22 AS col1, ( - 38 ) AS col0
----
772
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5234
SELECT 46 + 46 DIV - 90 + - + COUNT( * ) + 61 AS col2
----
106

skipif mysql # not compatible
query I rowsort label-5234
SELECT 46 + 46 / - 90 + - + COUNT ( * ) + 61 AS col2
----
106

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5235
SELECT 92 * - CAST( + 32 AS SIGNED ) + + 46
----
-2898

skipif mysql # not compatible
query I rowsort label-5235
SELECT 92 * - CAST ( + 32 AS INTEGER ) + + 46
----
-2898

query I rowsort
SELECT 23 + + 56 AS col0
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-5237
SELECT 66 * + MIN( DISTINCT + 52 ), - COUNT( - 65 ) * + + 62 AS col0
----
3432
-62

skipif mysql # not compatible
query II rowsort label-5237
SELECT 66 * + MIN ( DISTINCT + 52 ), - COUNT ( - 65 ) * + + 62 AS col0
----
3432
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-5238
SELECT MAX( DISTINCT + 79 )
----
79

skipif mysql # not compatible
query I rowsort label-5238
SELECT MAX ( DISTINCT + 79 )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-5239
SELECT ALL 72 * - COUNT( * ) + - COUNT( * )
----
-73

skipif mysql # not compatible
query I rowsort label-5239
SELECT ALL 72 * - COUNT ( * ) + - COUNT ( * )
----
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5240
SELECT ALL 16 + 82 - - 10 * - COUNT( * ) * - + 3 DIV - + 81 + 39
----
137

skipif mysql # not compatible
query I rowsort label-5240
SELECT ALL 16 + 82 - - 10 * - COUNT ( * ) * - + 3 / - + 81 + 39
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-5241
SELECT ALL COUNT( * ) * + 43 col0
----
43

skipif mysql # not compatible
query I rowsort label-5241
SELECT ALL COUNT ( * ) * + 43 col0
----
43

query I rowsort
SELECT DISTINCT ( + 78 ) + - 5
----
73

query I rowsort
SELECT DISTINCT 57 * 53 AS col1
----
3021

onlyif mysql # aggregate syntax: 
query II rowsort label-5244
SELECT DISTINCT - SUM( ALL + 49 ) + - 57, 81 AS col0
----
-106
81

skipif mysql # not compatible
query II rowsort label-5244
SELECT DISTINCT - SUM ( ALL + 49 ) + - 57, 81 AS col0
----
-106
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5245
SELECT ALL + NULLIF ( CASE + COUNT( * ) WHEN ( 17 ) + 19 THEN - 22 WHEN + COUNT( * ) * - + COALESCE ( + - 65, - 53 ) THEN NULL WHEN - + 94 - 37 * + 50 THEN NULL END, 48 ) + - ( - AVG ( ALL - 45 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5245
SELECT ALL + NULLIF ( CASE + COUNT ( * ) WHEN ( 17 ) + 19 THEN - 22 WHEN + COUNT ( * ) * - + COALESCE ( + - 65, - 53 ) THEN NULL WHEN - + 94 - 37 * + 50 THEN NULL END, 48 ) + - ( - AVG ( ALL - 45 ) ) AS col2
----
NULL

query I rowsort
SELECT + 35 + + - 61 AS col1
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-5247
SELECT + SUM( + - 92 )
----
-92

skipif mysql # not compatible
query I rowsort label-5247
SELECT + SUM ( + - 92 )
----
-92

query I rowsort
SELECT ALL - 57 + - - 77
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-5249
SELECT ALL - 46 * 72 + - + MIN( - 26 )
----
-3286

skipif mysql # not compatible
query I rowsort label-5249
SELECT ALL - 46 * 72 + - + MIN ( - 26 )
----
-3286

onlyif mysql # DIV for integer division: 
query I rowsort label-5250
SELECT ALL - 76 DIV 42 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5250
SELECT ALL - 76 / 42 AS col0
----
-1

query II rowsort
SELECT ALL - 71 AS col0, + 2 * 4
----
-71
8

onlyif mysql # aggregate syntax: 
query II rowsort label-5252
SELECT + 85, 84 - - COUNT( * )
----
85
85

skipif mysql # not compatible
query II rowsort label-5252
SELECT + 85, 84 - - COUNT ( * )
----
85
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5253
SELECT DISTINCT CAST( + 2 AS SIGNED ) - - 91
----
93

skipif mysql # not compatible
query I rowsort label-5253
SELECT DISTINCT CAST ( + 2 AS INTEGER ) - - 91
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5254
SELECT DISTINCT - COUNT( + NULLIF ( 78, + 17 + + 54 + + CAST( NULL AS SIGNED ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5254
SELECT DISTINCT - COUNT ( + NULLIF ( 78, + 17 + + 54 + + CAST ( NULL AS INTEGER ) ) )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5255
SELECT 64 + - 33 * + CAST( + 70 AS SIGNED ) - 56 * - CASE + 20 WHEN 30 THEN NULL WHEN + 60 * - + ( 26 ) - 21 THEN - - 35 ELSE NULL END / + ( 68 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5255
SELECT 64 + - 33 * + CAST ( + 70 AS INTEGER ) - 56 * - CASE + 20 WHEN 30 THEN NULL WHEN + 60 * - + ( 26 ) - 21 THEN - - 35 ELSE NULL END / + ( 68 )
----
NULL

query I rowsort
SELECT ALL 68 * - 31
----
-2108

query I rowsort
SELECT ALL 85 * - ( - - 87 )
----
-7395

query I rowsort
SELECT DISTINCT - 87 * - 3
----
261

onlyif mysql # aggregate syntax: 
query I rowsort label-5259
SELECT 85 + - + COUNT( * )
----
84

skipif mysql # not compatible
query I rowsort label-5259
SELECT 85 + - + COUNT ( * )
----
84

query II rowsort
SELECT 98 AS col2, 33 AS col2
----
98
33

onlyif mysql # aggregate syntax: 
query I rowsort label-5261
SELECT 95 + + + COUNT( + 74 ) AS col2
----
96

skipif mysql # not compatible
query I rowsort label-5261
SELECT 95 + + + COUNT ( + 74 ) AS col2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5262
SELECT - ( ( COUNT( * ) ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5262
SELECT - ( ( COUNT ( * ) ) ) AS col1
----
-1

query I rowsort
SELECT 60 * - - 16 AS col1
----
960

onlyif mysql # DIV for integer division: 
query I rowsort label-5264
SELECT ALL - - 35 DIV - 34
----
-1

skipif mysql # not compatible
query I rowsort label-5264
SELECT ALL - - 35 / - 34
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5265
SELECT DISTINCT + MAX( DISTINCT - 97 )
----
-97

skipif mysql # not compatible
query I rowsort label-5265
SELECT DISTINCT + MAX ( DISTINCT - 97 )
----
-97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5266
SELECT DISTINCT - 4 * - 95 * - CAST( NULL AS DECIMAL ) + - 42
----
NULL

skipif mysql # not compatible
query I rowsort label-5266
SELECT DISTINCT - 4 * - 95 * - CAST ( NULL AS REAL ) + - 42
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5267
SELECT DISTINCT + - COUNT( * ) + - CASE 47 WHEN CASE - 16 WHEN ( + - MAX( + + COALESCE ( - 4, - 1 ) ) ) + + 1 / + ( - + 56 ) THEN + ( + COUNT( * ) ) * 13 * COUNT( * ) WHEN 88 THEN NULL END THEN NULL WHEN - COUNT( * ) THEN - NULLIF ( 42, + COALESCE ( COUNT( ALL 28 ), - 12 * + COUNT( * ) + 92 * 73 ) * - 78 + ( 37 ) * 95 ) END / COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5267
SELECT DISTINCT + - COUNT ( * ) + - CASE 47 WHEN CASE - 16 WHEN ( + - MAX ( + + COALESCE ( - 4, - 1 ) ) ) + + 1 / + ( - + 56 ) THEN + ( + COUNT ( * ) ) * 13 * COUNT ( * ) WHEN 88 THEN NULL END THEN NULL WHEN - COUNT ( * ) THEN - NULLIF ( 42, + COALESCE ( COUNT ( ALL 28 ), - 12 * + COUNT ( * ) + 92 * 73 ) * - 78 + ( 37 ) * 95 ) END / COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5268
SELECT ALL - - ( - 89 ) + - + NULLIF ( COUNT( * ), - ( 87 ) )
----
-90

skipif mysql # not compatible
query I rowsort label-5268
SELECT ALL - - ( - 89 ) + - + NULLIF ( COUNT ( * ), - ( 87 ) )
----
-90

query I rowsort
SELECT DISTINCT - 54 + + 70 AS col0
----
16

query I rowsort
SELECT DISTINCT - 43 + + - ( + 37 )
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5271
SELECT + CASE 14 WHEN + AVG ( DISTINCT + 65 ) THEN NULL ELSE + 14 END / 15 + - CAST( - 13 AS SIGNED ) + 63 * CAST( NULL AS DECIMAL ) * + COUNT( * ), 94 AS col2
----
NULL
94

skipif mysql # not compatible
query II rowsort label-5271
SELECT + CASE 14 WHEN + AVG ( DISTINCT + 65 ) THEN NULL ELSE + 14 END / 15 + - CAST ( - 13 AS INTEGER ) + 63 * CAST ( NULL AS REAL ) * + COUNT ( * ), 94 AS col2
----
NULL
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5272
SELECT ( COUNT( * ) ) * - + 89
----
-89

skipif mysql # not compatible
query I rowsort label-5272
SELECT ( COUNT ( * ) ) * - + 89
----
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5273
SELECT + ( + 74 ) AS col1, - 7 DIV 12 + COUNT( * )
----
74
1

skipif mysql # not compatible
query II rowsort label-5273
SELECT + ( + 74 ) AS col1, - 7 / 12 + COUNT ( * )
----
74
1

query I rowsort
SELECT 9 * - + 2 + - 40 AS col0
----
-58

query I rowsort
SELECT + 67 * 0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-5276
SELECT + 79 AS col1, 21 DIV + 84
----
79
0

skipif mysql # not compatible
query II rowsort label-5276
SELECT + 79 AS col1, 21 / + 84
----
79
0

query II rowsort
SELECT 13, 25 + + + 26 col2
----
13
51

query I rowsort
SELECT - 33 * + - 2 - 20 AS col0
----
46

query II rowsort
SELECT ALL - 17 - - - 12, - 26 AS col1
----
-29
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-5280
SELECT COUNT( * ) + + 47 col0
----
48

skipif mysql # not compatible
query I rowsort label-5280
SELECT COUNT ( * ) + + 47 col0
----
48

query I rowsort
SELECT 28 + - 36 * - + 44 AS col2
----
1612

query I rowsort
SELECT 35 * CASE 9 WHEN + NULLIF ( - - 98, - 52 * + - 59 ) THEN 72 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5283
SELECT ALL 21 * - + 82, COUNT( * ) AS col1
----
-1722
1

skipif mysql # not compatible
query II rowsort label-5283
SELECT ALL 21 * - + 82, COUNT ( * ) AS col1
----
-1722
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5284
SELECT + MIN( DISTINCT + + 60 )
----
60

skipif mysql # not compatible
query I rowsort label-5284
SELECT + MIN ( DISTINCT + + 60 )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-5285
SELECT COUNT( * ) * 42 + + + 39
----
81

skipif mysql # not compatible
query I rowsort label-5285
SELECT COUNT ( * ) * 42 + + + 39
----
81

query I rowsort
SELECT DISTINCT 27 * 64
----
1728

onlyif mysql # aggregate syntax: 
query I rowsort label-5287
SELECT + 38 + + MIN( 40 )
----
78

skipif mysql # not compatible
query I rowsort label-5287
SELECT + 38 + + MIN ( 40 )
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-5288
SELECT DISTINCT 9 DIV - 82
----
0

skipif mysql # not compatible
query I rowsort label-5288
SELECT DISTINCT 9 / - 82
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5289
SELECT + COALESCE ( 46, - - 5 * - 49 + - + 68, - + 79 * + 79 ) DIV - + ( + - SUM( ALL 54 ) )
----
0

skipif mysql # not compatible
query I rowsort label-5289
SELECT + COALESCE ( 46, - - 5 * - 49 + - + 68, - + 79 * + 79 ) / - + ( + - SUM ( ALL 54 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5290
SELECT + COUNT( * ) * ( + + 76 ) AS col1
----
76

skipif mysql # not compatible
query I rowsort label-5290
SELECT + COUNT ( * ) * ( + + 76 ) AS col1
----
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5291
SELECT + COALESCE ( - - 19, - + 41, + 53 DIV + COUNT( * ) ) * - 95
----
-1805

skipif mysql # not compatible
query I rowsort label-5291
SELECT + COALESCE ( - - 19, - + 41, + 53 / + COUNT ( * ) ) * - 95
----
-1805

onlyif mysql # aggregate syntax: 
query II rowsort label-5292
SELECT ALL COUNT( * ) + 44, 39 + - 91 AS col1
----
45
-52

skipif mysql # not compatible
query II rowsort label-5292
SELECT ALL COUNT ( * ) + 44, 39 + - 91 AS col1
----
45
-52

query I rowsort
SELECT + COALESCE ( + + 54, - - 44 ) - - 83
----
137

onlyif mysql # DIV for integer division: 
query I rowsort label-5294
SELECT DISTINCT + 38 + + 40 + + 0 DIV - + 29 + 3 + + 99
----
180

skipif mysql # not compatible
query I rowsort label-5294
SELECT DISTINCT + 38 + + 40 + + 0 / - + 29 + 3 + + 99
----
180

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5295
SELECT - ( + 49 ) * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5295
SELECT - ( + 49 ) * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5296
SELECT - - 20 - + CAST( NULL AS SIGNED ) / MIN( + + ( - + 81 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5296
SELECT - - 20 - + CAST ( NULL AS INTEGER ) / MIN ( + + ( - + 81 ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5297
SELECT ALL COALESCE ( - + COUNT( * ), 40 )
----
-1

skipif mysql # not compatible
query I rowsort label-5297
SELECT ALL COALESCE ( - + COUNT ( * ), 40 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5298
SELECT + - 50 + 52 + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5298
SELECT + - 50 + 52 + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - - 70 * 69
----
4830

query I rowsort
SELECT ALL + 64 + + 67 AS col1
----
131

query II rowsort
SELECT + 90 * - 6 AS col1, + 37 * - - 49 * 93 * 98 AS col2
----
-540
16523682

onlyif mysql # aggregate syntax: 
query I rowsort label-5302
SELECT ALL - - COUNT( * ) + - ( - 54 )
----
55

skipif mysql # not compatible
query I rowsort label-5302
SELECT ALL - - COUNT ( * ) + - ( - 54 )
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-5303
SELECT - COUNT( * ) + ( - 41 )
----
-42

skipif mysql # not compatible
query I rowsort label-5303
SELECT - COUNT ( * ) + ( - 41 )
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5304
SELECT - COUNT( DISTINCT + + 2 ) AS col1, + 44 * - ( - - 75 ) * + COUNT( * ) + - ( + ( + CAST( NULL AS SIGNED ) ) ) + - + CAST( - COUNT( * ) AS SIGNED ) + - 44 + - 65 * 4 / + CASE - + 41 WHEN - - 64 + + CASE - 40 WHEN 76 THEN - COUNT( * ) / 45 ELSE NULL END THEN 76 ELSE NULL END * AVG ( ALL 91 ) + 78 * + MAX( DISTINCT + 46 ) AS col2
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-5304
SELECT - COUNT ( DISTINCT + + 2 ) AS col1, + 44 * - ( - - 75 ) * + COUNT ( * ) + - ( + ( + CAST ( NULL AS INTEGER ) ) ) + - + CAST ( - COUNT ( * ) AS INTEGER ) + - 44 + - 65 * 4 / + CASE - + 41 WHEN - - 64 + + CASE - 40 WHEN 76 THEN - COUNT ( * ) / 45 ELSE NULL END THEN 76 ELSE NULL END * AVG ( ALL 91 ) + 78 * + MAX ( DISTINCT + 46 ) AS col2
----
-1
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5305
SELECT ALL + CASE - - 59 WHEN 25 THEN NULL WHEN + 78 + 28 THEN 28 END * + 98 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5305
SELECT ALL + CASE - - 59 WHEN 25 THEN NULL WHEN + 78 + 28 THEN 28 END * + 98 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5306
SELECT ALL + 77 * COUNT( * ) - 69 + 24
----
32

skipif mysql # not compatible
query I rowsort label-5306
SELECT ALL + 77 * COUNT ( * ) - 69 + 24
----
32

query I rowsort
SELECT - 44 + + 12 * - 24
----
-332

onlyif mysql # aggregate syntax: 
query I rowsort label-5308
SELECT ALL + 13 * - + 45 * NULLIF ( + + 71, + - ( COUNT( * ) ) ) - + 81
----
-41616

skipif mysql # not compatible
query I rowsort label-5308
SELECT ALL + 13 * - + 45 * NULLIF ( + + 71, + - ( COUNT ( * ) ) ) - + 81
----
-41616

onlyif mysql # aggregate syntax: 
query II rowsort label-5309
SELECT ALL + + 23 * + 63 AS col2, ( 43 ) + - COUNT( * )
----
1449
42

skipif mysql # not compatible
query II rowsort label-5309
SELECT ALL + + 23 * + 63 AS col2, ( 43 ) + - COUNT ( * )
----
1449
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5310
SELECT - 22 + + + ( 99 ) * - COUNT( * )
----
-121

skipif mysql # not compatible
query I rowsort label-5310
SELECT - 22 + + + ( 99 ) * - COUNT ( * )
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-5311
SELECT NULLIF ( COUNT( * ), + COUNT( - - 47 ) + + + COUNT( * ) + - 38 + + 39 / - 60 ) * - ( + + NULLIF ( + ( + - COUNT( * ) ), - COUNT( * ) * - ( - + 90 ) * ( - 78 ) * + + 68 + 52 ) ) + - 47 * 50 + 2 AS col0
----
-2347

skipif mysql # not compatible
query I rowsort label-5311
SELECT NULLIF ( COUNT ( * ), + COUNT ( - - 47 ) + + + COUNT ( * ) + - 38 + + 39 / - 60 ) * - ( + + NULLIF ( + ( + - COUNT ( * ) ), - COUNT ( * ) * - ( - + 90 ) * ( - 78 ) * + + 68 + 52 ) ) + - 47 * 50 + 2 AS col0
----
-2347

query I rowsort
SELECT - 86 * - - 98 AS col2
----
-8428

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5313
SELECT ALL - CAST( NULL AS SIGNED ) * - - 72 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5313
SELECT ALL - CAST ( NULL AS INTEGER ) * - - 72 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + ( + 10 ) AS col0
----
10

query I rowsort
SELECT DISTINCT - 5 * + - 80
----
400

query II rowsort
SELECT ALL + 25 AS col0, + 74 + 0
----
25
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5317
SELECT ALL + CAST( - 5 AS SIGNED )
----
-5

skipif mysql # not compatible
query I rowsort label-5317
SELECT ALL + CAST ( - 5 AS INTEGER )
----
-5

query I rowsort
SELECT ALL 68 * 10 AS col0
----
680

onlyif mysql # DIV for integer division: 
query I rowsort label-5319
SELECT + COALESCE ( + 0, + 0 + + - 83 + + 20 DIV - + 26 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5319
SELECT + COALESCE ( + 0, + 0 + + - 83 + + 20 / - + 26 ) AS col2
----
0

query I rowsort
SELECT - 44 + 4
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-5321
SELECT - COUNT( * ) * + 69 col0
----
-69

skipif mysql # not compatible
query I rowsort label-5321
SELECT - COUNT ( * ) * + 69 col0
----
-69

query I rowsort
SELECT ALL 38 * + 92 + + 40 * + 88
----
7016

query II rowsort
SELECT ALL + 34 AS col0, AVG ( - CASE + 82 WHEN 89 THEN - 0 WHEN - - 81 THEN NULL END ) AS col2
----
34
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5324
SELECT + COUNT( * ) col0, NULLIF ( 1, 98 + + 80 - + 32 + + NULLIF ( ( - MAX( DISTINCT 69 ) ), - 72 + - 73 * + + 48 + - - 89 + + 4 ) * 47 ) - - 61 AS col1
----
1
62

skipif mysql # not compatible
query II rowsort label-5324
SELECT + COUNT ( * ) col0, NULLIF ( 1, 98 + + 80 - + 32 + + NULLIF ( ( - MAX ( DISTINCT 69 ) ), - 72 + - 73 * + + 48 + - - 89 + + 4 ) * 47 ) - - 61 AS col1
----
1
62

onlyif mysql # aggregate syntax: 
query I rowsort label-5325
SELECT SUM( DISTINCT + 61 )
----
61

skipif mysql # not compatible
query I rowsort label-5325
SELECT SUM ( DISTINCT + 61 )
----
61

query I rowsort
SELECT ALL + 52 * - 90 AS col2
----
-4680

onlyif mysql # aggregate syntax: 
query II rowsort label-5327
SELECT ALL MAX( 4 ) * - ( + 61 ) * - - 79 + + + 66 * + ( + + 38 ) * + + 59 - - 90 + 49 + 14 * - 46 AS col1, NULLIF ( + COUNT( * ), - 23 * - 66 - 54 ) * 86 AS col1
----
128191
86

skipif mysql # not compatible
query II rowsort label-5327
SELECT ALL MAX ( 4 ) * - ( + 61 ) * - - 79 + + + 66 * + ( + + 38 ) * + + 59 - - 90 + 49 + 14 * - 46 AS col1, NULLIF ( + COUNT ( * ), - 23 * - 66 - 54 ) * 86 AS col1
----
128191
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5328
SELECT ALL + COUNT( * ) + + 27 * + MAX( 92 ) - + - 52 AS col1
----
2537

skipif mysql # not compatible
query I rowsort label-5328
SELECT ALL + COUNT ( * ) + + 27 * + MAX ( 92 ) - + - 52 AS col1
----
2537

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5329
SELECT - CAST( + + 62 AS SIGNED )
----
-62

skipif mysql # not compatible
query I rowsort label-5329
SELECT - CAST ( + + 62 AS INTEGER )
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5330
SELECT + 52 * + 90 + + 12 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5330
SELECT + 52 * + 90 + + 12 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5331
SELECT + 22 + + COUNT( ALL - 62 ) + - 52 * 16 * 45
----
-37417

skipif mysql # not compatible
query I rowsort label-5331
SELECT + 22 + + COUNT ( ALL - 62 ) + - 52 * 16 * 45
----
-37417

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5332
SELECT + COALESCE ( - 55, + 44 DIV COUNT( * ) * - 22 * - MAX( 14 ) + - COALESCE ( + + CASE - 73 WHEN + 92 - + 77 THEN NULL WHEN - - 72 THEN + 31 DIV NULLIF ( ( + AVG ( ALL + - ( - 52 ) ) ), - 91 ) END, 0 - + CAST( NULL AS SIGNED ) ) ) + + 13 * 73 AS col0
----
894

skipif mysql # not compatible
query I rowsort label-5332
SELECT + COALESCE ( - 55, + 44 / COUNT ( * ) * - 22 * - MAX ( 14 ) + - COALESCE ( + + CASE - 73 WHEN + 92 - + 77 THEN NULL WHEN - - 72 THEN + 31 / NULLIF ( ( + AVG ( ALL + - ( - 52 ) ) ), - 91 ) END, 0 - + CAST ( NULL AS INTEGER ) ) ) + + 13 * 73 AS col0
----
894

onlyif mysql # DIV for integer division: 
query I rowsort label-5333
SELECT ALL 5 + - 82 DIV + 8 AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-5333
SELECT ALL 5 + - 82 / + 8 AS col0
----
-5

query I rowsort
SELECT - 49 + ( 11 ) AS col1
----
-38

query I rowsort
SELECT + - 13 * + - 10 AS col1
----
130

query II rowsort
SELECT DISTINCT 75 col1, + 17 AS col0
----
75
17

query I rowsort
SELECT ALL + 33 - 78
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-5338
SELECT + COUNT( * ) * + 39
----
39

skipif mysql # not compatible
query I rowsort label-5338
SELECT + COUNT ( * ) * + 39
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-5339
SELECT COUNT( * ), - 54 * - - 39 AS col2
----
1
-2106

skipif mysql # not compatible
query II rowsort label-5339
SELECT COUNT ( * ), - 54 * - - 39 AS col2
----
1
-2106

query I rowsort
SELECT ALL - 8 * - ( + - 66 )
----
-528

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5341
SELECT DISTINCT - AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5341
SELECT DISTINCT - AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5342
SELECT DISTINCT + MIN( DISTINCT + ( - - 63 ) ) AS col0
----
63

skipif mysql # not compatible
query I rowsort label-5342
SELECT DISTINCT + MIN ( DISTINCT + ( - - 63 ) ) AS col0
----
63

query I rowsort
SELECT DISTINCT + COALESCE ( - + 71, 32 * 76 * 69 + - 51 + + 98 * ( - 68 ), + - 89 )
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5344
SELECT - ( - CAST( 62 AS SIGNED ) ) * - + 37 * - 80 AS col1
----
183520

skipif mysql # not compatible
query I rowsort label-5344
SELECT - ( - CAST ( 62 AS INTEGER ) ) * - + 37 * - 80 AS col1
----
183520

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5345
SELECT - 54 * - + CAST( NULL AS SIGNED ) - - 21 + + 45 * + 84 + + 5
----
NULL

skipif mysql # not compatible
query I rowsort label-5345
SELECT - 54 * - + CAST ( NULL AS INTEGER ) - - 21 + + 45 * + 84 + + 5
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5346
SELECT ALL + 46 DIV - + 82
----
0

skipif mysql # not compatible
query I rowsort label-5346
SELECT ALL + 46 / - + 82
----
0

query I rowsort
SELECT DISTINCT + 28 * + 9 * 49
----
12348

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5348
SELECT ALL + CASE + + NULLIF ( - 72, - 88 * - 70 - + CAST( NULL AS SIGNED ) / + 83 ) WHEN - 65 THEN 94 END / - - 43 * 62
----
NULL

skipif mysql # not compatible
query I rowsort label-5348
SELECT ALL + CASE + + NULLIF ( - 72, - 88 * - 70 - + CAST ( NULL AS INTEGER ) / + 83 ) WHEN - 65 THEN 94 END / - - 43 * 62
----
NULL

query I rowsort
SELECT ALL + 19 * - 19 col0
----
-361

onlyif mysql # DIV for integer division: 
query I rowsort label-5350
SELECT 70 DIV + - NULLIF ( + 63, + 96 )
----
-1

skipif mysql # not compatible
query I rowsort label-5350
SELECT 70 / + - NULLIF ( + 63, + 96 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5351
SELECT ALL + 46 DIV 73 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5351
SELECT ALL + 46 / 73 AS col0
----
0

query II rowsort
SELECT 53 + 45 AS col2, + 22 * - CASE - 20 WHEN - + 7 / + 96 + + 87 THEN NULL ELSE - 7 END AS col1
----
98
154

onlyif mysql # aggregate syntax: 
query I rowsort label-5353
SELECT 56 * COUNT( * ) - - 35 AS col2
----
91

skipif mysql # not compatible
query I rowsort label-5353
SELECT 56 * COUNT ( * ) - - 35 AS col2
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5354
SELECT DISTINCT + 29 + + COUNT( * ) + - 33 * - + 54 + - - 1 * + COUNT( DISTINCT - + 66 ) * COUNT( * )
----
1813

skipif mysql # not compatible
query I rowsort label-5354
SELECT DISTINCT + 29 + + COUNT ( * ) + - 33 * - + 54 + - - 1 * + COUNT ( DISTINCT - + 66 ) * COUNT ( * )
----
1813

query I rowsort
SELECT DISTINCT 19 + + 82 * 93 * + + NULLIF ( - 25, + 99 )
----
-190631

onlyif mysql # aggregate syntax: 
query I rowsort label-5356
SELECT DISTINCT - MIN( + 84 )
----
-84

skipif mysql # not compatible
query I rowsort label-5356
SELECT DISTINCT - MIN ( + 84 )
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5357
SELECT DISTINCT + + CAST( NULL AS SIGNED ) + - 97 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5357
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) + - 97 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5358
SELECT ALL - 23 - - COUNT( * )
----
-22

skipif mysql # not compatible
query I rowsort label-5358
SELECT ALL - 23 - - COUNT ( * )
----
-22

query I rowsort
SELECT ALL 94 * + 71 * + 50 - 44 AS col1
----
333656

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5360
SELECT CAST( + COALESCE ( - 13, - 45 + 83 * + 65 * + 14 ) AS SIGNED ) - + 79 * + + 59 - - ( - COUNT( DISTINCT + 78 ) ) + + ( + + 99 ) + + 21 + + 48 AS col2
----
-4507

skipif mysql # not compatible
query I rowsort label-5360
SELECT CAST ( + COALESCE ( - 13, - 45 + 83 * + 65 * + 14 ) AS INTEGER ) - + 79 * + + 59 - - ( - COUNT ( DISTINCT + 78 ) ) + + ( + + 99 ) + + 21 + + 48 AS col2
----
-4507

query I rowsort
SELECT DISTINCT 12 * + 87
----
1044

onlyif mysql # aggregate syntax: 
query I rowsort label-5362
SELECT DISTINCT + COUNT( * ) * + 66 AS col1
----
66

skipif mysql # not compatible
query I rowsort label-5362
SELECT DISTINCT + COUNT ( * ) * + 66 AS col1
----
66

query I rowsort
SELECT ALL - CASE + CASE 15 WHEN - 23 THEN NULL ELSE 79 * 61 + 32 * - 57 * ( + 47 ) END WHEN 45 THEN - + ( 48 ) ELSE NULL END - - 27 + - 58 * - - 90 / + 52 / + 27
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5364
SELECT ALL - + 82 * + MAX( 79 ) - + 51
----
-6529

skipif mysql # not compatible
query I rowsort label-5364
SELECT ALL - + 82 * + MAX ( 79 ) - + 51
----
-6529

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5365
SELECT ALL 39 - - + 97 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5365
SELECT ALL 39 - - + 97 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - ( + 51 ) * - 80
----
4080

query I rowsort
SELECT 63 + + + 46
----
109

onlyif mysql # aggregate syntax: 
query II rowsort label-5368
SELECT - 36 - MAX( DISTINCT + - ( - 27 ) ) AS col0, + 44 AS col1
----
-63
44

skipif mysql # not compatible
query II rowsort label-5368
SELECT - 36 - MAX ( DISTINCT + - ( - 27 ) ) AS col0, + 44 AS col1
----
-63
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5369
SELECT SUM( - 11 ) DIV - 32 - + 69 AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-5369
SELECT SUM ( - 11 ) / - 32 - + 69 AS col2
----
-69

query I rowsort
SELECT - 79 + - 55 * - 54 * + 46
----
136541

onlyif mysql # aggregate syntax: 
query I rowsort label-5371
SELECT - - MIN( DISTINCT + + 55 )
----
55

skipif mysql # not compatible
query I rowsort label-5371
SELECT - - MIN ( DISTINCT + + 55 )
----
55

query I rowsort
SELECT 84 * - - 68 * + - 27 AS col2
----
-154224

onlyif mysql # DIV for integer division: 
query II rowsort label-5373
SELECT 44 + - + 78 + - 93 DIV + 9 + + - 29, - 79 AS col1
----
-73
-79

skipif mysql # not compatible
query II rowsort label-5373
SELECT 44 + - + 78 + - 93 / + 9 + + - 29, - 79 AS col1
----
-73
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5374
SELECT ALL 57 * + 35 * + + 99 * + - CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5374
SELECT ALL 57 * + 35 * + + 99 * + - CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5375
SELECT ALL - 89 col0, COUNT( * ) + 81 - - ( + + NULLIF ( 84, - 52 - 84 - + - 42 * - ( - COUNT( * ) ) ) ) + + 30 + - + 38 * + + 55 * + 94 AS col0
----
-89
-196264

skipif mysql # not compatible
query II rowsort label-5375
SELECT ALL - 89 col0, COUNT ( * ) + 81 - - ( + + NULLIF ( 84, - 52 - 84 - + - 42 * - ( - COUNT ( * ) ) ) ) + + 30 + - + 38 * + + 55 * + 94 AS col0
----
-89
-196264

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5376
SELECT ( - + 96 ) * - CAST( - 16 AS SIGNED ) * + 55
----
-84480

skipif mysql # not compatible
query I rowsort label-5376
SELECT ( - + 96 ) * - CAST ( - 16 AS INTEGER ) * + 55
----
-84480

query I rowsort
SELECT DISTINCT 4 * + 50 AS col2
----
200

query I rowsort
SELECT DISTINCT - NULLIF ( 18, + 28 ) AS col1
----
-18

query I rowsort
SELECT ALL 21 + 64
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5380
SELECT ( - COUNT( * ) ) * + + 96
----
-96

skipif mysql # not compatible
query I rowsort label-5380
SELECT ( - COUNT ( * ) ) * + + 96
----
-96

query I rowsort
SELECT DISTINCT 56 + - 14 * - 8 * 73 * 72
----
588728

query I rowsort
SELECT 63 * + - COALESCE ( 93, + + 47 )
----
-5859

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5383
SELECT CAST( 3 AS SIGNED ) * CAST( NULL AS SIGNED ) + + 98
----
NULL

skipif mysql # not compatible
query I rowsort label-5383
SELECT CAST ( 3 AS INTEGER ) * CAST ( NULL AS INTEGER ) + + 98
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5384
SELECT ALL 91 + - 60 + + COUNT( * )
----
32

skipif mysql # not compatible
query I rowsort label-5384
SELECT ALL 91 + - 60 + + COUNT ( * )
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-5385
SELECT ALL - 15 + + + 84 DIV + - 83 + + 32 AS col2
----
16

skipif mysql # not compatible
query I rowsort label-5385
SELECT ALL - 15 + + + 84 / + - 83 + + 32 AS col2
----
16

query I rowsort
SELECT DISTINCT 20 + - + 13 + + 11 AS col1
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-5387
SELECT ( 3 ) + + + 40, COUNT( * ) AS col2
----
43
1

skipif mysql # not compatible
query II rowsort label-5387
SELECT ( 3 ) + + + 40, COUNT ( * ) AS col2
----
43
1

query I rowsort
SELECT DISTINCT 96 + - 4 AS col0
----
92

onlyif mysql # DIV for integer division: 
query II rowsort label-5389
SELECT 5, 56 + - 72 DIV + - 36 AS col0
----
5
58

skipif mysql # not compatible
query II rowsort label-5389
SELECT 5, 56 + - 72 / + - 36 AS col0
----
5
58

query I rowsort
SELECT ALL - 98 + - 21
----
-119

query I rowsort
SELECT 78 - 80 AS col2
----
-2

query I rowsort
SELECT DISTINCT - 27 - - 56 + - ( + 99 ) * + 69
----
-6802

query I rowsort
SELECT ALL + 68 * ( - - 19 ) AS col1
----
1292

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5394
SELECT DISTINCT 26 - - - 75 + + CAST( NULL AS SIGNED ) * 92 * 41 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5394
SELECT DISTINCT 26 - - - 75 + + CAST ( NULL AS INTEGER ) * 92 * 41 AS col2
----
NULL

query I rowsort
SELECT - 70 + + 17 - + + 31 * 83
----
-2626

query I rowsort
SELECT ALL + 91 * 82 AS col0
----
7462

query I rowsort
SELECT DISTINCT + 86 - - ( 59 ) + - 33 * + + 54 + - + 31 + + + 71 col2
----
-1597

query I rowsort
SELECT - 84 + + - 46
----
-130

query I rowsort
SELECT 99 * - - 28 AS col2
----
2772

query I rowsort
SELECT 29 + + ( + 84 ) + + 84
----
197

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5401
SELECT ALL - MIN( DISTINCT 40 ) * 48 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5401
SELECT ALL - MIN ( DISTINCT 40 ) * 48 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5402
SELECT 78 * + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5402
SELECT 78 * + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT + 33 + + 48
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-5404
SELECT - + COALESCE ( + ( - 6 ), + CASE - 28 WHEN + 63 THEN - + 40 END - - 26 + - 90 * - ( + 32 ) DIV + + 82 ) col0
----
6

skipif mysql # not compatible
query I rowsort label-5404
SELECT - + COALESCE ( + ( - 6 ), + CASE - 28 WHEN + 63 THEN - + 40 END - - 26 + - 90 * - ( + 32 ) / + + 82 ) col0
----
6

query I rowsort
SELECT ( - 42 ) + - 44 + - ( + - 85 ) * 75 AS col1
----
6289

onlyif mysql # aggregate syntax: 
query I rowsort label-5406
SELECT ALL 30 + 6 + + - COUNT( * ) + - + 21 AS col0
----
14

skipif mysql # not compatible
query I rowsort label-5406
SELECT ALL 30 + 6 + + - COUNT ( * ) + - + 21 AS col0
----
14

query I rowsort
SELECT - 0 * - 50 col2
----
0

query I rowsort
SELECT ALL - ( - 68 ) * + 11
----
748

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5409
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + + 24 * - + 18
----
NULL

skipif mysql # not compatible
query I rowsort label-5409
SELECT DISTINCT - CAST ( NULL AS REAL ) + + 24 * - + 18
----
NULL

query II rowsort
SELECT ALL 80, 99 AS col2
----
80
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5411
SELECT DISTINCT MIN( DISTINCT + ( + - 59 ) ) + - - 52 * + 11 - 92 AS col1
----
421

skipif mysql # not compatible
query I rowsort label-5411
SELECT DISTINCT MIN ( DISTINCT + ( + - 59 ) ) + - - 52 * + 11 - 92 AS col1
----
421

onlyif mysql # aggregate syntax: 
query I rowsort label-5412
SELECT - 27 - + - CASE - CASE - 50 WHEN + - 13 THEN 84 END WHEN - 79 THEN 53 / - COUNT( * ) END * + 12 * - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5412
SELECT - 27 - + - CASE - CASE - 50 WHEN + - 13 THEN 84 END WHEN - 79 THEN 53 / - COUNT ( * ) END * + 12 * - + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5413
SELECT DISTINCT 56 + 35, ( - + 65 ) * 70 * + 75 * - 16 + - NULLIF ( - 50, + - ( + + 85 ) + + - 95 + - 16 + + - 7 / - 33 * + CAST( NULL AS SIGNED ) ) + + - ( + - CASE + MIN( ALL + 21 ) WHEN - - 45 + COUNT( * ) THEN 84 - 89 / 83 WHEN 72 THEN + 77 * - 40 WHEN + 18 * - 15 THEN NULL END ) AS col0
----
91
NULL

skipif mysql # not compatible
query II rowsort label-5413
SELECT DISTINCT 56 + 35, ( - + 65 ) * 70 * + 75 * - 16 + - NULLIF ( - 50, + - ( + + 85 ) + + - 95 + - 16 + + - 7 / - 33 * + CAST ( NULL AS INTEGER ) ) + + - ( + - CASE + MIN ( ALL + 21 ) WHEN - - 45 + COUNT ( * ) THEN 84 - 89 / 83 WHEN 72 THEN + 77 * - 40 WHEN + 18 * - 15 THEN NULL END ) AS col0
----
91
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5414
SELECT COALESCE ( + ( + - 20 ), - 30 - - 55 DIV - 10 ) AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-5414
SELECT COALESCE ( + ( + - 20 ), - 30 - - 55 / - 10 ) AS col2
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-5415
SELECT - 80 DIV + - 55 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5415
SELECT - 80 / + - 55 AS col0
----
1

query I rowsort
SELECT + 62 * + - 71
----
-4402

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5417
SELECT ( 2 ) * + 47 - + 44 + CAST( NULL AS SIGNED ) * + 11 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5417
SELECT ( 2 ) * + 47 - + 44 + CAST ( NULL AS INTEGER ) * + 11 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5418
SELECT + COUNT( * ) col1, 75
----
1
75

skipif mysql # not compatible
query II rowsort label-5418
SELECT + COUNT ( * ) col1, 75
----
1
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5419
SELECT CASE 75 WHEN - - 31 THEN 85 WHEN - CASE - NULLIF ( - - 0, + 91 ) WHEN + 41 THEN NULL WHEN + 68 - - 99 + - + 79 - - - 54 * - - 52 + 70 THEN NULL ELSE + + COUNT( * ) END - - + 11 * + + 73 THEN + 22 / + COUNT( DISTINCT 69 ) / 96 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5419
SELECT CASE 75 WHEN - - 31 THEN 85 WHEN - CASE - NULLIF ( - - 0, + 91 ) WHEN + 41 THEN NULL WHEN + 68 - - 99 + - + 79 - - - 54 * - - 52 + 70 THEN NULL ELSE + + COUNT ( * ) END - - + 11 * + + 73 THEN + 22 / + COUNT ( DISTINCT 69 ) / 96 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT + 26 * - - 1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-5421
SELECT ALL - MAX( DISTINCT - 49 ) * + 47 + - COALESCE ( - NULLIF ( - 30, - + COUNT( * ) ), 90 )
----
2273

skipif mysql # not compatible
query I rowsort label-5421
SELECT ALL - MAX ( DISTINCT - 49 ) * + 47 + - COALESCE ( - NULLIF ( - 30, - + COUNT ( * ) ), 90 )
----
2273

query II rowsort
SELECT ALL + 75 col0, 10
----
75
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5423
SELECT + 50 DIV - COUNT( * ) DIV - 1 + - 22 * - 3 AS col1
----
116

skipif mysql # not compatible
query I rowsort label-5423
SELECT + 50 / - COUNT ( * ) / - 1 + - 22 * - 3 AS col1
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-5424
SELECT + COUNT( + - 84 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5424
SELECT + COUNT ( + - 84 ) AS col1
----
1

query I rowsort
SELECT + 37 + - + 10 + 79 col2
----
106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5426
SELECT DISTINCT - 86 * - + MAX( + CAST( NULL AS SIGNED ) ) - - 77 * - 56 * + + ( MIN( DISTINCT + - 65 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5426
SELECT DISTINCT - 86 * - + MAX ( + CAST ( NULL AS INTEGER ) ) - - 77 * - 56 * + + ( MIN ( DISTINCT + - 65 ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5427
SELECT CASE CAST( - - 40 AS SIGNED ) WHEN + 8 THEN - + SUM( - + 22 ) WHEN COUNT( * ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5427
SELECT CASE CAST ( - - 40 AS INTEGER ) WHEN + 8 THEN - + SUM ( - + 22 ) WHEN COUNT ( * ) THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5428
SELECT DISTINCT + + CASE + CASE + - 50 WHEN + 73 + - 99 THEN NULL WHEN 39 * + + 35 THEN - 81 / 9 ELSE + 86 / + + CASE + 71 WHEN + 65 THEN - 22 WHEN + - 53 THEN NULL WHEN 30 + - 70 - + 78 * - + 42 * 11 - + - 55 * - ( 21 * 47 + + SUM( DISTINCT 6 ) ) THEN 95 / 70 ELSE NULL END END WHEN + 22 THEN - 94 + 26 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5428
SELECT DISTINCT + + CASE + CASE + - 50 WHEN + 73 + - 99 THEN NULL WHEN 39 * + + 35 THEN - 81 / 9 ELSE + 86 / + + CASE + 71 WHEN + 65 THEN - 22 WHEN + - 53 THEN NULL WHEN 30 + - 70 - + 78 * - + 42 * 11 - + - 55 * - ( 21 * 47 + + SUM ( DISTINCT 6 ) ) THEN 95 / 70 ELSE NULL END END WHEN + 22 THEN - 94 + 26 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5429
SELECT DISTINCT + COALESCE ( - COALESCE ( - 86, - 82 * - 44 ), - - ( SUM( - 89 ) ), + + 29 * 71 + 73, + - 83 * + SUM( + 45 ) + - + COUNT( * ) * - + CASE 63 WHEN 90 THEN NULL ELSE - - 66 END DIV - - SUM( DISTINCT - 11 ) - CAST( 84 AS SIGNED ) * 73 )
----
86

skipif mysql # not compatible
query I rowsort label-5429
SELECT DISTINCT + COALESCE ( - COALESCE ( - 86, - 82 * - 44 ), - - ( SUM ( - 89 ) ), + + 29 * 71 + 73, + - 83 * + SUM ( + 45 ) + - + COUNT ( * ) * - + CASE 63 WHEN 90 THEN NULL ELSE - - 66 END / - - SUM ( DISTINCT - 11 ) - CAST ( 84 AS INTEGER ) * 73 )
----
86

query I rowsort
SELECT + ( + 5 ) + + 36 + - 14 - - 60 * - ( + - 26 ) AS col0
----
1587

query II rowsort
SELECT ALL + - ( + 22 ) AS col1, 58 AS col0
----
-22
58

query I rowsort
SELECT + + COALESCE ( + + 6, + - 28 + - 76 ) col0
----
6

query I rowsort
SELECT ALL - 82 * 41
----
-3362

onlyif mysql # DIV for integer division: 
query I rowsort label-5434
SELECT ALL + 71 DIV + - 25 + - 55 AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-5434
SELECT ALL + 71 / + - 25 + - 55 AS col2
----
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5435
SELECT + + 65 + 34 DIV + 73 - + 14 + MIN( DISTINCT 94 )
----
145

skipif mysql # not compatible
query I rowsort label-5435
SELECT + + 65 + 34 / + 73 - + 14 + MIN ( DISTINCT 94 )
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-5436
SELECT DISTINCT MIN( DISTINCT - 13 ) * - 87
----
1131

skipif mysql # not compatible
query I rowsort label-5436
SELECT DISTINCT MIN ( DISTINCT - 13 ) * - 87
----
1131

query I rowsort
SELECT - NULLIF ( - 21, + 84 ) AS col1
----
21

query II rowsort
SELECT ALL 44 col2, + 80 AS col1
----
44
80

onlyif mysql # DIV for integer division: 
query II rowsort label-5439
SELECT ALL + - 14 * 56 + - - 44 DIV + - 31 - - + 69 + + - 14 col0, 32 AS col1
----
-730
32

skipif mysql # not compatible
query II rowsort label-5439
SELECT ALL + - 14 * 56 + - - 44 / + - 31 - - + 69 + + - 14 col0, 32 AS col1
----
-730
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5440
SELECT + + 16 DIV ( NULLIF ( + 63, + COUNT( * ) * - 66 - MIN( - 56 ) ) ) - - + 49 + + ( + - 39 ) + 90 AS col1
----
100

skipif mysql # not compatible
query I rowsort label-5440
SELECT + + 16 / ( NULLIF ( + 63, + COUNT ( * ) * - 66 - MIN ( - 56 ) ) ) - - + 49 + + ( + - 39 ) + 90 AS col1
----
100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5441
SELECT - + CAST( NULL AS SIGNED ) * - + 39 - - 91 / 80 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5441
SELECT - + CAST ( NULL AS INTEGER ) * - + 39 - - 91 / 80 col2
----
NULL

query I rowsort
SELECT - - ( + - 57 ) * 93
----
-5301

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5443
SELECT - 70 - CAST( - - 73 AS SIGNED ) AS col1
----
-143

skipif mysql # not compatible
query I rowsort label-5443
SELECT - 70 - CAST ( - - 73 AS INTEGER ) AS col1
----
-143

onlyif mysql # aggregate syntax: 
query I rowsort label-5444
SELECT ALL NULLIF ( + 8, COUNT( DISTINCT + + 67 ) ) * - 50 * 96 + - 13
----
-38413

skipif mysql # not compatible
query I rowsort label-5444
SELECT ALL NULLIF ( + 8, COUNT ( DISTINCT + + 67 ) ) * - 50 * 96 + - 13
----
-38413

onlyif mysql # aggregate syntax: 
query I rowsort label-5445
SELECT - 84 + + COUNT( * ) AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-5445
SELECT - 84 + + COUNT ( * ) AS col1
----
-83

onlyif mysql # aggregate syntax: 
query II rowsort label-5446
SELECT ALL 45 AS col0, MAX( 31 ) * + - 52
----
45
-1612

skipif mysql # not compatible
query II rowsort label-5446
SELECT ALL 45 AS col0, MAX ( 31 ) * + - 52
----
45
-1612

onlyif mysql # aggregate syntax: 
query I rowsort label-5447
SELECT DISTINCT - COUNT( * ) + ( 89 ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-5447
SELECT DISTINCT - COUNT ( * ) + ( 89 ) AS col1
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5448
SELECT - ( 19 ) - - CAST( - + 59 AS SIGNED )
----
-78

skipif mysql # not compatible
query I rowsort label-5448
SELECT - ( 19 ) - - CAST ( - + 59 AS INTEGER )
----
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-5449
SELECT - 4 + - - 64 DIV 92 col2
----
-4

skipif mysql # not compatible
query I rowsort label-5449
SELECT - 4 + - - 64 / 92 col2
----
-4

query I rowsort
SELECT ALL - 24 + - 54
----
-78

query II rowsort
SELECT DISTINCT ( 16 ) AS col0, - 37
----
16
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5452
SELECT DISTINCT CAST( - NULLIF ( + - 35, - MIN( + 11 ) ) AS SIGNED ) AS col0, + 31 AS col0
----
35
31

skipif mysql # not compatible
query II rowsort label-5452
SELECT DISTINCT CAST ( - NULLIF ( + - 35, - MIN ( + 11 ) ) AS INTEGER ) AS col0, + 31 AS col0
----
35
31

onlyif mysql # aggregate syntax: 
query II rowsort label-5453
SELECT - SUM( - + COALESCE ( - 46, + + 21, 78 ) ) + 92 * - COUNT( * ) col1, 82
----
-138
82

skipif mysql # not compatible
query II rowsort label-5453
SELECT - SUM ( - + COALESCE ( - 46, + + 21, 78 ) ) + 92 * - COUNT ( * ) col1, 82
----
-138
82

query I rowsort
SELECT ALL - 24 * 58 AS col2
----
-1392

query II rowsort
SELECT DISTINCT + 6 * + 31, 53 * 48 AS col1
----
186
2544

query I rowsort
SELECT + 44 * - ( 48 )
----
-2112

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5457
SELECT DISTINCT COALESCE ( + 25, 85 DIV 89 + + AVG ( DISTINCT - CAST( + 2 AS SIGNED ) ) + - 94 + 56, + 91 ) DIV - 81 - - 7 AS col2
----
7

skipif mysql # not compatible
query I rowsort label-5457
SELECT DISTINCT COALESCE ( + 25, 85 / 89 + + AVG ( DISTINCT - CAST ( + 2 AS INTEGER ) ) + - 94 + 56, + 91 ) / - 81 - - 7 AS col2
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5458
SELECT + 96 + - CASE 4 WHEN 82 * + 29 THEN 28 + 3 + - - 6 ELSE NULL END + + + 99 / - 26 - + 87 * COUNT( * ) * + CASE - 49 WHEN - 92 + + 88 THEN + 82 / - - 13 + + - AVG ( DISTINCT + 47 ) - + CASE - 30 WHEN 26 + - 87 THEN NULL WHEN 79 * - 20 THEN - 68 ELSE NULL END WHEN - ( 32 ) THEN CAST( NULL AS SIGNED ) * 8 ELSE COUNT( * ) END * - COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5458
SELECT + 96 + - CASE 4 WHEN 82 * + 29 THEN 28 + 3 + - - 6 ELSE NULL END + + + 99 / - 26 - + 87 * COUNT ( * ) * + CASE - 49 WHEN - 92 + + 88 THEN + 82 / - - 13 + + - AVG ( DISTINCT + 47 ) - + CASE - 30 WHEN 26 + - 87 THEN NULL WHEN 79 * - 20 THEN - 68 ELSE NULL END WHEN - ( 32 ) THEN CAST ( NULL AS INTEGER ) * 8 ELSE COUNT ( * ) END * - COUNT ( * ) col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5459
SELECT ALL COUNT( * ) DIV - 76 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5459
SELECT ALL COUNT ( * ) / - 76 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5460
SELECT - ( 67 ) * + MAX( ALL - 11 )
----
737

skipif mysql # not compatible
query I rowsort label-5460
SELECT - ( 67 ) * + MAX ( ALL - 11 )
----
737

query I rowsort
SELECT + 14 * - 11
----
-154

onlyif mysql # DIV for integer division: 
query I rowsort label-5462
SELECT DISTINCT COALESCE ( ( - ( - NULLIF ( 89, - 88 ) ) ), + 17, - - 62 ) DIV - 89 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5462
SELECT DISTINCT COALESCE ( ( - ( - NULLIF ( 89, - 88 ) ) ), + 17, - - 62 ) / - 89 AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5463
SELECT - 84 * - COUNT( * ) AS col2, + COALESCE ( 18, 5 DIV + 43 DIV - + 85 - + + 19 * + 77, - - SUM( DISTINCT - + 82 ) ) AS col0
----
84
18

skipif mysql # not compatible
query II rowsort label-5463
SELECT - 84 * - COUNT ( * ) AS col2, + COALESCE ( 18, 5 / + 43 / - + 85 - + + 19 * + 77, - - SUM ( DISTINCT - + 82 ) ) AS col0
----
84
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5464
SELECT ALL SUM( ALL CAST( NULL AS SIGNED ) ) * + COALESCE ( - 6, + COUNT( * ) ), CAST( + + 31 AS SIGNED ) AS col2
----
NULL
31

skipif mysql # not compatible
query II rowsort label-5464
SELECT ALL SUM ( ALL CAST ( NULL AS INTEGER ) ) * + COALESCE ( - 6, + COUNT ( * ) ), CAST ( + + 31 AS INTEGER ) AS col2
----
NULL
31

onlyif mysql # aggregate syntax: 
query II rowsort label-5465
SELECT ( - COUNT( * ) ) AS col2, + 93 AS col2
----
-1
93

skipif mysql # not compatible
query II rowsort label-5465
SELECT ( - COUNT ( * ) ) AS col2, + 93 AS col2
----
-1
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5466
SELECT + + CASE - 17 WHEN COUNT( * ) + MIN( ALL + - 98 ) THEN + COUNT( * ) END * - + 37 + + - CASE 63 WHEN - 91 * + COUNT( * ) * - 30 / + - NULLIF ( 67, + + 96 ) - + 8 THEN NULL ELSE + - 45 - CASE 91 WHEN CAST( NULL AS SIGNED ) / + + 57 + - - 5 / 68 THEN + 34 ELSE NULL END * 75 END + 65 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5466
SELECT + + CASE - 17 WHEN COUNT ( * ) + MIN ( ALL + - 98 ) THEN + COUNT ( * ) END * - + 37 + + - CASE 63 WHEN - 91 * + COUNT ( * ) * - 30 / + - NULLIF ( 67, + + 96 ) - + 8 THEN NULL ELSE + - 45 - CASE 91 WHEN CAST ( NULL AS INTEGER ) / + + 57 + - - 5 / 68 THEN + 34 ELSE NULL END * 75 END + 65 AS col0
----
NULL

query I rowsort
SELECT ALL + NULLIF ( - 1, - 42 * 50 * + 54 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5468
SELECT + NULLIF ( - + 85, 80 * + + 73 * MAX( 86 ) * SUM( DISTINCT - - 41 ) + - 6 )
----
-85

skipif mysql # not compatible
query I rowsort label-5468
SELECT + NULLIF ( - + 85, 80 * + + 73 * MAX ( 86 ) * SUM ( DISTINCT - - 41 ) + - 6 )
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-5469
SELECT + NULLIF ( - 30, - 10 ) * - ( + COUNT( * ) ) AS col1
----
30

skipif mysql # not compatible
query I rowsort label-5469
SELECT + NULLIF ( - 30, - 10 ) * - ( + COUNT ( * ) ) AS col1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5470
SELECT - + COUNT( * ) * - - 81 + + - 81 - 46 + + + 0 * - 55 + + 56 + - + 7 col2
----
-159

skipif mysql # not compatible
query I rowsort label-5470
SELECT - + COUNT ( * ) * - - 81 + + - 81 - 46 + + + 0 * - 55 + + 56 + - + 7 col2
----
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-5471
SELECT DISTINCT - COUNT( + 6 )
----
-1

skipif mysql # not compatible
query I rowsort label-5471
SELECT DISTINCT - COUNT ( + 6 )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5472
SELECT DISTINCT COUNT( * ) + 68, 29 + - 95 AS col0
----
69
-66

skipif mysql # not compatible
query II rowsort label-5472
SELECT DISTINCT COUNT ( * ) + 68, 29 + - 95 AS col0
----
69
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5473
SELECT ALL + 9 * + + COUNT( * ) + 34 * + 10 * + ( - 73 ) / 34 - + 7 + - CAST( NULL AS SIGNED ) + - ( - 65 ) * + NULLIF ( - + CASE WHEN ( NOT ( NOT ( MIN( - 53 ) ) <= + 33 * - - 78 ) ) OR NOT ( 29 * - 68 - - 28 ) IS NULL THEN 78 / 84 ELSE - 66 END, + 4 + 73 ) + 84 * 24 * - CAST( + 58 + 69 AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5473
SELECT ALL + 9 * + + COUNT ( * ) + 34 * + 10 * + ( - 73 ) / 34 - + 7 + - CAST ( NULL AS INTEGER ) + - ( - 65 ) * + NULLIF ( - + CASE WHEN ( NOT ( NOT ( MIN ( - 53 ) ) <= + 33 * - - 78 ) ) OR NOT ( 29 * - 68 - - 28 ) IS NULL THEN 78 / 84 ELSE - 66 END, + 4 + 73 ) + 84 * 24 * - CAST ( + 58 + 69 AS INTEGER ) col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5474
SELECT + 82 DIV 56 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5474
SELECT + 82 / 56 AS col1
----
1

query I rowsort
SELECT ALL - 98 + + 81 - 3 * 23
----
-86

query I rowsort
SELECT DISTINCT - 40 + 90 + - 63
----
-13

query I rowsort
SELECT DISTINCT + ( 77 ) + - 44 AS col2
----
33

onlyif mysql # DIV for integer division: 
query II rowsort label-5478
SELECT ALL 98 * ( 32 ) AS col1, - 2 DIV - + 9 + 79 AS col1
----
3136
79

skipif mysql # not compatible
query II rowsort label-5478
SELECT ALL 98 * ( 32 ) AS col1, - 2 / - + 9 + 79 AS col1
----
3136
79

query I rowsort
SELECT 89 + - 81
----
8

query II rowsort
SELECT ( + - 98 ) * - + 65 AS col1, + 26
----
6370
26

query I rowsort
SELECT DISTINCT + 83 * + 1
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-5482
SELECT ALL - COUNT( * ) + - + 70 + - 44
----
-115

skipif mysql # not compatible
query I rowsort label-5482
SELECT ALL - COUNT ( * ) + - + 70 + - 44
----
-115

onlyif mysql # aggregate syntax: 
query II rowsort label-5483
SELECT ALL 90 AS col2, - MAX( DISTINCT - 32 )
----
90
32

skipif mysql # not compatible
query II rowsort label-5483
SELECT ALL 90 AS col2, - MAX ( DISTINCT - 32 )
----
90
32

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5484
SELECT DISTINCT 92, 88 / - + CAST( NULL AS SIGNED ) + + 69 AS col1
----
92
NULL

skipif mysql # not compatible
query II rowsort label-5484
SELECT DISTINCT 92, 88 / - + CAST ( NULL AS INTEGER ) + + 69 AS col1
----
92
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5485
SELECT - 45 AS col0, + 30 DIV + 41 * + - ( - - 39 ) * 51 AS col1
----
-45
0

skipif mysql # not compatible
query II rowsort label-5485
SELECT - 45 AS col0, + 30 / + 41 * + - ( - - 39 ) * 51 AS col1
----
-45
0

query II rowsort
SELECT 16 AS col0, + 37 AS col1
----
16
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5487
SELECT DISTINCT - COUNT( * ) - - - 64 * + 92 / - 47 * - - CAST( NULL AS SIGNED ) + + - CASE + COUNT( * ) WHEN - - 77 THEN + 43 * COUNT( * ) WHEN 12 + 60 / + 97 THEN 18 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5487
SELECT DISTINCT - COUNT ( * ) - - - 64 * + 92 / - 47 * - - CAST ( NULL AS INTEGER ) + + - CASE + COUNT ( * ) WHEN - - 77 THEN + 43 * COUNT ( * ) WHEN 12 + 60 / + 97 THEN 18 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5488
SELECT ALL + CASE + COALESCE ( - 14, + 84, + - NULLIF ( + CASE - COUNT( * ) WHEN 84 THEN NULL ELSE - + 36 + + 68 END, + 95 + - CAST( + 53 AS SIGNED ) * - + MAX( DISTINCT 91 ) * + 68 ) ) WHEN - 21 THEN 45 + 33 WHEN 62 THEN ( - + 60 ) ELSE NULL END * - - 68 / + ( COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5488
SELECT ALL + CASE + COALESCE ( - 14, + 84, + - NULLIF ( + CASE - COUNT ( * ) WHEN 84 THEN NULL ELSE - + 36 + + 68 END, + 95 + - CAST ( + 53 AS INTEGER ) * - + MAX ( DISTINCT 91 ) * + 68 ) ) WHEN - 21 THEN 45 + 33 WHEN 62 THEN ( - + 60 ) ELSE NULL END * - - 68 / + ( COUNT ( * ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5489
SELECT 4 * - - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5489
SELECT 4 * - - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5490
SELECT COUNT( * ) * + ( - + 42 ) * ( - + 92 ) AS col2
----
3864

skipif mysql # not compatible
query I rowsort label-5490
SELECT COUNT ( * ) * + ( - + 42 ) * ( - + 92 ) AS col2
----
3864

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5491
SELECT 67 DIV - + 28 - 89 + + ( - 96 ) * - SUM( ALL - - 99 ) DIV COALESCE ( CAST( + 33 AS SIGNED ), + 80 ) - 89 + 25 AS col1
----
133

skipif mysql # not compatible
query I rowsort label-5491
SELECT 67 / - + 28 - 89 + + ( - 96 ) * - SUM ( ALL - - 99 ) / COALESCE ( CAST ( + 33 AS INTEGER ), + 80 ) - 89 + 25 AS col1
----
133

onlyif mysql # DIV for integer division: 
query II rowsort label-5492
SELECT ALL - 84 col1, 83 + - 38 DIV + 90 AS col0
----
-84
83

skipif mysql # not compatible
query II rowsort label-5492
SELECT ALL - 84 col1, 83 + - 38 / + 90 AS col0
----
-84
83

query II rowsort
SELECT DISTINCT - 56 col1, + 34
----
-56
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5494
SELECT DISTINCT + - 73 * - + 25 / - CASE + 46 WHEN 98 - - CAST( + 98 AS SIGNED ) THEN 33 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5494
SELECT DISTINCT + - 73 * - + 25 / - CASE + 46 WHEN 98 - - CAST ( + 98 AS INTEGER ) THEN 33 END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5495
SELECT + 11 AS col0, + CAST( - 7 AS SIGNED ) - 11 + 89 DIV - 68
----
11
-19

skipif mysql # not compatible
query II rowsort label-5495
SELECT + 11 AS col0, + CAST ( - 7 AS INTEGER ) - 11 + 89 / - 68
----
11
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-5496
SELECT - 3 DIV + 40 col2
----
0

skipif mysql # not compatible
query I rowsort label-5496
SELECT - 3 / + 40 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5497
SELECT + + 23 * 82 * - - 51 * + 88 * + + SUM( NULLIF ( - 17, + 69 + 40 / + 83 ) ) + - + 66 * - 41
----
-143891550

skipif mysql # not compatible
query I rowsort label-5497
SELECT + + 23 * 82 * - - 51 * + 88 * + + SUM ( NULLIF ( - 17, + 69 + 40 / + 83 ) ) + - + 66 * - 41
----
-143891550

onlyif mysql # aggregate syntax: 
query I rowsort label-5498
SELECT + ( + 47 ) * + SUM( + - 10 ) * + NULLIF ( - 73, 27 + + - 77 ) - + - 54 + + 68 AS col0
----
34432

skipif mysql # not compatible
query I rowsort label-5498
SELECT + ( + 47 ) * + SUM ( + - 10 ) * + NULLIF ( - 73, 27 + + - 77 ) - + - 54 + + 68 AS col0
----
34432

onlyif mysql # aggregate syntax: 
query I rowsort label-5499
SELECT + 86 * - - 39 * - COUNT( * )
----
-3354

skipif mysql # not compatible
query I rowsort label-5499
SELECT + 86 * - - 39 * - COUNT ( * )
----
-3354

query I rowsort
SELECT ALL 60 + + 67
----
127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5501
SELECT CASE + + MAX( ALL - CAST( NULL AS SIGNED ) ) WHEN - + 48 * + 73 THEN NULL WHEN + + 13 THEN + ( + NULLIF ( + 2, + 22 ) ) + 28 ELSE + + 51 + - + COUNT( * ) END AS col0, - 94 AS col1
----
50
-94

skipif mysql # not compatible
query II rowsort label-5501
SELECT CASE + + MAX ( ALL - CAST ( NULL AS INTEGER ) ) WHEN - + 48 * + 73 THEN NULL WHEN + + 13 THEN + ( + NULLIF ( + 2, + 22 ) ) + 28 ELSE + + 51 + - + COUNT ( * ) END AS col0, - 94 AS col1
----
50
-94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5502
SELECT + COUNT( * ) * - 72 * + + 37 - + - 24 * - ( + 49 ) - + COUNT( * ) DIV + NULLIF ( - 70, 78 ) * 20 * 71 * ( + - ( 72 ) ) * + COUNT( * ) + - 8
----
-3848

skipif mysql # not compatible
query I rowsort label-5502
SELECT + COUNT ( * ) * - 72 * + + 37 - + - 24 * - ( + 49 ) - + COUNT ( * ) / + NULLIF ( - 70, 78 ) * 20 * 71 * ( + - ( 72 ) ) * + COUNT ( * ) + - 8
----
-3848

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5503
SELECT - - 59 * + 95 + + ( - 47 ) + - COALESCE ( - - 51, + + 53 + - COUNT( * ), + 55 ) * - + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5503
SELECT - - 59 * + 95 + + ( - 47 ) + - COALESCE ( - - 51, + + 53 + - COUNT ( * ), + 55 ) * - + CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 60 + + 71 - + 24 * - - 85 col2
----
-2029

query I rowsort
SELECT ALL + 2 + + + 67
----
69

query I rowsort
SELECT DISTINCT + 80 + - 51
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5507
SELECT ALL COUNT( * ) + + + 86 AS col1
----
87

skipif mysql # not compatible
query I rowsort label-5507
SELECT ALL COUNT ( * ) + + + 86 AS col1
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-5508
SELECT - COUNT( * ) + + 25 AS col1
----
24

skipif mysql # not compatible
query I rowsort label-5508
SELECT - COUNT ( * ) + + 25 AS col1
----
24

query I rowsort
SELECT - 89 * + 62 AS col1
----
-5518

onlyif mysql # aggregate syntax: 
query II rowsort label-5510
SELECT ALL + 89 AS col0, 23 + + MAX( ALL - 3 )
----
89
20

skipif mysql # not compatible
query II rowsort label-5510
SELECT ALL + 89 AS col0, 23 + + MAX ( ALL - 3 )
----
89
20

query I rowsort
SELECT - 47 * + - 99 + 67 AS col2
----
4720

onlyif mysql # aggregate syntax: 
query I rowsort label-5512
SELECT - COUNT( ALL + + 75 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5512
SELECT - COUNT ( ALL + + 75 ) AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5513
SELECT 79 + + 92 DIV - 95 AS col2
----
79

skipif mysql # not compatible
query I rowsort label-5513
SELECT 79 + + 92 / - 95 AS col2
----
79

query I rowsort
SELECT ( + ( - 57 ) ) + + 60 * 31
----
1803

query I rowsort
SELECT ALL 56 - - 66
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-5516
SELECT ALL - 97 - COUNT( * ) AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-5516
SELECT ALL - 97 - COUNT ( * ) AS col2
----
-98

query I rowsort
SELECT ( - - 4 ) + 63 AS col0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5518
SELECT COUNT( ALL 52 ) + + 60
----
61

skipif mysql # not compatible
query I rowsort label-5518
SELECT COUNT ( ALL 52 ) + + 60
----
61

query I rowsort
SELECT 97 * - 88 * + 75 AS col0
----
-640200

onlyif mysql # aggregate syntax: 
query I rowsort label-5520
SELECT 33 + 77 * COUNT( * ) * - - COUNT( * ) * MIN( + - 66 ) AS col2
----
-5049

skipif mysql # not compatible
query I rowsort label-5520
SELECT 33 + 77 * COUNT ( * ) * - - COUNT ( * ) * MIN ( + - 66 ) AS col2
----
-5049

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5521
SELECT ALL - COALESCE ( - - CAST( NULL AS SIGNED ), + 27 ) * 45 + 39 + ( 30 ) AS col1, + 42
----
-1146
42

skipif mysql # not compatible
query II rowsort label-5521
SELECT ALL - COALESCE ( - - CAST ( NULL AS INTEGER ), + 27 ) * 45 + 39 + ( 30 ) AS col1, + 42
----
-1146
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5522
SELECT 4 + 78 DIV + 82 * - ( - - COUNT( * ) ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-5522
SELECT 4 + 78 / + 82 * - ( - - COUNT ( * ) ) AS col0
----
4

query I rowsort
SELECT ALL 90 * + + 30 * 89 AS col0
----
240300

query I rowsort
SELECT ( + 43 ) + + 79 col0
----
122

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5525
SELECT - 4 DIV + ( COUNT( * ) ) + - 89
----
-93

skipif mysql # not compatible
query I rowsort label-5525
SELECT - 4 / + ( COUNT ( * ) ) + - 89
----
-93

query I rowsort
SELECT 60 + + - 13 * 36
----
-408

query I rowsort
SELECT ALL - + COALESCE ( - + 42, + 8 )
----
42

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5528
SELECT + 87 + + 2 + CAST( NULL AS DECIMAL ) - - + 46 * 31 AS col0, - 6 + - 10
----
NULL
-16

skipif mysql # not compatible
query II rowsort label-5528
SELECT + 87 + + 2 + CAST ( NULL AS REAL ) - - + 46 * 31 AS col0, - 6 + - 10
----
NULL
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5529
SELECT + + 33 * - 84 + + COALESCE ( - MAX( DISTINCT - NULLIF ( + 48, - + 50 ) ), + 1, + 0 DIV + 10 ) + + 71 AS col2
----
-2653

skipif mysql # not compatible
query I rowsort label-5529
SELECT + + 33 * - 84 + + COALESCE ( - MAX ( DISTINCT - NULLIF ( + 48, - + 50 ) ), + 1, + 0 / + 10 ) + + 71 AS col2
----
-2653

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5530
SELECT + - CAST( - 74 AS SIGNED ) AS col1
----
74

skipif mysql # not compatible
query I rowsort label-5530
SELECT + - CAST ( - 74 AS INTEGER ) AS col1
----
74

query II rowsort
SELECT DISTINCT - + 77 * - 46 * - + 55 + + 41, 29 * + - 4 AS col0
----
-194769
-116

onlyif mysql # aggregate syntax: 
query I rowsort label-5532
SELECT - - 53 * COUNT( * )
----
53

skipif mysql # not compatible
query I rowsort label-5532
SELECT - - 53 * COUNT ( * )
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-5533
SELECT - NULLIF ( + ( - 80 ), NULLIF ( + + 38, + COUNT( * ) * 27 + - ( + 23 ) + 30 ) / + 3 + - - 54 + - - 69 ) + ( - 37 ) col0
----
43

skipif mysql # not compatible
query I rowsort label-5533
SELECT - NULLIF ( + ( - 80 ), NULLIF ( + + 38, + COUNT ( * ) * 27 + - ( + 23 ) + 30 ) / + 3 + - - 54 + - - 69 ) + ( - 37 ) col0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-5534
SELECT ALL + 76 * COUNT( * ) + + 35 * + 93 + - - 37
----
3368

skipif mysql # not compatible
query I rowsort label-5534
SELECT ALL + 76 * COUNT ( * ) + + 35 * + 93 + - - 37
----
3368

query I rowsort
SELECT DISTINCT + + ( 34 )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-5536
SELECT DISTINCT + - MIN( ALL 40 )
----
-40

skipif mysql # not compatible
query I rowsort label-5536
SELECT DISTINCT + - MIN ( ALL 40 )
----
-40

query I rowsort
SELECT - + 27 * + 95
----
-2565

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5538
SELECT - 39 + + CAST( + 56 AS SIGNED ) AS col2
----
17

skipif mysql # not compatible
query I rowsort label-5538
SELECT - 39 + + CAST ( + 56 AS INTEGER ) AS col2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-5539
SELECT + COALESCE ( - + 61, - 7 ) * + COUNT( * ) + + 80
----
19

skipif mysql # not compatible
query I rowsort label-5539
SELECT + COALESCE ( - + 61, - 7 ) * + COUNT ( * ) + + 80
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5540
SELECT ALL NULLIF ( - ( - ( + NULLIF ( + 17, CAST( NULL AS SIGNED ) ) ) ), 81 ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-5540
SELECT ALL NULLIF ( - ( - ( + NULLIF ( + 17, CAST ( NULL AS INTEGER ) ) ) ), 81 ) AS col0
----
17

query II rowsort
SELECT DISTINCT 35 AS col2, 15 col0
----
35
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5542
SELECT ALL ( - 2 ) * + 66 + + 17 * + 24 + + NULLIF ( + - COUNT( * ), - + COUNT( * ) * - - 36 ) AS col1
----
275

skipif mysql # not compatible
query I rowsort label-5542
SELECT ALL ( - 2 ) * + 66 + + 17 * + 24 + + NULLIF ( + - COUNT ( * ), - + COUNT ( * ) * - - 36 ) AS col1
----
275

onlyif mysql # aggregate syntax: 
query II rowsort label-5543
SELECT + 45 + 87 + 34, + 24 * + COUNT( * ) AS col1
----
166
24

skipif mysql # not compatible
query II rowsort label-5543
SELECT + 45 + 87 + 34, + 24 * + COUNT ( * ) AS col1
----
166
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5544
SELECT + 21 + COUNT( DISTINCT + - 56 ) * - 60 * - 47 * - CAST( - MAX( 42 ) AS SIGNED ) - + + 43 AS col2
----
118418

skipif mysql # not compatible
query I rowsort label-5544
SELECT + 21 + COUNT ( DISTINCT + - 56 ) * - 60 * - 47 * - CAST ( - MAX ( 42 ) AS INTEGER ) - + + 43 AS col2
----
118418

query I rowsort
SELECT + 97 + 23
----
120

query I rowsort
SELECT + 73 + + 80
----
153

query I rowsort
SELECT ALL - 75 * - + 66 * 75
----
371250

query I rowsort
SELECT + 13 * - + 25
----
-325

query I rowsort
SELECT ALL 25 * - 40 * + 91
----
-91000

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5550
SELECT ALL 37 DIV NULLIF ( - - 39, - + SUM( + 79 ) ) DIV COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-5550
SELECT ALL 37 / NULLIF ( - - 39, - + SUM ( + 79 ) ) / COUNT ( * )
----
0

query I rowsort
SELECT ALL 93 + - 17
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5552
SELECT + - 23 - COALESCE ( - 22, - COUNT( * ) - CAST( NULL AS SIGNED ) + + CASE - + 6 WHEN 92 + 74 / + + COUNT( * ) THEN - + COUNT( * ) + - - CAST( NULL AS SIGNED ) END * + - 88 + - + 94 * CAST( COUNT( * ) AS SIGNED ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5552
SELECT + - 23 - COALESCE ( - 22, - COUNT ( * ) - CAST ( NULL AS INTEGER ) + + CASE - + 6 WHEN 92 + 74 / + + COUNT ( * ) THEN - + COUNT ( * ) + - - CAST ( NULL AS INTEGER ) END * + - 88 + - + 94 * CAST ( COUNT ( * ) AS INTEGER ) )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5553
SELECT + + ( - + 6 ) + CAST( 75 AS SIGNED ) * + 92, - 70 AS col1
----
6894
-70

skipif mysql # not compatible
query II rowsort label-5553
SELECT + + ( - + 6 ) + CAST ( 75 AS INTEGER ) * + 92, - 70 AS col1
----
6894
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-5554
SELECT - + 43 * + 37 * - - COUNT( * ) AS col0
----
-1591

skipif mysql # not compatible
query I rowsort label-5554
SELECT - + 43 * + 37 * - - COUNT ( * ) AS col0
----
-1591

query I rowsort
SELECT ALL + 38 + + - NULLIF ( - 93, + + 71 ) AS col2
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-5556
SELECT + ( + - COUNT( * ) ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-5556
SELECT + ( + - COUNT ( * ) ) col0
----
-1

query II rowsort
SELECT ALL + - 51 AS col1, 81 + - + 98 AS col0
----
-51
-17

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5558
SELECT DISTINCT 93 DIV 13 - 80 + - CAST( 71 AS SIGNED ) - - - 61 AS col1
----
-205

skipif mysql # not compatible
query I rowsort label-5558
SELECT DISTINCT 93 / 13 - 80 + - CAST ( 71 AS INTEGER ) - - - 61 AS col1
----
-205

onlyif mysql # DIV for integer division: 
query I rowsort label-5559
SELECT + 26 - 70 + - + 72 DIV 36 * - 78 + + 51
----
163

skipif mysql # not compatible
query I rowsort label-5559
SELECT + 26 - 70 + - + 72 / 36 * - 78 + + 51
----
163

onlyif mysql # aggregate syntax: 
query I rowsort label-5560
SELECT ALL + 21 * + - MIN( DISTINCT - 18 ) + - + 86
----
292

skipif mysql # not compatible
query I rowsort label-5560
SELECT ALL + 21 * + - MIN ( DISTINCT - 18 ) + - + 86
----
292

onlyif mysql # aggregate syntax: 
query I rowsort label-5561
SELECT + + COUNT( * ) + + 96 AS col1
----
97

skipif mysql # not compatible
query I rowsort label-5561
SELECT + + COUNT ( * ) + + 96 AS col1
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5562
SELECT - + COALESCE ( - + 86, 75 ) * - 25 + + CAST( + ( + 0 ) AS SIGNED ) AS col2
----
-2150

skipif mysql # not compatible
query I rowsort label-5562
SELECT - + COALESCE ( - + 86, 75 ) * - 25 + + CAST ( + ( + 0 ) AS INTEGER ) AS col2
----
-2150

query I rowsort
SELECT + ( + 78 ) col2
----
78

query I rowsort
SELECT - 28 * + 53 AS col1
----
-1484

onlyif mysql # aggregate syntax: 
query I rowsort label-5565
SELECT ALL - SUM( + - 25 ) * + 3 * - 42
----
-3150

skipif mysql # not compatible
query I rowsort label-5565
SELECT ALL - SUM ( + - 25 ) * + 3 * - 42
----
-3150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5566
SELECT ALL 31 * - CAST( NULL AS SIGNED ) - + + 80
----
NULL

skipif mysql # not compatible
query I rowsort label-5566
SELECT ALL 31 * - CAST ( NULL AS INTEGER ) - + + 80
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5567
SELECT DISTINCT + COALESCE ( - - MAX( ALL 26 ), CAST( + - CAST( - - 46 AS SIGNED ) AS SIGNED ) DIV + + 92 * 78 + - - COUNT( * ) + 35 - - 24 * 37 DIV - CASE - 89 WHEN - 63 THEN - 71 * + - 33 WHEN + 46 THEN NULL END - - 85 + - + 14, - + COUNT( * ) ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-5567
SELECT DISTINCT + COALESCE ( - - MAX ( ALL 26 ), CAST ( + - CAST ( - - 46 AS INTEGER ) AS INTEGER ) / + + 92 * 78 + - - COUNT ( * ) + 35 - - 24 * 37 / - CASE - 89 WHEN - 63 THEN - 71 * + - 33 WHEN + 46 THEN NULL END - - 85 + - + 14, - + COUNT ( * ) ) AS col0
----
26

query II rowsort
SELECT ALL + 69, - 90 AS col1
----
69
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-5569
SELECT COALESCE ( 76, 51 + - 88 * + 90, + - 29 DIV 45 * - 72 - + + 31 + - 89 * + 58 )
----
76

skipif mysql # not compatible
query I rowsort label-5569
SELECT COALESCE ( 76, 51 + - 88 * + 90, + - 29 / 45 * - 72 - + + 31 + - 89 * + 58 )
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-5570
SELECT ALL + NULLIF ( + 73, + + 83 * COUNT( * ) )
----
73

skipif mysql # not compatible
query I rowsort label-5570
SELECT ALL + NULLIF ( + 73, + + 83 * COUNT ( * ) )
----
73

query I rowsort
SELECT - 97 * - + 14
----
1358

query II rowsort
SELECT - 42 AS col0, - 29
----
-42
-29

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5573
SELECT - 44 DIV - CAST( + ( + 33 ) AS SIGNED ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5573
SELECT - 44 / - CAST ( + ( + 33 ) AS INTEGER ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5574
SELECT - 61 + + 72 + - 30 DIV + 81 col0
----
11

skipif mysql # not compatible
query I rowsort label-5574
SELECT - 61 + + 72 + - 30 / + 81 col0
----
11

query I rowsort
SELECT ALL 32 + + 88 AS col1
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-5576
SELECT - 38 + COUNT( * ) AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-5576
SELECT - 38 + COUNT ( * ) AS col2
----
-37

onlyif mysql # DIV for integer division: 
query II rowsort label-5577
SELECT ALL 49 * 28, 1 DIV + - 33 AS col2
----
1372
0

skipif mysql # not compatible
query II rowsort label-5577
SELECT ALL 49 * 28, 1 / + - 33 AS col2
----
1372
0

query I rowsort
SELECT - NULLIF ( + 6, - + 24 )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5579
SELECT DISTINCT - COUNT( ALL + 70 ) + - - 32 col1
----
31

skipif mysql # not compatible
query I rowsort label-5579
SELECT DISTINCT - COUNT ( ALL + 70 ) + - - 32 col1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5580
SELECT ALL 25 + COUNT( * ) * SUM( + ( - + 7 ) ) AS col2
----
18

skipif mysql # not compatible
query I rowsort label-5580
SELECT ALL 25 + COUNT ( * ) * SUM ( + ( - + 7 ) ) AS col2
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5581
SELECT - CASE 65 WHEN - MAX( ( 80 ) ) THEN 92 - + ( + 4 ) WHEN - 85 THEN - 51 * + - 31 ELSE + 63 END
----
-63

skipif mysql # not compatible
query I rowsort label-5581
SELECT - CASE 65 WHEN - MAX ( ( 80 ) ) THEN 92 - + ( + 4 ) WHEN - 85 THEN - 51 * + - 31 ELSE + 63 END
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5582
SELECT ALL - CAST( NULL AS SIGNED ) + + MIN( 21 ) * + 54 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5582
SELECT ALL - CAST ( NULL AS INTEGER ) + + MIN ( 21 ) * + 54 AS col1
----
NULL

query I rowsort
SELECT - 2 + - 95
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5584
SELECT + 7 - + CAST( NULL AS SIGNED ) / - 84 * + - 32 / + + ( + 10 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5584
SELECT + 7 - + CAST ( NULL AS INTEGER ) / - 84 * + - 32 / + + ( + 10 ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5585
SELECT + 30 + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5585
SELECT + 30 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL 0 + - 89
----
-89

query II rowsort
SELECT DISTINCT + 8 * - 14, 69 col1
----
-112
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5588
SELECT 49 + + 20 + - 39 * 67 - - + 71 + - 19 * + + SUM( ALL + CAST( NULL AS SIGNED ) ) * + - CAST( - - 44 AS SIGNED ) * - CASE + - CAST( NULL AS SIGNED ) WHEN + 38 + - 95 THEN NULL WHEN - 93 * + 32 / + 21 THEN + + 82 WHEN + - ( + - 66 ) THEN + 78 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5588
SELECT 49 + + 20 + - 39 * 67 - - + 71 + - 19 * + + SUM ( ALL + CAST ( NULL AS INTEGER ) ) * + - CAST ( - - 44 AS INTEGER ) * - CASE + - CAST ( NULL AS INTEGER ) WHEN + 38 + - 95 THEN NULL WHEN - 93 * + 32 / + 21 THEN + + 82 WHEN + - ( + - 66 ) THEN + 78 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5589
SELECT 82 + - NULLIF ( - 76, CAST( NULL AS SIGNED ) )
----
158

skipif mysql # not compatible
query I rowsort label-5589
SELECT 82 + - NULLIF ( - 76, CAST ( NULL AS INTEGER ) )
----
158

onlyif mysql # aggregate syntax: 
query II rowsort label-5590
SELECT ALL + COUNT( * ) AS col1, COUNT( * ) + - + COUNT( * ) * + - 60
----
1
61

skipif mysql # not compatible
query II rowsort label-5590
SELECT ALL + COUNT ( * ) AS col1, COUNT ( * ) + - + COUNT ( * ) * + - 60
----
1
61

query I rowsort
SELECT 28 + 62 AS col0
----
90

query I rowsort
SELECT ALL - COALESCE ( 33, - 13, 15 ) AS col2
----
-33

query I rowsort
SELECT 92 + - 95 + - 83 col1
----
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-5594
SELECT 7 DIV + + 58 * + 52
----
0

skipif mysql # not compatible
query I rowsort label-5594
SELECT 7 / + + 58 * + 52
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5595
SELECT MIN( ALL + 13 ) + - 7
----
6

skipif mysql # not compatible
query I rowsort label-5595
SELECT MIN ( ALL + 13 ) + - 7
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5596
SELECT + ( - + 89 ) * + ( 47 ) + 31 + - 8 + COALESCE ( - + 69, - 92, + 96 * + 62 ) * - COUNT( * ) + + - 6 AS col2
----
-4097

skipif mysql # not compatible
query I rowsort label-5596
SELECT + ( - + 89 ) * + ( 47 ) + 31 + - 8 + COALESCE ( - + 69, - 92, + 96 * + 62 ) * - COUNT ( * ) + + - 6 AS col2
----
-4097

query III rowsort
SELECT + + 84 AS col2, - 31 AS col1, + ( - ( 2 ) )
----
84
-31
-2

query II rowsort
SELECT + 20, - 80 AS col1
----
20
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-5599
SELECT - 69 DIV + 8 + + + ( - - 17 ) + - 68
----
-59

skipif mysql # not compatible
query I rowsort label-5599
SELECT - 69 / + 8 + + + ( - - 17 ) + - 68
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5600
SELECT ALL - COALESCE ( 6, + CASE - + CAST( 61 AS SIGNED ) WHEN + COALESCE ( + - 83, 53 + 26 ) / 93 THEN - 11 WHEN - + 88 + - 55 * - - ( ( COUNT( * ) ) ) * 39 / - 50 - - - 13 THEN + 55 WHEN 61 * 84 + + 32 THEN COUNT( * ) END, 39 )
----
-6

skipif mysql # not compatible
query I rowsort label-5600
SELECT ALL - COALESCE ( 6, + CASE - + CAST ( 61 AS INTEGER ) WHEN + COALESCE ( + - 83, 53 + 26 ) / 93 THEN - 11 WHEN - + 88 + - 55 * - - ( ( COUNT ( * ) ) ) * 39 / - 50 - - - 13 THEN + 55 WHEN 61 * 84 + + 32 THEN COUNT ( * ) END, 39 )
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5601
SELECT + - 2 / COUNT( * ) + - + CAST( NULL AS SIGNED ) + - + ( NULLIF ( 45, ( - - NULLIF ( + 89, + COUNT( * ) / 99 * + 23 + 47 ) ) ) ) * 36 - - - 29 * - + CASE - + 0 WHEN CASE 40 WHEN - - 36 THEN NULL WHEN - - 34 * + CAST( ( + COUNT( * ) ) AS SIGNED ) THEN - 60 * COALESCE ( 76, + 63 * + 12 + ( 28 ), 64 ) + - 50 / + 16 END - - 74 THEN + 50 * - MAX( DISTINCT + 78 ) + 49 WHEN + ( 36 ) THEN - CASE - 12 WHEN + ( + 94 ) + + 25 THEN COUNT( * ) END + - COUNT( * ) * - 19 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5601
SELECT + - 2 / COUNT ( * ) + - + CAST ( NULL AS INTEGER ) + - + ( NULLIF ( 45, ( - - NULLIF ( + 89, + COUNT ( * ) / 99 * + 23 + 47 ) ) ) ) * 36 - - - 29 * - + CASE - + 0 WHEN CASE 40 WHEN - - 36 THEN NULL WHEN - - 34 * + CAST ( ( + COUNT ( * ) ) AS INTEGER ) THEN - 60 * COALESCE ( 76, + 63 * + 12 + ( 28 ), 64 ) + - 50 / + 16 END - - 74 THEN + 50 * - MAX ( DISTINCT + 78 ) + 49 WHEN + ( 36 ) THEN - CASE - 12 WHEN + ( + 94 ) + + 25 THEN COUNT ( * ) END + - COUNT ( * ) * - 19 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5602
SELECT DISTINCT - 88 * SUM( + 77 )
----
-6776

skipif mysql # not compatible
query I rowsort label-5602
SELECT DISTINCT - 88 * SUM ( + 77 )
----
-6776

query I rowsort
SELECT DISTINCT - - ( + 17 ) AS col0
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-5604
SELECT ALL - MAX( - - ( - + 77 ) ) AS col2, - 21
----
77
-21

skipif mysql # not compatible
query II rowsort label-5604
SELECT ALL - MAX ( - - ( - + 77 ) ) AS col2, - 21
----
77
-21

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5605
SELECT 72 - + - 58 + - + 55 + - 11 + 85 * - COUNT( * ) + - COUNT( * ) + - ( + - 62 ) + - 62 / - 35 + - 26 + ( + MAX( - CAST( NULL AS DECIMAL ) ) ) * + 35 * - 98, + 98 AS col2
----
NULL
98

skipif mysql # not compatible
query II rowsort label-5605
SELECT 72 - + - 58 + - + 55 + - 11 + 85 * - COUNT ( * ) + - COUNT ( * ) + - ( + - 62 ) + - 62 / - 35 + - 26 + ( + MAX ( - CAST ( NULL AS REAL ) ) ) * + 35 * - 98, + 98 AS col2
----
NULL
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5606
SELECT 8 * + COALESCE ( + COUNT( * ), + 98 )
----
8

skipif mysql # not compatible
query I rowsort label-5606
SELECT 8 * + COALESCE ( + COUNT ( * ), + 98 )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5607
SELECT 23 + + COUNT( * ) + + 70 + MIN( - + 67 ) * + 34 * - 99 * 2 * - - 32 col1
----
14433502

skipif mysql # not compatible
query I rowsort label-5607
SELECT 23 + + COUNT ( * ) + + 70 + MIN ( - + 67 ) * + 34 * - 99 * 2 * - - 32 col1
----
14433502

onlyif mysql # aggregate syntax: 
query I rowsort label-5608
SELECT SUM( + + 16 ) * COUNT( 70 )
----
16

skipif mysql # not compatible
query I rowsort label-5608
SELECT SUM ( + + 16 ) * COUNT ( 70 )
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5609
SELECT 33 + - CAST( NULL AS SIGNED ) * 91 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5609
SELECT 33 + - CAST ( NULL AS INTEGER ) * 91 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5610
SELECT COUNT( * ) + - + 87 AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-5610
SELECT COUNT ( * ) + - + 87 AS col2
----
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5611
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5611
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 70 * + 30 * - 49 + 57
----
102957

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5613
SELECT ALL 26 / + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5613
SELECT ALL 26 / + CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5614
SELECT 39 + COALESCE ( + - 15, + 90 ) - + + COUNT( * )
----
23

skipif mysql # not compatible
query I rowsort label-5614
SELECT 39 + COALESCE ( + - 15, + 90 ) - + + COUNT ( * )
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5615
SELECT ( - + CAST( + COUNT( * ) AS SIGNED ) ) * ( - 39 ) + - - 10 AS col1
----
49

skipif mysql # not compatible
query I rowsort label-5615
SELECT ( - + CAST ( + COUNT ( * ) AS INTEGER ) ) * ( - 39 ) + - - 10 AS col1
----
49

query I rowsort
SELECT 48 + + 81 AS col0
----
129

query I rowsort
SELECT 22 * - 54 AS col1
----
-1188

onlyif mysql # aggregate syntax: 
query I rowsort label-5618
SELECT DISTINCT 32 + COUNT( * ) + - 93 * - 10
----
963

skipif mysql # not compatible
query I rowsort label-5618
SELECT DISTINCT 32 + COUNT ( * ) + - 93 * - 10
----
963

onlyif mysql # DIV for integer division: 
query I rowsort label-5619
SELECT DISTINCT + + 63 DIV 79 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5619
SELECT DISTINCT + + 63 / 79 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5620
SELECT DISTINCT + 77 DIV 57
----
1

skipif mysql # not compatible
query I rowsort label-5620
SELECT DISTINCT + 77 / 57
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5621
SELECT ALL + COUNT( 69 ) * + - 74
----
-74

skipif mysql # not compatible
query I rowsort label-5621
SELECT ALL + COUNT ( 69 ) * + - 74
----
-74

query I rowsort
SELECT 27 * 48 + 52 AS col0
----
1348

query I rowsort
SELECT - 47 - + 10 AS col2
----
-57

query I rowsort
SELECT 74 * - 50 - - 52 AS col1
----
-3648

onlyif mysql # aggregate syntax: 
query II rowsort label-5625
SELECT 76 + 95, COUNT( * ) AS col1
----
171
1

skipif mysql # not compatible
query II rowsort label-5625
SELECT 76 + 95, COUNT ( * ) AS col1
----
171
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5626
SELECT COUNT( + 17 ) * COALESCE ( + 11, 98 ) DIV - 95 + + - COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5626
SELECT COUNT ( + 17 ) * COALESCE ( + 11, 98 ) / - 95 + + - COUNT ( * ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5627
SELECT ALL + 3 * - - 45 + COUNT( * ) AS col2
----
136

skipif mysql # not compatible
query I rowsort label-5627
SELECT ALL + 3 * - - 45 + COUNT ( * ) AS col2
----
136

query II rowsort
SELECT DISTINCT + 92 * + 85 AS col2, 71 * 32 AS col1
----
7820
2272

onlyif mysql # aggregate syntax: 
query I rowsort label-5629
SELECT ALL - MAX( + 98 ) AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-5629
SELECT ALL - MAX ( + 98 ) AS col1
----
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5630
SELECT + 25 DIV + 30 * - - 60 * - 17 + - + 48 - - + COUNT( * ) - + - 97 * - - 63 * + + 85
----
519388

skipif mysql # not compatible
query I rowsort label-5630
SELECT + 25 / + 30 * - - 60 * - 17 + - + 48 - - + COUNT ( * ) - + - 97 * - - 63 * + + 85
----
519388

onlyif mysql # aggregate syntax: 
query I rowsort label-5631
SELECT DISTINCT - COALESCE ( - COUNT( * ), 98 * + + 20 )
----
1

skipif mysql # not compatible
query I rowsort label-5631
SELECT DISTINCT - COALESCE ( - COUNT ( * ), 98 * + + 20 )
----
1

query I rowsort
SELECT ALL - + ( - 85 ) AS col2
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-5633
SELECT - 46 DIV - + 78
----
0

skipif mysql # not compatible
query I rowsort label-5633
SELECT - 46 / - + 78
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5634
SELECT DISTINCT COUNT( * ) DIV + 43
----
0

skipif mysql # not compatible
query I rowsort label-5634
SELECT DISTINCT COUNT ( * ) / + 43
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5635
SELECT ( + + 6 ) - + 67 + - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5635
SELECT ( + + 6 ) - + 67 + - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5636
SELECT COUNT( DISTINCT + 18 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5636
SELECT COUNT ( DISTINCT + 18 ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5637
SELECT CAST( NULL AS SIGNED ) / - 80 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5637
SELECT CAST ( NULL AS INTEGER ) / - 80 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5638
SELECT ALL CASE - COUNT( * ) WHEN - + 81 * - 70 + - - 63 + 1 + + - 88 + + MAX( - 24 ) THEN NULL ELSE 90 DIV 88 END + 58
----
59

skipif mysql # not compatible
query I rowsort label-5638
SELECT ALL CASE - COUNT ( * ) WHEN - + 81 * - 70 + - - 63 + 1 + + - 88 + + MAX ( - 24 ) THEN NULL ELSE 90 / 88 END + 58
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5639
SELECT DISTINCT + COUNT( * ) DIV + ( + SUM( ALL - 53 ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5639
SELECT DISTINCT + COUNT ( * ) / + ( + SUM ( ALL - 53 ) ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5640
SELECT ALL MIN( DISTINCT - 86 ) + 89 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-5640
SELECT ALL MIN ( DISTINCT - 86 ) + 89 AS col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5641
SELECT MAX( 98 ) AS col2
----
98

skipif mysql # not compatible
query I rowsort label-5641
SELECT MAX ( 98 ) AS col2
----
98

query I rowsort
SELECT DISTINCT 85 + + + 42 AS col0
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-5643
SELECT DISTINCT + 62 + + + 90 + 97 * - COUNT( * ) + 75
----
130

skipif mysql # not compatible
query I rowsort label-5643
SELECT DISTINCT + 62 + + + 90 + 97 * - COUNT ( * ) + 75
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-5644
SELECT 3 + ( + + COUNT( * ) ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-5644
SELECT 3 + ( + + COUNT ( * ) ) AS col2
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5645
SELECT ALL 14 + - 65 * - 44 - 70 + + 86 * - + 93 * - + NULLIF ( + + CAST( NULL AS SIGNED ), + 0 * + - 7 + - 85 + - COUNT( * ) * 29 * + 92 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5645
SELECT ALL 14 + - 65 * - 44 - 70 + + 86 * - + 93 * - + NULLIF ( + + CAST ( NULL AS INTEGER ), + 0 * + - 7 + - 85 + - COUNT ( * ) * 29 * + 92 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5646
SELECT - ( + 45 ) * + COUNT( * ) + 26
----
-19

skipif mysql # not compatible
query I rowsort label-5646
SELECT - ( + 45 ) * + COUNT ( * ) + 26
----
-19

query I rowsort
SELECT + 96 * + 74
----
7104

query II rowsort
SELECT - 13 AS col1, 61
----
-13
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5649
SELECT ALL - 45 + - 41 + - 24 + + ( + - 44 ) * 33 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5649
SELECT ALL - 45 + - 41 + - 24 + + ( + - 44 ) * 33 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5650
SELECT + 72 + - 9 + - SUM( 72 ) + 15 - 3
----
3

skipif mysql # not compatible
query I rowsort label-5650
SELECT + 72 + - 9 + - SUM ( 72 ) + 15 - 3
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5651
SELECT ALL + 81 * + MIN( 70 ) * - + 94 AS col2
----
-532980

skipif mysql # not compatible
query I rowsort label-5651
SELECT ALL + 81 * + MIN ( 70 ) * - + 94 AS col2
----
-532980

query I rowsort
SELECT + + 70 + + - 48 + ( - - 96 ) * + + 17 - - ( 39 ) * + 69
----
4345

query I rowsort
SELECT ALL + - 36 * - + ( + + 10 ) * + 55 AS col1
----
19800

onlyif mysql # DIV for integer division: 
query I rowsort label-5654
SELECT DISTINCT 43 DIV ( - + 45 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5654
SELECT DISTINCT 43 / ( - + 45 ) AS col2
----
0

query I rowsort
SELECT ALL - 84 - + 87 col1
----
-171

onlyif mysql # aggregate syntax: 
query I rowsort label-5656
SELECT - 92 + - + MAX( ALL ( 74 ) ) + CASE + - COUNT( * ) WHEN + - 1 THEN + 5 WHEN - ( - 56 ) * + 6 + - 61 THEN NULL END AS col2
----
-161

skipif mysql # not compatible
query I rowsort label-5656
SELECT - 92 + - + MAX ( ALL ( 74 ) ) + CASE + - COUNT ( * ) WHEN + - 1 THEN + 5 WHEN - ( - 56 ) * + 6 + - 61 THEN NULL END AS col2
----
-161

query I rowsort
SELECT + 45 + - - 99
----
144

onlyif mysql # aggregate syntax: 
query II rowsort label-5658
SELECT - - 29 + 52 * 73 AS col0, - 12 + + + MAX( DISTINCT 91 ) * - COUNT( - 16 )
----
3825
-103

skipif mysql # not compatible
query II rowsort label-5658
SELECT - - 29 + 52 * 73 AS col0, - 12 + + + MAX ( DISTINCT 91 ) * - COUNT ( - 16 )
----
3825
-103

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5659
SELECT - + 54 + ( + CAST( NULL AS DECIMAL ) ) / + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5659
SELECT - + 54 + ( + CAST ( NULL AS REAL ) ) / + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5660
SELECT ALL + NULLIF ( 34, - 90 / 41 / + COUNT( * ) + 96 ) AS col1
----
34

skipif mysql # not compatible
query I rowsort label-5660
SELECT ALL + NULLIF ( 34, - 90 / 41 / + COUNT ( * ) + 96 ) AS col1
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-5661
SELECT ALL - 99 DIV - 92
----
1

skipif mysql # not compatible
query I rowsort label-5661
SELECT ALL - 99 / - 92
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5662
SELECT - - 93 + 29 * - + ( - SUM( ALL 8 ) ) + + ( - 23 )
----
302

skipif mysql # not compatible
query I rowsort label-5662
SELECT - - 93 + 29 * - + ( - SUM ( ALL 8 ) ) + + ( - 23 )
----
302

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5663
SELECT ALL - 82 * - + 46 + + CAST( NULL AS SIGNED ) AS col1, 63 col0
----
NULL
63

skipif mysql # not compatible
query II rowsort label-5663
SELECT ALL - 82 * - + 46 + + CAST ( NULL AS INTEGER ) AS col1, 63 col0
----
NULL
63

query I rowsort
SELECT - 17 * + ( - 29 ) + ( ( + 19 ) )
----
512

onlyif mysql # aggregate syntax: 
query I rowsort label-5665
SELECT DISTINCT + + COUNT( + CASE - 30 WHEN 99 * - 71 + 95 / - 64 * 86 THEN - 32 END ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5665
SELECT DISTINCT + + COUNT ( + CASE - 30 WHEN 99 * - 71 + 95 / - 64 * 86 THEN - 32 END ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5666
SELECT - + 16 + + ( 22 ) + 17 * + MAX( ALL 10 ) * + COUNT( * ) + + 32 * - 82
----
-2448

skipif mysql # not compatible
query I rowsort label-5666
SELECT - + 16 + + ( 22 ) + 17 * + MAX ( ALL 10 ) * + COUNT ( * ) + + 32 * - 82
----
-2448

onlyif mysql # aggregate syntax: 
query II rowsort label-5667
SELECT + - COUNT( * ) AS col0, 84 + + + 86 AS col0
----
-1
170

skipif mysql # not compatible
query II rowsort label-5667
SELECT + - COUNT ( * ) AS col0, 84 + + + 86 AS col0
----
-1
170

onlyif mysql # aggregate syntax: 
query I rowsort label-5668
SELECT - - COUNT( DISTINCT 4 ) + + 97 + + - MIN( + 61 ) + 24 * 19 * + 43
----
19645

skipif mysql # not compatible
query I rowsort label-5668
SELECT - - COUNT ( DISTINCT 4 ) + + 97 + + - MIN ( + 61 ) + 24 * 19 * + 43
----
19645

onlyif mysql # aggregate syntax: 
query I rowsort label-5669
SELECT ALL + 47 * - - COUNT( * )
----
47

skipif mysql # not compatible
query I rowsort label-5669
SELECT ALL + 47 * - - COUNT ( * )
----
47

query I rowsort
SELECT - ( - - 67 ) * 2
----
-134

onlyif mysql # aggregate syntax: 
query II rowsort label-5671
SELECT + 98 * + + 85, + COUNT( * ) + - 17 col1
----
8330
-16

skipif mysql # not compatible
query II rowsort label-5671
SELECT + 98 * + + 85, + COUNT ( * ) + - 17 col1
----
8330
-16

query I rowsort
SELECT ( + - CASE - ( - 25 ) WHEN + - 52 + + 13 - + 85 + + 20 * - 98 THEN + 76 WHEN - AVG ( ALL - + 30 ) THEN NULL ELSE NULL END ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5673
SELECT ALL - 18 * - COUNT( * ) + - 41 + + 31, 27 + - 37 * + + MAX( ALL 79 ) AS col0
----
8
-2896

skipif mysql # not compatible
query II rowsort label-5673
SELECT ALL - 18 * - COUNT ( * ) + - 41 + + 31, 27 + - 37 * + + MAX ( ALL 79 ) AS col0
----
8
-2896

query I rowsort
SELECT - 62 + + 45 AS col1
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-5675
SELECT NULLIF ( - 54, - + COUNT( * ) ) AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-5675
SELECT NULLIF ( - 54, - + COUNT ( * ) ) AS col1
----
-54

query I rowsort
SELECT DISTINCT + COALESCE ( 72, + 70 ) * + + 9 * 72
----
46656

onlyif mysql # aggregate syntax: 
query II rowsort label-5677
SELECT - 26 * + - COUNT( * ) AS col2, - 3
----
26
-3

skipif mysql # not compatible
query II rowsort label-5677
SELECT - 26 * + - COUNT ( * ) AS col2, - 3
----
26
-3

query I rowsort
SELECT - 85 - 25 - + - 94 AS col2
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5679
SELECT + NULLIF ( + - 34, + 39 * - CAST( + 6 AS SIGNED ) * 87 + + - 3 - + + 42 ) AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-5679
SELECT + NULLIF ( + - 34, + 39 * - CAST ( + 6 AS INTEGER ) * 87 + + - 3 - + + 42 ) AS col2
----
-34

query I rowsort
SELECT NULLIF ( - 8, - 99 + 16 ) AS col0
----
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5681
SELECT 76 * - + 4 + COUNT( * ) DIV CASE ( 24 ) WHEN + + 84 - 80 THEN NULL WHEN + 98 THEN NULL ELSE + ( - 43 ) END AS col2
----
-304

skipif mysql # not compatible
query I rowsort label-5681
SELECT 76 * - + 4 + COUNT ( * ) / CASE ( 24 ) WHEN + + 84 - 80 THEN NULL WHEN + 98 THEN NULL ELSE + ( - 43 ) END AS col2
----
-304

onlyif mysql # DIV for integer division: 
query I rowsort label-5682
SELECT ALL 73 DIV + 83 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5682
SELECT ALL 73 / + 83 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5683
SELECT + 85 + - 58 + - CASE + ( 23 ) WHEN + MIN( 97 ) THEN + - 87 END + + 91 * + 5 + 49
----
NULL

skipif mysql # not compatible
query I rowsort label-5683
SELECT + 85 + - 58 + - CASE + ( 23 ) WHEN + MIN ( 97 ) THEN + - 87 END + + 91 * + 5 + 49
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5684
SELECT - 96 * CASE + 79 WHEN + 61 + - + AVG ( + - 98 ) THEN + NULLIF ( - COUNT( * ), + - 23 ) * + 47 - - 0 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5684
SELECT - 96 * CASE + 79 WHEN + 61 + - + AVG ( + - 98 ) THEN + NULLIF ( - COUNT ( * ), + - 23 ) * + 47 - - 0 END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5685
SELECT ALL - COUNT( ALL 87 ) DIV + 47
----
0

skipif mysql # not compatible
query I rowsort label-5685
SELECT ALL - COUNT ( ALL 87 ) / + 47
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5686
SELECT + NULLIF ( + 27, CASE + 56 WHEN - 94 * - 40 * + 26 THEN NULL WHEN + + 28 THEN + 6 ELSE COUNT( * ) - 1 END + 47 )
----
27

skipif mysql # not compatible
query I rowsort label-5686
SELECT + NULLIF ( + 27, CASE + 56 WHEN - 94 * - 40 * + 26 THEN NULL WHEN + + 28 THEN + 6 ELSE COUNT ( * ) - 1 END + 47 )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5687
SELECT ALL MAX( 63 )
----
63

skipif mysql # not compatible
query I rowsort label-5687
SELECT ALL MAX ( 63 )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-5688
SELECT ALL ( 49 ) * + 98 - 99 + + COUNT( * )
----
4704

skipif mysql # not compatible
query I rowsort label-5688
SELECT ALL ( 49 ) * + 98 - 99 + + COUNT ( * )
----
4704

query I rowsort
SELECT + 76 * - 10 * 40 col0
----
-30400

onlyif mysql # aggregate syntax: 
query II rowsort label-5690
SELECT DISTINCT 50 * + 83 AS col1, MAX( + 41 ) * 86 * - 89 + - - 32
----
4150
-313782

skipif mysql # not compatible
query II rowsort label-5690
SELECT DISTINCT 50 * + 83 AS col1, MAX ( + 41 ) * 86 * - 89 + - - 32
----
4150
-313782

query I rowsort
SELECT + - CASE + 50 WHEN + 7 * - 64 THEN 0 + 62 ELSE NULL END + 91
----
NULL

query I rowsort
SELECT + 38 * - 12 AS col2
----
-456

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5693
SELECT + CASE - ( + CASE + MIN( - - 8 ) WHEN 38 THEN NULL WHEN 84 * + 19 + - 60 THEN + + CAST( 24 AS SIGNED ) WHEN - 10 * 37 - COUNT( * ) THEN - 21 ELSE NULL END ) WHEN + - ( - SUM( ALL + 74 ) ) * COUNT( * ) THEN NULL WHEN + COUNT( * ) THEN - 49 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5693
SELECT + CASE - ( + CASE + MIN ( - - 8 ) WHEN 38 THEN NULL WHEN 84 * + 19 + - 60 THEN + + CAST ( 24 AS INTEGER ) WHEN - 10 * 37 - COUNT ( * ) THEN - 21 ELSE NULL END ) WHEN + - ( - SUM ( ALL + 74 ) ) * COUNT ( * ) THEN NULL WHEN + COUNT ( * ) THEN - 49 END AS col0
----
NULL

query I rowsort
SELECT + + 14 * + 45
----
630

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5695
SELECT DISTINCT + + 91 * 13 DIV - ( - 35 ) + COUNT( * )
----
34

skipif mysql # not compatible
query I rowsort label-5695
SELECT DISTINCT + + 91 * 13 / - ( - 35 ) + COUNT ( * )
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-5696
SELECT ALL + 53 * + - 64 AS col1, ( + COUNT( * ) ) - - + 73
----
-3392
74

skipif mysql # not compatible
query II rowsort label-5696
SELECT ALL + 53 * + - 64 AS col1, ( + COUNT ( * ) ) - - + 73
----
-3392
74

onlyif mysql # aggregate syntax: 
query I rowsort label-5697
SELECT ALL MIN( ALL + + 92 ) * + 54
----
4968

skipif mysql # not compatible
query I rowsort label-5697
SELECT ALL MIN ( ALL + + 92 ) * + 54
----
4968

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5698
SELECT - CASE - 56 WHEN - CAST( NULL AS DECIMAL ) * - 58 THEN NULL WHEN - 73 - - 55 * + COUNT( * ) THEN 98 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5698
SELECT - CASE - 56 WHEN - CAST ( NULL AS REAL ) * - 58 THEN NULL WHEN - 73 - - 55 * + COUNT ( * ) THEN 98 END
----
NULL

query I rowsort
SELECT + - 62 + + 28 * - 44 - 60 AS col0
----
-1354

query I rowsort
SELECT DISTINCT + - 87 + NULLIF ( + 14, - + 54 ) AS col2
----
-73

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5701
SELECT CASE 20 WHEN - CAST( NULL AS DECIMAL ) THEN + CAST( NULL AS SIGNED ) - + 52 + - + 67 ELSE 10 END AS col2
----
10

skipif mysql # not compatible
query I rowsort label-5701
SELECT CASE 20 WHEN - CAST ( NULL AS REAL ) THEN + CAST ( NULL AS INTEGER ) - + 52 + - + 67 ELSE 10 END AS col2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5702
SELECT 53 * + NULLIF ( - 48, COUNT( DISTINCT - 36 ) / AVG ( 40 ) * + + NULLIF ( - COUNT( * ), 1 ) + 49 ) - - 85 AS col1
----
-2459

skipif mysql # not compatible
query I rowsort label-5702
SELECT 53 * + NULLIF ( - 48, COUNT ( DISTINCT - 36 ) / AVG ( 40 ) * + + NULLIF ( - COUNT ( * ), 1 ) + 49 ) - - 85 AS col1
----
-2459

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5703
SELECT DISTINCT + COUNT( * ), - 17 * 9 / + CAST( NULL AS SIGNED ) + - - 50 AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-5703
SELECT DISTINCT + COUNT ( * ), - 17 * 9 / + CAST ( NULL AS INTEGER ) + - - 50 AS col0
----
1
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5704
SELECT + 27 DIV COUNT( * )
----
27

skipif mysql # not compatible
query I rowsort label-5704
SELECT + 27 / COUNT ( * )
----
27

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5705
SELECT - CAST( + 22 AS SIGNED ) DIV - + 74 + - 40 + + 72, 42 + + 66 + + + ( 15 ) AS col1
----
32
123

skipif mysql # not compatible
query II rowsort label-5705
SELECT - CAST ( + 22 AS INTEGER ) / - + 74 + - 40 + + 72, 42 + + 66 + + + ( 15 ) AS col1
----
32
123

onlyif mysql # aggregate syntax: 
query I rowsort label-5706
SELECT COUNT( * ) * + 10 AS col0
----
10

skipif mysql # not compatible
query I rowsort label-5706
SELECT COUNT ( * ) * + 10 AS col0
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5707
SELECT DISTINCT + MIN( + + 75 ) * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5707
SELECT DISTINCT + MIN ( + + 75 ) * CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5708
SELECT ALL - CAST( NULL AS SIGNED ) - + + 86
----
NULL

skipif mysql # not compatible
query I rowsort label-5708
SELECT ALL - CAST ( NULL AS INTEGER ) - + + 86
----
NULL

query I rowsort
SELECT DISTINCT + 27 - + - 87
----
114

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5710
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * + 47
----
NULL

skipif mysql # not compatible
query I rowsort label-5710
SELECT DISTINCT - CAST ( NULL AS REAL ) * + 47
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5711
SELECT DISTINCT - 25 AS col0, 60 * - - ( 49 ) + - + COUNT( * ) + - + NULLIF ( 83, - NULLIF ( - + ( + 87 ), - 20 + - 44 ) * - COUNT( * ) * - 36 * 22 - + - 80 * + NULLIF ( 3, + COUNT( * ) ) * - COUNT( * ) * - AVG ( + 53 ) * - 99 * - - 50 ) + - 90 * - 51
----
-25
7446

skipif mysql # not compatible
query II rowsort label-5711
SELECT DISTINCT - 25 AS col0, 60 * - - ( 49 ) + - + COUNT ( * ) + - + NULLIF ( 83, - NULLIF ( - + ( + 87 ), - 20 + - 44 ) * - COUNT ( * ) * - 36 * 22 - + - 80 * + NULLIF ( 3, + COUNT ( * ) ) * - COUNT ( * ) * - AVG ( + 53 ) * - 99 * - - 50 ) + - 90 * - 51
----
-25
7446

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5712
SELECT 38 + + + CAST( - 18 AS SIGNED )
----
20

skipif mysql # not compatible
query I rowsort label-5712
SELECT 38 + + + CAST ( - 18 AS INTEGER )
----
20

query I rowsort
SELECT 79 - - 19 * + 89
----
1770

onlyif mysql # aggregate syntax: 
query I rowsort label-5714
SELECT + 74 * COUNT( * ) * 79 AS col2
----
5846

skipif mysql # not compatible
query I rowsort label-5714
SELECT + 74 * COUNT ( * ) * 79 AS col2
----
5846

onlyif mysql # aggregate syntax: 
query I rowsort label-5715
SELECT - 27 + + ( COUNT( * ) ) - 56 col1
----
-82

skipif mysql # not compatible
query I rowsort label-5715
SELECT - 27 + + ( COUNT ( * ) ) - 56 col1
----
-82

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5716
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - CAST( + 50 AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5716
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - CAST ( + 50 AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5717
SELECT DISTINCT - 4 + + - COALESCE ( + 6, MAX( ALL + 75 ) ) AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-5717
SELECT DISTINCT - 4 + + - COALESCE ( + 6, MAX ( ALL + 75 ) ) AS col1
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-5718
SELECT ALL MIN( - - 31 ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-5718
SELECT ALL MIN ( - - 31 ) AS col2
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5719
SELECT + CAST( + NULLIF ( - 52, + 5 + + COUNT( * ) * 39 + + COUNT( * ) ) AS SIGNED ) + - 5 + + 23 AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-5719
SELECT + CAST ( + NULLIF ( - 52, + 5 + + COUNT ( * ) * 39 + + COUNT ( * ) ) AS INTEGER ) + - 5 + + 23 AS col0
----
-34

query I rowsort
SELECT ALL + 71 + + 22 AS col0
----
93

query I rowsort
SELECT DISTINCT 51 * - 97 * - + 41
----
202827

onlyif mysql # aggregate syntax: 
query I rowsort label-5722
SELECT + 90 + + SUM( DISTINCT 54 )
----
144

skipif mysql # not compatible
query I rowsort label-5722
SELECT + 90 + + SUM ( DISTINCT 54 )
----
144

query I rowsort
SELECT ALL + 22 + + 34 AS col2
----
56

query I rowsort
SELECT 20 + 92
----
112

query II rowsort
SELECT 42 AS col2, 19 AS col0
----
42
19

onlyif mysql # aggregate syntax: 
query I rowsort label-5726
SELECT 0 + + + MAX( - 5 ) * 3 + + - NULLIF ( - - 25, + - 67 ) AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-5726
SELECT 0 + + + MAX ( - 5 ) * 3 + + - NULLIF ( - - 25, + - 67 ) AS col1
----
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-5727
SELECT 78 AS col0, + COUNT( * ) * - + 93
----
78
-93

skipif mysql # not compatible
query II rowsort label-5727
SELECT 78 AS col0, + COUNT ( * ) * - + 93
----
78
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5728
SELECT DISTINCT SUM( DISTINCT - + 91 ) + 19 DIV CASE - - 0 WHEN + 98 + 57 THEN NULL ELSE - 59 * + 66 DIV 3 END
----
-91

skipif mysql # not compatible
query I rowsort label-5728
SELECT DISTINCT SUM ( DISTINCT - + 91 ) + 19 / CASE - - 0 WHEN + 98 + 57 THEN NULL ELSE - 59 * + 66 / 3 END
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5729
SELECT ( - + COUNT( * ) ) + 1 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5729
SELECT ( - + COUNT ( * ) ) + 1 AS col0
----
0

query I rowsort
SELECT DISTINCT 62 * 2 * 38 AS col1
----
4712

query I rowsort
SELECT 42 * - 66 AS col0
----
-2772

onlyif mysql # aggregate syntax: 
query I rowsort label-5732
SELECT ALL 97 * - COUNT( * ) AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-5732
SELECT ALL 97 * - COUNT ( * ) AS col1
----
-97

query I rowsort
SELECT 13 + 3
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5734
SELECT 52 + + 88 * - COALESCE ( + 2, + COUNT( * ) * MIN( ALL + 92 ) + CAST( NULL AS SIGNED ) + + ( - 6 ) + + 72 ) + + 11 + COUNT( * )
----
-112

skipif mysql # not compatible
query I rowsort label-5734
SELECT 52 + + 88 * - COALESCE ( + 2, + COUNT ( * ) * MIN ( ALL + 92 ) + CAST ( NULL AS INTEGER ) + + ( - 6 ) + + 72 ) + + 11 + COUNT ( * )
----
-112

query II rowsort
SELECT + 88, 98 AS col0
----
88
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5736
SELECT COUNT( * ) * + 73 + + - 91 AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-5736
SELECT COUNT ( * ) * + 73 + + - 91 AS col0
----
-18

query I rowsort
SELECT 48 + - 58 AS col1
----
-10

query I rowsort
SELECT 58 + + 44
----
102

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5739
SELECT DISTINCT + NULLIF ( + ( - 44 ), 11 ) DIV COUNT( DISTINCT + ( 10 ) ) AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-5739
SELECT DISTINCT + NULLIF ( + ( - 44 ), 11 ) / COUNT ( DISTINCT + ( 10 ) ) AS col1
----
-44

query I rowsort
SELECT 14 * - 73 * 93 + - CASE + 80 WHEN + 2 THEN + 19 WHEN + 3 / + - 64 THEN NULL ELSE NULL END col0
----
NULL

query I rowsort
SELECT ALL + 23 * - 44
----
-1012

query I rowsort
SELECT - 81 + 76
----
-5

query II rowsort
SELECT ALL - 86 AS col0, + 91
----
-86
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5744
SELECT - COUNT( 84 )
----
-1

skipif mysql # not compatible
query I rowsort label-5744
SELECT - COUNT ( 84 )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5745
SELECT ALL - 75 + - 81 + ( + COUNT( * ) ) * + ( - 82 ) AS col1, - 72 + + 36 AS col2
----
-238
-36

skipif mysql # not compatible
query II rowsort label-5745
SELECT ALL - 75 + - 81 + ( + COUNT ( * ) ) * + ( - 82 ) AS col1, - 72 + + 36 AS col2
----
-238
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-5746
SELECT ALL COUNT( * ) + COUNT( * ) * + 82
----
83

skipif mysql # not compatible
query I rowsort label-5746
SELECT ALL COUNT ( * ) + COUNT ( * ) * + 82
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-5747
SELECT - 14 * 19 * - + 38 + + COUNT( * ) + 21 + 1
----
10131

skipif mysql # not compatible
query I rowsort label-5747
SELECT - 14 * 19 * - + 38 + + COUNT ( * ) + 21 + 1
----
10131

query I rowsort
SELECT DISTINCT - - ( + 73 ) + - + 36
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-5749
SELECT 35 DIV 22 * + - 83 + - 38 DIV + 32 AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-5749
SELECT 35 / 22 * + - 83 + - 38 / + 32 AS col2
----
-84

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5750
SELECT + 50 * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5750
SELECT + 50 * + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL - CASE + 74 WHEN 57 THEN NULL ELSE + - 98 + 86 END
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5752
SELECT ALL 74 AS col0, + CAST( COUNT( * ) AS SIGNED ) DIV + 49
----
74
0

skipif mysql # not compatible
query II rowsort label-5752
SELECT ALL 74 AS col0, + CAST ( COUNT ( * ) AS INTEGER ) / + 49
----
74
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5753
SELECT - ( - 75 ), 94 * - - COUNT( DISTINCT ( + 58 ) ) * + - 70 + - COUNT( * ) AS col1
----
75
-6581

skipif mysql # not compatible
query II rowsort label-5753
SELECT - ( - 75 ), 94 * - - COUNT ( DISTINCT ( + 58 ) ) * + - 70 + - COUNT ( * ) AS col1
----
75
-6581

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5754
SELECT COUNT( * ) DIV - 24 + - 19 AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-5754
SELECT COUNT ( * ) / - 24 + - 19 AS col1
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5755
SELECT ALL 10 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5755
SELECT ALL 10 - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 17 * - 87 AS col1
----
1479

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5757
SELECT 7 + + 16 + + CAST( NULL AS SIGNED ) + - COUNT( * ) + + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5757
SELECT 7 + + 16 + + CAST ( NULL AS INTEGER ) + - COUNT ( * ) + + COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5758
SELECT - 3 * CASE 74 WHEN - COUNT( * ) * CASE - COUNT( * ) WHEN 40 THEN - 44 WHEN 70 THEN + NULLIF ( + 39, 83 ) ELSE NULL END + 79 + + - 23 * 19 * + 82 THEN 47 * - 0 + 43 + COUNT( * ) + + + 57 * + 71 * + + 45 * + - 86 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5758
SELECT - 3 * CASE 74 WHEN - COUNT ( * ) * CASE - COUNT ( * ) WHEN 40 THEN - 44 WHEN 70 THEN + NULLIF ( + 39, 83 ) ELSE NULL END + 79 + + - 23 * 19 * + 82 THEN 47 * - 0 + 43 + COUNT ( * ) + + + 57 * + 71 * + + 45 * + - 86 END col1
----
NULL

query I rowsort
SELECT - 62 + 98 AS col2
----
36

query I rowsort
SELECT + 68 * - ( + 74 ) AS col2
----
-5032

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5761
SELECT ALL CAST( - COUNT( * ) AS SIGNED ) - + + 9 * + 55
----
-496

skipif mysql # not compatible
query I rowsort label-5761
SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) - + + 9 * + 55
----
-496

onlyif mysql # aggregate syntax: 
query I rowsort label-5762
SELECT DISTINCT + MAX( ALL + + 19 )
----
19

skipif mysql # not compatible
query I rowsort label-5762
SELECT DISTINCT + MAX ( ALL + + 19 )
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-5763
SELECT 27 DIV + ( + 6 ) + - 73
----
-69

skipif mysql # not compatible
query I rowsort label-5763
SELECT 27 / + ( + 6 ) + - 73
----
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5764
SELECT + COALESCE ( CAST( - 3 AS SIGNED ), - 11 ) + 69 - CAST( NULL AS DECIMAL ) - + SUM( + 26 ) * + COUNT( * ) * CASE - - ( + NULLIF ( - + SUM( DISTINCT + 75 ), 80 + + 29 ) ) WHEN - 49 THEN NULL WHEN - 21 + + 54 * - + 39 THEN + + 72 ELSE NULL END / + + 95 * 11 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5764
SELECT + COALESCE ( CAST ( - 3 AS INTEGER ), - 11 ) + 69 - CAST ( NULL AS REAL ) - + SUM ( + 26 ) * + COUNT ( * ) * CASE - - ( + NULLIF ( - + SUM ( DISTINCT + 75 ), 80 + + 29 ) ) WHEN - 49 THEN NULL WHEN - 21 + + 54 * - + 39 THEN + + 72 ELSE NULL END / + + 95 * 11 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5765
SELECT + MAX( ALL + 90 )
----
90

skipif mysql # not compatible
query I rowsort label-5765
SELECT + MAX ( ALL + 90 )
----
90

query I rowsort
SELECT ALL 8 * - 71
----
-568

query I rowsort
SELECT + COALESCE ( 29, 14 ) AS col0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5768
SELECT DISTINCT 43 * + MAX( DISTINCT 89 ) AS col2
----
3827

skipif mysql # not compatible
query I rowsort label-5768
SELECT DISTINCT 43 * + MAX ( DISTINCT 89 ) AS col2
----
3827

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5769
SELECT + COUNT( * ) DIV + 82 - + + 0 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5769
SELECT + COUNT ( * ) / + 82 - + + 0 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5770
SELECT + COUNT( ALL - 43 ) * + COUNT( * ) * - 41 AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-5770
SELECT + COUNT ( ALL - 43 ) * + COUNT ( * ) * - 41 AS col1
----
-41

query I rowsort
SELECT - ( + + 50 ) * - 84 AS col2
----
4200

onlyif mysql # DIV for integer division: 
query I rowsort label-5772
SELECT + ( - NULLIF ( - 10, - ( - + 35 ) ) ) DIV ( - 48 ) - + 89
----
-89

skipif mysql # not compatible
query I rowsort label-5772
SELECT + ( - NULLIF ( - 10, - ( - + 35 ) ) ) / ( - 48 ) - + 89
----
-89

query I rowsort
SELECT DISTINCT + 28 * 94 * + + ( - 68 ) + - + 81 * - 26 AS col2
----
-176870

onlyif mysql # aggregate syntax: 
query II rowsort label-5774
SELECT + COALESCE ( - 10, - 2, ( - - 27 ) ) AS col0, 38 * + 49 + COALESCE ( + 10, + 97 * + NULLIF ( + SUM( DISTINCT + 15 ), 97 - ( + 87 ) ) ) + 8 AS col0
----
-10
1880

skipif mysql # not compatible
query II rowsort label-5774
SELECT + COALESCE ( - 10, - 2, ( - - 27 ) ) AS col0, 38 * + 49 + COALESCE ( + 10, + 97 * + NULLIF ( + SUM ( DISTINCT + 15 ), 97 - ( + 87 ) ) ) + 8 AS col0
----
-10
1880

query I rowsort
SELECT ALL 35 * - + 33 - + 68 + 15
----
-1208

onlyif mysql # aggregate syntax: 
query I rowsort label-5776
SELECT + COUNT( * ) * + CASE 15 WHEN - 90 THEN - - 91 - - - 12 + + - 47 + + 84 + 64 + + - 42 * - 65 WHEN - 80 THEN NULL END * 57 * - COUNT( * ) + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5776
SELECT + COUNT ( * ) * + CASE 15 WHEN - 90 THEN - - 91 - - - 12 + + - 47 + + 84 + 64 + + - 42 * - 65 WHEN - 80 THEN NULL END * 57 * - COUNT ( * ) + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5777
SELECT - COUNT( * ) * 67 * - 81 AS col0
----
5427

skipif mysql # not compatible
query I rowsort label-5777
SELECT - COUNT ( * ) * 67 * - 81 AS col0
----
5427

query I rowsort
SELECT ALL - - 69 * + 40 * + + 96 + + ( + 41 )
----
265001

query I rowsort
SELECT - + 44 - + - 9 - + + 3
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5780
SELECT 75 * 35 + - COUNT( * ) DIV - MAX( DISTINCT - 21 ) * + - 22 + + COUNT( * ) * 43 * - 24 * - - 13 + + COALESCE ( - CAST( NULL AS SIGNED ), + + 7, + 79 * + + 59 ) AS col0
----
-10784

skipif mysql # not compatible
query I rowsort label-5780
SELECT 75 * 35 + - COUNT ( * ) / - MAX ( DISTINCT - 21 ) * + - 22 + + COUNT ( * ) * 43 * - 24 * - - 13 + + COALESCE ( - CAST ( NULL AS INTEGER ), + + 7, + 79 * + + 59 ) AS col0
----
-10784

query I rowsort
SELECT ALL + + 49 * + 78 + - 23 + - + 66
----
3733

query I rowsort
SELECT + + 0 + + ( - 5 ) * 58 * + 34
----
-9860

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5783
SELECT - + COALESCE ( + 56, - COUNT( * ) DIV - + 22 * - COUNT( * ) ) AS col1, 60
----
-56
60

skipif mysql # not compatible
query II rowsort label-5783
SELECT - + COALESCE ( + 56, - COUNT ( * ) / - + 22 * - COUNT ( * ) ) AS col1, 60
----
-56
60

onlyif mysql # aggregate syntax: 
query I rowsort label-5784
SELECT + - COUNT( * ) * COUNT( * ) + 5 + 4
----
8

skipif mysql # not compatible
query I rowsort label-5784
SELECT + - COUNT ( * ) * COUNT ( * ) + 5 + 4
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5785
SELECT DISTINCT COUNT( * ) + + SUM( ALL 70 ) col2
----
71

skipif mysql # not compatible
query I rowsort label-5785
SELECT DISTINCT COUNT ( * ) + + SUM ( ALL 70 ) col2
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-5786
SELECT DISTINCT + 70 * - COUNT( * ) * - ( 90 ) * + 16 + 26
----
100826

skipif mysql # not compatible
query I rowsort label-5786
SELECT DISTINCT + 70 * - COUNT ( * ) * - ( 90 ) * + 16 + 26
----
100826

query I rowsort
SELECT - 75 + + 16 + 78 + - + CASE + NULLIF ( + 77, - 26 ) WHEN - 54 THEN + 51 WHEN - 12 THEN NULL ELSE + 16 END * + 50 + + 63 AS col2
----
-718

onlyif mysql # aggregate syntax: 
query II rowsort label-5788
SELECT + 14 * MIN( ALL - 54 ) + + 34 + - 4 AS col2, - COUNT( * ) col1
----
-726
-1

skipif mysql # not compatible
query II rowsort label-5788
SELECT + 14 * MIN ( ALL - 54 ) + + 34 + - 4 AS col2, - COUNT ( * ) col1
----
-726
-1

query I rowsort
SELECT ALL CASE + 98 WHEN 35 THEN - + 73 END
----
NULL

query I rowsort
SELECT ALL COALESCE ( + - 21, - 36 - + 6 ) AS col2
----
-21

query I rowsort
SELECT - 92 + 33
----
-59

query I rowsort
SELECT DISTINCT ( + + 85 ) AS col1
----
85

query I rowsort
SELECT - 80 * + 64 AS col1
----
-5120

query I rowsort
SELECT + 44 + 3
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-5795
SELECT DISTINCT COALESCE ( 56, 60 DIV + - 47 - 12 )
----
56

skipif mysql # not compatible
query I rowsort label-5795
SELECT DISTINCT COALESCE ( 56, 60 / + - 47 - 12 )
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-5796
SELECT - COUNT( + CASE + 60 WHEN + ( - + 45 ) THEN NULL WHEN + 63 * + 33 THEN + + 37 ELSE NULL END ) * - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-5796
SELECT - COUNT ( + CASE + 60 WHEN + ( - + 45 ) THEN NULL WHEN + 63 * + 33 THEN + + 37 ELSE NULL END ) * - COUNT ( * )
----
0

query I rowsort
SELECT ALL ( - - 22 ) AS col2
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-5798
SELECT DISTINCT + ( - - MAX( ALL + 11 ) ) * 96
----
1056

skipif mysql # not compatible
query I rowsort label-5798
SELECT DISTINCT + ( - - MAX ( ALL + 11 ) ) * 96
----
1056

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5799
SELECT CAST( + ( - 46 ) AS SIGNED )
----
-46

skipif mysql # not compatible
query I rowsort label-5799
SELECT CAST ( + ( - 46 ) AS INTEGER )
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-5800
SELECT + CASE 6 WHEN 99 + + 87 THEN - COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5800
SELECT + CASE 6 WHEN 99 + + 87 THEN - COUNT ( * ) END AS col1
----
NULL

query I rowsort
SELECT + 16 + + 61 * - + 57
----
-3461

onlyif mysql # aggregate syntax: 
query I rowsort label-5802
SELECT + 99 * - + COUNT( * ) * ( + - COUNT( * ) ) + - + 40
----
59

skipif mysql # not compatible
query I rowsort label-5802
SELECT + 99 * - + COUNT ( * ) * ( + - COUNT ( * ) ) + - + 40
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5803
SELECT - ( - - 23 ) * - 41 DIV + - COUNT( * ) + + CASE - + 62 WHEN - + 27 THEN NULL ELSE 25 END AS col2
----
-918

skipif mysql # not compatible
query I rowsort label-5803
SELECT - ( - - 23 ) * - 41 / + - COUNT ( * ) + + CASE - + 62 WHEN - + 27 THEN NULL ELSE 25 END AS col2
----
-918

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5804
SELECT ALL + CAST( NULL AS SIGNED ) * + - 64 + + + 79 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5804
SELECT ALL + CAST ( NULL AS INTEGER ) * + - 64 + + + 79 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5805
SELECT + + 54 * - COUNT( * ) + + 76 AS col1, CAST( - COALESCE ( + + 93, - 39 ) AS SIGNED ) * + + 16 AS col0
----
22
-1488

skipif mysql # not compatible
query II rowsort label-5805
SELECT + + 54 * - COUNT ( * ) + + 76 AS col1, CAST ( - COALESCE ( + + 93, - 39 ) AS INTEGER ) * + + 16 AS col0
----
22
-1488

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5806
SELECT + - CAST( + 27 AS SIGNED ) - - ( - CASE - 20 WHEN - 91 * + + ( 68 ) THEN - 69 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-5806
SELECT + - CAST ( + 27 AS INTEGER ) - - ( - CASE - 20 WHEN - 91 * + + ( 68 ) THEN - 69 END )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5807
SELECT - - 71 DIV - 74 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5807
SELECT - - 71 / - 74 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5808
SELECT ALL + MIN( + 71 ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-5808
SELECT ALL + MIN ( + 71 ) AS col1
----
71

onlyif mysql # aggregate syntax: 
query II rowsort label-5809
SELECT 16 * + 46, COUNT( * ) AS col2
----
736
1

skipif mysql # not compatible
query II rowsort label-5809
SELECT 16 * + 46, COUNT ( * ) AS col2
----
736
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5810
SELECT ALL - ( COUNT( ALL 28 ) ) - 56 * 37 + + + 0 AS col0
----
-2073

skipif mysql # not compatible
query I rowsort label-5810
SELECT ALL - ( COUNT ( ALL 28 ) ) - 56 * 37 + + + 0 AS col0
----
-2073

query I rowsort
SELECT ALL + 54 * 81
----
4374

onlyif mysql # aggregate syntax: 
query I rowsort label-5812
SELECT 58 * CASE - 47 WHEN 95 / + COUNT( * ) + + - 57 THEN NULL ELSE - MIN( DISTINCT + 4 ) END * + MAX( + 11 ) + - 99
----
-2651

skipif mysql # not compatible
query I rowsort label-5812
SELECT 58 * CASE - 47 WHEN 95 / + COUNT ( * ) + + - 57 THEN NULL ELSE - MIN ( DISTINCT + 4 ) END * + MAX ( + 11 ) + - 99
----
-2651

query I rowsort
SELECT ALL + 36 + + 34
----
70

query I rowsort
SELECT 48 * + 64 AS col2
----
3072

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5815
SELECT COUNT( ALL + - 62 ) + COUNT( ALL - CAST( NULL AS SIGNED ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5815
SELECT COUNT ( ALL + - 62 ) + COUNT ( ALL - CAST ( NULL AS INTEGER ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5816
SELECT ALL - COUNT( * ) + + 39 * 67 * - - 30 * + - 66
----
-5173741

skipif mysql # not compatible
query I rowsort label-5816
SELECT ALL - COUNT ( * ) + + 39 * 67 * - - 30 * + - 66
----
-5173741

query I rowsort
SELECT DISTINCT - 19 + 43 AS col0
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-5818
SELECT DISTINCT - 10 DIV 79
----
0

skipif mysql # not compatible
query I rowsort label-5818
SELECT DISTINCT - 10 / 79
----
0

query I rowsort
SELECT ALL - + 44 col1
----
-44

query II rowsort
SELECT - NULLIF ( + 80, - - 34 ) * - 20 AS col0, 84
----
1600
84

onlyif mysql # aggregate syntax: 
query II rowsort label-5821
SELECT DISTINCT + 97 + - COUNT( 0 ) * + + ( + 57 ) * SUM( 48 ), - COUNT( * ) AS col0
----
-2639
-1

skipif mysql # not compatible
query II rowsort label-5821
SELECT DISTINCT + 97 + - COUNT ( 0 ) * + + ( + 57 ) * SUM ( 48 ), - COUNT ( * ) AS col0
----
-2639
-1

query I rowsort
SELECT DISTINCT + NULLIF ( + 40, + 27 ) * - - 22 AS col1
----
880

onlyif mysql # aggregate syntax: 
query I rowsort label-5823
SELECT ALL - - CASE + 92 WHEN 63 * + 50 + - 8 + 83 * 86 THEN + COUNT( * ) WHEN 28 THEN NULL END - + + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-5823
SELECT ALL - - CASE + 92 WHEN 63 * + 50 + - 8 + 83 * 86 THEN + COUNT ( * ) WHEN 28 THEN NULL END - + + 99
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5824
SELECT DISTINCT - - COALESCE ( COUNT( * ), + - 92 * - CAST( + - 39 AS SIGNED ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5824
SELECT DISTINCT - - COALESCE ( COUNT ( * ), + - 92 * - CAST ( + - 39 AS INTEGER ) ) AS col2
----
1

query I rowsort
SELECT 69 * - - 46
----
3174

onlyif mysql # aggregate syntax: 
query I rowsort label-5826
SELECT COUNT( * ) + + 16 AS col1
----
17

skipif mysql # not compatible
query I rowsort label-5826
SELECT COUNT ( * ) + + 16 AS col1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-5827
SELECT - 66 - COUNT( * ) + - 99
----
-166

skipif mysql # not compatible
query I rowsort label-5827
SELECT - 66 - COUNT ( * ) + - 99
----
-166

onlyif mysql # aggregate syntax: 
query I rowsort label-5828
SELECT - 0 * + + 14 * + 59 + - COUNT( * ) * 22
----
-22

skipif mysql # not compatible
query I rowsort label-5828
SELECT - 0 * + + 14 * + 59 + - COUNT ( * ) * 22
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-5829
SELECT DISTINCT - 87 * COUNT( * )
----
-87

skipif mysql # not compatible
query I rowsort label-5829
SELECT DISTINCT - 87 * COUNT ( * )
----
-87

query I rowsort
SELECT 61 * + 59 AS col0
----
3599

onlyif mysql # aggregate syntax: 
query I rowsort label-5831
SELECT DISTINCT SUM( + 11 )
----
11

skipif mysql # not compatible
query I rowsort label-5831
SELECT DISTINCT SUM ( + 11 )
----
11

query I rowsort
SELECT ALL 63 * + - 74
----
-4662

query I rowsort
SELECT DISTINCT 97 * 61 AS col1
----
5917

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5834
SELECT ALL - 95 DIV + - NULLIF ( - 39, - CAST( + - 39 AS SIGNED ) )
----
-2

skipif mysql # not compatible
query I rowsort label-5834
SELECT ALL - 95 / + - NULLIF ( - 39, - CAST ( + - 39 AS INTEGER ) )
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-5835
SELECT 58 DIV + 6
----
9

skipif mysql # not compatible
query I rowsort label-5835
SELECT 58 / + 6
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5836
SELECT DISTINCT COUNT( * ) + 32 + - + 67 + 55 * 31 AS col1
----
1671

skipif mysql # not compatible
query I rowsort label-5836
SELECT DISTINCT COUNT ( * ) + 32 + - + 67 + 55 * 31 AS col1
----
1671

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5837
SELECT ALL CAST( 44 AS SIGNED ) + - 5 AS col0
----
39

skipif mysql # not compatible
query I rowsort label-5837
SELECT ALL CAST ( 44 AS INTEGER ) + - 5 AS col0
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5838
SELECT - SUM( + COALESCE ( 27, 1, + + CAST( + + 26 AS SIGNED ) + + 77 * - 46 DIV 44 ) )
----
-27

skipif mysql # not compatible
query I rowsort label-5838
SELECT - SUM ( + COALESCE ( 27, 1, + + CAST ( + + 26 AS INTEGER ) + + 77 * - 46 / 44 ) )
----
-27

query I rowsort
SELECT 41 * + - 75
----
-3075

query I rowsort
SELECT 77 + 42 AS col1
----
119

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5841
SELECT ALL 85 DIV - COUNT( * )
----
-85

skipif mysql # not compatible
query I rowsort label-5841
SELECT ALL 85 / - COUNT ( * )
----
-85

query I rowsort
SELECT DISTINCT 20 * + + 86
----
1720

onlyif mysql # aggregate syntax: 
query I rowsort label-5843
SELECT DISTINCT + 23 + + - 70 + - COALESCE ( + 44, + COUNT( * ) - 13 ) AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-5843
SELECT DISTINCT + 23 + + - 70 + - COALESCE ( + 44, + COUNT ( * ) - 13 ) AS col1
----
-91

query I rowsort
SELECT ALL - 5 + 96
----
91

query I rowsort
SELECT DISTINCT 43 + 12 AS col1
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5846
SELECT ALL 77 + + - 72 + - AVG ( + 68 ) * CAST( NULL AS SIGNED ) + - 50
----
NULL

skipif mysql # not compatible
query I rowsort label-5846
SELECT ALL 77 + + - 72 + - AVG ( + 68 ) * CAST ( NULL AS INTEGER ) + - 50
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5847
SELECT - 51 + - COUNT( * ) AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-5847
SELECT - 51 + - COUNT ( * ) AS col1
----
-52

query I rowsort
SELECT COALESCE ( - - 75, ( - 7 ) ) AS col0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5849
SELECT + MAX( DISTINCT + + 21 ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-5849
SELECT + MAX ( DISTINCT + + 21 ) AS col0
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5850
SELECT - ( CAST( NULL AS SIGNED ) ) + - 78 AS col1, 15
----
NULL
15

skipif mysql # not compatible
query II rowsort label-5850
SELECT - ( CAST ( NULL AS INTEGER ) ) + - 78 AS col1, 15
----
NULL
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5851
SELECT 66 * + - COUNT( * )
----
-66

skipif mysql # not compatible
query I rowsort label-5851
SELECT 66 * + - COUNT ( * )
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-5852
SELECT DISTINCT - + SUM( - 31 )
----
31

skipif mysql # not compatible
query I rowsort label-5852
SELECT DISTINCT - + SUM ( - 31 )
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-5853
SELECT - 27 DIV - - 47 + - 7 + + 79 * 41 + 82
----
3314

skipif mysql # not compatible
query I rowsort label-5853
SELECT - 27 / - - 47 + - 7 + + 79 * 41 + 82
----
3314

query I rowsort
SELECT 58 - - NULLIF ( ( 44 ), + 73 - - 47 + + - 10 ) AS col1
----
102

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5855
SELECT ALL - 32 DIV + + COUNT( * )
----
-32

skipif mysql # not compatible
query I rowsort label-5855
SELECT ALL - 32 / + + COUNT ( * )
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-5856
SELECT ALL - - 32 DIV + - 10 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-5856
SELECT ALL - - 32 / + - 10 AS col2
----
-3

query I rowsort
SELECT DISTINCT - 82 * - 92 AS col0
----
7544

onlyif mysql # DIV for integer division: 
query I rowsort label-5858
SELECT - + 77 DIV + - 78
----
0

skipif mysql # not compatible
query I rowsort label-5858
SELECT - + 77 / + - 78
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5859
SELECT - + SUM( + 76 ) * + CASE + 72 WHEN + - ( + 62 ) * + - 37 / - ( + 81 ) THEN + 73 + - 16 * + 72 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5859
SELECT - + SUM ( + 76 ) * + CASE + 72 WHEN + - ( + 62 ) * + - 37 / - ( + 81 ) THEN + 73 + - 16 * + 72 END
----
NULL

query I rowsort
SELECT - 40 * + 18 + + + 17
----
-703

query I rowsort
SELECT + 54 * + 46 * - 16 col1
----
-39744

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5862
SELECT ALL - 91 * + - ( MIN( DISTINCT - CAST( + + 49 AS SIGNED ) ) ) col0, 13 AS col2
----
-4459
13

skipif mysql # not compatible
query II rowsort label-5862
SELECT ALL - 91 * + - ( MIN ( DISTINCT - CAST ( + + 49 AS INTEGER ) ) ) col0, 13 AS col2
----
-4459
13

onlyif mysql # aggregate syntax: 
query I rowsort label-5863
SELECT + COUNT( DISTINCT - 86 ) + COUNT( * ) + + + 43 AS col2
----
45

skipif mysql # not compatible
query I rowsort label-5863
SELECT + COUNT ( DISTINCT - 86 ) + COUNT ( * ) + + + 43 AS col2
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-5864
SELECT ALL - 0 DIV + 27 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5864
SELECT ALL - 0 / + 27 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5865
SELECT - 21 * + COUNT( 18 ) - 41
----
-62

skipif mysql # not compatible
query I rowsort label-5865
SELECT - 21 * + COUNT ( 18 ) - 41
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-5866
SELECT ALL - + 77 * + COUNT( * ) + - 44 + 47 + + + 6 + 93 * + COUNT( * )
----
25

skipif mysql # not compatible
query I rowsort label-5866
SELECT ALL - + 77 * + COUNT ( * ) + - 44 + 47 + + + 6 + 93 * + COUNT ( * )
----
25

query II rowsort
SELECT + 16, 20 AS col1
----
16
20

query I rowsort
SELECT ALL + 0 + 46 + 85 * 74 * - 34 AS col0
----
-213814

onlyif mysql # aggregate syntax: 
query I rowsort label-5869
SELECT - MAX( - - 3 ) - + - 64
----
61

skipif mysql # not compatible
query I rowsort label-5869
SELECT - MAX ( - - 3 ) - + - 64
----
61

query II rowsort
SELECT ALL 83, + 35 * + + ( + ( 30 ) ) col0
----
83
1050

query II rowsort
SELECT - 84, - 60 * - - 99 AS col0
----
-84
-5940

query I rowsort
SELECT - 50 * - + 21 AS col0
----
1050

onlyif mysql # aggregate syntax: 
query I rowsort label-5873
SELECT + MAX( + 22 ) * - 8 * + - 89 * - - 57 AS col2
----
892848

skipif mysql # not compatible
query I rowsort label-5873
SELECT + MAX ( + 22 ) * - 8 * + - 89 * - - 57 AS col2
----
892848

query II rowsort
SELECT 51, - 11 AS col1
----
51
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-5875
SELECT - COALESCE ( COUNT( * ), - 78 )
----
-1

skipif mysql # not compatible
query I rowsort label-5875
SELECT - COALESCE ( COUNT ( * ), - 78 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5876
SELECT ALL COUNT( * ) + - ( - COUNT( * ) ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-5876
SELECT ALL COUNT ( * ) + - ( - COUNT ( * ) ) AS col1
----
2

query I rowsort
SELECT + ( + 80 ) - + - 1
----
81

query I rowsort
SELECT ALL - 10 * - 22 AS col2
----
220

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5879
SELECT + COUNT( * ) - - CASE + + COUNT( * ) WHEN + COALESCE ( - - NULLIF ( - - AVG ( - 40 ), + COALESCE ( 66, COUNT( * ) - - 17 ) / - 67 ), + ( + + 46 ) * - - 81 / - COUNT( * ), + 55 ) * - + 6 / + + COUNT( * ) THEN NULL WHEN + 91 THEN - 41 + - ( + + CAST( + - COALESCE ( - 68, + - COUNT( * ) ) AS SIGNED ) ) + - 95 * - 40 * COUNT( * ) ELSE - 38 END AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-5879
SELECT + COUNT ( * ) - - CASE + + COUNT ( * ) WHEN + COALESCE ( - - NULLIF ( - - AVG ( - 40 ), + COALESCE ( 66, COUNT ( * ) - - 17 ) / - 67 ), + ( + + 46 ) * - - 81 / - COUNT ( * ), + 55 ) * - + 6 / + + COUNT ( * ) THEN NULL WHEN + 91 THEN - 41 + - ( + + CAST ( + - COALESCE ( - 68, + - COUNT ( * ) ) AS INTEGER ) ) + - 95 * - 40 * COUNT ( * ) ELSE - 38 END AS col2
----
-37

query II rowsort
SELECT DISTINCT 0, 7 AS col1
----
0
7

query II rowsort
SELECT DISTINCT 51, + 2 AS col2
----
51
2

onlyif mysql # aggregate syntax: 
query II rowsort label-5882
SELECT ALL 78 - 39 + - 76 + 63 AS col0, ( + + 98 ) - 32 * - - COUNT( * ) AS col0
----
26
66

skipif mysql # not compatible
query II rowsort label-5882
SELECT ALL 78 - 39 + - 76 + 63 AS col0, ( + + 98 ) - 32 * - - COUNT ( * ) AS col0
----
26
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5883
SELECT - SUM( + ( - 83 ) )
----
83

skipif mysql # not compatible
query I rowsort label-5883
SELECT - SUM ( + ( - 83 ) )
----
83

query I rowsort
SELECT + 60 + + 58 AS col1
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-5885
SELECT + 66 - ( + COUNT( * ) ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-5885
SELECT + 66 - ( + COUNT ( * ) ) AS col2
----
65

query II rowsort
SELECT ALL - 45 col1, 53 AS col1
----
-45
53

query II rowsort
SELECT - + 88, - 44 * - 4 AS col1
----
-88
176

query I rowsort
SELECT - + 86 + + + 26
----
-60

query I rowsort
SELECT ALL - 5 * + + ( + - 96 ) AS col2
----
480

query I rowsort
SELECT ALL - 47 - + 53 col2
----
-100

query I rowsort
SELECT + - ( + - ( - 50 ) ) * + ( - 41 ) AS col2
----
2050

onlyif mysql # aggregate syntax: 
query II rowsort label-5892
SELECT DISTINCT + COUNT( * ) AS col2, + COUNT( * ) + + - 20
----
1
-19

skipif mysql # not compatible
query II rowsort label-5892
SELECT DISTINCT + COUNT ( * ) AS col2, + COUNT ( * ) + + - 20
----
1
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5893
SELECT - ( - 65 ) / + AVG ( + + 90 ) * - + 60 * 77 + - COUNT( ALL + 34 ) + CAST( NULL AS SIGNED ) * 38 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5893
SELECT - ( - 65 ) / + AVG ( + + 90 ) * - + 60 * 77 + - COUNT ( ALL + 34 ) + CAST ( NULL AS INTEGER ) * 38 AS col0
----
NULL

query II rowsort
SELECT + + 6 AS col1, - 89 + 32
----
6
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-5895
SELECT - ( - 41 ) * + 81 + 2 * - 7 * - + ( + - COUNT( * ) ) + + SUM( + + 98 ) + + 66
----
3471

skipif mysql # not compatible
query I rowsort label-5895
SELECT - ( - 41 ) * + 81 + 2 * - 7 * - + ( + - COUNT ( * ) ) + + SUM ( + + 98 ) + + 66
----
3471

onlyif mysql # aggregate syntax: 
query I rowsort label-5896
SELECT SUM( ALL - + 53 ) AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-5896
SELECT SUM ( ALL - + 53 ) AS col2
----
-53

query I rowsort
SELECT ALL + 37 * - - 84 + + 78
----
3186

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5898
SELECT + COALESCE ( - 54, - 3, COUNT( * ) DIV - 29 ) AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-5898
SELECT + COALESCE ( - 54, - 3, COUNT ( * ) / - 29 ) AS col0
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5899
SELECT DISTINCT + + 4 * + - 73 * + NULLIF ( + 73, CAST( 96 AS SIGNED ) ) AS col0, 54 * - 95 * 55
----
-21316
-282150

skipif mysql # not compatible
query II rowsort label-5899
SELECT DISTINCT + + 4 * + - 73 * + NULLIF ( + 73, CAST ( 96 AS INTEGER ) ) AS col0, 54 * - 95 * 55
----
-21316
-282150

onlyif mysql # aggregate syntax: 
query I rowsort label-5900
SELECT ALL - 95 * + - COUNT( * ) + 73 + + COUNT( * )
----
169

skipif mysql # not compatible
query I rowsort label-5900
SELECT ALL - 95 * + - COUNT ( * ) + 73 + + COUNT ( * )
----
169

onlyif mysql # DIV for integer division: 
query I rowsort label-5901
SELECT DISTINCT + ( ( + 36 ) ) DIV - 54 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5901
SELECT DISTINCT + ( ( + 36 ) ) / - 54 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5902
SELECT - MIN( + 37 ) DIV - COUNT( * ) col1
----
37

skipif mysql # not compatible
query I rowsort label-5902
SELECT - MIN ( + 37 ) / - COUNT ( * ) col1
----
37

query I rowsort
SELECT + 98 + + 84 - 58 AS col0
----
124

query I rowsort
SELECT DISTINCT + 95 * + 1 AS col0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-5905
SELECT - 80 - - - MIN( DISTINCT - ( - - 10 ) ) * + 98
----
900

skipif mysql # not compatible
query I rowsort label-5905
SELECT - 80 - - - MIN ( DISTINCT - ( - - 10 ) ) * + 98
----
900

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5906
SELECT ALL + ( + CAST( NULL AS SIGNED ) ) col1, COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-5906
SELECT ALL + ( + CAST ( NULL AS INTEGER ) ) col1, COUNT ( * )
----
NULL
1

query I rowsort
SELECT + 54 * + - 61 + + 13 AS col1
----
-3281

query I rowsort
SELECT + ( - 29 ) - - 1 col2
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-5909
SELECT DISTINCT + ( 2 ) * - COUNT( * ) * 3
----
-6

skipif mysql # not compatible
query I rowsort label-5909
SELECT DISTINCT + ( 2 ) * - COUNT ( * ) * 3
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5910
SELECT ALL 85 * MIN( ALL + + 53 ) + + 50 + + 15, - 85 * 31 * 96 - COUNT( * ) + + NULLIF ( - 24, MAX( ALL - 15 ) * + NULLIF ( - - 72, + ( - 93 ) ) * + 54 * - CAST( NULL AS SIGNED ) + - 21 ) + + + 24 AS col0
----
4570
-252961

skipif mysql # not compatible
query II rowsort label-5910
SELECT ALL 85 * MIN ( ALL + + 53 ) + + 50 + + 15, - 85 * 31 * 96 - COUNT ( * ) + + NULLIF ( - 24, MAX ( ALL - 15 ) * + NULLIF ( - - 72, + ( - 93 ) ) * + 54 * - CAST ( NULL AS INTEGER ) + - 21 ) + + + 24 AS col0
----
4570
-252961

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5911
SELECT DISTINCT ( 92 ), MIN( - 91 ) DIV - + 29 DIV - COUNT( * ) AS col1
----
92
-3

skipif mysql # not compatible
query II rowsort label-5911
SELECT DISTINCT ( 92 ), MIN ( - 91 ) / - + 29 / - COUNT ( * ) AS col1
----
92
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5912
SELECT ALL 22 * + + 52 * + ( - - COUNT( * ) ) - 42
----
1102

skipif mysql # not compatible
query I rowsort label-5912
SELECT ALL 22 * + + 52 * + ( - - COUNT ( * ) ) - 42
----
1102

query I rowsort
SELECT + 72 + + 7
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-5914
SELECT DISTINCT + 88 - - MAX( ALL - 54 )
----
34

skipif mysql # not compatible
query I rowsort label-5914
SELECT DISTINCT + 88 - - MAX ( ALL - 54 )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-5915
SELECT - SUM( ALL - 56 )
----
56

skipif mysql # not compatible
query I rowsort label-5915
SELECT - SUM ( ALL - 56 )
----
56

query I rowsort
SELECT + 66 + + 62 AS col2
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-5917
SELECT DISTINCT SUM( 1 ) * - 57 AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-5917
SELECT DISTINCT SUM ( 1 ) * - 57 AS col0
----
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5918
SELECT + + SUM( 55 ) DIV + 42
----
1

skipif mysql # not compatible
query I rowsort label-5918
SELECT + + SUM ( 55 ) / + 42
----
1

query I rowsort
SELECT ALL + 65 * + - 26 + 49 col1
----
-1641

onlyif mysql # aggregate syntax: 
query I rowsort label-5920
SELECT DISTINCT + 49 * 71 + - COUNT( * ) * - COUNT( * ) * + - 74
----
3405

skipif mysql # not compatible
query I rowsort label-5920
SELECT DISTINCT + 49 * 71 + - COUNT ( * ) * - COUNT ( * ) * + - 74
----
3405

query I rowsort
SELECT - 96 * 12 AS col0
----
-1152

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5922
SELECT + COUNT( * ) + 95 + + CAST( NULL AS SIGNED ) * ( - 22 ), 85 AS col2
----
NULL
85

skipif mysql # not compatible
query II rowsort label-5922
SELECT + COUNT ( * ) + 95 + + CAST ( NULL AS INTEGER ) * ( - 22 ), 85 AS col2
----
NULL
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5923
SELECT 75 - + 78 + COUNT( * ) DIV 77 * - COUNT( * ) + + 58
----
55

skipif mysql # not compatible
query I rowsort label-5923
SELECT 75 - + 78 + COUNT ( * ) / 77 * - COUNT ( * ) + + 58
----
55

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5924
SELECT NULLIF ( - 74, - - CAST( + 47 AS SIGNED ) ) * 58 DIV - + 44 col0
----
97

skipif mysql # not compatible
query I rowsort label-5924
SELECT NULLIF ( - 74, - - CAST ( + 47 AS INTEGER ) ) * 58 / - + 44 col0
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5925
SELECT 5 + - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5925
SELECT 5 + - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5926
SELECT 13 DIV + - 89 + - 89 + 26 * + + 98 - + 33 DIV - + COUNT( * ) * - COUNT( ALL + 40 )
----
2426

skipif mysql # not compatible
query I rowsort label-5926
SELECT 13 / + - 89 + - 89 + 26 * + + 98 - + 33 / - + COUNT ( * ) * - COUNT ( ALL + 40 )
----
2426

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5927
SELECT + MIN( ALL + ( + - 25 ) ) DIV + - 29 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5927
SELECT + MIN ( ALL + ( + - 25 ) ) / + - 29 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5928
SELECT ( 71 ) + COUNT( * ) + - + 97
----
-25

skipif mysql # not compatible
query I rowsort label-5928
SELECT ( 71 ) + COUNT ( * ) + - + 97
----
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-5929
SELECT ALL COUNT( * ) + - 56 AS col0, + 63 + - 33 * + + NULLIF ( - COUNT( * ), - - COUNT( * ) * - COUNT( + + 12 ) ) AS col1
----
-55
NULL

skipif mysql # not compatible
query II rowsort label-5929
SELECT ALL COUNT ( * ) + - 56 AS col0, + 63 + - 33 * + + NULLIF ( - COUNT ( * ), - - COUNT ( * ) * - COUNT ( + + 12 ) ) AS col1
----
-55
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5930
SELECT ALL 45 + + 2 * + + MAX( 33 ) + - COUNT( * )
----
110

skipif mysql # not compatible
query I rowsort label-5930
SELECT ALL 45 + + 2 * + + MAX ( 33 ) + - COUNT ( * )
----
110

query II rowsort
SELECT DISTINCT + 41 * - + NULLIF ( 92, + 90 ) - - 10 AS col1, - 77 * - + 14
----
-3762
1078

onlyif mysql # aggregate syntax: 
query II rowsort label-5932
SELECT DISTINCT + 30 + + COUNT( * ) * ( + 66 ) * 80 * + 4 + 59 col1, 18 AS col0
----
21209
18

skipif mysql # not compatible
query II rowsort label-5932
SELECT DISTINCT + 30 + + COUNT ( * ) * ( + 66 ) * 80 * + 4 + 59 col1, 18 AS col0
----
21209
18

onlyif mysql # aggregate syntax: 
query II rowsort label-5933
SELECT ALL + COUNT( * ) * 60 AS col2, 29
----
60
29

skipif mysql # not compatible
query II rowsort label-5933
SELECT ALL + COUNT ( * ) * 60 AS col2, 29
----
60
29

query I rowsort
SELECT ALL - 37 + - 47
----
-84

query II rowsort
SELECT + 77 AS col2, + 44 col1
----
77
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5936
SELECT DISTINCT - COUNT( * ) col1, + ( + + 21 ) DIV + - 23 AS col0
----
-1
0

skipif mysql # not compatible
query II rowsort label-5936
SELECT DISTINCT - COUNT ( * ) col1, + ( + + 21 ) / + - 23 AS col0
----
-1
0

query II rowsort
SELECT ALL + NULLIF ( + NULLIF ( + - 27, 22 ), COALESCE ( + 86, + - 53 ) ) * + + 11, + 22 AS col0
----
-297
22

onlyif mysql # aggregate syntax: 
query II rowsort label-5938
SELECT 14 col0, - 28 * SUM( + 91 )
----
14
-2548

skipif mysql # not compatible
query II rowsort label-5938
SELECT 14 col0, - 28 * SUM ( + 91 )
----
14
-2548

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-5939
SELECT ALL 2 - + COALESCE ( + 2, + 74 * 85 DIV + NULLIF ( 81, 72 + CAST( ( - - 4 ) AS DECIMAL ) * 74 + 63 ), + + ( + COUNT( * ) ) + + 40 ) * - 34
----
70

skipif mysql # not compatible
query I rowsort label-5939
SELECT ALL 2 - + COALESCE ( + 2, + 74 * 85 / + NULLIF ( 81, 72 + CAST ( ( - - 4 ) AS REAL ) * 74 + 63 ), + + ( + COUNT ( * ) ) + + 40 ) * - 34
----
70

query I rowsort
SELECT 92 * - 27
----
-2484

query II rowsort
SELECT DISTINCT + 65 * - - ( + 83 ), + 54 + - 29 + + 15 AS col0
----
5395
40

query I rowsort
SELECT ALL + 47 * - 48 AS col1
----
-2256

onlyif mysql # DIV for integer division: 
query I rowsort label-5943
SELECT 11 DIV + - 38
----
0

skipif mysql # not compatible
query I rowsort label-5943
SELECT 11 / + - 38
----
0

query I rowsort
SELECT 82 * - 7 AS col2
----
-574

query II rowsort
SELECT 44 AS col0, 37 AS col0
----
44
37

query I rowsort
SELECT 92 * - - 77 AS col0
----
7084

query I rowsort
SELECT 1 - 80
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5948
SELECT ALL - - CAST( NULL AS SIGNED ) / NULLIF ( - 95, - 78 ) - + 99 + + COUNT( * ) * - 13 + COALESCE ( - COALESCE ( 72, + 81 * - 4 ), + 17 ) + - COUNT( * ) * - 31 * 41 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5948
SELECT ALL - - CAST ( NULL AS INTEGER ) / NULLIF ( - 95, - 78 ) - + 99 + + COUNT ( * ) * - 13 + COALESCE ( - COALESCE ( 72, + 81 * - 4 ), + 17 ) + - COUNT ( * ) * - 31 * 41 col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5949
SELECT DISTINCT - CAST( + 77 AS SIGNED ) AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-5949
SELECT DISTINCT - CAST ( + 77 AS INTEGER ) AS col0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-5950
SELECT ALL - MIN( - 5 ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-5950
SELECT ALL - MIN ( - 5 ) AS col2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5951
SELECT 43 + - - ( + COUNT( * ) )
----
44

skipif mysql # not compatible
query I rowsort label-5951
SELECT 43 + - - ( + COUNT ( * ) )
----
44

query I rowsort
SELECT ALL - COALESCE ( + 2, - 93 )
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5953
SELECT CAST( NULL AS SIGNED ) - + + 43 * + 5
----
NULL

skipif mysql # not compatible
query I rowsort label-5953
SELECT CAST ( NULL AS INTEGER ) - + + 43 * + 5
----
NULL

query I rowsort
SELECT DISTINCT 86 + + 92
----
178

query I rowsort
SELECT ALL 90 * + 19 * + 84
----
143640

query I rowsort
SELECT ALL 13 + 81 AS col2
----
94

query I rowsort
SELECT DISTINCT - + 33 + 30
----
-3

query I rowsort
SELECT ALL + - 70 * + 54 AS col1
----
-3780

onlyif mysql # DIV for integer division: 
query I rowsort label-5959
SELECT ( - 79 ) DIV - 4
----
19

skipif mysql # not compatible
query I rowsort label-5959
SELECT ( - 79 ) / - 4
----
19

query I rowsort
SELECT ALL - 21 + 95 AS col0
----
74

query II rowsort
SELECT + - 92, 98 * - + 86 AS col1
----
-92
-8428

onlyif mysql # aggregate syntax: 
query I rowsort label-5962
SELECT + NULLIF ( + - 88, - - COUNT( * ) ) AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-5962
SELECT + NULLIF ( + - 88, - - COUNT ( * ) ) AS col0
----
-88

query I rowsort
SELECT ALL + ( + - 45 ) + - 41 + + 26
----
-60

query II rowsort
SELECT - 80 AS col1, + 64 AS col2
----
-80
64

query I rowsort
SELECT ALL - + 93 col0
----
-93

query I rowsort
SELECT ALL 86 + 67 AS col1
----
153

onlyif mysql # aggregate syntax: 
query II rowsort label-5967
SELECT SUM( DISTINCT + 93 ) AS col2, - 90 AS col0
----
93
-90

skipif mysql # not compatible
query II rowsort label-5967
SELECT SUM ( DISTINCT + 93 ) AS col2, - 90 AS col0
----
93
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-5968
SELECT + COUNT( ALL + - 27 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5968
SELECT + COUNT ( ALL + - 27 ) AS col2
----
1

query I rowsort
SELECT ALL 62 - - - 10 AS col0
----
52

query I rowsort
SELECT DISTINCT - ( + - 17 ) AS col1
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5971
SELECT ALL - MAX( 10 ) DIV + 27 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5971
SELECT ALL - MAX ( 10 ) / + 27 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5972
SELECT DISTINCT CAST( - 21 AS SIGNED ) - COUNT( * )
----
-22

skipif mysql # not compatible
query I rowsort label-5972
SELECT DISTINCT CAST ( - 21 AS INTEGER ) - COUNT ( * )
----
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-5973
SELECT DISTINCT 56 * - 34, COUNT( * ) AS col0
----
-1904
1

skipif mysql # not compatible
query II rowsort label-5973
SELECT DISTINCT 56 * - 34, COUNT ( * ) AS col0
----
-1904
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5974
SELECT ALL COUNT( * ) * - + COUNT( * ), NULLIF ( 36, 74 + COUNT( * ) ) col0
----
-1
36

skipif mysql # not compatible
query II rowsort label-5974
SELECT ALL COUNT ( * ) * - + COUNT ( * ), NULLIF ( 36, 74 + COUNT ( * ) ) col0
----
-1
36

query I rowsort
SELECT + 58 * 53 + - 11 col1
----
3063

query I rowsort
SELECT ALL 26 - + 37 - 90 AS col2
----
-101

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5977
SELECT CAST( - + 45 AS SIGNED ) * + 98 + - 36 + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5977
SELECT CAST ( - + 45 AS INTEGER ) * + 98 + - 36 + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5978
SELECT ALL - 6 - + 32 DIV - + COUNT( * ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-5978
SELECT ALL - 6 - + 32 / - + COUNT ( * ) AS col0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-5979
SELECT CASE - + 98 WHEN - + COUNT( * ) + + + COUNT( ALL - - 55 ) THEN COUNT( - 16 ) WHEN + 0 THEN - 50 END + + 50 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5979
SELECT CASE - + 98 WHEN - + COUNT ( * ) + + + COUNT ( ALL - - 55 ) THEN COUNT ( - 16 ) WHEN + 0 THEN - 50 END + + 50 col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5980
SELECT CAST( + 1 AS SIGNED ) + - - 81
----
82

skipif mysql # not compatible
query I rowsort label-5980
SELECT CAST ( + 1 AS INTEGER ) + - - 81
----
82

query I rowsort
SELECT 92 * - 31 AS col0
----
-2852

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5982
SELECT ALL - 16 * CAST( NULL AS SIGNED ) * - 98
----
NULL

skipif mysql # not compatible
query I rowsort label-5982
SELECT ALL - 16 * CAST ( NULL AS INTEGER ) * - 98
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5983
SELECT DISTINCT 30 DIV MAX( DISTINCT + 6 )
----
5

skipif mysql # not compatible
query I rowsort label-5983
SELECT DISTINCT 30 / MAX ( DISTINCT + 6 )
----
5

query I rowsort
SELECT - + 4 + 32 + + + 11 + - 56
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-5985
SELECT ALL - + COUNT( * ) + + COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5985
SELECT ALL - + COUNT ( * ) + + COUNT ( * ) AS col2
----
0

query II rowsort
SELECT ( 0 ) AS col1, + 86 + + 27 + + - 80 AS col1
----
0
33

onlyif mysql # DIV for integer division: 
query I rowsort label-5987
SELECT + 17 + + 73 DIV ( - 14 ) - - - 57
----
-45

skipif mysql # not compatible
query I rowsort label-5987
SELECT + 17 + + 73 / ( - 14 ) - - - 57
----
-45

query I rowsort
SELECT - 0 * + COALESCE ( 21, + 54 ) * - - ( - 67 ) + + 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5989
SELECT - NULLIF ( - 86, - + 45 ) + + MAX( ALL 62 )
----
148

skipif mysql # not compatible
query I rowsort label-5989
SELECT - NULLIF ( - 86, - + 45 ) + + MAX ( ALL 62 )
----
148

onlyif mysql # aggregate syntax: 
query II rowsort label-5990
SELECT DISTINCT COALESCE ( - 42, + 56 ) + - - COUNT( * ) AS col1, 10 AS col2
----
-41
10

skipif mysql # not compatible
query II rowsort label-5990
SELECT DISTINCT COALESCE ( - 42, + 56 ) + - - COUNT ( * ) AS col1, 10 AS col2
----
-41
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5991
SELECT DISTINCT + 5 + + COALESCE ( + + 91, 43, + + 86 ) * + - 97 * + - COUNT( * ) * 25 * + - 89 + + 36 DIV - + 1 col2
----
-19640106

skipif mysql # not compatible
query I rowsort label-5991
SELECT DISTINCT + 5 + + COALESCE ( + + 91, 43, + + 86 ) * + - 97 * + - COUNT ( * ) * 25 * + - 89 + + 36 / - + 1 col2
----
-19640106

onlyif mysql # aggregate syntax: 
query I rowsort label-5992
SELECT - - 36 + - - ( CASE + 74 WHEN 75 * - - COUNT( * ) * - 66 THEN + 83 + 35 * - MIN( ALL - ( + 22 ) ) WHEN 17 + + + 40 THEN NULL END ) - - + 1 * 25 + - - CASE MAX( + + 77 ) WHEN + - 15 THEN NULL WHEN - - 27 * + - 53 THEN + MIN( - - 75 ) - - + 26 WHEN - - 51 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5992
SELECT - - 36 + - - ( CASE + 74 WHEN 75 * - - COUNT ( * ) * - 66 THEN + 83 + 35 * - MIN ( ALL - ( + 22 ) ) WHEN 17 + + + 40 THEN NULL END ) - - + 1 * 25 + - - CASE MAX ( + + 77 ) WHEN + - 15 THEN NULL WHEN - - 27 * + - 53 THEN + MIN ( - - 75 ) - - + 26 WHEN - - 51 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5993
SELECT - + CASE COUNT( * ) WHEN + 45 / - + 64 * COUNT( * ) THEN - 25 + - + 9 + - COUNT( * ) + CAST( + 73 AS SIGNED ) + + + COUNT( * ) * + 64 * + 4 WHEN + 76 * + 50 + + 41 * - 35 * + 62 THEN NULL ELSE NULL END + ( 55 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5993
SELECT - + CASE COUNT ( * ) WHEN + 45 / - + 64 * COUNT ( * ) THEN - 25 + - + 9 + - COUNT ( * ) + CAST ( + 73 AS INTEGER ) + + + COUNT ( * ) * + 64 * + 4 WHEN + 76 * + 50 + + 41 * - 35 * + 62 THEN NULL ELSE NULL END + ( 55 ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - - 97 + - 62
----
35

query I rowsort
SELECT - 33 + - + 34
----
-67

query I rowsort
SELECT - - 17 - + - 11 AS col0
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5997
SELECT DISTINCT CAST( - + 90 AS SIGNED ) AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-5997
SELECT DISTINCT CAST ( - + 90 AS INTEGER ) AS col2
----
-90

query I rowsort
SELECT + 30 + 11 AS col0
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5999
SELECT DISTINCT 91 * MIN( ALL + + 11 ) - - 68 - + 8 * + CAST( NULL AS SIGNED ) / 95 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5999
SELECT DISTINCT 91 * MIN ( ALL + + 11 ) - - 68 - + 8 * + CAST ( NULL AS INTEGER ) / 95 col1
----
NULL

query I rowsort
SELECT - 21 + - 70 + - + 38 AS col0
----
-129

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6001
SELECT ALL - 73 * + CASE - 48 WHEN - - 63 THEN NULL ELSE - - CAST( NULL AS SIGNED ) - + - 90 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6001
SELECT ALL - 73 * + CASE - 48 WHEN - - 63 THEN NULL ELSE - - CAST ( NULL AS INTEGER ) - + - 90 END
----
NULL

query I rowsort
SELECT ALL + ( + + 82 ) AS col0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-6003
SELECT DISTINCT - 64 * SUM( + COALESCE ( - 92, - 7 ) ) AS col2
----
5888

skipif mysql # not compatible
query I rowsort label-6003
SELECT DISTINCT - 64 * SUM ( + COALESCE ( - 92, - 7 ) ) AS col2
----
5888

query I rowsort
SELECT - 67 * 17
----
-1139

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6005
SELECT + COUNT( DISTINCT - ( + CAST( + 96 AS SIGNED ) ) ) * 68 DIV - 87 + - + 65 AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-6005
SELECT + COUNT ( DISTINCT - ( + CAST ( + 96 AS INTEGER ) ) ) * 68 / - 87 + - + 65 AS col0
----
-65

query II rowsort
SELECT + 33 AS col0, - 45
----
33
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-6007
SELECT - COUNT( * ) * - - 4 * - 16 * - 70 col2
----
-4480

skipif mysql # not compatible
query I rowsort label-6007
SELECT - COUNT ( * ) * - - 4 * - 16 * - 70 col2
----
-4480

query I rowsort
SELECT + 43 + - + 65 AS col2
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6009
SELECT CASE - 32 WHEN - 35 * 73 * + 85 + + + 90 - + 13 * - - 83 THEN NULL WHEN + - 16 * 14 * - 35 + + - CAST( + 66 AS SIGNED ) THEN - 92 ELSE 1 + 64 + + 86 * + 91 END AS col2
----
7891

skipif mysql # not compatible
query I rowsort label-6009
SELECT CASE - 32 WHEN - 35 * 73 * + 85 + + + 90 - + 13 * - - 83 THEN NULL WHEN + - 16 * 14 * - 35 + + - CAST ( + 66 AS INTEGER ) THEN - 92 ELSE 1 + 64 + + 86 * + 91 END AS col2
----
7891

onlyif mysql # DIV for integer division: 
query I rowsort label-6010
SELECT DISTINCT - 29 DIV 4 AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-6010
SELECT DISTINCT - 29 / 4 AS col0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-6011
SELECT ALL - ( - 34 ) * + 15 - + COUNT( * ) * COUNT( * ) + - + COALESCE ( - - 5, + - 91 ) AS col0
----
504

skipif mysql # not compatible
query I rowsort label-6011
SELECT ALL - ( - 34 ) * + 15 - + COUNT ( * ) * COUNT ( * ) + - + COALESCE ( - - 5, + - 91 ) AS col0
----
504

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6012
SELECT DISTINCT - 61 * - 80 + + COALESCE ( - 48, 33 + - NULLIF ( + ( - CAST( NULL AS SIGNED ) ), + - 32 * + + COUNT( * ) * - + 53 * - ( + + CAST( COUNT( * ) AS SIGNED ) ) * - 13 * + - 66 * COALESCE ( + MIN( DISTINCT - 68 ), + + COUNT( * ) + - 2 ) * 95 * 2 / + 54 ) )
----
4832

skipif mysql # not compatible
query I rowsort label-6012
SELECT DISTINCT - 61 * - 80 + + COALESCE ( - 48, 33 + - NULLIF ( + ( - CAST ( NULL AS INTEGER ) ), + - 32 * + + COUNT ( * ) * - + 53 * - ( + + CAST ( COUNT ( * ) AS INTEGER ) ) * - 13 * + - 66 * COALESCE ( + MIN ( DISTINCT - 68 ), + + COUNT ( * ) + - 2 ) * 95 * 2 / + 54 ) )
----
4832

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6013
SELECT - 95 - - + 49 - + 6 + + + 22 / - 87 / ( - 67 ) + - - 61 / + 45 * - CASE + + COALESCE ( + 49, - 1, - + 4 * + + 65 * + CAST( NULL AS SIGNED ) ) WHEN - 1 THEN - 43 WHEN - - 97 THEN NULL END + - 46 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6013
SELECT - 95 - - + 49 - + 6 + + + 22 / - 87 / ( - 67 ) + - - 61 / + 45 * - CASE + + COALESCE ( + 49, - 1, - + 4 * + + 65 * + CAST ( NULL AS INTEGER ) ) WHEN - 1 THEN - 43 WHEN - - 97 THEN NULL END + - 46 AS col2
----
NULL

query I rowsort
SELECT + 6 + - + 98 - - + 77 * - + 74 * - 50 * - + 82
----
-23361892

query I rowsort
SELECT ALL + ( - ( 26 ) ) + + - 69
----
-95

onlyif mysql # aggregate syntax: 
query II rowsort label-6016
SELECT DISTINCT 7 + 92 + COUNT( * ), 4 col1
----
100
4

skipif mysql # not compatible
query II rowsort label-6016
SELECT DISTINCT 7 + 92 + COUNT ( * ), 4 col1
----
100
4

query I rowsort
SELECT ALL + + 7 + + 39
----
46

query II rowsort
SELECT ALL 19 AS col1, 80 AS col1
----
19
80

query I rowsort
SELECT + 9 * - 92 - - 78 * + 89 AS col0
----
6114

query I rowsort
SELECT + 36 + + + 96 + + - 65
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-6021
SELECT - COUNT( * ) - + 43 AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-6021
SELECT - COUNT ( * ) - + 43 AS col0
----
-44

query I rowsort
SELECT + + 55 * - 73
----
-4015

query I rowsort
SELECT - + ( + 38 ) AS col0
----
-38

query I rowsort
SELECT ALL 19 - - 25 AS col2
----
44

query I rowsort
SELECT DISTINCT + 16 * 83 AS col0
----
1328

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6026
SELECT - COALESCE ( COUNT( * ), + - ( - 16 ) * - 19, + 61 + - - COALESCE ( - COUNT( DISTINCT - COALESCE ( - 40, - 1 ) ), + 19 - - 76 ) * + 84 + - - 16 * - 42 + - 77 * 39 * - CAST( NULL AS SIGNED ) ) DIV COUNT( - 87 )
----
-1

skipif mysql # not compatible
query I rowsort label-6026
SELECT - COALESCE ( COUNT ( * ), + - ( - 16 ) * - 19, + 61 + - - COALESCE ( - COUNT ( DISTINCT - COALESCE ( - 40, - 1 ) ), + 19 - - 76 ) * + 84 + - - 16 * - 42 + - 77 * 39 * - CAST ( NULL AS INTEGER ) ) / COUNT ( - 87 )
----
-1

query I rowsort
SELECT - 80 + - 15 - - 59 col1
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6028
SELECT + 9 + - CAST( + - COUNT( * ) AS SIGNED )
----
10

skipif mysql # not compatible
query I rowsort label-6028
SELECT + 9 + - CAST ( + - COUNT ( * ) AS INTEGER )
----
10

query I rowsort
SELECT ALL + COALESCE ( 72, + 86 ) AS col0
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6030
SELECT + ( 76 ) * 41 + - 0 + 36 DIV + COUNT( * ) AS col2
----
3152

skipif mysql # not compatible
query I rowsort label-6030
SELECT + ( 76 ) * 41 + - 0 + 36 / + COUNT ( * ) AS col2
----
3152

query II rowsort
SELECT + 28 AS col0, + 3
----
28
3

query I rowsort
SELECT - 50 * - 71 col0
----
3550

onlyif mysql # aggregate syntax: 
query I rowsort label-6033
SELECT + CASE - COUNT( * ) WHEN + - 29 THEN - 77 WHEN - 66 + 79 THEN NULL ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6033
SELECT + CASE - COUNT ( * ) WHEN + - 29 THEN - 77 WHEN - 66 + 79 THEN NULL ELSE NULL END col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6034
SELECT - CAST( NULL AS SIGNED ) + + 17
----
NULL

skipif mysql # not compatible
query I rowsort label-6034
SELECT - CAST ( NULL AS INTEGER ) + + 17
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6035
SELECT DISTINCT + 24, + 87 * 30 DIV + + 64 col1
----
24
40

skipif mysql # not compatible
query II rowsort label-6035
SELECT DISTINCT + 24, + 87 * 30 / + + 64 col1
----
24
40

query I rowsort
SELECT - 31 + 10 AS col2
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-6037
SELECT ALL - 43 * + SUM( DISTINCT - 17 ) * 99
----
72369

skipif mysql # not compatible
query I rowsort label-6037
SELECT ALL - 43 * + SUM ( DISTINCT - 17 ) * 99
----
72369

query II rowsort
SELECT ALL + ( + - 61 ), + 31 AS col2
----
-61
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6039
SELECT - 11 * + - COUNT( * ) + + 31 + 25 DIV + - CASE + + ( - + 32 ) WHEN 64 DIV + + AVG ( 85 ) + - 75 THEN NULL WHEN + 68 * - + 83 + + 6 - - 72 + 38 + ( + - 37 ) * 22 * AVG ( 69 ) * 50 DIV - + 77 + 54 + + 54 + 11 * - 29 THEN NULL ELSE - 13 * - 62 END AS col2, + 96
----
42
96

skipif mysql # not compatible
query II rowsort label-6039
SELECT - 11 * + - COUNT ( * ) + + 31 + 25 / + - CASE + + ( - + 32 ) WHEN 64 / + + AVG ( 85 ) + - 75 THEN NULL WHEN + 68 * - + 83 + + 6 - - 72 + 38 + ( + - 37 ) * 22 * AVG ( 69 ) * 50 / - + 77 + 54 + + 54 + 11 * - 29 THEN NULL ELSE - 13 * - 62 END AS col2, + 96
----
42
96

query I rowsort
SELECT 1 + + 71 + + 40 * - 14 AS col0
----
-488

query I rowsort
SELECT 36 - - 32 * 27 - + 94
----
806

onlyif mysql # aggregate syntax: 
query I rowsort label-6042
SELECT - + SUM( ALL - 13 ) * + 40 * 31 + + 58 + - - 15 + + + 68 col2
----
16261

skipif mysql # not compatible
query I rowsort label-6042
SELECT - + SUM ( ALL - 13 ) * + 40 * 31 + + 58 + - - 15 + + + 68 col2
----
16261

query I rowsort
SELECT ALL - + COALESCE ( + 13, 23 ) AS col0
----
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-6044
SELECT 60 AS col0, - COUNT( * ) + + 19 AS col1
----
60
18

skipif mysql # not compatible
query II rowsort label-6044
SELECT 60 AS col0, - COUNT ( * ) + + 19 AS col1
----
60
18

query I rowsort
SELECT ALL - ( - ( + - 14 ) ) + + 15 + + + 12 * + 86 + 1
----
1034

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6046
SELECT DISTINCT + 38 + 76 - + CAST( NULL AS SIGNED ) * - 48 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6046
SELECT DISTINCT + 38 + 76 - + CAST ( NULL AS INTEGER ) * - 48 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6047
SELECT ALL + COALESCE ( 26, - 81 ) + + COUNT( * ) * 75 * + - 66 + + 3
----
-4921

skipif mysql # not compatible
query I rowsort label-6047
SELECT ALL + COALESCE ( 26, - 81 ) + + COUNT ( * ) * 75 * + - 66 + + 3
----
-4921

query I rowsort
SELECT 18 + + 97 AS col2
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-6049
SELECT - 40 + - + 57 + + 15 * + MAX( DISTINCT 93 ) AS col1
----
1298

skipif mysql # not compatible
query I rowsort label-6049
SELECT - 40 + - + 57 + + 15 * + MAX ( DISTINCT 93 ) AS col1
----
1298

onlyif mysql # aggregate syntax: 
query I rowsort label-6050
SELECT ALL 79 * COUNT( * ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-6050
SELECT ALL 79 * COUNT ( * ) AS col0
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6051
SELECT - 64 AS col1, - CAST( NULL AS SIGNED ) AS col0
----
-64
NULL

skipif mysql # not compatible
query II rowsort label-6051
SELECT - 64 AS col1, - CAST ( NULL AS INTEGER ) AS col0
----
-64
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6052
SELECT + MIN( 7 ) * + - 31 * + MIN( DISTINCT 43 ) + - 25
----
-9356

skipif mysql # not compatible
query I rowsort label-6052
SELECT + MIN ( 7 ) * + - 31 * + MIN ( DISTINCT 43 ) + - 25
----
-9356

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6053
SELECT ALL COALESCE ( COALESCE ( - 20, + ( 41 ), + - ( 88 ) DIV - COALESCE ( + 98, - CAST( NULL AS SIGNED ), 47 ) * + 31 - 41 ), + 8 + + + COALESCE ( - + 95, - + 55 + - 78, 74 * 25 - + 50 * + - 41 + - SUM( ALL - - 70 ) ) * - + 43 + + 23 - + 47 ) - + - COUNT( * ) * 62
----
42

skipif mysql # not compatible
query I rowsort label-6053
SELECT ALL COALESCE ( COALESCE ( - 20, + ( 41 ), + - ( 88 ) / - COALESCE ( + 98, - CAST ( NULL AS INTEGER ), 47 ) * + 31 - 41 ), + 8 + + + COALESCE ( - + 95, - + 55 + - 78, 74 * 25 - + 50 * + - 41 + - SUM ( ALL - - 70 ) ) * - + 43 + + 23 - + 47 ) - + - COUNT ( * ) * 62
----
42

query I rowsort
SELECT ALL 37 * + + 68
----
2516

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6055
SELECT CAST( COALESCE ( 0, + 71 * COUNT( * ) * + - 36 + + - 2 / 69 + - - 76 ) AS DECIMAL ) + + CAST( NULL AS SIGNED ) * ( + 26 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6055
SELECT CAST ( COALESCE ( 0, + 71 * COUNT ( * ) * + - 36 + + - 2 / 69 + - - 76 ) AS REAL ) + + CAST ( NULL AS INTEGER ) * ( + 26 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6056
SELECT - COALESCE ( CAST( NULL AS SIGNED ), + - 49, 52 ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-6056
SELECT - COALESCE ( CAST ( NULL AS INTEGER ), + - 49, 52 ) AS col2
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-6057
SELECT + 90 + - 59 DIV 67 AS col2
----
90

skipif mysql # not compatible
query I rowsort label-6057
SELECT + 90 + - 59 / 67 AS col2
----
90

onlyif mysql # aggregate syntax: 
query II rowsort label-6058
SELECT - + COUNT( * ), + COUNT( * ) AS col0
----
-1
1

skipif mysql # not compatible
query II rowsort label-6058
SELECT - + COUNT ( * ), + COUNT ( * ) AS col0
----
-1
1

query II rowsort
SELECT DISTINCT - 8 AS col1, 91 AS col1
----
-8
91

query II rowsort
SELECT ALL 49 AS col2, + COALESCE ( + 73, - 2, - 28 )
----
49
73

onlyif mysql # aggregate syntax: 
query II rowsort label-6061
SELECT - + 59 col1, - MAX( DISTINCT - 41 ) AS col2
----
-59
41

skipif mysql # not compatible
query II rowsort label-6061
SELECT - + 59 col1, - MAX ( DISTINCT - 41 ) AS col2
----
-59
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6062
SELECT ALL + NULLIF ( 64, + ( CAST( NULL AS SIGNED ) ) ) * - - 42 AS col1
----
2688

skipif mysql # not compatible
query I rowsort label-6062
SELECT ALL + NULLIF ( 64, + ( CAST ( NULL AS INTEGER ) ) ) * - - 42 AS col1
----
2688

query I rowsort
SELECT DISTINCT 38 * + 73 * 55 * 44
----
6713080

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6064
SELECT 11 + + - AVG ( + - CAST( NULL AS SIGNED ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6064
SELECT 11 + + - AVG ( + - CAST ( NULL AS INTEGER ) ) col2
----
NULL

query I rowsort
SELECT ALL - 47 + - 8 - + 30
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6066
SELECT - 32 / + CAST( NULL AS SIGNED ) * 21 + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6066
SELECT - 32 / + CAST ( NULL AS INTEGER ) * 21 + - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6067
SELECT ALL COUNT( * ) * ( + COUNT( * ) ) AS col1, COUNT( * ) AS col0
----
1
1

skipif mysql # not compatible
query II rowsort label-6067
SELECT ALL COUNT ( * ) * ( + COUNT ( * ) ) AS col1, COUNT ( * ) AS col0
----
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6068
SELECT 20 DIV - + 2 AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-6068
SELECT 20 / - + 2 AS col0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-6069
SELECT DISTINCT - COUNT( * ) + ( - COUNT( * ) ) col0
----
-2

skipif mysql # not compatible
query I rowsort label-6069
SELECT DISTINCT - COUNT ( * ) + ( - COUNT ( * ) ) col0
----
-2

query II rowsort
SELECT COALESCE ( + 93, - 45 ) * + + 47 + - - 84 AS col1, 83 AS col1
----
4455
83

onlyif mysql # aggregate syntax: 
query II rowsort label-6071
SELECT ALL - COUNT( + + 95 ) AS col1, 61
----
-1
61

skipif mysql # not compatible
query II rowsort label-6071
SELECT ALL - COUNT ( + + 95 ) AS col1, 61
----
-1
61

onlyif mysql # aggregate syntax: 
query I rowsort label-6072
SELECT 85 * - 32 + + + 83 * + 10 * - COUNT( * ) AS col0
----
-3550

skipif mysql # not compatible
query I rowsort label-6072
SELECT 85 * - 32 + + + 83 * + 10 * - COUNT ( * ) AS col0
----
-3550

onlyif mysql # aggregate syntax: 
query I rowsort label-6073
SELECT ALL + 94 * - + NULLIF ( + COUNT( * ), COUNT( * ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6073
SELECT ALL + 94 * - + NULLIF ( + COUNT ( * ), COUNT ( * ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6074
SELECT ALL MAX( 43 ) + 18 + + 53 * + NULLIF ( MIN( ALL - 8 ), + - 40 + - + 84 * + 94 ) - MIN( DISTINCT - + ( 35 ) ) * + - 80 * - - 95
----
-266363

skipif mysql # not compatible
query I rowsort label-6074
SELECT ALL MAX ( 43 ) + 18 + + 53 * + NULLIF ( MIN ( ALL - 8 ), + - 40 + - + 84 * + 94 ) - MIN ( DISTINCT - + ( 35 ) ) * + - 80 * - - 95
----
-266363

query I rowsort
SELECT 41 * - - 13
----
533

onlyif mysql # aggregate syntax: 
query I rowsort label-6076
SELECT ALL - 45 + + + COUNT( * )
----
-44

skipif mysql # not compatible
query I rowsort label-6076
SELECT ALL - 45 + + + COUNT ( * )
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-6077
SELECT DISTINCT + 87 + + COUNT( * ) AS col0
----
88

skipif mysql # not compatible
query I rowsort label-6077
SELECT DISTINCT + 87 + + COUNT ( * ) AS col0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-6078
SELECT ALL - MIN( + 49 ) col1
----
-49

skipif mysql # not compatible
query I rowsort label-6078
SELECT ALL - MIN ( + 49 ) col1
----
-49

query II rowsort
SELECT DISTINCT - ( + 67 ), + 17 col2
----
-67
17

onlyif mysql # aggregate syntax: 
query I rowsort label-6080
SELECT DISTINCT + 43 * + + COUNT( * ) * - - 99
----
4257

skipif mysql # not compatible
query I rowsort label-6080
SELECT DISTINCT + 43 * + + COUNT ( * ) * - - 99
----
4257

query I rowsort
SELECT ALL - 85 - ( 53 )
----
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-6082
SELECT - 28 * - - ( - COUNT( * ) ) * - + 22 * - + 23 + + + 39
----
14207

skipif mysql # not compatible
query I rowsort label-6082
SELECT - 28 * - - ( - COUNT ( * ) ) * - + 22 * - + 23 + + + 39
----
14207

onlyif mysql # aggregate syntax: 
query I rowsort label-6083
SELECT 43 * COUNT( - + 92 )
----
43

skipif mysql # not compatible
query I rowsort label-6083
SELECT 43 * COUNT ( - + 92 )
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-6084
SELECT + COUNT( * ) + - + 79 col1, 69
----
-78
69

skipif mysql # not compatible
query II rowsort label-6084
SELECT + COUNT ( * ) + - + 79 col1, 69
----
-78
69

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6085
SELECT DISTINCT + + MAX( 54 ) / - - SUM( - CAST( NULL AS DECIMAL ) ) * + 31 * - + ( 75 ) + - 8
----
NULL

skipif mysql # not compatible
query I rowsort label-6085
SELECT DISTINCT + + MAX ( 54 ) / - - SUM ( - CAST ( NULL AS REAL ) ) * + 31 * - + ( 75 ) + - 8
----
NULL

query I rowsort
SELECT + 18 + - 11 AS col0
----
7

query I rowsort
SELECT ALL ( + CASE 8 WHEN - 89 - - 51 THEN NULL ELSE - 73 END ) AS col2
----
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-6088
SELECT - 27 DIV 11 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-6088
SELECT - 27 / 11 AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6089
SELECT 81 - ( - COUNT( * ) )
----
82

skipif mysql # not compatible
query I rowsort label-6089
SELECT 81 - ( - COUNT ( * ) )
----
82

query I rowsort
SELECT ALL + 78 * - ( + COALESCE ( + 47, - - 0 + - ( - 64 ), - 1 ) ) * - + 8 + 59 - - 3 + - 7 AS col2
----
29383

query I rowsort
SELECT ALL - - 19 * + 71 AS col0
----
1349

query II rowsort
SELECT - 64 AS col0, 12
----
-64
12

query I rowsort
SELECT 70 + + + 77
----
147

query II rowsort
SELECT ALL 17, - NULLIF ( 24, + - 96 ) + - 59 AS col0
----
17
-83

query II rowsort
SELECT ALL 26 AS col0, + 67
----
26
67

query I rowsort
SELECT ALL - 88 + - 31
----
-119

query I rowsort
SELECT + 8 * + ( + 44 ) * 87 AS col0
----
30624

onlyif mysql # aggregate syntax: 
query I rowsort label-6098
SELECT ALL COUNT( * ) + + 38 AS col1
----
39

skipif mysql # not compatible
query I rowsort label-6098
SELECT ALL COUNT ( * ) + + 38 AS col1
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6099
SELECT + NULLIF ( + + 5, CAST( - + MIN( + COALESCE ( - - 85, + + 52 ) ) AS SIGNED ) )
----
5

skipif mysql # not compatible
query I rowsort label-6099
SELECT + NULLIF ( + + 5, CAST ( - + MIN ( + COALESCE ( - - 85, + + 52 ) ) AS INTEGER ) )
----
5

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6100
SELECT ALL + COALESCE ( COUNT( * ), + COUNT( * ) / ( - + COUNT( * ) ) + - 64 ) * 4 * - + 10 + - + CAST( NULL AS DECIMAL ) + 70 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6100
SELECT ALL + COALESCE ( COUNT ( * ), + COUNT ( * ) / ( - + COUNT ( * ) ) + - 64 ) * 4 * - + 10 + - + CAST ( NULL AS REAL ) + 70 col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6101
SELECT CASE - COUNT( * ) WHEN - COUNT( * ) THEN NULL WHEN + 90 - + 31 * + 9 * - 54 THEN NULL WHEN + 79 THEN NULL ELSE + + CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6101
SELECT CASE - COUNT ( * ) WHEN - COUNT ( * ) THEN NULL WHEN + 90 - + 31 * + 9 * - 54 THEN NULL WHEN + 79 THEN NULL ELSE + + CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6102
SELECT - COUNT( * ) * - 44 + + + 2 + 2 DIV + 79
----
46

skipif mysql # not compatible
query I rowsort label-6102
SELECT - COUNT ( * ) * - 44 + + + 2 + 2 / + 79
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6103
SELECT + 24 + COUNT( * ) + 81
----
106

skipif mysql # not compatible
query I rowsort label-6103
SELECT + 24 + COUNT ( * ) + 81
----
106

query I rowsort
SELECT + 42 + + 50
----
92

query I rowsort
SELECT DISTINCT 48 * + 97 AS col0
----
4656

query I rowsort
SELECT DISTINCT 74 * - 99 AS col2
----
-7326

onlyif mysql # aggregate syntax: 
query I rowsort label-6107
SELECT - - COUNT( * ) + - - 0 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6107
SELECT - - COUNT ( * ) + - - 0 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6108
SELECT - 45 - - COUNT( * ) + + + 35 AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-6108
SELECT - 45 - - COUNT ( * ) + + + 35 AS col0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6109
SELECT - NULLIF ( 44, - + MIN( ALL 5 ) - NULLIF ( 1, + - 96 + + 58 ) ) * + 85 + - COUNT( * ) * 69 AS col0
----
-3809

skipif mysql # not compatible
query I rowsort label-6109
SELECT - NULLIF ( 44, - + MIN ( ALL 5 ) - NULLIF ( 1, + - 96 + + 58 ) ) * + 85 + - COUNT ( * ) * 69 AS col0
----
-3809

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6110
SELECT - MIN( DISTINCT CAST( - 42 AS SIGNED ) ) * + 22
----
924

skipif mysql # not compatible
query I rowsort label-6110
SELECT - MIN ( DISTINCT CAST ( - 42 AS INTEGER ) ) * + 22
----
924

query I rowsort
SELECT DISTINCT + - 58 * COALESCE ( 98, - 76 * + 57 * - 36 + - - 88 ) AS col2
----
-5684

query I rowsort
SELECT ALL + - COALESCE ( - 43, + 20 )
----
43

query I rowsort
SELECT - - 93 + 84 AS col0
----
177

onlyif mysql # aggregate syntax: 
query II rowsort label-6114
SELECT ALL - + 16 * - + COUNT( 17 ) AS col1, 75 * - 18 AS col0
----
16
-1350

skipif mysql # not compatible
query II rowsort label-6114
SELECT ALL - + 16 * - + COUNT ( 17 ) AS col1, 75 * - 18 AS col0
----
16
-1350

onlyif mysql # aggregate syntax: 
query I rowsort label-6115
SELECT ALL - - 91 * + CASE - + COUNT( * ) WHEN 67 + - + ( + + 93 ) * - 35 THEN COUNT( * ) / - COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6115
SELECT ALL - - 91 * + CASE - + COUNT ( * ) WHEN 67 + - + ( + + 93 ) * - 35 THEN COUNT ( * ) / - COUNT ( * ) ELSE NULL END
----
NULL

query I rowsort
SELECT - 0 + COALESCE ( ( + 53 ), + - 66 )
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-6117
SELECT NULLIF ( - COUNT( ALL - 76 ), 89 )
----
-1

skipif mysql # not compatible
query I rowsort label-6117
SELECT NULLIF ( - COUNT ( ALL - 76 ), 89 )
----
-1

query I rowsort
SELECT ALL ( + ( - 2 ) ) col0
----
-2

query I rowsort
SELECT - 21 * - 43
----
903

query I rowsort
SELECT + 27 + + 41 - + 64
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6121
SELECT ALL - SUM( + - 8 ) + COUNT( * ) AS col2
----
9

skipif mysql # not compatible
query I rowsort label-6121
SELECT ALL - SUM ( + - 8 ) + COUNT ( * ) AS col2
----
9

query I rowsort
SELECT ALL + 29 + + + ( + - 29 ) AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6123
SELECT DISTINCT 68 DIV - - 56
----
1

skipif mysql # not compatible
query I rowsort label-6123
SELECT DISTINCT 68 / - - 56
----
1

query I rowsort
SELECT DISTINCT - 2 + - 86 AS col1
----
-88

query I rowsort
SELECT - 91 * 80 AS col0
----
-7280

onlyif mysql # aggregate syntax: 
query I rowsort label-6126
SELECT - 8 + + MIN( - 49 ) + - 33 AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-6126
SELECT - 8 + + MIN ( - 49 ) + - 33 AS col0
----
-90

query I rowsort
SELECT ALL - 84 + 41 AS col1
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-6128
SELECT - MAX( ALL + 47 ) * + 28
----
-1316

skipif mysql # not compatible
query I rowsort label-6128
SELECT - MAX ( ALL + 47 ) * + 28
----
-1316

query I rowsort
SELECT - NULLIF ( + 3, + 41 ) AS col0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6130
SELECT ALL ( + + ( - 74 ) ) * 26 * - + CASE - 5 WHEN - - 5 * - + 68 THEN + COUNT( * ) * 94 * + + ( + 74 ) + - - COUNT( * ) / + NULLIF ( + 1, + 42 + - - 84 - + CAST( - 10 AS SIGNED ) ) WHEN + 62 THEN - - 89 * 55 / - MAX( + 92 ) * - 43 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6130
SELECT ALL ( + + ( - 74 ) ) * 26 * - + CASE - 5 WHEN - - 5 * - + 68 THEN + COUNT ( * ) * 94 * + + ( + 74 ) + - - COUNT ( * ) / + NULLIF ( + 1, + 42 + - - 84 - + CAST ( - 10 AS INTEGER ) ) WHEN + 62 THEN - - 89 * 55 / - MAX ( + 92 ) * - 43 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6131
SELECT DISTINCT + COUNT( * ) * + - 9 * + CASE ( COUNT( * ) ) WHEN - + 24 THEN COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6131
SELECT DISTINCT + COUNT ( * ) * + - 9 * + CASE ( COUNT ( * ) ) WHEN - + 24 THEN COUNT ( * ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6132
SELECT ALL - 86 DIV 53 - + 98
----
-99

skipif mysql # not compatible
query I rowsort label-6132
SELECT ALL - 86 / 53 - + 98
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6133
SELECT + CASE - + AVG ( - + 30 ) WHEN + CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) THEN 22 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6133
SELECT + CASE - + AVG ( - + 30 ) WHEN + CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) THEN 22 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6134
SELECT DISTINCT + CASE + ( + COUNT( * ) ) WHEN + + 19 THEN - 34 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6134
SELECT DISTINCT + CASE + ( + COUNT ( * ) ) WHEN + + 19 THEN - 34 END AS col2
----
NULL

query I rowsort
SELECT ALL - 94 * - 83
----
7802

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6136
SELECT CAST( + - 43 AS SIGNED ) AS col1, - 34 * - + ( + - 14 ) + - - NULLIF ( - 1, + 49 * COUNT( * ) / - CAST( - 81 AS DECIMAL ) + + 51 / - - 15 * CAST( + 27 AS SIGNED ) / 37 + + - COUNT( * ) + + 86 ) AS col2
----
-43
-477

skipif mysql # not compatible
query II rowsort label-6136
SELECT CAST ( + - 43 AS INTEGER ) AS col1, - 34 * - + ( + - 14 ) + - - NULLIF ( - 1, + 49 * COUNT ( * ) / - CAST ( - 81 AS REAL ) + + 51 / - - 15 * CAST ( + 27 AS INTEGER ) / 37 + + - COUNT ( * ) + + 86 ) AS col2
----
-43
-477

query I rowsort
SELECT - - 54 * + - 78 AS col2
----
-4212

onlyif mysql # aggregate syntax: 
query I rowsort label-6138
SELECT ALL COUNT( * ) * + 5
----
5

skipif mysql # not compatible
query I rowsort label-6138
SELECT ALL COUNT ( * ) * + 5
----
5

query I rowsort
SELECT + ( - + 40 ) * 70
----
-2800

onlyif mysql # DIV for integer division: 
query I rowsort label-6140
SELECT + - 71 DIV + 18 + + + 52
----
49

skipif mysql # not compatible
query I rowsort label-6140
SELECT + - 71 / + 18 + + + 52
----
49

query I rowsort
SELECT + NULLIF ( - - 43, - NULLIF ( + 52, - - 68 ) )
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-6142
SELECT ALL 81 * 81 * - 6 + - + COUNT( * ) AS col0, + 0
----
-39367
0

skipif mysql # not compatible
query II rowsort label-6142
SELECT ALL 81 * 81 * - 6 + - + COUNT ( * ) AS col0, + 0
----
-39367
0

query I rowsort
SELECT DISTINCT + ( - - 86 ) AS col2
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-6144
SELECT - - 72 * + NULLIF ( + - 13, 53 ) + - - COUNT( * )
----
-935

skipif mysql # not compatible
query I rowsort label-6144
SELECT - - 72 * + NULLIF ( + - 13, 53 ) + - - COUNT ( * )
----
-935

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6145
SELECT CAST( + 35 AS SIGNED ) * + - MAX( - CAST( NULL AS SIGNED ) ) + - + 37 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6145
SELECT CAST ( + 35 AS INTEGER ) * + - MAX ( - CAST ( NULL AS INTEGER ) ) + - + 37 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6146
SELECT + COUNT( ALL 31 ) + + - COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6146
SELECT + COUNT ( ALL 31 ) + + - COUNT ( * ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6147
SELECT - + MIN( DISTINCT 4 )
----
-4

skipif mysql # not compatible
query I rowsort label-6147
SELECT - + MIN ( DISTINCT 4 )
----
-4

query II rowsort
SELECT + 2 + 80, ( 46 ) AS col1
----
82
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6149
SELECT - NULLIF ( - 1, 25 + CAST( - 34 AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-6149
SELECT - NULLIF ( - 1, 25 + CAST ( - 34 AS INTEGER ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6150
SELECT ALL SUM( - + 73 ) col0
----
-73

skipif mysql # not compatible
query I rowsort label-6150
SELECT ALL SUM ( - + 73 ) col0
----
-73

query I rowsort
SELECT ALL - 88 * - COALESCE ( - + 81, + 74 )
----
-7128

query I rowsort
SELECT DISTINCT 38 + - + 41
----
-3

query I rowsort
SELECT DISTINCT + 16 + 44 AS col2
----
60

query III rowsort
SELECT - 79 col0, 47 * + - 34, - - 36 AS col1
----
-79
-1598
36

onlyif mysql # aggregate syntax: 
query II rowsort label-6155
SELECT - 82, + 9 * - + ( - COUNT( * ) ) col1
----
-82
9

skipif mysql # not compatible
query II rowsort label-6155
SELECT - 82, + 9 * - + ( - COUNT ( * ) ) col1
----
-82
9

query I rowsort
SELECT 4 + 77 AS col2
----
81

query I rowsort
SELECT 26 - + 49 AS col0
----
-23

query I rowsort
SELECT 30 * 87 * + CASE + - 62 WHEN 95 * + 41 THEN NULL WHEN + ( - 23 ) THEN - 79 ELSE 4 END AS col1
----
10440

onlyif mysql # DIV for integer division: 
query I rowsort label-6159
SELECT ALL - 26 DIV - 4
----
6

skipif mysql # not compatible
query I rowsort label-6159
SELECT ALL - 26 / - 4
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6160
SELECT ALL + 53 - COUNT( * ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-6160
SELECT ALL + 53 - COUNT ( * ) AS col2
----
52

query II rowsort
SELECT ALL 2, 89 AS col1
----
2
89

query I rowsort
SELECT 20 * + - 30 AS col1
----
-600

onlyif mysql # aggregate syntax: 
query I rowsort label-6163
SELECT 55 * + 4 / + CASE - 72 WHEN COUNT( ALL + ( ( + - ( - 50 ) ) ) ) + + 91 THEN - 90 WHEN - 57 - - 88 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6163
SELECT 55 * + 4 / + CASE - 72 WHEN COUNT ( ALL + ( ( + - ( - 50 ) ) ) ) + + 91 THEN - 90 WHEN - 57 - - 88 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6164
SELECT + 0 DIV + - 26 + + ( - + 12 ) + + 91 + + 39 DIV - 51 + + + COUNT( 74 ) * + 44
----
123

skipif mysql # not compatible
query I rowsort label-6164
SELECT + 0 / + - 26 + + ( - + 12 ) + + 91 + + 39 / - 51 + + + COUNT ( 74 ) * + 44
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-6165
SELECT DISTINCT + SUM( - 84 ) * - 86 + - 96
----
7128

skipif mysql # not compatible
query I rowsort label-6165
SELECT DISTINCT + SUM ( - 84 ) * - 86 + - 96
----
7128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6166
SELECT ALL - + CAST( NULL AS SIGNED ) * - 63 * - - ( - 2 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6166
SELECT ALL - + CAST ( NULL AS INTEGER ) * - 63 * - - ( - 2 ) AS col0
----
NULL

query I rowsort
SELECT COALESCE ( 43, + - 42 ) + + + 76
----
119

query I rowsort
SELECT ALL + 56 + + + 47 AS col2
----
103

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6169
SELECT 76 * COUNT( * ) * - SUM( + 97 ) + - 49 AS col2, + 41 DIV - + 35
----
-7421
-1

skipif mysql # not compatible
query II rowsort label-6169
SELECT 76 * COUNT ( * ) * - SUM ( + 97 ) + - 49 AS col2, + 41 / - + 35
----
-7421
-1

query I rowsort
SELECT ALL - ( 50 ) + + 0
----
-50

query I rowsort
SELECT DISTINCT + 54 + 77
----
131

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6172
SELECT + 84 col0, CAST( NULL AS SIGNED )
----
84
NULL

skipif mysql # not compatible
query II rowsort label-6172
SELECT + 84 col0, CAST ( NULL AS INTEGER )
----
84
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6173
SELECT + + ( MIN( DISTINCT - 76 ) ) col0
----
-76

skipif mysql # not compatible
query I rowsort label-6173
SELECT + + ( MIN ( DISTINCT - 76 ) ) col0
----
-76

onlyif mysql # aggregate syntax: 
query II rowsort label-6174
SELECT 26 + - 85 + + - COUNT( * ) AS col1, + 67
----
-60
67

skipif mysql # not compatible
query II rowsort label-6174
SELECT 26 + - 85 + + - COUNT ( * ) AS col1, + 67
----
-60
67

onlyif mysql # aggregate syntax: 
query I rowsort label-6175
SELECT + 73 * SUM( ALL - - 59 ) + - + ( + - ( - 1 ) ) + + ( - 27 ) + - - COUNT( * )
----
4280

skipif mysql # not compatible
query I rowsort label-6175
SELECT + 73 * SUM ( ALL - - 59 ) + - + ( + - ( - 1 ) ) + + ( - 27 ) + - - COUNT ( * )
----
4280

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6176
SELECT + CASE - COUNT( * ) WHEN - COUNT( * ) + CAST( - 86 AS SIGNED ) THEN 33 WHEN + + 6 THEN - 55 ELSE 82 * - 4 END col2, 12 col1
----
-328
12

skipif mysql # not compatible
query II rowsort label-6176
SELECT + CASE - COUNT ( * ) WHEN - COUNT ( * ) + CAST ( - 86 AS INTEGER ) THEN 33 WHEN + + 6 THEN - 55 ELSE 82 * - 4 END col2, 12 col1
----
-328
12

query I rowsort
SELECT ALL - 30 + + 19
----
-11

query II rowsort
SELECT 36 * ( - - 8 ) col0, 53 * - 36
----
288
-1908

query I rowsort
SELECT ALL 86 + - 44 AS col2
----
42

query I rowsort
SELECT 5 + - 60 + - 14 * + ( 81 ) * - 40 + - 87 + - - 2 AS col2
----
45220

query II rowsort
SELECT ALL 66 AS col0, 70 + + + 2
----
66
72

onlyif mysql # aggregate syntax: 
query I rowsort label-6182
SELECT ( 97 ) + - ( - COUNT( * ) ) + - 97 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6182
SELECT ( 97 ) + - ( - COUNT ( * ) ) + - 97 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6183
SELECT ALL SUM( - 42 ) + + - 72 + - + SUM( + 55 ) + + CASE 85 WHEN + - 42 THEN - COUNT( * ) END + + 79 + + - 35 * - 39
----
NULL

skipif mysql # not compatible
query I rowsort label-6183
SELECT ALL SUM ( - 42 ) + + - 72 + - + SUM ( + 55 ) + + CASE 85 WHEN + - 42 THEN - COUNT ( * ) END + + 79 + + - 35 * - 39
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6184
SELECT SUM( - 57 ) * + 44 * + 98, + COALESCE ( COUNT( * ), - MIN( + - 51 ) + 22 + - 11 * + + CASE + + 81 WHEN - + 98 + - 13 THEN NULL ELSE + 67 END ) DIV 41 + ( + 70 ) + + 40 + - - COUNT( * ) * - CASE 42 WHEN 65 + ( - - 18 ) THEN + + COUNT( * ) ELSE + - COUNT( * ) + - - ( 64 ) END DIV - - 6 - + 28 + COUNT( * ) * MAX( ALL + 19 ) AS col2
----
-245784
91

skipif mysql # not compatible
query II rowsort label-6184
SELECT SUM ( - 57 ) * + 44 * + 98, + COALESCE ( COUNT ( * ), - MIN ( + - 51 ) + 22 + - 11 * + + CASE + + 81 WHEN - + 98 + - 13 THEN NULL ELSE + 67 END ) / 41 + ( + 70 ) + + 40 + - - COUNT ( * ) * - CASE 42 WHEN 65 + ( - - 18 ) THEN + + COUNT ( * ) ELSE + - COUNT ( * ) + - - ( 64 ) END / - - 6 - + 28 + COUNT ( * ) * MAX ( ALL + 19 ) AS col2
----
-245784
91

query II rowsort
SELECT 65, + 88 AS col1
----
65
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6186
SELECT ALL 25 col2, COUNT( - - 75 ) DIV - 67 + NULLIF ( + COUNT( * ), MAX( - 79 ) * + + 30 ) col1
----
25
1

skipif mysql # not compatible
query II rowsort label-6186
SELECT ALL 25 col2, COUNT ( - - 75 ) / - 67 + NULLIF ( + COUNT ( * ), MAX ( - 79 ) * + + 30 ) col1
----
25
1

query II rowsort
SELECT 1 + + + 25 + + - 25 * - - 33 * - 99 + 82, 65 AS col2
----
81783
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6188
SELECT ( COUNT( * ) ) / + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6188
SELECT ( COUNT ( * ) ) / + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6189
SELECT 40 DIV - 96
----
0

skipif mysql # not compatible
query I rowsort label-6189
SELECT 40 / - 96
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6190
SELECT ALL 34 AS col2, + COUNT( * ) DIV COUNT( * )
----
34
1

skipif mysql # not compatible
query II rowsort label-6190
SELECT ALL 34 AS col2, + COUNT ( * ) / COUNT ( * )
----
34
1

query II rowsort
SELECT DISTINCT 86 AS col1, 49 AS col2
----
86
49

onlyif mysql # DIV for integer division: 
query I rowsort label-6192
SELECT DISTINCT - COALESCE ( - 56, + 79 DIV - AVG ( DISTINCT - 70 ) ) * - 44 * 10
----
-24640

skipif mysql # not compatible
query I rowsort label-6192
SELECT DISTINCT - COALESCE ( - 56, + 79 / - AVG ( DISTINCT - 70 ) ) * - 44 * 10
----
-24640

query I rowsort
SELECT 39 * - + 62 * - + ( + + 95 )
----
229710

query II rowsort
SELECT ALL 99 AS col0, 91
----
99
91

query II rowsort
SELECT ALL 2 col1, 64
----
2
64

query I rowsort
SELECT 65 * - ( + 39 ) col1
----
-2535

query I rowsort
SELECT ALL + 31 * - 10 AS col2
----
-310

query I rowsort
SELECT + 97 + 82 AS col1
----
179

query II rowsort
SELECT 90 AS col1, - 83
----
90
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6200
SELECT - CAST( NULL AS SIGNED ) + + + ( + 78 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6200
SELECT - CAST ( NULL AS INTEGER ) + + + ( + 78 ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 59 * + - 6 * 72 + - 14 AS col1
----
-25502

onlyif mysql # aggregate syntax: 
query III rowsort label-6202
SELECT + COUNT( * ) col2, + 15 AS col2, - + 35 - 7 + 12 AS col2
----
1
15
-30

skipif mysql # not compatible
query III rowsort label-6202
SELECT + COUNT ( * ) col2, + 15 AS col2, - + 35 - 7 + 12 AS col2
----
1
15
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6203
SELECT + - CAST( + COUNT( * ) AS SIGNED ) * - - 42 + - 51 + - COUNT( * ) * - CAST( - 56 AS SIGNED ) + - 55 - 97
----
-301

skipif mysql # not compatible
query I rowsort label-6203
SELECT + - CAST ( + COUNT ( * ) AS INTEGER ) * - - 42 + - 51 + - COUNT ( * ) * - CAST ( - 56 AS INTEGER ) + - 55 - 97
----
-301

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6204
SELECT DISTINCT + CASE + 93 WHEN + - 59 * - 99 * 76 THEN NULL ELSE + 85 + - 69 END DIV - - COUNT( * ) AS col2
----
16

skipif mysql # not compatible
query I rowsort label-6204
SELECT DISTINCT + CASE + 93 WHEN + - 59 * - 99 * 76 THEN NULL ELSE + 85 + - 69 END / - - COUNT ( * ) AS col2
----
16

query I rowsort
SELECT ALL + 1 * - + 63 + - - 3 col0
----
-60

query I rowsort
SELECT 19 * - 27 + 53 - - - 65
----
-525

onlyif mysql # aggregate syntax: 
query I rowsort label-6207
SELECT + CASE 80 WHEN - 89 + + COUNT( * ) * - 10 THEN - MIN( + - 12 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6207
SELECT + CASE 80 WHEN - 89 + + COUNT ( * ) * - 10 THEN - MIN ( + - 12 ) END AS col0
----
NULL

query II rowsort
SELECT + 68 AS col0, 38 + 3
----
68
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6209
SELECT + 27 * + 92 - - + CAST( + NULLIF ( + - 70, COALESCE ( + 70, - 90 ) + COALESCE ( + ( - COUNT( DISTINCT - + ( - COALESCE ( - 61, 94, - 17 ) ) ) ), COUNT( * ), ( + 98 ) / + ( - + 13 ) ) ) AS SIGNED ) * + 57 AS col1
----
-1506

skipif mysql # not compatible
query I rowsort label-6209
SELECT + 27 * + 92 - - + CAST ( + NULLIF ( + - 70, COALESCE ( + 70, - 90 ) + COALESCE ( + ( - COUNT ( DISTINCT - + ( - COALESCE ( - 61, 94, - 17 ) ) ) ), COUNT ( * ), ( + 98 ) / + ( - + 13 ) ) ) AS INTEGER ) * + 57 AS col1
----
-1506

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6210
SELECT + 71 * - + NULLIF ( + COUNT( * ), 23 ) DIV - + COALESCE ( 85, COUNT( * ) - - + MIN( ALL 13 ) ) + + 29
----
29

skipif mysql # not compatible
query I rowsort label-6210
SELECT + 71 * - + NULLIF ( + COUNT ( * ), 23 ) / - + COALESCE ( 85, COUNT ( * ) - - + MIN ( ALL 13 ) ) + + 29
----
29

query I rowsort
SELECT 71 * 90 * + - 63 AS col1
----
-402570

query II rowsort
SELECT - 74 AS col2, 70
----
-74
70

onlyif mysql # aggregate syntax: 
query I rowsort label-6213
SELECT - COUNT( * ) * + 10 * 29 * + + 63 AS col2
----
-18270

skipif mysql # not compatible
query I rowsort label-6213
SELECT - COUNT ( * ) * + 10 * 29 * + + 63 AS col2
----
-18270

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6214
SELECT ALL + + CAST( NULL AS SIGNED ) * + CAST( + 40 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6214
SELECT ALL + + CAST ( NULL AS INTEGER ) * + CAST ( + 40 AS INTEGER )
----
NULL

query II rowsort
SELECT DISTINCT + 10 AS col1, 0 + 80
----
10
80

query I rowsort
SELECT DISTINCT + ( + + 54 )
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-6217
SELECT + MAX( - - 71 ) AS col2, 75
----
71
75

skipif mysql # not compatible
query II rowsort label-6217
SELECT + MAX ( - - 71 ) AS col2, 75
----
71
75

query I rowsort
SELECT + 75 * - 54 + 66 * + 1
----
-3984

query I rowsort
SELECT + 62 * + 98
----
6076

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6220
SELECT - 32 + + - 75 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6220
SELECT - 32 + + - 75 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 34 * + - 7 - - + 38
----
-200

query I rowsort
SELECT + 55 + + - 89
----
-34

query I rowsort
SELECT ALL ( - 20 ) * - + 18 + 24 AS col1
----
384

query I rowsort
SELECT + 26 * - 41
----
-1066

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6225
SELECT ALL CAST( NULL AS SIGNED ) * - + ( 84 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6225
SELECT ALL CAST ( NULL AS INTEGER ) * - + ( 84 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6226
SELECT DISTINCT + SUM( ALL + 66 ) - ( + - 6 )
----
72

skipif mysql # not compatible
query I rowsort label-6226
SELECT DISTINCT + SUM ( ALL + 66 ) - ( + - 6 )
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-6227
SELECT ALL ( 12 ) * + + MIN( 34 )
----
408

skipif mysql # not compatible
query I rowsort label-6227
SELECT ALL ( 12 ) * + + MIN ( 34 )
----
408

onlyif mysql # aggregate syntax: 
query I rowsort label-6228
SELECT DISTINCT COUNT( * ) * - - 35
----
35

skipif mysql # not compatible
query I rowsort label-6228
SELECT DISTINCT COUNT ( * ) * - - 35
----
35

query II rowsort
SELECT + 54 + + NULLIF ( + ( - + 87 ), - + 58 ) AS col0, 69 AS col2
----
-33
69

onlyif mysql # aggregate syntax: 
query I rowsort label-6230
SELECT + 83 - COUNT( * )
----
82

skipif mysql # not compatible
query I rowsort label-6230
SELECT + 83 - COUNT ( * )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-6231
SELECT - MAX( + - 58 ) col0
----
58

skipif mysql # not compatible
query I rowsort label-6231
SELECT - MAX ( + - 58 ) col0
----
58

query I rowsort
SELECT + 60 * - 93
----
-5580

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6233
SELECT + 65 * - SUM( + + 9 ) / 2 * - 20 + - + COUNT( * ) + - - 94 + + 75 / CASE + - 67 WHEN + - COALESCE ( - SUM( DISTINCT + 25 ), - MIN( - 2 ) + + 72 - + + 8 ) THEN NULL WHEN - 76 * + + 32 + + 3 THEN NULL WHEN + COALESCE ( 82, ( + ( + 72 ) ) * - + 19 + - CAST( 31 AS SIGNED ) ) * - + ( + 51 ) THEN + 77 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6233
SELECT + 65 * - SUM ( + + 9 ) / 2 * - 20 + - + COUNT ( * ) + - - 94 + + 75 / CASE + - 67 WHEN + - COALESCE ( - SUM ( DISTINCT + 25 ), - MIN ( - 2 ) + + 72 - + + 8 ) THEN NULL WHEN - 76 * + + 32 + + 3 THEN NULL WHEN + COALESCE ( 82, ( + ( + 72 ) ) * - + 19 + - CAST ( 31 AS INTEGER ) ) * - + ( + 51 ) THEN + 77 ELSE NULL END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6234
SELECT DISTINCT 71 DIV - 28 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-6234
SELECT DISTINCT 71 / - 28 AS col1
----
-2

query I rowsort
SELECT + 36 * - 97
----
-3492

query I rowsort
SELECT DISTINCT + 48 + - 35 AS col0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-6237
SELECT + - MAX( + + 36 ) - + COUNT( * )
----
-37

skipif mysql # not compatible
query I rowsort label-6237
SELECT + - MAX ( + + 36 ) - + COUNT ( * )
----
-37

query I rowsort
SELECT ALL + + 49 + 77 AS col0
----
126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6239
SELECT + + 9 * 36 AS col0, 51 * + ( + + 1 ) / + + CAST( - + CASE + + 94 WHEN + AVG ( - 69 ) * + 14 THEN - 93 WHEN + - 87 + - 40 THEN - COALESCE ( + 79, - CAST( 89 AS DECIMAL ) ) * - - COUNT( * ) ELSE NULL END AS SIGNED ) * + 42 - - 55 * - ( - 76 )
----
324
NULL

skipif mysql # not compatible
query II rowsort label-6239
SELECT + + 9 * 36 AS col0, 51 * + ( + + 1 ) / + + CAST ( - + CASE + + 94 WHEN + AVG ( - 69 ) * + 14 THEN - 93 WHEN + - 87 + - 40 THEN - COALESCE ( + 79, - CAST ( 89 AS REAL ) ) * - - COUNT ( * ) ELSE NULL END AS INTEGER ) * + 42 - - 55 * - ( - 76 )
----
324
NULL

query I rowsort
SELECT DISTINCT 40 + + + 19 - - 63 AS col1
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-6241
SELECT + - 23 + COUNT( * ) * - - ( - - ( SUM( 46 ) ) ) + - 19 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-6241
SELECT + - 23 + COUNT ( * ) * - - ( - - ( SUM ( 46 ) ) ) + - 19 AS col0
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6242
SELECT + CASE 73 WHEN - 22 * - 32 - - + CAST( NULL AS SIGNED ) + 34 THEN + 7 WHEN 78 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6242
SELECT + CASE 73 WHEN - 22 * - 32 - - + CAST ( NULL AS INTEGER ) + 34 THEN + 7 WHEN 78 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6243
SELECT ALL + COUNT( * ) DIV + 71 + + - 27 * - 85 + 45 + - 66 * - - MIN( - + ( - - COALESCE ( 27, - - 77 ) ) ) + + COUNT( * ) * 77 * + 91
----
11129

skipif mysql # not compatible
query I rowsort label-6243
SELECT ALL + COUNT ( * ) / + 71 + + - 27 * - 85 + 45 + - 66 * - - MIN ( - + ( - - COALESCE ( 27, - - 77 ) ) ) + + COUNT ( * ) * 77 * + 91
----
11129

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6244
SELECT + COUNT( * ) DIV COUNT( * ) - 12 AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-6244
SELECT + COUNT ( * ) / COUNT ( * ) - 12 AS col2
----
-11

query II rowsort
SELECT - ( - 72 ) AS col0, - 71
----
72
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-6246
SELECT - COALESCE ( - 62, - 21, - + 43 ) - 11 + - + MAX( DISTINCT 99 )
----
-48

skipif mysql # not compatible
query I rowsort label-6246
SELECT - COALESCE ( - 62, - 21, - + 43 ) - 11 + - + MAX ( DISTINCT 99 )
----
-48

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6247
SELECT + + CAST( + 56 AS SIGNED ) DIV + 77 + + 51 + + 72
----
123

skipif mysql # not compatible
query I rowsort label-6247
SELECT + + CAST ( + 56 AS INTEGER ) / + 77 + + 51 + + 72
----
123

onlyif mysql # DIV for integer division: 
query I rowsort label-6248
SELECT - 25 DIV + ( - ( 1 ) )
----
25

skipif mysql # not compatible
query I rowsort label-6248
SELECT - 25 / + ( - ( 1 ) )
----
25

query I rowsort
SELECT - - 82 * 80 * NULLIF ( + - 23, - + AVG ( ALL + NULLIF ( - 4, + 65 * - - 77 * - 31 - 10 * - + 86 + + 99 + - 68 ) ) ) AS col2
----
-150880

query I rowsort
SELECT - + ( + + 0 ) + + 22
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6251
SELECT ALL + 38 DIV - COALESCE ( - 82, - + 44 DIV + ( - CASE WHEN NOT COUNT( * ) IS NOT NULL THEN + + CAST( NULL AS SIGNED ) END ), 37, + 15 DIV - 6 + + 92 DIV + - 94 ) - + + COUNT( * ) + - + 62 AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-6251
SELECT ALL + 38 / - COALESCE ( - 82, - + 44 / + ( - CASE WHEN NOT COUNT ( * ) IS NOT NULL THEN + + CAST ( NULL AS INTEGER ) END ), 37, + 15 / - 6 + + 92 / + - 94 ) - + + COUNT ( * ) + - + 62 AS col2
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-6252
SELECT ALL - - 57 * - - ( + MIN( - 9 ) ) * - + 59 col1
----
30267

skipif mysql # not compatible
query I rowsort label-6252
SELECT ALL - - 57 * - - ( + MIN ( - 9 ) ) * - + 59 col1
----
30267

onlyif mysql # DIV for integer division: 
query I rowsort label-6253
SELECT DISTINCT - + 40 DIV - 85 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6253
SELECT DISTINCT - + 40 / - 85 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6254
SELECT DISTINCT + COUNT( ALL - + ( - 50 ) ) col1
----
1

skipif mysql # not compatible
query I rowsort label-6254
SELECT DISTINCT + COUNT ( ALL - + ( - 50 ) ) col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6255
SELECT ALL - COUNT( * ) * - 73 DIV - 71 AS col2, 88 AS col1
----
-1
88

skipif mysql # not compatible
query II rowsort label-6255
SELECT ALL - COUNT ( * ) * - 73 / - 71 AS col2, 88 AS col1
----
-1
88

onlyif mysql # DIV for integer division: 
query II rowsort label-6256
SELECT - 56 DIV + 56 * + 1 AS col0, 70 + - + 99 AS col0
----
-1
-29

skipif mysql # not compatible
query II rowsort label-6256
SELECT - 56 / + 56 * + 1 AS col0, 70 + - + 99 AS col0
----
-1
-29

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6257
SELECT ALL + MAX( 33 ) * + 50 + - COUNT( + - 79 ) * - CAST( NULL AS DECIMAL ) AS col0, - 79
----
NULL
-79

skipif mysql # not compatible
query II rowsort label-6257
SELECT ALL + MAX ( 33 ) * + 50 + - COUNT ( + - 79 ) * - CAST ( NULL AS REAL ) AS col0, - 79
----
NULL
-79

query I rowsort
SELECT DISTINCT - 12 * 49
----
-588

query I rowsort
SELECT - 9 * - 17
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-6260
SELECT DISTINCT + ( - ( MIN( + 64 ) ) ) * + - 64 col0
----
4096

skipif mysql # not compatible
query I rowsort label-6260
SELECT DISTINCT + ( - ( MIN ( + 64 ) ) ) * + - 64 col0
----
4096

onlyif mysql # aggregate syntax: 
query I rowsort label-6261
SELECT COALESCE ( - 40, + 36 + 24 + - 13 * - - MIN( DISTINCT - + 89 ) + - + 42 + - 74 )
----
-40

skipif mysql # not compatible
query I rowsort label-6261
SELECT COALESCE ( - 40, + 36 + 24 + - 13 * - - MIN ( DISTINCT - + 89 ) + - + 42 + - 74 )
----
-40

query I rowsort
SELECT ALL + 67 * - 45
----
-3015

onlyif mysql # aggregate syntax: 
query II rowsort label-6263
SELECT COUNT( * ), + 90 col1
----
1
90

skipif mysql # not compatible
query II rowsort label-6263
SELECT COUNT ( * ), + 90 col1
----
1
90

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6264
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2, - 66 - + CAST( 16 AS SIGNED ) col1
----
NULL
-82

skipif mysql # not compatible
query II rowsort label-6264
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2, - 66 - + CAST ( 16 AS INTEGER ) col1
----
NULL
-82

onlyif mysql # aggregate syntax: 
query II rowsort label-6265
SELECT COUNT( * ) AS col0, - 31
----
1
-31

skipif mysql # not compatible
query II rowsort label-6265
SELECT COUNT ( * ) AS col0, - 31
----
1
-31

query I rowsort
SELECT - 42 - - ( 4 ) - 6 * 80
----
-518

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6267
SELECT - COALESCE ( + + 28, + 80, + 88 + + COUNT( * ) - 51 - + 65 DIV MIN( DISTINCT 91 ) ) col1
----
-28

skipif mysql # not compatible
query I rowsort label-6267
SELECT - COALESCE ( + + 28, + 80, + 88 + + COUNT ( * ) - 51 - + 65 / MIN ( DISTINCT 91 ) ) col1
----
-28

query I rowsort
SELECT - 60 + + 76 AS col1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-6269
SELECT - MAX( 51 ) AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-6269
SELECT - MAX ( 51 ) AS col0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-6270
SELECT COUNT( ALL 75 )
----
1

skipif mysql # not compatible
query I rowsort label-6270
SELECT COUNT ( ALL 75 )
----
1

query I rowsort
SELECT ALL 30 * 82
----
2460

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6272
SELECT - 36 * - AVG ( - CAST( NULL AS SIGNED ) ) AS col1, - 32 * 92 * + ( + 19 ) AS col1
----
NULL
-55936

skipif mysql # not compatible
query II rowsort label-6272
SELECT - 36 * - AVG ( - CAST ( NULL AS INTEGER ) ) AS col1, - 32 * 92 * + ( + 19 ) AS col1
----
NULL
-55936

query I rowsort
SELECT ALL 24 + - - NULLIF ( + 94, - - COALESCE ( + - 35, - 53 ) * 18 ) AS col2
----
118

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6274
SELECT + COUNT( * ) + + 57 DIV + 61 + NULLIF ( - 38, - 75 ) + - NULLIF ( + + 80, - 20 * + 23 )
----
-117

skipif mysql # not compatible
query I rowsort label-6274
SELECT + COUNT ( * ) + + 57 / + 61 + NULLIF ( - 38, - 75 ) + - NULLIF ( + + 80, - 20 * + 23 )
----
-117

query I rowsort
SELECT DISTINCT + + 81 + 19 AS col0
----
100

query I rowsort
SELECT ALL - 49 * - 55 + 96
----
2791

query II rowsort
SELECT + NULLIF ( + + 75, - 33 ) AS col1, - 10
----
75
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6278
SELECT ALL CAST( NULL AS SIGNED ) + + - 43
----
NULL

skipif mysql # not compatible
query I rowsort label-6278
SELECT ALL CAST ( NULL AS INTEGER ) + + - 43
----
NULL

query II rowsort
SELECT - - 85 AS col1, 15 AS col2
----
85
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6280
SELECT - COUNT( * ) DIV - COUNT( DISTINCT + + COALESCE ( - 47, + 15 DIV + + 39 * - + 39 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6280
SELECT - COUNT ( * ) / - COUNT ( DISTINCT + + COALESCE ( - 47, + 15 / + + 39 * - + 39 ) ) AS col1
----
1

query I rowsort
SELECT + 82 + - 80 AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6282
SELECT DISTINCT + MIN( DISTINCT - 87 )
----
-87

skipif mysql # not compatible
query I rowsort label-6282
SELECT DISTINCT + MIN ( DISTINCT - 87 )
----
-87

query I rowsort
SELECT + 26 * + 51 AS col0
----
1326

query II rowsort
SELECT + 95 + - + ( - 81 ) AS col0, ( - - 84 ) AS col0
----
176
84

query I rowsort
SELECT ALL - 92 + + 16
----
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-6286
SELECT ALL 70 DIV 16 + + 75 * - 90 AS col2
----
-6746

skipif mysql # not compatible
query I rowsort label-6286
SELECT ALL 70 / 16 + + 75 * - 90 AS col2
----
-6746

query I rowsort
SELECT DISTINCT + ( + 87 ) AS col0
----
87

onlyif mysql # aggregate syntax: 
query II rowsort label-6288
SELECT DISTINCT - 83 AS col1, + COUNT( - 24 )
----
-83
1

skipif mysql # not compatible
query II rowsort label-6288
SELECT DISTINCT - 83 AS col1, + COUNT ( - 24 )
----
-83
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6289
SELECT COUNT( * ) * - - 98 * - ( - COUNT( - 27 ) ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-6289
SELECT COUNT ( * ) * - - 98 * - ( - COUNT ( - 27 ) ) AS col1
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-6290
SELECT + CASE 72 WHEN - MAX( DISTINCT 68 ) + - 49 + 47 THEN NULL WHEN 93 THEN NULL ELSE - ( 23 ) END
----
-23

skipif mysql # not compatible
query I rowsort label-6290
SELECT + CASE 72 WHEN - MAX ( DISTINCT 68 ) + - 49 + 47 THEN NULL WHEN 93 THEN NULL ELSE - ( 23 ) END
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-6291
SELECT ALL - NULLIF ( + ( - MIN( DISTINCT 59 ) ), + 87 )
----
59

skipif mysql # not compatible
query I rowsort label-6291
SELECT ALL - NULLIF ( + ( - MIN ( DISTINCT 59 ) ), + 87 )
----
59

query III rowsort
SELECT ALL - - 15 AS col2, 88 + - 75 * + 3 * + 90 * 74 AS col2, - 22 * + + 47
----
15
-1498412
-1034

query I rowsort
SELECT ALL + 93 * + 44 AS col0
----
4092

onlyif mysql # aggregate syntax: 
query II rowsort label-6294
SELECT ALL COUNT( + + 86 ) * - - 96 AS col2, + 60 * + 44 - - 51
----
96
2691

skipif mysql # not compatible
query II rowsort label-6294
SELECT ALL COUNT ( + + 86 ) * - - 96 AS col2, + 60 * + 44 - - 51
----
96
2691

query II rowsort
SELECT - CASE - 0 WHEN + 22 * + 23 * 65 + 64 THEN NULL WHEN + 8 * + 64 THEN - - 6 ELSE + ( - 53 ) + 66 END * + - 50, - 95 * - 39 AS col1
----
650
3705

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6296
SELECT + - 6 DIV + 40 + - COUNT( * ) + - 86 * + COUNT( * ) DIV - 88 + + COUNT( * ) - 70
----
-70

skipif mysql # not compatible
query I rowsort label-6296
SELECT + - 6 / + 40 + - COUNT ( * ) + - 86 * + COUNT ( * ) / - 88 + + COUNT ( * ) - 70
----
-70

query I rowsort
SELECT 11 * + 42 AS col1
----
462

query I rowsort
SELECT DISTINCT 73 * - + 99 * + 61 AS col0
----
-440847

query I rowsort
SELECT 23 * + + ( 17 )
----
391

onlyif mysql # aggregate syntax: 
query II rowsort label-6300
SELECT 71 * + 5 - - ( + COUNT( * ) ) AS col2, MAX( + 16 ) * 0 AS col2
----
356
0

skipif mysql # not compatible
query II rowsort label-6300
SELECT 71 * + 5 - - ( + COUNT ( * ) ) AS col2, MAX ( + 16 ) * 0 AS col2
----
356
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6301
SELECT ALL - SUM( DISTINCT - 31 ), COUNT( ALL 55 ) AS col2
----
31
1

skipif mysql # not compatible
query II rowsort label-6301
SELECT ALL - SUM ( DISTINCT - 31 ), COUNT ( ALL 55 ) AS col2
----
31
1

query I rowsort
SELECT 39 - - 90 col1
----
129

onlyif mysql # aggregate syntax: 
query II rowsort label-6303
SELECT ALL - ( - COUNT( * ) ), - 17 + - 39 AS col2
----
1
-56

skipif mysql # not compatible
query II rowsort label-6303
SELECT ALL - ( - COUNT ( * ) ), - 17 + - 39 AS col2
----
1
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6304
SELECT 49 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6304
SELECT 49 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6305
SELECT 55 DIV - + 11 AS col0, 15
----
-5
15

skipif mysql # not compatible
query II rowsort label-6305
SELECT 55 / - + 11 AS col0, 15
----
-5
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6306
SELECT - 28 * + COUNT( * ) * + 23 + - + CAST( NULL AS SIGNED ) * - 58
----
NULL

skipif mysql # not compatible
query I rowsort label-6306
SELECT - 28 * + COUNT ( * ) * + 23 + - + CAST ( NULL AS INTEGER ) * - 58
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6307
SELECT ALL - ( ( COUNT( * ) ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6307
SELECT ALL - ( ( COUNT ( * ) ) ) AS col2
----
-1

query I rowsort
SELECT 39 + + 6
----
45

query I rowsort
SELECT 9 * - 36 - 23 AS col1
----
-347

query I rowsort
SELECT ALL - 72 * - - ( + 49 )
----
-3528

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6311
SELECT DISTINCT + 18 + CASE 62 WHEN + - 84 * - MIN( 75 ) + - 5 THEN - COALESCE ( + + CASE + - CASE COUNT( * ) WHEN - MIN( ALL - - 12 ) THEN - 9 * + 16 - + 27 ELSE NULL END WHEN - 56 * + 53 + 93 * 46 THEN + COUNT( * ) * - 52 WHEN + 0 THEN NULL END, CAST( NULL AS SIGNED ) + 16, - 10 ) WHEN + COUNT( * ) THEN NULL ELSE 90 + 70 + NULLIF ( - COUNT( * ), - 29 ) + + + 68 + ( - 95 ) END
----
150

skipif mysql # not compatible
query I rowsort label-6311
SELECT DISTINCT + 18 + CASE 62 WHEN + - 84 * - MIN ( 75 ) + - 5 THEN - COALESCE ( + + CASE + - CASE COUNT ( * ) WHEN - MIN ( ALL - - 12 ) THEN - 9 * + 16 - + 27 ELSE NULL END WHEN - 56 * + 53 + 93 * 46 THEN + COUNT ( * ) * - 52 WHEN + 0 THEN NULL END, CAST ( NULL AS INTEGER ) + 16, - 10 ) WHEN + COUNT ( * ) THEN NULL ELSE 90 + 70 + NULLIF ( - COUNT ( * ), - 29 ) + + + 68 + ( - 95 ) END
----
150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6312
SELECT ALL + 45 + + CAST( NULL AS SIGNED ) - + 89 + + 38
----
NULL

skipif mysql # not compatible
query I rowsort label-6312
SELECT ALL + 45 + + CAST ( NULL AS INTEGER ) - + 89 + + 38
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6313
SELECT DISTINCT - 18 + + 88 * + + COUNT( * ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-6313
SELECT DISTINCT - 18 + + 88 * + + COUNT ( * ) AS col2
----
70

query I rowsort
SELECT ALL - 87 + - + CASE 86 WHEN - 50 * - 33 THEN 46 + 65 END - - 21
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6315
SELECT ALL + + 3 + NULLIF ( + COUNT( * ), 34 + - 95 * - + COUNT( * ) )
----
4

skipif mysql # not compatible
query I rowsort label-6315
SELECT ALL + + 3 + NULLIF ( + COUNT ( * ), 34 + - 95 * - + COUNT ( * ) )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6316
SELECT - NULLIF ( - COUNT( * ), - 48 + - 56 * + - 13 )
----
1

skipif mysql # not compatible
query I rowsort label-6316
SELECT - NULLIF ( - COUNT ( * ), - 48 + - 56 * + - 13 )
----
1

query I rowsort
SELECT ALL - 46 - - 29 + + 26 + + 12 * 15
----
189

query I rowsort
SELECT CASE - 33 WHEN 50 THEN - + 78 ELSE 84 * 8 END * + 24 * - ( + 83 ) - + - 37
----
-1338587

query I rowsort
SELECT 10 - + 4
----
6

query I rowsort
SELECT DISTINCT 85 * + 3 - + 88 AS col0
----
167

onlyif mysql # aggregate syntax: 
query I rowsort label-6321
SELECT DISTINCT MIN( DISTINCT - 53 )
----
-53

skipif mysql # not compatible
query I rowsort label-6321
SELECT DISTINCT MIN ( DISTINCT - 53 )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-6322
SELECT ALL - 11 * - COUNT( ALL + 14 )
----
11

skipif mysql # not compatible
query I rowsort label-6322
SELECT ALL - 11 * - COUNT ( ALL + 14 )
----
11

query I rowsort
SELECT 90 + + 46 + + 97
----
233

query I rowsort
SELECT + 2 * + 14 + - - 71 * + 2 + - - 51
----
221

onlyif mysql # DIV for integer division: 
query I rowsort label-6325
SELECT - - 45 DIV + + 1 + - 10 col2
----
35

skipif mysql # not compatible
query I rowsort label-6325
SELECT - - 45 / + + 1 + - 10 col2
----
35

query I rowsort
SELECT 26 - 18 - 20 AS col0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-6327
SELECT ALL - COUNT( ALL 66 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6327
SELECT ALL - COUNT ( ALL 66 ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6328
SELECT COALESCE ( - ( + - 90 ), + CAST( - 32 AS SIGNED ) ) + - 28 + + 45 AS col2
----
107

skipif mysql # not compatible
query I rowsort label-6328
SELECT COALESCE ( - ( + - 90 ), + CAST ( - 32 AS INTEGER ) ) + - 28 + + 45 AS col2
----
107

query I rowsort
SELECT DISTINCT - ( - 63 ) col0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-6330
SELECT DISTINCT COALESCE ( - COALESCE ( + + ( + + 0 ), - 93 * ( - 7 ), 83 ), + ( - COUNT( * ) ) ) + - COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6330
SELECT DISTINCT COALESCE ( - COALESCE ( + + ( + + 0 ), - 93 * ( - 7 ), 83 ), + ( - COUNT ( * ) ) ) + - COUNT ( * ) AS col0
----
-1

query I rowsort
SELECT ALL - 3 * 19
----
-57

query I rowsort
SELECT ALL ( - - 71 ) + + 89 + 61 AS col0
----
221

onlyif mysql # aggregate syntax: 
query I rowsort label-6333
SELECT DISTINCT 20 * + CASE - 62 WHEN COUNT( * ) THEN - COUNT( * ) END * - ( NULLIF ( + 30, + 30 * 46 * + 77 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6333
SELECT DISTINCT 20 * + CASE - 62 WHEN COUNT ( * ) THEN - COUNT ( * ) END * - ( NULLIF ( + 30, + 30 * 46 * + 77 ) )
----
NULL

query I rowsort
SELECT ALL 55 * 27 col1
----
1485

query I rowsort
SELECT 36 * + - 82 * + 5 col1
----
-14760

query I rowsort
SELECT 74 + + - 33
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6337
SELECT + MIN( - 9 ) AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-6337
SELECT + MIN ( - 9 ) AS col2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6338
SELECT DISTINCT + 31 + - - MIN( DISTINCT - 72 ) AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-6338
SELECT DISTINCT + 31 + - - MIN ( DISTINCT - 72 ) AS col1
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-6339
SELECT ALL COUNT( * ) * - 87 * 30
----
-2610

skipif mysql # not compatible
query I rowsort label-6339
SELECT ALL COUNT ( * ) * - 87 * 30
----
-2610

onlyif mysql # DIV for integer division: 
query I rowsort label-6340
SELECT ALL + 13 + - 90 + + 4 DIV COALESCE ( + - 78, 97 + - 85 ) AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-6340
SELECT ALL + 13 + - 90 + + 4 / COALESCE ( + - 78, 97 + - 85 ) AS col0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-6341
SELECT 71 + NULLIF ( - 59, + COUNT( * ) )
----
12

skipif mysql # not compatible
query I rowsort label-6341
SELECT 71 + NULLIF ( - 59, + COUNT ( * ) )
----
12

query II rowsort
SELECT 10 col0, + 28 * - 24
----
10
-672

query I rowsort
SELECT ALL 47 + - 45
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-6344
SELECT DISTINCT + 60 DIV 7
----
8

skipif mysql # not compatible
query I rowsort label-6344
SELECT DISTINCT + 60 / 7
----
8

query I rowsort
SELECT ALL + 42 * - 67 col0
----
-2814

query I rowsort
SELECT ( + 20 ) + 47 * NULLIF ( 30 * - 87, 10 + + 34 * - 85 )
----
-122650

onlyif mysql # aggregate syntax: 
query I rowsort label-6347
SELECT 6 + COUNT( * ) * + NULLIF ( - 81, 39 + 68 ) AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-6347
SELECT 6 + COUNT ( * ) * + NULLIF ( - 81, 39 + 68 ) AS col0
----
-75

query I rowsort
SELECT 9 * 42
----
378

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6349
SELECT ALL - 69 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6349
SELECT ALL - 69 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6350
SELECT ALL MIN( ALL + 4 )
----
4

skipif mysql # not compatible
query I rowsort label-6350
SELECT ALL MIN ( ALL + 4 )
----
4

query I rowsort
SELECT - ( 6 ) * + 97 AS col0
----
-582

query I rowsort
SELECT ALL 5 * 92 AS col1
----
460

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6353
SELECT - CAST( NULL AS SIGNED ) + 98 * 54
----
NULL

skipif mysql # not compatible
query I rowsort label-6353
SELECT - CAST ( NULL AS INTEGER ) + 98 * 54
----
NULL

query I rowsort
SELECT - 76 * 94
----
-7144

query I rowsort
SELECT - 93 + - 55
----
-148

onlyif mysql # aggregate syntax: 
query I rowsort label-6356
SELECT ALL - SUM( 60 ) * 4
----
-240

skipif mysql # not compatible
query I rowsort label-6356
SELECT ALL - SUM ( 60 ) * 4
----
-240

onlyif mysql # aggregate syntax: 
query I rowsort label-6357
SELECT - 69 + COUNT( * ) AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-6357
SELECT - 69 + COUNT ( * ) AS col0
----
-68

query I rowsort
SELECT - 45 * + 71 AS col1
----
-3195

onlyif mysql # aggregate syntax: 
query I rowsort label-6359
SELECT - 63 + + 8 / CASE + 48 WHEN - COUNT( * ) THEN 55 + - 48 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6359
SELECT - 63 + + 8 / CASE + 48 WHEN - COUNT ( * ) THEN 55 + - 48 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6360
SELECT ALL CASE + 81 WHEN + 66 * 48 THEN NULL WHEN 40 - 50 THEN NULL WHEN + 67 THEN - COUNT( * ) * + 69 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6360
SELECT ALL CASE + 81 WHEN + 66 * 48 THEN NULL WHEN 40 - 50 THEN NULL WHEN + 67 THEN - COUNT ( * ) * + 69 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6361
SELECT DISTINCT COALESCE ( - 65, ( 62 ), 76 - COALESCE ( COUNT( * ), 58, CASE 32 WHEN 53 * + 82 THEN - 33 WHEN + 88 + + NULLIF ( 66, + 16 * - 19 - 43 ) THEN 95 * - COUNT( * ) ELSE NULL END ) * - 90, - 55 * 53 ) AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-6361
SELECT DISTINCT COALESCE ( - 65, ( 62 ), 76 - COALESCE ( COUNT ( * ), 58, CASE 32 WHEN 53 * + 82 THEN - 33 WHEN + 88 + + NULLIF ( 66, + 16 * - 19 - 43 ) THEN 95 * - COUNT ( * ) ELSE NULL END ) * - 90, - 55 * 53 ) AS col2
----
-65

query I rowsort
SELECT - 9 * + 37
----
-333

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6363
SELECT ALL + 7 * COUNT( DISTINCT 31 / CAST( NULL AS DECIMAL ) )
----
0

skipif mysql # not compatible
query I rowsort label-6363
SELECT ALL + 7 * COUNT ( DISTINCT 31 / CAST ( NULL AS REAL ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6364
SELECT DISTINCT + MAX( + 31 ) AS col1
----
31

skipif mysql # not compatible
query I rowsort label-6364
SELECT DISTINCT + MAX ( + 31 ) AS col1
----
31

query I rowsort
SELECT ALL + 83 * - 19 + 87 AS col1
----
-1490

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6366
SELECT DISTINCT ( + 34 ) * + CASE + NULLIF ( AVG ( ALL + 65 ), + 59 - 27 ) DIV + CASE 69 WHEN COALESCE ( AVG ( DISTINCT - 31 ), 24 ) THEN NULLIF ( - 20, + COUNT( * ) + 89 * + 54 ) ELSE NULL END + + 56 WHEN + NULLIF ( - COUNT( DISTINCT 22 ), 66 * - 28 ) DIV - 32 THEN NULL WHEN 97 THEN NULL ELSE 96 DIV + COUNT( * ) END AS col1
----
3264

skipif mysql # not compatible
query I rowsort label-6366
SELECT DISTINCT ( + 34 ) * + CASE + NULLIF ( AVG ( ALL + 65 ), + 59 - 27 ) / + CASE 69 WHEN COALESCE ( AVG ( DISTINCT - 31 ), 24 ) THEN NULLIF ( - 20, + COUNT ( * ) + 89 * + 54 ) ELSE NULL END + + 56 WHEN + NULLIF ( - COUNT ( DISTINCT 22 ), 66 * - 28 ) / - 32 THEN NULL WHEN 97 THEN NULL ELSE 96 / + COUNT ( * ) END AS col1
----
3264

query I rowsort
SELECT + 79 * 20 AS col2
----
1580

onlyif mysql # aggregate syntax: 
query I rowsort label-6368
SELECT ALL + 67 * - COUNT( * ) + NULLIF ( 85, - 49 + 30 ) AS col2
----
18

skipif mysql # not compatible
query I rowsort label-6368
SELECT ALL + 67 * - COUNT ( * ) + NULLIF ( 85, - 49 + 30 ) AS col2
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-6369
SELECT CASE + 92 WHEN - 24 * 43 + + 12 THEN 60 ELSE 13 + 73 DIV 24 END AS col0
----
16

skipif mysql # not compatible
query I rowsort label-6369
SELECT CASE + 92 WHEN - 24 * 43 + + 12 THEN 60 ELSE 13 + 73 / 24 END AS col0
----
16

query I rowsort
SELECT 8 * - 58 - 4 * 4
----
-480

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6371
SELECT - 83 DIV + SUM( ALL 3 ) - 91
----
-118

skipif mysql # not compatible
query I rowsort label-6371
SELECT - 83 / + SUM ( ALL 3 ) - 91
----
-118

query I rowsort
SELECT ALL 76 * 14 + - 90 col0
----
974

query I rowsort
SELECT NULLIF ( 8, - 90 )
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6374
SELECT + COALESCE ( 3, CASE - 90 WHEN + 13 + CAST( + COUNT( * ) AS SIGNED ) THEN + 56 END ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-6374
SELECT + COALESCE ( 3, CASE - 90 WHEN + 13 + CAST ( + COUNT ( * ) AS INTEGER ) THEN + 56 END ) AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6375
SELECT ALL 20 * 23 + - COUNT( * )
----
459

skipif mysql # not compatible
query I rowsort label-6375
SELECT ALL 20 * 23 + - COUNT ( * )
----
459

query I rowsort
SELECT + NULLIF ( + 63, 56 ) * 98
----
6174

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6377
SELECT ALL + CAST( 24 AS SIGNED ) col2
----
24

skipif mysql # not compatible
query I rowsort label-6377
SELECT ALL + CAST ( 24 AS INTEGER ) col2
----
24

query I rowsort
SELECT ( 42 ) * 83 - - 20 AS col1
----
3506

onlyif mysql # aggregate syntax: 
query I rowsort label-6379
SELECT DISTINCT 88 * COUNT( * ) + - 78 * + 88
----
-6776

skipif mysql # not compatible
query I rowsort label-6379
SELECT DISTINCT 88 * COUNT ( * ) + - 78 * + 88
----
-6776

query I rowsort
SELECT COALESCE ( 3, - ( - 33 ) - + CASE 6 + - 18 * 91 WHEN ( 45 ) THEN + 58 ELSE - 89 END )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6381
SELECT MIN( ALL - 26 )
----
-26

skipif mysql # not compatible
query I rowsort label-6381
SELECT MIN ( ALL - 26 )
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6382
SELECT + 54 * ( COALESCE ( - MIN( DISTINCT NULLIF ( 97, 41 ) ), 15 * CAST( 65 * CASE 93 WHEN AVG ( + 97 ) THEN COUNT( * ) - 15 WHEN 62 THEN - 63 + - ( - 37 ) ELSE MAX( 72 ) + - 57 END AS SIGNED ) + 43, - 92 * - 79 ) )
----
-5238

skipif mysql # not compatible
query I rowsort label-6382
SELECT + 54 * ( COALESCE ( - MIN ( DISTINCT NULLIF ( 97, 41 ) ), 15 * CAST ( 65 * CASE 93 WHEN AVG ( + 97 ) THEN COUNT ( * ) - 15 WHEN 62 THEN - 63 + - ( - 37 ) ELSE MAX ( 72 ) + - 57 END AS INTEGER ) + 43, - 92 * - 79 ) )
----
-5238

onlyif mysql # aggregate syntax: 
query I rowsort label-6383
SELECT MIN( DISTINCT - 28 )
----
-28

skipif mysql # not compatible
query I rowsort label-6383
SELECT MIN ( DISTINCT - 28 )
----
-28

query I rowsort
SELECT ALL 65 * - 95 AS col0
----
-6175

onlyif mysql # aggregate syntax: 
query I rowsort label-6385
SELECT - + 73 * SUM( + 86 + + 42 * 87 ) - + 48 * 77
----
-276716

skipif mysql # not compatible
query I rowsort label-6385
SELECT - + 73 * SUM ( + 86 + + 42 * 87 ) - + 48 * 77
----
-276716

query I rowsort
SELECT + 92 * 92 AS col2
----
8464

onlyif mysql # aggregate syntax: 
query I rowsort label-6387
SELECT ALL NULLIF ( 90, + ( COUNT( * ) ) * - 59 + - COALESCE ( 31, ( 30 ) ) ) - - NULLIF ( + 60, 71 )
----
150

skipif mysql # not compatible
query I rowsort label-6387
SELECT ALL NULLIF ( 90, + ( COUNT ( * ) ) * - 59 + - COALESCE ( 31, ( 30 ) ) ) - - NULLIF ( + 60, 71 )
----
150

query I rowsort
SELECT DISTINCT - ( 58 ) AS col1
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6389
SELECT DISTINCT CAST( 49 AS SIGNED ) * - 36
----
-1764

skipif mysql # not compatible
query I rowsort label-6389
SELECT DISTINCT CAST ( 49 AS INTEGER ) * - 36
----
-1764

query I rowsort
SELECT ALL - ( - 79 ) col2
----
79

query I rowsort
SELECT ALL + CASE ( 25 ) WHEN - 46 THEN 52 / 71 ELSE NULL END
----
NULL

query I rowsort
SELECT + 81 - - 15
----
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6393
SELECT + - COUNT( * ) DIV 21
----
0

skipif mysql # not compatible
query I rowsort label-6393
SELECT + - COUNT ( * ) / 21
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6394
SELECT - + NULLIF ( + 51, ( + 57 ) ) DIV - 47 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6394
SELECT - + NULLIF ( + 51, ( + 57 ) ) / - 47 AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6395
SELECT ALL + 94 DIV 56
----
1

skipif mysql # not compatible
query I rowsort label-6395
SELECT ALL + 94 / 56
----
1

query I rowsort
SELECT + ( 89 ) + - 48
----
41

query I rowsort
SELECT - - 25 * + ( 68 * - 28 ) AS col1
----
-47600

query I rowsort
SELECT + 8 + 16
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6399
SELECT - - CASE - 89 WHEN - CAST( - MAX( 50 ) AS SIGNED ) THEN - 25 - 66 WHEN - 31 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6399
SELECT - - CASE - 89 WHEN - CAST ( - MAX ( 50 ) AS INTEGER ) THEN - 25 - 66 WHEN - 31 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6400
SELECT ALL + COUNT( * ) + SUM( + ( 35 ) ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-6400
SELECT ALL + COUNT ( * ) + SUM ( + ( 35 ) ) AS col1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-6401
SELECT - - COUNT( * ) - MAX( + ( - 90 ) ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-6401
SELECT - - COUNT ( * ) - MAX ( + ( - 90 ) ) AS col1
----
91

query I rowsort
SELECT DISTINCT ( ( - 35 ) )
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-6403
SELECT DISTINCT COUNT( * ) + 11 AS col1
----
12

skipif mysql # not compatible
query I rowsort label-6403
SELECT DISTINCT COUNT ( * ) + 11 AS col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-6404
SELECT - - MIN( DISTINCT + 52 )
----
52

skipif mysql # not compatible
query I rowsort label-6404
SELECT - - MIN ( DISTINCT + 52 )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-6405
SELECT ALL - MIN( 22 ) + + 82 AS col2
----
60

skipif mysql # not compatible
query I rowsort label-6405
SELECT ALL - MIN ( 22 ) + + 82 AS col2
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6406
SELECT ALL - ( - - COUNT( * ) ) + 92 DIV - 10 AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-6406
SELECT ALL - ( - - COUNT ( * ) ) + 92 / - 10 AS col1
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-6407
SELECT ALL + COUNT( * ) * - - 31
----
31

skipif mysql # not compatible
query I rowsort label-6407
SELECT ALL + COUNT ( * ) * - - 31
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6408
SELECT - MIN( DISTINCT 89 ) * 57 col1
----
-5073

skipif mysql # not compatible
query I rowsort label-6408
SELECT - MIN ( DISTINCT 89 ) * 57 col1
----
-5073

query I rowsort
SELECT + 67 + - + 66 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6410
SELECT - MIN( ALL 69 ) AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-6410
SELECT - MIN ( ALL 69 ) AS col1
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-6411
SELECT DISTINCT + CASE 87 WHEN - 8 THEN NULL WHEN MAX( ALL 90 ) - + 73 THEN 17 ELSE 6 + 37 END
----
43

skipif mysql # not compatible
query I rowsort label-6411
SELECT DISTINCT + CASE 87 WHEN - 8 THEN NULL WHEN MAX ( ALL 90 ) - + 73 THEN 17 ELSE 6 + 37 END
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-6412
SELECT ALL - NULLIF ( CASE - 83 WHEN - 79 + COUNT( * ) * 96 THEN 92 * + 81 WHEN - COUNT( * ) THEN - 74 * - 62 END, 11 ) / 32 + - 92 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6412
SELECT ALL - NULLIF ( CASE - 83 WHEN - 79 + COUNT ( * ) * 96 THEN 92 * + 81 WHEN - COUNT ( * ) THEN - 74 * - 62 END, 11 ) / 32 + - 92 AS col2
----
NULL

query I rowsort
SELECT - 50 - + 86
----
-136

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6414
SELECT - 16 DIV - + COUNT( * ) + - 53 AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-6414
SELECT - 16 / - + COUNT ( * ) + - 53 AS col2
----
-37

query I rowsort
SELECT + 29 * + + 76 - 25
----
2179

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6416
SELECT DISTINCT - 14 DIV - + 12 - MAX( ALL 50 )
----
-49

skipif mysql # not compatible
query I rowsort label-6416
SELECT DISTINCT - 14 / - + 12 - MAX ( ALL 50 )
----
-49

query I rowsort
SELECT DISTINCT + 59 * + ( 73 )
----
4307

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6418
SELECT + MAX( 48 ) DIV + MIN( ALL - 53 ) + + 77 col1
----
77

skipif mysql # not compatible
query I rowsort label-6418
SELECT + MAX ( 48 ) / + MIN ( ALL - 53 ) + + 77 col1
----
77

query I rowsort
SELECT - CASE - 80 WHEN - ( 68 ) THEN NULL ELSE 92 * 49 END * 28
----
-126224

query I rowsort
SELECT ALL + 41 * + 29 AS col2
----
1189

query I rowsort
SELECT ALL + NULLIF ( 79, 24 ) AS col1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-6422
SELECT - COUNT( * ) * - + 54
----
54

skipif mysql # not compatible
query I rowsort label-6422
SELECT - COUNT ( * ) * - + 54
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-6423
SELECT - COUNT( * ) + 76 + 78 * - 94
----
-7257

skipif mysql # not compatible
query I rowsort label-6423
SELECT - COUNT ( * ) + 76 + 78 * - 94
----
-7257

query I rowsort
SELECT 9 + - 69 AS col0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-6425
SELECT DISTINCT + + COUNT( * ) * + - 67 AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-6425
SELECT DISTINCT + + COUNT ( * ) * + - 67 AS col2
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-6426
SELECT ALL - MAX( DISTINCT - 78 )
----
78

skipif mysql # not compatible
query I rowsort label-6426
SELECT ALL - MAX ( DISTINCT - 78 )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-6427
SELECT 62 + - + 3 + + COUNT( * ) * + 12
----
71

skipif mysql # not compatible
query I rowsort label-6427
SELECT 62 + - + 3 + + COUNT ( * ) * + 12
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6428
SELECT CASE ( ( + SUM( CAST( + 28 AS SIGNED ) ) ) ) WHEN - 32 THEN NULL WHEN + 21 THEN NULL ELSE 73 END * ( 64 ) col2
----
4672

skipif mysql # not compatible
query I rowsort label-6428
SELECT CASE ( ( + SUM ( CAST ( + 28 AS INTEGER ) ) ) ) WHEN - 32 THEN NULL WHEN + 21 THEN NULL ELSE 73 END * ( 64 ) col2
----
4672

onlyif mysql # aggregate syntax: 
query I rowsort label-6429
SELECT - 26 * + 4 * COUNT( * )
----
-104

skipif mysql # not compatible
query I rowsort label-6429
SELECT - 26 * + 4 * COUNT ( * )
----
-104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6430
SELECT 42 + + + ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6430
SELECT 42 + + + ( - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT - 32 * + 16
----
-512

onlyif mysql # aggregate syntax: 
query I rowsort label-6432
SELECT DISTINCT + COALESCE ( + 66, + ( - MIN( - 99 ) ) ) * - 1 AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-6432
SELECT DISTINCT + COALESCE ( + 66, + ( - MIN ( - 99 ) ) ) * - 1 AS col2
----
-66

query I rowsort
SELECT ALL - ( - 4 ) + 0 * - ( 7 )
----
4

query I rowsort
SELECT 11 + + + 59
----
70

query I rowsort
SELECT DISTINCT 98 + + 87 * 93 AS col2
----
8189

onlyif mysql # aggregate syntax: 
query I rowsort label-6436
SELECT ALL - - 16 + - + 26 + MIN( ALL + 56 + - 73 ) * - COUNT( * ) col1
----
7

skipif mysql # not compatible
query I rowsort label-6436
SELECT ALL - - 16 + - + 26 + MIN ( ALL + 56 + - 73 ) * - COUNT ( * ) col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-6437
SELECT - COUNT( * ) + - COALESCE ( 35, 22 ) col1
----
-36

skipif mysql # not compatible
query I rowsort label-6437
SELECT - COUNT ( * ) + - COALESCE ( 35, 22 ) col1
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6438
SELECT ALL CAST( + 45 AS SIGNED )
----
45

skipif mysql # not compatible
query I rowsort label-6438
SELECT ALL CAST ( + 45 AS INTEGER )
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-6439
SELECT 3 DIV - 71
----
0

skipif mysql # not compatible
query I rowsort label-6439
SELECT 3 / - 71
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6440
SELECT - 58 AS col0, CAST( NULL AS SIGNED )
----
-58
NULL

skipif mysql # not compatible
query II rowsort label-6440
SELECT - 58 AS col0, CAST ( NULL AS INTEGER )
----
-58
NULL

query II rowsort
SELECT ALL 59 AS col0, + 46 AS col1
----
59
46

query II rowsort
SELECT 75 AS col2, + 79 AS col2
----
75
79

query I rowsort
SELECT 65 + - 66 + 5
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6444
SELECT 74 + + - COUNT( * )
----
73

skipif mysql # not compatible
query I rowsort label-6444
SELECT 74 + + - COUNT ( * )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-6445
SELECT ALL - 45 + - + 99 + - + 59 * 12 * + COUNT( * ) AS col2
----
-852

skipif mysql # not compatible
query I rowsort label-6445
SELECT ALL - 45 + - + 99 + - + 59 * 12 * + COUNT ( * ) AS col2
----
-852

query II rowsort
SELECT ALL 68, 92 + 90 col2
----
68
182

query I rowsort
SELECT 58 * + 38 * 17 AS col2
----
37468

query II rowsort
SELECT ALL - 29 AS col1, 48
----
-29
48

onlyif mysql # DIV for integer division: 
query I rowsort label-6449
SELECT 64 DIV + 87 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6449
SELECT 64 / + 87 AS col0
----
0

query I rowsort
SELECT ALL 96 * - 43 AS col1
----
-4128

query I rowsort
SELECT DISTINCT - 0 - 51
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-6452
SELECT ( - 7 ) * 17 + - CASE + 26 WHEN COUNT( * ) THEN + 55 WHEN + 86 THEN 57 / 81 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6452
SELECT ( - 7 ) * 17 + - CASE + 26 WHEN COUNT ( * ) THEN + 55 WHEN + 86 THEN 57 / 81 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6453
SELECT + 34, MAX( - 23 ) * 8 AS col2
----
34
-184

skipif mysql # not compatible
query II rowsort label-6453
SELECT + 34, MAX ( - 23 ) * 8 AS col2
----
34
-184

query II rowsort
SELECT 20, + CASE - 26 WHEN + 27 + 71 THEN + 49 END - + 56 AS col1
----
20
NULL

query I rowsort
SELECT ALL - ( + - 36 )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-6456
SELECT 70 * 24 * COUNT( * )
----
1680

skipif mysql # not compatible
query I rowsort label-6456
SELECT 70 * 24 * COUNT ( * )
----
1680

query I rowsort
SELECT 73 + - 31 - + 50
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-6458
SELECT DISTINCT - 47 AS col1, + CASE - COUNT( ALL - 12 ) WHEN + ( + AVG ( - 96 ) ) THEN 19 * 46 END + + 89 AS col2
----
-47
NULL

skipif mysql # not compatible
query II rowsort label-6458
SELECT DISTINCT - 47 AS col1, + CASE - COUNT ( ALL - 12 ) WHEN + ( + AVG ( - 96 ) ) THEN 19 * 46 END + + 89 AS col2
----
-47
NULL

query I rowsort
SELECT 83 * + 71
----
5893

query I rowsort
SELECT ALL - 88 * 89 * + 14 AS col2
----
-109648

onlyif mysql # aggregate syntax: 
query II rowsort label-6461
SELECT ALL - + 18, COUNT( * ) + - 77 + 47 col1
----
-18
-29

skipif mysql # not compatible
query II rowsort label-6461
SELECT ALL - + 18, COUNT ( * ) + - 77 + 47 col1
----
-18
-29

query II rowsort
SELECT ALL - - 57, + NULLIF ( + + 80, 78 ) AS col0
----
57
80

onlyif mysql # aggregate syntax: 
query I rowsort label-6463
SELECT ALL + 55 * + - 77 * + 1 + + COUNT( * ) col1
----
-4234

skipif mysql # not compatible
query I rowsort label-6463
SELECT ALL + 55 * + - 77 * + 1 + + COUNT ( * ) col1
----
-4234

onlyif mysql # DIV for integer division: 
query I rowsort label-6464
SELECT - 41 DIV 23 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6464
SELECT - 41 / 23 AS col0
----
-1

query I rowsort
SELECT 77 * 20
----
1540

query I rowsort
SELECT ALL - 27 + - 27
----
-54

query I rowsort
SELECT + - ( + ( 89 ) )
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6468
SELECT - 68 + - - 8 / CAST( NULL AS SIGNED ) + 64 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6468
SELECT - 68 + - - 8 / CAST ( NULL AS INTEGER ) + 64 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6469
SELECT NULLIF ( + 76, 81 / - ( COUNT( * ) ) ) + SUM( DISTINCT + CASE 41 WHEN - 23 THEN - 30 WHEN + 2 THEN 62 + - 6 WHEN + 91 THEN + ( + 98 ) * ( 95 ) END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6469
SELECT NULLIF ( + 76, 81 / - ( COUNT ( * ) ) ) + SUM ( DISTINCT + CASE 41 WHEN - 23 THEN - 30 WHEN + 2 THEN 62 + - 6 WHEN + 91 THEN + ( + 98 ) * ( 95 ) END ) AS col0
----
NULL

query I rowsort
SELECT ALL + 92 + - 40 * 68 col2
----
-2628

onlyif mysql # aggregate syntax: 
query I rowsort label-6471
SELECT ALL - COUNT( * ) + - SUM( - + 17 )
----
16

skipif mysql # not compatible
query I rowsort label-6471
SELECT ALL - COUNT ( * ) + - SUM ( - + 17 )
----
16

query I rowsort
SELECT ALL 43 + + + 23 AS col1
----
66

query I rowsort
SELECT ALL + 53 + - 59 AS col2
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6474
SELECT - + CAST( + - 75 AS SIGNED )
----
75

skipif mysql # not compatible
query I rowsort label-6474
SELECT - + CAST ( + - 75 AS INTEGER )
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6475
SELECT 26 * - CAST( + - 90 AS SIGNED ) AS col0
----
2340

skipif mysql # not compatible
query I rowsort label-6475
SELECT 26 * - CAST ( + - 90 AS INTEGER ) AS col0
----
2340

query II rowsort
SELECT 21 AS col1, - 16 + 13
----
21
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6477
SELECT COALESCE ( - + CASE - 67 WHEN CASE 37 WHEN + COALESCE ( 16, 89 * COUNT( * ), ( - 24 ) + - CAST( NULL AS SIGNED ) * + 29 ) THEN 75 + 60 WHEN 30 + 87 * 1 THEN NULL ELSE - 78 END * + COUNT( + 22 ) + - ( 19 ) * 91 THEN NULL WHEN 65 + - 35 * 57 THEN 3 * 27 ELSE NULL END, MIN( - 10 ) DIV 1 )
----
-10

skipif mysql # not compatible
query I rowsort label-6477
SELECT COALESCE ( - + CASE - 67 WHEN CASE 37 WHEN + COALESCE ( 16, 89 * COUNT ( * ), ( - 24 ) + - CAST ( NULL AS INTEGER ) * + 29 ) THEN 75 + 60 WHEN 30 + 87 * 1 THEN NULL ELSE - 78 END * + COUNT ( + 22 ) + - ( 19 ) * 91 THEN NULL WHEN 65 + - 35 * 57 THEN 3 * 27 ELSE NULL END, MIN ( - 10 ) / 1 )
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6478
SELECT ( - 7 ) + CASE WHEN + MIN( DISTINCT 38 ) NOT BETWEEN - 52 * 86 AND + COUNT( * ) THEN - COUNT( * ) + COUNT( * ) DIV 88 END DIV 16
----
-7

skipif mysql # not compatible
query I rowsort label-6478
SELECT ( - 7 ) + CASE WHEN + MIN ( DISTINCT 38 ) NOT BETWEEN - 52 * 86 AND + COUNT ( * ) THEN - COUNT ( * ) + COUNT ( * ) / 88 END / 16
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6479
SELECT - 13 col0, CASE - 66 WHEN 24 + + CAST( 8 - - 88 AS DECIMAL ) THEN NULL WHEN 12 * + CAST( + 46 AS SIGNED ) + - COUNT( * ) THEN 55 WHEN 86 * 58 THEN 75 * - ( - 93 ) ELSE NULL END - - 2
----
-13
NULL

skipif mysql # not compatible
query II rowsort label-6479
SELECT - 13 col0, CASE - 66 WHEN 24 + + CAST ( 8 - - 88 AS REAL ) THEN NULL WHEN 12 * + CAST ( + 46 AS INTEGER ) + - COUNT ( * ) THEN 55 WHEN 86 * 58 THEN 75 * - ( - 93 ) ELSE NULL END - - 2
----
-13
NULL

query I rowsort
SELECT 65 * - + 8
----
-520

onlyif mysql # DIV for integer division: 
query II rowsort label-6481
SELECT DISTINCT 56 * + + 33 col0, 28 DIV + 1
----
1848
28

skipif mysql # not compatible
query II rowsort label-6481
SELECT DISTINCT 56 * + + 33 col0, 28 / + 1
----
1848
28

onlyif mysql # aggregate syntax: 
query II rowsort label-6482
SELECT - SUM( + 96 ), 86 + 68 * 56 AS col0
----
-96
3894

skipif mysql # not compatible
query II rowsort label-6482
SELECT - SUM ( + 96 ), 86 + 68 * 56 AS col0
----
-96
3894

query II rowsort
SELECT ALL 91 * + 80, + 36 * + + 55 AS col2
----
7280
1980

query II rowsort
SELECT ALL - 86 * + 74 col2, 20
----
-6364
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6485
SELECT DISTINCT + COALESCE ( + - CAST( NULL AS SIGNED ), ( - 51 ) - - ( COUNT( * ) ) ) - + ( COUNT( * ) ) AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-6485
SELECT DISTINCT + COALESCE ( + - CAST ( NULL AS INTEGER ), ( - 51 ) - - ( COUNT ( * ) ) ) - + ( COUNT ( * ) ) AS col0
----
-51

query I rowsort
SELECT ALL 96 - + 51
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-6487
SELECT 74 + 3 * + 13 + COUNT( ALL - 93 ) * + 24
----
137

skipif mysql # not compatible
query I rowsort label-6487
SELECT 74 + 3 * + 13 + COUNT ( ALL - 93 ) * + 24
----
137

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6488
SELECT 45 * - CAST( + COUNT( * ) AS SIGNED ) AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-6488
SELECT 45 * - CAST ( + COUNT ( * ) AS INTEGER ) AS col2
----
-45

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6489
SELECT CASE + ( - - AVG ( 20 ) ) WHEN + 70 * 41 THEN 2 * + CAST( 57 * - 75 AS DECIMAL ) + - 16 WHEN NULLIF ( 81, - 36 ) THEN NULL ELSE NULL END + 47
----
NULL

skipif mysql # not compatible
query I rowsort label-6489
SELECT CASE + ( - - AVG ( 20 ) ) WHEN + 70 * 41 THEN 2 * + CAST ( 57 * - 75 AS REAL ) + - 16 WHEN NULLIF ( 81, - 36 ) THEN NULL ELSE NULL END + 47
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6490
SELECT 87 * - + 10 + - COUNT( * ) AS col2
----
-871

skipif mysql # not compatible
query I rowsort label-6490
SELECT 87 * - + 10 + - COUNT ( * ) AS col2
----
-871

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6491
SELECT ALL 42 DIV + COUNT( * ) * + COUNT( - 51 )
----
42

skipif mysql # not compatible
query I rowsort label-6491
SELECT ALL 42 / + COUNT ( * ) * + COUNT ( - 51 )
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6492
SELECT + 70 DIV - - 95 + + ( 63 ) * COUNT( * )
----
63

skipif mysql # not compatible
query I rowsort label-6492
SELECT + 70 / - - 95 + + ( 63 ) * COUNT ( * )
----
63

onlyif mysql # DIV for integer division: 
query II rowsort label-6493
SELECT ALL 89 DIV 83 AS col0, 43 AS col0
----
1
43

skipif mysql # not compatible
query II rowsort label-6493
SELECT ALL 89 / 83 AS col0, 43 AS col0
----
1
43

onlyif mysql # aggregate syntax: 
query I rowsort label-6494
SELECT CASE - - 1 WHEN 15 * - 89 THEN 33 WHEN ( 8 ) THEN 60 + COALESCE ( - COUNT( 95 ), - 16 * 42 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6494
SELECT CASE - - 1 WHEN 15 * - 89 THEN 33 WHEN ( 8 ) THEN 60 + COALESCE ( - COUNT ( 95 ), - 16 * 42 ) END AS col0
----
NULL

query I rowsort
SELECT + 77 + + + 83 + - 49
----
111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6496
SELECT DISTINCT 46 * + - COUNT( * ) - + + CASE - CAST( + 97 AS SIGNED ) WHEN - 29 + + NULLIF ( 6, - 10 * + 42 ) THEN NULL WHEN 18 / - 84 THEN NULL WHEN 16 THEN - 39 END + 1 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6496
SELECT DISTINCT 46 * + - COUNT ( * ) - + + CASE - CAST ( + 97 AS INTEGER ) WHEN - 29 + + NULLIF ( 6, - 10 * + 42 ) THEN NULL WHEN 18 / - 84 THEN NULL WHEN 16 THEN - 39 END + 1 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6497
SELECT + - COALESCE ( - - 13, - ( 34 ) - - 58 DIV 39, 83 )
----
-13

skipif mysql # not compatible
query I rowsort label-6497
SELECT + - COALESCE ( - - 13, - ( 34 ) - - 58 / 39, 83 )
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6498
SELECT ALL - + 54 * + CAST( NULL AS SIGNED ) + + 45
----
NULL

skipif mysql # not compatible
query I rowsort label-6498
SELECT ALL - + 54 * + CAST ( NULL AS INTEGER ) + + 45
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6499
SELECT - NULLIF ( - + 81, + MIN( ALL + 26 ) ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-6499
SELECT - NULLIF ( - + 81, + MIN ( ALL + 26 ) ) AS col1
----
81

query I rowsort
SELECT DISTINCT + + ( + 42 ) * 30 + - 64
----
1196

query I rowsort
SELECT ALL + + ( + 25 )
----
25

query I rowsort
SELECT + 61 + - 33 + - 59 AS col2
----
-31

query I rowsort
SELECT - - 43 * - - 95 * 54 col1
----
220590

onlyif mysql # aggregate syntax: 
query I rowsort label-6504
SELECT - COUNT( * ) * + + MIN( DISTINCT - 41 )
----
41

skipif mysql # not compatible
query I rowsort label-6504
SELECT - COUNT ( * ) * + + MIN ( DISTINCT - 41 )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6505
SELECT ALL - COUNT( ALL - 51 )
----
-1

skipif mysql # not compatible
query I rowsort label-6505
SELECT ALL - COUNT ( ALL - 51 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6506
SELECT - + COUNT( * ) * + - 92 - + 15
----
77

skipif mysql # not compatible
query I rowsort label-6506
SELECT - + COUNT ( * ) * + - 92 - + 15
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6507
SELECT DISTINCT - 89 - COUNT( * ) AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-6507
SELECT DISTINCT - 89 - COUNT ( * ) AS col0
----
-90

query I rowsort
SELECT - 97 * - - 34
----
-3298

onlyif mysql # DIV for integer division: 
query I rowsort label-6509
SELECT ALL 9 DIV 43 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6509
SELECT ALL 9 / 43 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6510
SELECT - COUNT( * ) + 64 * - 16
----
-1025

skipif mysql # not compatible
query I rowsort label-6510
SELECT - COUNT ( * ) + 64 * - 16
----
-1025

onlyif mysql # aggregate syntax: 
query I rowsort label-6511
SELECT DISTINCT CASE - 64 WHEN + 60 * 57 * 29 THEN COALESCE ( - COUNT( 30 ), - COUNT( * ) + SUM( ALL + 40 ) ) / 41 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6511
SELECT DISTINCT CASE - 64 WHEN + 60 * 57 * 29 THEN COALESCE ( - COUNT ( 30 ), - COUNT ( * ) + SUM ( ALL + 40 ) ) / 41 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT - 91 + - 54
----
-145

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-6513
SELECT - COALESCE ( - 10, + + NULLIF ( + + 40, + - 61 * NULLIF ( 32 + 6, + 36 * COALESCE ( 73 * - 91, 41, + MIN( ( CAST( NULL AS DECIMAL ) ) ) DIV - 27 ) + COALESCE ( - 53, - SUM( ALL - ( CASE WHEN NOT NULL BETWEEN 73 AND 3 DIV 91 THEN NULL ELSE + 45 + - 63 END ) ) ) * COUNT( * ) ) ), + 28 ) DIV - 20 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6513
SELECT - COALESCE ( - 10, + + NULLIF ( + + 40, + - 61 * NULLIF ( 32 + 6, + 36 * COALESCE ( 73 * - 91, 41, + MIN ( ( CAST ( NULL AS REAL ) ) ) / - 27 ) + COALESCE ( - 53, - SUM ( ALL - ( CASE WHEN NOT NULL BETWEEN 73 AND 3 / 91 THEN NULL ELSE + 45 + - 63 END ) ) ) * COUNT ( * ) ) ), + 28 ) / - 20 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6514
SELECT ALL + 27 DIV + 34
----
0

skipif mysql # not compatible
query I rowsort label-6514
SELECT ALL + 27 / + 34
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6515
SELECT - 37 * MIN( - - CAST( - 14 AS SIGNED ) ) DIV + + 36
----
14

skipif mysql # not compatible
query I rowsort label-6515
SELECT - 37 * MIN ( - - CAST ( - 14 AS INTEGER ) ) / + + 36
----
14

query I rowsort
SELECT - COALESCE ( - + ( - 0 ), - - 45 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6517
SELECT DISTINCT CAST( - 40 AS SIGNED )
----
-40

skipif mysql # not compatible
query I rowsort label-6517
SELECT DISTINCT CAST ( - 40 AS INTEGER )
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-6518
SELECT - CASE - 75 WHEN 87 THEN + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6518
SELECT - CASE - 75 WHEN 87 THEN + COUNT ( * ) END
----
NULL

query II rowsort
SELECT 37 AS col1, - 76
----
37
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6520
SELECT + CAST( NULL AS SIGNED ) + - 45 + - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6520
SELECT + CAST ( NULL AS INTEGER ) + - 45 + - COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT + 95 * + 64 * - 91
----
-553280

onlyif mysql # aggregate syntax: 
query I rowsort label-6522
SELECT + COUNT( * ) * - - ( - MIN( ALL + 31 ) )
----
-31

skipif mysql # not compatible
query I rowsort label-6522
SELECT + COUNT ( * ) * - - ( - MIN ( ALL + 31 ) )
----
-31

query I rowsort
SELECT DISTINCT - 37 * + 21 AS col0
----
-777

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6524
SELECT ALL CAST( + 77 AS SIGNED ) AS col2
----
77

skipif mysql # not compatible
query I rowsort label-6524
SELECT ALL CAST ( + 77 AS INTEGER ) AS col2
----
77

query I rowsort
SELECT + COALESCE ( + + 14, 18 ) col1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-6526
SELECT + - 33 * - COUNT( * )
----
33

skipif mysql # not compatible
query I rowsort label-6526
SELECT + - 33 * - COUNT ( * )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-6527
SELECT ALL - - CASE - ( + + 76 ) WHEN - + 60 * + - 65 THEN NULL WHEN 29 THEN 42 WHEN 35 * + 78 THEN 21 + 88 * CASE COUNT( * ) WHEN 12 THEN 66 * + 75 + + ( + 95 ) WHEN + MAX( ( - 26 ) ) THEN - 86 END END / COUNT( * ) + - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6527
SELECT ALL - - CASE - ( + + 76 ) WHEN - + 60 * + - 65 THEN NULL WHEN 29 THEN 42 WHEN 35 * + 78 THEN 21 + 88 * CASE COUNT ( * ) WHEN 12 THEN 66 * + 75 + + ( + 95 ) WHEN + MAX ( ( - 26 ) ) THEN - 86 END END / COUNT ( * ) + - COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT + CASE WHEN NOT + AVG ( DISTINCT + 89 ) IS NOT NULL THEN NULL ELSE COALESCE ( 4, - 49, - 98 ) END
----
4

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6529
SELECT + - 47 - - - CAST( NULL AS DECIMAL ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6529
SELECT + - 47 - - - CAST ( NULL AS REAL ) col1
----
NULL

query I rowsort
SELECT + + 72 + - - 55 + ( + 66 )
----
193

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6531
SELECT ALL - 27 DIV - + COUNT( * ) + 85 AS col1
----
112

skipif mysql # not compatible
query I rowsort label-6531
SELECT ALL - 27 / - + COUNT ( * ) + 85 AS col1
----
112

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6532
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * - 35 / ( + + 57 ) + + AVG ( ALL CAST( NULL AS SIGNED ) ) + ( 13 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6532
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * - 35 / ( + + 57 ) + + AVG ( ALL CAST ( NULL AS INTEGER ) ) + ( 13 ) AS col2
----
NULL

query II rowsort
SELECT ALL + 19, ( - 98 ) - + - 17 AS col1
----
19
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-6534
SELECT + + COUNT( DISTINCT - 83 )
----
1

skipif mysql # not compatible
query I rowsort label-6534
SELECT + + COUNT ( DISTINCT - 83 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6535
SELECT DISTINCT + + CASE - 9 WHEN - 81 * - 97 THEN 9 * 86 + + 85 ELSE 29 DIV + 59 END * - 22 + COUNT( * ) * - 9 AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-6535
SELECT DISTINCT + + CASE - 9 WHEN - 81 * - 97 THEN 9 * 86 + + 85 ELSE 29 / + 59 END * - 22 + COUNT ( * ) * - 9 AS col0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6536
SELECT SUM( ALL - 95 ) AS col1
----
-95

skipif mysql # not compatible
query I rowsort label-6536
SELECT SUM ( ALL - 95 ) AS col1
----
-95

query I rowsort
SELECT DISTINCT + - 87 col1
----
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6538
SELECT + + MAX( ALL + 52 ) + + COUNT( * ) DIV - - 5
----
52

skipif mysql # not compatible
query I rowsort label-6538
SELECT + + MAX ( ALL + 52 ) + + COUNT ( * ) / - - 5
----
52

query I rowsort
SELECT - 35 * - - 74 * 54 AS col2
----
-139860

query I rowsort
SELECT ALL + - COALESCE ( - 25, 42 * + 44 ) AS col2
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-6541
SELECT + 9 AS col0, - COUNT( * ) * - 7 + + 99
----
9
106

skipif mysql # not compatible
query II rowsort label-6541
SELECT + 9 AS col0, - COUNT ( * ) * - 7 + + 99
----
9
106

query I rowsort
SELECT ALL 44 * 89 * - + 11
----
-43076

onlyif mysql # aggregate syntax: 
query I rowsort label-6543
SELECT - COUNT( + 31 ) * - 62
----
62

skipif mysql # not compatible
query I rowsort label-6543
SELECT - COUNT ( + 31 ) * - 62
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-6544
SELECT COUNT( * ) col2, 2
----
1
2

skipif mysql # not compatible
query II rowsort label-6544
SELECT COUNT ( * ) col2, 2
----
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6545
SELECT COUNT( * ) * ( - 61 ) + + CASE - 29 WHEN - AVG ( - 52 ) + + 43 THEN 91 WHEN - COUNT( * ) / + 29 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6545
SELECT COUNT ( * ) * ( - 61 ) + + CASE - 29 WHEN - AVG ( - 52 ) + + 43 THEN 91 WHEN - COUNT ( * ) / + 29 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6546
SELECT DISTINCT + 41 DIV 59 * COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-6546
SELECT DISTINCT + 41 / 59 * COUNT ( * )
----
0

query I rowsort
SELECT ALL NULLIF ( - 90, + 67 )
----
-90

query I rowsort
SELECT - COALESCE ( + 69, + + 0 ) * - 76
----
5244

onlyif mysql # aggregate syntax: 
query I rowsort label-6549
SELECT + COUNT( - + 99 ) + + 21 - + 41 * - 75
----
3097

skipif mysql # not compatible
query I rowsort label-6549
SELECT + COUNT ( - + 99 ) + + 21 - + 41 * - 75
----
3097

onlyif mysql # aggregate syntax: 
query II rowsort label-6550
SELECT DISTINCT + 14 * 88 col0, + COUNT( * ) * + - NULLIF ( - + 42, - - NULLIF ( + 48, 71 ) + 42 ) AS col0
----
1232
42

skipif mysql # not compatible
query II rowsort label-6550
SELECT DISTINCT + 14 * 88 col0, + COUNT ( * ) * + - NULLIF ( - + 42, - - NULLIF ( + 48, 71 ) + 42 ) AS col0
----
1232
42

query I rowsort
SELECT 64 + 57
----
121

query I rowsort
SELECT ALL - COALESCE ( 27, + 38 ) + + - 6 AS col2
----
-33

query I rowsort
SELECT 89 - + - COALESCE ( + + 97, + 23 ) col2
----
186

query II rowsort
SELECT - 86 AS col1, + 90
----
-86
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6555
SELECT DISTINCT ( - ( - COUNT( * ) ) ) DIV 56 col2, 26 - - ( COUNT( * ) ) * - 39 AS col2
----
0
-13

skipif mysql # not compatible
query II rowsort label-6555
SELECT DISTINCT ( - ( - COUNT ( * ) ) ) / 56 col2, 26 - - ( COUNT ( * ) ) * - 39 AS col2
----
0
-13

query I rowsort
SELECT DISTINCT + 79 + - ( + 0 ) AS col2
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6557
SELECT ALL - 24 + - ( + 47 ) * CAST( + 32 AS SIGNED ) AS col0
----
-1528

skipif mysql # not compatible
query I rowsort label-6557
SELECT ALL - 24 + - ( + 47 ) * CAST ( + 32 AS INTEGER ) AS col0
----
-1528

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6558
SELECT 17 AS col1, - CAST( - 50 AS SIGNED ) + - 15 DIV - 89
----
17
50

skipif mysql # not compatible
query II rowsort label-6558
SELECT 17 AS col1, - CAST ( - 50 AS INTEGER ) + - 15 / - 89
----
17
50

onlyif mysql # aggregate syntax: 
query I rowsort label-6559
SELECT NULLIF ( + - 97, + MAX( ALL 71 ) ) + COUNT( * ) col1
----
-96

skipif mysql # not compatible
query I rowsort label-6559
SELECT NULLIF ( + - 97, + MAX ( ALL 71 ) ) + COUNT ( * ) col1
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6560
SELECT 89 + COUNT( * ) AS col1
----
90

skipif mysql # not compatible
query I rowsort label-6560
SELECT 89 + COUNT ( * ) AS col1
----
90

query II rowsort
SELECT - 1, + 81 col2
----
-1
81

query II rowsort
SELECT ALL 2 AS col1, + 83
----
2
83

onlyif mysql # aggregate syntax: 
query I rowsort label-6563
SELECT + 62 * - 25 + ( + MIN( DISTINCT - + 57 ) ) + - COALESCE ( + 79, 2, + NULLIF ( + 98, CASE COUNT( * ) WHEN - 13 + MIN( ALL - 74 ) THEN - 77 WHEN - 82 THEN NULL ELSE - ( COUNT( * ) ) END ) + COUNT( * ) ) - 91 * 73
----
-8329

skipif mysql # not compatible
query I rowsort label-6563
SELECT + 62 * - 25 + ( + MIN ( DISTINCT - + 57 ) ) + - COALESCE ( + 79, 2, + NULLIF ( + 98, CASE COUNT ( * ) WHEN - 13 + MIN ( ALL - 74 ) THEN - 77 WHEN - 82 THEN NULL ELSE - ( COUNT ( * ) ) END ) + COUNT ( * ) ) - 91 * 73
----
-8329

query I rowsort
SELECT 75 - + 86 * - + 12
----
1107

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6565
SELECT 1 / - 35 * 3 + + 77 + + - CAST( NULL AS SIGNED ) + - CASE - 92 WHEN 45 * 71 THEN NULL ELSE + 39 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6565
SELECT 1 / - 35 * 3 + + 77 + + - CAST ( NULL AS INTEGER ) + - CASE - 92 WHEN 45 * 71 THEN NULL ELSE + 39 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6566
SELECT ALL - + COUNT( * ) AS col1, - 35 * - CAST( NULL AS SIGNED ) * - 91 * - - 63 * AVG ( + NULLIF ( 8, 13 ) ) + + 12 AS col1
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-6566
SELECT ALL - + COUNT ( * ) AS col1, - 35 * - CAST ( NULL AS INTEGER ) * - 91 * - - 63 * AVG ( + NULLIF ( 8, 13 ) ) + + 12 AS col1
----
-1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6567
SELECT ALL + 15 + + MIN( - 18 ) AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-6567
SELECT ALL + 15 + + MIN ( - 18 ) AS col1
----
-3

query I rowsort
SELECT 55 * - 9
----
-495

query I rowsort
SELECT ALL + 4 * + - 68 + + ( + 77 ) AS col1
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-6570
SELECT - 74 * 64 + - 34 - - COUNT( * ) * + + 70
----
-4700

skipif mysql # not compatible
query I rowsort label-6570
SELECT - 74 * 64 + - 34 - - COUNT ( * ) * + + 70
----
-4700

onlyif mysql # aggregate syntax: 
query I rowsort label-6571
SELECT ALL - + ( + SUM( + 80 ) )
----
-80

skipif mysql # not compatible
query I rowsort label-6571
SELECT ALL - + ( + SUM ( + 80 ) )
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-6572
SELECT 34 * + 39 * - - 96 * - 70 + - COUNT( * ) * 95 * 79 + + 91 AS col1
----
-8918134

skipif mysql # not compatible
query I rowsort label-6572
SELECT 34 * + 39 * - - 96 * - 70 + - COUNT ( * ) * 95 * 79 + + 91 AS col1
----
-8918134

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6573
SELECT - COUNT( * ) + 50 + + 95 DIV + - 8 AS col1
----
38

skipif mysql # not compatible
query I rowsort label-6573
SELECT - COUNT ( * ) + 50 + + 95 / + - 8 AS col1
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6574
SELECT - + ( 23 ) * + 5 * 46 * + + CAST( 68 AS SIGNED ) * 70 + COALESCE ( + 22, + 44, 9 )
----
-25180378

skipif mysql # not compatible
query I rowsort label-6574
SELECT - + ( 23 ) * + 5 * 46 * + + CAST ( 68 AS INTEGER ) * 70 + COALESCE ( + 22, + 44, 9 )
----
-25180378

onlyif mysql # DIV for integer division: 
query II rowsort label-6575
SELECT ALL - - 33, 14 DIV + 93 AS col2
----
33
0

skipif mysql # not compatible
query II rowsort label-6575
SELECT ALL - - 33, 14 / + 93 AS col2
----
33
0

query I rowsort
SELECT ALL + 39 * - 83 AS col2
----
-3237

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6577
SELECT ALL + COALESCE ( - 3, + COUNT( ALL - 75 ) * 18 ) DIV 32 DIV 88 + COUNT( - ( + 10 ) )
----
1

skipif mysql # not compatible
query I rowsort label-6577
SELECT ALL + COALESCE ( - 3, + COUNT ( ALL - 75 ) * 18 ) / 32 / 88 + COUNT ( - ( + 10 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6578
SELECT ALL 73 * - + COUNT( * )
----
-73

skipif mysql # not compatible
query I rowsort label-6578
SELECT ALL 73 * - + COUNT ( * )
----
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-6579
SELECT ALL 32 * 1 DIV + 62 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6579
SELECT ALL 32 * 1 / + 62 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6580
SELECT 48 DIV + 91
----
0

skipif mysql # not compatible
query I rowsort label-6580
SELECT 48 / + 91
----
0

query II rowsort
SELECT 93 * 28 AS col0, 29 AS col2
----
2604
29

query I rowsort
SELECT 0 + + - 19 AS col0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-6583
SELECT DISTINCT + 10 + COUNT( * )
----
11

skipif mysql # not compatible
query I rowsort label-6583
SELECT DISTINCT + 10 + COUNT ( * )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-6584
SELECT ALL - 55 + + SUM( 95 ) + + 28 * - COALESCE ( 25, - 39 + 24, + 11, + 60 ) * + COUNT( * ) AS col1
----
-660

skipif mysql # not compatible
query I rowsort label-6584
SELECT ALL - 55 + + SUM ( 95 ) + + 28 * - COALESCE ( 25, - 39 + 24, + 11, + 60 ) * + COUNT ( * ) AS col1
----
-660

query I rowsort
SELECT ( - 60 ) * - 9
----
540

query II rowsort
SELECT ALL 90 + - - 21, 50 AS col2
----
111
50

query I rowsort
SELECT DISTINCT + 83 * - 27
----
-2241

query I rowsort
SELECT ALL + 65 * 28
----
1820

onlyif mysql # DIV for integer division: 
query II rowsort label-6589
SELECT 98 DIV 83, 97 * 64 * + NULLIF ( 74, 95 ) * ( 75 ) + 61 col1
----
1
34454461

skipif mysql # not compatible
query II rowsort label-6589
SELECT 98 / 83, 97 * 64 * + NULLIF ( 74, 95 ) * ( 75 ) + 61 col1
----
1
34454461

query II rowsort
SELECT ALL + 19 + - + 91, + 60 + + 78 AS col2
----
-72
138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6591
SELECT ALL - 50 * 10 * NULLIF ( 4, - - CAST( - 93 AS SIGNED ) * - 83 + COUNT( ( 19 ) ) ) DIV 41
----
-48

skipif mysql # not compatible
query I rowsort label-6591
SELECT ALL - 50 * 10 * NULLIF ( 4, - - CAST ( - 93 AS INTEGER ) * - 83 + COUNT ( ( 19 ) ) ) / 41
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6592
SELECT + 41 * COUNT( DISTINCT + CAST( - + 82 AS SIGNED ) ) AS col1
----
41

skipif mysql # not compatible
query I rowsort label-6592
SELECT + 41 * COUNT ( DISTINCT + CAST ( - + 82 AS INTEGER ) ) AS col1
----
41

query I rowsort
SELECT DISTINCT - 68 * - 73 * + 26 + + 27 - 60 * 15 AS col1
----
128191

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6594
SELECT - 7 / - CAST( NULL AS DECIMAL ) + + 15 * + 4
----
NULL

skipif mysql # not compatible
query I rowsort label-6594
SELECT - 7 / - CAST ( NULL AS REAL ) + + 15 * + 4
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6595
SELECT - 42 / + + CAST( CASE + COUNT( * ) WHEN 11 THEN + - 18 WHEN + 12 * 60 - 79 THEN + 56 ELSE NULL END AS SIGNED ) - - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6595
SELECT - 42 / + + CAST ( CASE + COUNT ( * ) WHEN 11 THEN + - 18 WHEN + 12 * 60 - 79 THEN + 56 ELSE NULL END AS INTEGER ) - - CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6596
SELECT ALL MAX( + + 2 ) * - 60 - - 5 + + ( ( + + 38 ) ) * COALESCE ( 65 + COUNT( * ) * - 40, - 37 * + CAST( NULL AS SIGNED ) - 10 )
----
835

skipif mysql # not compatible
query I rowsort label-6596
SELECT ALL MAX ( + + 2 ) * - 60 - - 5 + + ( ( + + 38 ) ) * COALESCE ( 65 + COUNT ( * ) * - 40, - 37 * + CAST ( NULL AS INTEGER ) - 10 )
----
835

query I rowsort
SELECT ALL + - 34 * 52
----
-1768

onlyif mysql # aggregate syntax: 
query I rowsort label-6598
SELECT DISTINCT + COUNT( DISTINCT + 64 ) * - - 77 - 0 - + 80 * + + 38 * + - ( + 89 ) col0
----
270637

skipif mysql # not compatible
query I rowsort label-6598
SELECT DISTINCT + COUNT ( DISTINCT + 64 ) * - - 77 - 0 - + 80 * + + 38 * + - ( + 89 ) col0
----
270637

query I rowsort
SELECT - COALESCE ( + 4, + + 85 * - - 33, 51 ) * 67
----
-268

onlyif mysql # aggregate syntax: 
query I rowsort label-6600
SELECT - 93 * - - 47 * - + CASE - ( + 58 ) WHEN + 42 THEN - 84 * - 73 + - 13 ELSE + 19 END * - COUNT( * ) AS col1
----
-83049

skipif mysql # not compatible
query I rowsort label-6600
SELECT - 93 * - - 47 * - + CASE - ( + 58 ) WHEN + 42 THEN - 84 * - 73 + - 13 ELSE + 19 END * - COUNT ( * ) AS col1
----
-83049

query I rowsort
SELECT 10 + + + 66 AS col1
----
76

query I rowsort
SELECT 68 * - 6 + + - 81 AS col2
----
-489

query I rowsort
SELECT - 32 * + + 96
----
-3072

query I rowsort
SELECT + 38 * 72 AS col1
----
2736

query II rowsort
SELECT 53 AS col2, + 71 * + COALESCE ( + 17, + 54 )
----
53
1207

onlyif mysql # aggregate syntax: 
query I rowsort label-6606
SELECT ALL 78 * + - NULLIF ( COUNT( * ), - COALESCE ( 1, - CASE - - 91 WHEN + 88 * + 46 - 52 THEN COALESCE ( - 31, 91 / + 42 ) * - 63 ELSE 24 * + 34 END * 50 + + 41 ) )
----
-78

skipif mysql # not compatible
query I rowsort label-6606
SELECT ALL 78 * + - NULLIF ( COUNT ( * ), - COALESCE ( 1, - CASE - - 91 WHEN + 88 * + 46 - 52 THEN COALESCE ( - 31, 91 / + 42 ) * - 63 ELSE 24 * + 34 END * 50 + + 41 ) )
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-6607
SELECT ALL - 96 + + + 44 + + 57 - + 52 * + + 25 + - - 29 + + MIN( DISTINCT + 3 )
----
-1263

skipif mysql # not compatible
query I rowsort label-6607
SELECT ALL - 96 + + + 44 + + 57 - + 52 * + + 25 + - - 29 + + MIN ( DISTINCT + 3 )
----
-1263

query I rowsort
SELECT DISTINCT + 42 + - + 74 * + 71 + - - 47 * + 54 * + 50 AS col2
----
121688

onlyif mysql # aggregate syntax: 
query I rowsort label-6609
SELECT - COUNT( DISTINCT - - 22 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6609
SELECT - COUNT ( DISTINCT - - 22 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6610
SELECT - COUNT( DISTINCT + - 77 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6610
SELECT - COUNT ( DISTINCT + - 77 ) AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6611
SELECT ALL 84 + + COUNT( * ) - - - CAST( NULL AS SIGNED ) AS col0, 18
----
NULL
18

skipif mysql # not compatible
query II rowsort label-6611
SELECT ALL 84 + + COUNT ( * ) - - - CAST ( NULL AS INTEGER ) AS col0, 18
----
NULL
18

onlyif mysql # DIV for integer division: 
query I rowsort label-6612
SELECT + 54 DIV - + 28
----
-1

skipif mysql # not compatible
query I rowsort label-6612
SELECT + 54 / - + 28
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6613
SELECT + 66 + + - 26 + - COUNT( * )
----
39

skipif mysql # not compatible
query I rowsort label-6613
SELECT + 66 + + - 26 + - COUNT ( * )
----
39

query I rowsort
SELECT + 48 - - 87
----
135

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6615
SELECT + COUNT( * ) + - - 91 DIV - 94 - + 16 AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-6615
SELECT + COUNT ( * ) + - - 91 / - 94 - + 16 AS col0
----
-15

query I rowsort
SELECT + 94 + 43 AS col2
----
137

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6617
SELECT ALL CAST( NULL AS SIGNED ) - - 57 + + 23 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6617
SELECT ALL CAST ( NULL AS INTEGER ) - - 57 + + 23 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6618
SELECT + 12 * COUNT( * ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-6618
SELECT + 12 * COUNT ( * ) AS col2
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-6619
SELECT DISTINCT - 21 - + - COALESCE ( - 80, COUNT( - + 22 ) * + 33 * COUNT( * ) * + 9 + 19 * MIN( ALL 26 + 43 ) ) + + ( 15 )
----
-86

skipif mysql # not compatible
query I rowsort label-6619
SELECT DISTINCT - 21 - + - COALESCE ( - 80, COUNT ( - + 22 ) * + 33 * COUNT ( * ) * + 9 + 19 * MIN ( ALL 26 + 43 ) ) + + ( 15 )
----
-86

query I rowsort
SELECT + - 10 * + 60
----
-600

query I rowsort
SELECT ALL - + ( + ( + ( + 90 ) ) ) * + 45
----
-4050

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6622
SELECT ALL ( - + 47 ) - + 51 DIV + + 27 * + COUNT( * ) AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-6622
SELECT ALL ( - + 47 ) - + 51 / + + 27 * + COUNT ( * ) AS col2
----
-48

query II rowsort
SELECT 21, - 99 AS col0
----
21
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-6624
SELECT - 52 + COUNT( * ) col0
----
-51

skipif mysql # not compatible
query I rowsort label-6624
SELECT - 52 + COUNT ( * ) col0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-6625
SELECT MIN( DISTINCT + - 44 )
----
-44

skipif mysql # not compatible
query I rowsort label-6625
SELECT MIN ( DISTINCT + - 44 )
----
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-6626
SELECT - - COUNT( * ) AS col1, 95 AS col0
----
1
95

skipif mysql # not compatible
query II rowsort label-6626
SELECT - - COUNT ( * ) AS col1, 95 AS col0
----
1
95

query I rowsort
SELECT + + 33 + - + 90 AS col1
----
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6628
SELECT - - 99 DIV - - 77 + 44 + 37 * - - 14 + 23 * - 47 + + SUM( DISTINCT - 10 ) DIV - 71
----
-518

skipif mysql # not compatible
query I rowsort label-6628
SELECT - - 99 / - - 77 + 44 + 37 * - - 14 + 23 * - 47 + + SUM ( DISTINCT - 10 ) / - 71
----
-518

query I rowsort
SELECT - + 52 + - + 85
----
-137

query I rowsort
SELECT DISTINCT + 94 * 23 AS col1
----
2162

onlyif mysql # aggregate syntax: 
query I rowsort label-6631
SELECT DISTINCT + - MAX( DISTINCT 34 ) AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-6631
SELECT DISTINCT + - MAX ( DISTINCT 34 ) AS col0
----
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6632
SELECT - 41 DIV - 54 * + - COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6632
SELECT - 41 / - 54 * + - COUNT ( * ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6633
SELECT ALL COUNT( * ) * + ( + + 37 ) AS col0
----
37

skipif mysql # not compatible
query I rowsort label-6633
SELECT ALL COUNT ( * ) * + ( + + 37 ) AS col0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-6634
SELECT ALL + 3 * + COUNT( * ) col1
----
3

skipif mysql # not compatible
query I rowsort label-6634
SELECT ALL + 3 * + COUNT ( * ) col1
----
3

query I rowsort
SELECT DISTINCT + 45 * + - 94
----
-4230

query I rowsort
SELECT ALL + CASE WHEN NOT 26 IS NULL THEN NULL ELSE ( - 98 ) * - + 94 - - - 85 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6637
SELECT + + 6 DIV 16
----
0

skipif mysql # not compatible
query I rowsort label-6637
SELECT + + 6 / 16
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6638
SELECT - + NULLIF ( - + 32, + NULLIF ( + - 20, - 57 * + 15 ) ) DIV - + ( + 3 )
----
-10

skipif mysql # not compatible
query I rowsort label-6638
SELECT - + NULLIF ( - + 32, + NULLIF ( + - 20, - 57 * + 15 ) ) / - + ( + 3 )
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-6639
SELECT + + 98 * + 54 * - 41 * + + CASE - NULLIF ( + + 62, + 84 + + 12 + 83 * + 76 / 58 ) WHEN 3 THEN 63 + + COUNT( * ) END + 17 + + 64 * + 45
----
NULL

skipif mysql # not compatible
query I rowsort label-6639
SELECT + + 98 * + 54 * - 41 * + + CASE - NULLIF ( + + 62, + 84 + + 12 + 83 * + 76 / 58 ) WHEN 3 THEN 63 + + COUNT ( * ) END + 17 + + 64 * + 45
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6640
SELECT DISTINCT - 78 DIV - 78
----
1

skipif mysql # not compatible
query I rowsort label-6640
SELECT DISTINCT - 78 / - 78
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6641
SELECT ALL + 70 * 42 + + + MAX( ALL - - 55 ) * + 48 * - 2 + + - COUNT( * )
----
-2341

skipif mysql # not compatible
query I rowsort label-6641
SELECT ALL + 70 * 42 + + + MAX ( ALL - - 55 ) * + 48 * - 2 + + - COUNT ( * )
----
-2341

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6642
SELECT - + 56 * CAST( + + 46 AS SIGNED ) / + COUNT( * ) * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6642
SELECT - + 56 * CAST ( + + 46 AS INTEGER ) / + COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6643
SELECT COALESCE ( - - 58, CASE - 28 WHEN + COUNT( * ) + + 45 DIV + 47 + - NULLIF ( - 85, CAST( NULL AS SIGNED ) + 28 * + 11 ) THEN + 62 ELSE - 77 * - 65 END DIV + 8 + ( + 45 ) ) AS col2
----
58

skipif mysql # not compatible
query I rowsort label-6643
SELECT COALESCE ( - - 58, CASE - 28 WHEN + COUNT ( * ) + + 45 / + 47 + - NULLIF ( - 85, CAST ( NULL AS INTEGER ) + 28 * + 11 ) THEN + 62 ELSE - 77 * - 65 END / + 8 + ( + 45 ) ) AS col2
----
58

query I rowsort
SELECT - 8 * - ( - - 61 ) * + 84
----
40992

query I rowsort
SELECT DISTINCT - 83 * + 22 AS col0
----
-1826

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6646
SELECT DISTINCT 94 * - ( - + 94 ) + + + 6 + 54 + - CAST( - 50 AS SIGNED ) * - 4 * + + CAST( - ( + 44 ) AS SIGNED )
----
17696

skipif mysql # not compatible
query I rowsort label-6646
SELECT DISTINCT 94 * - ( - + 94 ) + + + 6 + 54 + - CAST ( - 50 AS INTEGER ) * - 4 * + + CAST ( - ( + 44 ) AS INTEGER )
----
17696

query I rowsort
SELECT DISTINCT 62 * + NULLIF ( + 65, 29 ) + - 13 AS col1
----
4017

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6648
SELECT DISTINCT CAST( + + SUM( - - 90 ) AS SIGNED ) * - - 79 + SUM( ALL CAST( + 61 AS SIGNED ) ) AS col2
----
7171

skipif mysql # not compatible
query I rowsort label-6648
SELECT DISTINCT CAST ( + + SUM ( - - 90 ) AS INTEGER ) * - - 79 + SUM ( ALL CAST ( + 61 AS INTEGER ) ) AS col2
----
7171

onlyif mysql # aggregate syntax: 
query I rowsort label-6649
SELECT ALL + ( + + COUNT( 53 ) )
----
1

skipif mysql # not compatible
query I rowsort label-6649
SELECT ALL + ( + + COUNT ( 53 ) )
----
1

query I rowsort
SELECT + 54 + 20 * - 26
----
-466

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6651
SELECT DISTINCT + 47 * 51 / COUNT( * ) - 28 + + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6651
SELECT DISTINCT + 47 * 51 / COUNT ( * ) - 28 + + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 64 * 43 - + + 30 AS col1
----
-2782

query II rowsort
SELECT DISTINCT ( - 44 ), 57 + + 0 AS col1
----
-44
57

query I rowsort
SELECT - CASE 9 WHEN + - 32 THEN - - 15 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6655
SELECT + 47 * - + COUNT( * ) AS col2, + 34 col2
----
-47
34

skipif mysql # not compatible
query II rowsort label-6655
SELECT + 47 * - + COUNT ( * ) AS col2, + 34 col2
----
-47
34

onlyif mysql # aggregate syntax: 
query I rowsort label-6656
SELECT DISTINCT ( + MIN( ALL + + 67 ) ) * - MAX( + 96 ) * - 25 + + COUNT( * ) + - ( - MAX( DISTINCT + 43 ) ) * + 37
----
162392

skipif mysql # not compatible
query I rowsort label-6656
SELECT DISTINCT ( + MIN ( ALL + + 67 ) ) * - MAX ( + 96 ) * - 25 + + COUNT ( * ) + - ( - MAX ( DISTINCT + 43 ) ) * + 37
----
162392

onlyif mysql # aggregate syntax: 
query I rowsort label-6657
SELECT - + COUNT( * ) - - ( + + 64 )
----
63

skipif mysql # not compatible
query I rowsort label-6657
SELECT - + COUNT ( * ) - - ( + + 64 )
----
63

query I rowsort
SELECT + 12 * + 6 + 89 + + - COALESCE ( - ( 93 ), + ( - - 74 ) )
----
254

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6659
SELECT + 30 * + CAST( - - 87 AS SIGNED )
----
2610

skipif mysql # not compatible
query I rowsort label-6659
SELECT + 30 * + CAST ( - - 87 AS INTEGER )
----
2610

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6660
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * - 56 + 20
----
NULL

skipif mysql # not compatible
query I rowsort label-6660
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * - 56 + 20
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6661
SELECT ALL 45 + + SUM( - + 53 )
----
-8

skipif mysql # not compatible
query I rowsort label-6661
SELECT ALL 45 + + SUM ( - + 53 )
----
-8

query I rowsort
SELECT ALL + 91 + - + 71 AS col2
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-6663
SELECT NULLIF ( + + 44, + 46 ) + COUNT( * ) * + + 11
----
55

skipif mysql # not compatible
query I rowsort label-6663
SELECT NULLIF ( + + 44, + 46 ) + COUNT ( * ) * + + 11
----
55

query I rowsort
SELECT ALL + 69 * - 32 AS col0
----
-2208

onlyif mysql # aggregate syntax: 
query I rowsort label-6665
SELECT ALL - CASE ( + + COUNT( * ) ) WHEN - 92 * - 54 THEN + 84 END + + COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6665
SELECT ALL - CASE ( + + COUNT ( * ) ) WHEN - 92 * - 54 THEN + 84 END + + COUNT ( * ) col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6666
SELECT DISTINCT 8 + + - CAST( NULL AS SIGNED ) + + 88 AS col2, MIN( 4 )
----
NULL
4

skipif mysql # not compatible
query II rowsort label-6666
SELECT DISTINCT 8 + + - CAST ( NULL AS INTEGER ) + + 88 AS col2, MIN ( 4 )
----
NULL
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6667
SELECT 99 / + + 86 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6667
SELECT 99 / + + 86 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6668
SELECT 2 + - - 5 - + 24 DIV + 18 AS col2
----
6

skipif mysql # not compatible
query I rowsort label-6668
SELECT 2 + - - 5 - + 24 / + 18 AS col2
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6669
SELECT ALL - 97 + + 69 + + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6669
SELECT ALL - 97 + + 69 + + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ( 91 ) * - - 65
----
5915

query I rowsort
SELECT 18 * 43
----
774

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6672
SELECT ALL - CASE ( + - ( + + 83 ) ) WHEN + 47 * + + CAST( - NULLIF ( + 3, - 66 * - + CAST( NULL AS SIGNED ) + 81 ) AS SIGNED ) * 99 THEN + ( 19 ) WHEN 78 * 57 THEN NULL END - - 5 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6672
SELECT ALL - CASE ( + - ( + + 83 ) ) WHEN + 47 * + + CAST ( - NULLIF ( + 3, - 66 * - + CAST ( NULL AS INTEGER ) + 81 ) AS INTEGER ) * 99 THEN + ( 19 ) WHEN 78 * 57 THEN NULL END - - 5 AS col1
----
NULL

query II rowsort
SELECT 43 * + - 43 + + 59 + + - 24 * - + 82, - 5 AS col0
----
178
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6674
SELECT 2 + 96 * 17 DIV COALESCE ( + + 71, + - COUNT( * ) )
----
24

skipif mysql # not compatible
query I rowsort label-6674
SELECT 2 + 96 * 17 / COALESCE ( + + 71, + - COUNT ( * ) )
----
24

query I rowsort
SELECT ALL - NULLIF ( + 53, + - 42 )
----
-53

query I rowsort
SELECT ALL - 79 - 49 AS col0
----
-128

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6677
SELECT 18 * - COUNT( * ) DIV - - MAX( 20 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6677
SELECT 18 * - COUNT ( * ) / - - MAX ( 20 ) AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6678
SELECT ALL - CAST( NULL AS SIGNED ) * - - 20 * 78 * + 31 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6678
SELECT ALL - CAST ( NULL AS INTEGER ) * - - 20 * 78 * + 31 AS col0
----
NULL

query II rowsort
SELECT ALL 93 AS col1, 51
----
93
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6680
SELECT 37 + + + MIN( DISTINCT - 58 ) AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-6680
SELECT 37 + + + MIN ( DISTINCT - 58 ) AS col1
----
-21

query I rowsort
SELECT 8 * + 63 AS col2
----
504

onlyif mysql # aggregate syntax: 
query I rowsort label-6682
SELECT - 60 + - COALESCE ( - + COUNT( * ), - ( + 9 ) + + 99 + - - 55 ) AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-6682
SELECT - 60 + - COALESCE ( - + COUNT ( * ), - ( + 9 ) + + 99 + - - 55 ) AS col2
----
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6683
SELECT 54 + + 83 DIV 90 AS col1, COUNT( * ) * + + NULLIF ( - - 70, + 84 )
----
54
70

skipif mysql # not compatible
query II rowsort label-6683
SELECT 54 + + 83 / 90 AS col1, COUNT ( * ) * + + NULLIF ( - - 70, + 84 )
----
54
70

query I rowsort
SELECT - 43 - + ( + + 51 ) AS col0
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-6685
SELECT 13 * - CASE 92 WHEN + 54 / - ( - MIN( ALL 82 ) ) - + 55 + 4 * 6 THEN NULL WHEN COUNT( * ) + - COUNT( * ) THEN + 94 + 45 ELSE 34 + 14 * 93 END AS col0
----
-17368

skipif mysql # not compatible
query I rowsort label-6685
SELECT 13 * - CASE 92 WHEN + 54 / - ( - MIN ( ALL 82 ) ) - + 55 + 4 * 6 THEN NULL WHEN COUNT ( * ) + - COUNT ( * ) THEN + 94 + 45 ELSE 34 + 14 * 93 END AS col0
----
-17368

query I rowsort
SELECT - 87 + - 86 AS col0
----
-173

query II rowsort
SELECT DISTINCT 0 col0, 62 AS col2
----
0
62

onlyif mysql # aggregate syntax: 
query I rowsort label-6688
SELECT ALL + CASE - 76 WHEN COUNT( * ) + ( - 70 ) * 91 * CASE ( - 94 ) WHEN + MIN( 3 ) + ( 0 ) THEN + 79 WHEN 31 THEN NULL ELSE - 74 END + - ( COUNT( * ) ) THEN - 32 * 84 + - ( + ( 34 ) ) END + 5
----
NULL

skipif mysql # not compatible
query I rowsort label-6688
SELECT ALL + CASE - 76 WHEN COUNT ( * ) + ( - 70 ) * 91 * CASE ( - 94 ) WHEN + MIN ( 3 ) + ( 0 ) THEN + 79 WHEN 31 THEN NULL ELSE - 74 END + - ( COUNT ( * ) ) THEN - 32 * 84 + - ( + ( 34 ) ) END + 5
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6689
SELECT DISTINCT + - 77 * + 85 * MAX( DISTINCT 97 )
----
-634865

skipif mysql # not compatible
query I rowsort label-6689
SELECT DISTINCT + - 77 * + 85 * MAX ( DISTINCT 97 )
----
-634865

onlyif mysql # DIV for integer division: 
query II rowsort label-6690
SELECT ( 87 ) DIV + 54 + 21 * + + 33 AS col0, - ( - 71 ) * + - ( 11 ) - + - COALESCE ( 62, - 98 + 67, 8 )
----
694
-719

skipif mysql # not compatible
query II rowsort label-6690
SELECT ( 87 ) / + 54 + 21 * + + 33 AS col0, - ( - 71 ) * + - ( 11 ) - + - COALESCE ( 62, - 98 + 67, 8 )
----
694
-719

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6691
SELECT CAST( NULL AS SIGNED ) + - COUNT( * ) + - + ( + 55 ) * CAST( NULL AS SIGNED ) AS col2, 12 DIV + + 26
----
NULL
0

skipif mysql # not compatible
query II rowsort label-6691
SELECT CAST ( NULL AS INTEGER ) + - COUNT ( * ) + - + ( + 55 ) * CAST ( NULL AS INTEGER ) AS col2, 12 / + + 26
----
NULL
0

query II rowsort
SELECT - 23, - 27 AS col0
----
-23
-27

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6693
SELECT DISTINCT + 62 + ( + 58 ) + - CAST( 29 AS SIGNED ) col0, - 82 + - 51
----
91
-133

skipif mysql # not compatible
query II rowsort label-6693
SELECT DISTINCT + 62 + ( + 58 ) + - CAST ( 29 AS INTEGER ) col0, - 82 + - 51
----
91
-133

query II rowsort
SELECT ALL - 82 AS col1, 21 + - 68 AS col0
----
-82
-47

query I rowsort
SELECT 41 * 7 + 91 * + ( 35 )
----
3472

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6696
SELECT ALL - + 72 + + 17 - + COUNT( * ) + - 42 + 37 + + 86 DIV COUNT( * ) DIV 13 DIV + 82 * + COUNT( CAST( + 23 AS SIGNED ) ) AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-6696
SELECT ALL - + 72 + + 17 - + COUNT ( * ) + - 42 + 37 + + 86 / COUNT ( * ) / 13 / + 82 * + COUNT ( CAST ( + 23 AS INTEGER ) ) AS col1
----
-61

onlyif mysql # DIV for integer division: 
query II rowsort label-6697
SELECT DISTINCT - 54 col0, + 4 DIV + 71
----
-54
0

skipif mysql # not compatible
query II rowsort label-6697
SELECT DISTINCT - 54 col0, + 4 / + 71
----
-54
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6698
SELECT DISTINCT - 31, 14 DIV - COALESCE ( - 34, - 58 + 33 + - COUNT( * ) ) AS col1
----
-31
0

skipif mysql # not compatible
query II rowsort label-6698
SELECT DISTINCT - 31, 14 / - COALESCE ( - 34, - 58 + 33 + - COUNT ( * ) ) AS col1
----
-31
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6699
SELECT - 79 * + 62 * 24 + - MIN( ALL - - 98 ) AS col1
----
-117650

skipif mysql # not compatible
query I rowsort label-6699
SELECT - 79 * + 62 * 24 + - MIN ( ALL - - 98 ) AS col1
----
-117650

query I rowsort
SELECT ALL 20 - + 93
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-6701
SELECT ALL MIN( - 60 ) * + 82 AS col1
----
-4920

skipif mysql # not compatible
query I rowsort label-6701
SELECT ALL MIN ( - 60 ) * + 82 AS col1
----
-4920

onlyif mysql # aggregate syntax: 
query II rowsort label-6702
SELECT CASE - 5 WHEN + COUNT( * ) THEN + 35 ELSE NULL END * + 81 / - COUNT( * ), SUM( - + 87 ) + 80 AS col2
----
NULL
-7

skipif mysql # not compatible
query II rowsort label-6702
SELECT CASE - 5 WHEN + COUNT ( * ) THEN + 35 ELSE NULL END * + 81 / - COUNT ( * ), SUM ( - + 87 ) + 80 AS col2
----
NULL
-7

query II rowsort
SELECT 28 * 81, + 34 AS col2
----
2268
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6704
SELECT CASE + 92 WHEN 24 THEN NULL WHEN 8 * 60 THEN + COUNT( * ) ELSE + 52 DIV - + COUNT( - 18 ) + + 83 * 5 END + NULLIF ( ( 2 ), - 88 )
----
365

skipif mysql # not compatible
query I rowsort label-6704
SELECT CASE + 92 WHEN 24 THEN NULL WHEN 8 * 60 THEN + COUNT ( * ) ELSE + 52 / - + COUNT ( - 18 ) + + 83 * 5 END + NULLIF ( ( 2 ), - 88 )
----
365

onlyif mysql # aggregate syntax: 
query II rowsort label-6705
SELECT ALL - 73 AS col2, 98 * + COUNT( * )
----
-73
98

skipif mysql # not compatible
query II rowsort label-6705
SELECT ALL - 73 AS col2, 98 * + COUNT ( * )
----
-73
98

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6706
SELECT CAST( NULL AS DECIMAL ) * + 67 * - 67
----
NULL

skipif mysql # not compatible
query I rowsort label-6706
SELECT CAST ( NULL AS REAL ) * + 67 * - 67
----
NULL

query I rowsort
SELECT ALL - CASE - + 36 WHEN - COALESCE ( 9, - ( + 24 ) - - + 20 + - + 1 + + + 93 * - 10 * + 88 * 50 ) THEN - 51 + 54 END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6708
SELECT - ( + + 21 ) * + - 78 + - NULLIF ( + + 42, - 57 * - + ( COALESCE ( + - 94, + CAST( NULL AS SIGNED ) ) ) ) AS col0
----
1596

skipif mysql # not compatible
query I rowsort label-6708
SELECT - ( + + 21 ) * + - 78 + - NULLIF ( + + 42, - 57 * - + ( COALESCE ( + - 94, + CAST ( NULL AS INTEGER ) ) ) ) AS col0
----
1596

onlyif mysql # aggregate syntax: 
query I rowsort label-6709
SELECT DISTINCT CASE 69 WHEN + COALESCE ( - - COUNT( * ), + 9 ) - + + SUM( ALL + 36 ) THEN - + NULLIF ( + + COUNT( * ), + 17 ) ELSE NULL END - 24 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6709
SELECT DISTINCT CASE 69 WHEN + COALESCE ( - - COUNT ( * ), + 9 ) - + + SUM ( ALL + 36 ) THEN - + NULLIF ( + + COUNT ( * ), + 17 ) ELSE NULL END - 24 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6710
SELECT COUNT( * ) * 16 AS col0
----
16

skipif mysql # not compatible
query I rowsort label-6710
SELECT COUNT ( * ) * 16 AS col0
----
16

query II rowsort
SELECT 53 * 59 AS col0, 25 * 91 * - 97
----
3127
-220675

query II rowsort
SELECT 46 AS col0, - 69 col2
----
46
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6713
SELECT 82 DIV - 63 * - + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-6713
SELECT 82 / - 63 * - + COUNT ( * )
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-6714
SELECT ALL - 40 DIV + 50, ( COALESCE ( - 94, + 16 ) ) AS col2
----
0
-94

skipif mysql # not compatible
query II rowsort label-6714
SELECT ALL - 40 / + 50, ( COALESCE ( - 94, + 16 ) ) AS col2
----
0
-94

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6715
SELECT + 85 * - 4 * + 41 * + COUNT( * ), 44 DIV - 10 AS col1
----
-13940
-4

skipif mysql # not compatible
query II rowsort label-6715
SELECT + 85 * - 4 * + 41 * + COUNT ( * ), 44 / - 10 AS col1
----
-13940
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-6716
SELECT DISTINCT SUM( ALL + 2 ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-6716
SELECT DISTINCT SUM ( ALL + 2 ) AS col2
----
2

query II rowsort
SELECT - - 61 AS col0, - 27
----
61
-27

query I rowsort
SELECT ALL - 85 + + 50
----
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-6719
SELECT ALL + + 25 * - + 21 + + 4 + + 44 DIV + 92 + - - 27
----
-494

skipif mysql # not compatible
query I rowsort label-6719
SELECT ALL + + 25 * - + 21 + + 4 + + 44 / + 92 + - - 27
----
-494

query I rowsort
SELECT DISTINCT - + CASE + 74 WHEN 38 * + + 82 THEN + 64 END + - + 60 + + - 72 + - 12 * + 95
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6721
SELECT NULLIF ( - 27, 51 + + ( + - CASE 4 WHEN - CASE - 2 WHEN + - 6 THEN + ( + + MAX( 2 ) ) END * - ( - CAST( NULL AS SIGNED ) ) THEN NULL WHEN + 53 THEN NULL ELSE - COUNT( * ) END ) )
----
-27

skipif mysql # not compatible
query I rowsort label-6721
SELECT NULLIF ( - 27, 51 + + ( + - CASE 4 WHEN - CASE - 2 WHEN + - 6 THEN + ( + + MAX ( 2 ) ) END * - ( - CAST ( NULL AS INTEGER ) ) THEN NULL WHEN + 53 THEN NULL ELSE - COUNT ( * ) END ) )
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-6722
SELECT DISTINCT + 82 + + COUNT( * ) col2
----
83

skipif mysql # not compatible
query I rowsort label-6722
SELECT DISTINCT + 82 + + COUNT ( * ) col2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-6723
SELECT ALL - - 12 + + + COUNT( + 37 )
----
13

skipif mysql # not compatible
query I rowsort label-6723
SELECT ALL - - 12 + + + COUNT ( + 37 )
----
13

query II rowsort
SELECT - 96, 10 AS col0
----
-96
10

query I rowsort
SELECT - 87 * - 73 AS col0
----
6351

query I rowsort
SELECT ALL NULLIF ( - 48, - AVG ( + 66 ) )
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6727
SELECT ALL - - COALESCE ( + - 10, 32 ) + - 81 * - 46 * + COALESCE ( CAST( NULL AS SIGNED ), - COUNT( * ) * - + 20 ) AS col1
----
74510

skipif mysql # not compatible
query I rowsort label-6727
SELECT ALL - - COALESCE ( + - 10, 32 ) + - 81 * - 46 * + COALESCE ( CAST ( NULL AS INTEGER ), - COUNT ( * ) * - + 20 ) AS col1
----
74510

query II rowsort
SELECT - ( 36 ) AS col1, 55 AS col2
----
-36
55

onlyif mysql # aggregate syntax: 
query I rowsort label-6729
SELECT DISTINCT - ( + COUNT( * ) ) + - 84 AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-6729
SELECT DISTINCT - ( + COUNT ( * ) ) + - 84 AS col1
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-6730
SELECT - MIN( 93 )
----
-93

skipif mysql # not compatible
query I rowsort label-6730
SELECT - MIN ( 93 )
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-6731
SELECT ALL + COUNT( * ) - + + 54 - - 75
----
22

skipif mysql # not compatible
query I rowsort label-6731
SELECT ALL + COUNT ( * ) - + + 54 - - 75
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-6732
SELECT ALL - 51 DIV - 39
----
1

skipif mysql # not compatible
query I rowsort label-6732
SELECT ALL - 51 / - 39
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-6733
SELECT + 38 DIV - 43 AS col0, + 80 AS col2
----
0
80

skipif mysql # not compatible
query II rowsort label-6733
SELECT + 38 / - 43 AS col0, + 80 AS col2
----
0
80

query I rowsort
SELECT + 55 * - 46 AS col2
----
-2530

query II rowsort
SELECT DISTINCT - 33 * + - 45 AS col2, + 44 + - 91 + 59 * + 23 AS col0
----
1485
1310

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6736
SELECT ALL 25 * 14 - - - COUNT( CAST( NULL AS SIGNED ) ) * - + 29
----
350

skipif mysql # not compatible
query I rowsort label-6736
SELECT ALL 25 * 14 - - - COUNT ( CAST ( NULL AS INTEGER ) ) * - + 29
----
350

onlyif mysql # DIV for integer division: 
query I rowsort label-6737
SELECT + 8 DIV 60 * - 74
----
0

skipif mysql # not compatible
query I rowsort label-6737
SELECT + 8 / 60 * - 74
----
0

query II rowsort
SELECT DISTINCT - 34 * - - 51, + 59 AS col1
----
-1734
59

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6739
SELECT ALL ( - NULLIF ( 68, CAST( NULL AS DECIMAL ) * + + COUNT( * ) ) ) * + 63 - - 12 - + 62 - 99 * - 87 - - 80 AS col2
----
4359

skipif mysql # not compatible
query I rowsort label-6739
SELECT ALL ( - NULLIF ( 68, CAST ( NULL AS REAL ) * + + COUNT ( * ) ) ) * + 63 - - 12 - + 62 - 99 * - 87 - - 80 AS col2
----
4359

query I rowsort
SELECT CASE - 22 WHEN + 4 * 11 * - + 89 THEN - - 39 + 77 * - + 81 END
----
NULL

query I rowsort
SELECT DISTINCT + 61 * ( + 4 ) AS col2
----
244

query II rowsort
SELECT + 24 + - 61 AS col0, 13 AS col1
----
-37
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6743
SELECT NULLIF ( 62, - - CAST( MAX( ALL + + 0 ) AS SIGNED ) * + - 72 + + + 73 - - 29 ) AS col2
----
62

skipif mysql # not compatible
query I rowsort label-6743
SELECT NULLIF ( 62, - - CAST ( MAX ( ALL + + 0 ) AS INTEGER ) * + - 72 + + + 73 - - 29 ) AS col2
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-6744
SELECT ALL - ( + 42 ) * + 13 * - 73 + + - 64 + + COUNT( * )
----
39795

skipif mysql # not compatible
query I rowsort label-6744
SELECT ALL - ( + 42 ) * + 13 * - 73 + + - 64 + + COUNT ( * )
----
39795

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6745
SELECT ALL + COUNT( * ) DIV + + 69 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6745
SELECT ALL + COUNT ( * ) / + + 69 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6746
SELECT ALL + - 69 * 94 + + 98 + CAST( NULL AS SIGNED ) + + - 86 + - NULLIF ( + 72, + + NULLIF ( ( + COUNT( * ) ), NULLIF ( + + COUNT( * ), 84 * 2 ) - - 12 ) ) - - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6746
SELECT ALL + - 69 * 94 + + 98 + CAST ( NULL AS INTEGER ) + + - 86 + - NULLIF ( + 72, + + NULLIF ( ( + COUNT ( * ) ), NULLIF ( + + COUNT ( * ), 84 * 2 ) - - 12 ) ) - - COUNT ( * ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6747
SELECT ALL 66 * - 66 AS col1, - 89 * - + COUNT( - + CAST( NULL AS DECIMAL ) ) / - 2 - + CASE 56 WHEN 77 THEN NULL WHEN - 34 THEN NULL WHEN - 94 + 3 THEN 4 END / + CAST( NULL AS SIGNED ) AS col0
----
-4356
NULL

skipif mysql # not compatible
query II rowsort label-6747
SELECT ALL 66 * - 66 AS col1, - 89 * - + COUNT ( - + CAST ( NULL AS REAL ) ) / - 2 - + CASE 56 WHEN 77 THEN NULL WHEN - 34 THEN NULL WHEN - 94 + 3 THEN 4 END / + CAST ( NULL AS INTEGER ) AS col0
----
-4356
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6748
SELECT DISTINCT - 86 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6748
SELECT DISTINCT - 86 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6749
SELECT ALL MAX( ALL - 40 ) + - 34 * + CAST( + - COUNT( * ) AS SIGNED ) AS col0, 79 AS col0
----
-6
79

skipif mysql # not compatible
query II rowsort label-6749
SELECT ALL MAX ( ALL - 40 ) + - 34 * + CAST ( + - COUNT ( * ) AS INTEGER ) AS col0, 79 AS col0
----
-6
79

query I rowsort
SELECT - 19 * + + 54 + - 93 AS col0
----
-1119

onlyif mysql # aggregate syntax: 
query I rowsort label-6751
SELECT + + ( - + COUNT( * ) ) + + 44
----
43

skipif mysql # not compatible
query I rowsort label-6751
SELECT + + ( - + COUNT ( * ) ) + + 44
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-6752
SELECT DISTINCT - + 60 DIV 18 col1
----
-3

skipif mysql # not compatible
query I rowsort label-6752
SELECT DISTINCT - + 60 / 18 col1
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6753
SELECT + - 98 + - 36 - + + 24 * 50 * - + CASE + + 18 WHEN 0 THEN + 82 + CAST( + - COUNT( * ) AS SIGNED ) END * - COUNT( * ) / + MIN( DISTINCT - 1 ) + + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6753
SELECT + - 98 + - 36 - + + 24 * 50 * - + CASE + + 18 WHEN 0 THEN + 82 + CAST ( + - COUNT ( * ) AS INTEGER ) END * - COUNT ( * ) / + MIN ( DISTINCT - 1 ) + + COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6754
SELECT ALL - COUNT( ALL 73 ) + + - COALESCE ( - 49, ( - 8 ), + 98 ) - + 13 AS col1
----
35

skipif mysql # not compatible
query I rowsort label-6754
SELECT ALL - COUNT ( ALL 73 ) + + - COALESCE ( - 49, ( - 8 ), + 98 ) - + 13 AS col1
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6755
SELECT DISTINCT + NULLIF ( - COUNT( * ), 41 * CASE 39 WHEN 87 THEN - + 81 * - COUNT( * ) + + - 76 ELSE NULL END - 51 ) DIV + 18 col0
----
0

skipif mysql # not compatible
query I rowsort label-6755
SELECT DISTINCT + NULLIF ( - COUNT ( * ), 41 * CASE 39 WHEN 87 THEN - + 81 * - COUNT ( * ) + + - 76 ELSE NULL END - 51 ) / + 18 col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6756
SELECT - COUNT( * ) + + 98 AS col1, + 81
----
97
81

skipif mysql # not compatible
query II rowsort label-6756
SELECT - COUNT ( * ) + + 98 AS col1, + 81
----
97
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6757
SELECT DISTINCT + 10 * - - COUNT( - 29 ) + - - 90
----
100

skipif mysql # not compatible
query I rowsort label-6757
SELECT DISTINCT + 10 * - - COUNT ( - 29 ) + - - 90
----
100

query I rowsort
SELECT ALL - 52 - + ( 80 ) AS col1
----
-132

query I rowsort
SELECT ALL - 47 * + + 99
----
-4653

onlyif mysql # DIV for integer division: 
query II rowsort label-6760
SELECT - 32 * + - 49 * 40, 24 DIV + ( - + 32 ) AS col2
----
62720
0

skipif mysql # not compatible
query II rowsort label-6760
SELECT - 32 * + - 49 * 40, 24 / + ( - + 32 ) AS col2
----
62720
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6761
SELECT 45 AS col0, - 17 * 95 * + - CAST( NULL AS SIGNED ) AS col2
----
45
NULL

skipif mysql # not compatible
query II rowsort label-6761
SELECT 45 AS col0, - 17 * 95 * + - CAST ( NULL AS INTEGER ) AS col2
----
45
NULL

query II rowsort
SELECT + 11, NULLIF ( 77, 59 ) col2
----
11
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6763
SELECT ALL - COUNT( * ) * + + 5 AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-6763
SELECT ALL - COUNT ( * ) * + + 5 AS col2
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-6764
SELECT DISTINCT - 2 DIV 7 * - 26 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6764
SELECT DISTINCT - 2 / 7 * - 26 AS col2
----
0

query I rowsort
SELECT - 66 * - COALESCE ( - 78, + 5, + 55 ) * + 22
----
-113256

query I rowsort
SELECT - 36 * - 16
----
576

query I rowsort
SELECT + CASE - - 84 WHEN - 10 THEN NULL WHEN + + 84 THEN 82 ELSE NULL END AS col1
----
82

query I rowsort
SELECT + 1 * NULLIF ( 48, 14 ) * 65
----
3120

onlyif mysql # aggregate syntax: 
query I rowsort label-6769
SELECT ALL - 85 * - - COUNT( * ) AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-6769
SELECT ALL - 85 * - - COUNT ( * ) AS col0
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6770
SELECT DISTINCT + CAST( - + 3 AS SIGNED ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-6770
SELECT DISTINCT + CAST ( - + 3 AS INTEGER ) AS col2
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6771
SELECT ALL - ( - COUNT( * ) ) DIV 61 + - ( + 23 ) - + - 94 AS col2, 21 AS col1
----
71
21

skipif mysql # not compatible
query II rowsort label-6771
SELECT ALL - ( - COUNT ( * ) ) / 61 + - ( + 23 ) - + - 94 AS col2, 21 AS col1
----
71
21

query I rowsort
SELECT - 30 + + - 23
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-6773
SELECT + MAX( DISTINCT - 16 )
----
-16

skipif mysql # not compatible
query I rowsort label-6773
SELECT + MAX ( DISTINCT - 16 )
----
-16

query I rowsort
SELECT - 65 * NULLIF ( - - CASE + ( 63 ) WHEN - + 79 THEN 41 END, + ( 34 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6775
SELECT ALL - 57 + - + COUNT( * ) AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-6775
SELECT ALL - 57 + - + COUNT ( * ) AS col2
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6776
SELECT + 46 AS col1, COUNT( * ) / - 22 * - + CAST( NULL AS SIGNED ) / + 31
----
46
NULL

skipif mysql # not compatible
query II rowsort label-6776
SELECT + 46 AS col1, COUNT ( * ) / - 22 * - + CAST ( NULL AS INTEGER ) / + 31
----
46
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6777
SELECT CAST( NULL AS SIGNED ) * + COUNT( * ) * - 3
----
NULL

skipif mysql # not compatible
query I rowsort label-6777
SELECT CAST ( NULL AS INTEGER ) * + COUNT ( * ) * - 3
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6778
SELECT + CASE - - 93 WHEN + COUNT( * ) THEN + 50 * + 35 + - COALESCE ( + - 53, - 48 - - 21 ) ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6778
SELECT + CASE - - 93 WHEN + COUNT ( * ) THEN + 50 * + 35 + - COALESCE ( + - 53, - 48 - - 21 ) ELSE NULL END col1
----
NULL

query I rowsort
SELECT 99 + 53 AS col2
----
152

query I rowsort
SELECT ALL + 33 * + + 28 AS col2
----
924

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6781
SELECT DISTINCT - COUNT( * ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6781
SELECT DISTINCT - COUNT ( * ) * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6782
SELECT ALL 22 - - - COALESCE ( - + 69, + + 65 + COUNT( * ) * + 67 * + 43 + - COUNT( * ) - - + CASE - 41 WHEN - 22 THEN - 5 ELSE 72 END + + 31 * ( ( + COUNT( * ) ) - 38 ) DIV NULLIF ( - 72 * 2, - COALESCE ( 63, 82 + - 38 ) * - 81 + - 39 ) )
----
91

skipif mysql # not compatible
query I rowsort label-6782
SELECT ALL 22 - - - COALESCE ( - + 69, + + 65 + COUNT ( * ) * + 67 * + 43 + - COUNT ( * ) - - + CASE - 41 WHEN - 22 THEN - 5 ELSE 72 END + + 31 * ( ( + COUNT ( * ) ) - 38 ) / NULLIF ( - 72 * 2, - COALESCE ( 63, 82 + - 38 ) * - 81 + - 39 ) )
----
91

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6783
SELECT - - COUNT( + CAST( + + 28 AS DECIMAL ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6783
SELECT - - COUNT ( + CAST ( + + 28 AS REAL ) ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6784
SELECT DISTINCT - COALESCE ( 91, - 95, + MAX( - CAST( - 36 AS SIGNED ) ) ) AS col0, - 80 AS col0
----
-91
-80

skipif mysql # not compatible
query II rowsort label-6784
SELECT DISTINCT - COALESCE ( 91, - 95, + MAX ( - CAST ( - 36 AS INTEGER ) ) ) AS col0, - 80 AS col0
----
-91
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-6785
SELECT ALL SUM( ALL + 66 ) * - COUNT( * ) * - 29 + ( - 27 ) + - + NULLIF ( + COUNT( * ), - - COUNT( * ) + 84 * - 83 )
----
1886

skipif mysql # not compatible
query I rowsort label-6785
SELECT ALL SUM ( ALL + 66 ) * - COUNT ( * ) * - 29 + ( - 27 ) + - + NULLIF ( + COUNT ( * ), - - COUNT ( * ) + 84 * - 83 )
----
1886

query I rowsort
SELECT + 6 / - - 99 / + CASE + COALESCE ( ( 73 ), 79, - + 32 + + 82 ) WHEN - 49 + + - 11 THEN 83 + 89 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL + 81 - - 62 AS col2
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-6788
SELECT + MIN( DISTINCT + 20 ) AS col0
----
20

skipif mysql # not compatible
query I rowsort label-6788
SELECT + MIN ( DISTINCT + 20 ) AS col0
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-6789
SELECT 47 DIV 57 + + 2 + + + 27 + 91 AS col1
----
120

skipif mysql # not compatible
query I rowsort label-6789
SELECT 47 / 57 + + 2 + + + 27 + 91 AS col1
----
120

query I rowsort
SELECT COALESCE ( + 4, - 20, - 81, + ( 32 ) ) * + 5
----
20

onlyif mysql # DIV for integer division: 
query II rowsort label-6791
SELECT DISTINCT 2 DIV 16 * + 93 * - 79, 71 AS col2
----
0
71

skipif mysql # not compatible
query II rowsort label-6791
SELECT DISTINCT 2 / 16 * + 93 * - 79, 71 AS col2
----
0
71

onlyif mysql # aggregate syntax: 
query I rowsort label-6792
SELECT ALL - NULLIF ( + 86, + - MIN( DISTINCT - - 75 ) ) * - 11 * + 55 * - + COALESCE ( - + NULLIF ( + - 94, - CASE - - 75 WHEN - 94 THEN - - 28 END + + + 13 ), SUM( ALL 36 ) + 19 ) AS col2
----
-4890820

skipif mysql # not compatible
query I rowsort label-6792
SELECT ALL - NULLIF ( + 86, + - MIN ( DISTINCT - - 75 ) ) * - 11 * + 55 * - + COALESCE ( - + NULLIF ( + - 94, - CASE - - 75 WHEN - 94 THEN - - 28 END + + + 13 ), SUM ( ALL 36 ) + 19 ) AS col2
----
-4890820

onlyif mysql # aggregate syntax: 
query I rowsort label-6793
SELECT 27 - + + COUNT( * )
----
26

skipif mysql # not compatible
query I rowsort label-6793
SELECT 27 - + + COUNT ( * )
----
26

query I rowsort
SELECT 1 + 92
----
93

query I rowsort
SELECT ALL - 16 * - 72 AS col0
----
1152

onlyif mysql # aggregate syntax: 
query II rowsort label-6796
SELECT DISTINCT - COUNT( ALL + 49 ), 86 AS col2
----
-1
86

skipif mysql # not compatible
query II rowsort label-6796
SELECT DISTINCT - COUNT ( ALL + 49 ), 86 AS col2
----
-1
86

onlyif mysql # aggregate syntax: 
query I rowsort label-6797
SELECT DISTINCT - CASE - COUNT( * ) WHEN + - 90 THEN 5 END * - + 1 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6797
SELECT DISTINCT - CASE - COUNT ( * ) WHEN + - 90 THEN 5 END * - + 1 AS col0
----
NULL

query I rowsort
SELECT ALL + 44 + - 26 col1
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6799
SELECT 27 + - CASE + 60 WHEN - + NULLIF ( + COALESCE ( - 55, - - 99, + 95 + COALESCE ( + COUNT( * ), - 78, CAST( NULL AS SIGNED ) + - COUNT( * ) ) - - 37 * 76 ), 58 ) * COALESCE ( 98, 46 ) THEN 31 END * + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6799
SELECT 27 + - CASE + 60 WHEN - + NULLIF ( + COALESCE ( - 55, - - 99, + 95 + COALESCE ( + COUNT ( * ), - 78, CAST ( NULL AS INTEGER ) + - COUNT ( * ) ) - - 37 * 76 ), 58 ) * COALESCE ( 98, 46 ) THEN 31 END * + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT 33 * + 62 * + 72
----
147312

onlyif mysql # aggregate syntax: 
query I rowsort label-6801
SELECT ALL ( + - 8 ) + SUM( 66 )
----
58

skipif mysql # not compatible
query I rowsort label-6801
SELECT ALL ( + - 8 ) + SUM ( 66 )
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6802
SELECT ALL - 54 + AVG ( - NULLIF ( + - 95, + 71 * - 45 + 38 ) ) - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6802
SELECT ALL - 54 + AVG ( - NULLIF ( + - 95, + 71 * - 45 + 38 ) ) - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6803
SELECT DISTINCT - CAST( - + 32 AS SIGNED ) + - 7
----
25

skipif mysql # not compatible
query I rowsort label-6803
SELECT DISTINCT - CAST ( - + 32 AS INTEGER ) + - 7
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-6804
SELECT MIN( + - 22 ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-6804
SELECT MIN ( + - 22 ) AS col1
----
-22

query I rowsort
SELECT + - ( - - 20 )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-6806
SELECT ALL - + MAX( DISTINCT - 98 ) + - NULLIF ( - + 6, - 37 ) + - + COUNT( * ) AS col2
----
103

skipif mysql # not compatible
query I rowsort label-6806
SELECT ALL - + MAX ( DISTINCT - 98 ) + - NULLIF ( - + 6, - 37 ) + - + COUNT ( * ) AS col2
----
103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6807
SELECT ALL + - 18 DIV - 42, 73 DIV - 40 + + 39 DIV NULLIF ( - CAST( + - COUNT( * ) AS SIGNED ), + 32 ) AS col1
----
0
38

skipif mysql # not compatible
query II rowsort label-6807
SELECT ALL + - 18 / - 42, 73 / - 40 + + 39 / NULLIF ( - CAST ( + - COUNT ( * ) AS INTEGER ), + 32 ) AS col1
----
0
38

onlyif mysql # aggregate syntax: 
query I rowsort label-6808
SELECT + + CASE ( - 31 ) WHEN MAX( + 64 ) * - 69 THEN NULL ELSE 80 END
----
80

skipif mysql # not compatible
query I rowsort label-6808
SELECT + + CASE ( - 31 ) WHEN MAX ( + 64 ) * - 69 THEN NULL ELSE 80 END
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6809
SELECT ALL - + 5 * + 4 * + CAST( NULL AS DECIMAL ) - + COUNT( * ) + COALESCE ( - - 17, COUNT( * ), - CAST( NULL AS SIGNED ) * + COALESCE ( - 96, + - 6 ) ) * + 82
----
NULL

skipif mysql # not compatible
query I rowsort label-6809
SELECT ALL - + 5 * + 4 * + CAST ( NULL AS REAL ) - + COUNT ( * ) + COALESCE ( - - 17, COUNT ( * ), - CAST ( NULL AS INTEGER ) * + COALESCE ( - 96, + - 6 ) ) * + 82
----
NULL

query I rowsort
SELECT - 97 * + + 43 + 93 AS col2
----
-4078

onlyif mysql # aggregate syntax: 
query I rowsort label-6811
SELECT DISTINCT - COUNT( * ) * + + 52 * + - 10 AS col1
----
520

skipif mysql # not compatible
query I rowsort label-6811
SELECT DISTINCT - COUNT ( * ) * + + 52 * + - 10 AS col1
----
520

onlyif mysql # aggregate syntax: 
query II rowsort label-6812
SELECT ALL - + COUNT( * ) * + 15, 8 + - 52 AS col0
----
-15
-44

skipif mysql # not compatible
query II rowsort label-6812
SELECT ALL - + COUNT ( * ) * + 15, 8 + - 52 AS col0
----
-15
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6813
SELECT 47 - + CAST( NULL AS SIGNED ) * - - 8 + + ( CAST( - ( - + ( - + 14 ) ) AS SIGNED ) ) + 9 AS col0, COUNT( * ) - - COUNT( * ) AS col2
----
NULL
2

skipif mysql # not compatible
query II rowsort label-6813
SELECT 47 - + CAST ( NULL AS INTEGER ) * - - 8 + + ( CAST ( - ( - + ( - + 14 ) ) AS INTEGER ) ) + 9 AS col0, COUNT ( * ) - - COUNT ( * ) AS col2
----
NULL
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6814
SELECT ALL + - NULLIF ( + - 91, - 44 / COUNT( * ) + + - COUNT( * ) + - - 95 * - MAX( 89 ) ) - + 5 - + 29 + - + 36 * 45
----
-1563

skipif mysql # not compatible
query I rowsort label-6814
SELECT ALL + - NULLIF ( + - 91, - 44 / COUNT ( * ) + + - COUNT ( * ) + - - 95 * - MAX ( 89 ) ) - + 5 - + 29 + - + 36 * 45
----
-1563

query I rowsort
SELECT 95 + + 22 col1
----
117

query I rowsort
SELECT 26 * 41
----
1066

query I rowsort
SELECT 72 + 70 AS col2
----
142

query I rowsort
SELECT - 30 * - 16 * + + 3
----
1440

onlyif mysql # aggregate syntax: 
query I rowsort label-6819
SELECT ALL 0 * - 1 * - COUNT( * ) col0
----
0

skipif mysql # not compatible
query I rowsort label-6819
SELECT ALL 0 * - 1 * - COUNT ( * ) col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6820
SELECT - 70 + + SUM( DISTINCT 53 )
----
-17

skipif mysql # not compatible
query I rowsort label-6820
SELECT - 70 + + SUM ( DISTINCT 53 )
----
-17

query I rowsort
SELECT 62 - + ( 89 ) AS col1
----
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6822
SELECT DISTINCT + 29 DIV - COALESCE ( - + ( - CASE COUNT( * ) WHEN + 70 THEN CASE - COUNT( ALL 60 ) WHEN + 66 + - 46 * 51 + 33 THEN + 11 ELSE NULL END * + COUNT( + 37 ) WHEN - 21 * 40 THEN NULL END ), - 11 * + ( ( + COUNT( * ) ) ) ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-6822
SELECT DISTINCT + 29 / - COALESCE ( - + ( - CASE COUNT ( * ) WHEN + 70 THEN CASE - COUNT ( ALL 60 ) WHEN + 66 + - 46 * 51 + 33 THEN + 11 ELSE NULL END * + COUNT ( + 37 ) WHEN - 21 * 40 THEN NULL END ), - 11 * + ( ( + COUNT ( * ) ) ) ) AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6823
SELECT ALL COUNT( * ) * - + 41 AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-6823
SELECT ALL COUNT ( * ) * - + 41 AS col2
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-6824
SELECT COUNT( * ) + - 71 AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-6824
SELECT COUNT ( * ) + - 71 AS col0
----
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-6825
SELECT 70 AS col1, - COUNT( * ) * - ( 62 ) * ( + + NULLIF ( + 59, + 24 + COALESCE ( - - 7, - 52, 1 + 5 + - + 11 / + ( COUNT( * ) ) * + 73 ) ) )
----
70
3658

skipif mysql # not compatible
query II rowsort label-6825
SELECT 70 AS col1, - COUNT ( * ) * - ( 62 ) * ( + + NULLIF ( + 59, + 24 + COALESCE ( - - 7, - 52, 1 + 5 + - + 11 / + ( COUNT ( * ) ) * + 73 ) ) )
----
70
3658

query I rowsort
SELECT ALL 37 + 87
----
124

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6827
SELECT NULLIF ( CASE + + 67 WHEN 12 * - CAST( NULL AS SIGNED ) * + - CAST( NULL AS SIGNED ) / + 54 - - - 53 + 96 - - ( + 18 ) * 33 THEN 45 - + - 19 WHEN 96 THEN NULL END, COALESCE ( + 7, 55 ) * + 80 ) + 41 / 74 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6827
SELECT NULLIF ( CASE + + 67 WHEN 12 * - CAST ( NULL AS INTEGER ) * + - CAST ( NULL AS INTEGER ) / + 54 - - - 53 + 96 - - ( + 18 ) * 33 THEN 45 - + - 19 WHEN 96 THEN NULL END, COALESCE ( + 7, 55 ) * + 80 ) + 41 / 74 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6828
SELECT 56 + 95 + 34 DIV + 82 AS col0
----
151

skipif mysql # not compatible
query I rowsort label-6828
SELECT 56 + 95 + 34 / + 82 AS col0
----
151

query I rowsort
SELECT ALL ( 81 ) + - ( + 5 ) AS col1
----
76

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6830
SELECT 62 + + - COUNT( * ) + + CASE - 35 WHEN + COALESCE ( 83, + + 59 * - - 78 - 37 + - + 9 ) THEN + ( - 6 ) END * 88 + - CAST( NULL AS DECIMAL ) / - + 90
----
NULL

skipif mysql # not compatible
query I rowsort label-6830
SELECT 62 + + - COUNT ( * ) + + CASE - 35 WHEN + COALESCE ( 83, + + 59 * - - 78 - 37 + - + 9 ) THEN + ( - 6 ) END * 88 + - CAST ( NULL AS REAL ) / - + 90
----
NULL

query I rowsort
SELECT DISTINCT + 31 * - 3 AS col2
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-6832
SELECT ALL - COUNT( * ) * + CASE - 6 WHEN + 69 + + 58 + 8 * + MAX( ALL + + 59 ) - - + 60 + ( - 63 ) * - + COUNT( * ) / 31 THEN - - 83 WHEN + COUNT( * ) + - 43 * 39 THEN NULL ELSE + 9 END + + ( 82 + + 74 ) AS col1
----
147

skipif mysql # not compatible
query I rowsort label-6832
SELECT ALL - COUNT ( * ) * + CASE - 6 WHEN + 69 + + 58 + 8 * + MAX ( ALL + + 59 ) - - + 60 + ( - 63 ) * - + COUNT ( * ) / 31 THEN - - 83 WHEN + COUNT ( * ) + - 43 * 39 THEN NULL ELSE + 9 END + + ( 82 + + 74 ) AS col1
----
147

query I rowsort
SELECT ALL - ( 83 ) col0
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-6834
SELECT DISTINCT + 80 * 84 + 42 + + COUNT( * ) AS col2
----
6763

skipif mysql # not compatible
query I rowsort label-6834
SELECT DISTINCT + 80 * 84 + 42 + + COUNT ( * ) AS col2
----
6763

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6835
SELECT ALL - NULLIF ( 5, + CAST( NULL AS SIGNED ) * + 2 ) * + - 75 * ( - - 71 ) + - - 62 AS col0
----
26687

skipif mysql # not compatible
query I rowsort label-6835
SELECT ALL - NULLIF ( 5, + CAST ( NULL AS INTEGER ) * + 2 ) * + - 75 * ( - - 71 ) + - - 62 AS col0
----
26687

query II rowsort
SELECT + 19, + COALESCE ( 25, + 57, - 16 ) AS col0
----
19
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6837
SELECT ALL + 66 * + - 29 * + 38 * + + NULLIF ( + CAST( NULL AS SIGNED ), - + COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6837
SELECT ALL + 66 * + - 29 * + 38 * + + NULLIF ( + CAST ( NULL AS INTEGER ), - + COUNT ( * ) ) AS col1
----
NULL

query I rowsort
SELECT + - 60 + 37 * - 63
----
-2391

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6839
SELECT - 95 * - 0 DIV + 35 - - - 49 * - COALESCE ( 53, CASE 65 WHEN + + COUNT( * ) * - - 37 - - 56 THEN COUNT( ALL - 93 ) WHEN - 93 + NULLIF ( 60, 74 * + 65 ) + 68 * + CAST( NULL AS SIGNED ) THEN NULL ELSE - 96 END + + 34, + 3 ) AS col0
----
2597

skipif mysql # not compatible
query I rowsort label-6839
SELECT - 95 * - 0 / + 35 - - - 49 * - COALESCE ( 53, CASE 65 WHEN + + COUNT ( * ) * - - 37 - - 56 THEN COUNT ( ALL - 93 ) WHEN - 93 + NULLIF ( 60, 74 * + 65 ) + 68 * + CAST ( NULL AS INTEGER ) THEN NULL ELSE - 96 END + + 34, + 3 ) AS col0
----
2597

query I rowsort
SELECT DISTINCT ( + 70 ) * 25 + 63
----
1813

onlyif mysql # aggregate syntax: 
query I rowsort label-6841
SELECT DISTINCT ( + - 77 ) * + 58 + - + MAX( + 56 ) - ( 67 )
----
-4589

skipif mysql # not compatible
query I rowsort label-6841
SELECT DISTINCT ( + - 77 ) * + 58 + - + MAX ( + 56 ) - ( 67 )
----
-4589

onlyif mysql # DIV for integer division: 
query II rowsort label-6842
SELECT - - COALESCE ( + 85, + 53 DIV + - 82 ) * 40, - 6 AS col2
----
3400
-6

skipif mysql # not compatible
query II rowsort label-6842
SELECT - - COALESCE ( + 85, + 53 / + - 82 ) * 40, - 6 AS col2
----
3400
-6

query I rowsort
SELECT COALESCE ( - 12, - 88 * - - 16 ) * 26 * - + NULLIF ( + - 84, - 29 * - 96 + + 75 ) + - 78 AS col1
----
-26286

onlyif mysql # DIV for integer division: 
query I rowsort label-6844
SELECT - - ( + 15 ) DIV + 65 col1
----
0

skipif mysql # not compatible
query I rowsort label-6844
SELECT - - ( + 15 ) / + 65 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6845
SELECT ALL + NULLIF ( - NULLIF ( - 0, 77 ), - + COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-6845
SELECT ALL + NULLIF ( - NULLIF ( - 0, 77 ), - + COUNT ( * ) )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6846
SELECT + COUNT( * ) * + 1 + + - 70, 63 AS col0
----
-69
63

skipif mysql # not compatible
query II rowsort label-6846
SELECT + COUNT ( * ) * + 1 + + - 70, 63 AS col0
----
-69
63

onlyif mysql # aggregate syntax: 
query I rowsort label-6847
SELECT ALL + - SUM( ALL 47 ) AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-6847
SELECT ALL + - SUM ( ALL 47 ) AS col1
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6848
SELECT ALL + - CAST( + - 9 AS SIGNED ) * 33
----
297

skipif mysql # not compatible
query I rowsort label-6848
SELECT ALL + - CAST ( + - 9 AS INTEGER ) * 33
----
297

query I rowsort
SELECT - 81 * 91 + - 10 AS col0
----
-7381

query I rowsort
SELECT DISTINCT + ( + - 29 ) * + + 84
----
-2436

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6851
SELECT ALL + NULLIF ( - COUNT( * ), 74 * - CAST( COUNT( * ) AS SIGNED ) + CAST( NULL AS SIGNED ) + ( - 13 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-6851
SELECT ALL + NULLIF ( - COUNT ( * ), 74 * - CAST ( COUNT ( * ) AS INTEGER ) + CAST ( NULL AS INTEGER ) + ( - 13 ) )
----
-1

query II rowsort
SELECT 42 AS col1, 77 AS col2
----
42
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6853
SELECT ALL COALESCE ( CASE + 55 WHEN + 26 + 11 THEN 74 + - 53 - COUNT( * ) + 72 + + 29 END, + - 16 * + NULLIF ( - 57, - 8 ) + - ( + 66 ) + + 36 ) + + 45 AS col2
----
927

skipif mysql # not compatible
query I rowsort label-6853
SELECT ALL COALESCE ( CASE + 55 WHEN + 26 + 11 THEN 74 + - 53 - COUNT ( * ) + 72 + + 29 END, + - 16 * + NULLIF ( - 57, - 8 ) + - ( + 66 ) + + 36 ) + + 45 AS col2
----
927

onlyif mysql # aggregate syntax: 
query II rowsort label-6854
SELECT - MAX( 73 ) AS col2, + 23
----
-73
23

skipif mysql # not compatible
query II rowsort label-6854
SELECT - MAX ( 73 ) AS col2, + 23
----
-73
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6855
SELECT ALL ( - CASE 77 WHEN + 80 THEN 94 WHEN - 12 THEN - - 93 + - 62 + + 12 WHEN - COUNT( * ) * + 3 THEN NULL ELSE 24 * + 85 END )
----
-2040

skipif mysql # not compatible
query I rowsort label-6855
SELECT ALL ( - CASE 77 WHEN + 80 THEN 94 WHEN - 12 THEN - - 93 + - 62 + + 12 WHEN - COUNT ( * ) * + 3 THEN NULL ELSE 24 * + 85 END )
----
-2040

query III rowsort
SELECT ALL + 89 + - - 17 col1, - 0 + - + 45 col0, + 6 AS col1
----
106
-45
6

query I rowsort
SELECT - 13 - 68
----
-81

query I rowsort
SELECT ALL 84 + - 78
----
6

query I rowsort
SELECT - 89 - - + 69 * - - 19
----
1222

query I rowsort
SELECT - COALESCE ( - + 87, - 56 )
----
87

onlyif mysql # DIV for integer division: 
query III rowsort label-6861
SELECT ALL 21 AS col2, 48 DIV ( + 16 ) col1, + 70
----
21
3
70

skipif mysql # not compatible
query III rowsort label-6861
SELECT ALL 21 AS col2, 48 / ( + 16 ) col1, + 70
----
21
3
70

query I rowsort
SELECT + 66 * 2 AS col2
----
132

query I rowsort
SELECT ALL 77 + + 10 * - 90 + 97 * 28
----
1893

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6864
SELECT 56 AS col0, 6 * + - CAST( NULL AS DECIMAL ) / AVG ( DISTINCT 84 )
----
56
NULL

skipif mysql # not compatible
query II rowsort label-6864
SELECT 56 AS col0, 6 * + - CAST ( NULL AS REAL ) / AVG ( DISTINCT 84 )
----
56
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6865
SELECT DISTINCT + 72 + + 80 * - CASE 90 WHEN 75 * 20 / - + 57 * - - 88 + - ( - + 83 ) + + 96 * MAX( - 0 ) THEN NULL WHEN ( + 37 ) THEN + 95 + + 1 * 80 ELSE CASE - MIN( 70 ) WHEN + 95 THEN 9 WHEN - 20 THEN ( + 42 ) * 60 ELSE - MAX( DISTINCT ( 67 ) ) END * 1 END AS col2
----
5432

skipif mysql # not compatible
query I rowsort label-6865
SELECT DISTINCT + 72 + + 80 * - CASE 90 WHEN 75 * 20 / - + 57 * - - 88 + - ( - + 83 ) + + 96 * MAX ( - 0 ) THEN NULL WHEN ( + 37 ) THEN + 95 + + 1 * 80 ELSE CASE - MIN ( 70 ) WHEN + 95 THEN 9 WHEN - 20 THEN ( + 42 ) * 60 ELSE - MAX ( DISTINCT ( 67 ) ) END * 1 END AS col2
----
5432

query I rowsort
SELECT ALL 30 + 69
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6867
SELECT ALL CAST( NULL AS SIGNED ) * + - 73 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6867
SELECT ALL CAST ( NULL AS INTEGER ) * + - 73 AS col0
----
NULL

query I rowsort
SELECT - ( + ( 46 ) )
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-6869
SELECT + COUNT( * ) - + + 54 + 89
----
36

skipif mysql # not compatible
query I rowsort label-6869
SELECT + COUNT ( * ) - + + 54 + 89
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6870
SELECT CAST( - ( + 99 ) AS SIGNED ) AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-6870
SELECT CAST ( - ( + 99 ) AS INTEGER ) AS col2
----
-99

query I rowsort
SELECT + + NULLIF ( - 58, - 12 * - 25 / - 53 ) * 83 + + 0 AS col0
----
-4814

onlyif mysql # aggregate syntax: 
query I rowsort label-6872
SELECT + - 31 + - - COUNT( * ) AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-6872
SELECT + - 31 + - - COUNT ( * ) AS col0
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6873
SELECT ALL + 45 * + + COALESCE ( + + 82, + CAST( NULL AS SIGNED ) * + + ( + 51 ) )
----
3690

skipif mysql # not compatible
query I rowsort label-6873
SELECT ALL + 45 * + + COALESCE ( + + 82, + CAST ( NULL AS INTEGER ) * + + ( + 51 ) )
----
3690

query I rowsort
SELECT + + 40 * - 86
----
-3440

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6875
SELECT ALL 5 DIV COUNT( * )
----
5

skipif mysql # not compatible
query I rowsort label-6875
SELECT ALL 5 / COUNT ( * )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6876
SELECT ALL - COUNT( * ) * - 44 AS col0
----
44

skipif mysql # not compatible
query I rowsort label-6876
SELECT ALL - COUNT ( * ) * - 44 AS col0
----
44

query I rowsort
SELECT ALL + + NULLIF ( ( 66 ), 91 + + 80 ) * + NULLIF ( ( - 18 ), - 27 ) * 60
----
-71280

onlyif mysql # aggregate syntax: 
query II rowsort label-6878
SELECT + + COUNT( * ) AS col1, ( - COUNT( * ) ) + + ( COUNT( * ) ) AS col0
----
1
0

skipif mysql # not compatible
query II rowsort label-6878
SELECT + + COUNT ( * ) AS col1, ( - COUNT ( * ) ) + + ( COUNT ( * ) ) AS col0
----
1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6879
SELECT + NULLIF ( 99, 26 + - 47 ) * - - 34 * CASE ( + COUNT( * ) ) WHEN - - 87 + + 70 THEN - + NULLIF ( - 76, 63 / + ( - COUNT( * ) ) + + 7 * - 34 ) * - 45 + ( - 69 + + CASE 23 WHEN 6 - + 0 THEN COUNT( * ) * 55 ELSE NULL END ) WHEN + CASE 22 WHEN 59 THEN NULL WHEN 39 THEN 56 ELSE NULL END THEN + 43 WHEN 70 + 12 THEN NULL END + - 32 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6879
SELECT + NULLIF ( 99, 26 + - 47 ) * - - 34 * CASE ( + COUNT ( * ) ) WHEN - - 87 + + 70 THEN - + NULLIF ( - 76, 63 / + ( - COUNT ( * ) ) + + 7 * - 34 ) * - 45 + ( - 69 + + CASE 23 WHEN 6 - + 0 THEN COUNT ( * ) * 55 ELSE NULL END ) WHEN + CASE 22 WHEN 59 THEN NULL WHEN 39 THEN 56 ELSE NULL END THEN + 43 WHEN 70 + 12 THEN NULL END + - 32 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6880
SELECT - 85 * + + 15 + COUNT( * ) + + - 78 AS col1
----
-1352

skipif mysql # not compatible
query I rowsort label-6880
SELECT - 85 * + + 15 + COUNT ( * ) + + - 78 AS col1
----
-1352

onlyif mysql # aggregate syntax: 
query II rowsort label-6881
SELECT ALL + MIN( DISTINCT - 0 ) * - - 2 * + + 56, 86 AS col0
----
0
86

skipif mysql # not compatible
query II rowsort label-6881
SELECT ALL + MIN ( DISTINCT - 0 ) * - - 2 * + + 56, 86 AS col0
----
0
86

onlyif mysql # aggregate syntax: 
query I rowsort label-6882
SELECT + - 88 + + NULLIF ( - 69, + MAX( ALL + 46 ) )
----
-157

skipif mysql # not compatible
query I rowsort label-6882
SELECT + - 88 + + NULLIF ( - 69, + MAX ( ALL + 46 ) )
----
-157

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6883
SELECT CAST( - CAST( + 58 AS SIGNED ) AS SIGNED )
----
-58

skipif mysql # not compatible
query I rowsort label-6883
SELECT CAST ( - CAST ( + 58 AS INTEGER ) AS INTEGER )
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-6884
SELECT + 50 * COUNT( * ) + + 22 + + 19
----
91

skipif mysql # not compatible
query I rowsort label-6884
SELECT + 50 * COUNT ( * ) + + 22 + + 19
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6885
SELECT + SUM( - + 8 )
----
-8

skipif mysql # not compatible
query I rowsort label-6885
SELECT + SUM ( - + 8 )
----
-8

query I rowsort
SELECT ALL + 49 * - - 21 * - 62 + 58
----
-63740

query I rowsort
SELECT ALL + + CASE - 89 WHEN + ( - + 54 ) * + 57 + + 0 * - + 88 THEN NULL ELSE 57 END
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-6888
SELECT + - 38 * - 2 * 30 + + 95 + - 8 DIV + + 35 AS col0
----
2375

skipif mysql # not compatible
query I rowsort label-6888
SELECT + - 38 * - 2 * 30 + + 95 + - 8 / + + 35 AS col0
----
2375

query I rowsort
SELECT ALL 54 * + 24 + + 45 AS col2
----
1341

query I rowsort
SELECT - ( - 25 ) - - - COALESCE ( 36, - 38, 41 ) + 39
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-6891
SELECT + COUNT( * ) col2, + 24 * - - 84
----
1
2016

skipif mysql # not compatible
query II rowsort label-6891
SELECT + COUNT ( * ) col2, + 24 * - - 84
----
1
2016

onlyif mysql # aggregate syntax: 
query I rowsort label-6892
SELECT - 50 - COUNT( * )
----
-51

skipif mysql # not compatible
query I rowsort label-6892
SELECT - 50 - COUNT ( * )
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-6893
SELECT ALL + SUM( DISTINCT 97 ) * 89 * + - 52 * + 71 + + CASE + SUM( + ( + + 3 ) ) WHEN - 2 + - 57 THEN - 21 + 3 WHEN - 16 THEN NULL WHEN 79 + - 18 THEN NULL END + + 75 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6893
SELECT ALL + SUM ( DISTINCT 97 ) * 89 * + - 52 * + 71 + + CASE + SUM ( + ( + + 3 ) ) WHEN - 2 + - 57 THEN - 21 + 3 WHEN - 16 THEN NULL WHEN 79 + - 18 THEN NULL END + + 75 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6894
SELECT MIN( ( + 7 ) )
----
7

skipif mysql # not compatible
query I rowsort label-6894
SELECT MIN ( ( + 7 ) )
----
7

query II rowsort
SELECT - 14 + - 29 AS col0, - 75 AS col1
----
-43
-75

query I rowsort
SELECT - 19 * + - 88
----
1672

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6897
SELECT - 90 + - + 77 - + 18 + + + 55 + + - MIN( DISTINCT - 24 ) / - 2 + COUNT( * ) * - CAST( NULL AS SIGNED ) / - 61 * 89
----
NULL

skipif mysql # not compatible
query I rowsort label-6897
SELECT - 90 + - + 77 - + 18 + + + 55 + + - MIN ( DISTINCT - 24 ) / - 2 + COUNT ( * ) * - CAST ( NULL AS INTEGER ) / - 61 * 89
----
NULL

query I rowsort
SELECT ALL + 85 * + 4 AS col1
----
340

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6899
SELECT - 83 * - - 27 * - CAST( + - 61 AS SIGNED )
----
-136701

skipif mysql # not compatible
query I rowsort label-6899
SELECT - 83 * - - 27 * - CAST ( + - 61 AS INTEGER )
----
-136701

query I rowsort
SELECT ALL + 58 - ( + 22 )
----
36

query I rowsort
SELECT 42 * + ( + 50 ) * + + 0 + + 2
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6902
SELECT 81 + CAST( - + 21 AS SIGNED )
----
60

skipif mysql # not compatible
query I rowsort label-6902
SELECT 81 + CAST ( - + 21 AS INTEGER )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-6903
SELECT ALL COUNT( * ) * 68 + + 9 * - + 15 col0
----
-67

skipif mysql # not compatible
query I rowsort label-6903
SELECT ALL COUNT ( * ) * 68 + + 9 * - + 15 col0
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6904
SELECT - 6 + CASE WHEN ( + 83 ) >= + 98 THEN - 31 * + COUNT( * ) - - - 94 + - + 5 ELSE - 75 / ( 29 ) END * - 51 * 62 * 51 / + - CASE 28 WHEN 88 THEN + CAST( - 86 AS SIGNED ) END + - ( - COUNT( * ) + COUNT( 1 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6904
SELECT - 6 + CASE WHEN ( + 83 ) >= + 98 THEN - 31 * + COUNT ( * ) - - - 94 + - + 5 ELSE - 75 / ( 29 ) END * - 51 * 62 * 51 / + - CASE 28 WHEN 88 THEN + CAST ( - 86 AS INTEGER ) END + - ( - COUNT ( * ) + COUNT ( 1 ) )
----
NULL

query I rowsort
SELECT DISTINCT - - 59 col0
----
59

query I rowsort
SELECT DISTINCT ( + - 67 ) * + 57
----
-3819

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6907
SELECT SUM( 27 ) DIV - ( + 75 ) * + + 20
----
0

skipif mysql # not compatible
query I rowsort label-6907
SELECT SUM ( 27 ) / - ( + 75 ) * + + 20
----
0

query I rowsort
SELECT - 23 + + ( - 5 ) + + ( - 66 ) AS col1
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-6909
SELECT 84 * 19 * + 44 - - 55 + - COUNT( * ) AS col2
----
70278

skipif mysql # not compatible
query I rowsort label-6909
SELECT 84 * 19 * + 44 - - 55 + - COUNT ( * ) AS col2
----
70278

onlyif mysql # DIV for integer division: 
query I rowsort label-6910
SELECT ALL 66 DIV - ( 58 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-6910
SELECT ALL 66 / - ( 58 ) col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6911
SELECT 70 DIV NULLIF ( - 88, - 27 DIV - COUNT( * ) ) * ( + 61 ) AS col1, + 63 + - COUNT( * ) AS col2
----
0
62

skipif mysql # not compatible
query II rowsort label-6911
SELECT 70 / NULLIF ( - 88, - 27 / - COUNT ( * ) ) * ( + 61 ) AS col1, + 63 + - COUNT ( * ) AS col2
----
0
62

query I rowsort
SELECT ALL 6 + + 59
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-6913
SELECT ALL + 4 + SUM( - ( + COALESCE ( + 12, - 97 ) ) ) AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-6913
SELECT ALL + 4 + SUM ( - ( + COALESCE ( + 12, - 97 ) ) ) AS col2
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6914
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + - + CAST( - 58 AS SIGNED ) * - COUNT( * ) * + - ( - 41 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6914
SELECT DISTINCT - CAST ( NULL AS REAL ) + - + CAST ( - 58 AS INTEGER ) * - COUNT ( * ) * + - ( - 41 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6915
SELECT ALL 89 + 96 - COUNT( * ) * 96
----
89

skipif mysql # not compatible
query I rowsort label-6915
SELECT ALL 89 + 96 - COUNT ( * ) * 96
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-6916
SELECT ALL 33 DIV - 10
----
-3

skipif mysql # not compatible
query I rowsort label-6916
SELECT ALL 33 / - 10
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-6917
SELECT COUNT( * ) + 77 + 88 col2, 13 AS col0
----
166
13

skipif mysql # not compatible
query II rowsort label-6917
SELECT COUNT ( * ) + 77 + 88 col2, 13 AS col0
----
166
13

onlyif mysql # aggregate syntax: 
query I rowsort label-6918
SELECT ALL ( - 72 ) + 12 + - 4 * MIN( DISTINCT - 51 ) * + 48
----
9732

skipif mysql # not compatible
query I rowsort label-6918
SELECT ALL ( - 72 ) + 12 + - 4 * MIN ( DISTINCT - 51 ) * + 48
----
9732

onlyif mysql # aggregate syntax: 
query I rowsort label-6919
SELECT ALL COUNT( * ) + + 31 AS col1
----
32

skipif mysql # not compatible
query I rowsort label-6919
SELECT ALL COUNT ( * ) + + 31 AS col1
----
32

query I rowsort
SELECT 27 * - - 16
----
432

query II rowsort
SELECT - 16, 4 AS col2
----
-16
4

query I rowsort
SELECT ALL - 26 - + 32 * - - 88
----
-2842

query I rowsort
SELECT 52 * + 94 * + - 62
----
-303056

onlyif mysql # aggregate syntax: 
query II rowsort label-6924
SELECT 10 AS col0, COUNT( * ) AS col0
----
10
1

skipif mysql # not compatible
query II rowsort label-6924
SELECT 10 AS col0, COUNT ( * ) AS col0
----
10
1

query II rowsort
SELECT 81 AS col1, - 18 col2
----
81
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-6926
SELECT ALL - 27 DIV - - 96 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6926
SELECT ALL - 27 / - - 96 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6927
SELECT 42 DIV - 97 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6927
SELECT 42 / - 97 AS col1
----
0

query I rowsort
SELECT 78 * 57 AS col2
----
4446

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6929
SELECT - 82 AS col2, - CAST( + ( - 94 ) AS SIGNED )
----
-82
94

skipif mysql # not compatible
query II rowsort label-6929
SELECT - 82 AS col2, - CAST ( + ( - 94 ) AS INTEGER )
----
-82
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6930
SELECT CAST( + 38 AS SIGNED ) - + COUNT( * ), + 69 * - - 21 AS col2
----
37
1449

skipif mysql # not compatible
query II rowsort label-6930
SELECT CAST ( + 38 AS INTEGER ) - + COUNT ( * ), + 69 * - - 21 AS col2
----
37
1449

query I rowsort
SELECT 91 * - 21
----
-1911

onlyif mysql # aggregate syntax: 
query II rowsort label-6932
SELECT ALL - MAX( - + 95 ) * COALESCE ( 26, - 57 * - 88 ) AS col1, 57 * 4 AS col2
----
2470
228

skipif mysql # not compatible
query II rowsort label-6932
SELECT ALL - MAX ( - + 95 ) * COALESCE ( 26, - 57 * - 88 ) AS col1, 57 * 4 AS col2
----
2470
228

query III rowsort
SELECT ALL 94, COALESCE ( + 31, - - 81 * 83 * + 79 ) AS col1, 58 col2
----
94
31
58

query I rowsort
SELECT DISTINCT - 9 * - - 6
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6935
SELECT DISTINCT - 77, 7 * + - 78 * - - CAST( NULL AS SIGNED ) / 0 AS col0
----
-77
NULL

skipif mysql # not compatible
query II rowsort label-6935
SELECT DISTINCT - 77, 7 * + - 78 * - - CAST ( NULL AS INTEGER ) / 0 AS col0
----
-77
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6936
SELECT ALL 49 AS col2, SUM( + 25 ) AS col2
----
49
25

skipif mysql # not compatible
query II rowsort label-6936
SELECT ALL 49 AS col2, SUM ( + 25 ) AS col2
----
49
25

onlyif mysql # aggregate syntax: 
query I rowsort label-6937
SELECT ALL + CASE CASE 3 WHEN 82 - 5 THEN - 17 WHEN 54 / 70 + + 29 * 25 * - 36 THEN 78 WHEN - + 87 THEN + - COALESCE ( - 94, - - 73 ) ELSE NULL END WHEN - 15 - COALESCE ( 34, + 10 ) THEN + 44 * + 74 + + COUNT( * ) WHEN 43 + + 83 * - 5 THEN - 78 * SUM( ALL + ( - 53 ) ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6937
SELECT ALL + CASE CASE 3 WHEN 82 - 5 THEN - 17 WHEN 54 / 70 + + 29 * 25 * - 36 THEN 78 WHEN - + 87 THEN + - COALESCE ( - 94, - - 73 ) ELSE NULL END WHEN - 15 - COALESCE ( 34, + 10 ) THEN + 44 * + 74 + + COUNT ( * ) WHEN 43 + + 83 * - 5 THEN - 78 * SUM ( ALL + ( - 53 ) ) END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6938
SELECT DISTINCT - + NULLIF ( 43, - CAST( NULL AS SIGNED ) ) * + 43
----
-1849

skipif mysql # not compatible
query I rowsort label-6938
SELECT DISTINCT - + NULLIF ( 43, - CAST ( NULL AS INTEGER ) ) * + 43
----
-1849

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6939
SELECT 39 + - 49 * - 14 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6939
SELECT 39 + - 49 * - 14 * - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT + 31 - - 85 + 79 * + - 56 col1, + 89 AS col0
----
-4308
89

query I rowsort
SELECT + 40 * - 91 * + 96
----
-349440

query I rowsort
SELECT DISTINCT - + 54 + + 97 AS col2
----
43

query I rowsort
SELECT ALL + 34 * + 76 + - ( + 71 )
----
2513

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6944
SELECT ( + - 23 ) DIV 7 + + 58 + COUNT( * ) AS col1
----
56

skipif mysql # not compatible
query I rowsort label-6944
SELECT ( + - 23 ) / 7 + + 58 + COUNT ( * ) AS col1
----
56

query I rowsort
SELECT ALL - - 37 col0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-6946
SELECT - ( - 79 ) * COUNT( ALL - - 56 ) + + 63 + - ( 25 ) col0
----
117

skipif mysql # not compatible
query I rowsort label-6946
SELECT - ( - 79 ) * COUNT ( ALL - - 56 ) + + 63 + - ( 25 ) col0
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-6947
SELECT DISTINCT - - 63 * - - 92 * + COUNT( * ) + + 14 + 27 - - + 6 * + + 45 + ( + 65 ) + - 81 AS col0
----
6091

skipif mysql # not compatible
query I rowsort label-6947
SELECT DISTINCT - - 63 * - - 92 * + COUNT ( * ) + + 14 + 27 - - + 6 * + + 45 + ( + 65 ) + - 81 AS col0
----
6091

query I rowsort
SELECT ALL - + 32 * + ( - 7 ) + + - 85 AS col0
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-6949
SELECT ALL - 50 + + 16 - + - 47 * - COUNT( * )
----
-81

skipif mysql # not compatible
query I rowsort label-6949
SELECT ALL - 50 + + 16 - + - 47 * - COUNT ( * )
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-6950
SELECT COUNT( * ) + + ( + - 53 )
----
-52

skipif mysql # not compatible
query I rowsort label-6950
SELECT COUNT ( * ) + + ( + - 53 )
----
-52

query I rowsort
SELECT 21 * - 2 AS col0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-6952
SELECT SUM( ALL + 78 ) * + 72 AS col1
----
5616

skipif mysql # not compatible
query I rowsort label-6952
SELECT SUM ( ALL + 78 ) * + 72 AS col1
----
5616

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6953
SELECT ALL + ( + + CAST( COUNT( DISTINCT + 83 ) AS SIGNED ) ) - + 56 AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-6953
SELECT ALL + ( + + CAST ( COUNT ( DISTINCT + 83 ) AS INTEGER ) ) - + 56 AS col2
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6954
SELECT 37 + CASE - CAST( 5 AS SIGNED ) WHEN 70 / - 92 + MAX( CAST( - 19 AS SIGNED ) ) THEN SUM( ALL 90 ) WHEN CAST( NULL AS DECIMAL ) THEN NULL ELSE 69 * + COUNT( * ) * - 95 END
----
-6518

skipif mysql # not compatible
query I rowsort label-6954
SELECT 37 + CASE - CAST ( 5 AS INTEGER ) WHEN 70 / - 92 + MAX ( CAST ( - 19 AS INTEGER ) ) THEN SUM ( ALL 90 ) WHEN CAST ( NULL AS REAL ) THEN NULL ELSE 69 * + COUNT ( * ) * - 95 END
----
-6518

onlyif mysql # aggregate syntax: 
query II rowsort label-6955
SELECT ALL 54 * + 37 col1, + COUNT( * )
----
1998
1

skipif mysql # not compatible
query II rowsort label-6955
SELECT ALL 54 * + 37 col1, + COUNT ( * )
----
1998
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6956
SELECT DISTINCT CASE + 53 WHEN - 24 THEN 3 * 76 END / COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6956
SELECT DISTINCT CASE + 53 WHEN - 24 THEN 3 * 76 END / COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT 72 * - + 45 AS col0
----
-3240

query I rowsort
SELECT 31 * + 40 + 46 AS col0
----
1286

onlyif mysql # DIV for integer division: 
query I rowsort label-6959
SELECT + 36 + + - 64 DIV + 27
----
34

skipif mysql # not compatible
query I rowsort label-6959
SELECT + 36 + + - 64 / + 27
----
34

query I rowsort
SELECT + 83 * 53
----
4399

query II rowsort
SELECT + 1 + - 52 col0, + 94 col1
----
-51
94

onlyif mysql # aggregate syntax: 
query I rowsort label-6962
SELECT DISTINCT COUNT( * ) * + - 21 AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-6962
SELECT DISTINCT COUNT ( * ) * + - 21 AS col1
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-6963
SELECT - CASE WHEN NOT - 8 IS NULL THEN MAX( - + 81 ) * + 29 + - SUM( 54 ) * + 31 * 42 END
----
72657

skipif mysql # not compatible
query I rowsort label-6963
SELECT - CASE WHEN NOT - 8 IS NULL THEN MAX ( - + 81 ) * + 29 + - SUM ( 54 ) * + 31 * 42 END
----
72657

onlyif mysql # DIV for integer division: 
query II rowsort label-6964
SELECT + 53 + 71 AS col0, - 1 DIV - ( + 67 ) AS col2
----
124
0

skipif mysql # not compatible
query II rowsort label-6964
SELECT + 53 + 71 AS col0, - 1 / - ( + 67 ) AS col2
----
124
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6965
SELECT ALL MIN( - 49 )
----
-49

skipif mysql # not compatible
query I rowsort label-6965
SELECT ALL MIN ( - 49 )
----
-49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6966
SELECT + CAST( NULL AS DECIMAL ) + - 49 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6966
SELECT + CAST ( NULL AS REAL ) + - 49 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6967
SELECT ALL - CASE - - 42 WHEN - - CAST( NULL AS DECIMAL ) THEN + 90 - 88 ELSE NULL END + 30 - + 94 * - MAX( + 63 ) - - 44 * - 45 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6967
SELECT ALL - CASE - - 42 WHEN - - CAST ( NULL AS REAL ) THEN + 90 - 88 ELSE NULL END + 30 - + 94 * - MAX ( + 63 ) - - 44 * - 45 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6968
SELECT + + 83 * - + COUNT( DISTINCT 76 )
----
-83

skipif mysql # not compatible
query I rowsort label-6968
SELECT + + 83 * - + COUNT ( DISTINCT 76 )
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-6969
SELECT - + 78 + + - SUM( ALL - 15 )
----
-63

skipif mysql # not compatible
query I rowsort label-6969
SELECT - + 78 + + - SUM ( ALL - 15 )
----
-63

query I rowsort
SELECT DISTINCT 94 + - 12 AS col0
----
82

query I rowsort
SELECT ALL 99 + - 86 * 0 * - 25 * 76 AS col2
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-6972
SELECT DISTINCT + 39 DIV + + 67
----
0

skipif mysql # not compatible
query I rowsort label-6972
SELECT DISTINCT + 39 / + + 67
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6973
SELECT - COUNT( * ) + SUM( DISTINCT + 54 ) - 70
----
-17

skipif mysql # not compatible
query I rowsort label-6973
SELECT - COUNT ( * ) + SUM ( DISTINCT + 54 ) - 70
----
-17

query I rowsort
SELECT + 82 * + 52
----
4264

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6975
SELECT + - NULLIF ( 47, 56 / + - 60 ) + + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6975
SELECT + - NULLIF ( 47, 56 / + - 60 ) + + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6976
SELECT DISTINCT - 95 + - 38 - - COUNT( DISTINCT - 75 ) - - + COUNT( * ) col0
----
-131

skipif mysql # not compatible
query I rowsort label-6976
SELECT DISTINCT - 95 + - 38 - - COUNT ( DISTINCT - 75 ) - - + COUNT ( * ) col0
----
-131

query I rowsort
SELECT - + NULLIF ( 93, - - 68 ) AS col1
----
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-6978
SELECT - 9 DIV + + 1 AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-6978
SELECT - 9 / + + 1 AS col2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6979
SELECT ALL - + ( - 51 ) * + 32 + - + SUM( + - 51 ) AS col0
----
1683

skipif mysql # not compatible
query I rowsort label-6979
SELECT ALL - + ( - 51 ) * + 32 + - + SUM ( + - 51 ) AS col0
----
1683

query I rowsort
SELECT - 41 + - 65
----
-106

query I rowsort
SELECT DISTINCT + 1 * 50 + 80
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-6982
SELECT ALL + 58 * - COUNT( * ) + 22 AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-6982
SELECT ALL + 58 * - COUNT ( * ) + 22 AS col0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-6983
SELECT CASE - + MIN( - + 10 ) WHEN 35 + - COUNT( * ) * + 11 / + 28 THEN + 45 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6983
SELECT CASE - + MIN ( - + 10 ) WHEN 35 + - COUNT ( * ) * + 11 / + 28 THEN + 45 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + 26 * + 60
----
1560

onlyif mysql # aggregate syntax: 
query I rowsort label-6985
SELECT DISTINCT + COUNT( ALL + - 96 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6985
SELECT DISTINCT + COUNT ( ALL + - 96 ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6986
SELECT ALL + COUNT( * ) * + MIN( - 11 ), COUNT( * ) * + + 67 + - 65 / + + CAST( NULL AS SIGNED ) / + COALESCE ( 30, 15 * + ( 93 ) + - + 89 + - 96 * + 42, + 63 ) AS col2
----
-11
NULL

skipif mysql # not compatible
query II rowsort label-6986
SELECT ALL + COUNT ( * ) * + MIN ( - 11 ), COUNT ( * ) * + + 67 + - 65 / + + CAST ( NULL AS INTEGER ) / + COALESCE ( 30, 15 * + ( 93 ) + - + 89 + - 96 * + 42, + 63 ) AS col2
----
-11
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6987
SELECT CASE - 45 WHEN + - 13 THEN NULL WHEN - ( + ( + 73 ) ) * NULLIF ( 59, - 24 + - + 28 ) + + - COUNT( * ) - COALESCE ( + - 25, 48 / + 27 + + 79 ) THEN NULL ELSE NULLIF ( + - CASE + 71 WHEN - + CAST( NULL AS SIGNED ) THEN 19 / - 42 WHEN 61 THEN ( - 79 ) END, - COUNT( * ) / 81 + - 7 ) * COALESCE ( - COUNT( * ) + AVG ( DISTINCT + 70 ) / + 53, - 92 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6987
SELECT CASE - 45 WHEN + - 13 THEN NULL WHEN - ( + ( + 73 ) ) * NULLIF ( 59, - 24 + - + 28 ) + + - COUNT ( * ) - COALESCE ( + - 25, 48 / + 27 + + 79 ) THEN NULL ELSE NULLIF ( + - CASE + 71 WHEN - + CAST ( NULL AS INTEGER ) THEN 19 / - 42 WHEN 61 THEN ( - 79 ) END, - COUNT ( * ) / 81 + - 7 ) * COALESCE ( - COUNT ( * ) + AVG ( DISTINCT + 70 ) / + 53, - 92 ) END
----
NULL

query I rowsort
SELECT DISTINCT + 8 * 60 col1
----
480

onlyif mysql # aggregate syntax: 
query I rowsort label-6989
SELECT + CASE 45 WHEN 64 + - - COUNT( * ) + - - CASE - 92 WHEN ( - 0 ) THEN 98 * - - AVG ( ALL + + ( 56 ) ) * - 70 + - 98 + MAX( - 54 ) + + - COALESCE ( + - 48, - 25 + - COUNT( * ) ) / - 28 END * - 80 * + COUNT( * ) THEN NULL ELSE + 98 + ( + 78 ) END * 94
----
16544

skipif mysql # not compatible
query I rowsort label-6989
SELECT + CASE 45 WHEN 64 + - - COUNT ( * ) + - - CASE - 92 WHEN ( - 0 ) THEN 98 * - - AVG ( ALL + + ( 56 ) ) * - 70 + - 98 + MAX ( - 54 ) + + - COALESCE ( + - 48, - 25 + - COUNT ( * ) ) / - 28 END * - 80 * + COUNT ( * ) THEN NULL ELSE + 98 + ( + 78 ) END * 94
----
16544

query I rowsort
SELECT DISTINCT ( - - 65 )
----
65

query I rowsort
SELECT + ( + + ( - + NULLIF ( + - 45, + 10 / + 88 ) ) ) * + - 83 * 22
----
-82170

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6992
SELECT ALL SUM( ALL 56 ) DIV - 26
----
-2

skipif mysql # not compatible
query I rowsort label-6992
SELECT ALL SUM ( ALL 56 ) / - 26
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6993
SELECT COUNT( DISTINCT + + 51 )
----
1

skipif mysql # not compatible
query I rowsort label-6993
SELECT COUNT ( DISTINCT + + 51 )
----
1

query I rowsort
SELECT ALL - 37 + - 62 * + 92 * - 63
----
359315

query I rowsort
SELECT - COALESCE ( + 7, 90 )
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-6996
SELECT - NULLIF ( + 83, + COUNT( * ) ) + + + 87 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-6996
SELECT - NULLIF ( + 83, + COUNT ( * ) ) + + + 87 AS col0
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6997
SELECT ALL COUNT( * ) DIV - 15 col2
----
0

skipif mysql # not compatible
query I rowsort label-6997
SELECT ALL COUNT ( * ) / - 15 col2
----
0

query I rowsort
SELECT - 44 * - 45 AS col2
----
1980

onlyif mysql # aggregate syntax: 
query I rowsort label-6999
SELECT + NULLIF ( + 13, - + 24 * - 46 + - + COUNT( * ) * - 71 ) * - 18
----
-234

skipif mysql # not compatible
query I rowsort label-6999
SELECT + NULLIF ( + 13, - + 24 * - 46 + - + COUNT ( * ) * - 71 ) * - 18
----
-234

query I rowsort
SELECT ALL 83 + + 74
----
157

onlyif mysql # aggregate syntax: 
query I rowsort label-7001
SELECT - MIN( ALL + 38 )
----
-38

skipif mysql # not compatible
query I rowsort label-7001
SELECT - MIN ( ALL + 38 )
----
-38

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7002
SELECT DISTINCT - COUNT( * ) + 37 * ( - CASE + CAST( NULL AS DECIMAL ) WHEN 31 * - + 6 THEN - 93 ELSE NULL END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7002
SELECT DISTINCT - COUNT ( * ) + 37 * ( - CASE + CAST ( NULL AS REAL ) WHEN 31 * - + 6 THEN - 93 ELSE NULL END ) AS col0
----
NULL

query II rowsort
SELECT + - ( + 7 ) - + 14, - 29 AS col2
----
-21
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-7004
SELECT ALL - CASE - 20 WHEN - - 72 * MIN( DISTINCT + 64 ) THEN - - NULLIF ( + 35, - 35 * - - 76 ) + - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7004
SELECT ALL - CASE - 20 WHEN - - 72 * MIN ( DISTINCT + 64 ) THEN - - NULLIF ( + 35, - 35 * - - 76 ) + - COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7005
SELECT ALL 10 + MIN( DISTINCT 42 ), - 78 AS col0
----
52
-78

skipif mysql # not compatible
query II rowsort label-7005
SELECT ALL 10 + MIN ( DISTINCT 42 ), - 78 AS col0
----
52
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-7006
SELECT + + MAX( DISTINCT - + 8 ) + + NULLIF ( 8, + + 38 - - + 55 * - 24 )
----
0

skipif mysql # not compatible
query I rowsort label-7006
SELECT + + MAX ( DISTINCT - + 8 ) + + NULLIF ( 8, + + 38 - - + 55 * - 24 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7007
SELECT ALL + 85 + - - 33 - + 88 col0, COUNT( * ) DIV - + 85 AS col1
----
30
0

skipif mysql # not compatible
query II rowsort label-7007
SELECT ALL + 85 + - - 33 - + 88 col0, COUNT ( * ) / - + 85 AS col1
----
30
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7008
SELECT ALL - ( ( + + 45 ) ) + + - 12 * COUNT( * ) + - - 10
----
-47

skipif mysql # not compatible
query I rowsort label-7008
SELECT ALL - ( ( + + 45 ) ) + + - 12 * COUNT ( * ) + - - 10
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7009
SELECT + 16 * - CAST( 41 AS SIGNED ) AS col2, - 48 col0
----
-656
-48

skipif mysql # not compatible
query II rowsort label-7009
SELECT + 16 * - CAST ( 41 AS INTEGER ) AS col2, - 48 col0
----
-656
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-7010
SELECT + CASE COUNT( * ) WHEN 28 THEN - 70 WHEN - 29 / + 94 THEN - - NULLIF ( + 44, - 33 ) ELSE + + NULLIF ( 40, - - 75 + + + 93 + + 75 ) END + - 71, 99 + - COUNT( * ) AS col0
----
-31
98

skipif mysql # not compatible
query II rowsort label-7010
SELECT + CASE COUNT ( * ) WHEN 28 THEN - 70 WHEN - 29 / + 94 THEN - - NULLIF ( + 44, - 33 ) ELSE + + NULLIF ( 40, - - 75 + + + 93 + + 75 ) END + - 71, 99 + - COUNT ( * ) AS col0
----
-31
98

query I rowsort
SELECT + 29 - + 28 AS col1
----
1

query I rowsort
SELECT + 82 * 57 col0
----
4674

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7013
SELECT ALL + 33 DIV 50 DIV + COUNT( * ) * 67 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7013
SELECT ALL + 33 / 50 / + COUNT ( * ) * 67 AS col1
----
0

query II rowsort
SELECT ALL + + 35 AS col0, 21 AS col1
----
35
21

onlyif mysql # aggregate syntax: 
query I rowsort label-7015
SELECT DISTINCT + COUNT( * ) * + 74 + - 44 + - - 53 + - + COUNT( * )
----
82

skipif mysql # not compatible
query I rowsort label-7015
SELECT DISTINCT + COUNT ( * ) * + 74 + - 44 + - - 53 + - + COUNT ( * )
----
82

query I rowsort
SELECT + + 95 + + 31 AS col1
----
126

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7017
SELECT ALL + + COUNT( * ) DIV + 66 - COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7017
SELECT ALL + + COUNT ( * ) / + 66 - COUNT ( * ) AS col0
----
-1

query I rowsort
SELECT DISTINCT - ( + - 72 ) AS col2
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7019
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 21 * CAST( + - 16 AS SIGNED ), + COUNT( * ) AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-7019
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 21 * CAST ( + - 16 AS INTEGER ), + COUNT ( * ) AS col1
----
NULL
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7020
SELECT 56 DIV - 61 * - 14 * + 87 * + + 43 col0
----
0

skipif mysql # not compatible
query I rowsort label-7020
SELECT 56 / - 61 * - 14 * + 87 * + + 43 col0
----
0

query I rowsort
SELECT ALL + 40 * + 76
----
3040

query II rowsort
SELECT + 58 AS col1, 56 * - 56 * - COALESCE ( - - 82, + + ( + 45 ), + + 18 * - 8 ) * 82 + + - 35 AS col0
----
58
21086429

query I rowsort
SELECT 31 * - 82 + - 6
----
-2548

onlyif mysql # aggregate syntax: 
query I rowsort label-7024
SELECT SUM( + - 69 ) * - 85 * 67 + + 1 + + 79
----
393035

skipif mysql # not compatible
query I rowsort label-7024
SELECT SUM ( + - 69 ) * - 85 * 67 + + 1 + + 79
----
393035

query I rowsort
SELECT ALL - COALESCE ( + 91, + 39 + + + CASE - + 96 WHEN - ( - + 72 ) THEN + ( - + 30 ) END - - 77 + - ( + 74 ) ) AS col2
----
-91

query I rowsort
SELECT ALL - ( 12 ) AS col0
----
-12

query I rowsort
SELECT 71 + - 52 AS col2
----
19

query II rowsort
SELECT 26, 65 - 41 AS col0
----
26
24

query I rowsort
SELECT 81 * - 69
----
-5589

query I rowsort
SELECT ALL + 5 + - + 16 col2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-7031
SELECT DISTINCT - 50 + - + NULLIF ( + CASE + 9 WHEN - 55 THEN - 33 END, - COUNT( * ) * - 16 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7031
SELECT DISTINCT - 50 + - + NULLIF ( + CASE + 9 WHEN - 55 THEN - 33 END, - COUNT ( * ) * - 16 )
----
NULL

query II rowsort
SELECT + 33 AS col0, 51 AS col1
----
33
51

onlyif mysql # aggregate syntax: 
query II rowsort label-7033
SELECT 96 + 70 - SUM( 33 ), ( COUNT( * ) ) * + - 79 AS col1
----
133
-79

skipif mysql # not compatible
query II rowsort label-7033
SELECT 96 + 70 - SUM ( 33 ), ( COUNT ( * ) ) * + - 79 AS col1
----
133
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-7034
SELECT ALL + MAX( + - 14 ) * - 61 - + 93 + + 34
----
795

skipif mysql # not compatible
query I rowsort label-7034
SELECT ALL + MAX ( + - 14 ) * - 61 - + 93 + + 34
----
795

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7035
SELECT - 49 * 57 * + + 13 + + 72 AS col1, COUNT( * ) + - - 6 DIV + 84 - - + 51
----
-36237
52

skipif mysql # not compatible
query II rowsort label-7035
SELECT - 49 * 57 * + + 13 + + 72 AS col1, COUNT ( * ) + - - 6 / + 84 - - + 51
----
-36237
52

query I rowsort
SELECT 77 + + 58
----
135

query II rowsort
SELECT - 44 col1, - 22 * - ( 63 )
----
-44
1386

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7038
SELECT CASE - 55 WHEN + + COUNT( * ) / - 64 * + 45 + CASE - COALESCE ( + CASE + 64 WHEN + - 68 THEN + - 61 * 99 WHEN 8 * - + ( - + 42 ) * + 69 * CASE 97 WHEN + + 72 THEN + 11 WHEN - + CAST( NULL AS SIGNED ) THEN - COUNT( * ) - + 76 * 69 ELSE 56 END THEN NULL ELSE COUNT( ALL - 18 ) END, 29 + + 14, 61 ) WHEN - 9 * 74 + - 36 * 8 THEN NULL WHEN 99 + - 27 THEN NULL ELSE 64 / - 30 END + - 88 * ( 6 - 76 ) * - 8 THEN - 13 ELSE NULL END + + 75 * 96
----
NULL

skipif mysql # not compatible
query I rowsort label-7038
SELECT CASE - 55 WHEN + + COUNT ( * ) / - 64 * + 45 + CASE - COALESCE ( + CASE + 64 WHEN + - 68 THEN + - 61 * 99 WHEN 8 * - + ( - + 42 ) * + 69 * CASE 97 WHEN + + 72 THEN + 11 WHEN - + CAST ( NULL AS INTEGER ) THEN - COUNT ( * ) - + 76 * 69 ELSE 56 END THEN NULL ELSE COUNT ( ALL - 18 ) END, 29 + + 14, 61 ) WHEN - 9 * 74 + - 36 * 8 THEN NULL WHEN 99 + - 27 THEN NULL ELSE 64 / - 30 END + - 88 * ( 6 - 76 ) * - 8 THEN - 13 ELSE NULL END + + 75 * 96
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7039
SELECT ALL - - ( + - COUNT( * ) ) + + + 8
----
7

skipif mysql # not compatible
query I rowsort label-7039
SELECT ALL - - ( + - COUNT ( * ) ) + + + 8
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7040
SELECT + 51 + - 81 + + 25 * - - COUNT( 25 )
----
-5

skipif mysql # not compatible
query I rowsort label-7040
SELECT + 51 + - 81 + + 25 * - - COUNT ( 25 )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7041
SELECT ALL - COUNT( + 24 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-7041
SELECT ALL - COUNT ( + 24 ) col1
----
-1

query II rowsort
SELECT ALL - 1, 30 AS col1
----
-1
30

query II rowsort
SELECT - + 45 col1, ( + + 30 ) * - 30
----
-45
-900

onlyif mysql # aggregate syntax: 
query I rowsort label-7044
SELECT DISTINCT + MIN( DISTINCT + + 38 )
----
38

skipif mysql # not compatible
query I rowsort label-7044
SELECT DISTINCT + MIN ( DISTINCT + + 38 )
----
38

query I rowsort
SELECT ALL 17 + + - 63
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-7046
SELECT DISTINCT + + ( - 81 ) - + COUNT( * ) AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-7046
SELECT DISTINCT + + ( - 81 ) - + COUNT ( * ) AS col2
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-7047
SELECT + 40 * MIN( + 43 ) AS col1
----
1720

skipif mysql # not compatible
query I rowsort label-7047
SELECT + 40 * MIN ( + 43 ) AS col1
----
1720

onlyif mysql # aggregate syntax: 
query II rowsort label-7048
SELECT - 25, - ( + + COUNT( * ) ) * - 71 - + 53 * 47 * + MAX( DISTINCT 30 ) AS col1
----
-25
-74659

skipif mysql # not compatible
query II rowsort label-7048
SELECT - 25, - ( + + COUNT ( * ) ) * - 71 - + 53 * 47 * + MAX ( DISTINCT 30 ) AS col1
----
-25
-74659

query I rowsort
SELECT 83 + - 32 AS col2
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-7050
SELECT DISTINCT 88 DIV - 44 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-7050
SELECT DISTINCT 88 / - 44 AS col2
----
-2

query I rowsort
SELECT + 50 * - - ( - 4 ) * - - 24
----
-4800

query I rowsort
SELECT DISTINCT 28 * + + 44 * 11 AS col2
----
13552

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7053
SELECT DISTINCT + CASE - MAX( ALL 73 ) WHEN - CAST( NULL AS SIGNED ) / + 42 + COUNT( ALL - 55 ) + - 20 + - - CASE 95 WHEN - ( + + 7 ) * - + 14 - - - 59 THEN - COUNT( * ) + + + 90 + 84 ELSE + 15 END * - COUNT( * ) / 55 THEN NULL WHEN - 46 THEN + 5 END * 3 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7053
SELECT DISTINCT + CASE - MAX ( ALL 73 ) WHEN - CAST ( NULL AS INTEGER ) / + 42 + COUNT ( ALL - 55 ) + - 20 + - - CASE 95 WHEN - ( + + 7 ) * - + 14 - - - 59 THEN - COUNT ( * ) + + + 90 + 84 ELSE + 15 END * - COUNT ( * ) / 55 THEN NULL WHEN - 46 THEN + 5 END * 3 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7054
SELECT ALL COUNT( * ) - + 33 col0
----
-32

skipif mysql # not compatible
query I rowsort label-7054
SELECT ALL COUNT ( * ) - + 33 col0
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7055
SELECT - CAST( NULL AS SIGNED ) * - - 43 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7055
SELECT - CAST ( NULL AS INTEGER ) * - - 43 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7056
SELECT ALL - + 56, + COALESCE ( + 48, CAST( NULL AS SIGNED ) ) col2
----
-56
48

skipif mysql # not compatible
query II rowsort label-7056
SELECT ALL - + 56, + COALESCE ( + 48, CAST ( NULL AS INTEGER ) ) col2
----
-56
48

query I rowsort
SELECT 36 * + 20 AS col0
----
720

onlyif mysql # DIV for integer division: 
query I rowsort label-7058
SELECT DISTINCT 37 DIV - + 47
----
0

skipif mysql # not compatible
query I rowsort label-7058
SELECT DISTINCT 37 / - + 47
----
0

query I rowsort
SELECT ALL 96 + 5 * - 19 AS col2
----
1

query I rowsort
SELECT 62 * - 90 AS col1
----
-5580

query I rowsort
SELECT 87 * - 59
----
-5133

query I rowsort
SELECT DISTINCT 53 * + 68
----
3604

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7063
SELECT ( - CASE COUNT( * ) WHEN + COUNT( * ) THEN - 60 WHEN - 1 * + MIN( CAST( - + CAST( + 90 AS SIGNED ) AS SIGNED ) ) * - - 48 + + + 88 THEN + + 10 END ) * - 37 + + 51 * - 52 AS col2
----
-4872

skipif mysql # not compatible
query I rowsort label-7063
SELECT ( - CASE COUNT ( * ) WHEN + COUNT ( * ) THEN - 60 WHEN - 1 * + MIN ( CAST ( - + CAST ( + 90 AS INTEGER ) AS INTEGER ) ) * - - 48 + + + 88 THEN + + 10 END ) * - 37 + + 51 * - 52 AS col2
----
-4872

onlyif mysql # aggregate syntax: 
query I rowsort label-7064
SELECT DISTINCT - NULLIF ( ( - COUNT( * ) ), + 51 - + 84 + - - 11 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-7064
SELECT DISTINCT - NULLIF ( ( - COUNT ( * ) ), + 51 - + 84 + - - 11 ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7065
SELECT ALL + COUNT( + 13 ) + + 63 * + ( 45 )
----
2836

skipif mysql # not compatible
query I rowsort label-7065
SELECT ALL + COUNT ( + 13 ) + + 63 * + ( 45 )
----
2836

onlyif mysql # aggregate syntax: 
query I rowsort label-7066
SELECT DISTINCT - MAX( 10 ) AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-7066
SELECT DISTINCT - MAX ( 10 ) AS col1
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-7067
SELECT CASE - + 95 WHEN 71 * - + 73 THEN NULL WHEN 51 THEN + + 67 ELSE NULL END * + - 2 * - MIN( DISTINCT + + 84 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7067
SELECT CASE - + 95 WHEN 71 * - + 73 THEN NULL WHEN 51 THEN + + 67 ELSE NULL END * + - 2 * - MIN ( DISTINCT + + 84 ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 27 * 75 * - 92 + + COALESCE ( - 37, 59 ) AS col2
----
186263

query I rowsort
SELECT DISTINCT - 16 - - ( + ( 75 ) )
----
59

query II rowsort
SELECT - ( + + 74 ) AS col1, ( 79 )
----
-74
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7071
SELECT NULLIF ( - 17, + COUNT( * ) * - - 73 * - 11 ) + + COUNT( * ) DIV + 50 + - - 41
----
24

skipif mysql # not compatible
query I rowsort label-7071
SELECT NULLIF ( - 17, + COUNT ( * ) * - - 73 * - 11 ) + + COUNT ( * ) / + 50 + - - 41
----
24

query I rowsort
SELECT 39 * - 81 + - 36 + - - 57 * - + 87 AS col0
----
-8154

onlyif mysql # aggregate syntax: 
query II rowsort label-7073
SELECT DISTINCT - 67 * - 39, + MIN( ALL + 40 ) AS col0
----
2613
40

skipif mysql # not compatible
query II rowsort label-7073
SELECT DISTINCT - 67 * - 39, + MIN ( ALL + 40 ) AS col0
----
2613
40

query I rowsort
SELECT - 64 + - 33 AS col2
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7075
SELECT - 91 + - 97 / - CASE - + COUNT( * ) WHEN - 23 * + + 13 - - 60 + - 75 + + 20 + 87 * + + 22 THEN 32 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7075
SELECT - 91 + - 97 / - CASE - + COUNT ( * ) WHEN - 23 * + + 13 - - 60 + - 75 + + 20 + 87 * + + 22 THEN 32 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7076
SELECT - - 62 DIV - 90 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7076
SELECT - - 62 / - 90 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7077
SELECT ALL + 51 DIV - ( MIN( - - 84 ) )
----
0

skipif mysql # not compatible
query I rowsort label-7077
SELECT ALL + 51 / - ( MIN ( - - 84 ) )
----
0

query II rowsort
SELECT + + 87 - - 84, 70 AS col1
----
171
70

query I rowsort
SELECT + + 12 - - 90 AS col0
----
102

onlyif mysql # DIV for integer division: 
query I rowsort label-7080
SELECT - 8 DIV 43 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7080
SELECT - 8 / 43 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7081
SELECT ALL 20 + - COALESCE ( CASE + 76 WHEN + + 76 * - 94 * - - 94 THEN NULL WHEN 24 DIV 35 - NULLIF ( MAX( ALL 19 ), - - 1 + - - 24 + - 3 * 49 ) - + SUM( DISTINCT 88 ) THEN + ( - ( + 57 ) ) * + 41 DIV 40 + + 64 END, - 2 + - 82 )
----
104

skipif mysql # not compatible
query I rowsort label-7081
SELECT ALL 20 + - COALESCE ( CASE + 76 WHEN + + 76 * - 94 * - - 94 THEN NULL WHEN 24 / 35 - NULLIF ( MAX ( ALL 19 ), - - 1 + - - 24 + - 3 * 49 ) - + SUM ( DISTINCT 88 ) THEN + ( - ( + 57 ) ) * + 41 / 40 + + 64 END, - 2 + - 82 )
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-7082
SELECT ALL 23 * - SUM( - 55 ) + COUNT( * )
----
1266

skipif mysql # not compatible
query I rowsort label-7082
SELECT ALL 23 * - SUM ( - 55 ) + COUNT ( * )
----
1266

query I rowsort
SELECT ALL 48 * - + 3 AS col1
----
-144

query II rowsort
SELECT ALL 29 * + 20 + + 55 AS col2, - 64 - 84 + - 8 AS col1
----
635
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-7085
SELECT + COUNT( - 36 )
----
1

skipif mysql # not compatible
query I rowsort label-7085
SELECT + COUNT ( - 36 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7086
SELECT ALL - 29 * - 75 + ( + + COUNT( * ) ) * + + 4 col1
----
2179

skipif mysql # not compatible
query I rowsort label-7086
SELECT ALL - 29 * - 75 + ( + + COUNT ( * ) ) * + + 4 col1
----
2179

query II rowsort
SELECT ALL + 26, 74 AS col0
----
26
74

query II rowsort
SELECT - 18 + - 57 - - + 71 * - 41 AS col2, 22 * - 80
----
-2986
-1760

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7089
SELECT CASE - + COUNT( * ) WHEN - 9 THEN NULL ELSE + 94 + NULLIF ( - MAX( ALL + 4 ), - CASE CAST( + - NULLIF ( - 20, COUNT( * ) * - - 20 ) AS SIGNED ) WHEN - 8 THEN NULL WHEN - + 78 THEN + 57 * - ( COALESCE ( - 76, + ( 65 ) ) ) + CAST( + 25 AS SIGNED ) END ) * - 55 END
----
314

skipif mysql # not compatible
query I rowsort label-7089
SELECT CASE - + COUNT ( * ) WHEN - 9 THEN NULL ELSE + 94 + NULLIF ( - MAX ( ALL + 4 ), - CASE CAST ( + - NULLIF ( - 20, COUNT ( * ) * - - 20 ) AS INTEGER ) WHEN - 8 THEN NULL WHEN - + 78 THEN + 57 * - ( COALESCE ( - 76, + ( 65 ) ) ) + CAST ( + 25 AS INTEGER ) END ) * - 55 END
----
314

onlyif mysql # DIV for integer division: 
query I rowsort label-7090
SELECT ALL 82 DIV 75 col0
----
1

skipif mysql # not compatible
query I rowsort label-7090
SELECT ALL 82 / 75 col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7091
SELECT CAST( NULL AS SIGNED ) * - 81 + + ( + 22 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7091
SELECT CAST ( NULL AS INTEGER ) * - 81 + + ( + 22 ) AS col0
----
NULL

query II rowsort
SELECT DISTINCT + 28, 6 * - 5 AS col1
----
28
-30

query I rowsort
SELECT DISTINCT - 99 * - + 31 - 19 AS col2
----
3050

query I rowsort
SELECT ALL - 29 * - 56 AS col1
----
1624

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7095
SELECT + 22 DIV CAST( - 96 AS SIGNED ), + 5 AS col1
----
0
5

skipif mysql # not compatible
query II rowsort label-7095
SELECT + 22 / CAST ( - 96 AS INTEGER ), + 5 AS col1
----
0
5

query I rowsort
SELECT + 35 * 30 AS col0
----
1050

query I rowsort
SELECT + 49 + - 50 - + - 54
----
53

query II rowsort
SELECT DISTINCT + 74, - 56 AS col2
----
74
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-7099
SELECT 45 col0, COUNT( * )
----
45
1

skipif mysql # not compatible
query II rowsort label-7099
SELECT 45 col0, COUNT ( * )
----
45
1

query I rowsort
SELECT ALL - 22 * - - 86 AS col1
----
-1892

query I rowsort
SELECT - + ( + 23 ) + 59 col2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-7102
SELECT + NULLIF ( + 86, - 47 + - + 40 + - COUNT( * ) / COUNT( * ) / - 62 * - 66 ) * COUNT( * ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-7102
SELECT + NULLIF ( + 86, - 47 + - + 40 + - COUNT ( * ) / COUNT ( * ) / - 62 * - 66 ) * COUNT ( * ) AS col2
----
86

query I rowsort
SELECT - - 41 + 22 * - ( 60 ) AS col0
----
-1279

onlyif mysql # aggregate syntax: 
query I rowsort label-7104
SELECT DISTINCT + + 21 + - + SUM( - - 10 )
----
11

skipif mysql # not compatible
query I rowsort label-7104
SELECT DISTINCT + + 21 + - + SUM ( - - 10 )
----
11

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7105
SELECT ALL - - ( - - AVG ( - CAST( + 10 AS DECIMAL ) ) ) + - CASE - 28 WHEN 17 * 43 THEN - ( CASE 47 WHEN - 92 THEN + 6 / - - 93 + COUNT( ALL + - 82 ) WHEN - CASE - 84 WHEN + + CASE + COUNT( * ) WHEN - 67 * 49 * - 72 + 53 THEN NULL ELSE + 84 + 81 * 33 END + - 59 * + 49 THEN - 50 ELSE NULL END THEN NULL END ) * 36 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7105
SELECT ALL - - ( - - AVG ( - CAST ( + 10 AS REAL ) ) ) + - CASE - 28 WHEN 17 * 43 THEN - ( CASE 47 WHEN - 92 THEN + 6 / - - 93 + COUNT ( ALL + - 82 ) WHEN - CASE - 84 WHEN + + CASE + COUNT ( * ) WHEN - 67 * 49 * - 72 + 53 THEN NULL ELSE + 84 + 81 * 33 END + - 59 * + 49 THEN - 50 ELSE NULL END THEN NULL END ) * 36 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7106
SELECT ALL + 18 + - 29 + - + COUNT( * ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-7106
SELECT ALL + 18 + - 29 + - + COUNT ( * ) AS col0
----
-12

onlyif mysql # DIV for integer division: 
query II rowsort label-7107
SELECT DISTINCT - 63 + - - 34 AS col0, + 13 DIV - + 67
----
-29
0

skipif mysql # not compatible
query II rowsort label-7107
SELECT DISTINCT - 63 + - - 34 AS col0, + 13 / - + 67
----
-29
0

query I rowsort
SELECT DISTINCT + 90 * + 73 AS col2
----
6570

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7109
SELECT ALL - CAST( NULL AS DECIMAL ) + 78 * + 29 * 16 + - 21 / + + 68
----
NULL

skipif mysql # not compatible
query I rowsort label-7109
SELECT ALL - CAST ( NULL AS REAL ) + 78 * + 29 * 16 + - 21 / + + 68
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7110
SELECT ALL CAST( CAST( - - 95 AS DECIMAL ) AS SIGNED ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-7110
SELECT ALL CAST ( CAST ( - - 95 AS REAL ) AS INTEGER ) AS col0
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7111
SELECT ALL + 36 + - + CASE - 6 WHEN - - CASE - 59 WHEN - 18 THEN NULL ELSE CASE 90 WHEN + 91 * + COUNT( * ) - - 62 + 8 THEN - - NULLIF ( 55, + ( + 28 ) ) WHEN 58 THEN - AVG ( ALL - 63 ) * - CAST( NULL AS SIGNED ) END + + 36 END THEN NULL WHEN 96 + 58 THEN - - 49 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7111
SELECT ALL + 36 + - + CASE - 6 WHEN - - CASE - 59 WHEN - 18 THEN NULL ELSE CASE 90 WHEN + 91 * + COUNT ( * ) - - 62 + 8 THEN - - NULLIF ( 55, + ( + 28 ) ) WHEN 58 THEN - AVG ( ALL - 63 ) * - CAST ( NULL AS INTEGER ) END + + 36 END THEN NULL WHEN 96 + 58 THEN - - 49 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7112
SELECT ALL - 85 DIV ( - + 63 ) + + 51 AS col0
----
52

skipif mysql # not compatible
query I rowsort label-7112
SELECT ALL - 85 / ( - + 63 ) + + 51 AS col0
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7113
SELECT COUNT( * ) DIV 57 + 43 AS col2
----
43

skipif mysql # not compatible
query I rowsort label-7113
SELECT COUNT ( * ) / 57 + 43 AS col2
----
43

query II rowsort
SELECT - ( + ( + + 10 ) ) * - 84 AS col2, 84
----
840
84

onlyif mysql # aggregate syntax: 
query I rowsort label-7115
SELECT ALL + NULLIF ( COUNT( * ), + - 17 )
----
1

skipif mysql # not compatible
query I rowsort label-7115
SELECT ALL + NULLIF ( COUNT ( * ), + - 17 )
----
1

query I rowsort
SELECT 10 * + 69 + + 42
----
732

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7117
SELECT ALL 43 DIV MAX( - 1 ) + + 24 DIV - 25 AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-7117
SELECT ALL 43 / MAX ( - 1 ) + + 24 / - 25 AS col1
----
-43

query I rowsort
SELECT - 12 * 85
----
-1020

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7119
SELECT DISTINCT - 75 DIV COUNT( * ) - 37
----
-112

skipif mysql # not compatible
query I rowsort label-7119
SELECT DISTINCT - 75 / COUNT ( * ) - 37
----
-112

onlyif mysql # aggregate syntax: 
query I rowsort label-7120
SELECT NULLIF ( 90, - 88 + - 5 + - 67 ) * + + MIN( + 11 ) - + 42 AS col1
----
948

skipif mysql # not compatible
query I rowsort label-7120
SELECT NULLIF ( 90, - 88 + - 5 + - 67 ) * + + MIN ( + 11 ) - + 42 AS col1
----
948

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7121
SELECT + CASE + CAST( - 79 AS SIGNED ) WHEN - 7 + 35 * + 59 THEN - + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7121
SELECT + CASE + CAST ( - 79 AS INTEGER ) WHEN - 7 + 35 * + 59 THEN - + COUNT ( * ) END
----
NULL

query I rowsort
SELECT + 17 * + - 70
----
-1190

query I rowsort
SELECT ALL + + 27 col2
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-7124
SELECT DISTINCT + ( COUNT( * ) ) AS col2, + 37 * 3
----
1
111

skipif mysql # not compatible
query II rowsort label-7124
SELECT DISTINCT + ( COUNT ( * ) ) AS col2, + 37 * 3
----
1
111

onlyif mysql # aggregate syntax: 
query I rowsort label-7125
SELECT - COUNT( * ) * - 55 col1
----
55

skipif mysql # not compatible
query I rowsort label-7125
SELECT - COUNT ( * ) * - 55 col1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-7126
SELECT ALL - ( MAX( ALL + - 54 ) )
----
54

skipif mysql # not compatible
query I rowsort label-7126
SELECT ALL - ( MAX ( ALL + - 54 ) )
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-7127
SELECT 45 DIV + + 41 + - 88 * + + 29
----
-2551

skipif mysql # not compatible
query I rowsort label-7127
SELECT 45 / + + 41 + - 88 * + + 29
----
-2551

onlyif mysql # DIV for integer division: 
query I rowsort label-7128
SELECT DISTINCT + 73 DIV + 8 AS col0
----
9

skipif mysql # not compatible
query I rowsort label-7128
SELECT DISTINCT + 73 / + 8 AS col0
----
9

query I rowsort
SELECT 94 + - ( 83 )
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7130
SELECT 25 DIV NULLIF ( - 28, 8 * + - SUM( DISTINCT ( - - 13 ) ) ) AS col1, + CAST( NULL AS SIGNED )
----
0
NULL

skipif mysql # not compatible
query II rowsort label-7130
SELECT 25 / NULLIF ( - 28, 8 * + - SUM ( DISTINCT ( - - 13 ) ) ) AS col1, + CAST ( NULL AS INTEGER )
----
0
NULL

query I rowsort
SELECT - 26 + - 4
----
-30

query I rowsort
SELECT + COALESCE ( + 60, - 7 )
----
60

query I rowsort
SELECT ALL + 50 + + 19 col1
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7134
SELECT 90 - ( + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7134
SELECT 90 - ( + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 59 * + 9
----
531

query I rowsort
SELECT 90 + + - 11 * + 80
----
-790

query II rowsort
SELECT + 76 col2, - ( + 7 )
----
76
-7

query I rowsort
SELECT ALL 71 * 99 AS col1
----
7029

query I rowsort
SELECT 15 * + 61 * + 93 AS col2
----
85095

onlyif mysql # aggregate syntax: 
query I rowsort label-7140
SELECT ALL - CASE 2 WHEN + + 53 THEN NULL WHEN - + 30 / 63 + + COUNT( * ) + - + 90 THEN - - 92 WHEN - COUNT( * ) THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7140
SELECT ALL - CASE 2 WHEN + + 53 THEN NULL WHEN - + 30 / 63 + + COUNT ( * ) + - + 90 THEN - - 92 WHEN - COUNT ( * ) THEN NULL ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT 25 * + + 97
----
2425

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7142
SELECT DISTINCT + COUNT( DISTINCT + CASE + ( - 91 ) WHEN - 77 + + 66 + + + 93 + + 81 + - 47 * 39 * + 36 THEN + NULLIF ( - - 93, - ( - 64 ) ) ELSE NULL END ) DIV + - MAX( DISTINCT 43 ) + + + 84
----
84

skipif mysql # not compatible
query I rowsort label-7142
SELECT DISTINCT + COUNT ( DISTINCT + CASE + ( - 91 ) WHEN - 77 + + 66 + + + 93 + + 81 + - 47 * 39 * + 36 THEN + NULLIF ( - - 93, - ( - 64 ) ) ELSE NULL END ) / + - MAX ( DISTINCT 43 ) + + + 84
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-7143
SELECT ALL - NULLIF ( - - 99, + COALESCE ( - ( - + 73 ), - 48 + 60 + + COUNT( * ) ) ) AS col1
----
-99

skipif mysql # not compatible
query I rowsort label-7143
SELECT ALL - NULLIF ( - - 99, + COALESCE ( - ( - + 73 ), - 48 + 60 + + COUNT ( * ) ) ) AS col1
----
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-7144
SELECT - ( - 91 ) DIV - - 91
----
1

skipif mysql # not compatible
query I rowsort label-7144
SELECT - ( - 91 ) / - - 91
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7145
SELECT 4 * - + 86 + + 27 DIV - + 43 * + 76 * + 10
----
-344

skipif mysql # not compatible
query I rowsort label-7145
SELECT 4 * - + 86 + + 27 / - + 43 * + 76 * + 10
----
-344

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7146
SELECT 91 + 56 + + CAST( - 17 AS SIGNED )
----
130

skipif mysql # not compatible
query I rowsort label-7146
SELECT 91 + 56 + + CAST ( - 17 AS INTEGER )
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-7147
SELECT + MAX( DISTINCT + 3 ) * + - 70
----
-210

skipif mysql # not compatible
query I rowsort label-7147
SELECT + MAX ( DISTINCT + 3 ) * + - 70
----
-210

onlyif mysql # DIV for integer division: 
query I rowsort label-7148
SELECT DISTINCT - + NULLIF ( 97, - - 22 ) DIV - + 84
----
1

skipif mysql # not compatible
query I rowsort label-7148
SELECT DISTINCT - + NULLIF ( 97, - - 22 ) / - + 84
----
1

query I rowsort
SELECT DISTINCT - NULLIF ( - ( + 10 ), + + 41 ) col0
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7150
SELECT - 44 + - - 56 * 5 AS col2, CAST( NULL AS SIGNED ) AS col2
----
236
NULL

skipif mysql # not compatible
query II rowsort label-7150
SELECT - 44 + - - 56 * 5 AS col2, CAST ( NULL AS INTEGER ) AS col2
----
236
NULL

query I rowsort
SELECT 60 + + + 59 AS col2
----
119

query I rowsort
SELECT ALL + 44 * 61 AS col0
----
2684

onlyif mysql # aggregate syntax: 
query I rowsort label-7153
SELECT + 7 + - + 86 + - MIN( ALL + 88 )
----
-167

skipif mysql # not compatible
query I rowsort label-7153
SELECT + 7 + - + 86 + - MIN ( ALL + 88 )
----
-167

query I rowsort
SELECT DISTINCT - 92 + + 74 + 7 AS col0
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7155
SELECT - CASE 52 WHEN - 70 + 28 - + COALESCE ( + - 49, - 5, 16, - - 24 ) / CAST( - - 18 AS SIGNED ) * + 80 THEN NULL WHEN 80 THEN + + 20 * + 31 WHEN + - 78 THEN NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7155
SELECT - CASE 52 WHEN - 70 + 28 - + COALESCE ( + - 49, - 5, 16, - - 24 ) / CAST ( - - 18 AS INTEGER ) * + 80 THEN NULL WHEN 80 THEN + + 20 * + 31 WHEN + - 78 THEN NULL END col1
----
NULL

query I rowsort
SELECT ALL 37 * + 31 * + ( 78 )
----
89466

query III rowsort
SELECT ALL 49, - 81 col0, 29 AS col2
----
49
-81
29

onlyif mysql # aggregate syntax: 
query II rowsort label-7158
SELECT - 53 AS col2, MIN( + + 48 )
----
-53
48

skipif mysql # not compatible
query II rowsort label-7158
SELECT - 53 AS col2, MIN ( + + 48 )
----
-53
48

onlyif mysql # aggregate syntax: 
query II rowsort label-7159
SELECT 89 AS col0, - 60 + - COUNT( * ) AS col0
----
89
-61

skipif mysql # not compatible
query II rowsort label-7159
SELECT 89 AS col0, - 60 + - COUNT ( * ) AS col0
----
89
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-7160
SELECT ALL 89 - + + MAX( + 15 )
----
74

skipif mysql # not compatible
query I rowsort label-7160
SELECT ALL 89 - + + MAX ( + 15 )
----
74

query I rowsort
SELECT 71 * + 63 AS col0
----
4473

onlyif mysql # aggregate syntax: 
query II rowsort label-7162
SELECT ALL 64 AS col0, SUM( DISTINCT - 18 ) * - + CASE - 5 WHEN - - COUNT( DISTINCT + + 44 ) THEN 23 + + 91 + + 86 * 29 * - 73 + + - COUNT( * ) END AS col2
----
64
NULL

skipif mysql # not compatible
query II rowsort label-7162
SELECT ALL 64 AS col0, SUM ( DISTINCT - 18 ) * - + CASE - 5 WHEN - - COUNT ( DISTINCT + + 44 ) THEN 23 + + 91 + + 86 * 29 * - 73 + + - COUNT ( * ) END AS col2
----
64
NULL

query I rowsort
SELECT DISTINCT 95 * - + 25 AS col2
----
-2375

query I rowsort
SELECT 96 + - 81
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7165
SELECT - COUNT( - - 53 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7165
SELECT - COUNT ( - - 53 ) AS col2
----
-1

query I rowsort
SELECT ( CASE - - NULLIF ( 87, + NULLIF ( - 24, 30 ) / + 80 * + 39 ) WHEN + + CASE 74 WHEN ( + + 37 ) THEN + 34 + + - 6 WHEN + + 25 * + 24 * + 62 THEN NULLIF ( + 78, 29 ) END * + 21 * + + 62 THEN + COALESCE ( - 61, 72 ) - 52 WHEN + 47 * + 70 THEN + 8 END ) * + 67
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7167
SELECT 22 + + - SUM( - 56 ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-7167
SELECT 22 + + - SUM ( - 56 ) AS col0
----
78

query I rowsort
SELECT COALESCE ( - - 21, - 83 )
----
21

query I rowsort
SELECT ( + 92 ) * - + 6 AS col2
----
-552

onlyif mysql # aggregate syntax: 
query I rowsort label-7170
SELECT ALL ( 14 ) * MAX( + - 37 ) AS col2
----
-518

skipif mysql # not compatible
query I rowsort label-7170
SELECT ALL ( 14 ) * MAX ( + - 37 ) AS col2
----
-518

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7171
SELECT COUNT( DISTINCT - - 17 ) * - 11 + + + COUNT( * ) + - + 26 * - 92 * + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7171
SELECT COUNT ( DISTINCT - - 17 ) * - 11 + + + COUNT ( * ) + - + 26 * - 92 * + - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT 18 * + - 17
----
-306

query I rowsort
SELECT 6 * 24 AS col2
----
144

onlyif mysql # aggregate syntax: 
query II rowsort label-7174
SELECT ALL 71 * + 59 * - COUNT( DISTINCT + + 75 ), + 98 col1
----
-4189
98

skipif mysql # not compatible
query II rowsort label-7174
SELECT ALL 71 * + 59 * - COUNT ( DISTINCT + + 75 ), + 98 col1
----
-4189
98

query I rowsort
SELECT DISTINCT - - 30 * - 73 * 49 * - 49 + - 13
----
5258177

query II rowsort
SELECT ALL + 39 AS col2, 72 * - - 6 AS col2
----
39
432

onlyif mysql # aggregate syntax: 
query II rowsort label-7177
SELECT DISTINCT + 26 AS col2, + NULLIF ( - 19, COALESCE ( - - 43, + 98, COUNT( * ) - - 81 ) ) AS col2
----
26
-19

skipif mysql # not compatible
query II rowsort label-7177
SELECT DISTINCT + 26 AS col2, + NULLIF ( - 19, COALESCE ( - - 43, + 98, COUNT ( * ) - - 81 ) ) AS col2
----
26
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7178
SELECT ALL + 85 * + - 19 + - + CAST( 89 AS SIGNED ) + + 60 * + + 3
----
-1524

skipif mysql # not compatible
query I rowsort label-7178
SELECT ALL + 85 * + - 19 + - + CAST ( 89 AS INTEGER ) + + 60 * + + 3
----
-1524

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7179
SELECT - + CAST( NULL AS SIGNED ) / + ( + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7179
SELECT - + CAST ( NULL AS INTEGER ) / + ( + COUNT ( * ) )
----
NULL

query I rowsort
SELECT ALL - 56 * 45 + + ( + + 64 ) AS col2
----
-2456

query I rowsort
SELECT - 4 * 25 AS col1
----
-100

query I rowsort
SELECT - - 92 * + 48 - - 36 + + 44 AS col0
----
4496

onlyif mysql # aggregate syntax: 
query I rowsort label-7183
SELECT DISTINCT + - MAX( - 93 )
----
93

skipif mysql # not compatible
query I rowsort label-7183
SELECT DISTINCT + - MAX ( - 93 )
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-7184
SELECT ALL - + CASE 66 WHEN - 40 THEN - + 44 WHEN + SUM( - 82 ) + - + 25 * + - 30 * - 19 THEN NULL END + 44 * + 17
----
NULL

skipif mysql # not compatible
query I rowsort label-7184
SELECT ALL - + CASE 66 WHEN - 40 THEN - + 44 WHEN + SUM ( - 82 ) + - + 25 * + - 30 * - 19 THEN NULL END + 44 * + 17
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7185
SELECT ALL - 63 + + NULLIF ( - 10, - 33 * - - COUNT( * ) )
----
-73

skipif mysql # not compatible
query I rowsort label-7185
SELECT ALL - 63 + + NULLIF ( - 10, - 33 * - - COUNT ( * ) )
----
-73

query II rowsort
SELECT + 46, - 77 col2
----
46
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-7187
SELECT ALL 84 + - + COUNT( DISTINCT - 69 ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-7187
SELECT ALL 84 + - + COUNT ( DISTINCT - 69 ) AS col2
----
83

query I rowsort
SELECT DISTINCT + ( + - 12 )
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7189
SELECT ALL - CAST( NULL AS SIGNED ) - - ( + 87 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7189
SELECT ALL - CAST ( NULL AS INTEGER ) - - ( + 87 ) AS col1
----
NULL

query I rowsort
SELECT ALL + 59 * - 5 AS col0
----
-295

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7191
SELECT - NULLIF ( - 35, + + ( + - CAST( NULL AS SIGNED ) ) + - 41 + 1 + 42 * + 33 / + NULLIF ( + 78, - COUNT( - - 70 ) ) ) + + 64 AS col1
----
99

skipif mysql # not compatible
query I rowsort label-7191
SELECT - NULLIF ( - 35, + + ( + - CAST ( NULL AS INTEGER ) ) + - 41 + 1 + 42 * + 33 / + NULLIF ( + 78, - COUNT ( - - 70 ) ) ) + + 64 AS col1
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7192
SELECT - 72 + + MIN( ALL + - CAST( + - 37 AS SIGNED ) )
----
-35

skipif mysql # not compatible
query I rowsort label-7192
SELECT - 72 + + MIN ( ALL + - CAST ( + - 37 AS INTEGER ) )
----
-35

query I rowsort
SELECT + 78 * - - 26 AS col1
----
2028

query I rowsort
SELECT DISTINCT NULLIF ( 97, 42 / - COALESCE ( - - 6, + 53, + + 5 ) + + 51 + - 1 * - 77 ) col1
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7195
SELECT + 24 + COUNT( 52 )
----
25

skipif mysql # not compatible
query I rowsort label-7195
SELECT + 24 + COUNT ( 52 )
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7196
SELECT ALL 36 * - - COALESCE ( + - 64, + + 96 - - CAST( NULL AS SIGNED ) ) AS col2
----
-2304

skipif mysql # not compatible
query I rowsort label-7196
SELECT ALL 36 * - - COALESCE ( + - 64, + + 96 - - CAST ( NULL AS INTEGER ) ) AS col2
----
-2304

query I rowsort
SELECT + 42 * + + 56 col1
----
2352

onlyif mysql # aggregate syntax: 
query I rowsort label-7198
SELECT DISTINCT 82 * - - 12 * COUNT( ALL 59 ) AS col0
----
984

skipif mysql # not compatible
query I rowsort label-7198
SELECT DISTINCT 82 * - - 12 * COUNT ( ALL 59 ) AS col0
----
984

query I rowsort
SELECT + 94 + + 3
----
97

query I rowsort
SELECT + 12 * COALESCE ( + 76, - 79 )
----
912

query I rowsort
SELECT + 70 + - 39 * + 51 AS col1
----
-1919

onlyif mysql # aggregate syntax: 
query I rowsort label-7202
SELECT ALL ( + MAX( - 71 ) ) * - 65 * + 38 * - 35
----
-6137950

skipif mysql # not compatible
query I rowsort label-7202
SELECT ALL ( + MAX ( - 71 ) ) * - 65 * + 38 * - 35
----
-6137950

onlyif mysql # aggregate syntax: 
query I rowsort label-7203
SELECT + 82 * + ( + COUNT( * ) ) * COUNT( * )
----
82

skipif mysql # not compatible
query I rowsort label-7203
SELECT + 82 * + ( + COUNT ( * ) ) * COUNT ( * )
----
82

query I rowsort
SELECT + 99 - - ( 43 )
----
142

onlyif mysql # aggregate syntax: 
query I rowsort label-7205
SELECT - NULLIF ( + - 30, + COUNT( ( - 57 ) ) * - 61 * 3 + NULLIF ( + - COUNT( * ), - 58 + - 43 * - 10 + + 24 ) - + COUNT( * ) )
----
30

skipif mysql # not compatible
query I rowsort label-7205
SELECT - NULLIF ( + - 30, + COUNT ( ( - 57 ) ) * - 61 * 3 + NULLIF ( + - COUNT ( * ), - 58 + - 43 * - 10 + + 24 ) - + COUNT ( * ) )
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7206
SELECT CAST( + COALESCE ( - 35, + 79, + ( + 29 ) ) AS SIGNED ) AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-7206
SELECT CAST ( + COALESCE ( - 35, + 79, + ( + 29 ) ) AS INTEGER ) AS col0
----
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-7207
SELECT ALL + 83 DIV 11 + + - 25
----
-18

skipif mysql # not compatible
query I rowsort label-7207
SELECT ALL + 83 / 11 + + - 25
----
-18

query I rowsort
SELECT + 76 * - COALESCE ( - 87, - + NULLIF ( 46, + AVG ( - 74 ) ) ) * - 98 AS col1
----
-647976

onlyif mysql # DIV for integer division: 
query I rowsort label-7209
SELECT ALL + + 96 DIV + 63 + + 41
----
42

skipif mysql # not compatible
query I rowsort label-7209
SELECT ALL + + 96 / + 63 + + 41
----
42

query I rowsort
SELECT ALL 60 * + 31
----
1860

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7211
SELECT ALL - 9 * + - COUNT( * ) * - 36 + - 13 - + COALESCE ( CAST( NULL AS SIGNED ), + + 59 DIV + + 89 + 22 ) + + COUNT( - 95 ) AS col0
----
-358

skipif mysql # not compatible
query I rowsort label-7211
SELECT ALL - 9 * + - COUNT ( * ) * - 36 + - 13 - + COALESCE ( CAST ( NULL AS INTEGER ), + + 59 / + + 89 + 22 ) + + COUNT ( - 95 ) AS col0
----
-358

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7212
SELECT + - ( + NULLIF ( - + 6, CAST( NULL AS SIGNED ) + + + 27 ) )
----
6

skipif mysql # not compatible
query I rowsort label-7212
SELECT + - ( + NULLIF ( - + 6, CAST ( NULL AS INTEGER ) + + + 27 ) )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7213
SELECT + 2 + - - COUNT( * ) + - + 39 + 92 + - 66 - 51 + 48 + + + 83 - + 11 * 38 * 69 / NULLIF ( + + CASE COUNT( * ) WHEN 43 THEN + 43 + + 14 END, - 38 * + 86 + - 27 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7213
SELECT + 2 + - - COUNT ( * ) + - + 39 + 92 + - 66 - 51 + 48 + + + 83 - + 11 * 38 * 69 / NULLIF ( + + CASE COUNT ( * ) WHEN 43 THEN + 43 + + 14 END, - 38 * + 86 + - 27 )
----
NULL

query I rowsort
SELECT - 71 * + - 39 + - + 33 AS col1
----
2736

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7215
SELECT ALL 89 * CAST( NULL AS SIGNED ), COUNT( * ) * 63 col2
----
NULL
63

skipif mysql # not compatible
query II rowsort label-7215
SELECT ALL 89 * CAST ( NULL AS INTEGER ), COUNT ( * ) * 63 col2
----
NULL
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7216
SELECT - - 73 * - COALESCE ( - COUNT( * ), + COUNT( * ) ) * - + AVG ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7216
SELECT - - 73 * - COALESCE ( - COUNT ( * ), + COUNT ( * ) ) * - + AVG ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7217
SELECT - - 56 + - 9 + - + COUNT( * ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-7217
SELECT - - 56 + - 9 + - + COUNT ( * ) AS col1
----
46

query I rowsort
SELECT + 4 * ( + 23 )
----
92

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7219
SELECT - CAST( NULL AS DECIMAL ) * + 15 + + COUNT( * ) - + 81 - - + 13 + 3 / - + 58 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7219
SELECT - CAST ( NULL AS REAL ) * + 15 + + COUNT ( * ) - + 81 - - + 13 + 3 / - + 58 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7220
SELECT DISTINCT ( MIN( ALL 17 ) ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-7220
SELECT DISTINCT ( MIN ( ALL 17 ) ) AS col0
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-7221
SELECT COUNT( * ), 15 AS col0
----
1
15

skipif mysql # not compatible
query II rowsort label-7221
SELECT COUNT ( * ), 15 AS col0
----
1
15

query I rowsort
SELECT DISTINCT + 74 * - - 46 * - 28 AS col2
----
-95312

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7223
SELECT DISTINCT + 1 DIV - COUNT( + + 56 )
----
-1

skipif mysql # not compatible
query I rowsort label-7223
SELECT DISTINCT + 1 / - COUNT ( + + 56 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7224
SELECT - ( - - COUNT( * ) ) * - 73 AS col2
----
73

skipif mysql # not compatible
query I rowsort label-7224
SELECT - ( - - COUNT ( * ) ) * - 73 AS col2
----
73

query I rowsort
SELECT DISTINCT - ( + + 87 ) * 56
----
-4872

onlyif mysql # aggregate syntax: 
query II rowsort label-7226
SELECT ALL - 29 * - + 28 * 46 * - - 73, COUNT( * ) AS col0
----
2726696
1

skipif mysql # not compatible
query II rowsort label-7226
SELECT ALL - 29 * - + 28 * 46 * - - 73, COUNT ( * ) AS col0
----
2726696
1

query I rowsort
SELECT - 30 * - 64 AS col0
----
1920

query II rowsort
SELECT - 69 AS col2, 55 + + 72 + 6 AS col0
----
-69
133

query I rowsort
SELECT - NULLIF ( 72, - + 84 )
----
-72

query I rowsort
SELECT + 88 * - 39 AS col2
----
-3432

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7231
SELECT ALL - CAST( - 80 AS SIGNED ) + 41 + - 51 + - COUNT( * ) - + 24 + + 59 * SUM( - 33 ) DIV ( - - ( - 5 ) ) AS col0
----
434

skipif mysql # not compatible
query I rowsort label-7231
SELECT ALL - CAST ( - 80 AS INTEGER ) + 41 + - 51 + - COUNT ( * ) - + 24 + + 59 * SUM ( - 33 ) / ( - - ( - 5 ) ) AS col0
----
434

onlyif mysql # aggregate syntax: 
query I rowsort label-7232
SELECT - 58 - + COUNT( * ) AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-7232
SELECT - 58 - + COUNT ( * ) AS col0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-7233
SELECT COUNT( * ) + COUNT( * ) * + - ( + ( + COUNT( * ) ) ) * 54 * + 53
----
-2861

skipif mysql # not compatible
query I rowsort label-7233
SELECT COUNT ( * ) + COUNT ( * ) * + - ( + ( + COUNT ( * ) ) ) * 54 * + 53
----
-2861

query I rowsort
SELECT 24 * + COALESCE ( 28, - 37 ) * - 55 * + 57 AS col1
----
-2106720

onlyif mysql # aggregate syntax: 
query I rowsort label-7235
SELECT ALL ( NULLIF ( + 27, - + 26 * - 48 * 38 + + + ( + - 79 ) - COUNT( * ) ) )
----
27

skipif mysql # not compatible
query I rowsort label-7235
SELECT ALL ( NULLIF ( + 27, - + 26 * - 48 * 38 + + + ( + - 79 ) - COUNT ( * ) ) )
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7236
SELECT - CAST( NULL AS SIGNED ) col0, 59 + + 38
----
NULL
97

skipif mysql # not compatible
query II rowsort label-7236
SELECT - CAST ( NULL AS INTEGER ) col0, 59 + + 38
----
NULL
97

query I rowsort
SELECT - 20 + - 47 AS col2
----
-67

query I rowsort
SELECT DISTINCT 89 + + - 46 AS col2
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-7239
SELECT - 77 * 51 + 95 + - + COUNT( * ) AS col2
----
-3833

skipif mysql # not compatible
query I rowsort label-7239
SELECT - 77 * 51 + 95 + - + COUNT ( * ) AS col2
----
-3833

query II rowsort
SELECT 31 AS col1, 52
----
31
52

query I rowsort
SELECT DISTINCT 78 * 58 AS col1
----
4524

query I rowsort
SELECT DISTINCT - 13 - - 28 AS col1
----
15

query II rowsort
SELECT + 59 AS col0, - 69 AS col2
----
59
-69

query I rowsort
SELECT ALL 19 - + 3 - - 75 - 83 * + + 38 AS col0
----
-3063

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7245
SELECT + + 9 AS col0, 54 DIV COUNT( * )
----
9
54

skipif mysql # not compatible
query II rowsort label-7245
SELECT + + 9 AS col0, 54 / COUNT ( * )
----
9
54

query I rowsort
SELECT NULLIF ( + - 17, + - 58 ) AS col0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-7247
SELECT + 2 * 33 * MIN( + + 18 ) + + 14
----
1202

skipif mysql # not compatible
query I rowsort label-7247
SELECT + 2 * 33 * MIN ( + + 18 ) + + 14
----
1202

query I rowsort
SELECT + ( - 42 ) * + - 14 * + 3 + + - CASE - 10 WHEN + + 60 THEN - 5 + + 32 - - - 9 WHEN + 58 / - 34 + 71 / + 28 * + AVG ( DISTINCT - 49 ) * + 1 + ( - + 97 ) + + - 71 + 30 THEN NULL END + - - 78
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7249
SELECT DISTINCT - CASE 97 WHEN COUNT( - 10 ) / ( + 90 ) / + + ( + 84 ) THEN NULL ELSE - - CASE - - 91 WHEN + ( - + 26 ) THEN + 98 + - - 7 END END AS col2, - 64 AS col1
----
NULL
-64

skipif mysql # not compatible
query II rowsort label-7249
SELECT DISTINCT - CASE 97 WHEN COUNT ( - 10 ) / ( + 90 ) / + + ( + 84 ) THEN NULL ELSE - - CASE - - 91 WHEN + ( - + 26 ) THEN + 98 + - - 7 END END AS col2, - 64 AS col1
----
NULL
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-7250
SELECT ALL - COUNT( ALL 60 ) * 81 AS col2
----
-81

skipif mysql # not compatible
query I rowsort label-7250
SELECT ALL - COUNT ( ALL 60 ) * 81 AS col2
----
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7251
SELECT CASE + 33 WHEN - 90 THEN NULL WHEN - 13 THEN NULL ELSE - + 49 END * + 29 DIV + - COUNT( * )
----
1421

skipif mysql # not compatible
query I rowsort label-7251
SELECT CASE + 33 WHEN - 90 THEN NULL WHEN - 13 THEN NULL ELSE - + 49 END * + 29 / + - COUNT ( * )
----
1421

query I rowsort
SELECT DISTINCT 72 * 90 AS col2
----
6480

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7253
SELECT ALL 7 + + SUM( + + 1 ) / + CAST( + 97 AS SIGNED ) / - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7253
SELECT ALL 7 + + SUM ( + + 1 ) / + CAST ( + 97 AS INTEGER ) / - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT 34 * + 93 * - - 64 * - 9 AS col2
----
-1821312

onlyif mysql # aggregate syntax: 
query I rowsort label-7255
SELECT ALL - MIN( ALL - - 5 ) + 55 + 5 * - + 42 AS col2
----
-160

skipif mysql # not compatible
query I rowsort label-7255
SELECT ALL - MIN ( ALL - - 5 ) + 55 + 5 * - + 42 AS col2
----
-160

onlyif mysql # aggregate syntax: 
query I rowsort label-7256
SELECT DISTINCT COUNT( * ) + 63 col1
----
64

skipif mysql # not compatible
query I rowsort label-7256
SELECT DISTINCT COUNT ( * ) + 63 col1
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7257
SELECT 24 + 23 + + + COUNT( * ) * - 75 * 82 * 0 * COUNT( * )
----
47

skipif mysql # not compatible
query I rowsort label-7257
SELECT 24 + 23 + + + COUNT ( * ) * - 75 * 82 * 0 * COUNT ( * )
----
47

query I rowsort
SELECT ALL - 53 + - 48 - + - 81
----
-20

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7259
SELECT DISTINCT - + AVG ( + CAST( NULL AS DECIMAL ) ) + 49
----
NULL

skipif mysql # not compatible
query I rowsort label-7259
SELECT DISTINCT - + AVG ( + CAST ( NULL AS REAL ) ) + 49
----
NULL

query I rowsort
SELECT 52 * 58 * - 77 AS col0
----
-232232

query I rowsort
SELECT - 8 + - 56 + - 24
----
-88

query I rowsort
SELECT 42 + - + ( 60 ) + + 20
----
2

query II rowsort
SELECT + 70 - + 18 AS col0, + 6
----
52
6

query I rowsort
SELECT + 75 * - 45 + - 21 * 19 AS col2
----
-3774

query I rowsort
SELECT - ( + NULLIF ( + 80, + - 17 ) ) * 35 * - 34
----
95200

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7266
SELECT DISTINCT + ( - CAST( NULL AS SIGNED ) ) / + 17 * 61 col1, 31 * + 93 + + 8 - 64
----
NULL
2827

skipif mysql # not compatible
query II rowsort label-7266
SELECT DISTINCT + ( - CAST ( NULL AS INTEGER ) ) / + 17 * 61 col1, 31 * + 93 + + 8 - 64
----
NULL
2827

query II rowsort
SELECT 15 * + 38 - + 19 + + 70 AS col1, 2 * 77
----
621
154

query I rowsort
SELECT ALL + - 65 * + 27 - - 14 AS col2
----
-1741

query I rowsort
SELECT ( - 53 ) * 23 AS col1
----
-1219

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7270
SELECT + 86 + + MAX( DISTINCT 47 ) + + + 0 + + + 92 + - 90 + - 90 + - ( - - COUNT( * ) ) / 22 / + CAST( NULL AS SIGNED ) * 58 + 46
----
NULL

skipif mysql # not compatible
query I rowsort label-7270
SELECT + 86 + + MAX ( DISTINCT 47 ) + + + 0 + + + 92 + - 90 + - 90 + - ( - - COUNT ( * ) ) / 22 / + CAST ( NULL AS INTEGER ) * 58 + 46
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7271
SELECT MIN( DISTINCT + 8 ) AS col1, COUNT( * ) AS col0
----
8
1

skipif mysql # not compatible
query II rowsort label-7271
SELECT MIN ( DISTINCT + 8 ) AS col1, COUNT ( * ) AS col0
----
8
1

query I rowsort
SELECT ALL - NULLIF ( 39, + 76 ) AS col2
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7273
SELECT ALL - - CAST( - 84 AS SIGNED )
----
-84

skipif mysql # not compatible
query I rowsort label-7273
SELECT ALL - - CAST ( - 84 AS INTEGER )
----
-84

query I rowsort
SELECT DISTINCT - 46 * 42 AS col1
----
-1932

onlyif mysql # aggregate syntax: 
query I rowsort label-7275
SELECT COUNT( * ) + + 93 + 62
----
156

skipif mysql # not compatible
query I rowsort label-7275
SELECT COUNT ( * ) + + 93 + 62
----
156

onlyif mysql # DIV for integer division: 
query I rowsort label-7276
SELECT 9 DIV 77 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7276
SELECT 9 / 77 AS col1
----
0

query I rowsort
SELECT 15 + - 13 AS col1
----
2

query I rowsort
SELECT COALESCE ( - 21, - 76 ) + - 22 + 14 AS col1
----
-29

query II rowsort
SELECT 58, - 53 AS col2
----
58
-53

query I rowsort
SELECT 65 * + + 12 * - 71 + 92
----
-55288

onlyif mysql # aggregate syntax: 
query I rowsort label-7281
SELECT - COUNT( * ) + + 72 + + 44 + 27 + - COUNT( * ) + - 11 + + + 79 + - - 86 * + SUM( ALL + + NULLIF ( + + 95, + + 32 ) ) * - 54
----
-440971

skipif mysql # not compatible
query I rowsort label-7281
SELECT - COUNT ( * ) + + 72 + + 44 + 27 + - COUNT ( * ) + - 11 + + + 79 + - - 86 * + SUM ( ALL + + NULLIF ( + + 95, + + 32 ) ) * - 54
----
-440971

query I rowsort
SELECT + 59 * + 32
----
1888

onlyif mysql # aggregate syntax: 
query I rowsort label-7283
SELECT DISTINCT COUNT( 2 ) + 27
----
28

skipif mysql # not compatible
query I rowsort label-7283
SELECT DISTINCT COUNT ( 2 ) + 27
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-7284
SELECT - NULLIF ( + SUM( DISTINCT - 34 ), 5 * COUNT( + - 64 ) ) AS col1, 20 + 75 AS col0
----
34
95

skipif mysql # not compatible
query II rowsort label-7284
SELECT - NULLIF ( + SUM ( DISTINCT - 34 ), 5 * COUNT ( + - 64 ) ) AS col1, 20 + 75 AS col0
----
34
95

query I rowsort
SELECT + 11 * 10
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-7286
SELECT - CASE - 42 WHEN COUNT( + - 33 ) THEN COALESCE ( + - 3, - 14 * 14, 66 * - + 93 ) * - 87 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7286
SELECT - CASE - 42 WHEN COUNT ( + - 33 ) THEN COALESCE ( + - 3, - 14 * 14, 66 * - + 93 ) * - 87 END
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7287
SELECT - 23 + CASE + 46 WHEN 13 THEN NULL WHEN 1 * - CAST( NULL AS DECIMAL ) THEN 5 / 30 / + 30 END + + + 29
----
NULL

skipif mysql # not compatible
query I rowsort label-7287
SELECT - 23 + CASE + 46 WHEN 13 THEN NULL WHEN 1 * - CAST ( NULL AS REAL ) THEN 5 / 30 / + 30 END + + + 29
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7288
SELECT - SUM( - + CAST( - 16 AS SIGNED ) ) * 59 AS col2
----
-944

skipif mysql # not compatible
query I rowsort label-7288
SELECT - SUM ( - + CAST ( - 16 AS INTEGER ) ) * 59 AS col2
----
-944

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7289
SELECT - + 45 + - 39 DIV 68 * - - COUNT( * )
----
-45

skipif mysql # not compatible
query I rowsort label-7289
SELECT - + 45 + - 39 / 68 * - - COUNT ( * )
----
-45

query I rowsort
SELECT - + NULLIF ( + ( - 48 ), + 82 ) AS col0
----
48

query I rowsort
SELECT + + 1 - + 20 AS col0
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-7292
SELECT ALL 38 DIV + 82
----
0

skipif mysql # not compatible
query I rowsort label-7292
SELECT ALL 38 / + 82
----
0

query I rowsort
SELECT DISTINCT - + 42 * + + 76
----
-3192

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7294
SELECT - 95 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7294
SELECT - 95 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 9 * - + 42 AS col1
----
378

onlyif mysql # aggregate syntax: 
query II rowsort label-7296
SELECT 85 * 93 - - 54, ( MAX( - 7 ) ) AS col1
----
7959
-7

skipif mysql # not compatible
query II rowsort label-7296
SELECT 85 * 93 - - 54, ( MAX ( - 7 ) ) AS col1
----
7959
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-7297
SELECT DISTINCT + 22 * - COUNT( * ) + 53
----
31

skipif mysql # not compatible
query I rowsort label-7297
SELECT DISTINCT + 22 * - COUNT ( * ) + 53
----
31

query I rowsort
SELECT - + ( - 52 ) * - 7 * 73 AS col0
----
-26572

onlyif mysql # aggregate syntax: 
query I rowsort label-7299
SELECT - - 94 * COUNT( * ) AS col1
----
94

skipif mysql # not compatible
query I rowsort label-7299
SELECT - - 94 * COUNT ( * ) AS col1
----
94

query I rowsort
SELECT - 25 * 80 AS col1
----
-2000

onlyif mysql # aggregate syntax: 
query I rowsort label-7301
SELECT ALL COUNT( * ) * + 9 + - 23
----
-14

skipif mysql # not compatible
query I rowsort label-7301
SELECT ALL COUNT ( * ) * + 9 + - 23
----
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-7302
SELECT DISTINCT + COUNT( * ) AS col1, - 32 AS col1
----
1
-32

skipif mysql # not compatible
query II rowsort label-7302
SELECT DISTINCT + COUNT ( * ) AS col1, - 32 AS col1
----
1
-32

query I rowsort
SELECT ALL - ( - 92 ) * 22 * - 13 + + - 20 AS col1
----
-26332

onlyif mysql # aggregate syntax: 
query I rowsort label-7304
SELECT ALL + COUNT( * ) * - COUNT( * ) * COUNT( * ) + + - 54
----
-55

skipif mysql # not compatible
query I rowsort label-7304
SELECT ALL + COUNT ( * ) * - COUNT ( * ) * COUNT ( * ) + + - 54
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-7305
SELECT - 90 * 58 DIV - 51
----
102

skipif mysql # not compatible
query I rowsort label-7305
SELECT - 90 * 58 / - 51
----
102

query I rowsort
SELECT + 95 * + 68 AS col0
----
6460

query I rowsort
SELECT NULLIF ( 16, - ( 82 ) + 50 * - 92 ) AS col0
----
16

query I rowsort
SELECT - NULLIF ( ( + 48 ), - 78 * - 64 ) * 6 - + 84 + - + 2 * + 13
----
-398

query I rowsort
SELECT + NULLIF ( - - 17, + 53 ) col1
----
17

query I rowsort
SELECT - 59 - - 21 AS col2
----
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7311
SELECT DISTINCT + COUNT( * ) * + 27 DIV - - 76 + + + 69
----
69

skipif mysql # not compatible
query I rowsort label-7311
SELECT DISTINCT + COUNT ( * ) * + 27 / - - 76 + + + 69
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-7312
SELECT ALL - COUNT( * ) * COUNT( DISTINCT + ( 92 ) ) + - 31
----
-32

skipif mysql # not compatible
query I rowsort label-7312
SELECT ALL - COUNT ( * ) * COUNT ( DISTINCT + ( 92 ) ) + - 31
----
-32

query I rowsort
SELECT + NULLIF ( 9, ( - 5 ) ) AS col2
----
9

query I rowsort
SELECT ALL - 96 * - - 23 + - ( 10 ) col2
----
-2218

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7315
SELECT DISTINCT CAST( - - COALESCE ( + COUNT( * ), MIN( DISTINCT + ( 9 ) ) ) AS SIGNED ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7315
SELECT DISTINCT CAST ( - - COALESCE ( + COUNT ( * ), MIN ( DISTINCT + ( 9 ) ) ) AS INTEGER ) AS col1
----
1

query I rowsort
SELECT + 70 * + 80 - - 45
----
5645

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7317
SELECT ALL 79 AS col2, COUNT( * ) DIV + 71 AS col1
----
79
0

skipif mysql # not compatible
query II rowsort label-7317
SELECT ALL 79 AS col2, COUNT ( * ) / + 71 AS col1
----
79
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7318
SELECT COUNT( * ) AS col0, - CAST( ( + - 91 ) AS SIGNED ) AS col1
----
1
91

skipif mysql # not compatible
query II rowsort label-7318
SELECT COUNT ( * ) AS col0, - CAST ( ( + - 91 ) AS INTEGER ) AS col1
----
1
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7319
SELECT - 76 + COALESCE ( COUNT( * ), 76 ) - - - 30 * + 11 * - 0
----
-75

skipif mysql # not compatible
query I rowsort label-7319
SELECT - 76 + COALESCE ( COUNT ( * ), 76 ) - - - 30 * + 11 * - 0
----
-75

query I rowsort
SELECT + 82 - 50
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-7321
SELECT MAX( DISTINCT - 93 ) AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-7321
SELECT MAX ( DISTINCT - 93 ) AS col1
----
-93

query I rowsort
SELECT + 43 + + 99 + 49
----
191

onlyif mysql # aggregate syntax: 
query I rowsort label-7323
SELECT DISTINCT SUM( 70 ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-7323
SELECT DISTINCT SUM ( 70 ) AS col2
----
70

query I rowsort
SELECT + - ( + - 97 ) * + 34 AS col1
----
3298

onlyif mysql # aggregate syntax: 
query I rowsort label-7325
SELECT DISTINCT NULLIF ( - - 67, + COALESCE ( - + 68, - - 40 ) * - COUNT( * ) ) * 66 * - - NULLIF ( + + 6, + 24 )
----
26532

skipif mysql # not compatible
query I rowsort label-7325
SELECT DISTINCT NULLIF ( - - 67, + COALESCE ( - + 68, - - 40 ) * - COUNT ( * ) ) * 66 * - - NULLIF ( + + 6, + 24 )
----
26532

query I rowsort
SELECT ( - + 34 ) col2
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7327
SELECT + - CAST( - ( + + 19 ) AS SIGNED ) DIV - COUNT( * ) AS col2, 26
----
-19
26

skipif mysql # not compatible
query II rowsort label-7327
SELECT + - CAST ( - ( + + 19 ) AS INTEGER ) / - COUNT ( * ) AS col2, 26
----
-19
26

onlyif mysql # aggregate syntax: 
query II rowsort label-7328
SELECT ALL - 84 * - + 93 * - 13 * COUNT( * ), 25 * - 48 + + - 6 AS col2
----
-101556
-1206

skipif mysql # not compatible
query II rowsort label-7328
SELECT ALL - 84 * - + 93 * - 13 * COUNT ( * ), 25 * - 48 + + - 6 AS col2
----
-101556
-1206

query I rowsort
SELECT + 2 * + 97
----
194

query I rowsort
SELECT NULLIF ( 56, - - 97 ) AS col1
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-7331
SELECT ALL + COUNT( * ) AS col0, - ( + 36 )
----
1
-36

skipif mysql # not compatible
query II rowsort label-7331
SELECT ALL + COUNT ( * ) AS col0, - ( + 36 )
----
1
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-7332
SELECT - 29 DIV - 62 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7332
SELECT - 29 / - 62 AS col2
----
0

query II rowsort
SELECT - 0, - 37 AS col0
----
0
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-7334
SELECT ALL ( 41 ) DIV - + 71 * - 74
----
0

skipif mysql # not compatible
query I rowsort label-7334
SELECT ALL ( 41 ) / - + 71 * - 74
----
0

query I rowsort
SELECT DISTINCT 74 * 72
----
5328

query I rowsort
SELECT - 19 - + - ( 27 )
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7337
SELECT CAST( - + 66 AS SIGNED ), 83 * + 86 - 84 col2
----
-66
7054

skipif mysql # not compatible
query II rowsort label-7337
SELECT CAST ( - + 66 AS INTEGER ), 83 * + 86 - 84 col2
----
-66
7054

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7338
SELECT - 11 DIV + + NULLIF ( - - COUNT( * ), - COALESCE ( + + 41, - CAST( NULL AS SIGNED ) ) * 19 ) + 59 col1
----
48

skipif mysql # not compatible
query I rowsort label-7338
SELECT - 11 / + + NULLIF ( - - COUNT ( * ), - COALESCE ( + + 41, - CAST ( NULL AS INTEGER ) ) * 19 ) + 59 col1
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-7339
SELECT ALL + 79 DIV - ( 60 ) + - + 12
----
-13

skipif mysql # not compatible
query I rowsort label-7339
SELECT ALL + 79 / - ( 60 ) + - + 12
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-7340
SELECT 5 + + 49 + - + 13 + COUNT( * ) + MAX( - + 51 )
----
-9

skipif mysql # not compatible
query I rowsort label-7340
SELECT 5 + + 49 + - + 13 + COUNT ( * ) + MAX ( - + 51 )
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7341
SELECT DISTINCT 7 + + ( COUNT( * ) ) DIV + 66 col1
----
7

skipif mysql # not compatible
query I rowsort label-7341
SELECT DISTINCT 7 + + ( COUNT ( * ) ) / + 66 col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7342
SELECT ALL - 66 + + - COALESCE ( + COUNT( * ), CASE - 44 WHEN + - 67 THEN 43 ELSE 48 END )
----
-67

skipif mysql # not compatible
query I rowsort label-7342
SELECT ALL - 66 + + - COALESCE ( + COUNT ( * ), CASE - 44 WHEN + - 67 THEN 43 ELSE 48 END )
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-7343
SELECT ALL + 66 - - 86 * + ( - CASE WHEN NULL NOT BETWEEN - 70 AND - + 78 / + COUNT( * ) * - - 13 THEN - 63 END ) + - 36
----
NULL

skipif mysql # not compatible
query I rowsort label-7343
SELECT ALL + 66 - - 86 * + ( - CASE WHEN NULL NOT BETWEEN - 70 AND - + 78 / + COUNT ( * ) * - - 13 THEN - 63 END ) + - 36
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7344
SELECT ALL - CASE - 45 WHEN + 96 THEN NULL WHEN + COUNT( * ) THEN - 66 + - 11 + + CAST( NULL AS DECIMAL ) * - 81 * - NULLIF ( 41, + ( - 51 ) + 29 / - - 7 ) / 68 * 58 + - + 83 + + COALESCE ( COUNT( * ), - + CAST( NULL AS SIGNED ), - + 46 ) + + COALESCE ( - 1, 64 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7344
SELECT ALL - CASE - 45 WHEN + 96 THEN NULL WHEN + COUNT ( * ) THEN - 66 + - 11 + + CAST ( NULL AS REAL ) * - 81 * - NULLIF ( 41, + ( - 51 ) + 29 / - - 7 ) / 68 * 58 + - + 83 + + COALESCE ( COUNT ( * ), - + CAST ( NULL AS INTEGER ), - + 46 ) + + COALESCE ( - 1, 64 ) END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7345
SELECT 14 DIV - 35
----
0

skipif mysql # not compatible
query I rowsort label-7345
SELECT 14 / - 35
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7346
SELECT DISTINCT - 21 DIV - ( 72 )
----
0

skipif mysql # not compatible
query I rowsort label-7346
SELECT DISTINCT - 21 / - ( 72 )
----
0

query II rowsort
SELECT ALL - 3 * 78 AS col1, 67
----
-234
67

onlyif mysql # aggregate syntax: 
query I rowsort label-7348
SELECT 75 * - + 90 * + COUNT( * ) AS col2
----
-6750

skipif mysql # not compatible
query I rowsort label-7348
SELECT 75 * - + 90 * + COUNT ( * ) AS col2
----
-6750

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7349
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * - 45 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7349
SELECT DISTINCT - CAST ( NULL AS REAL ) * - 45 AS col0
----
NULL

query II rowsort
SELECT + 37 + + - 60 AS col1, 80
----
-23
80

query I rowsort
SELECT ALL - + 34 * + 18 AS col1
----
-612

onlyif mysql # aggregate syntax: 
query I rowsort label-7352
SELECT DISTINCT + + 71 * + COUNT( DISTINCT - 80 ) * - COUNT( * )
----
-71

skipif mysql # not compatible
query I rowsort label-7352
SELECT DISTINCT + + 71 * + COUNT ( DISTINCT - 80 ) * - COUNT ( * )
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-7353
SELECT + SUM( ALL 74 )
----
74

skipif mysql # not compatible
query I rowsort label-7353
SELECT + SUM ( ALL 74 )
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-7354
SELECT + 64 * - SUM( 7 ) + - - 47 AS col2
----
-401

skipif mysql # not compatible
query I rowsort label-7354
SELECT + 64 * - SUM ( 7 ) + - - 47 AS col2
----
-401

onlyif mysql # aggregate syntax: 
query I rowsort label-7355
SELECT ( + + 3 ) - + + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-7355
SELECT ( + + 3 ) - + + COUNT ( * )
----
2

query I rowsort
SELECT - 86 + - 9 AS col1
----
-95

query I rowsort
SELECT 27 + - 93 AS col1
----
-66

query I rowsort
SELECT DISTINCT + - 17 + + - 92 AS col1
----
-109

query I rowsort
SELECT ALL + ( + 72 ) * + ( - - 32 ) AS col1
----
2304

query I rowsort
SELECT ( - 83 ) * 94
----
-7802

query I rowsort
SELECT ALL 19 + 50 AS col0
----
69

query II rowsort
SELECT ALL - ( + 39 ) AS col2, - 75
----
-39
-75

query II rowsort
SELECT ALL 63 * 17 AS col1, + 72 * + 22
----
1071
1584

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7364
SELECT 86 * + NULLIF ( - ( - 9 ), - - SUM( DISTINCT - + 81 ) * - + 25 + + - 35 + - + CAST( NULL AS SIGNED ) ) AS col0
----
774

skipif mysql # not compatible
query I rowsort label-7364
SELECT 86 * + NULLIF ( - ( - 9 ), - - SUM ( DISTINCT - + 81 ) * - + 25 + + - 35 + - + CAST ( NULL AS INTEGER ) ) AS col0
----
774

query I rowsort
SELECT - 2 + 60
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-7366
SELECT MIN( + 74 ) AS col0, NULLIF ( - COUNT( * ), - 61 ) + 41
----
74
40

skipif mysql # not compatible
query II rowsort label-7366
SELECT MIN ( + 74 ) AS col0, NULLIF ( - COUNT ( * ), - 61 ) + 41
----
74
40

query I rowsort
SELECT DISTINCT 43 + + ( 97 ) * + + 9 col0
----
916

onlyif mysql # aggregate syntax: 
query I rowsort label-7368
SELECT ALL COALESCE ( COUNT( * ), - 99 * 75 ) + + 83 AS col2
----
84

skipif mysql # not compatible
query I rowsort label-7368
SELECT ALL COALESCE ( COUNT ( * ), - 99 * 75 ) + + 83 AS col2
----
84

query II rowsort
SELECT + 42, 54 col2
----
42
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7370
SELECT DISTINCT ( + 96 ) + ( + + 20 ) + CASE 80 WHEN + - 26 THEN NULL WHEN COUNT( * ) * - 79 - - 39 THEN NULL ELSE CASE + + 76 WHEN - 57 THEN - 34 + 26 + - 55 - 69 + - 78 / + 99 * - MAX( - 67 ) WHEN - 31 * + 57 * - COUNT( * ) + - 91 + + 14 THEN - 10 * + + 66 + - + 73 + + 20 + - 4 / - + 21 + - 46 / NULLIF ( 37, - 34 * CAST( NULL AS SIGNED ) ) / + 39 END * - 51 END / - 32
----
NULL

skipif mysql # not compatible
query I rowsort label-7370
SELECT DISTINCT ( + 96 ) + ( + + 20 ) + CASE 80 WHEN + - 26 THEN NULL WHEN COUNT ( * ) * - 79 - - 39 THEN NULL ELSE CASE + + 76 WHEN - 57 THEN - 34 + 26 + - 55 - 69 + - 78 / + 99 * - MAX ( - 67 ) WHEN - 31 * + 57 * - COUNT ( * ) + - 91 + + 14 THEN - 10 * + + 66 + - + 73 + + 20 + - 4 / - + 21 + - 46 / NULLIF ( 37, - 34 * CAST ( NULL AS INTEGER ) ) / + 39 END * - 51 END / - 32
----
NULL

query I rowsort
SELECT DISTINCT 7 + + 77 AS col2
----
84

query II rowsort
SELECT 87 AS col2, + 6 * - 76 + - 53 * - 40 AS col1
----
87
1664

onlyif mysql # aggregate syntax: 
query I rowsort label-7373
SELECT ALL COUNT( * ) - - 78 + - 52 + + 15
----
42

skipif mysql # not compatible
query I rowsort label-7373
SELECT ALL COUNT ( * ) - - 78 + - 52 + + 15
----
42

query I rowsort
SELECT ALL - 34 - - 58 AS col0
----
24

query I rowsort
SELECT DISTINCT + 80 * - 25 AS col1
----
-2000

onlyif mysql # DIV for integer division: 
query I rowsort label-7376
SELECT 50 DIV 14
----
3

skipif mysql # not compatible
query I rowsort label-7376
SELECT 50 / 14
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7377
SELECT ALL - CAST( NULL AS SIGNED ) - 98 + + + 8 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7377
SELECT ALL - CAST ( NULL AS INTEGER ) - 98 + + + 8 AS col1
----
NULL

query II rowsort
SELECT 30 * + - 40 * + + 47, - 47 AS col1
----
-56400
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-7379
SELECT + MAX( ALL + 20 )
----
20

skipif mysql # not compatible
query I rowsort label-7379
SELECT + MAX ( ALL + 20 )
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-7380
SELECT - 62 * ( + 35 ) * 91 DIV COALESCE ( - 60, - - 35 * - + 5 DIV 76 * + 24 ) - + ( 1 )
----
3290

skipif mysql # not compatible
query I rowsort label-7380
SELECT - 62 * ( + 35 ) * 91 / COALESCE ( - 60, - - 35 * - + 5 / 76 * + 24 ) - + ( 1 )
----
3290

onlyif mysql # aggregate syntax: 
query I rowsort label-7381
SELECT DISTINCT - COUNT( ALL + 43 )
----
-1

skipif mysql # not compatible
query I rowsort label-7381
SELECT DISTINCT - COUNT ( ALL + 43 )
----
-1

query I rowsort
SELECT ALL - ( + - COALESCE ( + 44, 11 + + 94 ) )
----
44

query I rowsort
SELECT 59 + - - 97
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-7384
SELECT ALL - MAX( DISTINCT + 54 ) AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-7384
SELECT ALL - MAX ( DISTINCT + 54 ) AS col1
----
-54

query II rowsort
SELECT - 38, 1 * - + 20 AS col1
----
-38
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-7386
SELECT NULLIF ( 26, - - ( AVG ( + 61 ) ) + + AVG ( DISTINCT - + 18 ) - - 66 + 64 ) * + 51 * - COUNT( * ) * 98
----
-129948

skipif mysql # not compatible
query I rowsort label-7386
SELECT NULLIF ( 26, - - ( AVG ( + 61 ) ) + + AVG ( DISTINCT - + 18 ) - - 66 + 64 ) * + 51 * - COUNT ( * ) * 98
----
-129948

query I rowsort
SELECT ALL - - 98 * 50 * 28
----
137200

query I rowsort
SELECT ALL + 59 + + 99
----
158

onlyif mysql # aggregate syntax: 
query I rowsort label-7389
SELECT + COUNT( * ) * + 89 - + CASE - 70 WHEN - NULLIF ( - 70, - 27 * + 74 ) THEN + - 60 / - NULLIF ( + 10, 71 ) END + + 31
----
NULL

skipif mysql # not compatible
query I rowsort label-7389
SELECT + COUNT ( * ) * + 89 - + CASE - 70 WHEN - NULLIF ( - 70, - 27 * + 74 ) THEN + - 60 / - NULLIF ( + 10, 71 ) END + + 31
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7390
SELECT 65 - + 13 + + - NULLIF ( + 86, + + 59 ) - - - CAST( NULL AS SIGNED ) * 17
----
NULL

skipif mysql # not compatible
query I rowsort label-7390
SELECT 65 - + 13 + + - NULLIF ( + 86, + + 59 ) - - - CAST ( NULL AS INTEGER ) * 17
----
NULL

query I rowsort
SELECT ALL + 67 * + 26 AS col0
----
1742

query II rowsort
SELECT + 11 AS col2, - 97 AS col2
----
11
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-7393
SELECT 96 DIV + + 41 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-7393
SELECT 96 / + + 41 AS col1
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7394
SELECT 11 + + 77 + 36 / CAST( + ( - CASE 72 WHEN CAST( 16 AS SIGNED ) THEN 24 WHEN + - 99 / 11 + + COALESCE ( - + 35, + 71 * + COUNT( * ) * NULLIF ( - 17, - 80 ) + - 76 + + 70, - 77 ) + + COUNT( * ) + - 70 * - ( + MIN( + + 22 ) ) THEN NULL END ) AS SIGNED ) + COUNT( DISTINCT - 18 ) + + 55 - - - COUNT( * ) * - COUNT( * ) * AVG ( ALL + 20 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7394
SELECT 11 + + 77 + 36 / CAST ( + ( - CASE 72 WHEN CAST ( 16 AS INTEGER ) THEN 24 WHEN + - 99 / 11 + + COALESCE ( - + 35, + 71 * + COUNT ( * ) * NULLIF ( - 17, - 80 ) + - 76 + + 70, - 77 ) + + COUNT ( * ) + - 70 * - ( + MIN ( + + 22 ) ) THEN NULL END ) AS INTEGER ) + COUNT ( DISTINCT - 18 ) + + 55 - - - COUNT ( * ) * - COUNT ( * ) * AVG ( ALL + 20 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7395
SELECT - + MAX( ALL 20 ) AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-7395
SELECT - + MAX ( ALL 20 ) AS col1
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7396
SELECT ALL - + CASE 23 WHEN COUNT( * ) THEN NULL WHEN SUM( 89 ) THEN - 91 * + 90 * 72 END + + 7 / 4 + + + COUNT( * ) / - - CASE + 14 WHEN + + 60 / + 11 * COUNT( * ) THEN + ( - 14 ) * - CAST( - 95 AS DECIMAL ) * + COUNT( * ) * + 0 + 25 + - COUNT( * ) WHEN - CAST( NULL AS SIGNED ) * 46 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7396
SELECT ALL - + CASE 23 WHEN COUNT ( * ) THEN NULL WHEN SUM ( 89 ) THEN - 91 * + 90 * 72 END + + 7 / 4 + + + COUNT ( * ) / - - CASE + 14 WHEN + + 60 / + 11 * COUNT ( * ) THEN + ( - 14 ) * - CAST ( - 95 AS REAL ) * + COUNT ( * ) * + 0 + 25 + - COUNT ( * ) WHEN - CAST ( NULL AS INTEGER ) * 46 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7397
SELECT DISTINCT - 65 + + SUM( - 53 )
----
-118

skipif mysql # not compatible
query I rowsort label-7397
SELECT DISTINCT - 65 + + SUM ( - 53 )
----
-118

onlyif mysql # DIV for integer division: 
query I rowsort label-7398
SELECT 75 DIV + - 62 - 24 AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-7398
SELECT 75 / + - 62 - 24 AS col1
----
-25

query I rowsort
SELECT DISTINCT + - 64 * 19
----
-1216

query I rowsort
SELECT ALL - 15 + 30 AS col2
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-7401
SELECT ALL 8 DIV - + 35
----
0

skipif mysql # not compatible
query I rowsort label-7401
SELECT ALL 8 / - + 35
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7402
SELECT + CAST( + - 64 AS SIGNED ) DIV 59 + 3 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-7402
SELECT + CAST ( + - 64 AS INTEGER ) / 59 + 3 AS col0
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7403
SELECT DISTINCT + - 89 + - - CAST( + COUNT( * ) AS SIGNED ) + + 65 * 49
----
3097

skipif mysql # not compatible
query I rowsort label-7403
SELECT DISTINCT + - 89 + - - CAST ( + COUNT ( * ) AS INTEGER ) + + 65 * 49
----
3097

query I rowsort
SELECT 1 + 26
----
27

query I rowsort
SELECT 44 * 80 AS col1
----
3520

query I rowsort
SELECT ALL - ( - + 33 ) + 17 * + 13 AS col0
----
254

onlyif mysql # aggregate syntax: 
query I rowsort label-7407
SELECT + MIN( + 38 ) AS col1
----
38

skipif mysql # not compatible
query I rowsort label-7407
SELECT + MIN ( + 38 ) AS col1
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7408
SELECT - 84 + + ( 17 ) * - + COUNT( * ) AS col2, + 23 DIV - 48 * - 95 * + COUNT( * ) AS col1
----
-101
0

skipif mysql # not compatible
query II rowsort label-7408
SELECT - 84 + + ( 17 ) * - + COUNT ( * ) AS col2, + 23 / - 48 * - 95 * + COUNT ( * ) AS col1
----
-101
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7409
SELECT ALL CASE 63 WHEN + - 39 * 26 + + + 78 THEN + CAST( NULL AS SIGNED ) * - 51 WHEN + 79 * COUNT( * ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7409
SELECT ALL CASE 63 WHEN + - 39 * 26 + + + 78 THEN + CAST ( NULL AS INTEGER ) * - 51 WHEN + 79 * COUNT ( * ) THEN NULL END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7410
SELECT - 2 DIV 75 + 83 AS col0
----
83

skipif mysql # not compatible
query I rowsort label-7410
SELECT - 2 / 75 + 83 AS col0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-7411
SELECT + 13 + - - 11 + + COUNT( ALL + 37 )
----
25

skipif mysql # not compatible
query I rowsort label-7411
SELECT + 13 + - - 11 + + COUNT ( ALL + 37 )
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-7412
SELECT ALL COUNT( * ) * + 35 * + + COUNT( * )
----
35

skipif mysql # not compatible
query I rowsort label-7412
SELECT ALL COUNT ( * ) * + 35 * + + COUNT ( * )
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-7413
SELECT 39 DIV 92 + + + 78
----
78

skipif mysql # not compatible
query I rowsort label-7413
SELECT 39 / 92 + + + 78
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-7414
SELECT + MIN( ( - 62 ) ) * + 45 + - + 62 + 32 + + 93 + 6 AS col0
----
-2721

skipif mysql # not compatible
query I rowsort label-7414
SELECT + MIN ( ( - 62 ) ) * + 45 + - + 62 + 32 + + 93 + 6 AS col0
----
-2721

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7415
SELECT CASE + - COUNT( * ) WHEN SUM( COALESCE ( - 82, + 76 + + + 84 ) ) THEN + CAST( + 53 AS SIGNED ) * - + 29 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7415
SELECT CASE + - COUNT ( * ) WHEN SUM ( COALESCE ( - 82, + 76 + + + 84 ) ) THEN + CAST ( + 53 AS INTEGER ) * - + 29 END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7416
SELECT + 94 / + CAST( NULL AS SIGNED ) * - 23 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7416
SELECT + 94 / + CAST ( NULL AS INTEGER ) * - 23 AS col1
----
NULL

query I rowsort
SELECT + 59 + - 25 * + 60 col1
----
-1441

query I rowsort
SELECT + ( - ( - 7 ) )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7419
SELECT - 95 * 52 + - NULLIF ( 24, + - 52 * COUNT( * ) )
----
-4964

skipif mysql # not compatible
query I rowsort label-7419
SELECT - 95 * 52 + - NULLIF ( 24, + - 52 * COUNT ( * ) )
----
-4964

onlyif mysql # aggregate syntax: 
query I rowsort label-7420
SELECT ALL 20 * + 77 * 19 + COUNT( * ) * + SUM( ALL 81 ) AS col0
----
29341

skipif mysql # not compatible
query I rowsort label-7420
SELECT ALL 20 * + 77 * 19 + COUNT ( * ) * + SUM ( ALL 81 ) AS col0
----
29341

onlyif mysql # aggregate syntax: 
query I rowsort label-7421
SELECT COUNT( ALL + - 27 )
----
1

skipif mysql # not compatible
query I rowsort label-7421
SELECT COUNT ( ALL + - 27 )
----
1

query I rowsort
SELECT + 75 * 54 * - 39 + - ( 99 ) + 62 - + + ( + 23 )
----
-158010

onlyif mysql # aggregate syntax: 
query I rowsort label-7423
SELECT ALL + MAX( DISTINCT 36 )
----
36

skipif mysql # not compatible
query I rowsort label-7423
SELECT ALL + MAX ( DISTINCT 36 )
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7424
SELECT + - COALESCE ( CASE - COUNT( * ) WHEN - 93 / - AVG ( DISTINCT + 52 ) + + 25 THEN 59 + - - MIN( ALL + 17 ) END, + + 49 + + CAST( + - 38 AS SIGNED ) ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-7424
SELECT + - COALESCE ( CASE - COUNT ( * ) WHEN - 93 / - AVG ( DISTINCT + 52 ) + + 25 THEN 59 + - - MIN ( ALL + 17 ) END, + + 49 + + CAST ( + - 38 AS INTEGER ) ) AS col2
----
-11

query I rowsort
SELECT - + ( - + 80 ) + - 60
----
20

query I rowsort
SELECT ALL - + 91 + + 49 + 73 + + 53 col0
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7427
SELECT - CAST( 42 AS SIGNED ) AS col1, 4 * - - MAX( ALL 57 ) * NULLIF ( - 4, - + COUNT( * ) ) - - COUNT( * ) * 63 AS col0
----
-42
-849

skipif mysql # not compatible
query II rowsort label-7427
SELECT - CAST ( 42 AS INTEGER ) AS col1, 4 * - - MAX ( ALL 57 ) * NULLIF ( - 4, - + COUNT ( * ) ) - - COUNT ( * ) * 63 AS col0
----
-42
-849

onlyif mysql # aggregate syntax: 
query I rowsort label-7428
SELECT ALL MAX( 61 ) AS col2
----
61

skipif mysql # not compatible
query I rowsort label-7428
SELECT ALL MAX ( 61 ) AS col2
----
61

query I rowsort
SELECT - NULLIF ( - 56, - + 73 ) AS col2
----
56

query I rowsort
SELECT + 6 - + 60
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-7431
SELECT - + 84 + 51 + + + SUM( ALL + 11 ) + + + 76
----
54

skipif mysql # not compatible
query I rowsort label-7431
SELECT - + 84 + 51 + + + SUM ( ALL + 11 ) + + + 76
----
54

query I rowsort
SELECT - + 40 * 80 + 64 AS col1
----
-3136

query I rowsort
SELECT ALL + - 87 * - + 12
----
1044

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7434
SELECT NULLIF ( COUNT( * ), 29 * - 24 + + CAST( NULL AS SIGNED ) - + 45 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7434
SELECT NULLIF ( COUNT ( * ), 29 * - 24 + + CAST ( NULL AS INTEGER ) - + 45 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7435
SELECT DISTINCT + COUNT( * ) - 33 AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-7435
SELECT DISTINCT + COUNT ( * ) - 33 AS col2
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7436
SELECT ALL COALESCE ( - ( CAST( NULL AS SIGNED ) ), + SUM( + ( 98 ) ), + + 26 )
----
98

skipif mysql # not compatible
query I rowsort label-7436
SELECT ALL COALESCE ( - ( CAST ( NULL AS INTEGER ) ), + SUM ( + ( 98 ) ), + + 26 )
----
98

onlyif mysql # aggregate syntax: 
query II rowsort label-7437
SELECT DISTINCT + COALESCE ( + COUNT( DISTINCT + 15 ), + - 90 ) * + 46 AS col2, - NULLIF ( - 33, - 50 + + 66 ) + + - COUNT( * ) AS col1
----
46
32

skipif mysql # not compatible
query II rowsort label-7437
SELECT DISTINCT + COALESCE ( + COUNT ( DISTINCT + 15 ), + - 90 ) * + 46 AS col2, - NULLIF ( - 33, - 50 + + 66 ) + + - COUNT ( * ) AS col1
----
46
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7438
SELECT ALL CAST( 37 AS SIGNED )
----
37

skipif mysql # not compatible
query I rowsort label-7438
SELECT ALL CAST ( 37 AS INTEGER )
----
37

query I rowsort
SELECT ALL + 7 * - 81
----
-567

query I rowsort
SELECT DISTINCT - ( + 88 ) * + 50
----
-4400

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7441
SELECT 12 AS col0, 53 DIV 70 * - 84 * + 52 DIV + + COUNT( * ) - + 75 * + + COUNT( * )
----
12
-75

skipif mysql # not compatible
query II rowsort label-7441
SELECT 12 AS col0, 53 / 70 * - 84 * + 52 / + + COUNT ( * ) - + 75 * + + COUNT ( * )
----
12
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7442
SELECT DISTINCT + 34 - + CAST( + 28 AS SIGNED ) + + 47 AS col2
----
53

skipif mysql # not compatible
query I rowsort label-7442
SELECT DISTINCT + 34 - + CAST ( + 28 AS INTEGER ) + + 47 AS col2
----
53

query I rowsort
SELECT - 77 * 4 AS col1
----
-308

query I rowsort
SELECT + 83 + + 44 AS col1
----
127

query I rowsort
SELECT ALL + CASE - 74 WHEN + 94 THEN 11 ELSE NULL END
----
NULL

query I rowsort
SELECT - 53 * + 78 AS col1
----
-4134

query I rowsort
SELECT DISTINCT 0 * + + 7
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7448
SELECT DISTINCT + COALESCE ( + + 23, CAST( + - NULLIF ( - 88, 93 * + COUNT( * ) ) AS SIGNED ) * - 45 ) DIV 9 + - 22 + 78 AS col2
----
58

skipif mysql # not compatible
query I rowsort label-7448
SELECT DISTINCT + COALESCE ( + + 23, CAST ( + - NULLIF ( - 88, 93 * + COUNT ( * ) ) AS INTEGER ) * - 45 ) / 9 + - 22 + 78 AS col2
----
58

query I rowsort
SELECT ALL 35 * + 23 AS col0
----
805

query I rowsort
SELECT DISTINCT + 99 * + - 49 * + 93
----
-451143

query I rowsort
SELECT DISTINCT + 90 * + ( - 88 )
----
-7920

query I rowsort
SELECT + ( + 71 ) * 58 AS col1
----
4118

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7453
SELECT - MIN( ALL - COALESCE ( - 56, + 51 DIV - - CAST( NULL AS SIGNED ) + - 2 * - 19 + - + 2 + 71 * 4 ) ) + - 10
----
-66

skipif mysql # not compatible
query I rowsort label-7453
SELECT - MIN ( ALL - COALESCE ( - 56, + 51 / - - CAST ( NULL AS INTEGER ) + - 2 * - 19 + - + 2 + 71 * 4 ) ) + - 10
----
-66

query I rowsort
SELECT ALL 99 * + 66
----
6534

query II rowsort
SELECT - 73, + 29 AS col2
----
-73
29

onlyif mysql # aggregate syntax: 
query I rowsort label-7456
SELECT + 44 * + 57 + + SUM( + + 45 )
----
2553

skipif mysql # not compatible
query I rowsort label-7456
SELECT + 44 * + 57 + + SUM ( + + 45 )
----
2553

query II rowsort
SELECT DISTINCT + + 18 AS col2, - 33
----
18
-33

query I rowsort
SELECT + + 56 * 30 AS col1
----
1680

onlyif mysql # aggregate syntax: 
query I rowsort label-7459
SELECT + NULLIF ( - ( 40 ), 73 + COUNT( * ) ) * COUNT( * ) * + + 51 + - 34 - + - ( 31 )
----
-2043

skipif mysql # not compatible
query I rowsort label-7459
SELECT + NULLIF ( - ( 40 ), 73 + COUNT ( * ) ) * COUNT ( * ) * + + 51 + - 34 - + - ( 31 )
----
-2043

onlyif mysql # aggregate syntax: 
query I rowsort label-7460
SELECT DISTINCT + 10 * - 64 * + 9 * - ( - 88 ) + + 83 + + COUNT( * )
----
-506796

skipif mysql # not compatible
query I rowsort label-7460
SELECT DISTINCT + 10 * - 64 * + 9 * - ( - 88 ) + + 83 + + COUNT ( * )
----
-506796

query I rowsort
SELECT ALL + 85 * + 36 * - - 24 AS col0
----
73440

onlyif mysql # aggregate syntax: 
query I rowsort label-7462
SELECT ALL 60 * - COUNT( * ) + + 10 * + + 1 col0
----
-50

skipif mysql # not compatible
query I rowsort label-7462
SELECT ALL 60 * - COUNT ( * ) + + 10 * + + 1 col0
----
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-7463
SELECT DISTINCT 11 DIV + 60 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7463
SELECT DISTINCT 11 / + 60 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7464
SELECT - COUNT( DISTINCT + ( + + 41 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-7464
SELECT - COUNT ( DISTINCT + ( + + 41 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7465
SELECT + + 35 + MIN( 61 ) AS col2
----
96

skipif mysql # not compatible
query I rowsort label-7465
SELECT + + 35 + MIN ( 61 ) AS col2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7466
SELECT COUNT( * ) * - - 53 + - 87 * + 61 - - COUNT( * ) + - 90 * + 70 AS col2
----
-11553

skipif mysql # not compatible
query I rowsort label-7466
SELECT COUNT ( * ) * - - 53 + - 87 * + 61 - - COUNT ( * ) + - 90 * + 70 AS col2
----
-11553

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7467
SELECT + 99 * ( + + 62 ) DIV + MAX( ALL 55 ) AS col0, ( - 43 ) * + 3 + + + 90 AS col2
----
111
-39

skipif mysql # not compatible
query II rowsort label-7467
SELECT + 99 * ( + + 62 ) / + MAX ( ALL 55 ) AS col0, ( - 43 ) * + 3 + + + 90 AS col2
----
111
-39

query I rowsort
SELECT DISTINCT ( + 75 )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7469
SELECT ALL 52 * + COUNT( * )
----
52

skipif mysql # not compatible
query I rowsort label-7469
SELECT ALL 52 * + COUNT ( * )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-7470
SELECT - - MAX( ALL + + 27 ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-7470
SELECT - - MAX ( ALL + + 27 ) AS col2
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-7471
SELECT ALL 9 * + + CASE - + ( + 39 ) WHEN + - 61 THEN + 23 ELSE 45 END + 78 + - MIN( ALL - ( + 83 ) ) + - COUNT( * ) + 7 * + + 65 * + 4 + + - 14 * SUM( + + 38 )
----
1853

skipif mysql # not compatible
query I rowsort label-7471
SELECT ALL 9 * + + CASE - + ( + 39 ) WHEN + - 61 THEN + 23 ELSE 45 END + 78 + - MIN ( ALL - ( + 83 ) ) + - COUNT ( * ) + 7 * + + 65 * + 4 + + - 14 * SUM ( + + 38 )
----
1853

query I rowsort
SELECT ALL - 72 * - 66 * - + 75 * 8 AS col1
----
-2851200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-7473
SELECT DISTINCT 89, + 91 AS col1, - + MAX( DISTINCT - 9 ) * + 90 + 48 + + CAST( + MIN( 75 ) AS SIGNED ) + 84 * - MAX( + 31 ) + + - COUNT( * ) AS col1
----
89
91
-1672

skipif mysql # not compatible
query III rowsort label-7473
SELECT DISTINCT 89, + 91 AS col1, - + MAX ( DISTINCT - 9 ) * + 90 + 48 + + CAST ( + MIN ( 75 ) AS INTEGER ) + 84 * - MAX ( + 31 ) + + - COUNT ( * ) AS col1
----
89
91
-1672

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7474
SELECT CAST( NULL AS SIGNED ) + + 92 * COALESCE ( - + 65, - 81 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7474
SELECT CAST ( NULL AS INTEGER ) + + 92 * COALESCE ( - + 65, - 81 )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7475
SELECT ALL 49 AS col2, 84 + + 0 DIV 88 * - 91
----
49
84

skipif mysql # not compatible
query II rowsort label-7475
SELECT ALL 49 AS col2, 84 + + 0 / 88 * - 91
----
49
84

onlyif mysql # aggregate syntax: 
query II rowsort label-7476
SELECT - 51 col0, COUNT( + 52 )
----
-51
1

skipif mysql # not compatible
query II rowsort label-7476
SELECT - 51 col0, COUNT ( + 52 )
----
-51
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7477
SELECT 34 * - - SUM( - 2 ) * - 77
----
5236

skipif mysql # not compatible
query I rowsort label-7477
SELECT 34 * - - SUM ( - 2 ) * - 77
----
5236

query I rowsort
SELECT 69 * - + 24 AS col1
----
-1656

query I rowsort
SELECT ALL - 76 * 0 * + 3 AS col1
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7480
SELECT 40 + - ( - + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7480
SELECT 40 + - ( - + CAST ( NULL AS REAL ) )
----
NULL

query I rowsort
SELECT ALL 12 * - 32 AS col1
----
-384

onlyif mysql # aggregate syntax: 
query I rowsort label-7482
SELECT DISTINCT + ( - + MAX( DISTINCT 96 ) ) + + 75 * + - 33 AS col2
----
-2571

skipif mysql # not compatible
query I rowsort label-7482
SELECT DISTINCT + ( - + MAX ( DISTINCT 96 ) ) + + 75 * + - 33 AS col2
----
-2571

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7483
SELECT ALL - 76 + + ( - 47 ) + - 29 * - - 42 * COUNT( * ) * - CAST( NULL AS SIGNED ) + + 57
----
NULL

skipif mysql # not compatible
query I rowsort label-7483
SELECT ALL - 76 + + ( - 47 ) + - 29 * - - 42 * COUNT ( * ) * - CAST ( NULL AS INTEGER ) + + 57
----
NULL

query I rowsort
SELECT ALL + 13 + + 40 AS col1
----
53

query I rowsort
SELECT DISTINCT - 58 + 80 + - 76 - - + ( + 24 )
----
-30

query I rowsort
SELECT DISTINCT + 4 * + 23 AS col0
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7487
SELECT CAST( - 90 AS SIGNED ) * 96 + + - 82 * + 33 AS col1
----
-11346

skipif mysql # not compatible
query I rowsort label-7487
SELECT CAST ( - 90 AS INTEGER ) * 96 + + - 82 * + 33 AS col1
----
-11346

query II rowsort
SELECT ALL - 20 AS col0, 79 + + 78
----
-20
157

onlyif mysql # aggregate syntax: 
query I rowsort label-7489
SELECT 59 * + - NULLIF ( + - CASE + 92 WHEN - COUNT( * ) + - AVG ( DISTINCT 66 ) THEN NULL WHEN - 71 THEN + - 20 + + 55 END, - ( + 68 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7489
SELECT 59 * + - NULLIF ( + - CASE + 92 WHEN - COUNT ( * ) + - AVG ( DISTINCT 66 ) THEN NULL WHEN - 71 THEN + - 20 + + 55 END, - ( + 68 ) )
----
NULL

query II rowsort
SELECT 19 col1, - 29 + + 50
----
19
21

query I rowsort
SELECT - 41 + + 90 + + 9 * - - 71
----
688

onlyif mysql # aggregate syntax: 
query I rowsort label-7492
SELECT ALL - 80 + + + SUM( DISTINCT 36 )
----
-44

skipif mysql # not compatible
query I rowsort label-7492
SELECT ALL - 80 + + + SUM ( DISTINCT 36 )
----
-44

onlyif mysql # DIV for integer division: 
query II rowsort label-7493
SELECT ALL - 48 col1, NULLIF ( - 81, - 86 ) + NULLIF ( + + 71, + - NULLIF ( - 30, + 9 + - ( - 57 ) ) ) + + + 48 DIV 85 + 31
----
-48
21

skipif mysql # not compatible
query II rowsort label-7493
SELECT ALL - 48 col1, NULLIF ( - 81, - 86 ) + NULLIF ( + + 71, + - NULLIF ( - 30, + 9 + - ( - 57 ) ) ) + + + 48 / 85 + 31
----
-48
21

onlyif mysql # aggregate syntax: 
query I rowsort label-7494
SELECT + COUNT( * ) + - + ( + 41 ) AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-7494
SELECT + COUNT ( * ) + - + ( + 41 ) AS col0
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7495
SELECT ALL - COUNT( * ) + CAST( + + 24 AS SIGNED )
----
23

skipif mysql # not compatible
query I rowsort label-7495
SELECT ALL - COUNT ( * ) + CAST ( + + 24 AS INTEGER )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7496
SELECT + MAX( - - 27 ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-7496
SELECT + MAX ( - - 27 ) AS col2
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7497
SELECT CAST( + - SUM( ALL - + CAST( NULL AS SIGNED ) ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7497
SELECT CAST ( + - SUM ( ALL - + CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7498
SELECT DISTINCT + 86 - - MAX( + 23 ) + 8 * - 25
----
-91

skipif mysql # not compatible
query I rowsort label-7498
SELECT DISTINCT + 86 - - MAX ( + 23 ) + 8 * - 25
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7499
SELECT + + CASE ( ( 29 ) ) WHEN CAST( NULL AS SIGNED ) * + 61 THEN NULL WHEN + COUNT( * ) THEN 83 + - ( NULLIF ( + 98, + 50 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7499
SELECT + + CASE ( ( 29 ) ) WHEN CAST ( NULL AS INTEGER ) * + 61 THEN NULL WHEN + COUNT ( * ) THEN 83 + - ( NULLIF ( + 98, + 50 ) ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7500
SELECT 19 + CAST( 43 AS SIGNED )
----
62

skipif mysql # not compatible
query I rowsort label-7500
SELECT 19 + CAST ( 43 AS INTEGER )
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7501
SELECT ALL - - COALESCE ( CAST( MAX( DISTINCT - 24 ) AS SIGNED ), 51 + 76 )
----
-24

skipif mysql # not compatible
query I rowsort label-7501
SELECT ALL - - COALESCE ( CAST ( MAX ( DISTINCT - 24 ) AS INTEGER ), 51 + 76 )
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7502
SELECT + - 6 AS col2, + CAST( ( + 6 ) AS SIGNED )
----
-6
6

skipif mysql # not compatible
query II rowsort label-7502
SELECT + - 6 AS col2, + CAST ( ( + 6 ) AS INTEGER )
----
-6
6

onlyif mysql # aggregate syntax: 
query II rowsort label-7503
SELECT DISTINCT - + 23, - COUNT( * ) AS col2
----
-23
-1

skipif mysql # not compatible
query II rowsort label-7503
SELECT DISTINCT - + 23, - COUNT ( * ) AS col2
----
-23
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7504
SELECT 96 * + 86 * - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7504
SELECT 96 * + 86 * - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7505
SELECT DISTINCT - COUNT( * ), 38 AS col1
----
-1
38

skipif mysql # not compatible
query II rowsort label-7505
SELECT DISTINCT - COUNT ( * ), 38 AS col1
----
-1
38

onlyif mysql # aggregate syntax: 
query I rowsort label-7506
SELECT DISTINCT - COALESCE ( - 39, + 31 ) * + + ( + - COUNT( * ) ) * 99 AS col2
----
-3861

skipif mysql # not compatible
query I rowsort label-7506
SELECT DISTINCT - COALESCE ( - 39, + 31 ) * + + ( + - COUNT ( * ) ) * 99 AS col2
----
-3861

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7507
SELECT DISTINCT 59 - + COUNT( * ) * - ( - COUNT( * ) ) * - COUNT( * ) DIV COUNT( * ) + + 2 + + + CAST( + COUNT( * ) AS SIGNED ) + - 41 - 31
----
-9

skipif mysql # not compatible
query I rowsort label-7507
SELECT DISTINCT 59 - + COUNT ( * ) * - ( - COUNT ( * ) ) * - COUNT ( * ) / COUNT ( * ) + + 2 + + + CAST ( + COUNT ( * ) AS INTEGER ) + - 41 - 31
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7508
SELECT ALL MAX( - 29 )
----
-29

skipif mysql # not compatible
query I rowsort label-7508
SELECT ALL MAX ( - 29 )
----
-29

query I rowsort
SELECT DISTINCT 81 * + - 50
----
-4050

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7510
SELECT ALL - 68 DIV + 43 + - + 6 + COUNT( * ) * - 72 * - 73 * - + 82 * - - 57 AS col2
----
-24566551

skipif mysql # not compatible
query I rowsort label-7510
SELECT ALL - 68 / + 43 + - + 6 + COUNT ( * ) * - 72 * - 73 * - + 82 * - - 57 AS col2
----
-24566551

query I rowsort
SELECT 8 - + 68 + + 91 + - + ( + 11 ) * - 96 * AVG ( - + CASE - 46 WHEN - 57 THEN - 96 WHEN - ( + 87 ) / 63 * + 18 + 97 THEN 96 - 70 / + 51 * + 26 ELSE NULL END ) * + 67
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7512
SELECT COUNT( * ) DIV - + 96 * - + 45
----
0

skipif mysql # not compatible
query I rowsort label-7512
SELECT COUNT ( * ) / - + 96 * - + 45
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7513
SELECT ALL COUNT( 95 ) DIV + 52 DIV COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7513
SELECT ALL COUNT ( 95 ) / + 52 / COUNT ( * ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7514
SELECT - MIN( DISTINCT 68 )
----
-68

skipif mysql # not compatible
query I rowsort label-7514
SELECT - MIN ( DISTINCT 68 )
----
-68

query I rowsort
SELECT COALESCE ( - + 5, + 2 ) * - 24 AS col1
----
120

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7516
SELECT COUNT( * ) DIV - - 35
----
0

skipif mysql # not compatible
query I rowsort label-7516
SELECT COUNT ( * ) / - - 35
----
0

query I rowsort
SELECT 69 + + 98 * - - 80
----
7909

query I rowsort
SELECT ALL 66 + 8
----
74

query I rowsort
SELECT ALL 24 * - + COALESCE ( - 96, - 37 ) col1
----
2304

query I rowsort
SELECT CASE - + 54 WHEN - - 12 THEN 62 END - - + 2 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7521
SELECT ALL ( 30 ) + + 62, MAX( + + 35 ) col0
----
92
35

skipif mysql # not compatible
query II rowsort label-7521
SELECT ALL ( 30 ) + + 62, MAX ( + + 35 ) col0
----
92
35

onlyif mysql # aggregate syntax: 
query I rowsort label-7522
SELECT ALL 88 + - MAX( ALL + + 13 ) + + + 91 + - - 15 * 8
----
286

skipif mysql # not compatible
query I rowsort label-7522
SELECT ALL 88 + - MAX ( ALL + + 13 ) + + + 91 + - - 15 * 8
----
286

query I rowsort
SELECT DISTINCT + 99 + - ( - + 31 ) * - 52 * 68
----
-109517

query I rowsort
SELECT DISTINCT 82 * 89 + - - ( - 53 ) - - 60 + 31
----
7336

onlyif mysql # aggregate syntax: 
query I rowsort label-7525
SELECT SUM( ALL 55 ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-7525
SELECT SUM ( ALL 55 ) AS col0
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7526
SELECT ALL - 40 DIV - - COALESCE ( - - 83, + COUNT( * ) * - 30 + + 86 ) + - 28 * - 96 col1
----
2688

skipif mysql # not compatible
query I rowsort label-7526
SELECT ALL - 40 / - - COALESCE ( - - 83, + COUNT ( * ) * - 30 + + 86 ) + - 28 * - 96 col1
----
2688

onlyif mysql # aggregate syntax: 
query II rowsort label-7527
SELECT DISTINCT COUNT( * ) * 17 + + 74 AS col1, 32
----
91
32

skipif mysql # not compatible
query II rowsort label-7527
SELECT DISTINCT COUNT ( * ) * 17 + + 74 AS col1, 32
----
91
32

query I rowsort
SELECT ALL - - 47 * 98 * 15 AS col1
----
69090

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7529
SELECT DISTINCT CAST( + 36 AS SIGNED ) * - + 59
----
-2124

skipif mysql # not compatible
query I rowsort label-7529
SELECT DISTINCT CAST ( + 36 AS INTEGER ) * - + 59
----
-2124

onlyif mysql # aggregate syntax: 
query I rowsort label-7530
SELECT ALL SUM( DISTINCT - - 44 ) * - 2 - + + 53 - - 81
----
-60

skipif mysql # not compatible
query I rowsort label-7530
SELECT ALL SUM ( DISTINCT - - 44 ) * - 2 - + + 53 - - 81
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-7531
SELECT - ( 11 ) + - - ( + COUNT( * ) )
----
-10

skipif mysql # not compatible
query I rowsort label-7531
SELECT - ( 11 ) + - - ( + COUNT ( * ) )
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-7532
SELECT ALL - COUNT( DISTINCT 82 )
----
-1

skipif mysql # not compatible
query I rowsort label-7532
SELECT ALL - COUNT ( DISTINCT 82 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7533
SELECT 44 + - + 98 * + SUM( 84 ) * + 31 + - + 27 * - - 6 + SUM( + + 46 ) + COUNT( * )
----
-255263

skipif mysql # not compatible
query I rowsort label-7533
SELECT 44 + - + 98 * + SUM ( 84 ) * + 31 + - + 27 * - - 6 + SUM ( + + 46 ) + COUNT ( * )
----
-255263

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7534
SELECT - 28 * + 13, CAST( + COUNT( * ) AS SIGNED ) AS col1
----
-364
1

skipif mysql # not compatible
query II rowsort label-7534
SELECT - 28 * + 13, CAST ( + COUNT ( * ) AS INTEGER ) AS col1
----
-364
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7535
SELECT - - SUM( ALL + 24 ) * 83 AS col1
----
1992

skipif mysql # not compatible
query I rowsort label-7535
SELECT - - SUM ( ALL + 24 ) * 83 AS col1
----
1992

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7536
SELECT ALL + COALESCE ( - + 77, + + 62, + COALESCE ( - ( - + CAST( NULL AS SIGNED ) ), + 59 * + 12, 65 DIV + 95 + - + 79 ) + + - 55 - 80 ) col0
----
-77

skipif mysql # not compatible
query I rowsort label-7536
SELECT ALL + COALESCE ( - + 77, + + 62, + COALESCE ( - ( - + CAST ( NULL AS INTEGER ) ), + 59 * + 12, 65 / + 95 + - + 79 ) + + - 55 - 80 ) col0
----
-77

query I rowsort
SELECT ALL + ( + NULLIF ( - ( 79 ), - 52 ) )
----
-79

query II rowsort
SELECT - + 52 + + 7 AS col2, + 55 + 41 * - - 13
----
-45
588

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7539
SELECT - - 77 + CAST( - ( - 3 ) AS SIGNED )
----
80

skipif mysql # not compatible
query I rowsort label-7539
SELECT - - 77 + CAST ( - ( - 3 ) AS INTEGER )
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7540
SELECT - ( - - CAST( NULL AS SIGNED ) ) * + - 39
----
NULL

skipif mysql # not compatible
query I rowsort label-7540
SELECT - ( - - CAST ( NULL AS INTEGER ) ) * + - 39
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7541
SELECT DISTINCT CAST( - + 40 AS SIGNED ) * - + ( - COUNT( * ) ) + - 69 * + + 31 - ( - - CASE - 3 WHEN 82 / 90 + - - 56 THEN - 12 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-7541
SELECT DISTINCT CAST ( - + 40 AS INTEGER ) * - + ( - COUNT ( * ) ) + - 69 * + + 31 - ( - - CASE - 3 WHEN 82 / 90 + - - 56 THEN - 12 END )
----
NULL

query I rowsort
SELECT DISTINCT - 39 * + - 46
----
1794

query I rowsort
SELECT - 88 + - + 40 AS col2
----
-128

query I rowsort
SELECT + 84 * + 78 AS col2
----
6552

query II rowsort
SELECT 71 AS col1, + 55
----
71
55

query I rowsort
SELECT ALL 25 + - + COALESCE ( + COALESCE ( 75, - 96 ), 36 )
----
-50

query I rowsort
SELECT + 48 * 42
----
2016

query I rowsort
SELECT ALL 12 + + 65
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-7549
SELECT DISTINCT 24 DIV + 98
----
0

skipif mysql # not compatible
query I rowsort label-7549
SELECT DISTINCT 24 / + 98
----
0

query I rowsort
SELECT - 88 + - 18
----
-106

query I rowsort
SELECT - COALESCE ( + - 58, + 4 ) AS col2
----
58

query I rowsort
SELECT + ( - + 85 ) * + 20 AS col2
----
-1700

query II rowsort
SELECT + ( - 77 ) / + 5 * + + CASE - + 97 WHEN 48 * - + 47 THEN 34 END AS col1, 60
----
NULL
60

query I rowsort
SELECT ALL 76 + + 71
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-7555
SELECT ALL 35 * - 22 * + - 93 * - 74 * COUNT( * )
----
-5299140

skipif mysql # not compatible
query I rowsort label-7555
SELECT ALL 35 * - 22 * + - 93 * - 74 * COUNT ( * )
----
-5299140

onlyif mysql # aggregate syntax: 
query I rowsort label-7556
SELECT - CASE - - ( + 54 ) WHEN + 24 * + + 58 * + + COUNT( * ) + - 62 THEN - 84 + - + SUM( ( 47 ) ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7556
SELECT - CASE - - ( + 54 ) WHEN + 24 * + + 58 * + + COUNT ( * ) + - 62 THEN - 84 + - + SUM ( ( 47 ) ) ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT 81 * - + 10
----
-810

onlyif mysql # aggregate syntax: 
query I rowsort label-7558
SELECT ALL 40 - COUNT( * ) col1
----
39

skipif mysql # not compatible
query I rowsort label-7558
SELECT ALL 40 - COUNT ( * ) col1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-7559
SELECT + 76 + + + 68 + COUNT( * ) * 69 * + 48 - + 51 * + + 91 + + - COUNT( * ) * + 46
----
-1231

skipif mysql # not compatible
query I rowsort label-7559
SELECT + 76 + + + 68 + COUNT ( * ) * 69 * + 48 - + 51 * + + 91 + + - COUNT ( * ) * + 46
----
-1231

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7560
SELECT ALL COUNT( * ) * - COUNT( 73 ) * + 40 * + 41 - - MIN( - 8 ) + + NULLIF ( - CAST( NULL AS SIGNED ), + 82 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7560
SELECT ALL COUNT ( * ) * - COUNT ( 73 ) * + 40 * + 41 - - MIN ( - 8 ) + + NULLIF ( - CAST ( NULL AS INTEGER ), + 82 )
----
NULL

query I rowsort
SELECT DISTINCT + + ( + + 48 ) AS col2
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7562
SELECT DISTINCT + 61 * ( 37 ) * + + CAST( - + 46 AS SIGNED ) AS col0
----
-103822

skipif mysql # not compatible
query I rowsort label-7562
SELECT DISTINCT + 61 * ( 37 ) * + + CAST ( - + 46 AS INTEGER ) AS col0
----
-103822

query I rowsort
SELECT + - 92 + + - 45
----
-137

query II rowsort
SELECT ALL + + 68 AS col1, 61 + - - 27 + + 42
----
68
130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-7565
SELECT ALL + 69 AS col2, CAST( NULL AS SIGNED ) + + COUNT( * ) + + COUNT( * ) AS col2, 45 * COUNT( * )
----
69
NULL
45

skipif mysql # not compatible
query III rowsort label-7565
SELECT ALL + 69 AS col2, CAST ( NULL AS INTEGER ) + + COUNT ( * ) + + COUNT ( * ) AS col2, 45 * COUNT ( * )
----
69
NULL
45

query I rowsort
SELECT DISTINCT + - ( + 78 ) AS col1
----
-78

query I rowsort
SELECT + + 6 * 81 AS col1
----
486

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7568
SELECT DISTINCT COUNT( * ) DIV + + 7 - + 34 + + 81 + - CASE - - 42 WHEN 98 THEN - COUNT( * ) WHEN - COUNT( * ) THEN NULL ELSE - 41 * 13 * ( 71 ) + - - 61 END AS col2
----
37829

skipif mysql # not compatible
query I rowsort label-7568
SELECT DISTINCT COUNT ( * ) / + + 7 - + 34 + + 81 + - CASE - - 42 WHEN 98 THEN - COUNT ( * ) WHEN - COUNT ( * ) THEN NULL ELSE - 41 * 13 * ( 71 ) + - - 61 END AS col2
----
37829

onlyif mysql # aggregate syntax: 
query II rowsort label-7569
SELECT - + 67 + - - 25 * 85 AS col2, MIN( DISTINCT 4 ) * - 54 + - 0
----
2058
-216

skipif mysql # not compatible
query II rowsort label-7569
SELECT - + 67 + - - 25 * 85 AS col2, MIN ( DISTINCT 4 ) * - 54 + - 0
----
2058
-216

query I rowsort
SELECT ALL + 45 * 82 AS col1
----
3690

onlyif mysql # aggregate syntax: 
query II rowsort label-7571
SELECT ALL + COUNT( * ), 19 AS col2
----
1
19

skipif mysql # not compatible
query II rowsort label-7571
SELECT ALL + COUNT ( * ), 19 AS col2
----
1
19

onlyif mysql # aggregate syntax: 
query I rowsort label-7572
SELECT - COUNT( * ) * 87
----
-87

skipif mysql # not compatible
query I rowsort label-7572
SELECT - COUNT ( * ) * 87
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7573
SELECT ALL 76 * - 71 + - 71 + ( + 40 ) + + - NULLIF ( + 85, + CAST( NULL AS SIGNED ) ) AS col1
----
-5512

skipif mysql # not compatible
query I rowsort label-7573
SELECT ALL 76 * - 71 + - 71 + ( + 40 ) + + - NULLIF ( + 85, + CAST ( NULL AS INTEGER ) ) AS col1
----
-5512

onlyif mysql # DIV for integer division: 
query I rowsort label-7574
SELECT - 15 DIV - 65 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7574
SELECT - 15 / - 65 AS col0
----
0

query I rowsort
SELECT + ( ( + ( - 22 ) ) ) AS col2
----
-22

query I rowsort
SELECT + 72 * + 12
----
864

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7577
SELECT + + COUNT( * ) DIV - + COUNT( * ) - + - COUNT( * ) * 91
----
90

skipif mysql # not compatible
query I rowsort label-7577
SELECT + + COUNT ( * ) / - + COUNT ( * ) - + - COUNT ( * ) * 91
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7578
SELECT - + COUNT( * ) DIV + 2 - - 58, - 84 + - + CAST( - - 35 AS SIGNED ) AS col2
----
58
-119

skipif mysql # not compatible
query II rowsort label-7578
SELECT - + COUNT ( * ) / + 2 - - 58, - 84 + - + CAST ( - - 35 AS INTEGER ) AS col2
----
58
-119

query II rowsort
SELECT DISTINCT + 24 * - 59 + - + 39 AS col0, - 11
----
-1455
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7580
SELECT ALL - ( - - COUNT( DISTINCT + - ( 73 ) ) ) * 30 + + CAST( - 0 AS SIGNED ) + + CASE WHEN NULL < NULL THEN 67 ELSE NULL END - + + 50 - + 13 * - - COUNT( * ) + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7580
SELECT ALL - ( - - COUNT ( DISTINCT + - ( 73 ) ) ) * 30 + + CAST ( - 0 AS INTEGER ) + + CASE WHEN NULL < NULL THEN 67 ELSE NULL END - + + 50 - + 13 * - - COUNT ( * ) + COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT NULLIF ( + - 89, 35 * 84 + 72 + 71 + + 80 )
----
-89

query I rowsort
SELECT ALL COALESCE ( - 33, - 63 )
----
-33

query II rowsort
SELECT - 24 + 89, - 33 * + 67 AS col1
----
65
-2211

query I rowsort
SELECT DISTINCT 63 * + 16 + - 73 + - 7 AS col1
----
928

query II rowsort
SELECT DISTINCT ( + 17 ), 90 AS col1
----
17
90

onlyif mysql # aggregate syntax: 
query II rowsort label-7586
SELECT ALL ( + 68 ), COUNT( * ) - - ( - + 43 ) + - - NULLIF ( - 28, - ( + + 97 ) ) AS col1
----
68
-70

skipif mysql # not compatible
query II rowsort label-7586
SELECT ALL ( + 68 ), COUNT ( * ) - - ( - + 43 ) + - - NULLIF ( - 28, - ( + + 97 ) ) AS col1
----
68
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-7587
SELECT - 71 - 84 + - ( - 88 ) + - + 5 * + + ( - COUNT( * ) ) col0
----
-62

skipif mysql # not compatible
query I rowsort label-7587
SELECT - 71 - 84 + - ( - 88 ) + - + 5 * + + ( - COUNT ( * ) ) col0
----
-62

query I rowsort
SELECT ALL + 54 * + + ( 60 )
----
3240

onlyif mysql # aggregate syntax: 
query I rowsort label-7589
SELECT DISTINCT - 99 + - + ( MIN( - 55 ) )
----
-44

skipif mysql # not compatible
query I rowsort label-7589
SELECT DISTINCT - 99 + - + ( MIN ( - 55 ) )
----
-44

query I rowsort
SELECT - 47 + - - 59
----
12

query I rowsort
SELECT + 70 + 3 + + 27 AS col2
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-7592
SELECT ALL - 82 - CASE NULLIF ( + 78, - COUNT( * ) ) WHEN - 55 THEN 29 - + 35 WHEN 36 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7592
SELECT ALL - 82 - CASE NULLIF ( + 78, - COUNT ( * ) ) WHEN - 55 THEN 29 - + 35 WHEN 36 THEN NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7593
SELECT - CASE - CAST( NULL AS SIGNED ) WHEN - 75 * + COUNT( * ) * - 59 THEN NULL WHEN 12 / + 89 THEN NULL WHEN - 27 - + 66 * + 21 / - 49 THEN - 44 END / 2 * - ( + ( - - COUNT( * ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7593
SELECT - CASE - CAST ( NULL AS INTEGER ) WHEN - 75 * + COUNT ( * ) * - 59 THEN NULL WHEN 12 / + 89 THEN NULL WHEN - 27 - + 66 * + 21 / - 49 THEN - 44 END / 2 * - ( + ( - - COUNT ( * ) ) )
----
NULL

query I rowsort
SELECT DISTINCT + 37 * - 1
----
-37

query I rowsort
SELECT ALL - 82 - 80
----
-162

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7596
SELECT ALL CAST( 31 AS SIGNED )
----
31

skipif mysql # not compatible
query I rowsort label-7596
SELECT ALL CAST ( 31 AS INTEGER )
----
31

query I rowsort
SELECT - ( 36 ) AS col1
----
-36

query I rowsort
SELECT + + ( 72 ) * + 5 * - 95 AS col2
----
-34200

onlyif mysql # DIV for integer division: 
query I rowsort label-7599
SELECT ALL - 57 DIV 38
----
-1

skipif mysql # not compatible
query I rowsort label-7599
SELECT ALL - 57 / 38
----
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7600
SELECT ALL - COALESCE ( ( 11 ), - + CAST( NULL AS SIGNED ) * 38 * 83 * - + 40, - + 67 ) DIV + 87
----
0

skipif mysql # not compatible
query I rowsort label-7600
SELECT ALL - COALESCE ( ( 11 ), - + CAST ( NULL AS INTEGER ) * 38 * 83 * - + 40, - + 67 ) / + 87
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7601
SELECT 74 DIV - - COUNT( * )
----
74

skipif mysql # not compatible
query I rowsort label-7601
SELECT 74 / - - COUNT ( * )
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-7602
SELECT + 24 * - - CASE 14 WHEN + 40 THEN - 37 WHEN - 13 - - + 52 THEN COUNT( * ) END * - 38 * - 25 * - 87 * + COALESCE ( - ( - + 6 ), + 72 ) * COALESCE ( - - 59, + 14 * + - CASE + 67 WHEN + COUNT( * ) * - 62 + + 65 * + COUNT( * ) THEN + MIN( ALL - 51 ) * 68 WHEN + 97 + - 71 THEN + - 15 END * + + 69 + COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7602
SELECT + 24 * - - CASE 14 WHEN + 40 THEN - 37 WHEN - 13 - - + 52 THEN COUNT ( * ) END * - 38 * - 25 * - 87 * + COALESCE ( - ( - + 6 ), + 72 ) * COALESCE ( - - 59, + 14 * + - CASE + 67 WHEN + COUNT ( * ) * - 62 + + 65 * + COUNT ( * ) THEN + MIN ( ALL - 51 ) * 68 WHEN + 97 + - 71 THEN + - 15 END * + + 69 + COUNT ( * ) ) AS col1
----
NULL

query I rowsort
SELECT ALL 46 * - 24 * - 77 AS col2
----
85008

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7604
SELECT ALL - CASE - - 22 WHEN + 12 - + - 55 * - 16 THEN NULL WHEN + 11 + 2 - COUNT( * ) + + ( - 73 ) * 31 / COUNT( + 63 ) * + CAST( NULL AS SIGNED ) + + 41 THEN - ( + - ( COALESCE ( 85, - 17 ) ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7604
SELECT ALL - CASE - - 22 WHEN + 12 - + - 55 * - 16 THEN NULL WHEN + 11 + 2 - COUNT ( * ) + + ( - 73 ) * 31 / COUNT ( + 63 ) * + CAST ( NULL AS INTEGER ) + + 41 THEN - ( + - ( COALESCE ( 85, - 17 ) ) ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7605
SELECT + 43 + - 26 + - COUNT( * ) + - ( - COUNT( DISTINCT - 38 ) )
----
17

skipif mysql # not compatible
query I rowsort label-7605
SELECT + 43 + - 26 + - COUNT ( * ) + - ( - COUNT ( DISTINCT - 38 ) )
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7606
SELECT + COALESCE ( CASE - CAST( NULL AS SIGNED ) WHEN - - ( - + MIN( 1 ) ) THEN + 4 WHEN + - 59 THEN NULL ELSE 74 END, 97 * + - 84 ) * - + 69 * + 43 + - 12 + + CAST( + + 68 AS SIGNED )
----
-219502

skipif mysql # not compatible
query I rowsort label-7606
SELECT + COALESCE ( CASE - CAST ( NULL AS INTEGER ) WHEN - - ( - + MIN ( 1 ) ) THEN + 4 WHEN + - 59 THEN NULL ELSE 74 END, 97 * + - 84 ) * - + 69 * + 43 + - 12 + + CAST ( + + 68 AS INTEGER )
----
-219502

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7607
SELECT + CASE + 49 WHEN - - 3 THEN NULL WHEN 46 / COALESCE ( - ( - CAST( - 41 AS SIGNED ) ), + 45 + - MIN( DISTINCT - + 50 ) - - + 49, - 53, - MAX( ALL + 92 ) ) + - + 22 THEN NULL ELSE - 91 + 79 END col2
----
-12

skipif mysql # not compatible
query I rowsort label-7607
SELECT + CASE + 49 WHEN - - 3 THEN NULL WHEN 46 / COALESCE ( - ( - CAST ( - 41 AS INTEGER ) ), + 45 + - MIN ( DISTINCT - + 50 ) - - + 49, - 53, - MAX ( ALL + 92 ) ) + - + 22 THEN NULL ELSE - 91 + 79 END col2
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-7608
SELECT - 50 * 21 * - 27 + + 78 + - + 85 * + 66 + - ( - + NULLIF ( + + 80, + 75 ) ) * - MAX( + 30 ) AS col2
----
20418

skipif mysql # not compatible
query I rowsort label-7608
SELECT - 50 * 21 * - 27 + + 78 + - + 85 * + 66 + - ( - + NULLIF ( + + 80, + 75 ) ) * - MAX ( + 30 ) AS col2
----
20418

query I rowsort
SELECT + 40 * - - 72 + - + 38
----
2842

query I rowsort
SELECT ALL 9 + - 9
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7611
SELECT DISTINCT COUNT( * ) + + - 0
----
1

skipif mysql # not compatible
query I rowsort label-7611
SELECT DISTINCT COUNT ( * ) + + - 0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7612
SELECT DISTINCT - 62 + - 64 * - 67 * 61 AS col1, - CASE CAST( - - 92 AS SIGNED ) WHEN - COUNT( * ) * + + 53 DIV + + 49 + + 43 THEN - CAST( NULL AS SIGNED ) DIV + 65 * - 75 + 96 + + 85 - - 61 * - 24 ELSE + 5 * + + 19 END
----
261506
-95

skipif mysql # not compatible
query II rowsort label-7612
SELECT DISTINCT - 62 + - 64 * - 67 * 61 AS col1, - CASE CAST ( - - 92 AS INTEGER ) WHEN - COUNT ( * ) * + + 53 / + + 49 + + 43 THEN - CAST ( NULL AS INTEGER ) / + 65 * - 75 + 96 + + 85 - - 61 * - 24 ELSE + 5 * + + 19 END
----
261506
-95

query I rowsort
SELECT ALL + 30 + 15
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7614
SELECT CAST( + 66 AS SIGNED ) + + - 35 * + 51 AS col1
----
-1719

skipif mysql # not compatible
query I rowsort label-7614
SELECT CAST ( + 66 AS INTEGER ) + + - 35 * + 51 AS col1
----
-1719

onlyif mysql # DIV for integer division: 
query II rowsort label-7615
SELECT 96 AS col2, 0 DIV 6
----
96
0

skipif mysql # not compatible
query II rowsort label-7615
SELECT 96 AS col2, 0 / 6
----
96
0

query I rowsort
SELECT DISTINCT - ( + 65 ) AS col1
----
-65

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7617
SELECT CAST( NULL AS DECIMAL ) + + 46 * 47 AS col2, 88
----
NULL
88

skipif mysql # not compatible
query II rowsort label-7617
SELECT CAST ( NULL AS REAL ) + + 46 * 47 AS col2, 88
----
NULL
88

onlyif mysql # aggregate syntax: 
query II rowsort label-7618
SELECT 78 * + - ( + COUNT( * ) ) col1, + COALESCE ( + 5, - SUM( ALL + 92 ) + 66 ) + - NULLIF ( - COUNT( * ), - 30 ) - - + 82 AS col0
----
-78
88

skipif mysql # not compatible
query II rowsort label-7618
SELECT 78 * + - ( + COUNT ( * ) ) col1, + COALESCE ( + 5, - SUM ( ALL + 92 ) + 66 ) + - NULLIF ( - COUNT ( * ), - 30 ) - - + 82 AS col0
----
-78
88

query I rowsort
SELECT ALL - 95 - + 19
----
-114

query I rowsort
SELECT 68 * 47 AS col0
----
3196

onlyif mysql # DIV for integer division: 
query I rowsort label-7621
SELECT ALL - 86 DIV 30 * 26 * - ( - 93 )
----
-4836

skipif mysql # not compatible
query I rowsort label-7621
SELECT ALL - 86 / 30 * 26 * - ( - 93 )
----
-4836

query I rowsort
SELECT 75 - + - 30 AS col2
----
105

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7623
SELECT DISTINCT 64 - - 26 - - - 75 AS col0, + COUNT( * ) DIV 7
----
15
0

skipif mysql # not compatible
query II rowsort label-7623
SELECT DISTINCT 64 - - 26 - - - 75 AS col0, + COUNT ( * ) / 7
----
15
0

query I rowsort
SELECT 87 + - 51
----
36

query I rowsort
SELECT 3 * + + 45
----
135

query I rowsort
SELECT 10 - 47
----
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-7627
SELECT - 31, 61 + - COUNT( * ) col2
----
-31
60

skipif mysql # not compatible
query II rowsort label-7627
SELECT - 31, 61 + - COUNT ( * ) col2
----
-31
60

query I rowsort
SELECT 50 + - + CASE + ( - 97 ) WHEN + + 49 THEN + 23 ELSE 7 * 52 END
----
-314

query I rowsort
SELECT 9 + - 77 AS col0
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-7630
SELECT ALL + COUNT( * ) * + - 69 AS col0
----
-69

skipif mysql # not compatible
query I rowsort label-7630
SELECT ALL + COUNT ( * ) * + - 69 AS col0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-7631
SELECT - 25 * + MAX( ALL 41 ) AS col0
----
-1025

skipif mysql # not compatible
query I rowsort label-7631
SELECT - 25 * + MAX ( ALL 41 ) AS col0
----
-1025

query I rowsort
SELECT DISTINCT + ( - + 5 ) col2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7633
SELECT DISTINCT + 67 * COUNT( * ) * 65 AS col2
----
4355

skipif mysql # not compatible
query I rowsort label-7633
SELECT DISTINCT + 67 * COUNT ( * ) * 65 AS col2
----
4355

onlyif mysql # aggregate syntax: 
query I rowsort label-7634
SELECT COUNT( * ) + - + 62 - + - COALESCE ( - 71, 94 ) AS col1
----
-132

skipif mysql # not compatible
query I rowsort label-7634
SELECT COUNT ( * ) + - + 62 - + - COALESCE ( - 71, 94 ) AS col1
----
-132

query I rowsort
SELECT ALL - + 69 * + - 67 AS col1
----
4623

onlyif mysql # aggregate syntax: 
query I rowsort label-7636
SELECT DISTINCT - COUNT( * ) + ( NULLIF ( 84, 25 - + 34 + + - COUNT( * ) + + COUNT( * ) / + 64 * AVG ( ALL - 32 ) * + + 3 ) ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-7636
SELECT DISTINCT - COUNT ( * ) + ( NULLIF ( 84, 25 - + 34 + + - COUNT ( * ) + + COUNT ( * ) / + 64 * AVG ( ALL - 32 ) * + + 3 ) ) AS col2
----
83

query I rowsort
SELECT ALL - 54 + - 66 + - + 62 + 59
----
-123

onlyif mysql # DIV for integer division: 
query I rowsort label-7638
SELECT + 88 DIV - 55
----
-1

skipif mysql # not compatible
query I rowsort label-7638
SELECT + 88 / - 55
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7639
SELECT CAST( - 53 AS SIGNED ) * + 54 - + 65 AS col0
----
-2927

skipif mysql # not compatible
query I rowsort label-7639
SELECT CAST ( - 53 AS INTEGER ) * + 54 - + 65 AS col0
----
-2927

onlyif mysql # aggregate syntax: 
query I rowsort label-7640
SELECT - SUM( DISTINCT - 10 ) + + 19 - - + 83 AS col1
----
112

skipif mysql # not compatible
query I rowsort label-7640
SELECT - SUM ( DISTINCT - 10 ) + + 19 - - + 83 AS col1
----
112

onlyif mysql # DIV for integer division: 
query I rowsort label-7641
SELECT DISTINCT - 51 + 94 - + 85 DIV 96 AS col0
----
43

skipif mysql # not compatible
query I rowsort label-7641
SELECT DISTINCT - 51 + 94 - + 85 / 96 AS col0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-7642
SELECT ALL + COUNT( * ) * 89 + - 88
----
1

skipif mysql # not compatible
query I rowsort label-7642
SELECT ALL + COUNT ( * ) * 89 + - 88
----
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7643
SELECT - CAST( + 57 AS SIGNED ) DIV 10 col1
----
-5

skipif mysql # not compatible
query I rowsort label-7643
SELECT - CAST ( + 57 AS INTEGER ) / 10 col1
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-7644
SELECT - 2 DIV + ( 48 ) + 13 AS col2
----
13

skipif mysql # not compatible
query I rowsort label-7644
SELECT - 2 / + ( 48 ) + 13 AS col2
----
13

query I rowsort
SELECT - 63 * 4
----
-252

query I rowsort
SELECT DISTINCT - 2 * - 8
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-7647
SELECT ALL 7 + + 30 + - 10 + - COUNT( * ) + + - CASE NULLIF ( - - 86, + MAX( + 70 ) ) WHEN - 2 - + COUNT( + 6 ) THEN + 93 END + + 22 * + 70 / + 43 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7647
SELECT ALL 7 + + 30 + - 10 + - COUNT ( * ) + + - CASE NULLIF ( - - 86, + MAX ( + 70 ) ) WHEN - 2 - + COUNT ( + 6 ) THEN + 93 END + + 22 * + 70 / + 43 col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7648
SELECT + 90 DIV - 95 * + 83 * - 90
----
0

skipif mysql # not compatible
query I rowsort label-7648
SELECT + 90 / - 95 * + 83 * - 90
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-7649
SELECT ALL - 24, 73 DIV 25 col2
----
-24
2

skipif mysql # not compatible
query II rowsort label-7649
SELECT ALL - 24, 73 / 25 col2
----
-24
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7650
SELECT ALL MAX( DISTINCT COALESCE ( 28, - + 93 ) ) + 56 AS col2
----
84

skipif mysql # not compatible
query I rowsort label-7650
SELECT ALL MAX ( DISTINCT COALESCE ( 28, - + 93 ) ) + 56 AS col2
----
84

query II rowsort
SELECT + 42, - 93 + + 26 AS col0
----
42
-67

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7652
SELECT 55 AS col2, CAST( CAST( NULL AS DECIMAL ) AS SIGNED )
----
55
NULL

skipif mysql # not compatible
query II rowsort label-7652
SELECT 55 AS col2, CAST ( CAST ( NULL AS REAL ) AS INTEGER )
----
55
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7653
SELECT 68 AS col0, SUM( ALL 71 ) DIV + 71 * + COUNT( * ) AS col0
----
68
1

skipif mysql # not compatible
query II rowsort label-7653
SELECT 68 AS col0, SUM ( ALL 71 ) / + 71 * + COUNT ( * ) AS col0
----
68
1

query I rowsort
SELECT ALL 12 * - 46
----
-552

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7655
SELECT 78 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7655
SELECT 78 - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 84 + + 47 AS col1
----
131

query I rowsort
SELECT DISTINCT - 82 * - 7 AS col2
----
574

query I rowsort
SELECT 3 * - 17 * + 75
----
-3825

query I rowsort
SELECT ALL 93 * - 91
----
-8463

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7660
SELECT + ( - - CASE - 15 WHEN 28 + 37 THEN - 5 + CAST( - 76 AS SIGNED ) WHEN + 45 / ( + + 10 ) * 99 THEN + 13 END ) + - 86 * - + 23
----
NULL

skipif mysql # not compatible
query I rowsort label-7660
SELECT + ( - - CASE - 15 WHEN 28 + 37 THEN - 5 + CAST ( - 76 AS INTEGER ) WHEN + 45 / ( + + 10 ) * 99 THEN + 13 END ) + - 86 * - + 23
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7661
SELECT - 81 + COUNT( * ) + + + 47
----
-33

skipif mysql # not compatible
query I rowsort label-7661
SELECT - 81 + COUNT ( * ) + + + 47
----
-33

query I rowsort
SELECT - 57 + - + 19 * + 8
----
-209

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7663
SELECT + 23 * + ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7663
SELECT + 23 * + ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7664
SELECT ALL + + COUNT( * ) + CAST( - CAST( - AVG ( + 60 ) AS SIGNED ) AS SIGNED ) + + 1 + + CAST( - 55 AS SIGNED )
----
7

skipif mysql # not compatible
query I rowsort label-7664
SELECT ALL + + COUNT ( * ) + CAST ( - CAST ( - AVG ( + 60 ) AS INTEGER ) AS INTEGER ) + + 1 + + CAST ( - 55 AS INTEGER )
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7665
SELECT - 83 AS col1, + CASE 90 WHEN + - 59 / CAST( NULL AS SIGNED ) * COUNT( * ) / - 62 THEN NULL WHEN - 83 THEN + 37 END
----
-83
NULL

skipif mysql # not compatible
query II rowsort label-7665
SELECT - 83 AS col1, + CASE 90 WHEN + - 59 / CAST ( NULL AS INTEGER ) * COUNT ( * ) / - 62 THEN NULL WHEN - 83 THEN + 37 END
----
-83
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7666
SELECT - - MAX( ALL + 91 ) * - 45 AS col2
----
-4095

skipif mysql # not compatible
query I rowsort label-7666
SELECT - - MAX ( ALL + 91 ) * - 45 AS col2
----
-4095

query I rowsort
SELECT DISTINCT - ( - + 88 ) * - 78
----
-6864

onlyif mysql # aggregate syntax: 
query II rowsort label-7668
SELECT ALL + CASE + + 54 WHEN - 37 THEN + + 31 * + - 17 / - 39 * + 89 - - + COUNT( * ) WHEN - 79 THEN NULL END, 24 AS col0
----
NULL
24

skipif mysql # not compatible
query II rowsort label-7668
SELECT ALL + CASE + + 54 WHEN - 37 THEN + + 31 * + - 17 / - 39 * + 89 - - + COUNT ( * ) WHEN - 79 THEN NULL END, 24 AS col0
----
NULL
24

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7669
SELECT ALL + 14 + 59, 2 + + + CAST( - 8 AS SIGNED ) AS col1
----
73
-6

skipif mysql # not compatible
query II rowsort label-7669
SELECT ALL + 14 + 59, 2 + + + CAST ( - 8 AS INTEGER ) AS col1
----
73
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-7670
SELECT DISTINCT - 55 + + 61 DIV 94 AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-7670
SELECT DISTINCT - 55 + + 61 / 94 AS col1
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-7671
SELECT ALL - MIN( ALL + 47 ) AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-7671
SELECT ALL - MIN ( ALL + 47 ) AS col2
----
-47

query I rowsort
SELECT - 25 * ( - + 54 )
----
1350

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7673
SELECT - 95 * 34 * - + 69 + + CAST( NULL AS DECIMAL ) col2, CAST( NULL AS DECIMAL ) + + CAST( 53 AS DECIMAL )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7673
SELECT - 95 * 34 * - + 69 + + CAST ( NULL AS REAL ) col2, CAST ( NULL AS REAL ) + + CAST ( 53 AS REAL )
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7674
SELECT - 40 AS col2, + 31 / + + CAST( NULL AS SIGNED )
----
-40
NULL

skipif mysql # not compatible
query II rowsort label-7674
SELECT - 40 AS col2, + 31 / + + CAST ( NULL AS INTEGER )
----
-40
NULL

query II rowsort
SELECT 39 AS col2, + 71 + - 82
----
39
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-7676
SELECT - - 67 - + COUNT( * ) * 61 * ( - - 26 ) + 65 * - 31 AS col1
----
-3534

skipif mysql # not compatible
query I rowsort label-7676
SELECT - - 67 - + COUNT ( * ) * 61 * ( - - 26 ) + 65 * - 31 AS col1
----
-3534

query I rowsort
SELECT ALL - 62 * + 51
----
-3162

onlyif mysql # aggregate syntax: 
query I rowsort label-7678
SELECT ALL + MAX( + 40 ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-7678
SELECT ALL + MAX ( + 40 ) AS col0
----
40

query II rowsort
SELECT - 74 col2, 52 AS col0
----
-74
52

query II rowsort
SELECT - 8, + CASE + - 14 WHEN + 63 THEN + 16 * 67 / + - 78 * 93 ELSE NULL END AS col2
----
-8
NULL

query III rowsort
SELECT + + 29 AS col1, 9 + - - ( - 75 ), - 86 * + 37 * 29 col0
----
29
-66
-92278

onlyif mysql # aggregate syntax: 
query I rowsort label-7682
SELECT - MAX( + 65 ) + - 11 * - + ( 87 ) + + - COUNT( * ) * 23
----
869

skipif mysql # not compatible
query I rowsort label-7682
SELECT - MAX ( + 65 ) + - 11 * - + ( 87 ) + + - COUNT ( * ) * 23
----
869

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7683
SELECT + CAST( NULL AS SIGNED ) / 37 - + 30 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7683
SELECT + CAST ( NULL AS INTEGER ) / 37 - + 30 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7684
SELECT COALESCE ( + + 24, - COUNT( - 4 ) + - SUM( 87 ) DIV - 78 + 39 )
----
24

skipif mysql # not compatible
query I rowsort label-7684
SELECT COALESCE ( + + 24, - COUNT ( - 4 ) + - SUM ( 87 ) / - 78 + 39 )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-7685
SELECT 68 * - COUNT( ALL + - 90 ) + - + 2 + - 10 * + - 14 * - 2
----
-350

skipif mysql # not compatible
query I rowsort label-7685
SELECT 68 * - COUNT ( ALL + - 90 ) + - + 2 + - 10 * + - 14 * - 2
----
-350

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7686
SELECT + MAX( - 33 ) DIV - + 93 + - 84
----
-84

skipif mysql # not compatible
query I rowsort label-7686
SELECT + MAX ( - 33 ) / - + 93 + - 84
----
-84

query I rowsort
SELECT - 66 * + - 76 AS col1
----
5016

onlyif mysql # aggregate syntax: 
query I rowsort label-7688
SELECT + MAX( DISTINCT 88 ) * - ( + MAX( ALL + COALESCE ( + 23, + 39 ) ) ) AS col2
----
-2024

skipif mysql # not compatible
query I rowsort label-7688
SELECT + MAX ( DISTINCT 88 ) * - ( + MAX ( ALL + COALESCE ( + 23, + 39 ) ) ) AS col2
----
-2024

onlyif mysql # aggregate syntax: 
query II rowsort label-7689
SELECT DISTINCT 77 * + COUNT( * ), ( 41 ) + 88 AS col1
----
77
129

skipif mysql # not compatible
query II rowsort label-7689
SELECT DISTINCT 77 * + COUNT ( * ), ( 41 ) + 88 AS col1
----
77
129

query I rowsort
SELECT - ( + - 28 ) * + + 33 AS col1
----
924

query I rowsort
SELECT ALL 12 * + + 17 AS col2
----
204

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7692
SELECT - COUNT( * ) + - CAST( NULL AS SIGNED ) - + 24 * + 57 * - 24 * - 5 / - 80 * + 36 * ( + COALESCE ( - ( COUNT( * ) ), 4 - - ( 85 ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7692
SELECT - COUNT ( * ) + - CAST ( NULL AS INTEGER ) - + 24 * + 57 * - 24 * - 5 / - 80 * + 36 * ( + COALESCE ( - ( COUNT ( * ) ), 4 - - ( 85 ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7693
SELECT + NULLIF ( + + 23, 77 * - COUNT( * ) + + 73 + 80 + + - 42 * 81 * - 50 + + + 10 ) * + + 90 * + - ( 31 ) AS col1
----
-64170

skipif mysql # not compatible
query I rowsort label-7693
SELECT + NULLIF ( + + 23, 77 * - COUNT ( * ) + + 73 + 80 + + - 42 * 81 * - 50 + + + 10 ) * + + 90 * + - ( 31 ) AS col1
----
-64170

onlyif mysql # aggregate syntax: 
query I rowsort label-7694
SELECT + 94 + - 63 * - 63 + - COUNT( * ) - + + 97 AS col0
----
3965

skipif mysql # not compatible
query I rowsort label-7694
SELECT + 94 + - 63 * - 63 + - COUNT ( * ) - + + 97 AS col0
----
3965

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7695
SELECT DISTINCT + COALESCE ( - - SUM( DISTINCT 82 ), - - 6 + + - 55 + 0 + - 0 DIV 45 ) AS col1
----
82

skipif mysql # not compatible
query I rowsort label-7695
SELECT DISTINCT + COALESCE ( - - SUM ( DISTINCT 82 ), - - 6 + + - 55 + 0 + - 0 / 45 ) AS col1
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-7696
SELECT ALL - 23 * + 0 DIV + 16
----
0

skipif mysql # not compatible
query I rowsort label-7696
SELECT ALL - 23 * + 0 / + 16
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7697
SELECT + CASE 96 WHEN + 13 * - 95 - 75 THEN NULL WHEN - NULLIF ( + 52, - 50 * - ( - - ( + 36 ) ) + COUNT( * ) + + + MIN( DISTINCT + - 88 ) + 56 * - MAX( + 9 ) * - 70 + + - 20 * + 61 ) * 38 + - + 7 THEN 25 WHEN - + COUNT( * ) * 27 - + CASE SUM( + 51 ) WHEN + 73 THEN - CASE 78 WHEN + + COUNT( * ) THEN - 19 WHEN 39 * 43 THEN NULL ELSE - 37 END * + 30 * + 39 + - SUM( DISTINCT + ( 47 ) ) END THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7697
SELECT + CASE 96 WHEN + 13 * - 95 - 75 THEN NULL WHEN - NULLIF ( + 52, - 50 * - ( - - ( + 36 ) ) + COUNT ( * ) + + + MIN ( DISTINCT + - 88 ) + 56 * - MAX ( + 9 ) * - 70 + + - 20 * + 61 ) * 38 + - + 7 THEN 25 WHEN - + COUNT ( * ) * 27 - + CASE SUM ( + 51 ) WHEN + 73 THEN - CASE 78 WHEN + + COUNT ( * ) THEN - 19 WHEN 39 * 43 THEN NULL ELSE - 37 END * + 30 * + 39 + - SUM ( DISTINCT + ( 47 ) ) END THEN NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7698
SELECT ALL 52 * - 70, ( + ( - NULLIF ( - 28, + CAST( NULL AS SIGNED ) ) ) ) * 18 AS col2
----
-3640
504

skipif mysql # not compatible
query II rowsort label-7698
SELECT ALL 52 * - 70, ( + ( - NULLIF ( - 28, + CAST ( NULL AS INTEGER ) ) ) ) * 18 AS col2
----
-3640
504

query I rowsort
SELECT - 76 * + - 53
----
4028

onlyif mysql # aggregate syntax: 
query I rowsort label-7700
SELECT - ( - - MAX( DISTINCT - + 47 ) ) AS col0
----
47

skipif mysql # not compatible
query I rowsort label-7700
SELECT - ( - - MAX ( DISTINCT - + 47 ) ) AS col0
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7701
SELECT ALL + 61 * CAST( NULL AS SIGNED ) + 33 * + + 90 + - 49
----
NULL

skipif mysql # not compatible
query I rowsort label-7701
SELECT ALL + 61 * CAST ( NULL AS INTEGER ) + 33 * + + 90 + - 49
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7702
SELECT + 16 - - + 27 * + MIN( + 98 ) * 36 AS col1
----
95272

skipif mysql # not compatible
query I rowsort label-7702
SELECT + 16 - - + 27 * + MIN ( + 98 ) * 36 AS col1
----
95272

onlyif mysql # DIV for integer division: 
query I rowsort label-7703
SELECT + 43 DIV + 34
----
1

skipif mysql # not compatible
query I rowsort label-7703
SELECT + 43 / + 34
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7704
SELECT + MAX( - 71 ) + - 78
----
-149

skipif mysql # not compatible
query I rowsort label-7704
SELECT + MAX ( - 71 ) + - 78
----
-149

query I rowsort
SELECT ALL 40 * - - 36 AS col2
----
1440

onlyif mysql # aggregate syntax: 
query II rowsort label-7706
SELECT + - 63 + - COUNT( * ) AS col1, 98
----
-64
98

skipif mysql # not compatible
query II rowsort label-7706
SELECT + - 63 + - COUNT ( * ) AS col1, 98
----
-64
98

query I rowsort
SELECT - + 57 - COALESCE ( 77, - 17 * - 92 + + + 12 )
----
-134

query I rowsort
SELECT ALL - 77 + - - 96
----
19

query I rowsort
SELECT DISTINCT 2 * + ( - - NULLIF ( - + 82, - + 74 ) ) + - 13 AS col1
----
-177

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7710
SELECT ALL + + 26 / + - CAST( NULL AS DECIMAL ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7710
SELECT ALL + + 26 / + - CAST ( NULL AS REAL ) col1
----
NULL

query I rowsort
SELECT + 45 + + 83 col2
----
128

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7712
SELECT DISTINCT + CAST( - 19 AS SIGNED ) DIV - 48 * + 55 col1
----
0

skipif mysql # not compatible
query I rowsort label-7712
SELECT DISTINCT + CAST ( - 19 AS INTEGER ) / - 48 * + 55 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7713
SELECT ALL + + 51 * - AVG ( ALL + 56 ) * CASE + 73 WHEN + MIN( ALL - 60 ) THEN + 24 / + 4 + + 21 * - CASE - 55 WHEN 20 THEN NULL WHEN 23 * - + 37 * 17 * + + MIN( ALL 26 ) / COALESCE ( + 37, - 79 ) + + 35 THEN + - COUNT( * ) + + 40 * COUNT( * ) / - COUNT( + - 10 ) END + - + MIN( - 94 ) + 6 WHEN 60 THEN - COUNT( * ) + + - 8 * + 0 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7713
SELECT ALL + + 51 * - AVG ( ALL + 56 ) * CASE + 73 WHEN + MIN ( ALL - 60 ) THEN + 24 / + 4 + + 21 * - CASE - 55 WHEN 20 THEN NULL WHEN 23 * - + 37 * 17 * + + MIN ( ALL 26 ) / COALESCE ( + 37, - 79 ) + + 35 THEN + - COUNT ( * ) + + 40 * COUNT ( * ) / - COUNT ( + - 10 ) END + - + MIN ( - 94 ) + 6 WHEN 60 THEN - COUNT ( * ) + + - 8 * + 0 END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7714
SELECT - CAST( - 95 AS SIGNED ) + + - 13 col1
----
82

skipif mysql # not compatible
query I rowsort label-7714
SELECT - CAST ( - 95 AS INTEGER ) + + - 13 col1
----
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7715
SELECT DISTINCT - ( - COUNT( * ) ) DIV 37 + + NULLIF ( + + MIN( DISTINCT - 87 ), + 4 + - AVG ( + 45 ) ) + + - 36 DIV - 83 - - ( - 16 ) AS col0
----
-103

skipif mysql # not compatible
query I rowsort label-7715
SELECT DISTINCT - ( - COUNT ( * ) ) / 37 + + NULLIF ( + + MIN ( DISTINCT - 87 ), + 4 + - AVG ( + 45 ) ) + + - 36 / - 83 - - ( - 16 ) AS col0
----
-103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7716
SELECT DISTINCT 84 DIV - 95 * + NULLIF ( + 85, 54 + 40 ) + + NULLIF ( - + 29, AVG ( ALL 32 ) * 56 * - - 47 * - + 41 + + + 14 * + 87 + - COUNT( * ) + + - NULLIF ( - 10, - - COALESCE ( - - CAST( NULL AS SIGNED ), + - 76 + - COUNT( * ) * - 40 ) + 79 + - 39 - 20 - + 3 - 69 * - 2 ) + - 5 + + 3 + + 75 ) - + MAX( + - 23 ) DIV - 52 AS col2, 85 AS col2
----
-29
85

skipif mysql # not compatible
query II rowsort label-7716
SELECT DISTINCT 84 / - 95 * + NULLIF ( + 85, 54 + 40 ) + + NULLIF ( - + 29, AVG ( ALL 32 ) * 56 * - - 47 * - + 41 + + + 14 * + 87 + - COUNT ( * ) + + - NULLIF ( - 10, - - COALESCE ( - - CAST ( NULL AS INTEGER ), + - 76 + - COUNT ( * ) * - 40 ) + 79 + - 39 - 20 - + 3 - 69 * - 2 ) + - 5 + + 3 + + 75 ) - + MAX ( + - 23 ) / - 52 AS col2, 85 AS col2
----
-29
85

query I rowsort
SELECT ALL + COALESCE ( - - 14, - 97 * 44, 15 - - 63 )
----
14

query I rowsort
SELECT ALL + NULLIF ( + + 65, - ( 42 ) + + 34 * 0 ) AS col2
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7719
SELECT DISTINCT - 9 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7719
SELECT DISTINCT - 9 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7720
SELECT - COUNT( * ) + + - COUNT( * ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-7720
SELECT - COUNT ( * ) + + - COUNT ( * ) AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7721
SELECT ALL - 0 * + NULLIF ( + - COUNT( * ), + + COALESCE ( - 81, - 1 + + 30 ) - + - 85 * + + COUNT( * ) * - COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-7721
SELECT ALL - 0 * + NULLIF ( + - COUNT ( * ), + + COALESCE ( - 81, - 1 + + 30 ) - + - 85 * + + COUNT ( * ) * - COUNT ( * ) )
----
0

query II rowsort
SELECT + 50 AS col0, 22 + 2 + + - 7
----
50
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7723
SELECT ALL + CASE COUNT( ALL 7 ) WHEN + 6 THEN COUNT( * ) + 43 - - CAST( - + 91 AS SIGNED ) WHEN + 40 THEN COUNT( * ) / 74 WHEN - 20 * - - ( - - 46 ) THEN 4 + + 54 / + 36 + + CAST( + 90 AS SIGNED ) - 67 * + 40 + - + 41 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7723
SELECT ALL + CASE COUNT ( ALL 7 ) WHEN + 6 THEN COUNT ( * ) + 43 - - CAST ( - + 91 AS INTEGER ) WHEN + 40 THEN COUNT ( * ) / 74 WHEN - 20 * - - ( - - 46 ) THEN 4 + + 54 / + 36 + + CAST ( + 90 AS INTEGER ) - 67 * + 40 + - + 41 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7724
SELECT - NULLIF ( 79, 70 * - - CASE - - CASE 23 WHEN - + NULLIF ( + 76, 30 ) THEN - - 1 * - + 11 * - - 55 * 5 + + 18 - + + COUNT( DISTINCT - COALESCE ( - 9, - 5 ) ) * - 5 END WHEN 90 * - 52 + 68 THEN - 28 WHEN - + 28 / - 71 THEN NULL END + + 8 ) * + - 98
----
7742

skipif mysql # not compatible
query I rowsort label-7724
SELECT - NULLIF ( 79, 70 * - - CASE - - CASE 23 WHEN - + NULLIF ( + 76, 30 ) THEN - - 1 * - + 11 * - - 55 * 5 + + 18 - + + COUNT ( DISTINCT - COALESCE ( - 9, - 5 ) ) * - 5 END WHEN 90 * - 52 + 68 THEN - 28 WHEN - + 28 / - 71 THEN NULL END + + 8 ) * + - 98
----
7742

onlyif mysql # aggregate syntax: 
query II rowsort label-7725
SELECT 68 - 96 + 27 AS col1, - SUM( 19 )
----
-1
-19

skipif mysql # not compatible
query II rowsort label-7725
SELECT 68 - 96 + 27 AS col1, - SUM ( 19 )
----
-1
-19

query I rowsort
SELECT 74 + + + 98
----
172

query I rowsort
SELECT ALL - COALESCE ( + - 0, - 32, - COALESCE ( + 80, + 14 + + 32 ) )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7728
SELECT 31 AS col0, - MIN( - + 48 ) * 61
----
31
2928

skipif mysql # not compatible
query II rowsort label-7728
SELECT 31 AS col0, - MIN ( - + 48 ) * 61
----
31
2928

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7729
SELECT ALL + 65 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7729
SELECT ALL + 65 / + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT 12 - - 97 - - - 71 col0, - 53
----
38
-53

query I rowsort
SELECT 19 + + 89
----
108

query I rowsort
SELECT ALL - 92 + + 41
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7733
SELECT - + MAX( DISTINCT + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7733
SELECT - + MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT ALL - 88 + - COALESCE ( - 45, + + ( + + ( - - 86 ) ), + 50 )
----
-43

query II rowsort
SELECT 38, 29 AS col0
----
38
29

onlyif mysql # aggregate syntax: 
query I rowsort label-7736
SELECT COUNT( * ) * + 84 AS col1
----
84

skipif mysql # not compatible
query I rowsort label-7736
SELECT COUNT ( * ) * + 84 AS col1
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7737
SELECT 94 + + CAST( NULL AS SIGNED ) * - 38
----
NULL

skipif mysql # not compatible
query I rowsort label-7737
SELECT 94 + + CAST ( NULL AS INTEGER ) * - 38
----
NULL

query I rowsort
SELECT + 68 - + 10
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7739
SELECT ALL ( + COUNT( * ) ) + - - 94
----
95

skipif mysql # not compatible
query I rowsort label-7739
SELECT ALL ( + COUNT ( * ) ) + - - 94
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-7740
SELECT DISTINCT + COUNT( DISTINCT - 48 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7740
SELECT DISTINCT + COUNT ( DISTINCT - 48 ) AS col1
----
1

query I rowsort
SELECT ALL ( + 96 ) * - + COALESCE ( - + 13, 13 ) AS col0
----
1248

onlyif mysql # DIV for integer division: 
query I rowsort label-7742
SELECT ALL + 45 - - + 49 DIV - 11
----
41

skipif mysql # not compatible
query I rowsort label-7742
SELECT ALL + 45 - - + 49 / - 11
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-7743
SELECT DISTINCT - COUNT( * ) * 26 + 46 + 5 * - 12 + - 90 AS col1
----
-130

skipif mysql # not compatible
query I rowsort label-7743
SELECT DISTINCT - COUNT ( * ) * 26 + 46 + 5 * - 12 + - 90 AS col1
----
-130

onlyif mysql # aggregate syntax: 
query I rowsort label-7744
SELECT ALL - COUNT( DISTINCT - 58 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7744
SELECT ALL - COUNT ( DISTINCT - 58 ) AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7745
SELECT COALESCE ( COUNT( - 87 ), - - 14 ) * - CASE + 69 WHEN - 85 + COUNT( * ) THEN - 21 * + + 85 * + 23 + 62 / - 48 WHEN + + COALESCE ( - 97, - 75, + COUNT( * ) ) THEN - COUNT( * ) * CAST( + + 55 AS SIGNED ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7745
SELECT COALESCE ( COUNT ( - 87 ), - - 14 ) * - CASE + 69 WHEN - 85 + COUNT ( * ) THEN - 21 * + + 85 * + 23 + 62 / - 48 WHEN + + COALESCE ( - 97, - 75, + COUNT ( * ) ) THEN - COUNT ( * ) * CAST ( + + 55 AS INTEGER ) ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT DISTINCT 58 * + 62 AS col1
----
3596

query I rowsort
SELECT 98 * 45 AS col1
----
4410

onlyif mysql # DIV for integer division: 
query I rowsort label-7748
SELECT + 24 DIV 42 - + - 35
----
35

skipif mysql # not compatible
query I rowsort label-7748
SELECT + 24 / 42 - + - 35
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-7749
SELECT ALL 7 * - COUNT( * ) col2
----
-7

skipif mysql # not compatible
query I rowsort label-7749
SELECT ALL 7 * - COUNT ( * ) col2
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7750
SELECT ALL + NULLIF ( + - COUNT( * ), + 90 ) DIV - COUNT( * ) AS col2, ( 3 ) AS col0
----
1
3

skipif mysql # not compatible
query II rowsort label-7750
SELECT ALL + NULLIF ( + - COUNT ( * ), + 90 ) / - COUNT ( * ) AS col2, ( 3 ) AS col0
----
1
3

onlyif mysql # DIV for integer division: 
query I rowsort label-7751
SELECT DISTINCT + 23 + - 46 DIV - 47
----
23

skipif mysql # not compatible
query I rowsort label-7751
SELECT DISTINCT + 23 + - 46 / - 47
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7752
SELECT 77 + + - COUNT( * ) + + - 29
----
47

skipif mysql # not compatible
query I rowsort label-7752
SELECT 77 + + - COUNT ( * ) + + - 29
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7753
SELECT 69 / + 73 - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7753
SELECT 69 / + 73 - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + 78 + + 68 AS col1
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-7755
SELECT + 79 * - COUNT( * ) + - 84 AS col1
----
-163

skipif mysql # not compatible
query I rowsort label-7755
SELECT + 79 * - COUNT ( * ) + - 84 AS col1
----
-163

query I rowsort
SELECT 22 - - 59
----
81

query I rowsort
SELECT 29 * + 2 AS col2
----
58

query I rowsort
SELECT ALL - 6 + - NULLIF ( + 1, - 85 )
----
-7

query I rowsort
SELECT DISTINCT + ( + 85 ) * 25 AS col1
----
2125

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7760
SELECT 12 + 8 AS col0, 70 + + - 87 - + - 30 + + + 5 DIV - SUM( ALL + + 16 ) * + 56
----
20
13

skipif mysql # not compatible
query II rowsort label-7760
SELECT 12 + 8 AS col0, 70 + + - 87 - + - 30 + + + 5 / - SUM ( ALL + + 16 ) * + 56
----
20
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7761
SELECT 19 DIV 11 DIV - MAX( + + 83 ), - 20 DIV + COUNT( * ) col1
----
0
-20

skipif mysql # not compatible
query II rowsort label-7761
SELECT 19 / 11 / - MAX ( + + 83 ), - 20 / + COUNT ( * ) col1
----
0
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-7762
SELECT DISTINCT COUNT( * ) + + 98 * - 66
----
-6467

skipif mysql # not compatible
query I rowsort label-7762
SELECT DISTINCT COUNT ( * ) + + 98 * - 66
----
-6467

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7763
SELECT ALL - NULLIF ( + COUNT( * ), + 83 ) + + COUNT( * ) * - 4 + - + MAX( + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7763
SELECT ALL - NULLIF ( + COUNT ( * ), + 83 ) + + COUNT ( * ) * - 4 + - + MAX ( + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7764
SELECT DISTINCT - 61 + - - 87 * + ( COUNT( * ) )
----
26

skipif mysql # not compatible
query I rowsort label-7764
SELECT DISTINCT - 61 + - - 87 * + ( COUNT ( * ) )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-7765
SELECT - + 93 * + MIN( DISTINCT + 94 ) + + 28
----
-8714

skipif mysql # not compatible
query I rowsort label-7765
SELECT - + 93 * + MIN ( DISTINCT + 94 ) + + 28
----
-8714

query I rowsort
SELECT - 91 * + 15 + 17 AS col2
----
-1348

query I rowsort
SELECT ALL - 77 - + 36
----
-113

onlyif mysql # aggregate syntax: 
query I rowsort label-7768
SELECT DISTINCT + + 10 * - + SUM( ALL + 44 ) AS col1
----
-440

skipif mysql # not compatible
query I rowsort label-7768
SELECT DISTINCT + + 10 * - + SUM ( ALL + 44 ) AS col1
----
-440

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-7769
SELECT DISTINCT - + 93 DIV + 10 AS col1, + 22 * - NULLIF ( - 60, + 21 * - 93 - + + CASE + 90 WHEN 75 THEN 89 WHEN ( - CASE - 33 WHEN - ( - 44 ) THEN ( 38 ) ELSE 49 * COUNT( * ) * CASE 76 WHEN + + ( - 37 ) + - 99 THEN - + 92 - + CAST( - 43 AS DECIMAL ) * 48 + - 8 * + - 4 * + 1 WHEN - 76 * - - 3 + + 4 THEN NULL END + - COUNT( + + 9 ) - + - 99 - 66 + - 21 + - 32 DIV - 81 * + 1 * COUNT( - 77 ) + SUM( + ( 51 ) ) * 30 END ) THEN 94 ELSE NULL END ) * 72
----
-9
95040

skipif mysql # not compatible
query II rowsort label-7769
SELECT DISTINCT - + 93 / + 10 AS col1, + 22 * - NULLIF ( - 60, + 21 * - 93 - + + CASE + 90 WHEN 75 THEN 89 WHEN ( - CASE - 33 WHEN - ( - 44 ) THEN ( 38 ) ELSE 49 * COUNT ( * ) * CASE 76 WHEN + + ( - 37 ) + - 99 THEN - + 92 - + CAST ( - 43 AS REAL ) * 48 + - 8 * + - 4 * + 1 WHEN - 76 * - - 3 + + 4 THEN NULL END + - COUNT ( + + 9 ) - + - 99 - 66 + - 21 + - 32 / - 81 * + 1 * COUNT ( - 77 ) + SUM ( + ( 51 ) ) * 30 END ) THEN 94 ELSE NULL END ) * 72
----
-9
95040

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7770
SELECT 58 / - CAST( NULL AS SIGNED ) * + 41 - - 54 + 59 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7770
SELECT 58 / - CAST ( NULL AS INTEGER ) * + 41 - - 54 + 59 AS col1
----
NULL

query I rowsort
SELECT ALL - 85 * - 48 AS col0
----
4080

onlyif mysql # aggregate syntax: 
query I rowsort label-7772
SELECT DISTINCT MAX( ALL - 47 ) * 98 AS col1
----
-4606

skipif mysql # not compatible
query I rowsort label-7772
SELECT DISTINCT MAX ( ALL - 47 ) * 98 AS col1
----
-4606

query I rowsort
SELECT + 80 + + 4 - 41 * 70 * - - 21
----
-60186

query I rowsort
SELECT 68 + + - 71 AS col1
----
-3

query I rowsort
SELECT - 64 - 25 AS col0
----
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7776
SELECT CAST( NULL AS SIGNED ) * + 90 / + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7776
SELECT CAST ( NULL AS INTEGER ) * + 90 / + + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7777
SELECT - 7 + - + COUNT( * )
----
-8

skipif mysql # not compatible
query I rowsort label-7777
SELECT - 7 + - + COUNT ( * )
----
-8

query I rowsort
SELECT 58 + + 5
----
63

query I rowsort
SELECT 6 * + 37 - - ( + 49 )
----
271

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7780
SELECT ALL COUNT( * ) * + + CAST( - 70 AS SIGNED ) * - 14
----
980

skipif mysql # not compatible
query I rowsort label-7780
SELECT ALL COUNT ( * ) * + + CAST ( - 70 AS INTEGER ) * - 14
----
980

onlyif mysql # DIV for integer division: 
query I rowsort label-7781
SELECT 88 + + 48 DIV 37 * + + 91
----
179

skipif mysql # not compatible
query I rowsort label-7781
SELECT 88 + + 48 / 37 * + + 91
----
179

query II rowsort
SELECT ALL NULLIF ( - 61, + 55 ), - 45 AS col2
----
-61
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7783
SELECT DISTINCT CASE 48 WHEN 60 / + - 39 + - 85 + + 83 * + SUM( ALL + CAST( NULL AS SIGNED ) ) * + 47 * 53 / 3 THEN 64 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7783
SELECT DISTINCT CASE 48 WHEN 60 / + - 39 + - 85 + + 83 * + SUM ( ALL + CAST ( NULL AS INTEGER ) ) * + 47 * 53 / 3 THEN 64 END col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7784
SELECT CASE - - 23 WHEN 89 THEN NULL WHEN + 44 THEN NULL ELSE + - 66 END AS col2, - MIN( + 33 ) + 45
----
-66
12

skipif mysql # not compatible
query II rowsort label-7784
SELECT CASE - - 23 WHEN 89 THEN NULL WHEN + 44 THEN NULL ELSE + - 66 END AS col2, - MIN ( + 33 ) + 45
----
-66
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7785
SELECT ALL SUM( + 79 ) * - 70
----
-5530

skipif mysql # not compatible
query I rowsort label-7785
SELECT ALL SUM ( + 79 ) * - 70
----
-5530

onlyif mysql # aggregate syntax: 
query I rowsort label-7786
SELECT 37 * - MAX( + 74 ) * + - COALESCE ( + 59, - 65 ) + - 10 + + 87
----
161619

skipif mysql # not compatible
query I rowsort label-7786
SELECT 37 * - MAX ( + 74 ) * + - COALESCE ( + 59, - 65 ) + - 10 + + 87
----
161619

onlyif mysql # aggregate syntax: 
query II rowsort label-7787
SELECT + 51 AS col1, COUNT( * ) + - - COUNT( * ) * - 41 AS col1
----
51
-40

skipif mysql # not compatible
query II rowsort label-7787
SELECT + 51 AS col1, COUNT ( * ) + - - COUNT ( * ) * - 41 AS col1
----
51
-40

query I rowsort
SELECT + 35 * - 77
----
-2695

onlyif mysql # DIV for integer division: 
query I rowsort label-7789
SELECT 74 DIV + 49 + + 89
----
90

skipif mysql # not compatible
query I rowsort label-7789
SELECT 74 / + 49 + + 89
----
90

query I rowsort
SELECT ALL - 95 * + 15 + - 40 + + 64 * 58
----
2247

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7791
SELECT + NULLIF ( 37, CAST( + 72 AS SIGNED ) )
----
37

skipif mysql # not compatible
query I rowsort label-7791
SELECT + NULLIF ( 37, CAST ( + 72 AS INTEGER ) )
----
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7792
SELECT ALL - 45 * 60 + COUNT( * ) + + COALESCE ( + 3, - 41 ) DIV - 11
----
-2699

skipif mysql # not compatible
query I rowsort label-7792
SELECT ALL - 45 * 60 + COUNT ( * ) + + COALESCE ( + 3, - 41 ) / - 11
----
-2699

query I rowsort
SELECT ALL 94 * 59 AS col0
----
5546

onlyif mysql # DIV for integer division: 
query I rowsort label-7794
SELECT ALL 17 DIV + 22
----
0

skipif mysql # not compatible
query I rowsort label-7794
SELECT ALL 17 / + 22
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7795
SELECT + 81 * SUM( ALL - - 30 ) DIV + MIN( ALL - 12 ) col1, + 23 + + CASE - + 24 WHEN - 22 * + MAX( ALL - 19 ) + - 54 THEN 32 * + 92 END AS col0
----
-202
NULL

skipif mysql # not compatible
query II rowsort label-7795
SELECT + 81 * SUM ( ALL - - 30 ) / + MIN ( ALL - 12 ) col1, + 23 + + CASE - + 24 WHEN - 22 * + MAX ( ALL - 19 ) + - 54 THEN 32 * + 92 END AS col0
----
-202
NULL

query I rowsort
SELECT 75 * - 10 - 58 + + 27 * - - 1
----
-781

query I rowsort
SELECT + 75 * 7 AS col1
----
525

onlyif mysql # aggregate syntax: 
query II rowsort label-7798
SELECT ALL + 73 AS col1, - 51 - 79 + - 66 + - - MIN( - 50 ) col1
----
73
-246

skipif mysql # not compatible
query II rowsort label-7798
SELECT ALL + 73 AS col1, - 51 - 79 + - 66 + - - MIN ( - 50 ) col1
----
73
-246

onlyif mysql # aggregate syntax: 
query I rowsort label-7799
SELECT - 99 * + SUM( DISTINCT + 61 ) - - 53 + + 97 AS col1
----
-5889

skipif mysql # not compatible
query I rowsort label-7799
SELECT - 99 * + SUM ( DISTINCT + 61 ) - - 53 + + 97 AS col1
----
-5889

query I rowsort
SELECT - 23 * - - 81 AS col2
----
-1863

query I rowsort
SELECT + - 88 col0
----
-88

query II rowsort
SELECT + 75 AS col0, 67
----
75
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7803
SELECT + 89 * CAST( NULL AS SIGNED ) * 66 * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7803
SELECT + 89 * CAST ( NULL AS INTEGER ) * 66 * - COUNT ( * )
----
NULL

query I rowsort
SELECT ALL + 89 * - 58
----
-5162

onlyif mysql # aggregate syntax: 
query I rowsort label-7805
SELECT + - 84 + + COUNT( * ) - 59 * + COALESCE ( NULLIF ( - 19, - COALESCE ( - - 90, 55, - + CASE - NULLIF ( 95, - - 81 / - COUNT( * ) ) WHEN + CASE + + COUNT( * ) WHEN + 73 THEN - 14 + - 50 ELSE NULL END + - COUNT( * ) + + 42 THEN NULL WHEN 18 THEN NULL ELSE - 98 END ) + - 1 ), + - 10, - 55 + + 55 ) AS col2
----
1038

skipif mysql # not compatible
query I rowsort label-7805
SELECT + - 84 + + COUNT ( * ) - 59 * + COALESCE ( NULLIF ( - 19, - COALESCE ( - - 90, 55, - + CASE - NULLIF ( 95, - - 81 / - COUNT ( * ) ) WHEN + CASE + + COUNT ( * ) WHEN + 73 THEN - 14 + - 50 ELSE NULL END + - COUNT ( * ) + + 42 THEN NULL WHEN 18 THEN NULL ELSE - 98 END ) + - 1 ), + - 10, - 55 + + 55 ) AS col2
----
1038

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7806
SELECT DISTINCT + COUNT( ALL - - ( NULLIF ( + NULLIF ( - 72, - ( 21 ) + CAST( 94 AS SIGNED ) ), + 49 + - 2 ) ) ) * - CAST( NULL AS SIGNED ) * ( + 75 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7806
SELECT DISTINCT + COUNT ( ALL - - ( NULLIF ( + NULLIF ( - 72, - ( 21 ) + CAST ( 94 AS INTEGER ) ), + 49 + - 2 ) ) ) * - CAST ( NULL AS INTEGER ) * ( + 75 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7807
SELECT - - CAST( NULL AS SIGNED ), COUNT( * ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-7807
SELECT - - CAST ( NULL AS INTEGER ), COUNT ( * ) AS col2
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7808
SELECT - ( - + 15 ) * - COUNT( ALL + 72 ) * + 80 + + 69
----
-1131

skipif mysql # not compatible
query I rowsort label-7808
SELECT - ( - + 15 ) * - COUNT ( ALL + 72 ) * + 80 + + 69
----
-1131

onlyif mysql # aggregate syntax: 
query I rowsort label-7809
SELECT - 61 + + COUNT( - - 30 ) AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-7809
SELECT - 61 + + COUNT ( - - 30 ) AS col0
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-7810
SELECT ALL - + 15 DIV - + 52 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7810
SELECT ALL - + 15 / - + 52 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7811
SELECT - CASE 46 WHEN - 50 * + COUNT( * ) * + + COALESCE ( - COUNT( * ), - - 48 ) * + COUNT( * ) + - - 6 THEN 16 WHEN 13 * - 17 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7811
SELECT - CASE 46 WHEN - 50 * + COUNT ( * ) * + + COALESCE ( - COUNT ( * ), - - 48 ) * + COUNT ( * ) + - - 6 THEN 16 WHEN 13 * - 17 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7812
SELECT ALL - + 40 + 26 - ( + + COUNT( * ) ) AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-7812
SELECT ALL - + 40 + 26 - ( + + COUNT ( * ) ) AS col0
----
-15

query I rowsort
SELECT - - 7 * - 16
----
-112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7814
SELECT ALL - NULLIF ( + 78, - - 96 ) / - + COUNT( * ) * + 41 + - COUNT( * ) - ( - AVG ( - - ( - + ( + + 66 ) ) ) ) + + + CAST( NULL AS SIGNED ) * - 96 + + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7814
SELECT ALL - NULLIF ( + 78, - - 96 ) / - + COUNT ( * ) * + 41 + - COUNT ( * ) - ( - AVG ( - - ( - + ( + + 66 ) ) ) ) + + + CAST ( NULL AS INTEGER ) * - 96 + + COUNT ( * ) AS col1
----
NULL

query II rowsort
SELECT - 81 AS col2, + 16 AS col0
----
-81
16

onlyif mysql # aggregate syntax: 
query II rowsort label-7816
SELECT ALL COALESCE ( - 54, - + 9, - 34 ) * 81 + COUNT( * ) AS col1, - COUNT( * ) + + - 97 * - ( - 14 )
----
-4373
-1359

skipif mysql # not compatible
query II rowsort label-7816
SELECT ALL COALESCE ( - 54, - + 9, - 34 ) * 81 + COUNT ( * ) AS col1, - COUNT ( * ) + + - 97 * - ( - 14 )
----
-4373
-1359

query I rowsort
SELECT - 83 - 8 - - 82
----
-9

query I rowsort
SELECT - 89 * - 16 AS col0
----
1424

query I rowsort
SELECT ALL + 78 + - - 86 + + ( 63 ) * + 61
----
4007

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7820
SELECT - CAST( + + 15 AS SIGNED ) + + COUNT( * ) - 78 + 37
----
-55

skipif mysql # not compatible
query I rowsort label-7820
SELECT - CAST ( + + 15 AS INTEGER ) + + COUNT ( * ) - 78 + 37
----
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-7821
SELECT 52 AS col0, COUNT( * ) AS col0
----
52
1

skipif mysql # not compatible
query II rowsort label-7821
SELECT 52 AS col0, COUNT ( * ) AS col0
----
52
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7822
SELECT ALL - 5 + + ( 68 ) + - 60 AS col2, NULLIF ( COUNT( ALL + - 12 ), - 44 * COALESCE ( 50, - 49 * - CAST( ( + 35 ) AS SIGNED ), 20 - - + 64 + - AVG ( DISTINCT - 31 ) ) ) * + COUNT( * ) AS col2
----
3
1

skipif mysql # not compatible
query II rowsort label-7822
SELECT ALL - 5 + + ( 68 ) + - 60 AS col2, NULLIF ( COUNT ( ALL + - 12 ), - 44 * COALESCE ( 50, - 49 * - CAST ( ( + 35 ) AS INTEGER ), 20 - - + 64 + - AVG ( DISTINCT - 31 ) ) ) * + COUNT ( * ) AS col2
----
3
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7823
SELECT 6 / - + CASE + 54 WHEN COUNT( 89 ) THEN + 44 * - - 73 * + + 85 * + COUNT( * ) * 18 END - + COUNT( * ) - 30 + - 77 * - MIN( + NULLIF ( + 87, - 46 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7823
SELECT 6 / - + CASE + 54 WHEN COUNT ( 89 ) THEN + 44 * - - 73 * + + 85 * + COUNT ( * ) * 18 END - + COUNT ( * ) - 30 + - 77 * - MIN ( + NULLIF ( + 87, - 46 ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7824
SELECT ALL 96 DIV - - 50 + - + 74
----
-73

skipif mysql # not compatible
query I rowsort label-7824
SELECT ALL 96 / - - 50 + - + 74
----
-73

query I rowsort
SELECT ALL 76 * + 2
----
152

onlyif mysql # aggregate syntax: 
query I rowsort label-7826
SELECT ALL 93 * COUNT( * )
----
93

skipif mysql # not compatible
query I rowsort label-7826
SELECT ALL 93 * COUNT ( * )
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-7827
SELECT + CASE + 85 WHEN - + 12 * - COUNT( * ) + - + 85 + - + 68 THEN - - 59 ELSE - 10 END
----
-10

skipif mysql # not compatible
query I rowsort label-7827
SELECT + CASE + 85 WHEN - + 12 * - COUNT ( * ) + - + 85 + - + 68 THEN - - 59 ELSE - 10 END
----
-10

query I rowsort
SELECT - 70 + + 22 AS col1
----
-48

query I rowsort
SELECT ALL 40 * 56 * + 36 AS col0
----
80640

query I rowsort
SELECT - 46 + 86 AS col0
----
40

query I rowsort
SELECT + 52 - - 76 AS col2
----
128

query I rowsort
SELECT - 63 * + 77 * 86
----
-417186

onlyif mysql # aggregate syntax: 
query I rowsort label-7833
SELECT DISTINCT 75 * + - COUNT( * ) * + - 88 AS col2
----
6600

skipif mysql # not compatible
query I rowsort label-7833
SELECT DISTINCT 75 * + - COUNT ( * ) * + - 88 AS col2
----
6600

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7834
SELECT ALL - - 21 * - - CAST( 52 AS SIGNED ) - + + 45, + CAST( NULL AS DECIMAL ) * + 37 * - + ( + + 1 ) * + 90 + - + 65 * + 6 / + COUNT( * ) col1
----
1047
NULL

skipif mysql # not compatible
query II rowsort label-7834
SELECT ALL - - 21 * - - CAST ( 52 AS INTEGER ) - + + 45, + CAST ( NULL AS REAL ) * + 37 * - + ( + + 1 ) * + 90 + - + 65 * + 6 / + COUNT ( * ) col1
----
1047
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7835
SELECT ALL - 40 * + COUNT( * ) DIV + 65
----
0

skipif mysql # not compatible
query I rowsort label-7835
SELECT ALL - 40 * + COUNT ( * ) / + 65
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7836
SELECT + + COUNT( * ) DIV + ( 28 ) * 37 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7836
SELECT + + COUNT ( * ) / + ( 28 ) * 37 AS col1
----
0

query II rowsort
SELECT + 4 AS col1, 37 + - 84
----
4
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-7838
SELECT DISTINCT 52 * COUNT( * ) * - 26
----
-1352

skipif mysql # not compatible
query I rowsort label-7838
SELECT DISTINCT 52 * COUNT ( * ) * - 26
----
-1352

query I rowsort
SELECT + + 80 + + 75
----
155

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7840
SELECT SUM( DISTINCT + - CASE - - 37 WHEN - - CAST( NULL AS SIGNED ) THEN - - 91 END ) * CAST( NULL AS SIGNED ) * + 49 * + COUNT( * ) + - + 16 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7840
SELECT SUM ( DISTINCT + - CASE - - 37 WHEN - - CAST ( NULL AS INTEGER ) THEN - - 91 END ) * CAST ( NULL AS INTEGER ) * + 49 * + COUNT ( * ) + - + 16 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7841
SELECT NULLIF ( + CAST( 33 AS SIGNED ), - + 96 )
----
33

skipif mysql # not compatible
query I rowsort label-7841
SELECT NULLIF ( + CAST ( 33 AS INTEGER ), - + 96 )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-7842
SELECT + 23 * + - 52 + COUNT( * )
----
-1195

skipif mysql # not compatible
query I rowsort label-7842
SELECT + 23 * + - 52 + COUNT ( * )
----
-1195

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7843
SELECT - CASE + 93 WHEN 73 THEN - - CAST( NULL AS SIGNED ) WHEN - 83 THEN + COALESCE ( - 94, + + NULLIF ( + 69, - 2 ), 38 + - 80 ) + - COALESCE ( + ( + 29 ), - + ( - + 60 ) ) ELSE - + 53 END * - 84 * - COUNT( * ) + - 5 * + 51 * COUNT( * )
----
4197

skipif mysql # not compatible
query I rowsort label-7843
SELECT - CASE + 93 WHEN 73 THEN - - CAST ( NULL AS INTEGER ) WHEN - 83 THEN + COALESCE ( - 94, + + NULLIF ( + 69, - 2 ), 38 + - 80 ) + - COALESCE ( + ( + 29 ), - + ( - + 60 ) ) ELSE - + 53 END * - 84 * - COUNT ( * ) + - 5 * + 51 * COUNT ( * )
----
4197

query I rowsort
SELECT + - ( - - 82 ) AS col1
----
-82

onlyif mysql # aggregate syntax: 
query II rowsort label-7845
SELECT - COUNT( * ) AS col0, - COUNT( * ) + - 3
----
-1
-4

skipif mysql # not compatible
query II rowsort label-7845
SELECT - COUNT ( * ) AS col0, - COUNT ( * ) + - 3
----
-1
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-7846
SELECT + 27 AS col2, + CASE - + 7 WHEN AVG ( DISTINCT - 81 ) THEN + 35 WHEN - 77 THEN - 25 + 55 + - 58 ELSE - 40 END + COUNT( * ) - 91 col0
----
27
-130

skipif mysql # not compatible
query II rowsort label-7846
SELECT + 27 AS col2, + CASE - + 7 WHEN AVG ( DISTINCT - 81 ) THEN + 35 WHEN - 77 THEN - 25 + 55 + - 58 ELSE - 40 END + COUNT ( * ) - 91 col0
----
27
-130

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7847
SELECT - 50 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7847
SELECT - 50 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 33 * 40 * 30 - 28
----
39572

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7849
SELECT ALL - - CAST( 2 AS SIGNED ) * + - 13 + - CAST( - 64 AS SIGNED )
----
38

skipif mysql # not compatible
query I rowsort label-7849
SELECT ALL - - CAST ( 2 AS INTEGER ) * + - 13 + - CAST ( - 64 AS INTEGER )
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7850
SELECT DISTINCT + 47 * - CAST( + 46 AS SIGNED ) * + - 66 - 23 + 64 + + + COUNT( * ) AS col1
----
142734

skipif mysql # not compatible
query I rowsort label-7850
SELECT DISTINCT + 47 * - CAST ( + 46 AS INTEGER ) * + - 66 - 23 + 64 + + + COUNT ( * ) AS col1
----
142734

query I rowsort
SELECT DISTINCT - 0 * + 64 * + + CASE + + 63 WHEN + - ( - + 44 ) + + - 42 THEN + - 82 END
----
NULL

query I rowsort
SELECT 20 + + 88
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-7853
SELECT ALL - 51 + + 28 + 79 * + + COUNT( * ) * 73 AS col0
----
5744

skipif mysql # not compatible
query I rowsort label-7853
SELECT ALL - 51 + + 28 + 79 * + + COUNT ( * ) * 73 AS col0
----
5744

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7854
SELECT DISTINCT + 40 * - 90 + COUNT( * ) DIV + 74 * - 43 AS col0
----
-3600

skipif mysql # not compatible
query I rowsort label-7854
SELECT DISTINCT + 40 * - 90 + COUNT ( * ) / + 74 * - 43 AS col0
----
-3600

query I rowsort
SELECT ALL 78 + - ( - + 89 )
----
167

onlyif mysql # aggregate syntax: 
query I rowsort label-7856
SELECT 4 - - 85 + + - COUNT( * ) * - + ( - 21 ) * + 96 + + 85
----
-1842

skipif mysql # not compatible
query I rowsort label-7856
SELECT 4 - - 85 + + - COUNT ( * ) * - + ( - 21 ) * + 96 + + 85
----
-1842

onlyif mysql # aggregate syntax: 
query I rowsort label-7857
SELECT SUM( - 7 ) + NULLIF ( + + 99, + 62 ) * + 4
----
389

skipif mysql # not compatible
query I rowsort label-7857
SELECT SUM ( - 7 ) + NULLIF ( + + 99, + 62 ) * + 4
----
389

query I rowsort
SELECT 13 - 45 + - 35 * - 66
----
2278

query II rowsort
SELECT 23 + + 82 - 59 AS col2, + 27 AS col2
----
46
27

onlyif mysql # aggregate syntax: 
query I rowsort label-7860
SELECT DISTINCT - COUNT( * ) * - COALESCE ( + 58, 89 * - 53 * - 6 )
----
58

skipif mysql # not compatible
query I rowsort label-7860
SELECT DISTINCT - COUNT ( * ) * - COALESCE ( + 58, 89 * - 53 * - 6 )
----
58

query I rowsort
SELECT 13 + 44 AS col2
----
57

query I rowsort
SELECT ALL - 74 + - 13 AS col1
----
-87

query I rowsort
SELECT 28 * - - 50
----
1400

query I rowsort
SELECT DISTINCT + 2 * - - 74 AS col0
----
148

query II rowsort
SELECT ALL - NULLIF ( + 15, 22 * - 42 + + - ( - - CASE 19 WHEN 37 THEN - 63 * + 16 ELSE NULL END ) + + - 33 + COALESCE ( + 60, - 74, - - 25 * - - 2 ) ) * + - 92, 24 AS col0
----
1380
24

query II rowsort
SELECT 2 * - - 86 AS col1, 43 * + 35 AS col0
----
172
1505

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7867
SELECT 48 / + MAX( - - 56 ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7867
SELECT 48 / + MAX ( - - 56 ) + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 28 * 96 * - 9
----
-24192

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7869
SELECT 63 * 59, 49 + - COUNT( * ) DIV - - SUM( DISTINCT - + 90 ) AS col1
----
3717
49

skipif mysql # not compatible
query II rowsort label-7869
SELECT 63 * 59, 49 + - COUNT ( * ) / - - SUM ( DISTINCT - + 90 ) AS col1
----
3717
49

query I rowsort
SELECT DISTINCT - 56 * 29
----
-1624

query I rowsort
SELECT 74 * 58 col2
----
4292

onlyif mysql # aggregate syntax: 
query I rowsort label-7872
SELECT + MAX( + + 49 )
----
49

skipif mysql # not compatible
query I rowsort label-7872
SELECT + MAX ( + + 49 )
----
49

query II rowsort
SELECT + ( + 72 ) AS col0, + 41 AS col2
----
72
41

onlyif mysql # aggregate syntax: 
query I rowsort label-7874
SELECT ALL COUNT( * ) + + - 35 - - + 52 AS col1
----
18

skipif mysql # not compatible
query I rowsort label-7874
SELECT ALL COUNT ( * ) + + - 35 - - + 52 AS col1
----
18

query I rowsort
SELECT DISTINCT + - 31 * - 82
----
2542

onlyif mysql # aggregate syntax: 
query I rowsort label-7876
SELECT ALL 27 + + + 98 * 20 * 20 - - + COUNT( 34 ) AS col1
----
39228

skipif mysql # not compatible
query I rowsort label-7876
SELECT ALL 27 + + + 98 * 20 * 20 - - + COUNT ( 34 ) AS col1
----
39228

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7877
SELECT 43 + + + CAST( + 49 AS SIGNED ) * 58 - + + 80 AS col2
----
2805

skipif mysql # not compatible
query I rowsort label-7877
SELECT 43 + + + CAST ( + 49 AS INTEGER ) * 58 - + + 80 AS col2
----
2805

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7878
SELECT + - 71 * + 78 + + - 67 + + - 33 - + COALESCE ( - - 47, - - 69, - ( - + 35 ) ) + - 86 + + - 27 + COUNT( * ) DIV - COUNT( * ) + 24 * COUNT( * ) * - + 16 + - 94 - + 66 + + 51 * + - COUNT( * ) - + - ( - 23 ) * - 81 * + 49
----
84893

skipif mysql # not compatible
query I rowsort label-7878
SELECT + - 71 * + 78 + + - 67 + + - 33 - + COALESCE ( - - 47, - - 69, - ( - + 35 ) ) + - 86 + + - 27 + COUNT ( * ) / - COUNT ( * ) + 24 * COUNT ( * ) * - + 16 + - 94 - + 66 + + 51 * + - COUNT ( * ) - + - ( - 23 ) * - 81 * + 49
----
84893

onlyif mysql # aggregate syntax: 
query I rowsort label-7879
SELECT DISTINCT + MIN( ALL 7 ) + - 34 + 56 col0
----
29

skipif mysql # not compatible
query I rowsort label-7879
SELECT DISTINCT + MIN ( ALL 7 ) + - 34 + 56 col0
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7880
SELECT ALL - CAST( NULL AS SIGNED ) + - - 4 - 27 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7880
SELECT ALL - CAST ( NULL AS INTEGER ) + - - 4 - 27 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7881
SELECT COUNT( * ) * - 17 + - + ( - CAST( NULL AS SIGNED ) ) + + + 40 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7881
SELECT COUNT ( * ) * - 17 + - + ( - CAST ( NULL AS INTEGER ) ) + + + 40 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7882
SELECT - 67 * 11 + - 15 - + 0 + + 35 / 12 * - - 14 * - CAST( NULL AS SIGNED ) * - 62 * + 60 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7882
SELECT - 67 * 11 + - 15 - + 0 + + 35 / 12 * - - 14 * - CAST ( NULL AS INTEGER ) * - 62 * + 60 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7883
SELECT CAST( NULL AS SIGNED ) + 63 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7883
SELECT CAST ( NULL AS INTEGER ) + 63 AS col0
----
NULL

query II rowsort
SELECT - 36 AS col0, - 35 + + 75 AS col1
----
-36
40

query I rowsort
SELECT ALL - 15 * 22 * - 65 AS col0
----
21450

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7886
SELECT COUNT( * ) * CAST( 48 AS SIGNED )
----
48

skipif mysql # not compatible
query I rowsort label-7886
SELECT COUNT ( * ) * CAST ( 48 AS INTEGER )
----
48

query I rowsort
SELECT ALL - 6 * + - 80 * 75 AS col0
----
36000

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7888
SELECT COUNT( * ) - + 87 * + 64 + COALESCE ( + 16, - - COUNT( DISTINCT 63 ) + - SUM( 91 ) DIV + COUNT( * ) ) + - 49 DIV + - 61 + + 97 + - 70 AS col1
----
-5524

skipif mysql # not compatible
query I rowsort label-7888
SELECT COUNT ( * ) - + 87 * + 64 + COALESCE ( + 16, - - COUNT ( DISTINCT 63 ) + - SUM ( 91 ) / + COUNT ( * ) ) + - 49 / + - 61 + + 97 + - 70 AS col1
----
-5524

query I rowsort
SELECT 38 * - + 29 * - 50 AS col1
----
55100

query I rowsort
SELECT 12 + - ( 26 )
----
-14

query II rowsort
SELECT ALL 13 AS col0, ( 24 )
----
13
24

query II rowsort
SELECT ALL 64 AS col2, 95
----
64
95

onlyif mysql # aggregate syntax: 
query I rowsort label-7893
SELECT - MAX( - 48 )
----
48

skipif mysql # not compatible
query I rowsort label-7893
SELECT - MAX ( - 48 )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-7894
SELECT 37 - + 94 - + COUNT( * ) * + 27 AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-7894
SELECT 37 - + 94 - + COUNT ( * ) * + 27 AS col0
----
-84

query I rowsort
SELECT ALL + 53 * 15 AS col2
----
795

query I rowsort
SELECT 47 - 82
----
-35

query I rowsort
SELECT ALL + - 1 * + 91 AS col1
----
-91

query I rowsort
SELECT ALL - 27 * + 93 AS col0
----
-2511

query I rowsort
SELECT 9 * - + 5
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-7900
SELECT ALL + 75 * 94 * + ( COUNT( DISTINCT - + 10 ) ) + 78 + + 57 AS col0
----
7185

skipif mysql # not compatible
query I rowsort label-7900
SELECT ALL + 75 * 94 * + ( COUNT ( DISTINCT - + 10 ) ) + 78 + + 57 AS col0
----
7185

onlyif mysql # DIV for integer division: 
query I rowsort label-7901
SELECT 42 DIV 22 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7901
SELECT 42 / 22 AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7902
SELECT 1 - + CASE - NULLIF ( - - SUM( ALL + - CAST( + 56 AS SIGNED ) ), - 47 ) WHEN - 74 THEN - 78 * + 78 + + - NULLIF ( + 30, NULLIF ( 57, + COUNT( ALL - + 35 ) * 51 * 46 ) + + - ( - 83 ) ) ELSE - COUNT( * ) * - SUM( - + 9 ) - - 53 END
----
-43

skipif mysql # not compatible
query I rowsort label-7902
SELECT 1 - + CASE - NULLIF ( - - SUM ( ALL + - CAST ( + 56 AS INTEGER ) ), - 47 ) WHEN - 74 THEN - 78 * + 78 + + - NULLIF ( + 30, NULLIF ( 57, + COUNT ( ALL - + 35 ) * 51 * 46 ) + + - ( - 83 ) ) ELSE - COUNT ( * ) * - SUM ( - + 9 ) - - 53 END
----
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-7903
SELECT ALL - MAX( ALL - 99 ) * - 77, 1 AS col2
----
-7623
1

skipif mysql # not compatible
query II rowsort label-7903
SELECT ALL - MAX ( ALL - 99 ) * - 77, 1 AS col2
----
-7623
1

query I rowsort
SELECT 88 * 96
----
8448

onlyif mysql # aggregate syntax: 
query II rowsort label-7905
SELECT + COUNT( * ) - + 84 * COALESCE ( 0, + ( - + NULLIF ( - + 40, + + 9 + - 23 ) ) + + 53 ) * + - MIN( - - 81 ) - + 78 + 42 + - 33 - + + 90 AS col0, 27
----
-158
27

skipif mysql # not compatible
query II rowsort label-7905
SELECT + COUNT ( * ) - + 84 * COALESCE ( 0, + ( - + NULLIF ( - + 40, + + 9 + - 23 ) ) + + 53 ) * + - MIN ( - - 81 ) - + 78 + 42 + - 33 - + + 90 AS col0, 27
----
-158
27

query I rowsort
SELECT ALL + - 29 * + + 11 AS col0
----
-319

onlyif mysql # aggregate syntax: 
query II rowsort label-7907
SELECT - 85 + CASE + 60 WHEN - 29 * + - 72 + - 40 THEN + - 23 + - 48 END col0, COUNT( * ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-7907
SELECT - 85 + CASE + 60 WHEN - 29 * + - 72 + - 40 THEN + - 23 + - 48 END col0, COUNT ( * ) AS col2
----
NULL
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7908
SELECT + COUNT( * ) AS col0, + SUM( - - 19 ) AS col2
----
1
19

skipif mysql # not compatible
query II rowsort label-7908
SELECT + COUNT ( * ) AS col0, + SUM ( - - 19 ) AS col2
----
1
19

query I rowsort
SELECT ALL - 14 + - + 79 + 69 AS col1
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7910
SELECT ALL + 51 * 95 - COALESCE ( + - CAST( + 35 AS SIGNED ), + + 54 ) + + + 61 * - - 18 + - 88
----
5890

skipif mysql # not compatible
query I rowsort label-7910
SELECT ALL + 51 * 95 - COALESCE ( + - CAST ( + 35 AS INTEGER ), + + 54 ) + + + 61 * - - 18 + - 88
----
5890

query I rowsort
SELECT + ( - CASE + + 22 WHEN - 32 THEN NULL WHEN - + 84 + - 8 THEN + 49 END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7912
SELECT - 61 + COUNT( + 33 ) + 93 AS col2
----
33

skipif mysql # not compatible
query I rowsort label-7912
SELECT - 61 + COUNT ( + 33 ) + 93 AS col2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-7913
SELECT + + SUM( + 69 ) + + 7
----
76

skipif mysql # not compatible
query I rowsort label-7913
SELECT + + SUM ( + 69 ) + + 7
----
76

query I rowsort
SELECT ALL + - 54 * + + 7 AS col1
----
-378

onlyif mysql # aggregate syntax: 
query II rowsort label-7915
SELECT - MAX( - 11 ) AS col2, 21 - + ( - 29 ) AS col1
----
11
50

skipif mysql # not compatible
query II rowsort label-7915
SELECT - MAX ( - 11 ) AS col2, 21 - + ( - 29 ) AS col1
----
11
50

query I rowsort
SELECT - 30 + + + 30 - 5 AS col2
----
-5

query I rowsort
SELECT DISTINCT - 74 - - + 66 * + 99 - + 62 * - 81 col0
----
11482

onlyif mysql # aggregate syntax: 
query I rowsort label-7918
SELECT ALL + COUNT( * ) * - MAX( ALL + - 32 ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-7918
SELECT ALL + COUNT ( * ) * - MAX ( ALL + - 32 ) AS col0
----
32

query I rowsort
SELECT DISTINCT CASE - 86 WHEN 14 * 79 THEN + 31 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7920
SELECT + MAX( ALL ( - 67 ) ) * - - 36 * + 17 AS col0
----
-41004

skipif mysql # not compatible
query I rowsort label-7920
SELECT + MAX ( ALL ( - 67 ) ) * - - 36 * + 17 AS col0
----
-41004

onlyif mysql # aggregate syntax: 
query I rowsort label-7921
SELECT - 70 + + - COUNT( * ) + + 44 + 89 - - + 5 + + 62 + - - 47 AS col2
----
176

skipif mysql # not compatible
query I rowsort label-7921
SELECT - 70 + + - COUNT ( * ) + + 44 + 89 - - + 5 + + 62 + - - 47 AS col2
----
176

query I rowsort
SELECT + 76 - - - 12 AS col1
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-7923
SELECT DISTINCT 82 DIV - ( + - 75 )
----
1

skipif mysql # not compatible
query I rowsort label-7923
SELECT DISTINCT 82 / - ( + - 75 )
----
1

query I rowsort
SELECT - 47 + - 84
----
-131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7925
SELECT + 52 + CAST( - + 77 AS SIGNED ) + + CAST( NULL AS SIGNED ) + - + COALESCE ( 9, + 8 * + - 86 - + 44, - + COUNT( * ) ) / + 49 * MAX( - 84 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7925
SELECT + 52 + CAST ( - + 77 AS INTEGER ) + + CAST ( NULL AS INTEGER ) + - + COALESCE ( 9, + 8 * + - 86 - + 44, - + COUNT ( * ) ) / + 49 * MAX ( - 84 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7926
SELECT ALL 17 DIV - - 12
----
1

skipif mysql # not compatible
query I rowsort label-7926
SELECT ALL 17 / - - 12
----
1

query I rowsort
SELECT + 29 + - 37 AS col0
----
-8

query I rowsort
SELECT + 99 * - + 28 AS col1
----
-2772

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7929
SELECT + 17 + COALESCE ( + - 54, - 61 * - 96 DIV + + MIN( DISTINCT - + 28 ) + + 19 + - 4 * + + 96 + 22 - - 45 + - 38 * + 9 ) col1, 51 * + CAST( + 57 AS SIGNED ) + MIN( NULLIF ( - - ( - 31 ), - 14 + 20 - - + 48 * 46 + - 79 ) )
----
-37
2876

skipif mysql # not compatible
query II rowsort label-7929
SELECT + 17 + COALESCE ( + - 54, - 61 * - 96 / + + MIN ( DISTINCT - + 28 ) + + 19 + - 4 * + + 96 + 22 - - 45 + - 38 * + 9 ) col1, 51 * + CAST ( + 57 AS INTEGER ) + MIN ( NULLIF ( - - ( - 31 ), - 14 + 20 - - + 48 * 46 + - 79 ) )
----
-37
2876

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7930
SELECT + 93 + - 70 * - - ( 64 ) + - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7930
SELECT + 93 + - 70 * - - ( 64 ) + - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7931
SELECT ALL MAX( DISTINCT - 98 ) AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-7931
SELECT ALL MAX ( DISTINCT - 98 ) AS col2
----
-98

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7932
SELECT + CASE + 39 WHEN - 77 + + - 87 THEN - - CAST( NULL AS DECIMAL ) WHEN + 86 THEN NULL ELSE ( - + 74 ) + + - 67 * - CASE + 72 WHEN + + 34 / 43 * - - 33 - 78 THEN + 34 END + + 74 END + - 69
----
NULL

skipif mysql # not compatible
query I rowsort label-7932
SELECT + CASE + 39 WHEN - 77 + + - 87 THEN - - CAST ( NULL AS REAL ) WHEN + 86 THEN NULL ELSE ( - + 74 ) + + - 67 * - CASE + 72 WHEN + + 34 / 43 * - - 33 - 78 THEN + 34 END + + 74 END + - 69
----
NULL

query I rowsort
SELECT ALL ( 67 ) * - + 45 AS col0
----
-3015

onlyif mysql # aggregate syntax: 
query I rowsort label-7934
SELECT + - MAX( DISTINCT + 56 ) col2
----
-56

skipif mysql # not compatible
query I rowsort label-7934
SELECT + - MAX ( DISTINCT + 56 ) col2
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-7935
SELECT ALL COUNT( * ) * ( 8 ) + 60
----
68

skipif mysql # not compatible
query I rowsort label-7935
SELECT ALL COUNT ( * ) * ( 8 ) + 60
----
68

query I rowsort
SELECT + + 40 * + 94 AS col2
----
3760

query I rowsort
SELECT ALL + + COALESCE ( - 40, - + 81 ) AS col2
----
-40

onlyif mysql # aggregate syntax: 
query III rowsort label-7938
SELECT + COUNT( 33 ) * - 65 + - 29 + - + 6 * + 12 + 53 + + + 14 * - 8 - + 60 AS col1, 1 * - 0 AS col1, + CASE 60 WHEN + 91 THEN NULL ELSE + - 8 END * - 68 AS col1
----
-285
0
544

skipif mysql # not compatible
query III rowsort label-7938
SELECT + COUNT ( 33 ) * - 65 + - 29 + - + 6 * + 12 + 53 + + + 14 * - 8 - + 60 AS col1, 1 * - 0 AS col1, + CASE 60 WHEN + 91 THEN NULL ELSE + - 8 END * - 68 AS col1
----
-285
0
544

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7939
SELECT ALL - COUNT( * ) * + 18 * - 73 + - CASE + - ( - + 18 ) WHEN + - COUNT( * ) THEN + 46 / + COALESCE ( 30, + 70 * - 33, + - CAST( NULL AS DECIMAL ) ) END * + 26 + + 99 / + - 89
----
NULL

skipif mysql # not compatible
query I rowsort label-7939
SELECT ALL - COUNT ( * ) * + 18 * - 73 + - CASE + - ( - + 18 ) WHEN + - COUNT ( * ) THEN + 46 / + COALESCE ( 30, + 70 * - 33, + - CAST ( NULL AS REAL ) ) END * + 26 + + 99 / + - 89
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7940
SELECT ALL + 99 * - COALESCE ( - + 9, + + 11 ) - - COUNT( * ) + - COUNT( * )
----
891

skipif mysql # not compatible
query I rowsort label-7940
SELECT ALL + 99 * - COALESCE ( - + 9, + + 11 ) - - COUNT ( * ) + - COUNT ( * )
----
891

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7941
SELECT + - 80 * NULLIF ( 87, + 61 * + ( + - 70 ) + CASE - 27 WHEN + - 65 / + 63 * - 35 + + - 42 THEN ( - 68 ) * + + 74 + + CAST( - + 96 AS SIGNED ) - - COUNT( * ) - + 1 WHEN 29 + 5 THEN NULL ELSE - 24 END ), 15 AS col1
----
-6960
15

skipif mysql # not compatible
query II rowsort label-7941
SELECT + - 80 * NULLIF ( 87, + 61 * + ( + - 70 ) + CASE - 27 WHEN + - 65 / + 63 * - 35 + + - 42 THEN ( - 68 ) * + + 74 + + CAST ( - + 96 AS INTEGER ) - - COUNT ( * ) - + 1 WHEN 29 + 5 THEN NULL ELSE - 24 END ), 15 AS col1
----
-6960
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7942
SELECT + COUNT( * ) DIV + 85 + - + 96
----
-96

skipif mysql # not compatible
query I rowsort label-7942
SELECT + COUNT ( * ) / + 85 + - + 96
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-7943
SELECT + - 34 * - 61 + - 73 - + CASE + + COUNT( * ) WHEN - 61 THEN + 77 + - 97 / - SUM( + - 61 ) + - 9 * 23 END + 7 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7943
SELECT + - 34 * - 61 + - 73 - + CASE + + COUNT ( * ) WHEN - 61 THEN + 77 + - 97 / - SUM ( + - 61 ) + - 9 * 23 END + 7 AS col1
----
NULL

query I rowsort
SELECT ALL + + ( + 78 ) * - 83 AS col1
----
-6474

onlyif mysql # DIV for integer division: 
query I rowsort label-7945
SELECT - 14 + - 24 DIV 67 AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-7945
SELECT - 14 + - 24 / 67 AS col0
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-7946
SELECT - 19 DIV 5 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-7946
SELECT - 19 / 5 AS col2
----
-3

query I rowsort
SELECT - 58 * 61 * + - 42
----
148596

onlyif mysql # DIV for integer division: 
query I rowsort label-7948
SELECT - + 8 + - 93 DIV - - ( - 85 ) - + 86 * + 19 AS col0
----
-1641

skipif mysql # not compatible
query I rowsort label-7948
SELECT - + 8 + - 93 / - - ( - 85 ) - + 86 * + 19 AS col0
----
-1641

query I rowsort
SELECT NULLIF ( + 61, - - 3 )
----
61

query I rowsort
SELECT ALL ( 47 ) AS col1
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-7951
SELECT - COUNT( * ), + 33 AS col2
----
-1
33

skipif mysql # not compatible
query II rowsort label-7951
SELECT - COUNT ( * ), + 33 AS col2
----
-1
33

onlyif mysql # aggregate syntax: 
query I rowsort label-7952
SELECT - COUNT( * ) * 55 col2
----
-55

skipif mysql # not compatible
query I rowsort label-7952
SELECT - COUNT ( * ) * 55 col2
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-7953
SELECT ALL + MAX( - 59 ) * + - 16
----
944

skipif mysql # not compatible
query I rowsort label-7953
SELECT ALL + MAX ( - 59 ) * + - 16
----
944

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7954
SELECT DISTINCT - ( + + 54 ) * 59 AS col0, + CAST( NULL AS SIGNED ) col0
----
-3186
NULL

skipif mysql # not compatible
query II rowsort label-7954
SELECT DISTINCT - ( + + 54 ) * 59 AS col0, + CAST ( NULL AS INTEGER ) col0
----
-3186
NULL

query I rowsort
SELECT - 99 * + 33
----
-3267

query III rowsort
SELECT DISTINCT 60, + 31 + + - 99 AS col2, + ( - 32 ) * - + 53 AS col1
----
60
-68
1696

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7957
SELECT ALL - ( - - 47 ) + + + 66 * CASE - COUNT( * ) WHEN - + 31 THEN 63 WHEN - AVG ( ALL - - 43 ) * + - 57 * - COUNT( * ) * + - 89 THEN NULL WHEN + ( - 75 ) THEN 18 * 13 / - ( + 10 ) + - - 15 * + 36 ELSE NULL END * + CAST( NULL AS SIGNED ) + + ( + CAST( MAX( - CAST( - + 94 AS SIGNED ) ) AS SIGNED ) ) + - 98 * - 18 + - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7957
SELECT ALL - ( - - 47 ) + + + 66 * CASE - COUNT ( * ) WHEN - + 31 THEN 63 WHEN - AVG ( ALL - - 43 ) * + - 57 * - COUNT ( * ) * + - 89 THEN NULL WHEN + ( - 75 ) THEN 18 * 13 / - ( + 10 ) + - - 15 * + 36 ELSE NULL END * + CAST ( NULL AS INTEGER ) + + ( + CAST ( MAX ( - CAST ( - + 94 AS INTEGER ) ) AS INTEGER ) ) + - 98 * - 18 + - COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7958
SELECT - 81 - ( - 68 ), 99 * + 9 * - + 22 - + 46 + - 32 DIV - COUNT( * ) AS col0
----
-13
-19616

skipif mysql # not compatible
query II rowsort label-7958
SELECT - 81 - ( - 68 ), 99 * + 9 * - + 22 - + 46 + - 32 / - COUNT ( * ) AS col0
----
-13
-19616

query I rowsort
SELECT - 57 + - + 66 AS col0
----
-123

query I rowsort
SELECT ALL 27 + 41 col0
----
68

query I rowsort
SELECT - 33 + 36 AS col2
----
3

query I rowsort
SELECT + 39 * - 74
----
-2886

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7963
SELECT ALL 21 + + CASE + MIN( - NULLIF ( 94, - 54 ) ) WHEN - 58 / - CAST( NULL AS SIGNED ) THEN NULL ELSE - 22 END * + 24 AS col1
----
-507

skipif mysql # not compatible
query I rowsort label-7963
SELECT ALL 21 + + CASE + MIN ( - NULLIF ( 94, - 54 ) ) WHEN - 58 / - CAST ( NULL AS INTEGER ) THEN NULL ELSE - 22 END * + 24 AS col1
----
-507

onlyif mysql # aggregate syntax: 
query I rowsort label-7964
SELECT + COUNT( * ) - COUNT( * ) * + 73 AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-7964
SELECT + COUNT ( * ) - COUNT ( * ) * + 73 AS col0
----
-72

query I rowsort
SELECT DISTINCT 26 + + 25 AS col2
----
51

query I rowsort
SELECT + 96 * - 83 + 22 AS col2
----
-7946

query I rowsort
SELECT ALL 61 + + 74
----
135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7968
SELECT DISTINCT 20 * ( + CASE + CAST( NULL AS SIGNED ) WHEN + 84 / 38 THEN + COUNT( * ) WHEN 31 THEN 36 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-7968
SELECT DISTINCT 20 * ( + CASE + CAST ( NULL AS INTEGER ) WHEN + 84 / 38 THEN + COUNT ( * ) WHEN 31 THEN 36 END )
----
NULL

query I rowsort
SELECT 7 * 36 AS col2
----
252

query I rowsort
SELECT + 33 * + 91 + 93
----
3096

onlyif mysql # aggregate syntax: 
query I rowsort label-7971
SELECT 16 - COUNT( * ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-7971
SELECT 16 - COUNT ( * ) AS col0
----
15

query I rowsort
SELECT 28 * - 79 + 75
----
-2137

query I rowsort
SELECT ( ( 20 ) ) + 45 AS col0
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7974
SELECT ALL - CASE + CAST( 48 AS SIGNED ) WHEN + 74 THEN + 92 WHEN ( 30 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7974
SELECT ALL - CASE + CAST ( 48 AS INTEGER ) WHEN + 74 THEN + 92 WHEN ( 30 ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7975
SELECT 16 + + NULLIF ( + 33, + CASE - 75 WHEN + 99 THEN NULLIF ( - 68, + COUNT( * ) ) + + 98 END )
----
49

skipif mysql # not compatible
query I rowsort label-7975
SELECT 16 + + NULLIF ( + 33, + CASE - 75 WHEN + 99 THEN NULLIF ( - 68, + COUNT ( * ) ) + + 98 END )
----
49

query I rowsort
SELECT 22 * - 89 AS col0
----
-1958

onlyif mysql # aggregate syntax: 
query I rowsort label-7977
SELECT ALL - MIN( 31 )
----
-31

skipif mysql # not compatible
query I rowsort label-7977
SELECT ALL - MIN ( 31 )
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-7978
SELECT ( - COUNT( DISTINCT + ( 38 ) ) ) * - COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7978
SELECT ( - COUNT ( DISTINCT + ( 38 ) ) ) * - COUNT ( * ) AS col2
----
1

query I rowsort
SELECT - ( + 53 ) * ( - 98 ) + + 82
----
5276

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7980
SELECT 41 DIV COUNT( 42 * - 52 )
----
41

skipif mysql # not compatible
query I rowsort label-7980
SELECT 41 / COUNT ( 42 * - 52 )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-7981
SELECT ALL - MIN( - 92 ) * COUNT( * ) AS col1
----
92

skipif mysql # not compatible
query I rowsort label-7981
SELECT ALL - MIN ( - 92 ) * COUNT ( * ) AS col1
----
92

query I rowsort
SELECT DISTINCT + 2 * 93 AS col0
----
186

query I rowsort
SELECT 51 + 33 AS col2
----
84

query I rowsort
SELECT DISTINCT 47 * 89 AS col1
----
4183

query I rowsort
SELECT ALL - 57 + - 42
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7986
SELECT NULLIF ( - 49, - 10 * + ( + 60 ) + 96 * 64 ) * COUNT( * ) + 52
----
3

skipif mysql # not compatible
query I rowsort label-7986
SELECT NULLIF ( - 49, - 10 * + ( + 60 ) + 96 * 64 ) * COUNT ( * ) + 52
----
3

query I rowsort
SELECT 57 + - 78 * 1
----
-21

query I rowsort
SELECT ( + 63 ) + 95 col1
----
158

query I rowsort
SELECT 66 + 23 * - 54
----
-1176

query I rowsort
SELECT 37 + - 40
----
-3

query I rowsort
SELECT DISTINCT - 40 + 64 col1
----
24

query I rowsort
SELECT + 71 + + 60
----
131

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7993
SELECT ALL - + CASE 7 WHEN - COALESCE ( 37, 10 ) THEN + 57 * + 50 ELSE 47 END DIV - MIN( + 47 - 0 )
----
1

skipif mysql # not compatible
query I rowsort label-7993
SELECT ALL - + CASE 7 WHEN - COALESCE ( 37, 10 ) THEN + 57 * + 50 ELSE 47 END / - MIN ( + 47 - 0 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7994
SELECT ALL + CAST( 15 AS SIGNED )
----
15

skipif mysql # not compatible
query I rowsort label-7994
SELECT ALL + CAST ( 15 AS INTEGER )
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7995
SELECT 86 + CASE + 90 WHEN 79 * - COUNT( * ) + - 43 THEN 54 * - 94 - - 96 * ( 46 ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7995
SELECT 86 + CASE + 90 WHEN 79 * - COUNT ( * ) + - 43 THEN 54 * - 94 - - 96 * ( 46 ) ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7996
SELECT + NULLIF ( - 1, + COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-7996
SELECT + NULLIF ( - 1, + COUNT ( * ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7997
SELECT ALL + MAX( 3 ) col2
----
3

skipif mysql # not compatible
query I rowsort label-7997
SELECT ALL + MAX ( 3 ) col2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-7998
SELECT + 4 DIV - 20 col1
----
0

skipif mysql # not compatible
query I rowsort label-7998
SELECT + 4 / - 20 col1
----
0

query I rowsort
SELECT + 13 * 26
----
338

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8000
SELECT DISTINCT 53 DIV COUNT( * ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-8000
SELECT DISTINCT 53 / COUNT ( * ) AS col2
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8001
SELECT + CAST( 27 AS SIGNED ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-8001
SELECT + CAST ( 27 AS INTEGER ) AS col2
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-8002
SELECT ALL - ( COUNT( * ) ) - 3 * 91 AS col0
----
-274

skipif mysql # not compatible
query I rowsort label-8002
SELECT ALL - ( COUNT ( * ) ) - 3 * 91 AS col0
----
-274

query I rowsort
SELECT ALL ( + 38 ) * + COALESCE ( - 88, 9 ) AS col0
----
-3344

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8004
SELECT - 26 * + 34 + 76 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8004
SELECT - 26 * + 34 + 76 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 32 * - + COALESCE ( 3, 19 + 66, 96 ) AS col1
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8006
SELECT ALL 66 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8006
SELECT ALL 66 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8007
SELECT - MAX( - 7 ) * - 87 - + 98
----
-707

skipif mysql # not compatible
query I rowsort label-8007
SELECT - MAX ( - 7 ) * - 87 - + 98
----
-707

onlyif mysql # aggregate syntax: 
query I rowsort label-8008
SELECT DISTINCT COUNT( * ) + - 43
----
-42

skipif mysql # not compatible
query I rowsort label-8008
SELECT DISTINCT COUNT ( * ) + - 43
----
-42

query I rowsort
SELECT 22 * + 79 AS col2
----
1738

onlyif mysql # aggregate syntax: 
query I rowsort label-8010
SELECT 88 * + COUNT( * ) + + 47
----
135

skipif mysql # not compatible
query I rowsort label-8010
SELECT 88 * + COUNT ( * ) + + 47
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-8011
SELECT ALL - COUNT( DISTINCT + - 40 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-8011
SELECT ALL - COUNT ( DISTINCT + - 40 ) col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8012
SELECT DISTINCT SUM( ALL 37 ) + - ( - CASE 37 WHEN ( 85 ) - - 67 THEN 30 WHEN COUNT( * ) THEN NULL END ) / 54
----
NULL

skipif mysql # not compatible
query I rowsort label-8012
SELECT DISTINCT SUM ( ALL 37 ) + - ( - CASE 37 WHEN ( 85 ) - - 67 THEN 30 WHEN COUNT ( * ) THEN NULL END ) / 54
----
NULL

query I rowsort
SELECT ALL + 25 + - 62
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-8014
SELECT COALESCE ( + 92, COUNT( * ) * + 21 ) * - 58 AS col1
----
-5336

skipif mysql # not compatible
query I rowsort label-8014
SELECT COALESCE ( + 92, COUNT ( * ) * + 21 ) * - 58 AS col1
----
-5336

onlyif mysql # aggregate syntax: 
query I rowsort label-8015
SELECT ALL CASE - - 31 WHEN + 84 THEN MAX( - 30 ) + 79 ELSE 86 END + 7
----
93

skipif mysql # not compatible
query I rowsort label-8015
SELECT ALL CASE - - 31 WHEN + 84 THEN MAX ( - 30 ) + 79 ELSE 86 END + 7
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-8016
SELECT COALESCE ( + + 39, + 69 ) DIV 53
----
0

skipif mysql # not compatible
query I rowsort label-8016
SELECT COALESCE ( + + 39, + 69 ) / 53
----
0

query I rowsort
SELECT 73 * + + 6
----
438

onlyif mysql # aggregate syntax: 
query I rowsort label-8018
SELECT DISTINCT 87 + ( - SUM( 33 ) )
----
54

skipif mysql # not compatible
query I rowsort label-8018
SELECT DISTINCT 87 + ( - SUM ( 33 ) )
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8019
SELECT ALL - 53 + COUNT( * ) AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-8019
SELECT ALL - 53 + COUNT ( * ) AS col2
----
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-8020
SELECT 92 DIV - 21
----
-4

skipif mysql # not compatible
query I rowsort label-8020
SELECT 92 / - 21
----
-4

query I rowsort
SELECT ( - NULLIF ( 21, - 58 / 44 ) ) - 91
----
-112

onlyif mysql # aggregate syntax: 
query I rowsort label-8022
SELECT DISTINCT + ( + - COUNT( * ) ) + 61 AS col0
----
60

skipif mysql # not compatible
query I rowsort label-8022
SELECT DISTINCT + ( + - COUNT ( * ) ) + 61 AS col0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8023
SELECT DISTINCT - COUNT( * ) - + 76
----
-77

skipif mysql # not compatible
query I rowsort label-8023
SELECT DISTINCT - COUNT ( * ) - + 76
----
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8024
SELECT + + 67 + - 6 DIV - COALESCE ( COUNT( * ) + 99, - 67 + 71 ) AS col2
----
67

skipif mysql # not compatible
query I rowsort label-8024
SELECT + + 67 + - 6 / - COALESCE ( COUNT ( * ) + 99, - 67 + 71 ) AS col2
----
67

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8025
SELECT - + SUM( - + ( 83 ) ) * CASE 56 * - CAST( NULL AS DECIMAL ) WHEN - 86 THEN - ( 77 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8025
SELECT - + SUM ( - + ( 83 ) ) * CASE 56 * - CAST ( NULL AS REAL ) WHEN - 86 THEN - ( 77 ) END AS col1
----
NULL

query I rowsort
SELECT ALL NULLIF ( - 62, 0 - 29 )
----
-62

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8027
SELECT + - CAST( - COALESCE ( 16, 2 * + 0 ) AS DECIMAL ) + 63 * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8027
SELECT + - CAST ( - COALESCE ( 16, 2 * + 0 ) AS REAL ) + 63 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8028
SELECT - + COALESCE ( + ( 76 ), + 46 * COUNT( * ) ) AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-8028
SELECT - + COALESCE ( + ( 76 ), + 46 * COUNT ( * ) ) AS col2
----
-76

query I rowsort
SELECT - + 18 + - - 58
----
40

query I rowsort
SELECT - 11 * 35 - - 89
----
-296

query I rowsort
SELECT - - 43 + - 37
----
6

query I rowsort
SELECT ALL + + ( - 92 ) * + 19
----
-1748

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8033
SELECT - 38 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8033
SELECT - 38 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8034
SELECT - + COUNT( * ) * - 83 col0
----
83

skipif mysql # not compatible
query I rowsort label-8034
SELECT - + COUNT ( * ) * - 83 col0
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8035
SELECT ALL + NULLIF ( ( 80 ), CASE CAST( 29 AS SIGNED ) WHEN 39 + - 32 THEN NULL WHEN + COUNT( * ) * - ( - COUNT( * ) ) THEN COUNT( * ) ELSE 12 END ) AS col0
----
80

skipif mysql # not compatible
query I rowsort label-8035
SELECT ALL + NULLIF ( ( 80 ), CASE CAST ( 29 AS INTEGER ) WHEN 39 + - 32 THEN NULL WHEN + COUNT ( * ) * - ( - COUNT ( * ) ) THEN COUNT ( * ) ELSE 12 END ) AS col0
----
80

query I rowsort
SELECT DISTINCT + + 53 * + 16
----
848

onlyif mysql # DIV for integer division: 
query I rowsort label-8037
SELECT - 36 DIV + - NULLIF ( + 46, 64 * - 70 ) + 98 * - 97 AS col1
----
-9506

skipif mysql # not compatible
query I rowsort label-8037
SELECT - 36 / + - NULLIF ( + 46, 64 * - 70 ) + 98 * - 97 AS col1
----
-9506

onlyif mysql # DIV for integer division: 
query I rowsort label-8038
SELECT + 19 DIV 15 + 72
----
73

skipif mysql # not compatible
query I rowsort label-8038
SELECT + 19 / 15 + 72
----
73

query I rowsort
SELECT - 86 * 14 + - 42 * + 56 AS col2
----
-3556

onlyif mysql # aggregate syntax: 
query I rowsort label-8040
SELECT + COUNT( * ) - 33 * + + 97
----
-3200

skipif mysql # not compatible
query I rowsort label-8040
SELECT + COUNT ( * ) - 33 * + + 97
----
-3200

onlyif mysql # DIV for integer division: 
query I rowsort label-8041
SELECT ALL + 29 DIV 98 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8041
SELECT ALL + 29 / 98 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8042
SELECT COALESCE ( - - 8, + COUNT( * ) )
----
8

skipif mysql # not compatible
query I rowsort label-8042
SELECT COALESCE ( - - 8, + COUNT ( * ) )
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-8043
SELECT + COALESCE ( 21, + 98 ) DIV + 38 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8043
SELECT + COALESCE ( 21, + 98 ) / + 38 AS col0
----
0

query I rowsort
SELECT - 18 * 71 AS col0
----
-1278

onlyif mysql # aggregate syntax: 
query I rowsort label-8045
SELECT DISTINCT - ( + MIN( DISTINCT + 94 ) ) * 38 + + 32
----
-3540

skipif mysql # not compatible
query I rowsort label-8045
SELECT DISTINCT - ( + MIN ( DISTINCT + 94 ) ) * 38 + + 32
----
-3540

onlyif mysql # aggregate syntax: 
query I rowsort label-8046
SELECT + MIN( DISTINCT + 11 ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-8046
SELECT + MIN ( DISTINCT + 11 ) AS col1
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8047
SELECT + 53 + + 88 - COUNT( ALL - 3 )
----
140

skipif mysql # not compatible
query I rowsort label-8047
SELECT + 53 + + 88 - COUNT ( ALL - 3 )
----
140

query I rowsort
SELECT ALL + CASE 68 WHEN - + 51 / 79 THEN + ( + 3 ) - 21 WHEN 59 + - 38 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8049
SELECT CASE + - COUNT( * ) WHEN + 85 THEN NULL WHEN 83 THEN NULL ELSE 40 END AS col1
----
40

skipif mysql # not compatible
query I rowsort label-8049
SELECT CASE + - COUNT ( * ) WHEN + 85 THEN NULL WHEN 83 THEN NULL ELSE 40 END AS col1
----
40

query I rowsort
SELECT - 4 * - - 83 + + 33
----
-299

onlyif mysql # aggregate syntax: 
query I rowsort label-8051
SELECT + COALESCE ( - 21, - COUNT( DISTINCT + ( - 87 ) ) * 41 ) AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-8051
SELECT + COALESCE ( - 21, - COUNT ( DISTINCT + ( - 87 ) ) * 41 ) AS col2
----
-21

query I rowsort
SELECT 58 * - ( 80 ) * 30 + ( - 57 ) AS col1
----
-139257

query I rowsort
SELECT + 64 - - 61
----
125

query I rowsort
SELECT + ( - + 10 ) AS col1
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-8055
SELECT + COUNT( * ) + - - 32
----
33

skipif mysql # not compatible
query I rowsort label-8055
SELECT + COUNT ( * ) + - - 32
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-8056
SELECT ALL 41 * 41 + - 77 + + 67 * + COUNT( 78 ) AS col2
----
1671

skipif mysql # not compatible
query I rowsort label-8056
SELECT ALL 41 * 41 + - 77 + + 67 * + COUNT ( 78 ) AS col2
----
1671

query II rowsort
SELECT ALL + 92, + 7 * 25 AS col0
----
92
175

query I rowsort
SELECT DISTINCT + 63 * + 59 - 8 AS col0
----
3709

query I rowsort
SELECT ALL 78 * - ( - 89 ) - 82 * + 89 col2
----
-356

query I rowsort
SELECT + 51 * 40 + - 89 + + 52 col0
----
2003

onlyif mysql # aggregate syntax: 
query II rowsort label-8061
SELECT DISTINCT 14, + COUNT( * ) * - 80 * + 78 col0
----
14
-6240

skipif mysql # not compatible
query II rowsort label-8061
SELECT DISTINCT 14, + COUNT ( * ) * - 80 * + 78 col0
----
14
-6240

query I rowsort
SELECT DISTINCT + 69 * 19
----
1311

onlyif mysql # aggregate syntax: 
query I rowsort label-8063
SELECT + MIN( ALL + 47 ) * - + 99 AS col0
----
-4653

skipif mysql # not compatible
query I rowsort label-8063
SELECT + MIN ( ALL + 47 ) * - + 99 AS col0
----
-4653

query I rowsort
SELECT - 56 + + - 61 + - 0 AS col1
----
-117

query I rowsort
SELECT ALL NULLIF ( 53, + + ( 6 ) ) * - 30
----
-1590

onlyif mysql # DIV for integer division: 
query I rowsort label-8066
SELECT + + 30 DIV ( ( 22 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8066
SELECT + + 30 / ( ( 22 ) ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-8067
SELECT ALL 4 AS col2, 21 DIV 49 AS col1
----
4
0

skipif mysql # not compatible
query II rowsort label-8067
SELECT ALL 4 AS col2, 21 / 49 AS col1
----
4
0

query I rowsort
SELECT DISTINCT 74 * - 21
----
-1554

query II rowsort
SELECT DISTINCT 33, 32 AS col0
----
33
32

onlyif mysql # aggregate syntax: 
query II rowsort label-8070
SELECT DISTINCT + 39, + ( + NULLIF ( 2, + COUNT( * ) / - COUNT( * ) ) ) AS col2
----
39
2

skipif mysql # not compatible
query II rowsort label-8070
SELECT DISTINCT + 39, + ( + NULLIF ( 2, + COUNT ( * ) / - COUNT ( * ) ) ) AS col2
----
39
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8071
SELECT + ( + 85 ) * 19 * CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8071
SELECT + ( + 85 ) * 19 * CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8072
SELECT ALL + 62 DIV + 71 + - - 70 * - 83 * ( 33 ) AS col0
----
-191730

skipif mysql # not compatible
query I rowsort label-8072
SELECT ALL + 62 / + 71 + - - 70 * - 83 * ( 33 ) AS col0
----
-191730

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8073
SELECT NULLIF ( + 32, COALESCE ( CASE + 99 WHEN - 7 * 14 THEN - 46 ELSE - NULLIF ( 30, 30 + + 57 ) END, 86 + - 87, 96 - NULLIF ( - CAST( 85 AS SIGNED ) + + 59, - ( + COUNT( * ) ) * 76 ) ) * 47 + COUNT( * ) * + 58 ) * + COUNT( * ) + + 56 AS col0
----
88

skipif mysql # not compatible
query I rowsort label-8073
SELECT NULLIF ( + 32, COALESCE ( CASE + 99 WHEN - 7 * 14 THEN - 46 ELSE - NULLIF ( 30, 30 + + 57 ) END, 86 + - 87, 96 - NULLIF ( - CAST ( 85 AS INTEGER ) + + 59, - ( + COUNT ( * ) ) * 76 ) ) * 47 + COUNT ( * ) * + 58 ) * + COUNT ( * ) + + 56 AS col0
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8074
SELECT DISTINCT 94 DIV + 14 + 29 * - - COUNT( * ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-8074
SELECT DISTINCT 94 / + 14 + 29 * - - COUNT ( * ) AS col1
----
35

query I rowsort
SELECT 71 * 97 - 98
----
6789

query I rowsort
SELECT - 23 * - 65
----
1495

query I rowsort
SELECT + 40 + - + 57
----
-17

query I rowsort
SELECT ALL + NULLIF ( - - 54, + ( 84 ) )
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-8079
SELECT DISTINCT - 81 DIV - 21
----
3

skipif mysql # not compatible
query I rowsort label-8079
SELECT DISTINCT - 81 / - 21
----
3

query I rowsort
SELECT DISTINCT + 19 * - + 59 - 73
----
-1194

onlyif mysql # aggregate syntax: 
query I rowsort label-8081
SELECT DISTINCT - CASE + SUM( + + 80 ) WHEN - + 96 * 13 + - 94 * + 20 THEN ( - 68 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8081
SELECT DISTINCT - CASE + SUM ( + + 80 ) WHEN - + 96 * 13 + - 94 * + 20 THEN ( - 68 ) END AS col0
----
NULL

query I rowsort
SELECT DISTINCT 57 - + - ( 4 ) AS col2
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-8083
SELECT ALL COUNT( - + 80 ) - - + 34 AS col0
----
35

skipif mysql # not compatible
query I rowsort label-8083
SELECT ALL COUNT ( - + 80 ) - - + 34 AS col0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8084
SELECT DISTINCT - ( MIN( + 46 ) )
----
-46

skipif mysql # not compatible
query I rowsort label-8084
SELECT DISTINCT - ( MIN ( + 46 ) )
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-8085
SELECT + 48 * - + MAX( + 18 ) AS col0
----
-864

skipif mysql # not compatible
query I rowsort label-8085
SELECT + 48 * - + MAX ( + 18 ) AS col0
----
-864

query I rowsort
SELECT 31 * + 92 * - 47
----
-134044

onlyif mysql # aggregate syntax: 
query I rowsort label-8087
SELECT ALL + 40 * + COALESCE ( COUNT( * ), + 79, - 37 )
----
40

skipif mysql # not compatible
query I rowsort label-8087
SELECT ALL + 40 * + COALESCE ( COUNT ( * ), + 79, - 37 )
----
40

query I rowsort
SELECT 10 * - 29
----
-290

query I rowsort
SELECT ( + + 22 ) - + - 75
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8090
SELECT ( COALESCE ( - 90, + NULLIF ( COUNT( * ), - 56 * + 69 + - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) ) ) ) AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-8090
SELECT ( COALESCE ( - 90, + NULLIF ( COUNT ( * ), - 56 * + 69 + - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) ) ) AS col0
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8091
SELECT ALL + COALESCE ( 80, CAST( NULL AS SIGNED ) - + + CAST( - 9 AS SIGNED ) ) AS col0
----
80

skipif mysql # not compatible
query I rowsort label-8091
SELECT ALL + COALESCE ( 80, CAST ( NULL AS INTEGER ) - + + CAST ( - 9 AS INTEGER ) ) AS col0
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8092
SELECT ALL 60 * CAST( + 96 AS SIGNED )
----
5760

skipif mysql # not compatible
query I rowsort label-8092
SELECT ALL 60 * CAST ( + 96 AS INTEGER )
----
5760

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8093
SELECT DISTINCT 99 + - CAST( NULL AS SIGNED ), 19 AS col0
----
NULL
19

skipif mysql # not compatible
query II rowsort label-8093
SELECT DISTINCT 99 + - CAST ( NULL AS INTEGER ), 19 AS col0
----
NULL
19

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8094
SELECT ALL 3 + + - NULLIF ( 13, - CAST( NULL AS SIGNED ) - 49 ) + + 36 DIV + 56 col1
----
-10

skipif mysql # not compatible
query I rowsort label-8094
SELECT ALL 3 + + - NULLIF ( 13, - CAST ( NULL AS INTEGER ) - 49 ) + + 36 / + 56 col1
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-8095
SELECT - MIN( - - 31 ) + + + 92 AS col2
----
61

skipif mysql # not compatible
query I rowsort label-8095
SELECT - MIN ( - - 31 ) + + + 92 AS col2
----
61

query I rowsort
SELECT 13 + - 16 * + 90
----
-1427

query I rowsort
SELECT - 56 - + ( - ( - - 19 ) ) + + 45 AS col0
----
8

query I rowsort
SELECT ALL - 63 * 79 * 68 AS col1
----
-338436

onlyif mysql # aggregate syntax: 
query II rowsort label-8099
SELECT 59 + - + 92, CASE 35 WHEN 85 / + COUNT( * ) + 31 THEN + 78 END + 92 * + NULLIF ( - 67, COUNT( * ) * + NULLIF ( - COUNT( * ), + 45 / - 9 ) ) AS col2
----
-33
NULL

skipif mysql # not compatible
query II rowsort label-8099
SELECT 59 + - + 92, CASE 35 WHEN 85 / + COUNT ( * ) + 31 THEN + 78 END + 92 * + NULLIF ( - 67, COUNT ( * ) * + NULLIF ( - COUNT ( * ), + 45 / - 9 ) ) AS col2
----
-33
NULL

query I rowsort
SELECT DISTINCT ( + ( + 44 ) ) * - 99 + - 55 AS col0
----
-4411

query I rowsort
SELECT DISTINCT 88 + 62 AS col2
----
150

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8102
SELECT ALL 7 * - 7 DIV + COUNT( * )
----
-49

skipif mysql # not compatible
query I rowsort label-8102
SELECT ALL 7 * - 7 / + COUNT ( * )
----
-49

query I rowsort
SELECT ALL + 39 + - 27 - + - 22 * + 22
----
496

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8104
SELECT CAST( NULL AS SIGNED ) + + 29 / 66 * - 82 * CAST( - 20 AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8104
SELECT CAST ( NULL AS INTEGER ) + + 29 / 66 * - 82 * CAST ( - 20 AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8105
SELECT + 3 DIV + - 80 + + 64 + + ( - COUNT( * ) ) * 84
----
-20

skipif mysql # not compatible
query I rowsort label-8105
SELECT + 3 / + - 80 + + 64 + + ( - COUNT ( * ) ) * 84
----
-20

query II rowsort
SELECT ( - + 12 ) * - 22 AS col2, + 69
----
264
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8107
SELECT DISTINCT + 21 - 34 * ( - - COALESCE ( 12, 73 ) ) + - COUNT( * ) col0
----
-388

skipif mysql # not compatible
query I rowsort label-8107
SELECT DISTINCT + 21 - 34 * ( - - COALESCE ( 12, 73 ) ) + - COUNT ( * ) col0
----
-388

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8108
SELECT 85 + + ( 37 ) * - 84 * + CAST( 51 AS SIGNED ) + - 85 * + COALESCE ( + ( 14 ), 42 * - ( + 42 ) ) AS col1
----
-159613

skipif mysql # not compatible
query I rowsort label-8108
SELECT 85 + + ( 37 ) * - 84 * + CAST ( 51 AS INTEGER ) + - 85 * + COALESCE ( + ( 14 ), 42 * - ( + 42 ) ) AS col1
----
-159613

query I rowsort
SELECT DISTINCT - 76 * - - 76
----
-5776

onlyif mysql # aggregate syntax: 
query I rowsort label-8110
SELECT 75 + - - ( + CASE 94 WHEN + COUNT( * ) THEN NULL ELSE 95 END ) + - 48 AS col2
----
122

skipif mysql # not compatible
query I rowsort label-8110
SELECT 75 + - - ( + CASE 94 WHEN + COUNT ( * ) THEN NULL ELSE 95 END ) + - 48 AS col2
----
122

onlyif mysql # DIV for integer division: 
query I rowsort label-8111
SELECT ALL - COALESCE ( + 71, + 58 DIV 47 )
----
-71

skipif mysql # not compatible
query I rowsort label-8111
SELECT ALL - COALESCE ( + 71, + 58 / 47 )
----
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8112
SELECT 65 DIV ( COUNT( * ) ) * - 42
----
-2730

skipif mysql # not compatible
query I rowsort label-8112
SELECT 65 / ( COUNT ( * ) ) * - 42
----
-2730

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8113
SELECT 1 * - CAST( - 14 AS DECIMAL ) / + + 43 + - 30 - 55 * ( - 34 * CAST( - CASE + 64 WHEN + SUM( DISTINCT 5 ) + + 86 THEN + COUNT( * ) * + COALESCE ( + SUM( DISTINCT 93 ) * 23, 98 * 50 ) + MIN( DISTINCT - 46 + - 1 ) WHEN + 91 * - COUNT( * ) THEN NULL ELSE NULL END * + 99 AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8113
SELECT 1 * - CAST ( - 14 AS REAL ) / + + 43 + - 30 - 55 * ( - 34 * CAST ( - CASE + 64 WHEN + SUM ( DISTINCT 5 ) + + 86 THEN + COUNT ( * ) * + COALESCE ( + SUM ( DISTINCT 93 ) * 23, 98 * 50 ) + MIN ( DISTINCT - 46 + - 1 ) WHEN + 91 * - COUNT ( * ) THEN NULL ELSE NULL END * + 99 AS REAL ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8114
SELECT + 11 - CASE MIN( 48 ) WHEN - 3 + + 30 THEN 74 - + 11 END + - 8 * ( - SUM( ( ( 40 ) ) ) * 17 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8114
SELECT + 11 - CASE MIN ( 48 ) WHEN - 3 + + 30 THEN 74 - + 11 END + - 8 * ( - SUM ( ( ( 40 ) ) ) * 17 )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8115
SELECT DISTINCT - + 81 col0, + 61 DIV - 91 AS col0
----
-81
0

skipif mysql # not compatible
query II rowsort label-8115
SELECT DISTINCT - + 81 col0, + 61 / - 91 AS col0
----
-81
0

query I rowsort
SELECT + 55 + 22
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8117
SELECT 79 DIV - CAST( COALESCE ( 77, + COUNT( * ) * + 75, 89 * 42 ) AS SIGNED ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8117
SELECT 79 / - CAST ( COALESCE ( 77, + COUNT ( * ) * + 75, 89 * 42 ) AS INTEGER ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8118
SELECT - 77 + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8118
SELECT - 77 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8119
SELECT 56 + - 44 + + COUNT( * ) * - 52 + + 86 + 16
----
62

skipif mysql # not compatible
query I rowsort label-8119
SELECT 56 + - 44 + + COUNT ( * ) * - 52 + + 86 + 16
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8120
SELECT ALL - CAST( + 99 AS SIGNED ) + - - 1 + - - 15 + - CAST( NULL AS SIGNED ) * 8 * + CAST( COUNT( * ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8120
SELECT ALL - CAST ( + 99 AS INTEGER ) + - - 1 + - - 15 + - CAST ( NULL AS INTEGER ) * 8 * + CAST ( COUNT ( * ) AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + 25 + + 23 AS col2
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8122
SELECT ALL CAST( - - 29 AS SIGNED ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-8122
SELECT ALL CAST ( - - 29 AS INTEGER ) AS col0
----
29

query I rowsort
SELECT ALL - 34 * - 21
----
714

query I rowsort
SELECT 27 * - + 40 AS col0
----
-1080

onlyif mysql # aggregate syntax: 
query II rowsort label-8125
SELECT + 54 + + 8 + + - 37 AS col2, 34 * 81 + - COUNT( * ) * + 67
----
25
2687

skipif mysql # not compatible
query II rowsort label-8125
SELECT + 54 + + 8 + + - 37 AS col2, 34 * 81 + - COUNT ( * ) * + 67
----
25
2687

query I rowsort
SELECT ALL + 43 + - + ( + 47 )
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-8127
SELECT ALL - 63 AS col0, - 3 + NULLIF ( + - COUNT( * ), - COUNT( DISTINCT - 85 ) )
----
-63
NULL

skipif mysql # not compatible
query II rowsort label-8127
SELECT ALL - 63 AS col0, - 3 + NULLIF ( + - COUNT ( * ), - COUNT ( DISTINCT - 85 ) )
----
-63
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8128
SELECT - 21 * - - SUM( DISTINCT - + ( 65 ) ) * + 29 + 19 DIV 14
----
39586

skipif mysql # not compatible
query I rowsort label-8128
SELECT - 21 * - - SUM ( DISTINCT - + ( 65 ) ) * + 29 + 19 / 14
----
39586

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8129
SELECT ALL 89 DIV - COUNT( * )
----
-89

skipif mysql # not compatible
query I rowsort label-8129
SELECT ALL 89 / - COUNT ( * )
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-8130
SELECT DISTINCT COALESCE ( - + COUNT( * ), - + 46, - 30 * 52 * + 38 + - 25 )
----
-1

skipif mysql # not compatible
query I rowsort label-8130
SELECT DISTINCT COALESCE ( - + COUNT ( * ), - + 46, - 30 * 52 * + 38 + - 25 )
----
-1

query I rowsort
SELECT ALL ( + 86 ) - - 1
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-8132
SELECT - MIN( DISTINCT 98 ) AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-8132
SELECT - MIN ( DISTINCT 98 ) AS col0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-8133
SELECT ALL COUNT( * ) - + + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-8133
SELECT ALL COUNT ( * ) - + + COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8134
SELECT 37 + + + COUNT( * ) * + SUM( ALL 23 )
----
60

skipif mysql # not compatible
query I rowsort label-8134
SELECT 37 + + + COUNT ( * ) * + SUM ( ALL 23 )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8135
SELECT NULLIF ( - 44, - NULLIF ( + + ( - + 6 ), 75 + - COUNT( * ) * 87 ) * 67 + 88 ) * - 50
----
2200

skipif mysql # not compatible
query I rowsort label-8135
SELECT NULLIF ( - 44, - NULLIF ( + + ( - + 6 ), 75 + - COUNT ( * ) * 87 ) * 67 + 88 ) * - 50
----
2200

onlyif mysql # aggregate syntax: 
query I rowsort label-8136
SELECT - SUM( - 62 )
----
62

skipif mysql # not compatible
query I rowsort label-8136
SELECT - SUM ( - 62 )
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-8137
SELECT + MIN( - 99 ) AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-8137
SELECT + MIN ( - 99 ) AS col0
----
-99

query I rowsort
SELECT CASE WHEN NOT 27 = ( + 35 ) THEN - 22 + - 98 + 13 * - 19 END
----
-367

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8139
SELECT CASE + 7 WHEN - 91 THEN + - 96 WHEN - 4 THEN - 32 * + 69 ELSE + 2 + + 83 END DIV MAX( - CAST( 41 AS SIGNED ) + 1 ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-8139
SELECT CASE + 7 WHEN - 91 THEN + - 96 WHEN - 4 THEN - 32 * + 69 ELSE + 2 + + 83 END / MAX ( - CAST ( 41 AS INTEGER ) + 1 ) AS col0
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8140
SELECT + 11 * 23 AS col2, - 70 + + CAST( - ( - 1 ) AS SIGNED ) AS col0
----
253
-69

skipif mysql # not compatible
query II rowsort label-8140
SELECT + 11 * 23 AS col2, - 70 + + CAST ( - ( - 1 ) AS INTEGER ) AS col0
----
253
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8141
SELECT ALL + COUNT( * ) AS col1, - 0 DIV + 68 DIV + 23
----
1
0

skipif mysql # not compatible
query II rowsort label-8141
SELECT ALL + COUNT ( * ) AS col1, - 0 / + 68 / + 23
----
1
0

query I rowsort
SELECT + 88 * - 64
----
-5632

query II rowsort
SELECT DISTINCT 52 * + + 47 AS col0, + 1
----
2444
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8144
SELECT ALL + COUNT( * ) DIV 80 DIV - - 9 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8144
SELECT ALL + COUNT ( * ) / 80 / - - 9 AS col2
----
0

query I rowsort
SELECT CASE - - 29 WHEN - 25 + 56 THEN NULL WHEN + 77 THEN 1 END
----
NULL

query I rowsort
SELECT + 52 * - - 53
----
2756

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8147
SELECT + 57 * - CAST( - + COALESCE ( 62, COUNT( * ) / + + MIN( - 46 ), - NULLIF ( - 35, - 70 + + CAST( NULL AS SIGNED ) ) ) AS SIGNED )
----
3534

skipif mysql # not compatible
query I rowsort label-8147
SELECT + 57 * - CAST ( - + COALESCE ( 62, COUNT ( * ) / + + MIN ( - 46 ), - NULLIF ( - 35, - 70 + + CAST ( NULL AS INTEGER ) ) ) AS INTEGER )
----
3534

query I rowsort
SELECT + 54 * 38 + - 60 AS col1
----
1992

onlyif mysql # aggregate syntax: 
query I rowsort label-8149
SELECT SUM( ALL 25 )
----
25

skipif mysql # not compatible
query I rowsort label-8149
SELECT SUM ( ALL 25 )
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-8150
SELECT ALL + 46, - COUNT( * ) col1
----
46
-1

skipif mysql # not compatible
query II rowsort label-8150
SELECT ALL + 46, - COUNT ( * ) col1
----
46
-1

query I rowsort
SELECT + 21 * 74
----
1554

onlyif mysql # DIV for integer division: 
query I rowsort label-8152
SELECT - 9 + + 71 + + 39 + - 42 DIV 2 + - - 10
----
90

skipif mysql # not compatible
query I rowsort label-8152
SELECT - 9 + + 71 + + 39 + - 42 / 2 + - - 10
----
90

onlyif mysql # aggregate syntax: 
query II rowsort label-8153
SELECT + 94 AS col1, + COUNT( * )
----
94
1

skipif mysql # not compatible
query II rowsort label-8153
SELECT + 94 AS col1, + COUNT ( * )
----
94
1

query II rowsort
SELECT 9, 50 AS col1
----
9
50

onlyif mysql # aggregate syntax: 
query I rowsort label-8155
SELECT DISTINCT - 40 * + + 8 + 11 * - - COUNT( * ) * - 59 AS col2
----
-969

skipif mysql # not compatible
query I rowsort label-8155
SELECT DISTINCT - 40 * + + 8 + 11 * - - COUNT ( * ) * - 59 AS col2
----
-969

onlyif mysql # aggregate syntax: 
query I rowsort label-8156
SELECT - 90 * CASE - 53 WHEN - + COUNT( * ) THEN - 75 * - - 86 * - 25 WHEN - COUNT( * ) + - 16 THEN 41 + + 84 ELSE NULL END / 84 - - MAX( ALL - 8 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8156
SELECT - 90 * CASE - 53 WHEN - + COUNT ( * ) THEN - 75 * - - 86 * - 25 WHEN - COUNT ( * ) + - 16 THEN 41 + + 84 ELSE NULL END / 84 - - MAX ( ALL - 8 ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8157
SELECT ALL + CAST( NULL AS SIGNED ) * 41 + - 32
----
NULL

skipif mysql # not compatible
query I rowsort label-8157
SELECT ALL + CAST ( NULL AS INTEGER ) * 41 + - 32
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8158
SELECT ALL + + COALESCE ( - + 60, + COUNT( * ), - 82, 31 ) * + ( CASE + 6 WHEN 5 THEN - CAST( NULL AS SIGNED ) * 53 END ) - 2 + - 4 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8158
SELECT ALL + + COALESCE ( - + 60, + COUNT ( * ), - 82, 31 ) * + ( CASE + 6 WHEN 5 THEN - CAST ( NULL AS INTEGER ) * 53 END ) - 2 + - 4 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8159
SELECT - - 18 DIV - + 27 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8159
SELECT - - 18 / - + 27 AS col2
----
0

query I rowsort
SELECT + + 7 - 97 AS col2
----
-90

query I rowsort
SELECT - + 2 * + 9 AS col2
----
-18

query II rowsort
SELECT 65 AS col1, - 23 AS col2
----
65
-23

query II rowsort
SELECT 90, CASE + 42 WHEN - - 60 THEN - - 17 WHEN + 59 THEN NULL ELSE NULL END * 4 AS col0
----
90
NULL

query II rowsort
SELECT ALL 57 col2, 98 + - 25
----
57
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8165
SELECT ALL - 72 + - 66 DIV - MIN( DISTINCT 57 )
----
-71

skipif mysql # not compatible
query I rowsort label-8165
SELECT ALL - 72 + - 66 / - MIN ( DISTINCT 57 )
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-8166
SELECT DISTINCT - - COUNT( * ) + + MAX( ALL - 62 )
----
-61

skipif mysql # not compatible
query I rowsort label-8166
SELECT DISTINCT - - COUNT ( * ) + + MAX ( ALL - 62 )
----
-61

query I rowsort
SELECT ALL + 81 * - 89 * 71 col2
----
-511839

query I rowsort
SELECT ALL 49 * - ( - + NULLIF ( - ( + + ( + 79 ) ), 57 ) )
----
-3871

onlyif mysql # aggregate syntax: 
query I rowsort label-8169
SELECT ALL - - 89 - 49 + SUM( DISTINCT - + NULLIF ( + + 4, 67 ) ) * 45
----
-140

skipif mysql # not compatible
query I rowsort label-8169
SELECT ALL - - 89 - 49 + SUM ( DISTINCT - + NULLIF ( + + 4, 67 ) ) * 45
----
-140

onlyif mysql # aggregate syntax: 
query I rowsort label-8170
SELECT - + COUNT( * ) * - + 35 AS col1
----
35

skipif mysql # not compatible
query I rowsort label-8170
SELECT - + COUNT ( * ) * - + 35 AS col1
----
35

onlyif mysql # aggregate syntax: 
query II rowsort label-8171
SELECT - SUM( 79 ) AS col2, 86
----
-79
86

skipif mysql # not compatible
query II rowsort label-8171
SELECT - SUM ( 79 ) AS col2, 86
----
-79
86

query I rowsort
SELECT - 42 + NULLIF ( 37, ( + 15 ) + - 26 - 60 + 18 ) - - 59
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-8173
SELECT - 18 + + - 75 DIV - + 79 * + + 75
----
-18

skipif mysql # not compatible
query I rowsort label-8173
SELECT - 18 + + - 75 / - + 79 * + + 75
----
-18

query I rowsort
SELECT + 24 - + - 65
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8175
SELECT - 35 * - 25 * + - 74 * 38 * - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8175
SELECT - 35 * - 25 * + - 74 * 38 * - CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8176
SELECT ALL CASE + - 86 WHEN + 14 / - + AVG ( DISTINCT - - 18 ) THEN - + 21 + - COUNT( * ) WHEN - 18 * 18 THEN 7 * - 81 WHEN 7 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8176
SELECT ALL CASE + - 86 WHEN + 14 / - + AVG ( DISTINCT - - 18 ) THEN - + 21 + - COUNT ( * ) WHEN - 18 * 18 THEN 7 * - 81 WHEN 7 THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8177
SELECT - MIN( CAST( NULL AS SIGNED ) ) * COALESCE ( 76, - 33 ) * 7 + 72 * 46 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8177
SELECT - MIN ( CAST ( NULL AS INTEGER ) ) * COALESCE ( 76, - 33 ) * 7 + 72 * 46 AS col0
----
NULL

query I rowsort
SELECT DISTINCT ( 38 ) col1
----
38

query I rowsort
SELECT DISTINCT ( - 32 ) col1
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-8180
SELECT + 50 * - COUNT( * ) + + 41 AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-8180
SELECT + 50 * - COUNT ( * ) + + 41 AS col2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8181
SELECT ALL + NULLIF ( 25, COUNT( * ) * + 97 / - + 74 ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-8181
SELECT ALL + NULLIF ( 25, COUNT ( * ) * + 97 / - + 74 ) AS col0
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-8182
SELECT DISTINCT 81 DIV - + 94
----
0

skipif mysql # not compatible
query I rowsort label-8182
SELECT DISTINCT 81 / - + 94
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8183
SELECT + 10 + + 94 DIV - - 22
----
14

skipif mysql # not compatible
query I rowsort label-8183
SELECT + 10 + + 94 / - - 22
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8184
SELECT + NULLIF ( 16, - - COUNT( * ) ) DIV - NULLIF ( - 2, + COUNT( * ) )
----
8

skipif mysql # not compatible
query I rowsort label-8184
SELECT + NULLIF ( 16, - - COUNT ( * ) ) / - NULLIF ( - 2, + COUNT ( * ) )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8185
SELECT ALL + - 9 * - MIN( DISTINCT ( - 81 ) ) + + 93 - - + 42 + - 74 * + 85
----
-6884

skipif mysql # not compatible
query I rowsort label-8185
SELECT ALL + - 9 * - MIN ( DISTINCT ( - 81 ) ) + + 93 - - + 42 + - 74 * + 85
----
-6884

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8186
SELECT DISTINCT 4 * + + COUNT( * ) - + 62 * + 14 + ( + 16 ) DIV 42 * 78
----
-864

skipif mysql # not compatible
query I rowsort label-8186
SELECT DISTINCT 4 * + + COUNT ( * ) - + 62 * + 14 + ( + 16 ) / 42 * 78
----
-864

onlyif mysql # aggregate syntax: 
query I rowsort label-8187
SELECT + + COUNT( * ) * NULLIF ( + + 0, - MIN( ALL - 94 ) )
----
0

skipif mysql # not compatible
query I rowsort label-8187
SELECT + + COUNT ( * ) * NULLIF ( + + 0, - MIN ( ALL - 94 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8188
SELECT ALL - COUNT( * ) * + 93 * COUNT( * ) * + 74 + + 69 + + COUNT( * ) AS col2
----
-6812

skipif mysql # not compatible
query I rowsort label-8188
SELECT ALL - COUNT ( * ) * + 93 * COUNT ( * ) * + 74 + + 69 + + COUNT ( * ) AS col2
----
-6812

onlyif mysql # aggregate syntax: 
query II rowsort label-8189
SELECT + ( + ( + + 0 ) ) AS col2, - SUM( + - 84 )
----
0
84

skipif mysql # not compatible
query II rowsort label-8189
SELECT + ( + ( + + 0 ) ) AS col2, - SUM ( + - 84 )
----
0
84

onlyif mysql # DIV for integer division: 
query I rowsort label-8190
SELECT + - 79 * - 28 + + + 27 - + 73 + - 74 + 92 * 85 DIV 23 AS col0
----
2432

skipif mysql # not compatible
query I rowsort label-8190
SELECT + - 79 * - 28 + + + 27 - + 73 + - 74 + 92 * 85 / 23 AS col0
----
2432

query II rowsort
SELECT + 96 - 1, - 21 AS col2
----
95
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8192
SELECT + 25 * + COUNT( * ) - - + MAX( DISTINCT + 35 ) + - 40 + 28 * + - 66 * COALESCE ( - 69 DIV 37, - 54 DIV COUNT( * ) ) AS col2
----
1868

skipif mysql # not compatible
query I rowsort label-8192
SELECT + 25 * + COUNT ( * ) - - + MAX ( DISTINCT + 35 ) + - 40 + 28 * + - 66 * COALESCE ( - 69 / 37, - 54 / COUNT ( * ) ) AS col2
----
1868

query I rowsort
SELECT ALL - + 27 * - + 39 + + + 28 AS col1
----
1081

onlyif mysql # aggregate syntax: 
query II rowsort label-8194
SELECT ALL + MAX( + 65 ), - 73 - - 11 col2
----
65
-62

skipif mysql # not compatible
query II rowsort label-8194
SELECT ALL + MAX ( + 65 ), - 73 - - 11 col2
----
65
-62

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8195
SELECT + - MAX( ALL + 88 ) + 32 AS col2, + MAX( ALL 65 ) DIV 36 DIV - 90 AS col0
----
-56
0

skipif mysql # not compatible
query II rowsort label-8195
SELECT + - MAX ( ALL + 88 ) + 32 AS col2, + MAX ( ALL 65 ) / 36 / - 90 AS col0
----
-56
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8196
SELECT DISTINCT + 84 * NULLIF ( - 75, + 57 ) - COUNT( * ) AS col2
----
-6301

skipif mysql # not compatible
query I rowsort label-8196
SELECT DISTINCT + 84 * NULLIF ( - 75, + 57 ) - COUNT ( * ) AS col2
----
-6301

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8197
SELECT DISTINCT 54 DIV + - 31 + 23 * COUNT( * ) AS col2
----
22

skipif mysql # not compatible
query I rowsort label-8197
SELECT DISTINCT 54 / + - 31 + 23 * COUNT ( * ) AS col2
----
22

query I rowsort
SELECT ALL + + 66 * NULLIF ( 94, 26 )
----
6204

query I rowsort
SELECT - - 46 + - 22 * 12 + - + 9 AS col2
----
-227

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8200
SELECT ALL + - 8 * CAST( - 84 AS SIGNED ) - + - COALESCE ( - + 83, - + 68 * 34 ) + + COUNT( * ) * 68
----
657

skipif mysql # not compatible
query I rowsort label-8200
SELECT ALL + - 8 * CAST ( - 84 AS INTEGER ) - + - COALESCE ( - + 83, - + 68 * 34 ) + + COUNT ( * ) * 68
----
657

query I rowsort
SELECT + 42 * - 41
----
-1722

onlyif mysql # aggregate syntax: 
query I rowsort label-8202
SELECT - 12 * + COUNT( DISTINCT - 44 ) * + ( + + 97 ) * - 51 AS col2
----
59364

skipif mysql # not compatible
query I rowsort label-8202
SELECT - 12 * + COUNT ( DISTINCT - 44 ) * + ( + + 97 ) * - 51 AS col2
----
59364

query II rowsort
SELECT DISTINCT 81 * 75 AS col1, - 84 AS col1
----
6075
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-8204
SELECT ALL NULLIF ( - 34, - NULLIF ( + - COUNT( * ), + - 70 * 25 * - COUNT( ALL 59 ) + 22 ) )
----
-34

skipif mysql # not compatible
query I rowsort label-8204
SELECT ALL NULLIF ( - 34, - NULLIF ( + - COUNT ( * ), + - 70 * 25 * - COUNT ( ALL 59 ) + 22 ) )
----
-34

query I rowsort
SELECT - ( + 70 ) + 33 + - 39
----
-76

onlyif mysql # aggregate syntax: 
query II rowsort label-8206
SELECT + COUNT( * ) * + 27 * - - 58 col2, + SUM( ( 69 ) ) * 12 AS col1
----
1566
828

skipif mysql # not compatible
query II rowsort label-8206
SELECT + COUNT ( * ) * + 27 * - - 58 col2, + SUM ( ( 69 ) ) * 12 AS col1
----
1566
828

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8207
SELECT 86 + + CAST( 83 AS SIGNED ) AS col0, 79 - 53 * + 66
----
169
-3419

skipif mysql # not compatible
query II rowsort label-8207
SELECT 86 + + CAST ( 83 AS INTEGER ) AS col0, 79 - 53 * + 66
----
169
-3419

query I rowsort
SELECT 60 * - 2
----
-120

query II rowsort
SELECT 13 col0, 26 * + 50
----
13
1300

onlyif mysql # DIV for integer division: 
query I rowsort label-8210
SELECT ALL + 35 DIV + 63
----
0

skipif mysql # not compatible
query I rowsort label-8210
SELECT ALL + 35 / + 63
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8211
SELECT DISTINCT + 63 / 35 / 21 * - + CASE + 56 WHEN - 20 THEN NULL WHEN CAST( - + ( 12 ) AS SIGNED ) THEN 22 + - 88 END * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8211
SELECT DISTINCT + 63 / 35 / 21 * - + CASE + 56 WHEN - 20 THEN NULL WHEN CAST ( - + ( 12 ) AS INTEGER ) THEN 22 + - 88 END * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8212
SELECT ALL + 45 DIV + - 83 * - 2 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8212
SELECT ALL + 45 / + - 83 * - 2 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8213
SELECT - 0 AS col0, 77 + CASE WHEN ( 3 ) BETWEEN 1 + + - 21 - + ( - 32 ) * - 43 * 15 AND + 90 + AVG ( + CAST( NULL AS SIGNED ) ) * 25 THEN - 12 / - 17 ELSE NULL END AS col0
----
0
NULL

skipif mysql # not compatible
query II rowsort label-8213
SELECT - 0 AS col0, 77 + CASE WHEN ( 3 ) BETWEEN 1 + + - 21 - + ( - 32 ) * - 43 * 15 AND + 90 + AVG ( + CAST ( NULL AS INTEGER ) ) * 25 THEN - 12 / - 17 ELSE NULL END AS col0
----
0
NULL

query I rowsort
SELECT 95 * 33 AS col2
----
3135

onlyif mysql # aggregate syntax: 
query I rowsort label-8215
SELECT 65 - - COUNT( * ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-8215
SELECT 65 - - COUNT ( * ) AS col0
----
66

query I rowsort
SELECT ALL + 72 * - 79 AS col1
----
-5688

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8217
SELECT 29 col0, + CAST( SUM( + 45 ) AS SIGNED )
----
29
45

skipif mysql # not compatible
query II rowsort label-8217
SELECT 29 col0, + CAST ( SUM ( + 45 ) AS INTEGER )
----
29
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8218
SELECT ALL + 73 + COUNT( * ) + 80 * - 48 AS col1
----
-3766

skipif mysql # not compatible
query I rowsort label-8218
SELECT ALL + 73 + COUNT ( * ) + 80 * - 48 AS col1
----
-3766

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8219
SELECT DISTINCT - 19 + 71 + + 91 + 62 * CAST( NULL AS SIGNED ) * 85 - + + 50 * 33 * + 92 / 26 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8219
SELECT DISTINCT - 19 + 71 + + 91 + 62 * CAST ( NULL AS INTEGER ) * 85 - + + 50 * 33 * + 92 / 26 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8220
SELECT ALL 86 + - MIN( + 31 ) * + COUNT( * ) col1
----
55

skipif mysql # not compatible
query I rowsort label-8220
SELECT ALL 86 + - MIN ( + 31 ) * + COUNT ( * ) col1
----
55

query I rowsort
SELECT 7 + - + 93 * - 80 AS col0
----
7447

onlyif mysql # DIV for integer division: 
query I rowsort label-8222
SELECT DISTINCT - - 65 + + - 83 DIV 67
----
64

skipif mysql # not compatible
query I rowsort label-8222
SELECT DISTINCT - - 65 + + - 83 / 67
----
64

query II rowsort
SELECT + + 8 AS col1, 16 AS col0
----
8
16

query I rowsort
SELECT ALL - 88 + 72 + + - 46 AS col2
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8225
SELECT + 57 col2, CAST( NULL AS SIGNED ) + + - SUM( DISTINCT - + 31 )
----
57
NULL

skipif mysql # not compatible
query II rowsort label-8225
SELECT + 57 col2, CAST ( NULL AS INTEGER ) + + - SUM ( DISTINCT - + 31 )
----
57
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8226
SELECT ALL - - ( + CAST( 39 AS SIGNED ) )
----
39

skipif mysql # not compatible
query I rowsort label-8226
SELECT ALL - - ( + CAST ( 39 AS INTEGER ) )
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-8227
SELECT ALL 54 DIV - - 96 + 93 AS col0
----
93

skipif mysql # not compatible
query I rowsort label-8227
SELECT ALL 54 / - - 96 + 93 AS col0
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8228
SELECT DISTINCT 59 + COALESCE ( COUNT( * ), - ( - 12 ), - CASE 21 WHEN - COUNT( * ) * 3 THEN NULL WHEN + COALESCE ( - 84, - 87 * - 49 ) * + COUNT( * ) THEN NULL WHEN 56 * COALESCE ( 46, + 29 ) THEN 22 - 68 ELSE + 39 END + CASE - 81 WHEN - 69 THEN - NULLIF ( - 62, + 69 * COUNT( * ) ) DIV - 60 ELSE NULL END * CAST( NULL AS SIGNED ) ) AS col2
----
60

skipif mysql # not compatible
query I rowsort label-8228
SELECT DISTINCT 59 + COALESCE ( COUNT ( * ), - ( - 12 ), - CASE 21 WHEN - COUNT ( * ) * 3 THEN NULL WHEN + COALESCE ( - 84, - 87 * - 49 ) * + COUNT ( * ) THEN NULL WHEN 56 * COALESCE ( 46, + 29 ) THEN 22 - 68 ELSE + 39 END + CASE - 81 WHEN - 69 THEN - NULLIF ( - 62, + 69 * COUNT ( * ) ) / - 60 ELSE NULL END * CAST ( NULL AS INTEGER ) ) AS col2
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-8229
SELECT + ( + 87 ) + 35 + - + 51 DIV - 23
----
124

skipif mysql # not compatible
query I rowsort label-8229
SELECT + ( + 87 ) + 35 + - + 51 / - 23
----
124

onlyif mysql # DIV for integer division: 
query I rowsort label-8230
SELECT ALL - 5 - + 37 + + 73 DIV - 82 AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-8230
SELECT ALL - 5 - + 37 + + 73 / - 82 AS col1
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8231
SELECT ALL 81 * - CAST( NULL AS SIGNED ) * - 69 * - + 13 / + 16
----
NULL

skipif mysql # not compatible
query I rowsort label-8231
SELECT ALL 81 * - CAST ( NULL AS INTEGER ) * - 69 * - + 13 / + 16
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8232
SELECT DISTINCT - - 47 - 35 + - CAST( - CASE + 10 WHEN - - 45 THEN NULL WHEN - SUM( DISTINCT 59 ) * + 14 THEN 76 + - 3 * 60 END AS SIGNED ) * 51 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8232
SELECT DISTINCT - - 47 - 35 + - CAST ( - CASE + 10 WHEN - - 45 THEN NULL WHEN - SUM ( DISTINCT 59 ) * + 14 THEN 76 + - 3 * 60 END AS INTEGER ) * 51 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8233
SELECT DISTINCT - COUNT( * ) * - - 10 AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-8233
SELECT DISTINCT - COUNT ( * ) * - - 10 AS col0
----
-10

query I rowsort
SELECT ALL 43 - 86 + 39 * 85 + + 93 AS col0
----
3365

query I rowsort
SELECT DISTINCT - + 66 col2
----
-66

query I rowsort
SELECT - 40 - - + COALESCE ( 62, 21 ) + 9 AS col1
----
31

query I rowsort
SELECT 79 * + 68 AS col0
----
5372

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8238
SELECT ( + - CAST( NULL AS SIGNED ) ) * 44 + - - 91 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8238
SELECT ( + - CAST ( NULL AS INTEGER ) ) * 44 + - - 91 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8239
SELECT 66 - - ( + - COUNT( * ) ) + - 0 DIV + - NULLIF ( + 50, + CAST( - 61 AS SIGNED ) )
----
65

skipif mysql # not compatible
query I rowsort label-8239
SELECT 66 - - ( + - COUNT ( * ) ) + - 0 / + - NULLIF ( + 50, + CAST ( - 61 AS INTEGER ) )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-8240
SELECT ALL + 49 * + CASE 71 WHEN - COUNT( * ) * + 91 THEN NULL WHEN - 74 + + + 86 * - 81 * - 39 THEN 59 END * - 11 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8240
SELECT ALL + 49 * + CASE 71 WHEN - COUNT ( * ) * + 91 THEN NULL WHEN - 74 + + + 86 * - 81 * - 39 THEN 59 END * - 11 AS col2
----
NULL

query I rowsort
SELECT ALL 70 * - + 99 * + 4 AS col1
----
-27720

query I rowsort
SELECT DISTINCT 5 * + + 89 AS col2
----
445

query II rowsort
SELECT 95 * 79 AS col2, 2
----
7505
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8244
SELECT ALL COUNT( * ) + + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8244
SELECT ALL COUNT ( * ) + + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8245
SELECT 72 DIV + 41
----
1

skipif mysql # not compatible
query I rowsort label-8245
SELECT 72 / + 41
----
1

query I rowsort
SELECT 10 - + 25
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-8247
SELECT ALL - COALESCE ( + 44, COALESCE ( - 0, + - 97 ), - ( 56 ) ) + + 12 + + + 53 * MIN( ALL + ( - 52 ) + - 58 * + 77 )
----
-239486

skipif mysql # not compatible
query I rowsort label-8247
SELECT ALL - COALESCE ( + 44, COALESCE ( - 0, + - 97 ), - ( 56 ) ) + + 12 + + + 53 * MIN ( ALL + ( - 52 ) + - 58 * + 77 )
----
-239486

query I rowsort
SELECT DISTINCT 22 + - - 85
----
107

query II rowsort
SELECT 7 * - - 62, - 86 col0
----
434
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-8250
SELECT DISTINCT SUM( + 52 ) + - - 6 + + 89 col2, 74 AS col2
----
147
74

skipif mysql # not compatible
query II rowsort label-8250
SELECT DISTINCT SUM ( + 52 ) + - - 6 + + 89 col2, 74 AS col2
----
147
74

onlyif mysql # DIV for integer division: 
query I rowsort label-8251
SELECT ALL 57 DIV + 31 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8251
SELECT ALL 57 / + 31 AS col1
----
1

query I rowsort
SELECT - 12 * + - 28
----
336

query I rowsort
SELECT + 82 + + + 94 + + ( + 59 ) * + 78 AS col0
----
4778

query II rowsort
SELECT ALL - COALESCE ( + + 80, 50 + + + 98 ), 6 col2
----
-80
6

onlyif mysql # DIV for integer division: 
query I rowsort label-8255
SELECT DISTINCT - 20 * + - 74 * - + 79 - + 6 + - 75 DIV + 15 AS col0
----
-116931

skipif mysql # not compatible
query I rowsort label-8255
SELECT DISTINCT - 20 * + - 74 * - + 79 - + 6 + - 75 / + 15 AS col0
----
-116931

onlyif mysql # aggregate syntax: 
query I rowsort label-8256
SELECT ALL + + 57 * ( - - 65 ) + - - COALESCE ( + COUNT( * ), 75 )
----
3706

skipif mysql # not compatible
query I rowsort label-8256
SELECT ALL + + 57 * ( - - 65 ) + - - COALESCE ( + COUNT ( * ), 75 )
----
3706

query I rowsort
SELECT 58 + - 2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-8258
SELECT - NULLIF ( - NULLIF ( COALESCE ( + COUNT( * ), 52 ), + CASE - - 19 WHEN + + 41 * + 75 + + 53 THEN NULL ELSE - 46 / 34 + + 38 END ), 50 * 53 ) * - 86
----
-86

skipif mysql # not compatible
query I rowsort label-8258
SELECT - NULLIF ( - NULLIF ( COALESCE ( + COUNT ( * ), 52 ), + CASE - - 19 WHEN + + 41 * + 75 + + 53 THEN NULL ELSE - 46 / 34 + + 38 END ), 50 * 53 ) * - 86
----
-86

query I rowsort
SELECT 17 * - 91 * + - 72 * + - 90 + - 87 * + - NULLIF ( 77, + 58 )
----
-10017861

onlyif mysql # aggregate syntax: 
query I rowsort label-8260
SELECT ALL - + CASE + - NULLIF ( + COUNT( ALL - - 17 ), + 25 * 80 + 1 ) WHEN + + 75 THEN NULL WHEN + ( + COUNT( * ) ) THEN + 13 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8260
SELECT ALL - + CASE + - NULLIF ( + COUNT ( ALL - - 17 ), + 25 * 80 + 1 ) WHEN + + 75 THEN NULL WHEN + ( + COUNT ( * ) ) THEN + 13 END AS col0
----
NULL

query II rowsort
SELECT 48 - + - 8 AS col2, 54
----
56
54

query I rowsort
SELECT + 38 + - - 5 * 58
----
328

onlyif mysql # aggregate syntax: 
query I rowsort label-8263
SELECT ALL + CASE - + 96 WHEN + + 47 + 39 / - - COUNT( * ) THEN - - 8 + CASE - + 95 WHEN + 52 THEN 14 ELSE NULL END ELSE NULL END * 77 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8263
SELECT ALL + CASE - + 96 WHEN + + 47 + 39 / - - COUNT ( * ) THEN - - 8 + CASE - + 95 WHEN + 52 THEN 14 ELSE NULL END ELSE NULL END * 77 col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8264
SELECT ALL - 63 DIV + SUM( DISTINCT + CAST( + + 66 AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-8264
SELECT ALL - 63 / + SUM ( DISTINCT + CAST ( + + 66 AS INTEGER ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8265
SELECT ALL + + COUNT( + 25 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8265
SELECT ALL + + COUNT ( + 25 ) AS col0
----
1

query I rowsort
SELECT DISTINCT 24 * 92
----
2208

onlyif mysql # aggregate syntax: 
query II rowsort label-8267
SELECT DISTINCT - SUM( ALL - 26 ) * + 80 AS col1, - 48
----
2080
-48

skipif mysql # not compatible
query II rowsort label-8267
SELECT DISTINCT - SUM ( ALL - 26 ) * + 80 AS col1, - 48
----
2080
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-8268
SELECT ALL CASE + ( - 53 ) WHEN - AVG ( DISTINCT + - 63 ) + COUNT( * ) THEN NULL ELSE - 16 END
----
-16

skipif mysql # not compatible
query I rowsort label-8268
SELECT ALL CASE + ( - 53 ) WHEN - AVG ( DISTINCT + - 63 ) + COUNT ( * ) THEN NULL ELSE - 16 END
----
-16

query I rowsort
SELECT ALL 59 + - 90
----
-31

query I rowsort
SELECT DISTINCT + 90 * 51 AS col0
----
4590

query I rowsort
SELECT DISTINCT 88 + + + 43 + 19 AS col0
----
150

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8272
SELECT + COUNT( * ) DIV - 89
----
0

skipif mysql # not compatible
query I rowsort label-8272
SELECT + COUNT ( * ) / - 89
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8273
SELECT ALL 23 + + 58 + 5 + - 46 + CAST( NULL AS SIGNED ) * + 41 / - - 88 + - AVG ( ALL - 55 ) + + - 42 * + MIN( ALL 44 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8273
SELECT ALL 23 + + 58 + 5 + - 46 + CAST ( NULL AS INTEGER ) * + 41 / - - 88 + - AVG ( ALL - 55 ) + + - 42 * + MIN ( ALL 44 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8274
SELECT - 40 AS col1, CAST( + 21 AS SIGNED ), - - 10 AS col0
----
-40
21
10

skipif mysql # not compatible
query III rowsort label-8274
SELECT - 40 AS col1, CAST ( + 21 AS INTEGER ), - - 10 AS col0
----
-40
21
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8275
SELECT + CAST( NULL AS SIGNED ) * 85
----
NULL

skipif mysql # not compatible
query I rowsort label-8275
SELECT + CAST ( NULL AS INTEGER ) * 85
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8276
SELECT + 11 + - 67 DIV - 22 AS col0
----
14

skipif mysql # not compatible
query I rowsort label-8276
SELECT + 11 + - 67 / - 22 AS col0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8277
SELECT - COUNT( + - 78 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8277
SELECT - COUNT ( + - 78 ) AS col0
----
-1

query II rowsort
SELECT 62, - 22 + - 69 col1
----
62
-91

query II rowsort
SELECT DISTINCT 3 AS col2, 38
----
3
38

onlyif mysql # DIV for integer division: 
query I rowsort label-8280
SELECT DISTINCT 22 + 49 + 21 + + + 60 * 16 DIV 31 * - 52 + - 11
----
-1479

skipif mysql # not compatible
query I rowsort label-8280
SELECT DISTINCT 22 + 49 + 21 + + + 60 * 16 / 31 * - 52 + - 11
----
-1479

onlyif mysql # aggregate syntax: 
query I rowsort label-8281
SELECT ALL COALESCE ( ( 25 ), + 78 - SUM( + 64 ), - 22 ) + - + 29 + 73 - - 46 * 46
----
2185

skipif mysql # not compatible
query I rowsort label-8281
SELECT ALL COALESCE ( ( 25 ), + 78 - SUM ( + 64 ), - 22 ) + - + 29 + 73 - - 46 * 46
----
2185

onlyif mysql # DIV for integer division: 
query I rowsort label-8282
SELECT DISTINCT 16 * 56 DIV - 53
----
-16

skipif mysql # not compatible
query I rowsort label-8282
SELECT DISTINCT 16 * 56 / - 53
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-8283
SELECT + 28 DIV - 46
----
0

skipif mysql # not compatible
query I rowsort label-8283
SELECT + 28 / - 46
----
0

query I rowsort
SELECT ALL 51 * 25
----
1275

query I rowsort
SELECT ALL COALESCE ( 39, - - 77, - + 66 * + 21 ) - + 58 AS col0
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8286
SELECT ALL CAST( + 72 AS SIGNED )
----
72

skipif mysql # not compatible
query I rowsort label-8286
SELECT ALL CAST ( + 72 AS INTEGER )
----
72

query I rowsort
SELECT + ( - 32 ) * + 64 col1
----
-2048

query II rowsort
SELECT ALL 75 * - 88 * - - 82 AS col1, + 37
----
-541200
37

onlyif mysql # aggregate syntax: 
query I rowsort label-8289
SELECT DISTINCT + + MIN( ALL - 68 ) AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-8289
SELECT DISTINCT + + MIN ( ALL - 68 ) AS col1
----
-68

query I rowsort
SELECT DISTINCT + + CASE 41 WHEN 81 + + ( - 29 ) * - + COALESCE ( 29, 79 * + - 86 + - 43 + 28 ) THEN + 26 + 49 WHEN 57 THEN NULL ELSE - 71 END
----
-71

query II rowsort
SELECT DISTINCT - + 74 * - 52 - + - 4 * + 11 * - - 64 AS col2, 9
----
6664
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8292
SELECT COUNT( * ) * - 55 + + NULLIF ( 20, 13 + + - ( - 17 ) )
----
-35

skipif mysql # not compatible
query I rowsort label-8292
SELECT COUNT ( * ) * - 55 + + NULLIF ( 20, 13 + + - ( - 17 ) )
----
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-8293
SELECT - 64 DIV - - 48 - 28 * + 51 - - 6 * + - 45 col1
----
-1699

skipif mysql # not compatible
query I rowsort label-8293
SELECT - 64 / - - 48 - 28 * + 51 - - 6 * + - 45 col1
----
-1699

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8294
SELECT ALL + ( + ( CAST( 50 AS SIGNED ) ) ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-8294
SELECT ALL + ( + ( CAST ( 50 AS INTEGER ) ) ) AS col2
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8295
SELECT + - MIN( DISTINCT + 97 ) DIV ( + SUM( DISTINCT + - 4 ) ) + + - 91 + 1
----
-66

skipif mysql # not compatible
query I rowsort label-8295
SELECT + - MIN ( DISTINCT + 97 ) / ( + SUM ( DISTINCT + - 4 ) ) + + - 91 + 1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-8296
SELECT + 72 * - SUM( DISTINCT - - 42 ) + 5
----
-3019

skipif mysql # not compatible
query I rowsort label-8296
SELECT + 72 * - SUM ( DISTINCT - - 42 ) + 5
----
-3019

onlyif mysql # aggregate syntax: 
query I rowsort label-8297
SELECT + CASE - 41 WHEN 27 * + 19 THEN - COUNT( * ) * - 8 * - 0 WHEN + 24 THEN - MIN( DISTINCT + 26 ) + + 76 * + 93 ELSE - CASE COUNT( * ) WHEN AVG ( ( + 70 ) ) THEN 65 * 80 END + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8297
SELECT + CASE - 41 WHEN 27 * + 19 THEN - COUNT ( * ) * - 8 * - 0 WHEN + 24 THEN - MIN ( DISTINCT + 26 ) + + 76 * + 93 ELSE - CASE COUNT ( * ) WHEN AVG ( ( + 70 ) ) THEN 65 * 80 END + COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8298
SELECT ALL + COUNT( * ) AS col0, COUNT( * ) * - COUNT( * ) + COUNT( * ) AS col0
----
1
0

skipif mysql # not compatible
query II rowsort label-8298
SELECT ALL + COUNT ( * ) AS col0, COUNT ( * ) * - COUNT ( * ) + COUNT ( * ) AS col0
----
1
0

query I rowsort
SELECT DISTINCT + 34 * + + 36
----
1224

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8300
SELECT ALL + 50 * + CAST( + 27 AS SIGNED ) + + 41 + + + 76, 93 AS col1
----
1467
93

skipif mysql # not compatible
query II rowsort label-8300
SELECT ALL + 50 * + CAST ( + 27 AS INTEGER ) + + 41 + + + 76, 93 AS col1
----
1467
93

onlyif mysql # DIV for integer division: 
query I rowsort label-8301
SELECT - 36 DIV + 97
----
0

skipif mysql # not compatible
query I rowsort label-8301
SELECT - 36 / + 97
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8302
SELECT - 41 * + COUNT( * ) * ( + 20 ) col2
----
-820

skipif mysql # not compatible
query I rowsort label-8302
SELECT - 41 * + COUNT ( * ) * ( + 20 ) col2
----
-820

query I rowsort
SELECT ALL 72 * 75 + - + 22 AS col2
----
5378

onlyif mysql # aggregate syntax: 
query II rowsort label-8304
SELECT + COUNT( * ) AS col2, 5
----
1
5

skipif mysql # not compatible
query II rowsort label-8304
SELECT + COUNT ( * ) AS col2, 5
----
1
5

query I rowsort
SELECT COALESCE ( + - 91, - 34 )
----
-91

query I rowsort
SELECT ALL 78 * - 99 + + 70
----
-7652

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8307
SELECT ALL CAST( + 59 AS SIGNED ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-8307
SELECT ALL CAST ( + 59 AS INTEGER ) AS col0
----
59

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8308
SELECT - COUNT( * ) + + 83 + + 15 * + + ( + 74 ) / + + COUNT( * ) * + 64 + - 7 + ( SUM( ALL + CAST( NULL AS DECIMAL ) ) ) * 23
----
NULL

skipif mysql # not compatible
query I rowsort label-8308
SELECT - COUNT ( * ) + + 83 + + 15 * + + ( + 74 ) / + + COUNT ( * ) * + 64 + - 7 + ( SUM ( ALL + CAST ( NULL AS REAL ) ) ) * 23
----
NULL

query I rowsort
SELECT + 11 * - + 5 AS col0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-8310
SELECT DISTINCT NULLIF ( + MIN( ALL 22 ), + ( 53 ) * - 71 + - MAX( 54 ) * - + 69 ) col0
----
22

skipif mysql # not compatible
query I rowsort label-8310
SELECT DISTINCT NULLIF ( + MIN ( ALL 22 ), + ( 53 ) * - 71 + - MAX ( 54 ) * - + 69 ) col0
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8311
SELECT DISTINCT - 12 * - 16 + CASE - AVG ( CAST( NULL AS SIGNED ) ) WHEN - MAX( ALL 21 ) THEN - 89 * 5 / - 77 - + 98 WHEN 80 THEN NULL END + - 68
----
NULL

skipif mysql # not compatible
query I rowsort label-8311
SELECT DISTINCT - 12 * - 16 + CASE - AVG ( CAST ( NULL AS INTEGER ) ) WHEN - MAX ( ALL 21 ) THEN - 89 * 5 / - 77 - + 98 WHEN 80 THEN NULL END + - 68
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8312
SELECT DISTINCT 84 * MIN( + 58 ) + + 82 + 45 - - + ( + + 74 ) AS col2
----
5073

skipif mysql # not compatible
query I rowsort label-8312
SELECT DISTINCT 84 * MIN ( + 58 ) + + 82 + 45 - - + ( + + 74 ) AS col2
----
5073

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8313
SELECT ALL COUNT( + 97 ) + - 46 - 28 * - + ( - 39 ) * + CAST( + 66 AS SIGNED ) * - SUM( 42 ) AS col0
----
3026979

skipif mysql # not compatible
query I rowsort label-8313
SELECT ALL COUNT ( + 97 ) + - 46 - 28 * - + ( - 39 ) * + CAST ( + 66 AS INTEGER ) * - SUM ( 42 ) AS col0
----
3026979

query I rowsort
SELECT - 75 - - - 43 AS col2
----
-118

onlyif mysql # aggregate syntax: 
query I rowsort label-8315
SELECT ALL + COUNT( * ) * - ( + NULLIF ( - 3, - 89 * - 20 + + 9 * COUNT( * ) ) ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-8315
SELECT ALL + COUNT ( * ) * - ( + NULLIF ( - 3, - 89 * - 20 + + 9 * COUNT ( * ) ) ) AS col2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8316
SELECT ALL CAST( NULL AS SIGNED ) AS col2, - 95
----
NULL
-95

skipif mysql # not compatible
query II rowsort label-8316
SELECT ALL CAST ( NULL AS INTEGER ) AS col2, - 95
----
NULL
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8317
SELECT + 52 - 87 + + - CAST( 31 AS SIGNED ) * - 51 * + COUNT( * ) AS col2
----
1546

skipif mysql # not compatible
query I rowsort label-8317
SELECT + 52 - 87 + + - CAST ( 31 AS INTEGER ) * - 51 * + COUNT ( * ) AS col2
----
1546

query II rowsort
SELECT ALL 7 AS col2, 69 * - 86
----
7
-5934

query II rowsort
SELECT 26 AS col1, + 89 AS col0
----
26
89

onlyif mysql # aggregate syntax: 
query I rowsort label-8320
SELECT - COALESCE ( - 50, + - 90 * - 40 * - 66 - + 51 + 33, COUNT( * ) ) + 35 + - 43
----
42

skipif mysql # not compatible
query I rowsort label-8320
SELECT - COALESCE ( - 50, + - 90 * - 40 * - 66 - + 51 + 33, COUNT ( * ) ) + 35 + - 43
----
42

query I rowsort
SELECT + 45 * + COALESCE ( ( + 50 ), + 36 ) AS col2
----
2250

onlyif mysql # DIV for integer division: 
query I rowsort label-8322
SELECT - 16 + + - 88 DIV 88 AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-8322
SELECT - 16 + + - 88 / 88 AS col0
----
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-8323
SELECT - 92 + COALESCE ( - MIN( ALL + 25 ), 7, - 10 ) AS col1, - 83 AS col1
----
-117
-83

skipif mysql # not compatible
query II rowsort label-8323
SELECT - 92 + COALESCE ( - MIN ( ALL + 25 ), 7, - 10 ) AS col1, - 83 AS col1
----
-117
-83

onlyif mysql # DIV for integer division: 
query II rowsort label-8324
SELECT DISTINCT ( + 78 ) col2, 89 DIV 69
----
78
1

skipif mysql # not compatible
query II rowsort label-8324
SELECT DISTINCT ( + 78 ) col2, 89 / 69
----
78
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8325
SELECT ALL + COUNT( + 65 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8325
SELECT ALL + COUNT ( + 65 ) AS col2
----
1

query II rowsort
SELECT DISTINCT 76 col1, - 6 AS col1
----
76
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8327
SELECT + + 79 + ( - 78 ) - + 91 - - COUNT( * ) * - - COUNT( * ) DIV + ( - 65 )
----
-90

skipif mysql # not compatible
query I rowsort label-8327
SELECT + + 79 + ( - 78 ) - + 91 - - COUNT ( * ) * - - COUNT ( * ) / + ( - 65 )
----
-90

query I rowsort
SELECT + - 62 * + - 41 AS col1
----
2542

query I rowsort
SELECT ALL 9 * + 26 - + 46
----
188

query II rowsort
SELECT 88, 75 AS col0
----
88
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8331
SELECT DISTINCT - 74 + - NULLIF ( + - 59, 68 + - + 86 * + + 28 - + 44 + CAST( + - 19 AS SIGNED ) * + 46 ) + COUNT( * ) AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-8331
SELECT DISTINCT - 74 + - NULLIF ( + - 59, 68 + - + 86 * + + 28 - + 44 + CAST ( + - 19 AS INTEGER ) * + 46 ) + COUNT ( * ) AS col2
----
-14

query I rowsort
SELECT ALL - 16 + + 25 + - - 45 + - - 70 * - - 7 + + 54 * - 27 + - 26 col0
----
-940

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8333
SELECT + 7 * + CASE + SUM( ALL + + 52 ) WHEN CAST( + 75 AS SIGNED ) / + + COUNT( * ) THEN - COUNT( * ) END + + + 74, 28 col1
----
NULL
28

skipif mysql # not compatible
query II rowsort label-8333
SELECT + 7 * + CASE + SUM ( ALL + + 52 ) WHEN CAST ( + 75 AS INTEGER ) / + + COUNT ( * ) THEN - COUNT ( * ) END + + + 74, 28 col1
----
NULL
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8334
SELECT DISTINCT - 30 + - - COUNT( * ) DIV ( + 50 )
----
-30

skipif mysql # not compatible
query I rowsort label-8334
SELECT DISTINCT - 30 + - - COUNT ( * ) / ( + 50 )
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8335
SELECT DISTINCT + CAST( NULL AS SIGNED ) / + SUM( ( + 27 ) ) * 8 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8335
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / + SUM ( ( + 27 ) ) * 8 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8336
SELECT DISTINCT COUNT( * ) + + 37 AS col2, 27 * - 23 + - 86 + + - 61
----
38
-768

skipif mysql # not compatible
query II rowsort label-8336
SELECT DISTINCT COUNT ( * ) + + 37 AS col2, 27 * - 23 + - 86 + + - 61
----
38
-768

query I rowsort
SELECT + ( + + 19 ) AS col0
----
19

query I rowsort
SELECT 85 + + 35
----
120

query I rowsort
SELECT 18 * 81 + - 36
----
1422

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8340
SELECT 1 - 3 + - 87 AS col1, - CAST( NULL AS SIGNED ) / + + NULLIF ( + 80, + + 83 ) * + 24 * + - 21 * 20, + 4 AS col0
----
-89
NULL
4

skipif mysql # not compatible
query III rowsort label-8340
SELECT 1 - 3 + - 87 AS col1, - CAST ( NULL AS INTEGER ) / + + NULLIF ( + 80, + + 83 ) * + 24 * + - 21 * 20, + 4 AS col0
----
-89
NULL
4

query I rowsort
SELECT ALL - NULLIF ( 33, - 22 * + 31 )
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8342
SELECT DISTINCT - ( - 80 ) AS col0, + NULLIF ( 88, - - CAST( - 13 AS SIGNED ) )
----
80
88

skipif mysql # not compatible
query II rowsort label-8342
SELECT DISTINCT - ( - 80 ) AS col0, + NULLIF ( 88, - - CAST ( - 13 AS INTEGER ) )
----
80
88

query I rowsort
SELECT ALL - COALESCE ( - - 23, + 69 ) + - 38 + + 84 * 55
----
4559

query I rowsort
SELECT DISTINCT 5 * 0 AS col2
----
0

query I rowsort
SELECT 1 + - 26 AS col1
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-8346
SELECT ALL - 28 * + + 62 * - - MAX( + ( - 31 ) )
----
53816

skipif mysql # not compatible
query I rowsort label-8346
SELECT ALL - 28 * + + 62 * - - MAX ( + ( - 31 ) )
----
53816

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8347
SELECT 55 * + - 11 * + COALESCE ( - COUNT( * ), - - 48 ) / + ( + 57 ) * - 3 * 11 * 48 + - CASE + AVG ( ALL + CAST( NULL AS SIGNED ) ) WHEN + CAST( NULL AS SIGNED ) THEN NULL WHEN 82 + 46 THEN NULL ELSE + COUNT( * ) * CASE 88 WHEN + 21 THEN NULL WHEN + 69 THEN 52 + 56 WHEN 42 THEN NULL END END
----
NULL

skipif mysql # not compatible
query I rowsort label-8347
SELECT 55 * + - 11 * + COALESCE ( - COUNT ( * ), - - 48 ) / + ( + 57 ) * - 3 * 11 * 48 + - CASE + AVG ( ALL + CAST ( NULL AS INTEGER ) ) WHEN + CAST ( NULL AS INTEGER ) THEN NULL WHEN 82 + 46 THEN NULL ELSE + COUNT ( * ) * CASE 88 WHEN + 21 THEN NULL WHEN + 69 THEN 52 + 56 WHEN 42 THEN NULL END END
----
NULL

query I rowsort
SELECT 20 + - ( + 69 ) - - 20
----
-29

query I rowsort
SELECT 19 * - + NULLIF ( + COALESCE ( + 24, 6, 80 ), + 90 + - + 3 * + + 86 ) AS col0
----
-456

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8350
SELECT ALL + CAST( - 41 AS SIGNED ) * - 31
----
1271

skipif mysql # not compatible
query I rowsort label-8350
SELECT ALL + CAST ( - 41 AS INTEGER ) * - 31
----
1271

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8351
SELECT COUNT( DISTINCT + + 37 ) DIV - - SUM( - - 66 )
----
0

skipif mysql # not compatible
query I rowsort label-8351
SELECT COUNT ( DISTINCT + + 37 ) / - - SUM ( - - 66 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8352
SELECT ALL + + MAX( ALL - + 26 ) DIV 56 * - ( + - 1 ) DIV + - ( 39 ) AS col1, 11
----
0
11

skipif mysql # not compatible
query II rowsort label-8352
SELECT ALL + + MAX ( ALL - + 26 ) / 56 * - ( + - 1 ) / + - ( 39 ) AS col1, 11
----
0
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8353
SELECT DISTINCT 36 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8353
SELECT DISTINCT 36 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + NULLIF ( 69, - + 3 ) * - - 0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8355
SELECT - CAST( + 16 AS SIGNED ) col1, 30 col0
----
-16
30

skipif mysql # not compatible
query II rowsort label-8355
SELECT - CAST ( + 16 AS INTEGER ) col1, 30 col0
----
-16
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8356
SELECT 33 DIV + - MAX( ALL - + 8 ) + 96 + - COUNT( * ) + - + 80
----
19

skipif mysql # not compatible
query I rowsort label-8356
SELECT 33 / + - MAX ( ALL - + 8 ) + 96 + - COUNT ( * ) + - + 80
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8357
SELECT ALL - COUNT( * ) * - MIN( DISTINCT - + NULLIF ( 92, 54 ) ) DIV - + 30
----
3

skipif mysql # not compatible
query I rowsort label-8357
SELECT ALL - COUNT ( * ) * - MIN ( DISTINCT - + NULLIF ( 92, 54 ) ) / - + 30
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8358
SELECT 23 * - CAST( NULL AS SIGNED ) col1, COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-8358
SELECT 23 * - CAST ( NULL AS INTEGER ) col1, COUNT ( * )
----
NULL
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8359
SELECT - 81 - COUNT( * ) * + 51 DIV 97
----
-81

skipif mysql # not compatible
query I rowsort label-8359
SELECT - 81 - COUNT ( * ) * + 51 / 97
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8360
SELECT COUNT( * ) * + COUNT( * ) + + 96 AS col0
----
97

skipif mysql # not compatible
query I rowsort label-8360
SELECT COUNT ( * ) * + COUNT ( * ) + + 96 AS col0
----
97

query I rowsort
SELECT ALL - 87 + 92 AS col2
----
5

query II rowsort
SELECT ALL + ( 38 ) * + 48 AS col0, 5 * 36 AS col0
----
1824
180

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8363
SELECT ALL 10 + + - COUNT( DISTINCT + ( + 91 ) ) * + - 10 + + + ( + 93 ) + + + AVG ( - 55 ) + - CASE COUNT( * ) WHEN - + 77 THEN - 13 WHEN + 80 THEN NULL END * - ( MIN( DISTINCT 58 ) + 5 * CAST( NULL AS SIGNED ) ) * 32 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8363
SELECT ALL 10 + + - COUNT ( DISTINCT + ( + 91 ) ) * + - 10 + + + ( + 93 ) + + + AVG ( - 55 ) + - CASE COUNT ( * ) WHEN - + 77 THEN - 13 WHEN + 80 THEN NULL END * - ( MIN ( DISTINCT 58 ) + 5 * CAST ( NULL AS INTEGER ) ) * 32 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8364
SELECT ALL 23 + + NULLIF ( + COUNT( * ), + COALESCE ( + - 59, ( + - 91 ) ) ) + - 77 + + MAX( 57 )
----
4

skipif mysql # not compatible
query I rowsort label-8364
SELECT ALL 23 + + NULLIF ( + COUNT ( * ), + COALESCE ( + - 59, ( + - 91 ) ) ) + - 77 + + MAX ( 57 )
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8365
SELECT ALL + 51 + - 23 + + 95 * - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8365
SELECT ALL + 51 + - 23 + + 95 * - CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8366
SELECT - 57 DIV + 6 + - 94 AS col0, - 54 + - 88 AS col2
----
-103
-142

skipif mysql # not compatible
query II rowsort label-8366
SELECT - 57 / + 6 + - 94 AS col0, - 54 + - 88 AS col2
----
-103
-142

onlyif mysql # aggregate syntax: 
query I rowsort label-8367
SELECT DISTINCT 42 * COUNT( * ) * 75
----
3150

skipif mysql # not compatible
query I rowsort label-8367
SELECT DISTINCT 42 * COUNT ( * ) * 75
----
3150

query II rowsort
SELECT + 26 AS col1, 65 * + 85 * + 95 AS col0
----
26
524875

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8369
SELECT 11 + + NULLIF ( - CASE - 82 WHEN + - COALESCE ( 34, + 29 ) THEN NULL WHEN + + AVG ( - 37 ) + + 41 + - + 33 + 82 DIV + 24 * 24 THEN NULL ELSE - 13 DIV - 1 END, 63 * + 30 - COUNT( * ) ) - - 15 DIV - 33 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-8369
SELECT 11 + + NULLIF ( - CASE - 82 WHEN + - COALESCE ( 34, + 29 ) THEN NULL WHEN + + AVG ( - 37 ) + + 41 + - + 33 + 82 / + 24 * 24 THEN NULL ELSE - 13 / - 1 END, 63 * + 30 - COUNT ( * ) ) - - 15 / - 33 AS col0
----
-2

query I rowsort
SELECT - 32 * - - 91 - - 44 AS col1
----
-2868

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8371
SELECT ( 12 ) * - ( COALESCE ( - + 51, + CAST( + COUNT( * ) AS SIGNED ) - - + 52 + CAST( NULL AS SIGNED ) ) ) col2, COALESCE ( COUNT( * ), 82 + + CAST( 1 AS SIGNED ) ) * - 92
----
612
-92

skipif mysql # not compatible
query II rowsort label-8371
SELECT ( 12 ) * - ( COALESCE ( - + 51, + CAST ( + COUNT ( * ) AS INTEGER ) - - + 52 + CAST ( NULL AS INTEGER ) ) ) col2, COALESCE ( COUNT ( * ), 82 + + CAST ( 1 AS INTEGER ) ) * - 92
----
612
-92

query I rowsort
SELECT DISTINCT 6 * + 37 AS col2
----
222

query I rowsort
SELECT DISTINCT + 68 - - 1 col2
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8374
SELECT ALL + COUNT( 50 ) DIV - 52 AS col0, + ( - 31 )
----
0
-31

skipif mysql # not compatible
query II rowsort label-8374
SELECT ALL + COUNT ( 50 ) / - 52 AS col0, + ( - 31 )
----
0
-31

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8375
SELECT ( 18 ) DIV - COALESCE ( + + 23, + COALESCE ( 19, - 50 ) ) + CAST( - 11 AS SIGNED ) AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-8375
SELECT ( 18 ) / - COALESCE ( + + 23, + COALESCE ( 19, - 50 ) ) + CAST ( - 11 AS INTEGER ) AS col1
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-8376
SELECT MIN( ALL COALESCE ( 41, + 75 * + ( - ( + + 1 ) ) * - 89 * - 4 * - 18 ) ) - + ( + 65 )
----
-24

skipif mysql # not compatible
query I rowsort label-8376
SELECT MIN ( ALL COALESCE ( 41, + 75 * + ( - ( + + 1 ) ) * - 89 * - 4 * - 18 ) ) - + ( + 65 )
----
-24

query I rowsort
SELECT 26 * + 78 * - + 9 * COALESCE ( - 29, - 83 )
----
529308

query I rowsort
SELECT 29 * + 38 AS col2
----
1102

onlyif mysql # aggregate syntax: 
query I rowsort label-8379
SELECT 0 + 23 - - 49 + 25 + - COUNT( * ) - - - 90 + - 18 * - 94 * + 56
----
94758

skipif mysql # not compatible
query I rowsort label-8379
SELECT 0 + 23 - - 49 + 25 + - COUNT ( * ) - - - 90 + - 18 * - 94 * + 56
----
94758

onlyif mysql # DIV for integer division: 
query II rowsort label-8380
SELECT 36 DIV 87 * - - 29 AS col0, - 44
----
0
-44

skipif mysql # not compatible
query II rowsort label-8380
SELECT 36 / 87 * - - 29 AS col0, - 44
----
0
-44

query I rowsort
SELECT ALL 28 * + 55 AS col2
----
1540

onlyif mysql # aggregate syntax: 
query I rowsort label-8382
SELECT COALESCE ( - + MIN( DISTINCT - 74 ), CASE 45 WHEN + - 20 THEN - 30 ELSE NULL END ) + - + COUNT( * )
----
73

skipif mysql # not compatible
query I rowsort label-8382
SELECT COALESCE ( - + MIN ( DISTINCT - 74 ), CASE 45 WHEN + - 20 THEN - 30 ELSE NULL END ) + - + COUNT ( * )
----
73

query I rowsort
SELECT - NULLIF ( + - 70, + - 91 + + ( - + NULLIF ( + 10, - - 0 ) ) ) col1
----
70

query I rowsort
SELECT 35 - + ( 54 ) + 49 col1
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8385
SELECT - COUNT( * ) + COUNT( * ) + - - ( + + 48 ) - - 60 DIV 31 + - + 72 * 93 * + 1
----
-6647

skipif mysql # not compatible
query I rowsort label-8385
SELECT - COUNT ( * ) + COUNT ( * ) + - - ( + + 48 ) - - 60 / 31 + - + 72 * 93 * + 1
----
-6647

onlyif mysql # aggregate syntax: 
query I rowsort label-8386
SELECT - CASE + 2 WHEN ( + + NULLIF ( 59, + - 82 * 6 * 5 ) ) * + COUNT( * ) + + 83 THEN - + 27 * + 84 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8386
SELECT - CASE + 2 WHEN ( + + NULLIF ( 59, + - 82 * 6 * 5 ) ) * + COUNT ( * ) + + 83 THEN - + 27 * + 84 END
----
NULL

query I rowsort
SELECT ALL ( - + ( + 21 ) ) AS col2
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-8388
SELECT - + MIN( - 90 ) - - 2
----
92

skipif mysql # not compatible
query I rowsort label-8388
SELECT - + MIN ( - 90 ) - - 2
----
92

query II rowsort
SELECT DISTINCT 11 AS col2, 32 * - 66 * + 58 + 2
----
11
-122494

query I rowsort
SELECT DISTINCT + 74 + 99 col1
----
173

query I rowsort
SELECT ALL - + 61 + 4 AS col2
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8392
SELECT - NULLIF ( - 63, COUNT( * ) * + - MIN( DISTINCT + + 58 ) + 58 ) DIV + 92 - + ( - 38 ) + + - 44 DIV CAST( - 75 AS SIGNED ) DIV - MIN( 65 )
----
38

skipif mysql # not compatible
query I rowsort label-8392
SELECT - NULLIF ( - 63, COUNT ( * ) * + - MIN ( DISTINCT + + 58 ) + 58 ) / + 92 - + ( - 38 ) + + - 44 / CAST ( - 75 AS INTEGER ) / - MIN ( 65 )
----
38

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8393
SELECT DISTINCT - - 31 + CAST( NULL AS DECIMAL ) * + 87 + 14 + - 40 + - - 33
----
NULL

skipif mysql # not compatible
query I rowsort label-8393
SELECT DISTINCT - - 31 + CAST ( NULL AS REAL ) * + 87 + 14 + - 40 + - - 33
----
NULL

query I rowsort
SELECT - 82 * + 40 AS col1
----
-3280

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8395
SELECT + COALESCE ( - 89, + NULLIF ( 6, + + 21 DIV COUNT( * ) + 27 ), + 69 DIV 86 + - - 36 + - 85 + COUNT( - 92 ) ) DIV 39 + ( - MAX( ALL 4 ) + - 57 * 54 ) DIV - 74 AS col1
----
39

skipif mysql # not compatible
query I rowsort label-8395
SELECT + COALESCE ( - 89, + NULLIF ( 6, + + 21 / COUNT ( * ) + 27 ), + 69 / 86 + - - 36 + - 85 + COUNT ( - 92 ) ) / 39 + ( - MAX ( ALL 4 ) + - 57 * 54 ) / - 74 AS col1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-8396
SELECT - - 84 + + MIN( ALL - 99 ) * + - COUNT( * )
----
183

skipif mysql # not compatible
query I rowsort label-8396
SELECT - - 84 + + MIN ( ALL - 99 ) * + - COUNT ( * )
----
183

onlyif mysql # aggregate syntax: 
query I rowsort label-8397
SELECT DISTINCT 3 * + 62 - + COALESCE ( - - 6, - COUNT( * ) ) AS col0
----
180

skipif mysql # not compatible
query I rowsort label-8397
SELECT DISTINCT 3 * + 62 - + COALESCE ( - - 6, - COUNT ( * ) ) AS col0
----
180

query I rowsort
SELECT DISTINCT + 45 * 63 * + 28
----
79380

query I rowsort
SELECT - 0 + 22
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-8400
SELECT + COUNT( DISTINCT + + 33 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8400
SELECT + COUNT ( DISTINCT + + 33 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8401
SELECT - COUNT( * ) * - + 34 + - - 76 * - 9, + 22 AS col2
----
-650
22

skipif mysql # not compatible
query II rowsort label-8401
SELECT - COUNT ( * ) * - + 34 + - - 76 * - 9, + 22 AS col2
----
-650
22

query I rowsort
SELECT CASE - 53 WHEN ( + 58 ) THEN + 76 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8403
SELECT + 53 + + 26 + + 64 + 87 DIV + 58
----
144

skipif mysql # not compatible
query I rowsort label-8403
SELECT + 53 + + 26 + + 64 + 87 / + 58
----
144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8404
SELECT - CAST( NULL AS SIGNED ) * - 62 / 74 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8404
SELECT - CAST ( NULL AS INTEGER ) * - 62 / 74 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8405
SELECT + 65 * - 35 * - 60 + - 74 AS col0, CASE + 9 WHEN CASE 79 WHEN + 29 + - 54 + 82 - - CAST( NULL AS DECIMAL ) * + 7 THEN + COUNT( * ) ELSE - 29 * 26 + - 77 END THEN - 91 END col2
----
136426
NULL

skipif mysql # not compatible
query II rowsort label-8405
SELECT + 65 * - 35 * - 60 + - 74 AS col0, CASE + 9 WHEN CASE 79 WHEN + 29 + - 54 + 82 - - CAST ( NULL AS REAL ) * + 7 THEN + COUNT ( * ) ELSE - 29 * 26 + - 77 END THEN - 91 END col2
----
136426
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8406
SELECT DISTINCT ( CAST( NULL AS SIGNED ) ) * + + 63 + - - 71 * + 55 * 63 * COUNT( * ) * 16 + + COALESCE ( + 26, - + COUNT( * ) / 83 / ( + 92 ) - 60 * COUNT( * ) + + 40 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8406
SELECT DISTINCT ( CAST ( NULL AS INTEGER ) ) * + + 63 + - - 71 * + 55 * 63 * COUNT ( * ) * 16 + + COALESCE ( + 26, - + COUNT ( * ) / 83 / ( + 92 ) - 60 * COUNT ( * ) + + 40 ) AS col0
----
NULL

query I rowsort
SELECT + 22 - + - 99 * 19 + + 48
----
1951

query I rowsort
SELECT ALL 87 * + 35 col0
----
3045

query I rowsort
SELECT + 93 * NULLIF ( + - 81, - - 71 - + + 98 * - 26 ) AS col0
----
-7533

onlyif mysql # aggregate syntax: 
query I rowsort label-8410
SELECT DISTINCT + COALESCE ( 66, ( - 99 ) * COUNT( * ) - + COUNT( * ), + 33, - - 87 ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-8410
SELECT DISTINCT + COALESCE ( 66, ( - 99 ) * COUNT ( * ) - + COUNT ( * ), + 33, - - 87 ) AS col1
----
66

query I rowsort
SELECT DISTINCT - 83 * - ( 77 ) AS col2
----
6391

query I rowsort
SELECT + 86 + + 33
----
119

onlyif mysql # DIV for integer division: 
query I rowsort label-8413
SELECT + 45 DIV - 10 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-8413
SELECT + 45 / - 10 AS col2
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-8414
SELECT COUNT( ALL + 82 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8414
SELECT COUNT ( ALL + 82 ) AS col2
----
1

query I rowsort
SELECT + - 50 * + 0
----
0

query I rowsort
SELECT + 97 + - - ( - 38 )
----
59

query II rowsort
SELECT - ( - NULLIF ( 53, + + 92 ) ) AS col1, 46 AS col0
----
53
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8418
SELECT - CASE - 38 WHEN - CAST( + 39 AS SIGNED ) - + CAST( + 56 AS SIGNED ) THEN NULL WHEN + 44 THEN 69 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8418
SELECT - CASE - 38 WHEN - CAST ( + 39 AS INTEGER ) - + CAST ( + 56 AS INTEGER ) THEN NULL WHEN + 44 THEN 69 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8419
SELECT ALL + 69 / - 30 * + - 24 * CAST( NULL AS SIGNED ) + - COALESCE ( + 61, - 9 ) - ( - + CASE + COUNT( * ) WHEN - 82 THEN NULL ELSE - 12 * 73 + - CASE 23 WHEN - MIN( ALL - 75 ) * - 94 THEN + 91 - - 67 END * - 72 END ) * + 38 * 1 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8419
SELECT ALL + 69 / - 30 * + - 24 * CAST ( NULL AS INTEGER ) + - COALESCE ( + 61, - 9 ) - ( - + CASE + COUNT ( * ) WHEN - 82 THEN NULL ELSE - 12 * 73 + - CASE 23 WHEN - MIN ( ALL - 75 ) * - 94 THEN + 91 - - 67 END * - 72 END ) * + 38 * 1 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8420
SELECT ALL + 11 + 80 + + MIN( + 7 ), 15 * 75 AS col1
----
98
1125

skipif mysql # not compatible
query II rowsort label-8420
SELECT ALL + 11 + 80 + + MIN ( + 7 ), 15 * 75 AS col1
----
98
1125

query I rowsort
SELECT - - 0 + - + 97
----
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-8422
SELECT + - 31 DIV 9 * 88 AS col1
----
-264

skipif mysql # not compatible
query I rowsort label-8422
SELECT + - 31 / 9 * 88 AS col1
----
-264

onlyif mysql # aggregate syntax: 
query I rowsort label-8423
SELECT ALL - + 8 * + 92 - + NULLIF ( - 37, + + 68 * - 97 * - MIN( 67 ) ) + - 10 * + + COUNT( * ) + 92
----
-617

skipif mysql # not compatible
query I rowsort label-8423
SELECT ALL - + 8 * + 92 - + NULLIF ( - 37, + + 68 * - 97 * - MIN ( 67 ) ) + - 10 * + + COUNT ( * ) + 92
----
-617

onlyif mysql # aggregate syntax: 
query I rowsort label-8424
SELECT + + MAX( - 29 ) * - 20 * + + NULLIF ( + MIN( ALL 17 ), 85 ) AS col0
----
9860

skipif mysql # not compatible
query I rowsort label-8424
SELECT + + MAX ( - 29 ) * - 20 * + + NULLIF ( + MIN ( ALL 17 ), 85 ) AS col0
----
9860

query I rowsort
SELECT ALL + 29 * - - 17
----
493

onlyif mysql # aggregate syntax: 
query I rowsort label-8426
SELECT ALL + NULLIF ( - 60, + COALESCE ( - - 53, - COUNT( * ) * - 87 + + - CASE 17 WHEN - + 32 + + COUNT( * ) THEN + 88 * + 54 + COUNT( * ) ELSE + + ( 65 ) * COUNT( * ) END ) / 56 ) col0
----
-60

skipif mysql # not compatible
query I rowsort label-8426
SELECT ALL + NULLIF ( - 60, + COALESCE ( - - 53, - COUNT ( * ) * - 87 + + - CASE 17 WHEN - + 32 + + COUNT ( * ) THEN + 88 * + 54 + COUNT ( * ) ELSE + + ( 65 ) * COUNT ( * ) END ) / 56 ) col0
----
-60

query I rowsort
SELECT - - 48 + 85 col1
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-8428
SELECT DISTINCT - 43 + MAX( - + 77 ) col1
----
-120

skipif mysql # not compatible
query I rowsort label-8428
SELECT DISTINCT - 43 + MAX ( - + 77 ) col1
----
-120

query I rowsort
SELECT ALL 83 + + CASE + + 41 WHEN + 80 * + 70 + - 99 THEN - + 88 WHEN - 55 THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8430
SELECT + + 4 - + COALESCE ( ( CASE - 36 WHEN - + 83 THEN 38 * + 23 WHEN + + 30 - - - 53 * - COALESCE ( + 10, + + 73 ) THEN + 93 ELSE 19 END ), + NULLIF ( + 95, - 22 ) * 39 + + MAX( ALL 19 ), - 50 )
----
-15

skipif mysql # not compatible
query I rowsort label-8430
SELECT + + 4 - + COALESCE ( ( CASE - 36 WHEN - + 83 THEN 38 * + 23 WHEN + + 30 - - - 53 * - COALESCE ( + 10, + + 73 ) THEN + 93 ELSE 19 END ), + NULLIF ( + 95, - 22 ) * 39 + + MAX ( ALL 19 ), - 50 )
----
-15

query I rowsort
SELECT ALL COALESCE ( 43, - + 65 ) AS col0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-8432
SELECT + - NULLIF ( + + 72, - 50 ) - - COUNT( * ) + + 25
----
-46

skipif mysql # not compatible
query I rowsort label-8432
SELECT + - NULLIF ( + + 72, - 50 ) - - COUNT ( * ) + + 25
----
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8433
SELECT - + 24 * + SUM( + 44 ) DIV COUNT( * ) AS col1, + ( - 96 ) col0
----
-1056
-96

skipif mysql # not compatible
query II rowsort label-8433
SELECT - + 24 * + SUM ( + 44 ) / COUNT ( * ) AS col1, + ( - 96 ) col0
----
-1056
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8434
SELECT DISTINCT - 2 - + - 68 + 78 + + 79 DIV - MIN( DISTINCT - 76 ) + + COUNT( * )
----
146

skipif mysql # not compatible
query I rowsort label-8434
SELECT DISTINCT - 2 - + - 68 + 78 + + 79 / - MIN ( DISTINCT - 76 ) + + COUNT ( * )
----
146

query I rowsort
SELECT - 59 * - 28
----
1652

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8436
SELECT ALL - 96 DIV SUM( DISTINCT - 14 ) * + - 98 * - - 10 col1
----
-5880

skipif mysql # not compatible
query I rowsort label-8436
SELECT ALL - 96 / SUM ( DISTINCT - 14 ) * + - 98 * - - 10 col1
----
-5880

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8437
SELECT ALL - CASE + 33 WHEN - 66 THEN - CAST( + 86 AS SIGNED ) * - 2 + + 85 WHEN - - 66 * COUNT( * ) * - 89 + - 7 * + + 38 THEN 51 END * 27 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8437
SELECT ALL - CASE + 33 WHEN - 66 THEN - CAST ( + 86 AS INTEGER ) * - 2 + + 85 WHEN - - 66 * COUNT ( * ) * - 89 + - 7 * + + 38 THEN 51 END * 27 col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8438
SELECT ALL + CAST( + - 92 AS SIGNED )
----
-92

skipif mysql # not compatible
query I rowsort label-8438
SELECT ALL + CAST ( + - 92 AS INTEGER )
----
-92

query I rowsort
SELECT ALL - 69 * - 8 AS col1
----
552

onlyif mysql # aggregate syntax: 
query II rowsort label-8440
SELECT - 23 * + 75 * - ( + SUM( ALL 35 ) ) AS col2, 47 * COUNT( + 64 )
----
60375
47

skipif mysql # not compatible
query II rowsort label-8440
SELECT - 23 * + 75 * - ( + SUM ( ALL 35 ) ) AS col2, 47 * COUNT ( + 64 )
----
60375
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8441
SELECT - CAST( 79 AS SIGNED ) * + COUNT( - 28 ) col1
----
-79

skipif mysql # not compatible
query I rowsort label-8441
SELECT - CAST ( 79 AS INTEGER ) * + COUNT ( - 28 ) col1
----
-79

query I rowsort
SELECT ALL + 96 * + + 29 AS col2
----
2784

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8443
SELECT CAST( NULL AS SIGNED ), + 43 AS col1
----
NULL
43

skipif mysql # not compatible
query II rowsort label-8443
SELECT CAST ( NULL AS INTEGER ), + 43 AS col1
----
NULL
43

onlyif mysql # aggregate syntax: 
query I rowsort label-8444
SELECT + COUNT( * ) + + - 4 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-8444
SELECT + COUNT ( * ) + + - 4 AS col0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8445
SELECT ALL - 24 DIV COUNT( * ) AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-8445
SELECT ALL - 24 / COUNT ( * ) AS col1
----
-24

query I rowsort
SELECT - 69 * + ( + 11 )
----
-759

query I rowsort
SELECT ( + ( - 93 ) ) AS col2
----
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8448
SELECT ALL + CASE - 53 WHEN + 35 THEN NULL ELSE + 38 - CAST( NULL AS SIGNED ) END col0, ( COUNT( * ) ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-8448
SELECT ALL + CASE - 53 WHEN + 35 THEN NULL ELSE + 38 - CAST ( NULL AS INTEGER ) END col0, ( COUNT ( * ) ) AS col2
----
NULL
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8449
SELECT ALL 47 * - 40 + + COALESCE ( - + 26, + 11 DIV - 91 )
----
-1906

skipif mysql # not compatible
query I rowsort label-8449
SELECT ALL 47 * - 40 + + COALESCE ( - + 26, + 11 / - 91 )
----
-1906

query I rowsort
SELECT + 39 * + NULLIF ( + 28, 58 * + 16 - 71 + + + ( - 47 ) - - ( AVG ( ALL + 76 ) ) ) * - 79 + - 11 * + + 53
----
-86851

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8451
SELECT ALL - COALESCE ( + 33, - 74 ) * - COALESCE ( + + ( - MAX( DISTINCT 9 ) ), - COUNT( * ), - 46 + - 23 + + CAST( - 8 AS SIGNED ) * + 98 ) * + - ( - 24 ) + - 23 * 4
----
-7220

skipif mysql # not compatible
query I rowsort label-8451
SELECT ALL - COALESCE ( + 33, - 74 ) * - COALESCE ( + + ( - MAX ( DISTINCT 9 ) ), - COUNT ( * ), - 46 + - 23 + + CAST ( - 8 AS INTEGER ) * + 98 ) * + - ( - 24 ) + - 23 * 4
----
-7220

query I rowsort
SELECT DISTINCT + ( + ( - 0 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8453
SELECT DISTINCT + 67 * + SUM( ALL - 48 ) + - 34 col1
----
-3250

skipif mysql # not compatible
query I rowsort label-8453
SELECT DISTINCT + 67 * + SUM ( ALL - 48 ) + - 34 col1
----
-3250

query I rowsort
SELECT DISTINCT - - 60 AS col2
----
60

query I rowsort
SELECT + 34 + - 62
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8456
SELECT ALL 87 + - - 93 * + + CAST( - + COUNT( * ) AS SIGNED ) * + 28 + + ( - - COUNT( * ) )
----
-2516

skipif mysql # not compatible
query I rowsort label-8456
SELECT ALL 87 + - - 93 * + + CAST ( - + COUNT ( * ) AS INTEGER ) * + 28 + + ( - - COUNT ( * ) )
----
-2516

onlyif mysql # aggregate syntax: 
query I rowsort label-8457
SELECT DISTINCT - COUNT( ALL - + 42 )
----
-1

skipif mysql # not compatible
query I rowsort label-8457
SELECT DISTINCT - COUNT ( ALL - + 42 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8458
SELECT + CAST( + - 25 AS SIGNED ) AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-8458
SELECT + CAST ( + - 25 AS INTEGER ) AS col0
----
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8459
SELECT COALESCE ( 87, + 62 * - 26 + + + 31 ) + - 27 * - COUNT( * ) - + 69 DIV + COUNT( ALL 18 )
----
45

skipif mysql # not compatible
query I rowsort label-8459
SELECT COALESCE ( 87, + 62 * - 26 + + + 31 ) + - 27 * - COUNT ( * ) - + 69 / + COUNT ( ALL 18 )
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8460
SELECT ALL + ( - 68 ) - + + 76 * - 5 * CAST( NULL AS SIGNED ) * - + 58
----
NULL

skipif mysql # not compatible
query I rowsort label-8460
SELECT ALL + ( - 68 ) - + + 76 * - 5 * CAST ( NULL AS INTEGER ) * - + 58
----
NULL

query II rowsort
SELECT ALL 24, 49 AS col1
----
24
49

onlyif mysql # aggregate syntax: 
query I rowsort label-8462
SELECT + MAX( DISTINCT - 87 ) + + + 25 * 46 col1
----
1063

skipif mysql # not compatible
query I rowsort label-8462
SELECT + MAX ( DISTINCT - 87 ) + + + 25 * 46 col1
----
1063

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8463
SELECT ALL + CAST( + ( - + COUNT( * ) ) AS SIGNED ) DIV 45 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8463
SELECT ALL + CAST ( + ( - + COUNT ( * ) ) AS INTEGER ) / 45 AS col0
----
0

query I rowsort
SELECT - 33 - + + 79 * ( - 86 ) col2
----
6761

onlyif mysql # aggregate syntax: 
query I rowsort label-8465
SELECT 57 * - COUNT( * ) + 23
----
-34

skipif mysql # not compatible
query I rowsort label-8465
SELECT 57 * - COUNT ( * ) + 23
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-8466
SELECT - COUNT( + 1 ) + - - COALESCE ( + - 95, MIN( 8 ) ) * + CASE + MAX( DISTINCT ( 9 ) ) WHEN - 47 THEN - 12 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8466
SELECT - COUNT ( + 1 ) + - - COALESCE ( + - 95, MIN ( 8 ) ) * + CASE + MAX ( DISTINCT ( 9 ) ) WHEN - 47 THEN - 12 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8467
SELECT DISTINCT + 14 * 63 - 17 - - CAST( + COUNT( * ) AS SIGNED )
----
866

skipif mysql # not compatible
query I rowsort label-8467
SELECT DISTINCT + 14 * 63 - 17 - - CAST ( + COUNT ( * ) AS INTEGER )
----
866

query I rowsort
SELECT DISTINCT - 40 * + 65
----
-2600

query II rowsort
SELECT DISTINCT 69, - 6 * - + 56 AS col1
----
69
336

query I rowsort
SELECT ALL 41 * 26 AS col0
----
1066

query I rowsort
SELECT 13 + - 68 AS col2
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8472
SELECT + COUNT( * ) * + 51 * - 84 DIV + + 6 + COALESCE ( + 93, + - 63 ) AS col2, + 17
----
-621
17

skipif mysql # not compatible
query II rowsort label-8472
SELECT + COUNT ( * ) * + 51 * - 84 / + + 6 + COALESCE ( + 93, + - 63 ) AS col2, + 17
----
-621
17

query I rowsort
SELECT 29 * 70
----
2030

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8474
SELECT 89 AS col2, + CAST( - 88 AS SIGNED ) AS col2
----
89
-88

skipif mysql # not compatible
query II rowsort label-8474
SELECT 89 AS col2, + CAST ( - 88 AS INTEGER ) AS col2
----
89
-88

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8475
SELECT CAST( NULL AS DECIMAL ) + - + ( - - 33 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8475
SELECT CAST ( NULL AS REAL ) + - + ( - - 33 ) AS col0
----
NULL

query I rowsort
SELECT ALL - ( + NULLIF ( + 63, 23 ) )
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8477
SELECT ALL - NULLIF ( + 57, - - 61 * + + 57 + 79 + 53 + + 77 - 73 * - 46 ) / CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8477
SELECT ALL - NULLIF ( + 57, - - 61 * + + 57 + 79 + 53 + + 77 - 73 * - 46 ) / CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8478
SELECT ALL 75 + - 55 - COUNT( * ) AS col1
----
19

skipif mysql # not compatible
query I rowsort label-8478
SELECT ALL 75 + - 55 - COUNT ( * ) AS col1
----
19

query I rowsort
SELECT DISTINCT NULLIF ( - 70, + 96 ) + + + 98 - 41
----
-13

query I rowsort
SELECT ALL + 65 + - 53
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8481
SELECT ALL + 38 DIV + + COUNT( * ) col1
----
38

skipif mysql # not compatible
query I rowsort label-8481
SELECT ALL + 38 / + + COUNT ( * ) col1
----
38

query I rowsort
SELECT 45 + + + 44 AS col2
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-8483
SELECT DISTINCT + NULLIF ( 12, 52 * + 83 * 48 - COUNT( * ) ) * + + COUNT( * ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-8483
SELECT DISTINCT + NULLIF ( 12, 52 * + 83 * 48 - COUNT ( * ) ) * + + COUNT ( * ) AS col2
----
12

query I rowsort
SELECT ALL - 66 + 97
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-8485
SELECT 35 DIV 26
----
1

skipif mysql # not compatible
query I rowsort label-8485
SELECT 35 / 26
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8486
SELECT + 37 * - CAST( - 68 AS SIGNED ) + - 60
----
2456

skipif mysql # not compatible
query I rowsort label-8486
SELECT + 37 * - CAST ( - 68 AS INTEGER ) + - 60
----
2456

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8487
SELECT 46 * 11 + - COUNT( * ) DIV - 83 + COALESCE ( - 23, - NULLIF ( 53, - 66 ), - 58 ) AS col1
----
483

skipif mysql # not compatible
query I rowsort label-8487
SELECT 46 * 11 + - COUNT ( * ) / - 83 + COALESCE ( - 23, - NULLIF ( 53, - 66 ), - 58 ) AS col1
----
483

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8488
SELECT ALL - - NULLIF ( 87, + + NULLIF ( + COUNT( DISTINCT + 7 ), + NULLIF ( ( + - MAX( - 95 ) ), 74 ) ) + CAST( + - 53 AS SIGNED ) ) + - COUNT( * ) * - + 95
----
182

skipif mysql # not compatible
query I rowsort label-8488
SELECT ALL - - NULLIF ( 87, + + NULLIF ( + COUNT ( DISTINCT + 7 ), + NULLIF ( ( + - MAX ( - 95 ) ), 74 ) ) + CAST ( + - 53 AS INTEGER ) ) + - COUNT ( * ) * - + 95
----
182

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8489
SELECT DISTINCT + - 66 DIV + + COUNT( * )
----
-66

skipif mysql # not compatible
query I rowsort label-8489
SELECT DISTINCT + - 66 / + + COUNT ( * )
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8490
SELECT DISTINCT - 51 + + CAST( 74 AS SIGNED ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-8490
SELECT DISTINCT - 51 + + CAST ( 74 AS INTEGER ) AS col1
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-8491
SELECT DISTINCT - + 94 AS col2, + COUNT( * ) AS col0
----
-94
1

skipif mysql # not compatible
query II rowsort label-8491
SELECT DISTINCT - + 94 AS col2, + COUNT ( * ) AS col0
----
-94
1

query I rowsort
SELECT ALL - COALESCE ( - 57, 85 )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8493
SELECT + 45 * - 0 + COUNT( - + 91 )
----
1

skipif mysql # not compatible
query I rowsort label-8493
SELECT + 45 * - 0 + COUNT ( - + 91 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8494
SELECT DISTINCT NULLIF ( - - ( - 34 ), - SUM( - 22 ) )
----
-34

skipif mysql # not compatible
query I rowsort label-8494
SELECT DISTINCT NULLIF ( - - ( - 34 ), - SUM ( - 22 ) )
----
-34

query I rowsort
SELECT - 34 * + 33 AS col0
----
-1122

onlyif mysql # aggregate syntax: 
query I rowsort label-8496
SELECT - 18 + 15 + - - COUNT( * ) + COUNT( * ) * 0 * + + 5
----
-2

skipif mysql # not compatible
query I rowsort label-8496
SELECT - 18 + 15 + - - COUNT ( * ) + COUNT ( * ) * 0 * + + 5
----
-2

query II rowsort
SELECT ALL 81 col1, 21
----
81
21

query I rowsort
SELECT DISTINCT COALESCE ( + 37, - 28 + + 65 + - 97 ) AS col1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-8499
SELECT ALL - 2 - - - 58 * - - COUNT( * )
----
-60

skipif mysql # not compatible
query I rowsort label-8499
SELECT ALL - 2 - - - 58 * - - COUNT ( * )
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-8500
SELECT SUM( DISTINCT - COALESCE ( - 39, 30 * + 64 * - 82 ) ) * + + 27 + - - 60 col1
----
1113

skipif mysql # not compatible
query I rowsort label-8500
SELECT SUM ( DISTINCT - COALESCE ( - 39, 30 * + 64 * - 82 ) ) * + + 27 + - - 60 col1
----
1113

onlyif mysql # aggregate syntax: 
query I rowsort label-8501
SELECT DISTINCT + - COUNT( * ) * - 96
----
96

skipif mysql # not compatible
query I rowsort label-8501
SELECT DISTINCT + - COUNT ( * ) * - 96
----
96

query I rowsort
SELECT ALL ( + 6 ) col2
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8503
SELECT DISTINCT 71, + SUM( 83 ) + - - CAST( NULL AS SIGNED ) + + 15 + + + 79 * - ( COUNT( * ) ) * + 97 AS col0
----
71
NULL

skipif mysql # not compatible
query II rowsort label-8503
SELECT DISTINCT 71, + SUM ( 83 ) + - - CAST ( NULL AS INTEGER ) + + 15 + + + 79 * - ( COUNT ( * ) ) * + 97 AS col0
----
71
NULL

query II rowsort
SELECT 3 - + 89 AS col0, + 2 + - + 88
----
-86
-86

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8505
SELECT 10 * - + 38 AS col0, + 2 + + CAST( NULL AS SIGNED ) AS col2
----
-380
NULL

skipif mysql # not compatible
query II rowsort label-8505
SELECT 10 * - + 38 AS col0, + 2 + + CAST ( NULL AS INTEGER ) AS col2
----
-380
NULL

query I rowsort
SELECT ALL 96 * + 97 * + 17 * - 13 + + - 62 AS col0
----
-2058014

onlyif mysql # DIV for integer division: 
query I rowsort label-8507
SELECT - 77 DIV - 45 - ( + 62 ) AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-8507
SELECT - 77 / - 45 - ( + 62 ) AS col0
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-8508
SELECT DISTINCT + COUNT( * ) * 96 + 80 AS col0
----
176

skipif mysql # not compatible
query I rowsort label-8508
SELECT DISTINCT + COUNT ( * ) * 96 + 80 AS col0
----
176

onlyif mysql # aggregate syntax: 
query I rowsort label-8509
SELECT NULLIF ( + + 1, - ( - - COUNT( * ) ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8509
SELECT NULLIF ( + + 1, - ( - - COUNT ( * ) ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8510
SELECT ALL + 18 * + + 34 + - COUNT( * ) + - - 81 AS col1
----
692

skipif mysql # not compatible
query I rowsort label-8510
SELECT ALL + 18 * + + 34 + - COUNT ( * ) + - - 81 AS col1
----
692

onlyif mysql # DIV for integer division: 
query I rowsort label-8511
SELECT DISTINCT + - ( 41 ) DIV - 16
----
2

skipif mysql # not compatible
query I rowsort label-8511
SELECT DISTINCT + - ( 41 ) / - 16
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8512
SELECT ALL 2 * - MAX( DISTINCT - - 95 ) * + - 48 + - - COUNT( * ) + + 81 - 17 * NULLIF ( - CAST( NULL AS SIGNED ), 43 ) - - 93
----
NULL

skipif mysql # not compatible
query I rowsort label-8512
SELECT ALL 2 * - MAX ( DISTINCT - - 95 ) * + - 48 + - - COUNT ( * ) + + 81 - 17 * NULLIF ( - CAST ( NULL AS INTEGER ), 43 ) - - 93
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8513
SELECT - - 69 * 7, - NULLIF ( + + COUNT( DISTINCT 71 ), - ( - 90 ) * - 81 * + + 42 + + ( - 64 ) ) AS col2
----
483
-1

skipif mysql # not compatible
query II rowsort label-8513
SELECT - - 69 * 7, - NULLIF ( + + COUNT ( DISTINCT 71 ), - ( - 90 ) * - 81 * + + 42 + + ( - 64 ) ) AS col2
----
483
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8514
SELECT - 52 DIV - 62
----
0

skipif mysql # not compatible
query I rowsort label-8514
SELECT - 52 / - 62
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8515
SELECT ALL + - SUM( + + 49 ) * NULLIF ( + 76, + MIN( 33 ) * 58 + - + 43 / - ( - 66 ) * - + 4 * + NULLIF ( - COALESCE ( 30, - 22 + - 26 ), - 83 ) ) * + 40
----
-148960

skipif mysql # not compatible
query I rowsort label-8515
SELECT ALL + - SUM ( + + 49 ) * NULLIF ( + 76, + MIN ( 33 ) * 58 + - + 43 / - ( - 66 ) * - + 4 * + NULLIF ( - COALESCE ( 30, - 22 + - 26 ), - 83 ) ) * + 40
----
-148960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8516
SELECT 66 * - 74 + - CAST( ( - 72 ) AS SIGNED ) AS col0
----
-4812

skipif mysql # not compatible
query I rowsort label-8516
SELECT 66 * - 74 + - CAST ( ( - 72 ) AS INTEGER ) AS col0
----
-4812

query I rowsort
SELECT + 10 * 98
----
980

query I rowsort
SELECT - - 17 + 53
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8519
SELECT - COALESCE ( - 55, + MIN( 71 ) ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-8519
SELECT - COALESCE ( - 55, + MIN ( 71 ) ) AS col0
----
55

query I rowsort
SELECT DISTINCT 11 * + - 51 AS col0
----
-561

query I rowsort
SELECT ALL + 36 * 47
----
1692

onlyif mysql # aggregate syntax: 
query I rowsort label-8522
SELECT - - MIN( - + 50 ) + + 96
----
46

skipif mysql # not compatible
query I rowsort label-8522
SELECT - - MIN ( - + 50 ) + + 96
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8523
SELECT - SUM( + 85 ) + - 15 * 68
----
-1105

skipif mysql # not compatible
query I rowsort label-8523
SELECT - SUM ( + 85 ) + - 15 * 68
----
-1105

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8524
SELECT - 4 * - 94 + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8524
SELECT - 4 * - 94 + + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8525
SELECT ALL - NULLIF ( + 7, + ( - - CASE COUNT( * ) WHEN 25 THEN NULL WHEN - - 54 * + 12 THEN 40 + 13 + - 47 END ) + + 20 ) + + 27, + 94 AS col0
----
20
94

skipif mysql # not compatible
query II rowsort label-8525
SELECT ALL - NULLIF ( + 7, + ( - - CASE COUNT ( * ) WHEN 25 THEN NULL WHEN - - 54 * + 12 THEN 40 + 13 + - 47 END ) + + 20 ) + + 27, + 94 AS col0
----
20
94

query I rowsort
SELECT - 0 + 95
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8527
SELECT - 77 + + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8527
SELECT - 77 + + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL + 65 + 91 AS col2
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-8529
SELECT ALL - COUNT( * ) + + COUNT( 59 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-8529
SELECT ALL - COUNT ( * ) + + COUNT ( 59 ) col2
----
0

query I rowsort
SELECT DISTINCT ( - 8 ) * + - 78 col1
----
624

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8531
SELECT ALL CAST( NULL AS SIGNED ) + + + 9 * + + 51 / - 48 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8531
SELECT ALL CAST ( NULL AS INTEGER ) + + + 9 * + + 51 / - 48 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8532
SELECT - MAX( + + 11 ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-8532
SELECT - MAX ( + + 11 ) AS col0
----
-11

query I rowsort
SELECT + 23 + - 48
----
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-8534
SELECT DISTINCT 40 DIV + 4
----
10

skipif mysql # not compatible
query I rowsort label-8534
SELECT DISTINCT 40 / + 4
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-8535
SELECT DISTINCT 4 DIV 7 + - ( + 9 )
----
-9

skipif mysql # not compatible
query I rowsort label-8535
SELECT DISTINCT 4 / 7 + - ( + 9 )
----
-9

query I rowsort
SELECT ALL 75 * + + 2
----
150

query I rowsort
SELECT + 80 + - 67 * + 46
----
-3002

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8538
SELECT ALL - ( - 92 ) / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8538
SELECT ALL - ( - 92 ) / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8539
SELECT DISTINCT - MIN( DISTINCT - NULLIF ( 46, + + 94 ) ) DIV - - CASE + - CAST( - 85 AS SIGNED ) WHEN + 19 - + + 81 + + 80 THEN - - 20 ELSE + CAST( - - 41 AS SIGNED ) + + + COUNT( * ) END + - ( - + 49 ) - - 21 + - ( - 38 ) * NULLIF ( - 75 + - 82 * - 70, - 22 - 13 ) col1
----
215341

skipif mysql # not compatible
query I rowsort label-8539
SELECT DISTINCT - MIN ( DISTINCT - NULLIF ( 46, + + 94 ) ) / - - CASE + - CAST ( - 85 AS INTEGER ) WHEN + 19 - + + 81 + + 80 THEN - - 20 ELSE + CAST ( - - 41 AS INTEGER ) + + + COUNT ( * ) END + - ( - + 49 ) - - 21 + - ( - 38 ) * NULLIF ( - 75 + - 82 * - 70, - 22 - 13 ) col1
----
215341

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8540
SELECT + CASE + - 59 WHEN 92 + + - CAST( 34 AS SIGNED ) THEN NULL WHEN - 81 THEN NULL WHEN - 14 THEN + - MAX( DISTINCT - - 68 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8540
SELECT + CASE + - 59 WHEN 92 + + - CAST ( 34 AS INTEGER ) THEN NULL WHEN - 81 THEN NULL WHEN - 14 THEN + - MAX ( DISTINCT - - 68 ) END
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8541
SELECT ALL 68 * + COALESCE ( 8, - ( NULLIF ( + + 54, - + NULLIF ( - + 19, 99 * 54 * - 36 ) * + 70 - - CAST( NULL AS DECIMAL ) ) ) ) AS col0
----
544

skipif mysql # not compatible
query I rowsort label-8541
SELECT ALL 68 * + COALESCE ( 8, - ( NULLIF ( + + 54, - + NULLIF ( - + 19, 99 * 54 * - 36 ) * + 70 - - CAST ( NULL AS REAL ) ) ) ) AS col0
----
544

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8542
SELECT + 50 + - 67 + - + 24 AS col2, + CAST( NULL AS SIGNED ) * - COUNT( * ) + - 49 - + - 97 AS col1
----
-41
NULL

skipif mysql # not compatible
query II rowsort label-8542
SELECT + 50 + - 67 + - + 24 AS col2, + CAST ( NULL AS INTEGER ) * - COUNT ( * ) + - 49 - + - 97 AS col1
----
-41
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8543
SELECT ALL + 1 * + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-8543
SELECT ALL + 1 * + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8544
SELECT + - COUNT( + 54 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8544
SELECT + - COUNT ( + 54 ) AS col1
----
-1

query II rowsort
SELECT DISTINCT + - 38 AS col2, 98 AS col0
----
-38
98

onlyif mysql # aggregate syntax: 
query II rowsort label-8546
SELECT + MAX( ( - 76 ) ) col1, 15
----
-76
15

skipif mysql # not compatible
query II rowsort label-8546
SELECT + MAX ( ( - 76 ) ) col1, 15
----
-76
15

onlyif mysql # aggregate syntax: 
query II rowsort label-8547
SELECT ALL + COUNT( * ), + 36 AS col1
----
1
36

skipif mysql # not compatible
query II rowsort label-8547
SELECT ALL + COUNT ( * ), + 36 AS col1
----
1
36

query I rowsort
SELECT + + 96 * + 87 AS col0
----
8352

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8549
SELECT ALL + - CAST( - 17 AS SIGNED ) * + ( - - CAST( NULL AS SIGNED ) ) * ( + + 62 ) AS col2, 29 * - 18 AS col1
----
NULL
-522

skipif mysql # not compatible
query II rowsort label-8549
SELECT ALL + - CAST ( - 17 AS INTEGER ) * + ( - - CAST ( NULL AS INTEGER ) ) * ( + + 62 ) AS col2, 29 * - 18 AS col1
----
NULL
-522

query I rowsort
SELECT - - ( - 33 ) AS col0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-8551
SELECT ALL - NULLIF ( - 36, - COUNT( * ) - + 10 ) * + 81 * 63 * + 68 col1
----
12492144

skipif mysql # not compatible
query I rowsort label-8551
SELECT ALL - NULLIF ( - 36, - COUNT ( * ) - + 10 ) * + 81 * 63 * + 68 col1
----
12492144

onlyif mysql # aggregate syntax: 
query I rowsort label-8552
SELECT ALL + + 96 * 81 * - COUNT( ALL - 83 ) + - - 37 AS col0
----
-7739

skipif mysql # not compatible
query I rowsort label-8552
SELECT ALL + + 96 * 81 * - COUNT ( ALL - 83 ) + - - 37 AS col0
----
-7739

onlyif mysql # aggregate syntax: 
query I rowsort label-8553
SELECT + 42 + + + COUNT( * ) - - CASE - - 75 WHEN - + 71 THEN NULL ELSE + 14 * - 78 END AS col1
----
-1049

skipif mysql # not compatible
query I rowsort label-8553
SELECT + 42 + + + COUNT ( * ) - - CASE - - 75 WHEN - + 71 THEN NULL ELSE + 14 * - 78 END AS col1
----
-1049

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8554
SELECT DISTINCT 18 * COUNT( * ) col0, 68 - - 61 - 72 + 48 + - 44 DIV + 71 * 91 * + 40
----
18
105

skipif mysql # not compatible
query II rowsort label-8554
SELECT DISTINCT 18 * COUNT ( * ) col0, 68 - - 61 - 72 + 48 + - 44 / + 71 * 91 * + 40
----
18
105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8555
SELECT ALL + CAST( NULL AS SIGNED ) + + COUNT( * ) AS col1, 13 DIV 24 + 6
----
NULL
6

skipif mysql # not compatible
query II rowsort label-8555
SELECT ALL + CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col1, 13 / 24 + 6
----
NULL
6

query I rowsort
SELECT - 47 * + 98 * - 73 col1
----
336238

query II rowsort
SELECT DISTINCT + 52 + + 74 AS col1, 63
----
126
63

query I rowsort
SELECT DISTINCT - 61 + - 74 + + + 86 + - 78 * - + 17
----
1277

onlyif mysql # aggregate syntax: 
query I rowsort label-8559
SELECT ALL + COUNT( * ) + 99 + - 20 * - 35 AS col2
----
800

skipif mysql # not compatible
query I rowsort label-8559
SELECT ALL + COUNT ( * ) + 99 + - 20 * - 35 AS col2
----
800

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8560
SELECT ALL - 79 + 8 * + 77 + CAST( ( + 22 ) AS SIGNED ) AS col1
----
559

skipif mysql # not compatible
query I rowsort label-8560
SELECT ALL - 79 + 8 * + 77 + CAST ( ( + 22 ) AS INTEGER ) AS col1
----
559

onlyif mysql # DIV for integer division: 
query I rowsort label-8561
SELECT 28 - + 67 DIV + ( + + 57 )
----
27

skipif mysql # not compatible
query I rowsort label-8561
SELECT 28 - + 67 / + ( + + 57 )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-8562
SELECT CASE - COUNT( * ) WHEN - 42 * - 81 + + 58 THEN - 20 / 74 END + + - 68 + - + 36 / - 78 + + 87 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8562
SELECT CASE - COUNT ( * ) WHEN - 42 * - 81 + + 58 THEN - 20 / 74 END + + - 68 + - + 36 / - 78 + + 87 AS col1
----
NULL

query I rowsort
SELECT ALL + 34 - + 47 AS col1
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-8564
SELECT 60 DIV - - ( + 66 )
----
0

skipif mysql # not compatible
query I rowsort label-8564
SELECT 60 / - - ( + 66 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8565
SELECT 17 / - 78 - - CAST( + - 47 AS SIGNED ) * 34 - - SUM( DISTINCT + CAST( NULL AS SIGNED ) ) * + + 0
----
NULL

skipif mysql # not compatible
query I rowsort label-8565
SELECT 17 / - 78 - - CAST ( + - 47 AS INTEGER ) * 34 - - SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) * + + 0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8566
SELECT + NULLIF ( + 72, - - COUNT( DISTINCT 50 ) * COUNT( * ) ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-8566
SELECT + NULLIF ( + 72, - - COUNT ( DISTINCT 50 ) * COUNT ( * ) ) AS col1
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8567
SELECT - SUM( - + ( + + CAST( NULL AS SIGNED ) ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8567
SELECT - SUM ( - + ( + + CAST ( NULL AS INTEGER ) ) ) col1
----
NULL

query I rowsort
SELECT 0 * - 17 + - 11 AS col1
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-8569
SELECT ALL - - COUNT( + + 59 )
----
1

skipif mysql # not compatible
query I rowsort label-8569
SELECT ALL - - COUNT ( + + 59 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8570
SELECT - 28 DIV + SUM( ALL + + 19 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8570
SELECT - 28 / + SUM ( ALL + + 19 ) AS col0
----
-1

query II rowsort
SELECT + 37 - 65, 64 AS col0
----
-28
64

onlyif mysql # aggregate syntax: 
query I rowsort label-8572
SELECT DISTINCT 15 + ( 90 ) - + - COUNT( * ) - 72 + + MIN( DISTINCT - + 0 ) col1
----
34

skipif mysql # not compatible
query I rowsort label-8572
SELECT DISTINCT 15 + ( 90 ) - + - COUNT ( * ) - 72 + + MIN ( DISTINCT - + 0 ) col1
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8573
SELECT + 55 * ( - 71 ) DIV + COUNT( * ) + + - 98 col1
----
-4003

skipif mysql # not compatible
query I rowsort label-8573
SELECT + 55 * ( - 71 ) / + COUNT ( * ) + + - 98 col1
----
-4003

query I rowsort
SELECT + 77 * + 75
----
5775

onlyif mysql # aggregate syntax: 
query I rowsort label-8575
SELECT COUNT( * ) + - + 62
----
-61

skipif mysql # not compatible
query I rowsort label-8575
SELECT COUNT ( * ) + - + 62
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-8576
SELECT ALL + COUNT( * ) + - 78 - 0 * - 97 * 51 AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-8576
SELECT ALL + COUNT ( * ) + - 78 - 0 * - 97 * 51 AS col2
----
-77

query I rowsort
SELECT 95 + - - NULLIF ( + ( - 59 ), - + 25 )
----
36

query I rowsort
SELECT 24 * + ( - ( - 26 ) ) + + 64 * 35 AS col1
----
2864

query I rowsort
SELECT ALL 65 + - - 50
----
115

onlyif mysql # aggregate syntax: 
query II rowsort label-8580
SELECT ( + 86 ) + + - 10 AS col2, COUNT( * )
----
76
1

skipif mysql # not compatible
query II rowsort label-8580
SELECT ( + 86 ) + + - 10 AS col2, COUNT ( * )
----
76
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8581
SELECT ALL ( + 65 ) - 39 DIV 82
----
65

skipif mysql # not compatible
query I rowsort label-8581
SELECT ALL ( + 65 ) - 39 / 82
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-8582
SELECT DISTINCT COUNT( + 43 ) * ( - 13 ) - + 60 + + + 12 - ( + 49 ) + COUNT( * ) - + - 1 * 55 + + - 62
----
-116

skipif mysql # not compatible
query I rowsort label-8582
SELECT DISTINCT COUNT ( + 43 ) * ( - 13 ) - + 60 + + + 12 - ( + 49 ) + COUNT ( * ) - + - 1 * 55 + + - 62
----
-116

query I rowsort
SELECT 64 * - + 94 col2
----
-6016

onlyif mysql # aggregate syntax: 
query I rowsort label-8584
SELECT DISTINCT + 20 * - CASE 10 WHEN + 36 THEN - + 78 + + COUNT( * ) + COUNT( + - 41 ) * - ( - - ( - SUM( ALL - ( + + 60 ) ) ) ) / - COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8584
SELECT DISTINCT + 20 * - CASE 10 WHEN + 36 THEN - + 78 + + COUNT ( * ) + COUNT ( + - 41 ) * - ( - - ( - SUM ( ALL - ( + + 60 ) ) ) ) / - COUNT ( * ) END AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8585
SELECT CAST( NULL AS DECIMAL ) + + 5
----
NULL

skipif mysql # not compatible
query I rowsort label-8585
SELECT CAST ( NULL AS REAL ) + + 5
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8586
SELECT ALL CASE 70 WHEN + 49 THEN - 73 * + 50 END * + - 57 * NULLIF ( - 50, + ( COUNT( * ) ) ) AS col2, - COUNT( * ) AS col1
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-8586
SELECT ALL CASE 70 WHEN + 49 THEN - 73 * + 50 END * + - 57 * NULLIF ( - 50, + ( COUNT ( * ) ) ) AS col2, - COUNT ( * ) AS col1
----
NULL
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8587
SELECT DISTINCT + 30 DIV - COALESCE ( SUM( NULLIF ( + 29, - + 89 ) ), - ( + + 56 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8587
SELECT DISTINCT + 30 / - COALESCE ( SUM ( NULLIF ( + 29, - + 89 ) ), - ( + + 56 ) ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8588
SELECT - MIN( - - 61 )
----
-61

skipif mysql # not compatible
query I rowsort label-8588
SELECT - MIN ( - - 61 )
----
-61

query I rowsort
SELECT 89 * 1
----
89

query I rowsort
SELECT 23 + + - 23 * + 35
----
-782

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8591
SELECT - ( + 10 ) + - + 97 + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8591
SELECT - ( + 10 ) + - + 97 + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL - - 3 * + 11 AS col0
----
33

query I rowsort
SELECT DISTINCT - + 86 * + 82 AS col0
----
-7052

query I rowsort
SELECT + - 93 * 70 * + 8 + + 46 + - 1 AS col0
----
-52035

query I rowsort
SELECT - NULLIF ( + 71, - 57 )
----
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8596
SELECT ALL - + 61 * 74 + - COALESCE ( - + 50, + 0 DIV - + 56, COUNT( * ) ) * - 25, 20 + 24 col1
----
-5764
44

skipif mysql # not compatible
query II rowsort label-8596
SELECT ALL - + 61 * 74 + - COALESCE ( - + 50, + 0 / - + 56, COUNT ( * ) ) * - 25, 20 + 24 col1
----
-5764
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8597
SELECT - 19 / + - 31 + + + 7 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8597
SELECT - 19 / + - 31 + + + 7 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8598
SELECT ALL - 29 * - 42 * COALESCE ( - 46, + COUNT( * ) + - COUNT( + 30 ) + - CAST( NULL AS SIGNED ) * - 65 DIV - 9 ) + + + 31 + + + 39 AS col2
----
-55958

skipif mysql # not compatible
query I rowsort label-8598
SELECT ALL - 29 * - 42 * COALESCE ( - 46, + COUNT ( * ) + - COUNT ( + 30 ) + - CAST ( NULL AS INTEGER ) * - 65 / - 9 ) + + + 31 + + + 39 AS col2
----
-55958

query II rowsort
SELECT 84 + - 37 * + 86 AS col1, + 43
----
-3098
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8600
SELECT + + CASE CASE + - 53 WHEN - + 65 THEN + COALESCE ( + 69, + 2 ) + - 21 END WHEN + 71 THEN - ( - AVG ( - 32 ) ) WHEN - - 7 THEN + ( + CASE CAST( NULL AS SIGNED ) WHEN - - ( COUNT( * ) ) THEN - MAX( ALL + - 3 ) WHEN - COUNT( * ) * 47 THEN 57 + 63 ELSE NULL END ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8600
SELECT + + CASE CASE + - 53 WHEN - + 65 THEN + COALESCE ( + 69, + 2 ) + - 21 END WHEN + 71 THEN - ( - AVG ( - 32 ) ) WHEN - - 7 THEN + ( + CASE CAST ( NULL AS INTEGER ) WHEN - - ( COUNT ( * ) ) THEN - MAX ( ALL + - 3 ) WHEN - COUNT ( * ) * 47 THEN 57 + 63 ELSE NULL END ) END AS col0
----
NULL

query I rowsort
SELECT - 44 * + - 44 + 50 * ( - 97 )
----
-2914

query I rowsort
SELECT - 1 * - 42 col2
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-8603
SELECT 61 + + ( - 89 ) DIV 33 col2
----
59

skipif mysql # not compatible
query I rowsort label-8603
SELECT 61 + + ( - 89 ) / 33 col2
----
59

query I rowsort
SELECT ALL 45 + 7 + 48 + - + 84
----
16

query I rowsort
SELECT DISTINCT - 75 + 27 * + 91
----
2382

onlyif mysql # aggregate syntax: 
query I rowsort label-8606
SELECT DISTINCT + COALESCE ( 84, + COUNT( * ), - COALESCE ( 50, - + COALESCE ( + - 24, COUNT( 50 ), - 44 ) * - 97 + - + 23 + 75 ) ) + - CASE - 29 WHEN + 57 - - 44 THEN + COUNT( ALL - 94 ) * 71 + 58 ELSE - 98 END col1
----
182

skipif mysql # not compatible
query I rowsort label-8606
SELECT DISTINCT + COALESCE ( 84, + COUNT ( * ), - COALESCE ( 50, - + COALESCE ( + - 24, COUNT ( 50 ), - 44 ) * - 97 + - + 23 + 75 ) ) + - CASE - 29 WHEN + 57 - - 44 THEN + COUNT ( ALL - 94 ) * 71 + 58 ELSE - 98 END col1
----
182

query I rowsort
SELECT ALL - ( + ( - + 55 ) ) + - 38 AS col0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-8608
SELECT 40 * - COUNT( * ) AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-8608
SELECT 40 * - COUNT ( * ) AS col1
----
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8609
SELECT ALL + 31 DIV - COUNT( * )
----
-31

skipif mysql # not compatible
query I rowsort label-8609
SELECT ALL + 31 / - COUNT ( * )
----
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-8610
SELECT ALL - 3, + 9 - - 16 * - COUNT( * ) AS col0
----
-3
-7

skipif mysql # not compatible
query II rowsort label-8610
SELECT ALL - 3, + 9 - - 16 * - COUNT ( * ) AS col0
----
-3
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-8611
SELECT + MIN( - - 53 )
----
53

skipif mysql # not compatible
query I rowsort label-8611
SELECT + MIN ( - - 53 )
----
53

query I rowsort
SELECT ALL 23 * - 37
----
-851

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8613
SELECT ALL - NULLIF ( + - CAST( NULL AS SIGNED ), + 53 ) - - 72, COUNT( * ) AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-8613
SELECT ALL - NULLIF ( + - CAST ( NULL AS INTEGER ), + 53 ) - - 72, COUNT ( * ) AS col1
----
NULL
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8614
SELECT ALL 52 - + + NULLIF ( + 54, - + 78 * - 57 ) + - 11 * - COUNT( 87 ) DIV - 95 + - + COUNT( * ) - COALESCE ( + - 12, 14 ) col2
----
9

skipif mysql # not compatible
query I rowsort label-8614
SELECT ALL 52 - + + NULLIF ( + 54, - + 78 * - 57 ) + - 11 * - COUNT ( 87 ) / - 95 + - + COUNT ( * ) - COALESCE ( + - 12, 14 ) col2
----
9

query II rowsort
SELECT 73 AS col2, - 33 + 58
----
73
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8616
SELECT ALL 93 AS col2, - COUNT( * ) + - CAST( + + 63 AS SIGNED )
----
93
-64

skipif mysql # not compatible
query II rowsort label-8616
SELECT ALL 93 AS col2, - COUNT ( * ) + - CAST ( + + 63 AS INTEGER )
----
93
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8617
SELECT + COUNT( * ) DIV 73 * 53 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8617
SELECT + COUNT ( * ) / 73 * 53 AS col1
----
0

query I rowsort
SELECT ALL - 44 * - 34
----
1496

query I rowsort
SELECT - COALESCE ( - 61, - ( 66 ) ) * - 27 * + - 88
----
144936

onlyif mysql # aggregate syntax: 
query I rowsort label-8620
SELECT + COUNT( * ) * 94 * COUNT( * )
----
94

skipif mysql # not compatible
query I rowsort label-8620
SELECT + COUNT ( * ) * 94 * COUNT ( * )
----
94

query I rowsort
SELECT + 74 + - ( 82 ) AS col2
----
-8

query II rowsort
SELECT 10, - 19 AS col1
----
10
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8623
SELECT DISTINCT 4 + - COALESCE ( + CAST( NULL AS SIGNED ), NULLIF ( - 89, 2 + - MIN( + - 75 ) - 83 ), + COUNT( * ) )
----
93

skipif mysql # not compatible
query I rowsort label-8623
SELECT DISTINCT 4 + - COALESCE ( + CAST ( NULL AS INTEGER ), NULLIF ( - 89, 2 + - MIN ( + - 75 ) - 83 ), + COUNT ( * ) )
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8624
SELECT ALL ( 68 ) * COUNT( * ) AS col0
----
68

skipif mysql # not compatible
query I rowsort label-8624
SELECT ALL ( 68 ) * COUNT ( * ) AS col0
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-8625
SELECT + + ( - + 62 ) DIV - 64
----
0

skipif mysql # not compatible
query I rowsort label-8625
SELECT + + ( - + 62 ) / - 64
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8626
SELECT ALL + 47 + - - COALESCE ( - 90, + - 52 + + - 40 + + 38 - - 17 - - ( - + 22 ) * + 18, COUNT( * ) ) AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-8626
SELECT ALL + 47 + - - COALESCE ( - 90, + - 52 + + - 40 + + 38 - - 17 - - ( - + 22 ) * + 18, COUNT ( * ) ) AS col0
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8627
SELECT DISTINCT + ( - + 49 ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8627
SELECT DISTINCT + ( - + 49 ) + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8628
SELECT - 19 DIV + 72, - 20 AS col0
----
0
-20

skipif mysql # not compatible
query II rowsort label-8628
SELECT - 19 / + 72, - 20 AS col0
----
0
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-8629
SELECT ALL + + MAX( - + 91 )
----
-91

skipif mysql # not compatible
query I rowsort label-8629
SELECT ALL + + MAX ( - + 91 )
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8630
SELECT - COUNT( * ) * COUNT( * ) * + 66 AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-8630
SELECT - COUNT ( * ) * COUNT ( * ) * + 66 AS col1
----
-66

query II rowsort
SELECT + 12 AS col0, + 6
----
12
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8632
SELECT + - CAST( NULL AS SIGNED ) - - 81 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8632
SELECT + - CAST ( NULL AS INTEGER ) - - 81 AS col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8633
SELECT - + AVG ( DISTINCT - 44 ) * + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8633
SELECT - + AVG ( DISTINCT - 44 ) * + CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8634
SELECT ALL + + CAST( NULL AS DECIMAL ) * + + COUNT( * ) + + 7 + + 36 * - CAST( + 93 AS SIGNED ) / 48 * + 3 * - + 13 + + 25
----
NULL

skipif mysql # not compatible
query I rowsort label-8634
SELECT ALL + + CAST ( NULL AS REAL ) * + + COUNT ( * ) + + 7 + + 36 * - CAST ( + 93 AS INTEGER ) / 48 * + 3 * - + 13 + + 25
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8635
SELECT ALL + ( CASE + - ( + MAX( DISTINCT - CAST( 26 AS SIGNED ) ) ) WHEN + 28 + - + COUNT( * ) THEN COUNT( * ) WHEN - 11 * NULLIF ( CAST( 39 AS SIGNED ), - - 17 * - COALESCE ( - 75, + 89, - - 5 * + + 84 ) + - - ( - 87 ) ) - + 36 * + 82 THEN NULL WHEN - 65 + 53 * - COUNT( * ) THEN NULL END ) * ( + 17 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8635
SELECT ALL + ( CASE + - ( + MAX ( DISTINCT - CAST ( 26 AS INTEGER ) ) ) WHEN + 28 + - + COUNT ( * ) THEN COUNT ( * ) WHEN - 11 * NULLIF ( CAST ( 39 AS INTEGER ), - - 17 * - COALESCE ( - 75, + 89, - - 5 * + + 84 ) + - - ( - 87 ) ) - + 36 * + 82 THEN NULL WHEN - 65 + 53 * - COUNT ( * ) THEN NULL END ) * ( + 17 ) AS col0
----
NULL

query II rowsort
SELECT DISTINCT + - 74 col0, - 13
----
-74
-13

query II rowsort
SELECT ALL + 58 AS col1, 20
----
58
20

query I rowsort
SELECT - 12 + - 13 AS col2
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-8639
SELECT - COUNT( * ) * CASE + + 63 WHEN + 32 THEN NULL WHEN + 24 * 98 THEN - ( - MAX( ALL + 91 ) ) * + + 42 + + 28 + - COUNT( * ) * + CASE + - ( + 82 ) WHEN 73 + 59 * 79 THEN 34 END * + - 52 + + 64 END * + + 57 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8639
SELECT - COUNT ( * ) * CASE + + 63 WHEN + 32 THEN NULL WHEN + 24 * 98 THEN - ( - MAX ( ALL + 91 ) ) * + + 42 + + 28 + - COUNT ( * ) * + CASE + - ( + 82 ) WHEN 73 + 59 * 79 THEN 34 END * + - 52 + + 64 END * + + 57 AS col2
----
NULL

query I rowsort
SELECT ALL + ( - 6 ) AS col1
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8641
SELECT - 88 + - MIN( DISTINCT + 64 ) * - - CAST( - 76 AS SIGNED ) * + 95 * 24 * - 79 - 89 AS col2
----
-876103857

skipif mysql # not compatible
query I rowsort label-8641
SELECT - 88 + - MIN ( DISTINCT + 64 ) * - - CAST ( - 76 AS INTEGER ) * + 95 * 24 * - 79 - 89 AS col2
----
-876103857

query I rowsort
SELECT NULLIF ( + 42, 76 )
----
42

query I rowsort
SELECT - 57 * - 18 + - 7
----
1019

onlyif mysql # DIV for integer division: 
query I rowsort label-8644
SELECT ALL + 48 DIV + + 19 col0
----
2

skipif mysql # not compatible
query I rowsort label-8644
SELECT ALL + 48 / + + 19 col0
----
2

query I rowsort
SELECT - 58 * - ( - 20 )
----
-1160

onlyif mysql # DIV for integer division: 
query I rowsort label-8646
SELECT ALL + 57 DIV + + 24
----
2

skipif mysql # not compatible
query I rowsort label-8646
SELECT ALL + 57 / + + 24
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8647
SELECT DISTINCT ( + ( + MAX( + 46 ) ) )
----
46

skipif mysql # not compatible
query I rowsort label-8647
SELECT DISTINCT ( + ( + MAX ( + 46 ) ) )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8648
SELECT + COUNT( * ) + COUNT( * ) - 15 * NULLIF ( + ( + - COUNT( * ) ), + 34 + + 73 ) - + + 63 AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-8648
SELECT + COUNT ( * ) + COUNT ( * ) - 15 * NULLIF ( + ( + - COUNT ( * ) ), + 34 + + 73 ) - + + 63 AS col2
----
-46

query I rowsort
SELECT - 22 * 56
----
-1232

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8650
SELECT + CAST( + 26 AS SIGNED ) + 40 + - 35
----
31

skipif mysql # not compatible
query I rowsort label-8650
SELECT + CAST ( + 26 AS INTEGER ) + 40 + - 35
----
31

query I rowsort
SELECT - 15 + 19 * - - ( + 53 ) AS col0
----
992

onlyif mysql # aggregate syntax: 
query II rowsort label-8652
SELECT - ( - 84 ) AS col1, - 22 * + 61 + - MIN( + 75 ) + + 82 AS col0
----
84
-1335

skipif mysql # not compatible
query II rowsort label-8652
SELECT - ( - 84 ) AS col1, - 22 * + 61 + - MIN ( + 75 ) + + 82 AS col0
----
84
-1335

query I rowsort
SELECT - COALESCE ( - - 28, + 51, 76 )
----
-28

query I rowsort
SELECT DISTINCT + 68 * - 90 AS col2
----
-6120

query I rowsort
SELECT ALL + 18 + 9 AS col2
----
27

query II rowsort
SELECT ALL 20 + + 64, + 70 AS col0
----
84
70

query I rowsort
SELECT + 90 - + 49 AS col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8658
SELECT ALL 33 + MIN( - 31 ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-8658
SELECT ALL 33 + MIN ( - 31 ) AS col2
----
2

query I rowsort
SELECT + ( - 48 ) + - 57 + 95
----
-10

query II rowsort
SELECT + + 36 + + - 80 + + 30 * - - 74 + + 79 AS col2, 6
----
2255
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8661
SELECT - + CASE - 11 WHEN AVG ( 0 ) + + - 88 THEN COUNT( DISTINCT 48 ) DIV - 52 * 5 * - + 6 * - 0 + - COUNT( * ) WHEN + + 94 THEN NULL ELSE 40 DIV 44 END
----
0

skipif mysql # not compatible
query I rowsort label-8661
SELECT - + CASE - 11 WHEN AVG ( 0 ) + + - 88 THEN COUNT ( DISTINCT 48 ) / - 52 * 5 * - + 6 * - 0 + - COUNT ( * ) WHEN + + 94 THEN NULL ELSE 40 / 44 END
----
0

query I rowsort
SELECT ALL + ( - - ( 81 ) )
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8663
SELECT + - MIN( 59 ) + - - 22
----
-37

skipif mysql # not compatible
query I rowsort label-8663
SELECT + - MIN ( 59 ) + - - 22
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-8664
SELECT - - MAX( DISTINCT 97 ) - + COUNT( * )
----
96

skipif mysql # not compatible
query I rowsort label-8664
SELECT - - MAX ( DISTINCT 97 ) - + COUNT ( * )
----
96

query I rowsort
SELECT + + 86 + - - 26 AS col2
----
112

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8666
SELECT ALL + COUNT( * ) DIV - 65 * - 13 + - COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8666
SELECT ALL + COUNT ( * ) / - 65 * - 13 + - COUNT ( * ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8667
SELECT DISTINCT CAST( - + COUNT( * ) AS SIGNED ) * - 52 + COUNT( * ) - COUNT( * )
----
52

skipif mysql # not compatible
query I rowsort label-8667
SELECT DISTINCT CAST ( - + COUNT ( * ) AS INTEGER ) * - 52 + COUNT ( * ) - COUNT ( * )
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8668
SELECT + 6 + CAST( NULL AS SIGNED ) * + ( - COUNT( * ) ) * - 23 + + + COALESCE ( + 24, + COUNT( * ), + 92 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8668
SELECT + 6 + CAST ( NULL AS INTEGER ) * + ( - COUNT ( * ) ) * - 23 + + + COALESCE ( + 24, + COUNT ( * ), + 92 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8669
SELECT + + 36 * - - COUNT( * )
----
36

skipif mysql # not compatible
query I rowsort label-8669
SELECT + + 36 * - - COUNT ( * )
----
36

query I rowsort
SELECT ALL + - ( - COALESCE ( 56, + - 7 ) )
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-8671
SELECT - 60 * - - NULLIF ( - + 26, + 92 * 30 ) + - + 56 + + + COUNT( * ) * 9
----
1513

skipif mysql # not compatible
query I rowsort label-8671
SELECT - 60 * - - NULLIF ( - + 26, + 92 * 30 ) + - + 56 + + + COUNT ( * ) * 9
----
1513

onlyif mysql # aggregate syntax: 
query I rowsort label-8672
SELECT + MAX( ALL 80 ) * - 53
----
-4240

skipif mysql # not compatible
query I rowsort label-8672
SELECT + MAX ( ALL 80 ) * - 53
----
-4240

query II rowsort
SELECT - 46 + - 98 * + ( 76 ) + - + 41, + 21 AS col2
----
-7535
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8674
SELECT ALL - COUNT( DISTINCT - + 93 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8674
SELECT ALL - COUNT ( DISTINCT - + 93 ) AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8675
SELECT + 91 * + ( 26 ) * 67 + - 18 DIV 65 * - 20 AS col0
----
158522

skipif mysql # not compatible
query I rowsort label-8675
SELECT + 91 * + ( 26 ) * 67 + - 18 / 65 * - 20 AS col0
----
158522

query II rowsort
SELECT ALL - 9 AS col0, 9
----
-9
9

query II rowsort
SELECT DISTINCT - 80 AS col1, - 84 - + 10 AS col0
----
-80
-94

query I rowsort
SELECT 54 * - 98 col1
----
-5292

query I rowsort
SELECT DISTINCT + 44 * - 29 AS col1
----
-1276

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8680
SELECT DISTINCT + CAST( + 31 AS SIGNED ) * 10 col0
----
310

skipif mysql # not compatible
query I rowsort label-8680
SELECT DISTINCT + CAST ( + 31 AS INTEGER ) * 10 col0
----
310

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8681
SELECT CAST( NULL AS SIGNED ) * 80 / + 68 * + - 9 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8681
SELECT CAST ( NULL AS INTEGER ) * 80 / + 68 * + - 9 AS col1
----
NULL

query II rowsort
SELECT + 89 AS col1, 36 col1
----
89
36

onlyif mysql # aggregate syntax: 
query I rowsort label-8683
SELECT MAX( DISTINCT - 29 ) * + ( 91 ) + COUNT( * ) + + 26 + + + 97 AS col1
----
-2515

skipif mysql # not compatible
query I rowsort label-8683
SELECT MAX ( DISTINCT - 29 ) * + ( 91 ) + COUNT ( * ) + + 26 + + + 97 AS col1
----
-2515

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8684
SELECT DISTINCT + 44 + 92 + ( - 41 ) * CAST( NULL AS SIGNED ) * - ( + ( - COALESCE ( COUNT( * ), + 87 * + 21 + + - 25 ) ) ) * - 12 * - - 37
----
NULL

skipif mysql # not compatible
query I rowsort label-8684
SELECT DISTINCT + 44 + 92 + ( - 41 ) * CAST ( NULL AS INTEGER ) * - ( + ( - COALESCE ( COUNT ( * ), + 87 * + 21 + + - 25 ) ) ) * - 12 * - - 37
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8685
SELECT 53 - - COUNT( * ) * - 32 AS col0, + 63 AS col1
----
21
63

skipif mysql # not compatible
query II rowsort label-8685
SELECT 53 - - COUNT ( * ) * - 32 AS col0, + 63 AS col1
----
21
63

onlyif mysql # DIV for integer division: 
query I rowsort label-8686
SELECT 69 DIV + + 25 col2
----
2

skipif mysql # not compatible
query I rowsort label-8686
SELECT 69 / + + 25 col2
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8687
SELECT 22 AS col0, SUM( DISTINCT - + CASE - 10 WHEN - 37 / - + 82 THEN NULL ELSE - 62 END ) / + 63 * + - 72 - SUM( - 84 ) * - + CAST( NULL AS SIGNED ) * + SUM( ALL 51 )
----
22
NULL

skipif mysql # not compatible
query II rowsort label-8687
SELECT 22 AS col0, SUM ( DISTINCT - + CASE - 10 WHEN - 37 / - + 82 THEN NULL ELSE - 62 END ) / + 63 * + - 72 - SUM ( - 84 ) * - + CAST ( NULL AS INTEGER ) * + SUM ( ALL 51 )
----
22
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-8688
SELECT ALL 56, 95 * 87 + + MIN( + + 35 ) DIV - 17 + + COALESCE ( + NULLIF ( + CAST( NULL AS SIGNED ), + 24 ), - - 51 ) AS col1, 18 AS col0
----
56
8314
18

skipif mysql # not compatible
query III rowsort label-8688
SELECT ALL 56, 95 * 87 + + MIN ( + + 35 ) / - 17 + + COALESCE ( + NULLIF ( + CAST ( NULL AS INTEGER ), + 24 ), - - 51 ) AS col1, 18 AS col0
----
56
8314
18

onlyif mysql # aggregate syntax: 
query I rowsort label-8689
SELECT DISTINCT - 99 + + - NULLIF ( 35, - COUNT( * ) )
----
-134

skipif mysql # not compatible
query I rowsort label-8689
SELECT DISTINCT - 99 + + - NULLIF ( 35, - COUNT ( * ) )
----
-134

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8690
SELECT ALL - 27 + - + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8690
SELECT ALL - 27 + - + CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8691
SELECT ALL 56 + + 46 * - 65 * + + CAST( + ( COUNT( * ) ) AS SIGNED ) * - + 47 AS col0
----
140586

skipif mysql # not compatible
query I rowsort label-8691
SELECT ALL 56 + + 46 * - 65 * + + CAST ( + ( COUNT ( * ) ) AS INTEGER ) * - + 47 AS col0
----
140586

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8692
SELECT ALL ( + - 75 ) + CAST( + ( CAST( NULL AS SIGNED ) ) AS DECIMAL ) * 69 * + COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8692
SELECT ALL ( + - 75 ) + CAST ( + ( CAST ( NULL AS INTEGER ) ) AS REAL ) * 69 * + COUNT ( * ) col2
----
NULL

query I rowsort
SELECT - 78 - + + 63 AS col2
----
-141

query I rowsort
SELECT + 87 + - 67
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-8695
SELECT - MIN( + + 28 )
----
-28

skipif mysql # not compatible
query I rowsort label-8695
SELECT - MIN ( + + 28 )
----
-28

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8696
SELECT CASE + 49 WHEN CAST( + 22 AS DECIMAL ) * 33 + + 44 THEN NULL ELSE - 77 END AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-8696
SELECT CASE + 49 WHEN CAST ( + 22 AS REAL ) * 33 + + 44 THEN NULL ELSE - 77 END AS col2
----
-77

query I rowsort
SELECT - 54 * - - 61 - 54 * 22
----
-4482

onlyif mysql # aggregate syntax: 
query I rowsort label-8698
SELECT DISTINCT 93 * + ( COUNT( ALL - - 57 ) ) + - - 91 AS col0
----
184

skipif mysql # not compatible
query I rowsort label-8698
SELECT DISTINCT 93 * + ( COUNT ( ALL - - 57 ) ) + - - 91 AS col0
----
184

onlyif mysql # aggregate syntax: 
query II rowsort label-8699
SELECT DISTINCT - + COUNT( + 43 ) - 77 + 88 + - 43 + + - 28 - + + 37 * + COUNT( - - 75 ) + + - 4 * + 24 AS col0, COUNT( * ) AS col2
----
-194
1

skipif mysql # not compatible
query II rowsort label-8699
SELECT DISTINCT - + COUNT ( + 43 ) - 77 + 88 + - 43 + + - 28 - + + 37 * + COUNT ( - - 75 ) + + - 4 * + 24 AS col0, COUNT ( * ) AS col2
----
-194
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8700
SELECT COUNT( * ), + MAX( - CAST( NULL AS SIGNED ) ) / ( + ( - 80 ) ) col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-8700
SELECT COUNT ( * ), + MAX ( - CAST ( NULL AS INTEGER ) ) / ( + ( - 80 ) ) col0
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8701
SELECT MIN( ALL - 20 )
----
-20

skipif mysql # not compatible
query I rowsort label-8701
SELECT MIN ( ALL - 20 )
----
-20

query I rowsort
SELECT ALL + 43 - + + 59
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-8703
SELECT ALL - - COUNT( + 37 )
----
1

skipif mysql # not compatible
query I rowsort label-8703
SELECT ALL - - COUNT ( + 37 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8704
SELECT + COUNT( 29 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8704
SELECT + COUNT ( 29 ) AS col2
----
1

query I rowsort
SELECT 26 * + 61 col2
----
1586

query II rowsort
SELECT DISTINCT - - 96 col0, + 38
----
96
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8707
SELECT + COUNT( * ) * - 53 + + MIN( DISTINCT 56 ) + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8707
SELECT + COUNT ( * ) * - 53 + + MIN ( DISTINCT 56 ) + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL 0 * 30 AS col0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-8709
SELECT DISTINCT - 75 DIV + 19 AS col2, + ( + 17 ) DIV 95 + 83 AS col1
----
-3
83

skipif mysql # not compatible
query II rowsort label-8709
SELECT DISTINCT - 75 / + 19 AS col2, + ( + 17 ) / 95 + 83 AS col1
----
-3
83

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8710
SELECT ALL CAST( NULL AS DECIMAL ) * 75
----
NULL

skipif mysql # not compatible
query I rowsort label-8710
SELECT ALL CAST ( NULL AS REAL ) * 75
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8711
SELECT 94 * - COUNT( * ) + + ( - 16 )
----
-110

skipif mysql # not compatible
query I rowsort label-8711
SELECT 94 * - COUNT ( * ) + + ( - 16 )
----
-110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8712
SELECT 57 * - - CASE + 2 WHEN 25 THEN MAX( ALL - + 83 ) * - 22 ELSE NULL END * - + 50 - + 68 * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8712
SELECT 57 * - - CASE + 2 WHEN 25 THEN MAX ( ALL - + 83 ) * - 22 ELSE NULL END * - + 50 - + 68 * - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8713
SELECT DISTINCT 34 + - - COALESCE ( - + COUNT( * ), + 85 - - 31, + COUNT( * ) - + + COUNT( * ) ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-8713
SELECT DISTINCT 34 + - - COALESCE ( - + COUNT ( * ), + 85 - - 31, + COUNT ( * ) - + + COUNT ( * ) ) AS col2
----
33

query I rowsort
SELECT ( + + 2 ) + - + 16
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-8715
SELECT SUM( ALL 87 ) + - 79 AS col0
----
8

skipif mysql # not compatible
query I rowsort label-8715
SELECT SUM ( ALL 87 ) + - 79 AS col0
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8716
SELECT 98 - + CAST( - 55 AS SIGNED ) + + - 28 AS col2
----
125

skipif mysql # not compatible
query I rowsort label-8716
SELECT 98 - + CAST ( - 55 AS INTEGER ) + + - 28 AS col2
----
125

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8717
SELECT DISTINCT 98 + + CAST( CAST( 59 AS SIGNED ) AS SIGNED ) - + 61
----
96

skipif mysql # not compatible
query I rowsort label-8717
SELECT DISTINCT 98 + + CAST ( CAST ( 59 AS INTEGER ) AS INTEGER ) - + 61
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8718
SELECT CASE - + COUNT( * ) WHEN + 95 THEN NULL ELSE COUNT( * ) END + 17 AS col0
----
18

skipif mysql # not compatible
query I rowsort label-8718
SELECT CASE - + COUNT ( * ) WHEN + 95 THEN NULL ELSE COUNT ( * ) END + 17 AS col0
----
18

query I rowsort
SELECT ALL 33 + - + ( + + 38 )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8720
SELECT DISTINCT 92 + + 93 * COUNT( * ) col0
----
185

skipif mysql # not compatible
query I rowsort label-8720
SELECT DISTINCT 92 + + 93 * COUNT ( * ) col0
----
185

query I rowsort
SELECT 98 + + 44 + - ( + 45 ) + 94 AS col2
----
191

query I rowsort
SELECT + 76 + ( - + 74 )
----
2

query I rowsort
SELECT ALL - - 2 - + 40 + - 54 * 80 AS col0
----
-4358

query I rowsort
SELECT - 38 + + 38 col0
----
0

query I rowsort
SELECT DISTINCT - ( + 74 ) - 80 AS col0
----
-154

query II rowsort
SELECT DISTINCT + 97 * - 38 AS col1, - 1 * + - 65 + - - 36 AS col1
----
-3686
101

onlyif mysql # aggregate syntax: 
query I rowsort label-8727
SELECT 84 * + + COUNT( * ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-8727
SELECT 84 * + + COUNT ( * ) AS col1
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-8728
SELECT ALL - 58 DIV - - 82 * ( + 46 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-8728
SELECT ALL - 58 / - - 82 * ( + 46 ) col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8729
SELECT - - ( + - 33 ) DIV COUNT( * ) AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-8729
SELECT - - ( + - 33 ) / COUNT ( * ) AS col1
----
-33

query I rowsort
SELECT - - 9 * - 2
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8731
SELECT ALL - CAST( NULL AS DECIMAL ) * - - CASE - 7 WHEN + 21 * CASE - MAX( + NULLIF ( + 68, + 98 * - ( + 2 ) * + 9 * - 57 ) ) WHEN CASE 80 WHEN + + 60 THEN + 47 WHEN 68 * - 6 * - 67 THEN NULL WHEN + 86 THEN - MIN( ALL CAST( NULL AS SIGNED ) ) * + - 21 * AVG ( ALL 58 ) - - NULLIF ( - 18, 63 ) * - 68 END THEN 4 WHEN CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END * + AVG ( 25 ) THEN NULL WHEN + 70 THEN 78 + 41 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8731
SELECT ALL - CAST ( NULL AS REAL ) * - - CASE - 7 WHEN + 21 * CASE - MAX ( + NULLIF ( + 68, + 98 * - ( + 2 ) * + 9 * - 57 ) ) WHEN CASE 80 WHEN + + 60 THEN + 47 WHEN 68 * - 6 * - 67 THEN NULL WHEN + 86 THEN - MIN ( ALL CAST ( NULL AS INTEGER ) ) * + - 21 * AVG ( ALL 58 ) - - NULLIF ( - 18, 63 ) * - 68 END THEN 4 WHEN CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END * + AVG ( 25 ) THEN NULL WHEN + 70 THEN 78 + 41 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8732
SELECT - 54 + + CASE + 45 WHEN 3 + + 93 THEN AVG ( + + 30 ) + 68 WHEN - 25 * + + 62 + + 93 + + 19 + COUNT( * ) THEN NULL WHEN - 42 * MIN( ALL + 67 ) THEN + ( 85 ) / 97 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8732
SELECT - 54 + + CASE + 45 WHEN 3 + + 93 THEN AVG ( + + 30 ) + 68 WHEN - 25 * + + 62 + + 93 + + 19 + COUNT ( * ) THEN NULL WHEN - 42 * MIN ( ALL + 67 ) THEN + ( 85 ) / 97 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8733
SELECT - - MAX( ALL + + 46 ) DIV - 63 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8733
SELECT - - MAX ( ALL + + 46 ) / - 63 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8734
SELECT - ( + 54 ) + + 32 + + COUNT( * ) * - + 99 AS col0, 9 * - COUNT( * ) col1
----
-121
-9

skipif mysql # not compatible
query II rowsort label-8734
SELECT - ( + 54 ) + + 32 + + COUNT ( * ) * - + 99 AS col0, 9 * - COUNT ( * ) col1
----
-121
-9

query I rowsort
SELECT + 37 - - - NULLIF ( 1, ( 45 ) ) * 14
----
23

query I rowsort
SELECT ALL 12 * - - 68 + - ( - - 24 )
----
792

onlyif mysql # aggregate syntax: 
query I rowsort label-8737
SELECT - 81 + COUNT( * )
----
-80

skipif mysql # not compatible
query I rowsort label-8737
SELECT - 81 + COUNT ( * )
----
-80

onlyif mysql # aggregate syntax: 
query II rowsort label-8738
SELECT DISTINCT + ( + + COUNT( - 49 ) ), ( - 8 ) AS col0
----
1
-8

skipif mysql # not compatible
query II rowsort label-8738
SELECT DISTINCT + ( + + COUNT ( - 49 ) ), ( - 8 ) AS col0
----
1
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8739
SELECT 89 * + 35 + + - COUNT( * ) + - 78 DIV - NULLIF ( - 69, 77 + 24 + + 73 ) AS col2
----
3113

skipif mysql # not compatible
query I rowsort label-8739
SELECT 89 * + 35 + + - COUNT ( * ) + - 78 / - NULLIF ( - 69, 77 + 24 + + 73 ) AS col2
----
3113

query I rowsort
SELECT DISTINCT 47 * + 68 AS col1
----
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-8741
SELECT COALESCE ( + + ( - 46 ), + COUNT( * ) ) AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-8741
SELECT COALESCE ( + + ( - 46 ), + COUNT ( * ) ) AS col0
----
-46

query I rowsort
SELECT + 87 + - 39
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8743
SELECT DISTINCT COUNT( + 84 ) * - 93 + + - 13 AS col2
----
-106

skipif mysql # not compatible
query I rowsort label-8743
SELECT DISTINCT COUNT ( + 84 ) * - 93 + + - 13 AS col2
----
-106

onlyif mysql # aggregate syntax: 
query I rowsort label-8744
SELECT + SUM( ALL - 78 ) AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-8744
SELECT + SUM ( ALL - 78 ) AS col2
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8745
SELECT + CAST( NULL AS SIGNED ) * + + 57 + - + 34 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8745
SELECT + CAST ( NULL AS INTEGER ) * + + 57 + - + 34 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8746
SELECT ALL 50 * + COUNT( * ) + NULLIF ( + 7, - ( 96 ) + + + 9 ) + + - ( - - 28 )
----
29

skipif mysql # not compatible
query I rowsort label-8746
SELECT ALL 50 * + COUNT ( * ) + NULLIF ( + 7, - ( 96 ) + + + 9 ) + + - ( - - 28 )
----
29

onlyif mysql # aggregate syntax: 
query II rowsort label-8747
SELECT DISTINCT COUNT( * ) * - + 52 + + 65 AS col0, + SUM( DISTINCT - 74 ) AS col1
----
13
-74

skipif mysql # not compatible
query II rowsort label-8747
SELECT DISTINCT COUNT ( * ) * - + 52 + + 65 AS col0, + SUM ( DISTINCT - 74 ) AS col1
----
13
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8748
SELECT ALL + COALESCE ( - CAST( NULL AS SIGNED ), CAST( NULL AS SIGNED ) + + 38 ) * - CAST( + COUNT( ALL + + 63 ) AS SIGNED ) - COALESCE ( - 78, 22 * + 37 * CAST( - - ( - - COUNT( * ) ) AS SIGNED ) ) * + 55 * - 0 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8748
SELECT ALL + COALESCE ( - CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) + + 38 ) * - CAST ( + COUNT ( ALL + + 63 ) AS INTEGER ) - COALESCE ( - 78, 22 * + 37 * CAST ( - - ( - - COUNT ( * ) ) AS INTEGER ) ) * + 55 * - 0 AS col2
----
NULL

query I rowsort
SELECT + 13 - 58 * + 89 + - 54 + ( - 6 ) * - - 3 * 54 * 27
----
-31447

onlyif mysql # aggregate syntax: 
query I rowsort label-8750
SELECT + 66 * + 0 - - - COUNT( * ) * 29 - 1 + - 69
----
-99

skipif mysql # not compatible
query I rowsort label-8750
SELECT + 66 * + 0 - - - COUNT ( * ) * 29 - 1 + - 69
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8751
SELECT ALL COUNT( * ) - + - 28 col0
----
29

skipif mysql # not compatible
query I rowsort label-8751
SELECT ALL COUNT ( * ) - + - 28 col0
----
29

query I rowsort
SELECT ALL - COALESCE ( + 76, + 61 ) - - + 83 AS col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8753
SELECT - 72 + - 3 + - COALESCE ( + 15, 76 + - 36 * 32 + MIN( DISTINCT + 38 ) )
----
-90

skipif mysql # not compatible
query I rowsort label-8753
SELECT - 72 + - 3 + - COALESCE ( + 15, 76 + - 36 * 32 + MIN ( DISTINCT + 38 ) )
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-8754
SELECT DISTINCT + 85 * + 47 + - 20 + + SUM( ALL NULLIF ( + + 15, 41 + CASE 73 WHEN - + 37 * 6 THEN + 47 + 97 END / + - 9 * - ( - 69 ) ) )
----
3990

skipif mysql # not compatible
query I rowsort label-8754
SELECT DISTINCT + 85 * + 47 + - 20 + + SUM ( ALL NULLIF ( + + 15, 41 + CASE 73 WHEN - + 37 * 6 THEN + 47 + 97 END / + - 9 * - ( - 69 ) ) )
----
3990

query I rowsort
SELECT - 99 * + 64
----
-6336

onlyif mysql # aggregate syntax: 
query I rowsort label-8756
SELECT ALL - COUNT( - 39 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-8756
SELECT ALL - COUNT ( - 39 ) col1
----
-1

query I rowsort
SELECT - + 97 * - + 76 AS col1
----
7372

onlyif mysql # aggregate syntax: 
query I rowsort label-8758
SELECT ALL + 91 + - - COUNT( * ) + + + 74 * 53
----
4014

skipif mysql # not compatible
query I rowsort label-8758
SELECT ALL + 91 + - - COUNT ( * ) + + + 74 * 53
----
4014

query I rowsort
SELECT ALL - - 69 + + 71 AS col2
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-8760
SELECT ALL + + 7 * - - COUNT( * )
----
7

skipif mysql # not compatible
query I rowsort label-8760
SELECT ALL + + 7 * - - COUNT ( * )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8761
SELECT - COUNT( * ) * - + 25
----
25

skipif mysql # not compatible
query I rowsort label-8761
SELECT - COUNT ( * ) * - + 25
----
25

query I rowsort
SELECT - 6 * + 48 AS col2
----
-288

onlyif mysql # aggregate syntax: 
query II rowsort label-8763
SELECT + COUNT( * ) AS col0, - MIN( DISTINCT + - 7 ) + - - 88 - + COUNT( * )
----
1
94

skipif mysql # not compatible
query II rowsort label-8763
SELECT + COUNT ( * ) AS col0, - MIN ( DISTINCT + - 7 ) + - - 88 - + COUNT ( * )
----
1
94

onlyif mysql # DIV for integer division: 
query I rowsort label-8764
SELECT 21 DIV - 71 - - + 53
----
53

skipif mysql # not compatible
query I rowsort label-8764
SELECT 21 / - 71 - - + 53
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8765
SELECT CAST( NULL AS SIGNED ) AS col0, 77 * - 60 * ( + NULLIF ( - + COUNT( * ), - 59 + - COUNT( * ) ) ) AS col1
----
NULL
4620

skipif mysql # not compatible
query II rowsort label-8765
SELECT CAST ( NULL AS INTEGER ) AS col0, 77 * - 60 * ( + NULLIF ( - + COUNT ( * ), - 59 + - COUNT ( * ) ) ) AS col1
----
NULL
4620

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8766
SELECT - MIN( ALL CAST( NULL AS SIGNED ) ) - + 98 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8766
SELECT - MIN ( ALL CAST ( NULL AS INTEGER ) ) - + 98 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8767
SELECT - ( MIN( + 19 ) ) * SUM( + NULLIF ( - - 33, 2 ) )
----
-627

skipif mysql # not compatible
query I rowsort label-8767
SELECT - ( MIN ( + 19 ) ) * SUM ( + NULLIF ( - - 33, 2 ) )
----
-627

query I rowsort
SELECT DISTINCT + 85 * + - 66 * - 59 * + 16
----
5295840

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8769
SELECT CAST( + 96 AS SIGNED ) AS col1
----
96

skipif mysql # not compatible
query I rowsort label-8769
SELECT CAST ( + 96 AS INTEGER ) AS col1
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-8770
SELECT ALL - 22 * + 32, + COUNT( * ) AS col0
----
-704
1

skipif mysql # not compatible
query II rowsort label-8770
SELECT ALL - 22 * + 32, + COUNT ( * ) AS col0
----
-704
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8771
SELECT + ( COALESCE ( + 36, - + COUNT( * ) ) ) * - - MIN( DISTINCT + 36 ) + + 43
----
1339

skipif mysql # not compatible
query I rowsort label-8771
SELECT + ( COALESCE ( + 36, - + COUNT ( * ) ) ) * - - MIN ( DISTINCT + 36 ) + + 43
----
1339

onlyif mysql # aggregate syntax: 
query I rowsort label-8772
SELECT - COUNT( * ) * 72 + + 68
----
-4

skipif mysql # not compatible
query I rowsort label-8772
SELECT - COUNT ( * ) * 72 + + 68
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-8773
SELECT ALL 33 * - 7 - - - ( COUNT( * ) ), + 41 AS col1
----
-232
41

skipif mysql # not compatible
query II rowsort label-8773
SELECT ALL 33 * - 7 - - - ( COUNT ( * ) ), + 41 AS col1
----
-232
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8774
SELECT - COUNT( * ) * - - 68 * + 74 * - - COUNT( * ) * + + 14 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8774
SELECT - COUNT ( * ) * - - 68 * + 74 * - - COUNT ( * ) * + + 14 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8775
SELECT ( + + NULLIF ( + COUNT( 36 ), 20 + - + 0 - + 2 * + 49 ) )
----
1

skipif mysql # not compatible
query I rowsort label-8775
SELECT ( + + NULLIF ( + COUNT ( 36 ), 20 + - + 0 - + 2 * + 49 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8776
SELECT - 86 + + 99 * - + MAX( ALL - + 51 ) + - 8 * - - COALESCE ( SUM( - 55 ), + 25, + COUNT( * ) + + - 34 )
----
5403

skipif mysql # not compatible
query I rowsort label-8776
SELECT - 86 + + 99 * - + MAX ( ALL - + 51 ) + - 8 * - - COALESCE ( SUM ( - 55 ), + 25, + COUNT ( * ) + + - 34 )
----
5403

query II rowsort
SELECT ALL + 59 AS col0, - 70 * - 12 - 0
----
59
840

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8778
SELECT + + CAST( NULL AS SIGNED ) - + 32 / 68 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8778
SELECT + + CAST ( NULL AS INTEGER ) - + 32 / 68 AS col1
----
NULL

query I rowsort
SELECT + + 3 * 10 col0
----
30

query I rowsort
SELECT + 39 * - - 13 * - - 31 + 27 AS col1
----
15744

query II rowsort
SELECT ALL + 34 AS col0, 5 AS col0
----
34
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8782
SELECT ALL MAX( DISTINCT - ( + - 27 ) ) col0
----
27

skipif mysql # not compatible
query I rowsort label-8782
SELECT ALL MAX ( DISTINCT - ( + - 27 ) ) col0
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8783
SELECT 14 + - CAST( NULL AS SIGNED ) + - 73 * + 82 * - ( + - 95 ) + + 56 * + 69 + - 48 + ( - 51 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8783
SELECT 14 + - CAST ( NULL AS INTEGER ) + - 73 * + 82 * - ( + - 95 ) + + 56 * + 69 + - 48 + ( - 51 ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8784
SELECT DISTINCT CASE + - 55 WHEN + - 99 THEN - 53 WHEN - 92 THEN - 90 - - COUNT( * ) DIV + 87 ELSE - ( CAST( COUNT( * ) AS SIGNED ) ) DIV COUNT( * ) * + 78 END
----
-78

skipif mysql # not compatible
query I rowsort label-8784
SELECT DISTINCT CASE + - 55 WHEN + - 99 THEN - 53 WHEN - 92 THEN - 90 - - COUNT ( * ) / + 87 ELSE - ( CAST ( COUNT ( * ) AS INTEGER ) ) / COUNT ( * ) * + 78 END
----
-78

query II rowsort
SELECT ALL - 3, + 53 col2
----
-3
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8786
SELECT + 83 DIV - COUNT( DISTINCT - 61 )
----
-83

skipif mysql # not compatible
query I rowsort label-8786
SELECT + 83 / - COUNT ( DISTINCT - 61 )
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8787
SELECT 50, 82 / + 66 + - MAX( - 92 ) * + 29 * 8 * + CASE + - 31 WHEN COUNT( * ) * 71 * - 64 + + ( + 13 ) THEN + + 93 WHEN + 46 + + 95 THEN 68 - + 32 ELSE - - CAST( NULL AS SIGNED ) END + - - MIN( - 21 ) AS col1
----
50
NULL

skipif mysql # not compatible
query II rowsort label-8787
SELECT 50, 82 / + 66 + - MAX ( - 92 ) * + 29 * 8 * + CASE + - 31 WHEN COUNT ( * ) * 71 * - 64 + + ( + 13 ) THEN + + 93 WHEN + 46 + + 95 THEN 68 - + 32 ELSE - - CAST ( NULL AS INTEGER ) END + - - MIN ( - 21 ) AS col1
----
50
NULL

query I rowsort
SELECT + 97 * COALESCE ( - 0, + 92 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8789
SELECT ALL + CASE - 68 WHEN - + 96 + ( COUNT( * ) ) + + COUNT( * ) THEN - + 29 + ( + + 68 ) * + 91 + - COUNT( * ) WHEN COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8789
SELECT ALL + CASE - 68 WHEN - + 96 + ( COUNT ( * ) ) + + COUNT ( * ) THEN - + 29 + ( + + 68 ) * + 91 + - COUNT ( * ) WHEN COUNT ( * ) THEN NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8790
SELECT CAST( NULL AS SIGNED ) + 7 + - CAST( - 45 AS SIGNED ) - - - 61 + - - 1 - 74, + AVG ( - - CAST( NULL AS SIGNED ) ) + 63 AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8790
SELECT CAST ( NULL AS INTEGER ) + 7 + - CAST ( - 45 AS INTEGER ) - - - 61 + - - 1 - 74, + AVG ( - - CAST ( NULL AS INTEGER ) ) + 63 AS col2
----
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8791
SELECT COUNT( + 69 ) AS col2, CASE + + CAST( NULL AS SIGNED ) WHEN - 50 + - 81 THEN - + 22 END * - 42 - - CAST( NULL AS SIGNED ) AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-8791
SELECT COUNT ( + 69 ) AS col2, CASE + + CAST ( NULL AS INTEGER ) WHEN - 50 + - 81 THEN - + 22 END * - 42 - - CAST ( NULL AS INTEGER ) AS col2
----
1
NULL

query I rowsort
SELECT + 50 + - 94 + + 76
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8793
SELECT ALL NULLIF ( + + 31, NULLIF ( + + 3, 26 ) ) + - COUNT( * ) + + + 9 + + 81
----
120

skipif mysql # not compatible
query I rowsort label-8793
SELECT ALL NULLIF ( + + 31, NULLIF ( + + 3, 26 ) ) + - COUNT ( * ) + + + 9 + + 81
----
120

query I rowsort
SELECT DISTINCT + 24 * - ( + 45 )
----
-1080

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8795
SELECT DISTINCT + 13 + + + MAX( DISTINCT + ( + - 98 ) ) DIV - + 50 AS col1
----
14

skipif mysql # not compatible
query I rowsort label-8795
SELECT DISTINCT + 13 + + + MAX ( DISTINCT + ( + - 98 ) ) / - + 50 AS col1
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8796
SELECT ALL 17 + - 91 + MIN( + + 14 ) + + 98 DIV 19 DIV + - 58 AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-8796
SELECT ALL 17 + - 91 + MIN ( + + 14 ) + + 98 / 19 / + - 58 AS col1
----
-60

query I rowsort
SELECT 54 + + 55 + + + 19 col1
----
128

query I rowsort
SELECT 89 - - 76
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-8799
SELECT ( - COUNT( * ) ) + + - 84 AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-8799
SELECT ( - COUNT ( * ) ) + + - 84 AS col2
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8800
SELECT 99 - + 62 col0, + 99 + + 69 * - COALESCE ( - - 24, - COUNT( * ), - - 13 ) - CASE - COALESCE ( - 69, + - 60 + + + COUNT( * ), + CASE 96 WHEN + + CAST( + 20 AS SIGNED ) THEN + 19 ELSE NULL END ) WHEN 31 + - 45 THEN + - 83 ELSE NULL END * 34 + - 76 * + 27 * + + MAX( + 39 )
----
37
NULL

skipif mysql # not compatible
query II rowsort label-8800
SELECT 99 - + 62 col0, + 99 + + 69 * - COALESCE ( - - 24, - COUNT ( * ), - - 13 ) - CASE - COALESCE ( - 69, + - 60 + + + COUNT ( * ), + CASE 96 WHEN + + CAST ( + 20 AS INTEGER ) THEN + 19 ELSE NULL END ) WHEN 31 + - 45 THEN + - 83 ELSE NULL END * 34 + - 76 * + 27 * + + MAX ( + 39 )
----
37
NULL

query I rowsort
SELECT DISTINCT + 81 + - 92 * - ( - 44 ) * + ( + 47 ) - - ( + + 2 )
----
-190173

query I rowsort
SELECT ALL - 26 + - + 44
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-8803
SELECT DISTINCT + SUM( ALL + - 31 ) * - 36
----
1116

skipif mysql # not compatible
query I rowsort label-8803
SELECT DISTINCT + SUM ( ALL + - 31 ) * - 36
----
1116

onlyif mysql # DIV for integer division: 
query I rowsort label-8804
SELECT DISTINCT + 81 DIV - + 7
----
-11

skipif mysql # not compatible
query I rowsort label-8804
SELECT DISTINCT + 81 / - + 7
----
-11

query I rowsort
SELECT 8 + + 63
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8806
SELECT COUNT( * ) * NULLIF ( + ( + - COALESCE ( - COUNT( * ), - + 64 * - + CAST( NULL AS SIGNED ) - - SUM( - + 9 ) * + + 50 + COUNT( * ) + + 96 - + 4 DIV - 40, + 42 DIV + 49 + - SUM( ( - - 94 ) ) * - + 74 ) ), + COUNT( * ) + 3 - + - 84 + COALESCE ( + 28, + - ( 53 ), + COUNT( * ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-8806
SELECT COUNT ( * ) * NULLIF ( + ( + - COALESCE ( - COUNT ( * ), - + 64 * - + CAST ( NULL AS INTEGER ) - - SUM ( - + 9 ) * + + 50 + COUNT ( * ) + + 96 - + 4 / - 40, + 42 / + 49 + - SUM ( ( - - 94 ) ) * - + 74 ) ), + COUNT ( * ) + 3 - + - 84 + COALESCE ( + 28, + - ( 53 ), + COUNT ( * ) ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8807
SELECT 36 * - - 62 + + COUNT( - 8 )
----
2233

skipif mysql # not compatible
query I rowsort label-8807
SELECT 36 * - - 62 + + COUNT ( - 8 )
----
2233

query I rowsort
SELECT 88 * + - 63 * 27 col2
----
-149688

query I rowsort
SELECT 23 * - ( - 19 )
----
437

onlyif mysql # aggregate syntax: 
query I rowsort label-8810
SELECT ALL + ( + 40 ) * + MAX( 20 ) AS col1
----
800

skipif mysql # not compatible
query I rowsort label-8810
SELECT ALL + ( + 40 ) * + MAX ( 20 ) AS col1
----
800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8811
SELECT ALL - 64 - + 4 + - + 90 - - 58 * + CAST( NULL AS SIGNED ) * - COUNT( * ) + + - 7
----
NULL

skipif mysql # not compatible
query I rowsort label-8811
SELECT ALL - 64 - + 4 + - + 90 - - 58 * + CAST ( NULL AS INTEGER ) * - COUNT ( * ) + + - 7
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8812
SELECT DISTINCT - COALESCE ( + COUNT( * ), + - 32, + + 25 * - - 33 + CAST( 20 AS SIGNED ), 78 - - 13 - - 21 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8812
SELECT DISTINCT - COALESCE ( + COUNT ( * ), + - 32, + + 25 * - - 33 + CAST ( 20 AS INTEGER ), 78 - - 13 - - 21 ) AS col1
----
-1

query I rowsort
SELECT DISTINCT - ( + + 64 ) col1
----
-64

query III rowsort
SELECT 69 * + 18, 20 AS col2, 83 * ( - 19 ) AS col1
----
1242
20
-1577

query I rowsort
SELECT + ( + - ( 50 ) ) AS col2
----
-50

query I rowsort
SELECT ALL 51 * + 79 * - 28 AS col2
----
-112812

onlyif mysql # aggregate syntax: 
query I rowsort label-8817
SELECT - COUNT( * ) * 21 * MAX( DISTINCT - ( + 44 ) ) * - 18 + + 34 * 13 + CASE + COUNT( * ) WHEN ( + + 31 ) THEN + 7 * + 70 / 9 - - 64 + - COUNT( * ) WHEN + - COUNT( + - 43 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8817
SELECT - COUNT ( * ) * 21 * MAX ( DISTINCT - ( + 44 ) ) * - 18 + + 34 * 13 + CASE + COUNT ( * ) WHEN ( + + 31 ) THEN + 7 * + 70 / 9 - - 64 + - COUNT ( * ) WHEN + - COUNT ( + - 43 ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8818
SELECT DISTINCT SUM( ALL + 16 )
----
16

skipif mysql # not compatible
query I rowsort label-8818
SELECT DISTINCT SUM ( ALL + 16 )
----
16

query I rowsort
SELECT ALL 78 * - COALESCE ( 42, - 13 ) + - 93 AS col1
----
-3369

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8820
SELECT ALL + - 98 + 59 + 64 col2, CAST( NULL AS SIGNED ) AS col2
----
25
NULL

skipif mysql # not compatible
query II rowsort label-8820
SELECT ALL + - 98 + 59 + 64 col2, CAST ( NULL AS INTEGER ) AS col2
----
25
NULL

query I rowsort
SELECT DISTINCT - - 36 + - 78
----
-42

query I rowsort
SELECT ALL - 95 + 82 AS col1
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-8823
SELECT COALESCE ( + - 30, + + AVG ( + 48 ), + 16 ) DIV + 24 - 76 * + 72
----
-5473

skipif mysql # not compatible
query I rowsort label-8823
SELECT COALESCE ( + - 30, + + AVG ( + 48 ), + 16 ) / + 24 - 76 * + 72
----
-5473

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8824
SELECT ALL - MAX( ALL + - 77 ) + + NULLIF ( - 81, - 4 ) / - ( CAST( NULL AS SIGNED ) ), 3 * + - 18 AS col0
----
NULL
-54

skipif mysql # not compatible
query II rowsort label-8824
SELECT ALL - MAX ( ALL + - 77 ) + + NULLIF ( - 81, - 4 ) / - ( CAST ( NULL AS INTEGER ) ), 3 * + - 18 AS col0
----
NULL
-54

query I rowsort
SELECT 57 * - - 12
----
684

query I rowsort
SELECT 92 * - - 80 AS col1
----
7360

onlyif mysql # aggregate syntax: 
query II rowsort label-8827
SELECT ALL COUNT( + COALESCE ( ( 75 ), + - 60, + 52 ) ) - - + COUNT( * ) * - 49 - - 16, 81 * - 20 * + 92 + - 68 col1
----
-32
-149108

skipif mysql # not compatible
query II rowsort label-8827
SELECT ALL COUNT ( + COALESCE ( ( 75 ), + - 60, + 52 ) ) - - + COUNT ( * ) * - 49 - - 16, 81 * - 20 * + 92 + - 68 col1
----
-32
-149108

query I rowsort
SELECT DISTINCT 93 - 18 AS col1
----
75

query I rowsort
SELECT ALL + 68 * + + 60
----
4080

onlyif mysql # aggregate syntax: 
query II rowsort label-8830
SELECT 90 AS col0, MIN( - - 53 ) AS col0
----
90
53

skipif mysql # not compatible
query II rowsort label-8830
SELECT 90 AS col0, MIN ( - - 53 ) AS col0
----
90
53

onlyif mysql # aggregate syntax: 
query I rowsort label-8831
SELECT CASE - 81 WHEN - - COUNT( - COALESCE ( - - 86, + 89 - 20, - ( + 78 ) ) ) + 98 + + + 71 * + 20 + + 86 THEN - COUNT( + ( 15 ) ) + - + 46 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8831
SELECT CASE - 81 WHEN - - COUNT ( - COALESCE ( - - 86, + 89 - 20, - ( + 78 ) ) ) + 98 + + + 71 * + 20 + + 86 THEN - COUNT ( + ( 15 ) ) + - + 46 END
----
NULL

query I rowsort
SELECT + NULLIF ( 74, - 91 ) AS col0
----
74

query I rowsort
SELECT ( + 87 ) * - 10 * - 75 AS col0
----
65250

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8834
SELECT CAST( + + 35 AS SIGNED ) - - NULLIF ( + MIN( - - 5 ), - - 86 ) - + 57 * - ( + 69 ) AS col1
----
3973

skipif mysql # not compatible
query I rowsort label-8834
SELECT CAST ( + + 35 AS INTEGER ) - - NULLIF ( + MIN ( - - 5 ), - - 86 ) - + 57 * - ( + 69 ) AS col1
----
3973

query I rowsort
SELECT 24 * + 35
----
840

onlyif mysql # aggregate syntax: 
query II rowsort label-8836
SELECT ( - COUNT( * ) ) * - MAX( - - 50 ) + - + 44 + 46 AS col2, 50 AS col0
----
52
50

skipif mysql # not compatible
query II rowsort label-8836
SELECT ( - COUNT ( * ) ) * - MAX ( - - 50 ) + - + 44 + 46 AS col2, 50 AS col0
----
52
50

onlyif mysql # aggregate syntax: 
query I rowsort label-8837
SELECT DISTINCT 27 * + + COUNT( * ) col1
----
27

skipif mysql # not compatible
query I rowsort label-8837
SELECT DISTINCT 27 * + + COUNT ( * ) col1
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8838
SELECT 5 DIV + SUM( - 68 ) + + + 81 + - - 70 * + 6 + - + 19 + 87 AS col0
----
569

skipif mysql # not compatible
query I rowsort label-8838
SELECT 5 / + SUM ( - 68 ) + + + 81 + - - 70 * + 6 + - + 19 + 87 AS col0
----
569

onlyif mysql # DIV for integer division: 
query I rowsort label-8839
SELECT 13 DIV + - 81 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8839
SELECT 13 / + - 81 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8840
SELECT - + 11 - 58 + 30 - COUNT( * ) DIV CAST( - - 56 AS SIGNED ) AS col1, ( + - 60 )
----
-39
-60

skipif mysql # not compatible
query II rowsort label-8840
SELECT - + 11 - 58 + 30 - COUNT ( * ) / CAST ( - - 56 AS INTEGER ) AS col1, ( + - 60 )
----
-39
-60

query I rowsort
SELECT ALL - 42 * + - 24
----
1008

onlyif mysql # DIV for integer division: 
query II rowsort label-8842
SELECT - - 36 - - ( + - 70 ) + + 87 * + 67 * + 5, - 60 DIV - - 56 AS col0
----
29111
-1

skipif mysql # not compatible
query II rowsort label-8842
SELECT - - 36 - - ( + - 70 ) + + 87 * + 67 * + 5, - 60 / - - 56 AS col0
----
29111
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8843
SELECT - ( - + 64 ) DIV - 10 AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-8843
SELECT - ( - + 64 ) / - 10 AS col0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-8844
SELECT DISTINCT - 98 * 2 * + 44 + - + MIN( + 91 ) + - + 65 AS col2
----
-8780

skipif mysql # not compatible
query I rowsort label-8844
SELECT DISTINCT - 98 * 2 * + 44 + - + MIN ( + 91 ) + - + 65 AS col2
----
-8780

query I rowsort
SELECT ALL - 59 * + ( + 80 ) * 75 + + 79 + + + 29 * - 50 AS col2
----
-355371

onlyif mysql # aggregate syntax: 
query I rowsort label-8846
SELECT - 96 + COUNT( * ) + 21 * COUNT( * ) AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-8846
SELECT - 96 + COUNT ( * ) + 21 * COUNT ( * ) AS col0
----
-74

query II rowsort
SELECT + - 74 AS col0, 92
----
-74
92

onlyif mysql # aggregate syntax: 
query I rowsort label-8848
SELECT - ( - CASE - 87 WHEN - + 55 THEN + 5 + + 3 + COUNT( - + 5 ) / 58 END ) / + + 56 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8848
SELECT - ( - CASE - 87 WHEN - + 55 THEN + 5 + + 3 + COUNT ( - + 5 ) / 58 END ) / + + 56 AS col2
----
NULL

query I rowsort
SELECT - 9 + + - 91
----
-100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8850
SELECT ALL + CASE + 64 WHEN - - ( - CAST( NULL AS SIGNED ) ) THEN - + 64 * 93 / + + 47 * + 99 END + + CAST( NULL AS DECIMAL ) + 48 - + - COUNT( + 19 ) * - 1, + MAX( + 61 ) AS col2
----
NULL
61

skipif mysql # not compatible
query II rowsort label-8850
SELECT ALL + CASE + 64 WHEN - - ( - CAST ( NULL AS INTEGER ) ) THEN - + 64 * 93 / + + 47 * + 99 END + + CAST ( NULL AS REAL ) + 48 - + - COUNT ( + 19 ) * - 1, + MAX ( + 61 ) AS col2
----
NULL
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8851
SELECT + 95 AS col2, 62 * + 66 + - + 39 + - - COUNT( * ) - 49 DIV COUNT( * ) * 51 AS col2
----
95
1555

skipif mysql # not compatible
query II rowsort label-8851
SELECT + 95 AS col2, 62 * + 66 + - + 39 + - - COUNT ( * ) - 49 / COUNT ( * ) * 51 AS col2
----
95
1555

query I rowsort
SELECT DISTINCT - 88 + - 96 AS col1
----
-184

query I rowsort
SELECT DISTINCT + + 46 + + 54
----
100

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8854
SELECT - - ( - CAST( + 92 AS SIGNED ) ) + - 0 AS col0, 77 AS col1
----
-92
77

skipif mysql # not compatible
query II rowsort label-8854
SELECT - - ( - CAST ( + 92 AS INTEGER ) ) + - 0 AS col0, 77 AS col1
----
-92
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8855
SELECT DISTINCT MIN( 65 ) AS col0
----
65

skipif mysql # not compatible
query I rowsort label-8855
SELECT DISTINCT MIN ( 65 ) AS col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-8856
SELECT - COUNT( - + 79 ) + + 31
----
30

skipif mysql # not compatible
query I rowsort label-8856
SELECT - COUNT ( - + 79 ) + + 31
----
30

query II rowsort
SELECT - 35 * 51 AS col1, - 72 AS col2
----
-1785
-72

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8858
SELECT ALL NULLIF ( - 62, + - CAST( + + 54 AS SIGNED ) / + 74 ) AS col0, 19 AS col1
----
-62
19

skipif mysql # not compatible
query II rowsort label-8858
SELECT ALL NULLIF ( - 62, + - CAST ( + + 54 AS INTEGER ) / + 74 ) AS col0, 19 AS col1
----
-62
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8859
SELECT ALL NULLIF ( - COALESCE ( - ( CAST( - 4 AS SIGNED ) ), - 20 ), + MAX( - 39 ) + - 89 ) AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-8859
SELECT ALL NULLIF ( - COALESCE ( - ( CAST ( - 4 AS INTEGER ) ), - 20 ), + MAX ( - 39 ) + - 89 ) AS col0
----
-4

query I rowsort
SELECT DISTINCT ( - + 50 ) AS col0
----
-50

query I rowsort
SELECT + 22 + + 63 AS col2
----
85

query I rowsort
SELECT ALL - 63 - + + 28 AS col0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8863
SELECT ALL + COUNT( * ) * + - ( 59 ) AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-8863
SELECT ALL + COUNT ( * ) * + - ( 59 ) AS col0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-8864
SELECT + 99 + + 64 + COALESCE ( 24, - ( - + 15 ), NULLIF ( - - 2, + AVG ( - + 82 ) + + COUNT( ALL 63 ) + + + 83 * - - 53 - - - 60 ) * - 26 * + 11 * 84 ) - 42 * 60 + - COUNT( * ) + + 43 * 8 AS col1
----
-1990

skipif mysql # not compatible
query I rowsort label-8864
SELECT + 99 + + 64 + COALESCE ( 24, - ( - + 15 ), NULLIF ( - - 2, + AVG ( - + 82 ) + + COUNT ( ALL 63 ) + + + 83 * - - 53 - - - 60 ) * - 26 * + 11 * 84 ) - 42 * 60 + - COUNT ( * ) + + 43 * 8 AS col1
----
-1990

query I rowsort
SELECT - ( 59 ) + 94 - + CASE 42 WHEN - - 67 THEN + - 17 END
----
NULL

query I rowsort
SELECT + 75 + + 68
----
143

query I rowsort
SELECT + 92 - - - 95 AS col1
----
-3

query I rowsort
SELECT + 39 * - 57 col2
----
-2223

query I rowsort
SELECT ALL + NULLIF ( + 49, + 88 )
----
49

query I rowsort
SELECT + 15 * NULLIF ( - 16, - 31 * - - 14 ) * + 88 col1
----
-21120

query I rowsort
SELECT 1 * - 35 + + 34 AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8872
SELECT - 95 DIV - 81 + - - 58 + 56 AS col1
----
115

skipif mysql # not compatible
query I rowsort label-8872
SELECT - 95 / - 81 + - - 58 + 56 AS col1
----
115

query I rowsort
SELECT DISTINCT - ( NULLIF ( - 8, + + 31 ) ) * + 25
----
200

query II rowsort
SELECT + - 96 * 42 + - 77 + + 40 AS col1, 56 AS col1
----
-4069
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8875
SELECT + COUNT( * ) + - 27 col0, 86 DIV + - 82 + + 91 AS col1
----
-26
90

skipif mysql # not compatible
query II rowsort label-8875
SELECT + COUNT ( * ) + - 27 col0, 86 / + - 82 + + 91 AS col1
----
-26
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8876
SELECT ALL + 69 * SUM( ALL - + 15 ) + - 7
----
-1042

skipif mysql # not compatible
query I rowsort label-8876
SELECT ALL + 69 * SUM ( ALL - + 15 ) + - 7
----
-1042

query I rowsort
SELECT ALL + ( + 39 ) col1
----
39

query I rowsort
SELECT DISTINCT + - 78 * + 81 + 24 AS col0
----
-6294

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8879
SELECT ALL - + 12 * + - 53 - + 97 * COALESCE ( 26, - 50 * - 38, + MIN( DISTINCT - 4 ) + + COUNT( * ), + COALESCE ( + ( 65 ), 77 * + 50 ) ) / - 4 * + CAST( 23 AS SIGNED ) * + + CASE - + 18 WHEN - COUNT( * ) * 80 + - 74 + + 46 THEN - 58 + 59 END * - - 97 + - ( 25 ) + - NULLIF ( - 78, - 1 + + 81 * - ( 50 ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8879
SELECT ALL - + 12 * + - 53 - + 97 * COALESCE ( 26, - 50 * - 38, + MIN ( DISTINCT - 4 ) + + COUNT ( * ), + COALESCE ( + ( 65 ), 77 * + 50 ) ) / - 4 * + CAST ( 23 AS INTEGER ) * + + CASE - + 18 WHEN - COUNT ( * ) * 80 + - 74 + + 46 THEN - 58 + 59 END * - - 97 + - ( 25 ) + - NULLIF ( - 78, - 1 + + 81 * - ( 50 ) ) col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8880
SELECT - 57 DIV + 19
----
-3

skipif mysql # not compatible
query I rowsort label-8880
SELECT - 57 / + 19
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8881
SELECT + 96 * + COUNT( * ) + 84
----
180

skipif mysql # not compatible
query I rowsort label-8881
SELECT + 96 * + COUNT ( * ) + 84
----
180

onlyif mysql # aggregate syntax: 
query I rowsort label-8882
SELECT - COUNT( - 98 ) * - + 73 col1
----
73

skipif mysql # not compatible
query I rowsort label-8882
SELECT - COUNT ( - 98 ) * - + 73 col1
----
73

query I rowsort
SELECT ALL - 39 * - 85 - - + 65 AS col0
----
3380

query I rowsort
SELECT + 60 * + 0 - - 83 + - 40 + - - 69 AS col0
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-8885
SELECT - 23 - + COUNT( * ) * + 64 + - + 25 AS col2
----
-112

skipif mysql # not compatible
query I rowsort label-8885
SELECT - 23 - + COUNT ( * ) * + 64 + - + 25 AS col2
----
-112

query I rowsort
SELECT ALL 59 * + 43
----
2537

query I rowsort
SELECT ALL 56 * - - 47 - 61
----
2571

query I rowsort
SELECT DISTINCT - 95 - - 13
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8889
SELECT ALL CASE + - 5 WHEN - COALESCE ( - COUNT( * ), 15 ) THEN NULL ELSE + + 8 + - ( + 4 ) - - - MIN( 24 ) * + COUNT( * ) * CASE - 35 WHEN 51 * - 44 / + SUM( - CAST( NULL AS SIGNED ) ) - - - 65 THEN NULL WHEN + 21 * - 38 + - 92 THEN - 61 END + + 85 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8889
SELECT ALL CASE + - 5 WHEN - COALESCE ( - COUNT ( * ), 15 ) THEN NULL ELSE + + 8 + - ( + 4 ) - - - MIN ( 24 ) * + COUNT ( * ) * CASE - 35 WHEN 51 * - 44 / + SUM ( - CAST ( NULL AS INTEGER ) ) - - - 65 THEN NULL WHEN + 21 * - 38 + - 92 THEN - 61 END + + 85 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8890
SELECT - 81 - - COUNT( * )
----
-80

skipif mysql # not compatible
query I rowsort label-8890
SELECT - 81 - - COUNT ( * )
----
-80

query I rowsort
SELECT - 93 * NULLIF ( - 76, + 29 ) AS col1
----
7068

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8892
SELECT ALL CAST( MAX( 67 ) AS SIGNED )
----
67

skipif mysql # not compatible
query I rowsort label-8892
SELECT ALL CAST ( MAX ( 67 ) AS INTEGER )
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8893
SELECT - CASE CASE - ( 78 ) WHEN + - 43 THEN - COUNT( * ) END WHEN - - 2 + - - COUNT( 92 ) THEN - 41 + - + 59 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8893
SELECT - CASE CASE - ( 78 ) WHEN + - 43 THEN - COUNT ( * ) END WHEN - - 2 + - - COUNT ( 92 ) THEN - 41 + - + 59 END AS col0
----
NULL

query I rowsort
SELECT + 51 * - + 5
----
-255

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8895
SELECT ALL - COALESCE ( + 46, - - CASE 21 WHEN COUNT( * ) THEN NULL ELSE - - ( 84 ) END + - - 73 - - CAST( NULL AS DECIMAL ), 75 ) * + CASE - 81 WHEN - + 57 THEN NULL WHEN + - NULLIF ( + + ( + + 56 ), - COUNT( * ) ) * - - 48 * - - 24 THEN + NULLIF ( 57, - - 77 + - 43 ) END + 71 + - 59 + - 1
----
NULL

skipif mysql # not compatible
query I rowsort label-8895
SELECT ALL - COALESCE ( + 46, - - CASE 21 WHEN COUNT ( * ) THEN NULL ELSE - - ( 84 ) END + - - 73 - - CAST ( NULL AS REAL ), 75 ) * + CASE - 81 WHEN - + 57 THEN NULL WHEN + - NULLIF ( + + ( + + 56 ), - COUNT ( * ) ) * - - 48 * - - 24 THEN + NULLIF ( 57, - - 77 + - 43 ) END + 71 + - 59 + - 1
----
NULL

query I rowsort
SELECT ALL + 5 + - ( - NULLIF ( + 44, 88 ) )
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-8897
SELECT DISTINCT - 51 DIV - - 28 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8897
SELECT DISTINCT - 51 / - - 28 AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8898
SELECT 17 DIV + ( - MAX( ALL + + 17 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8898
SELECT 17 / + ( - MAX ( ALL + + 17 ) ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8899
SELECT ALL COUNT( * ) + + + COUNT( * ) col0
----
2

skipif mysql # not compatible
query I rowsort label-8899
SELECT ALL COUNT ( * ) + + + COUNT ( * ) col0
----
2

query I rowsort
SELECT 97 + - ( + ( - 94 ) )
----
191

query II rowsort
SELECT ALL + NULLIF ( + - 19, - - 89 ) * - 46 - - 81 col1, 52
----
955
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8902
SELECT COUNT( * ) * - CAST( + 95 AS SIGNED ), - NULLIF ( 48, CASE - 96 WHEN + 38 THEN 0 / + AVG ( ALL + + 74 ) ELSE NULL END + + 44 / 65 ) + - 60 AS col2
----
-95
-108

skipif mysql # not compatible
query II rowsort label-8902
SELECT COUNT ( * ) * - CAST ( + 95 AS INTEGER ), - NULLIF ( 48, CASE - 96 WHEN + 38 THEN 0 / + AVG ( ALL + + 74 ) ELSE NULL END + + 44 / 65 ) + - 60 AS col2
----
-95
-108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8903
SELECT ALL + CAST( NULL AS SIGNED ) + 1 * - AVG ( 1 ) - 72 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8903
SELECT ALL + CAST ( NULL AS INTEGER ) + 1 * - AVG ( 1 ) - 72 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8904
SELECT - ( + + 32 ) / - ( - CAST( NULL AS SIGNED ) ) - - 85 * 32 + - - 55 + - 92, - 96 AS col1
----
NULL
-96

skipif mysql # not compatible
query II rowsort label-8904
SELECT - ( + + 32 ) / - ( - CAST ( NULL AS INTEGER ) ) - - 85 * 32 + - - 55 + - 92, - 96 AS col1
----
NULL
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8905
SELECT ALL 95 + + COUNT( ALL - 27 ) * - 10 * - - 30 AS col0
----
-205

skipif mysql # not compatible
query I rowsort label-8905
SELECT ALL 95 + + COUNT ( ALL - 27 ) * - 10 * - - 30 AS col0
----
-205

query I rowsort
SELECT + + ( 0 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8907
SELECT + CAST( NULL AS SIGNED ) / - + COUNT( * ) * 57 * + 64 - - 8 + - 31
----
NULL

skipif mysql # not compatible
query I rowsort label-8907
SELECT + CAST ( NULL AS INTEGER ) / - + COUNT ( * ) * 57 * + 64 - - 8 + - 31
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8908
SELECT ALL - - COALESCE ( + - COUNT( * ), 63 / + + 82 ) + + AVG ( DISTINCT CASE - 32 WHEN 37 + - + 59 THEN - 16 END ) + - 90 * + + 27 * + + COUNT( * ) + + - 44 + + 19 * 29 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8908
SELECT ALL - - COALESCE ( + - COUNT ( * ), 63 / + + 82 ) + + AVG ( DISTINCT CASE - 32 WHEN 37 + - + 59 THEN - 16 END ) + - 90 * + + 27 * + + COUNT ( * ) + + - 44 + + 19 * 29 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8909
SELECT 37 - MAX( + ( + 53 ) )
----
-16

skipif mysql # not compatible
query I rowsort label-8909
SELECT 37 - MAX ( + ( + 53 ) )
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8910
SELECT ALL - CAST( - - 18 AS SIGNED )
----
-18

skipif mysql # not compatible
query I rowsort label-8910
SELECT ALL - CAST ( - - 18 AS INTEGER )
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-8911
SELECT - 21 * - COALESCE ( + COUNT( * ), - 76, - - 45 + 33 ) + - - 38 * + ( + 39 ) * + + COUNT( * )
----
1503

skipif mysql # not compatible
query I rowsort label-8911
SELECT - 21 * - COALESCE ( + COUNT ( * ), - 76, - - 45 + 33 ) + - - 38 * + ( + 39 ) * + + COUNT ( * )
----
1503

query I rowsort
SELECT 83 + 67
----
150

query II rowsort
SELECT DISTINCT - - 2 AS col1, 80 AS col1
----
2
80

query II rowsort
SELECT 15, - 71 AS col2
----
15
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8915
SELECT + 25 * COUNT( * ) + - 90 * + COALESCE ( + - CAST( NULL AS SIGNED ), + - 53 * - + 13 + + - COUNT( * ) )
----
-61895

skipif mysql # not compatible
query I rowsort label-8915
SELECT + 25 * COUNT ( * ) + - 90 * + COALESCE ( + - CAST ( NULL AS INTEGER ), + - 53 * - + 13 + + - COUNT ( * ) )
----
-61895

onlyif mysql # aggregate syntax: 
query I rowsort label-8916
SELECT ALL NULLIF ( + COUNT( * ), + 5 ) - - 58
----
59

skipif mysql # not compatible
query I rowsort label-8916
SELECT ALL NULLIF ( + COUNT ( * ), + 5 ) - - 58
----
59

query I rowsort
SELECT 62 + - - 51 * - 73 - + - 70 AS col2
----
-3591

onlyif mysql # aggregate syntax: 
query I rowsort label-8918
SELECT + COUNT( - - ( - 1 ) )
----
1

skipif mysql # not compatible
query I rowsort label-8918
SELECT + COUNT ( - - ( - 1 ) )
----
1

query I rowsort
SELECT 85 * + 86 AS col1
----
7310

onlyif mysql # aggregate syntax: 
query I rowsort label-8920
SELECT ALL - MIN( 25 )
----
-25

skipif mysql # not compatible
query I rowsort label-8920
SELECT ALL - MIN ( 25 )
----
-25

query I rowsort
SELECT 8 * + 34 AS col1
----
272

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8922
SELECT ALL COUNT( * ) DIV 23
----
0

skipif mysql # not compatible
query I rowsort label-8922
SELECT ALL COUNT ( * ) / 23
----
0

query II rowsort
SELECT 82 * - - 4 col0, - ( - ( - 68 ) ) AS col1
----
328
-68

query I rowsort
SELECT 88 + + 70 col0
----
158

onlyif mysql # DIV for integer division: 
query II rowsort label-8925
SELECT 27 DIV - - 75 AS col2, 51 AS col1
----
0
51

skipif mysql # not compatible
query II rowsort label-8925
SELECT 27 / - - 75 AS col2, 51 AS col1
----
0
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8926
SELECT CAST( 36 AS SIGNED ) + - 21 AS col2
----
15

skipif mysql # not compatible
query I rowsort label-8926
SELECT CAST ( 36 AS INTEGER ) + - 21 AS col2
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-8927
SELECT ALL 69 DIV - 78 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8927
SELECT ALL 69 / - 78 AS col2
----
0

query I rowsort
SELECT ALL - 46 * + 49 * + ( + 22 )
----
-49588

onlyif mysql # aggregate syntax: 
query I rowsort label-8929
SELECT DISTINCT + ( 70 ) + 16 + + COUNT( * ) + + + COUNT( * ) AS col2
----
88

skipif mysql # not compatible
query I rowsort label-8929
SELECT DISTINCT + ( 70 ) + 16 + + COUNT ( * ) + + + COUNT ( * ) AS col2
----
88

query I rowsort
SELECT DISTINCT 63 * + ( + 13 ) AS col0
----
819

query I rowsort
SELECT ALL + 73 + + + 16
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-8932
SELECT 23 + COUNT( * )
----
24

skipif mysql # not compatible
query I rowsort label-8932
SELECT 23 + COUNT ( * )
----
24

onlyif mysql # aggregate syntax: 
query II rowsort label-8933
SELECT DISTINCT 93 AS col1, COUNT( * ) * - COALESCE ( + - COUNT( * ), + 67 - 1 * ( 14 ), 6 - - 40 ) AS col1
----
93
1

skipif mysql # not compatible
query II rowsort label-8933
SELECT DISTINCT 93 AS col1, COUNT ( * ) * - COALESCE ( + - COUNT ( * ), + 67 - 1 * ( 14 ), 6 - - 40 ) AS col1
----
93
1

query I rowsort
SELECT ALL - ( 52 ) * - 44 col1
----
2288

onlyif mysql # aggregate syntax: 
query I rowsort label-8935
SELECT 33 + - 42 + - - MAX( - 69 ) AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-8935
SELECT 33 + - 42 + - - MAX ( - 69 ) AS col2
----
-78

query I rowsort
SELECT 42 + + 86
----
128

query I rowsort
SELECT 52 + - 72 AS col2
----
-20

query I rowsort
SELECT 23 * + - 66
----
-1518

query I rowsort
SELECT 58 + - 62 col0
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-8940
SELECT 93 col2, + COUNT( * ) AS col2
----
93
1

skipif mysql # not compatible
query II rowsort label-8940
SELECT 93 col2, + COUNT ( * ) AS col2
----
93
1

query I rowsort
SELECT ALL - - 52 + 51
----
103

query I rowsort
SELECT ALL - 32 * - + 97 + 13 col1
----
3117

onlyif mysql # aggregate syntax: 
query I rowsort label-8943
SELECT DISTINCT + + 91 * 93 + 96 + - - 88 * ( COUNT( * ) ) AS col2
----
8647

skipif mysql # not compatible
query I rowsort label-8943
SELECT DISTINCT + + 91 * 93 + 96 + - - 88 * ( COUNT ( * ) ) AS col2
----
8647

query I rowsort
SELECT ALL 28 - - + 21 col2
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8945
SELECT ALL + CASE + 81 WHEN + 84 * + + 15 THEN COUNT( * ) + + + 8 * 46 / 84 * 24 + - + MIN( + 69 ) * CAST( NULL AS SIGNED ) WHEN 16 + - 50 + + + 46 * + 41 + - + 76 THEN NULL END * - + 97
----
NULL

skipif mysql # not compatible
query I rowsort label-8945
SELECT ALL + CASE + 81 WHEN + 84 * + + 15 THEN COUNT ( * ) + + + 8 * 46 / 84 * 24 + - + MIN ( + 69 ) * CAST ( NULL AS INTEGER ) WHEN 16 + - 50 + + + 46 * + 41 + - + 76 THEN NULL END * - + 97
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8946
SELECT ( 5 ) * - ( + NULLIF ( + 30, + 66 ) ), + 40 * ( + 87 ) + + CAST( NULL AS SIGNED ) AS col1
----
-150
NULL

skipif mysql # not compatible
query II rowsort label-8946
SELECT ( 5 ) * - ( + NULLIF ( + 30, + 66 ) ), + 40 * ( + 87 ) + + CAST ( NULL AS INTEGER ) AS col1
----
-150
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8947
SELECT CAST( + + 14 AS SIGNED ) * + 16 * + - 63 + + 99 + + 82
----
-13931

skipif mysql # not compatible
query I rowsort label-8947
SELECT CAST ( + + 14 AS INTEGER ) * + 16 * + - 63 + + 99 + + 82
----
-13931

onlyif mysql # aggregate syntax: 
query I rowsort label-8948
SELECT + + SUM( DISTINCT + + 18 ) AS col1
----
18

skipif mysql # not compatible
query I rowsort label-8948
SELECT + + SUM ( DISTINCT + + 18 ) AS col1
----
18

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8949
SELECT CAST( NULL AS DECIMAL ) / + + 71
----
NULL

skipif mysql # not compatible
query I rowsort label-8949
SELECT CAST ( NULL AS REAL ) / + + 71
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8950
SELECT + CAST( NULL AS DECIMAL ) / 59 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8950
SELECT + CAST ( NULL AS REAL ) / 59 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8951
SELECT + + COUNT( * ) * - - 2 + 84
----
86

skipif mysql # not compatible
query I rowsort label-8951
SELECT + + COUNT ( * ) * - - 2 + 84
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8952
SELECT DISTINCT + COUNT( * ) DIV 46 AS col1, - 88 + COUNT( * ) * - 92 AS col2
----
0
-180

skipif mysql # not compatible
query II rowsort label-8952
SELECT DISTINCT + COUNT ( * ) / 46 AS col1, - 88 + COUNT ( * ) * - 92 AS col2
----
0
-180

query II rowsort
SELECT + 5 * - 64 AS col1, - 70 AS col1
----
-320
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8954
SELECT - 14 DIV - 91 - + MAX( + + 84 ) + 97 DIV - + 13 AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-8954
SELECT - 14 / - 91 - + MAX ( + + 84 ) + 97 / - + 13 AS col2
----
-91

query II rowsort
SELECT ALL - 56 AS col1, - 67 col1
----
-56
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-8956
SELECT DISTINCT - + CASE - 92 WHEN 81 + 18 * - 24 THEN 57 END col2, + 0 * - COUNT( * ) DIV + - 68, + 45 AS col2
----
NULL
0
45

skipif mysql # not compatible
query III rowsort label-8956
SELECT DISTINCT - + CASE - 92 WHEN 81 + 18 * - 24 THEN 57 END col2, + 0 * - COUNT ( * ) / + - 68, + 45 AS col2
----
NULL
0
45

query I rowsort
SELECT ( + 15 ) * - 89
----
-1335

query I rowsort
SELECT 31 + - + 29 col0
----
2

query I rowsort
SELECT 41 * + 29 * + ( + 75 ) + 18 AS col0
----
89193

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8960
SELECT ALL MIN( DISTINCT - - 45 ) * COUNT( * ) DIV 12 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-8960
SELECT ALL MIN ( DISTINCT - - 45 ) * COUNT ( * ) / 12 AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8961
SELECT COALESCE ( + - 7, + ( + - 38 ), - + 52 * - - 37 * - 48 + - + COUNT( ALL + 49 ) - COUNT( ( + 79 ) ) ) * + 2 + COUNT( * ) * - + 6
----
-20

skipif mysql # not compatible
query I rowsort label-8961
SELECT COALESCE ( + - 7, + ( + - 38 ), - + 52 * - - 37 * - 48 + - + COUNT ( ALL + 49 ) - COUNT ( ( + 79 ) ) ) * + 2 + COUNT ( * ) * - + 6
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-8962
SELECT DISTINCT + 59 + + COUNT( * ) * - - 72
----
131

skipif mysql # not compatible
query I rowsort label-8962
SELECT DISTINCT + 59 + + COUNT ( * ) * - - 72
----
131

query I rowsort
SELECT ALL - 5 + - 59 - + 28
----
-92

query II rowsort
SELECT + 40 * - 93, NULLIF ( 58, + 95 ) AS col1
----
-3720
58

onlyif mysql # DIV for integer division: 
query I rowsort label-8965
SELECT ALL ( - + 60 ) + 43 + - 38 DIV - + 84 * - 26 + + - 13
----
-30

skipif mysql # not compatible
query I rowsort label-8965
SELECT ALL ( - + 60 ) + 43 + - 38 / - + 84 * - 26 + + - 13
----
-30

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8966
SELECT DISTINCT MAX( DISTINCT + - 85 ) * - ( + + CASE - 52 WHEN + - 18 + - - CAST( ( + 1 ) AS DECIMAL ) THEN + 45 END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8966
SELECT DISTINCT MAX ( DISTINCT + - 85 ) * - ( + + CASE - 52 WHEN + - 18 + - - CAST ( ( + 1 ) AS REAL ) THEN + 45 END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8967
SELECT + COUNT( * ) * - 3 AS col1, + 22 AS col2
----
-3
22

skipif mysql # not compatible
query II rowsort label-8967
SELECT + COUNT ( * ) * - 3 AS col1, + 22 AS col2
----
-3
22

query I rowsort
SELECT - NULLIF ( + - 25, 64 * - - 65 ) col0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8969
SELECT ALL MIN( ALL + 59 ) + 82 * - 84 AS col0
----
-6829

skipif mysql # not compatible
query I rowsort label-8969
SELECT ALL MIN ( ALL + 59 ) + 82 * - 84 AS col0
----
-6829

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8970
SELECT - 80 * - CAST( NULL AS DECIMAL ), 49 + + 41 - + CAST( NULL AS SIGNED ) * + 87 * + 2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8970
SELECT - 80 * - CAST ( NULL AS REAL ), 49 + + 41 - + CAST ( NULL AS INTEGER ) * + 87 * + 2
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8971
SELECT ALL COUNT( - ( 98 ) ) AS col0, - 89
----
1
-89

skipif mysql # not compatible
query II rowsort label-8971
SELECT ALL COUNT ( - ( 98 ) ) AS col0, - 89
----
1
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-8972
SELECT ALL MIN( + 53 ) + - 13 AS col1
----
40

skipif mysql # not compatible
query I rowsort label-8972
SELECT ALL MIN ( + 53 ) + - 13 AS col1
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-8973
SELECT DISTINCT 14 DIV - - 32
----
0

skipif mysql # not compatible
query I rowsort label-8973
SELECT DISTINCT 14 / - - 32
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8974
SELECT ALL - CAST( NULL AS SIGNED ) - + 73 + - 41 * 1 * MIN( - 72 ) + + + 86 + - 64 * COALESCE ( - - COUNT( * ), + - 35 + + 54, 94 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8974
SELECT ALL - CAST ( NULL AS INTEGER ) - + 73 + - 41 * 1 * MIN ( - 72 ) + + + 86 + - 64 * COALESCE ( - - COUNT ( * ), + - 35 + + 54, 94 ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8975
SELECT + - 26 DIV 5 + - 61
----
-66

skipif mysql # not compatible
query I rowsort label-8975
SELECT + - 26 / 5 + - 61
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-8976
SELECT DISTINCT - 21 * SUM( DISTINCT + 91 ) AS col2
----
-1911

skipif mysql # not compatible
query I rowsort label-8976
SELECT DISTINCT - 21 * SUM ( DISTINCT + 91 ) AS col2
----
-1911

onlyif mysql # aggregate syntax: 
query I rowsort label-8977
SELECT ALL COUNT( * ) * - - 27 * - 94 + + - COUNT( * )
----
-2539

skipif mysql # not compatible
query I rowsort label-8977
SELECT ALL COUNT ( * ) * - - 27 * - 94 + + - COUNT ( * )
----
-2539

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8978
SELECT - + ( + - 64 ) * + + CAST( - - 66 AS SIGNED )
----
4224

skipif mysql # not compatible
query I rowsort label-8978
SELECT - + ( + - 64 ) * + + CAST ( - - 66 AS INTEGER )
----
4224

query I rowsort
SELECT + - 82 + + ( + + 74 ) AS col1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-8980
SELECT ALL - MAX( ALL - 79 ) - - 23
----
102

skipif mysql # not compatible
query I rowsort label-8980
SELECT ALL - MAX ( ALL - 79 ) - - 23
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-8981
SELECT + + 7 + + COUNT( * ) + + 96 - - 2 * - 66
----
-28

skipif mysql # not compatible
query I rowsort label-8981
SELECT + + 7 + + COUNT ( * ) + + 96 - - 2 * - 66
----
-28

query I rowsort
SELECT + - ( + NULLIF ( - ( - - 10 ), + - 97 ) )
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8983
SELECT - 18 * - - CASE - NULLIF ( - 19, 1 ) WHEN + - 67 / - + 62 / - CAST( COUNT( * ) AS SIGNED ) + - + COUNT( * ) THEN NULL ELSE - CASE - 56 WHEN 98 THEN - 13 ELSE NULL END END
----
NULL

skipif mysql # not compatible
query I rowsort label-8983
SELECT - 18 * - - CASE - NULLIF ( - 19, 1 ) WHEN + - 67 / - + 62 / - CAST ( COUNT ( * ) AS INTEGER ) + - + COUNT ( * ) THEN NULL ELSE - CASE - 56 WHEN 98 THEN - 13 ELSE NULL END END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8984
SELECT - 33 DIV - 91 - + + SUM( - 70 )
----
70

skipif mysql # not compatible
query I rowsort label-8984
SELECT - 33 / - 91 - + + SUM ( - 70 )
----
70

query I rowsort
SELECT DISTINCT + CASE 53 WHEN - + AVG ( DISTINCT + 69 ) THEN - 16 * 55 ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8986
SELECT CAST( + 71 AS SIGNED ) DIV - 24 + 86 + + + 18 AS col1
----
102

skipif mysql # not compatible
query I rowsort label-8986
SELECT CAST ( + 71 AS INTEGER ) / - 24 + 86 + + + 18 AS col1
----
102

query II rowsort
SELECT ALL + ( + + 10 ) AS col1, 64 AS col1
----
10
64

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8988
SELECT ALL + ( + 68 ) DIV - 88 - - NULLIF ( 24, - - AVG ( ALL - - CAST( NULL AS SIGNED ) ) ) AS col1, + 24 AS col0
----
24
24

skipif mysql # not compatible
query II rowsort label-8988
SELECT ALL + ( + 68 ) / - 88 - - NULLIF ( 24, - - AVG ( ALL - - CAST ( NULL AS INTEGER ) ) ) AS col1, + 24 AS col0
----
24
24

query I rowsort
SELECT - - 75 + - 35 AS col1
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8990
SELECT + + MIN( ( - 59 ) )
----
-59

skipif mysql # not compatible
query I rowsort label-8990
SELECT + + MIN ( ( - 59 ) )
----
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8991
SELECT 25 * - + 74 + + 8 - MAX( DISTINCT + 35 ) AS col2, + ( 16 ) DIV - 57 * - 64 * 25 AS col0
----
-1877
0

skipif mysql # not compatible
query II rowsort label-8991
SELECT 25 * - + 74 + + 8 - MAX ( DISTINCT + 35 ) AS col2, + ( 16 ) / - 57 * - 64 * 25 AS col0
----
-1877
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8992
SELECT ALL - COUNT( * ) * - - MIN( + 9 )
----
-9

skipif mysql # not compatible
query I rowsort label-8992
SELECT ALL - COUNT ( * ) * - - MIN ( + 9 )
----
-9

query I rowsort
SELECT ALL + 72 * 79 * - 22 * - + 23 * - - 8 + 75
----
23025099

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8994
SELECT - ( - 63 ) * - + COUNT( ALL - 99 ) AS col2, - COALESCE ( 45, - - ( 45 ) + - - COUNT( * ) * - CASE AVG ( DISTINCT + 99 ) WHEN + 80 THEN NULL ELSE + - 73 END + - + SUM( - CAST( + 10 AS SIGNED ) ) + - + 12 + + + COUNT( * ) * - COUNT( * ), COUNT( * ) * SUM( DISTINCT + 46 ) * - - COUNT( * ) - + - 34 ) AS col1
----
-63
-45

skipif mysql # not compatible
query II rowsort label-8994
SELECT - ( - 63 ) * - + COUNT ( ALL - 99 ) AS col2, - COALESCE ( 45, - - ( 45 ) + - - COUNT ( * ) * - CASE AVG ( DISTINCT + 99 ) WHEN + 80 THEN NULL ELSE + - 73 END + - + SUM ( - CAST ( + 10 AS INTEGER ) ) + - + 12 + + + COUNT ( * ) * - COUNT ( * ), COUNT ( * ) * SUM ( DISTINCT + 46 ) * - - COUNT ( * ) - + - 34 ) AS col1
----
-63
-45

query I rowsort
SELECT DISTINCT + ( - + 60 ) * + 16 + - 60
----
-1020

onlyif mysql # aggregate syntax: 
query I rowsort label-8996
SELECT MAX( + + 74 ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-8996
SELECT MAX ( + + 74 ) AS col2
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8997
SELECT ALL CAST( - - 27 AS SIGNED ) AS col1
----
27

skipif mysql # not compatible
query I rowsort label-8997
SELECT ALL CAST ( - - 27 AS INTEGER ) AS col1
----
27

query I rowsort
SELECT - 98 + - 46 AS col0
----
-144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8999
SELECT DISTINCT CAST( NULL AS SIGNED ) * + MAX( ALL - + 59 ) * - - 75 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8999
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + MAX ( ALL - + 59 ) * - - 75 AS col0
----
NULL

query I rowsort
SELECT - 74 + - 99
----
-173

query I rowsort
SELECT + 80 - - 9 * - - 37 * + + 82
----
27386

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9002
SELECT ALL CAST( - - 56 AS SIGNED )
----
56

skipif mysql # not compatible
query I rowsort label-9002
SELECT ALL CAST ( - - 56 AS INTEGER )
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-9003
SELECT + 44 + + - ( + - 54 ) DIV - 34 + - ( + - 10 )
----
53

skipif mysql # not compatible
query I rowsort label-9003
SELECT + 44 + + - ( + - 54 ) / - 34 + - ( + - 10 )
----
53

query II rowsort
SELECT DISTINCT 58 AS col0, 2
----
58
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9005
SELECT ALL - 91 * - COUNT( * ) * 17 * + 61
----
94367

skipif mysql # not compatible
query I rowsort label-9005
SELECT ALL - 91 * - COUNT ( * ) * 17 * + 61
----
94367

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9006
SELECT CAST( + - 96 AS SIGNED ) AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-9006
SELECT CAST ( + - 96 AS INTEGER ) AS col2
----
-96

query I rowsort
SELECT + ( + 40 ) + 80
----
120

query I rowsort
SELECT + - 36 * 3 + + + NULLIF ( - - 83, 78 ) AS col2
----
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-9009
SELECT + 94 + + - ( COUNT( * ) ) AS col2, 54
----
93
54

skipif mysql # not compatible
query II rowsort label-9009
SELECT + 94 + + - ( COUNT ( * ) ) AS col2, 54
----
93
54

onlyif mysql # DIV for integer division: 
query I rowsort label-9010
SELECT DISTINCT + 9 DIV + 90
----
0

skipif mysql # not compatible
query I rowsort label-9010
SELECT DISTINCT + 9 / + 90
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9011
SELECT - - MIN( 22 )
----
22

skipif mysql # not compatible
query I rowsort label-9011
SELECT - - MIN ( 22 )
----
22

query I rowsort
SELECT - - 39 + + - 38
----
1

query I rowsort
SELECT ALL 90 * - - 64
----
5760

onlyif mysql # aggregate syntax: 
query II rowsort label-9014
SELECT DISTINCT 76 AS col1, + 39 * COUNT( ( + + 79 ) ) * + 75 + + 75 * COUNT( ALL + 62 )
----
76
3000

skipif mysql # not compatible
query II rowsort label-9014
SELECT DISTINCT 76 AS col1, + 39 * COUNT ( ( + + 79 ) ) * + 75 + + 75 * COUNT ( ALL + 62 )
----
76
3000

onlyif mysql # aggregate syntax: 
query II rowsort label-9015
SELECT DISTINCT + COUNT( * ) * - 14 * + 88, 92 AS col0
----
-1232
92

skipif mysql # not compatible
query II rowsort label-9015
SELECT DISTINCT + COUNT ( * ) * - 14 * + 88, 92 AS col0
----
-1232
92

query I rowsort
SELECT ALL + 84 * 63
----
5292

query II rowsort
SELECT ALL + - 52 AS col0, 90 - + 99 AS col1
----
-52
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-9018
SELECT + 5, 84 * + COUNT( * ) AS col0
----
5
84

skipif mysql # not compatible
query II rowsort label-9018
SELECT + 5, 84 * + COUNT ( * ) AS col0
----
5
84

query I rowsort
SELECT + - 35 * 28 AS col2
----
-980

query I rowsort
SELECT ALL 79 * 3 AS col1
----
237

query I rowsort
SELECT + + ( 24 )
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9022
SELECT ALL - MAX( ALL - - 10 ) / + + CAST( NULL AS SIGNED ) * + + 51 - + 74 + + 13 + - + 43 + + 92 / + + 88 + COUNT( * ) + + 96 + - CASE + MIN( ( + 26 ) ) WHEN + - 30 * 10 THEN - - 34 + - - 98 + - 74 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9022
SELECT ALL - MAX ( ALL - - 10 ) / + + CAST ( NULL AS INTEGER ) * + + 51 - + 74 + + 13 + - + 43 + + 92 / + + 88 + COUNT ( * ) + + 96 + - CASE + MIN ( ( + 26 ) ) WHEN + - 30 * 10 THEN - - 34 + - - 98 + - 74 END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9023
SELECT DISTINCT - NULLIF ( 86, NULLIF ( 20, 30 ) ) + - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9023
SELECT DISTINCT - NULLIF ( 86, NULLIF ( 20, 30 ) ) + - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - ( - + 3 ) AS col1
----
3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9025
SELECT DISTINCT + CASE - 79 WHEN + 88 * + 77 + - 18 THEN 22 + - - 18 END + - 83 + + - ( - + 58 ) * - 41 - - COUNT( ALL - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9025
SELECT DISTINCT + CASE - 79 WHEN + 88 * + 77 + - 18 THEN 22 + - - 18 END + - 83 + + - ( - + 58 ) * - 41 - - COUNT ( ALL - CAST ( NULL AS REAL ) )
----
NULL

query I rowsort
SELECT DISTINCT - 5 + + 20
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9027
SELECT - 32 * + + ( - - ( - 54 ) ) + + + 96 * 82 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9027
SELECT - 32 * + + ( - - ( - 54 ) ) + + + 96 * 82 / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9028
SELECT DISTINCT - ( 98 ) col2, 35 DIV 58 + COALESCE ( + 95, 37 )
----
-98
95

skipif mysql # not compatible
query II rowsort label-9028
SELECT DISTINCT - ( 98 ) col2, 35 / 58 + COALESCE ( + 95, 37 )
----
-98
95

query I rowsort
SELECT DISTINCT - 60 - + 15 + + 76 * + 93 + + + 37 col0
----
7030

query I rowsort
SELECT DISTINCT - 43 - + 1 AS col0
----
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-9031
SELECT ALL 97 DIV ( - 22 ) col1
----
-4

skipif mysql # not compatible
query I rowsort label-9031
SELECT ALL 97 / ( - 22 ) col1
----
-4

query I rowsort
SELECT 51 * - 59 * - 98
----
294882

query I rowsort
SELECT DISTINCT + 43 - + 27 * - 37 * 41 AS col1
----
41002

query I rowsort
SELECT ( + + 38 )
----
38

onlyif mysql # aggregate syntax: 
query II rowsort label-9035
SELECT + 17 - 7 + + COUNT( * ) * - 57 AS col2, ( + ( COUNT( * ) ) ) + + - COUNT( * )
----
-47
0

skipif mysql # not compatible
query II rowsort label-9035
SELECT + 17 - 7 + + COUNT ( * ) * - 57 AS col2, ( + ( COUNT ( * ) ) ) + + - COUNT ( * )
----
-47
0

query I rowsort
SELECT - 91 * + 56
----
-5096

onlyif mysql # aggregate syntax: 
query I rowsort label-9037
SELECT ALL - ( + 66 ) * MAX( 40 ) col1
----
-2640

skipif mysql # not compatible
query I rowsort label-9037
SELECT ALL - ( + 66 ) * MAX ( 40 ) col1
----
-2640

query I rowsort
SELECT DISTINCT 79 * 46 AS col2
----
3634

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9039
SELECT DISTINCT - 36 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9039
SELECT DISTINCT - 36 * CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL - + 78 + + 39 AS col1, - 23 * + 60 + + - ( - 83 )
----
-39
-1297

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9041
SELECT - CASE - + COUNT( * ) WHEN + - 29 * + - 5 - COUNT( * ) * CAST( NULL AS SIGNED ) THEN 73 - - 53 ELSE NULL END - + + 36 + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9041
SELECT - CASE - + COUNT ( * ) WHEN + - 29 * + - 5 - COUNT ( * ) * CAST ( NULL AS INTEGER ) THEN 73 - - 53 ELSE NULL END - + + 36 + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9042
SELECT DISTINCT - 86 + ( - COUNT( * ) ) AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-9042
SELECT DISTINCT - 86 + ( - COUNT ( * ) ) AS col1
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-9043
SELECT ALL MIN( ALL - + 7 ) AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-9043
SELECT ALL MIN ( ALL - + 7 ) AS col0
----
-7

query I rowsort
SELECT DISTINCT - 36 + 62 * - + 99 col2
----
-6174

onlyif mysql # aggregate syntax: 
query I rowsort label-9045
SELECT MIN( DISTINCT 75 ) + + - 29
----
46

skipif mysql # not compatible
query I rowsort label-9045
SELECT MIN ( DISTINCT 75 ) + + - 29
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9046
SELECT + + NULLIF ( + COUNT( * ), + - 79 )
----
1

skipif mysql # not compatible
query I rowsort label-9046
SELECT + + NULLIF ( + COUNT ( * ), + - 79 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9047
SELECT ALL - CAST( - COUNT( * ) AS SIGNED ), - 30 + + + 43 AS col1
----
1
13

skipif mysql # not compatible
query II rowsort label-9047
SELECT ALL - CAST ( - COUNT ( * ) AS INTEGER ), - 30 + + + 43 AS col1
----
1
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9048
SELECT ALL - CAST( NULL AS SIGNED ) + - 34 + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9048
SELECT ALL - CAST ( NULL AS INTEGER ) + - 34 + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9049
SELECT + ( - 32 ) * COUNT( * ) + - CAST( NULL AS SIGNED ) AS col1, 29
----
NULL
29

skipif mysql # not compatible
query II rowsort label-9049
SELECT + ( - 32 ) * COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col1, 29
----
NULL
29

query I rowsort
SELECT ALL + 92 + + 91 + + - 2 AS col1
----
181

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9051
SELECT DISTINCT CASE - 77 WHEN + + NULLIF ( 27, + 36 ) * + + MIN( DISTINCT + 93 ) THEN + NULLIF ( + - 90, + - 60 ) WHEN + - 95 * 8 THEN NULL WHEN + 55 THEN CAST( - 48 AS DECIMAL ) END * + 41 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9051
SELECT DISTINCT CASE - 77 WHEN + + NULLIF ( 27, + 36 ) * + + MIN ( DISTINCT + 93 ) THEN + NULLIF ( + - 90, + - 60 ) WHEN + - 95 * 8 THEN NULL WHEN + 55 THEN CAST ( - 48 AS REAL ) END * + 41 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9052
SELECT ALL COUNT( * ) + - 50 DIV - + 88
----
1

skipif mysql # not compatible
query I rowsort label-9052
SELECT ALL COUNT ( * ) + - 50 / - + 88
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9053
SELECT ALL - MAX( + - 88 )
----
88

skipif mysql # not compatible
query I rowsort label-9053
SELECT ALL - MAX ( + - 88 )
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9054
SELECT - ( 63 ) * + COUNT( * ) + 56 - - 56 AS col1
----
49

skipif mysql # not compatible
query I rowsort label-9054
SELECT - ( 63 ) * + COUNT ( * ) + 56 - - 56 AS col1
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9055
SELECT ALL CASE - ( + 97 ) WHEN 77 * + 30 THEN + ( 88 ) * + COUNT( * ) + 64 + + CAST( 26 AS SIGNED ) ELSE NULL END - COUNT( * ) * + + MIN( ( - 64 ) ) * - 78 * + ( + 14 ) + COUNT( * ) * - + CASE 51 WHEN - MIN( - 27 ) + + 68 * 72 + + - ( 65 ) THEN ( 84 ) END + ( - 6 ) - 72
----
NULL

skipif mysql # not compatible
query I rowsort label-9055
SELECT ALL CASE - ( + 97 ) WHEN 77 * + 30 THEN + ( 88 ) * + COUNT ( * ) + 64 + + CAST ( 26 AS INTEGER ) ELSE NULL END - COUNT ( * ) * + + MIN ( ( - 64 ) ) * - 78 * + ( + 14 ) + COUNT ( * ) * - + CASE 51 WHEN - MIN ( - 27 ) + + 68 * 72 + + - ( 65 ) THEN ( 84 ) END + ( - 6 ) - 72
----
NULL

query II rowsort
SELECT 7 AS col2, + 29 + 70 AS col1
----
7
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9057
SELECT ALL - COUNT( + 58 )
----
-1

skipif mysql # not compatible
query I rowsort label-9057
SELECT ALL - COUNT ( + 58 )
----
-1

query I rowsort
SELECT 16 * + + 3 * - + 30
----
-1440

onlyif mysql # aggregate syntax: 
query I rowsort label-9059
SELECT ALL - CASE + COUNT( * ) WHEN 67 THEN 11 ELSE 61 END AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-9059
SELECT ALL - CASE + COUNT ( * ) WHEN 67 THEN 11 ELSE 61 END AS col2
----
-61

query II rowsort
SELECT DISTINCT - 65 AS col2, 10 AS col1
----
-65
10

query I rowsort
SELECT DISTINCT - COALESCE ( + + 6, 10 ) AS col1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9062
SELECT DISTINCT - SUM( + + ( + 1 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9062
SELECT DISTINCT - SUM ( + + ( + 1 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9063
SELECT ALL - COUNT( + 51 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9063
SELECT ALL - COUNT ( + 51 ) AS col1
----
-1

query I rowsort
SELECT DISTINCT - 38 * - - 12
----
-456

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9065
SELECT ALL + CAST( 85 AS SIGNED ) * - 73 - - 6
----
-6199

skipif mysql # not compatible
query I rowsort label-9065
SELECT ALL + CAST ( 85 AS INTEGER ) * - 73 - - 6
----
-6199

query II rowsort
SELECT 23 col2, - 13
----
23
-13

query II rowsort
SELECT 70 + + ( - 70 ) AS col2, 29 AS col2
----
0
29

query I rowsort
SELECT DISTINCT + 42 * + + 25 + - ( 62 ) + + 77 AS col1
----
1065

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9069
SELECT ALL - CAST( - - ( 36 ) AS SIGNED ) AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-9069
SELECT ALL - CAST ( - - ( 36 ) AS INTEGER ) AS col0
----
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9070
SELECT + 22 * - - 48 + COUNT( * ) DIV + COUNT( * )
----
1057

skipif mysql # not compatible
query I rowsort label-9070
SELECT + 22 * - - 48 + COUNT ( * ) / + COUNT ( * )
----
1057

query I rowsort
SELECT ALL 85 * - 41
----
-3485

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9072
SELECT DISTINCT - 92 AS col1, + CAST( NULL AS SIGNED ) AS col1
----
-92
NULL

skipif mysql # not compatible
query II rowsort label-9072
SELECT DISTINCT - 92 AS col1, + CAST ( NULL AS INTEGER ) AS col1
----
-92
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9073
SELECT DISTINCT + + CAST( + MAX( ALL + 77 ) AS SIGNED ) * ( + COUNT( * ) )
----
77

skipif mysql # not compatible
query I rowsort label-9073
SELECT DISTINCT + + CAST ( + MAX ( ALL + 77 ) AS INTEGER ) * ( + COUNT ( * ) )
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-9074
SELECT - 42 DIV - 88 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9074
SELECT - 42 / - 88 AS col1
----
0

query I rowsort
SELECT ALL + 48 + 62
----
110

onlyif mysql # DIV for integer division: 
query II rowsort label-9076
SELECT DISTINCT + 26 DIV 2 * 19 col2, 77 * - 22 AS col2
----
247
-1694

skipif mysql # not compatible
query II rowsort label-9076
SELECT DISTINCT + 26 / 2 * 19 col2, 77 * - 22 AS col2
----
247
-1694

onlyif mysql # aggregate syntax: 
query I rowsort label-9077
SELECT + ( - 68 ) + - 44 + + + MAX( ALL - 65 )
----
-177

skipif mysql # not compatible
query I rowsort label-9077
SELECT + ( - 68 ) + - 44 + + + MAX ( ALL - 65 )
----
-177

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9078
SELECT ALL + 99 DIV + - COUNT( * )
----
-99

skipif mysql # not compatible
query I rowsort label-9078
SELECT ALL + 99 / + - COUNT ( * )
----
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9079
SELECT - 9 DIV + + 88 * - COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9079
SELECT - 9 / + + 88 * - COUNT ( * ) AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9080
SELECT 20 + + 45 DIV - + 97 - - 47 AS col2
----
67

skipif mysql # not compatible
query I rowsort label-9080
SELECT 20 + + 45 / - + 97 - - 47 AS col2
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9081
SELECT DISTINCT + + COUNT( * ) + - 88 AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-9081
SELECT DISTINCT + + COUNT ( * ) + - 88 AS col0
----
-87

query I rowsort
SELECT ALL - 7 + 51 * - 16 col0
----
-823

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9083
SELECT ALL + + 63 + 43 * - 41 * - CAST( - 6 AS SIGNED ) * 60 * + 40 AS col1
----
-25387137

skipif mysql # not compatible
query I rowsort label-9083
SELECT ALL + + 63 + 43 * - 41 * - CAST ( - 6 AS INTEGER ) * 60 * + 40 AS col1
----
-25387137

query I rowsort
SELECT DISTINCT + ( + + 23 ) + 27 AS col0
----
50

query I rowsort
SELECT - 58 * + - 4
----
232

query I rowsort
SELECT ALL 98 + + 85 AS col2
----
183

onlyif mysql # aggregate syntax: 
query II rowsort label-9087
SELECT DISTINCT - NULLIF ( - 70, 69 ), COUNT( * ) AS col2
----
70
1

skipif mysql # not compatible
query II rowsort label-9087
SELECT DISTINCT - NULLIF ( - 70, 69 ), COUNT ( * ) AS col2
----
70
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9088
SELECT DISTINCT + + NULLIF ( + + 2, - 75 * - COUNT( * ) * 53 ) AS col1, - 76 * + + CAST( NULL AS SIGNED )
----
2
NULL

skipif mysql # not compatible
query II rowsort label-9088
SELECT DISTINCT + + NULLIF ( + + 2, - 75 * - COUNT ( * ) * 53 ) AS col1, - 76 * + + CAST ( NULL AS INTEGER )
----
2
NULL

query I rowsort
SELECT DISTINCT 87 * + + 73 + + 2 AS col2
----
6353

query I rowsort
SELECT + 93 * 63 * + - 87 AS col2
----
-509733

onlyif mysql # aggregate syntax: 
query I rowsort label-9091
SELECT COALESCE ( - 0, COUNT( * ) * - - 98, 76 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-9091
SELECT COALESCE ( - 0, COUNT ( * ) * - - 98, 76 ) col1
----
0

query I rowsort
SELECT NULLIF ( 53, 79 / - + COALESCE ( - - 93, - 96 * - 77 ) ) AS col1
----
53

query I rowsort
SELECT + NULLIF ( 36, 58 ) AS col0
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9094
SELECT - 86 * - NULLIF ( 25, - 43 * + + 91 * - 54 - + ( + 19 ) * + 44 ) - 76 + - CAST( - + COALESCE ( + + 58, - - 9 DIV COUNT( * ) * + ( + 15 ) DIV + 0 DIV - + COALESCE ( - COALESCE ( - 0, 61 * - 99 ), 15 ) + + 99 * - 43, - 28 * + 33 + + COUNT( * ) * + 11, - 8 * + + 5 + - - 73 + 5 ) AS SIGNED ) + COUNT( * ) * + 60 DIV - SUM( 94 )
----
2132

skipif mysql # not compatible
query I rowsort label-9094
SELECT - 86 * - NULLIF ( 25, - 43 * + + 91 * - 54 - + ( + 19 ) * + 44 ) - 76 + - CAST ( - + COALESCE ( + + 58, - - 9 / COUNT ( * ) * + ( + 15 ) / + 0 / - + COALESCE ( - COALESCE ( - 0, 61 * - 99 ), 15 ) + + 99 * - 43, - 28 * + 33 + + COUNT ( * ) * + 11, - 8 * + + 5 + - - 73 + 5 ) AS INTEGER ) + COUNT ( * ) * + 60 / - SUM ( 94 )
----
2132

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9095
SELECT + COUNT( DISTINCT 56 ) * 97 DIV + 41 col1
----
2

skipif mysql # not compatible
query I rowsort label-9095
SELECT + COUNT ( DISTINCT 56 ) * 97 / + 41 col1
----
2

query I rowsort
SELECT DISTINCT + 31 * - - 7 - + - 87 + - 37 * + + 67 AS col0
----
-2175

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9097
SELECT DISTINCT + CAST( 76 AS SIGNED ) col2
----
76

skipif mysql # not compatible
query I rowsort label-9097
SELECT DISTINCT + CAST ( 76 AS INTEGER ) col2
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-9098
SELECT DISTINCT + MIN( + - CASE - 26 WHEN + 64 THEN - 7 ELSE NULL END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9098
SELECT DISTINCT + MIN ( + - CASE - 26 WHEN + 64 THEN - 7 ELSE NULL END ) AS col0
----
NULL

query I rowsort
SELECT ALL 22 * + ( 79 )
----
1738

onlyif mysql # aggregate syntax: 
query I rowsort label-9100
SELECT + COUNT( * ) * - + 81 * - 7 AS col1
----
567

skipif mysql # not compatible
query I rowsort label-9100
SELECT + COUNT ( * ) * - + 81 * - 7 AS col1
----
567

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9101
SELECT ALL ( + - 51 ) DIV COUNT( * ) AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-9101
SELECT ALL ( + - 51 ) / COUNT ( * ) AS col0
----
-51

query I rowsort
SELECT DISTINCT 39 * 60
----
2340

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9103
SELECT DISTINCT CAST( - 6 AS SIGNED ) * 36 + + - NULLIF ( + MAX( + 35 ), + 0 * 46 ) + + 49 + - 97
----
-299

skipif mysql # not compatible
query I rowsort label-9103
SELECT DISTINCT CAST ( - 6 AS INTEGER ) * 36 + + - NULLIF ( + MAX ( + 35 ), + 0 * 46 ) + + 49 + - 97
----
-299

onlyif mysql # aggregate syntax: 
query I rowsort label-9104
SELECT + NULLIF ( + + CASE - 5 WHEN - 83 / COUNT( * ) THEN - + 65 WHEN + - 36 THEN + - MIN( DISTINCT + 41 ) END, 64 ) * 22 + 95 + - - SUM( ALL - 23 ) - - + 82 + COUNT( * ) * - - 28 * - 44 + - - 54 * + 7 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9104
SELECT + NULLIF ( + + CASE - 5 WHEN - 83 / COUNT ( * ) THEN - + 65 WHEN + - 36 THEN + - MIN ( DISTINCT + 41 ) END, 64 ) * 22 + 95 + - - SUM ( ALL - 23 ) - - + 82 + COUNT ( * ) * - - 28 * - 44 + - - 54 * + 7 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9105
SELECT MIN( DISTINCT 57 ) AS col2
----
57

skipif mysql # not compatible
query I rowsort label-9105
SELECT MIN ( DISTINCT 57 ) AS col2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-9106
SELECT MIN( - + 72 )
----
-72

skipif mysql # not compatible
query I rowsort label-9106
SELECT MIN ( - + 72 )
----
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-9107
SELECT + COALESCE ( - - 99, 54 * - + 73 * + + 57 * + 71 + - 77 DIV 59 + 95 )
----
99

skipif mysql # not compatible
query I rowsort label-9107
SELECT + COALESCE ( - - 99, 54 * - + 73 * + + 57 * + 71 + - 77 / 59 + 95 )
----
99

onlyif mysql # aggregate syntax: 
query II rowsort label-9108
SELECT COUNT( * ), + 62 + - 49 + + - 30 AS col0
----
1
-17

skipif mysql # not compatible
query II rowsort label-9108
SELECT COUNT ( * ), + 62 + - 49 + + - 30 AS col0
----
1
-17

query I rowsort
SELECT + - 67 * - + 72 + + - 57 AS col1
----
4767

onlyif mysql # aggregate syntax: 
query II rowsort label-9110
SELECT ALL SUM( + 37 ) * 2 * NULLIF ( 36, + + 76 + + - COUNT( * ) ) col0, - 97 * 74
----
2664
-7178

skipif mysql # not compatible
query II rowsort label-9110
SELECT ALL SUM ( + 37 ) * 2 * NULLIF ( 36, + + 76 + + - COUNT ( * ) ) col0, - 97 * 74
----
2664
-7178

onlyif mysql # aggregate syntax: 
query II rowsort label-9111
SELECT DISTINCT - 48 AS col2, - SUM( DISTINCT + 61 ) AS col1
----
-48
-61

skipif mysql # not compatible
query II rowsort label-9111
SELECT DISTINCT - 48 AS col2, - SUM ( DISTINCT + 61 ) AS col1
----
-48
-61

query I rowsort
SELECT ALL 83 + + - 85 * + + 10 AS col2
----
-767

query II rowsort
SELECT - 66 AS col0, 83 AS col0
----
-66
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9114
SELECT ALL 96 + - + NULLIF ( - COUNT( * ), + ( - - 23 ) ) DIV - 43 * 66
----
96

skipif mysql # not compatible
query I rowsort label-9114
SELECT ALL 96 + - + NULLIF ( - COUNT ( * ), + ( - - 23 ) ) / - 43 * 66
----
96

query I rowsort
SELECT ALL - + CASE - 62 WHEN 26 THEN - 58 END + 9 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9116
SELECT + - CAST( - 96 AS SIGNED ) * + 77 * - 50
----
-369600

skipif mysql # not compatible
query I rowsort label-9116
SELECT + - CAST ( - 96 AS INTEGER ) * + 77 * - 50
----
-369600

onlyif mysql # aggregate syntax: 
query I rowsort label-9117
SELECT + 2 - + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9117
SELECT + 2 - + COUNT ( * ) AS col2
----
1

query I rowsort
SELECT + COALESCE ( - 61, - + ( - + 98 ), + - 40, - - 53 + + 72 )
----
-61

query I rowsort
SELECT - - COALESCE ( + ( + 89 ), + - 82 )
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9120
SELECT ALL + + 11 + - 34 * + CAST( + 89 AS SIGNED )
----
-3015

skipif mysql # not compatible
query I rowsort label-9120
SELECT ALL + + 11 + - 34 * + CAST ( + 89 AS INTEGER )
----
-3015

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9121
SELECT - CASE + 8 WHEN - 11 THEN + COUNT( * ) * - 27 * + 84 + ( - + CAST( COUNT( * ) AS SIGNED ) ) WHEN 41 THEN NULL WHEN + 29 THEN - 49 END * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9121
SELECT - CASE + 8 WHEN - 11 THEN + COUNT ( * ) * - 27 * + 84 + ( - + CAST ( COUNT ( * ) AS INTEGER ) ) WHEN 41 THEN NULL WHEN + 29 THEN - 49 END * + CAST ( NULL AS INTEGER )
----
NULL

query III rowsort
SELECT 96, 3 col1, + 5 AS col2
----
96
3
5

query II rowsort
SELECT - 23 AS col0, 72 AS col1
----
-23
72

query I rowsort
SELECT ALL 3 * - + 37 AS col1
----
-111

query I rowsort
SELECT DISTINCT - NULLIF ( 5, + - 19 ) AS col0
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9126
SELECT ALL COALESCE ( + + 59, + 72 ) + - - CAST( - 46 AS SIGNED ) + 50 AS col0
----
63

skipif mysql # not compatible
query I rowsort label-9126
SELECT ALL COALESCE ( + + 59, + 72 ) + - - CAST ( - 46 AS INTEGER ) + 50 AS col0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9127
SELECT ALL + CASE - - 26 WHEN ( + 27 ) + - 23 THEN - - COUNT( * ) END - 75 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9127
SELECT ALL + CASE - - 26 WHEN ( + 27 ) + - 23 THEN - - COUNT ( * ) END - 75 AS col0
----
NULL

query I rowsort
SELECT + + 21 + - 39
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-9129
SELECT - - COUNT( * ) - + MIN( - 86 )
----
87

skipif mysql # not compatible
query I rowsort label-9129
SELECT - - COUNT ( * ) - + MIN ( - 86 )
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-9130
SELECT ALL - 55 DIV - 83
----
0

skipif mysql # not compatible
query I rowsort label-9130
SELECT ALL - 55 / - 83
----
0

query I rowsort
SELECT - 5 * 33
----
-165

query I rowsort
SELECT - 64 + 55 * 70
----
3786

onlyif mysql # aggregate syntax: 
query II rowsort label-9133
SELECT - MAX( ALL - 24 ) AS col0, 2 col2
----
24
2

skipif mysql # not compatible
query II rowsort label-9133
SELECT - MAX ( ALL - 24 ) AS col0, 2 col2
----
24
2

query II rowsort
SELECT DISTINCT ( 59 ) AS col2, 93 * 34 col2
----
59
3162

onlyif mysql # aggregate syntax: 
query I rowsort label-9135
SELECT - 58 + - COUNT( * )
----
-59

skipif mysql # not compatible
query I rowsort label-9135
SELECT - 58 + - COUNT ( * )
----
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-9136
SELECT + COALESCE ( 74, + 11 * - + NULLIF ( + COUNT( * ), - ( + COUNT( * ) ) ) * - 83 - NULLIF ( - 26, SUM( DISTINCT + 97 ) ) ), 25 AS col0
----
74
25

skipif mysql # not compatible
query II rowsort label-9136
SELECT + COALESCE ( 74, + 11 * - + NULLIF ( + COUNT ( * ), - ( + COUNT ( * ) ) ) * - 83 - NULLIF ( - 26, SUM ( DISTINCT + 97 ) ) ), 25 AS col0
----
74
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9137
SELECT CAST( + - 65 AS SIGNED ) AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-9137
SELECT CAST ( + - 65 AS INTEGER ) AS col0
----
-65

query I rowsort
SELECT - 51 * - 63 * + + 22
----
70686

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9139
SELECT DISTINCT + CASE - 59 WHEN + + 25 + - 50 THEN NULL WHEN + ( - + 36 ) - - COALESCE ( + ( - 95 ), - 52 + CAST( NULL AS SIGNED ) + - - CAST( 54 AS SIGNED ) + + 95 / + COUNT( * ), - 2 + 94 + 11 ) * - - 72 THEN NULL WHEN + 14 * + AVG ( DISTINCT + 30 ) * + 64 THEN + 3 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9139
SELECT DISTINCT + CASE - 59 WHEN + + 25 + - 50 THEN NULL WHEN + ( - + 36 ) - - COALESCE ( + ( - 95 ), - 52 + CAST ( NULL AS INTEGER ) + - - CAST ( 54 AS INTEGER ) + + 95 / + COUNT ( * ), - 2 + 94 + 11 ) * - - 72 THEN NULL WHEN + 14 * + AVG ( DISTINCT + 30 ) * + 64 THEN + 3 END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9140
SELECT ALL + CAST( + - 39 AS SIGNED ) * + 49 AS col0, 51 AS col0
----
-1911
51

skipif mysql # not compatible
query II rowsort label-9140
SELECT ALL + CAST ( + - 39 AS INTEGER ) * + 49 AS col0, 51 AS col0
----
-1911
51

query I rowsort
SELECT ALL + 56 * - 60 AS col1
----
-3360

onlyif mysql # DIV for integer division: 
query II rowsort label-9142
SELECT - 15 * 84 col1, - 5 DIV 77
----
-1260
0

skipif mysql # not compatible
query II rowsort label-9142
SELECT - 15 * 84 col1, - 5 / 77
----
-1260
0

query I rowsort
SELECT + 80 + - 20 AS col2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-9144
SELECT ALL + COUNT( DISTINCT + - 76 )
----
1

skipif mysql # not compatible
query I rowsort label-9144
SELECT ALL + COUNT ( DISTINCT + - 76 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9145
SELECT + MIN( DISTINCT - + 44 )
----
-44

skipif mysql # not compatible
query I rowsort label-9145
SELECT + MIN ( DISTINCT - + 44 )
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-9146
SELECT DISTINCT - COUNT( * ) * - + 35 + + 54 AS col0
----
89

skipif mysql # not compatible
query I rowsort label-9146
SELECT DISTINCT - COUNT ( * ) * - + 35 + + 54 AS col0
----
89

query I rowsort
SELECT ALL 32 * - + 91 AS col1
----
-2912

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9148
SELECT + 38 DIV + - 22 DIV + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-9148
SELECT + 38 / + - 22 / + COUNT ( * )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-9149
SELECT ALL COALESCE ( + COALESCE ( 86, + CASE - NULLIF ( + COUNT( * ), 77 + - - 74 ) WHEN 82 THEN + - ( SUM( - 1 ) ) WHEN - CASE ( - + COALESCE ( + - 32, 68 ) ) WHEN - AVG ( - 11 ) + + + 55 * CAST( NULL AS DECIMAL ) + - + 37 THEN + 24 END DIV 73 THEN NULL WHEN 18 THEN NULL ELSE - 11 + - ( - + 45 ) + + 64 - 75 + NULLIF ( 81, + 71 ) * + - CASE - 17 WHEN + - 66 - 52 + 40 THEN 11 ELSE NULL END * + 40 END, 4 * 8 ), 72 ) * COUNT( * ) + ( - 43 ) DIV + MIN( 36 )
----
85

skipif mysql # not compatible
query I rowsort label-9149
SELECT ALL COALESCE ( + COALESCE ( 86, + CASE - NULLIF ( + COUNT ( * ), 77 + - - 74 ) WHEN 82 THEN + - ( SUM ( - 1 ) ) WHEN - CASE ( - + COALESCE ( + - 32, 68 ) ) WHEN - AVG ( - 11 ) + + + 55 * CAST ( NULL AS REAL ) + - + 37 THEN + 24 END / 73 THEN NULL WHEN 18 THEN NULL ELSE - 11 + - ( - + 45 ) + + 64 - 75 + NULLIF ( 81, + 71 ) * + - CASE - 17 WHEN + - 66 - 52 + 40 THEN 11 ELSE NULL END * + 40 END, 4 * 8 ), 72 ) * COUNT ( * ) + ( - 43 ) / + MIN ( 36 )
----
85

query I rowsort
SELECT DISTINCT 13 * - + 8 + + + 10 * 16
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9151
SELECT ALL + - CAST( - 52 AS SIGNED ) * + 6 + 73
----
385

skipif mysql # not compatible
query I rowsort label-9151
SELECT ALL + - CAST ( - 52 AS INTEGER ) * + 6 + 73
----
385

query I rowsort
SELECT ALL + 32 * + - 5 + + + 92 * - 96 AS col1
----
-8992

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9153
SELECT - + COALESCE ( - COUNT( * ), + + MAX( + CASE 94 WHEN 89 * + 0 + + - ( 96 ) + - - 38 - + 64 THEN NULL ELSE 60 DIV - + CAST( NULL AS SIGNED ) + - + 95 END ) ) + + SUM( - - 97 ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-9153
SELECT - + COALESCE ( - COUNT ( * ), + + MAX ( + CASE 94 WHEN 89 * + 0 + + - ( 96 ) + - - 38 - + 64 THEN NULL ELSE 60 / - + CAST ( NULL AS INTEGER ) + - + 95 END ) ) + + SUM ( - - 97 ) AS col1
----
98

query I rowsort
SELECT + NULLIF ( 42, + 83 ) AS col2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-9155
SELECT - + COALESCE ( + 4, 90 + - COUNT( * ) + - 64 * + - 0, + COUNT( * ) )
----
-4

skipif mysql # not compatible
query I rowsort label-9155
SELECT - + COALESCE ( + 4, 90 + - COUNT ( * ) + - 64 * + - 0, + COUNT ( * ) )
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-9156
SELECT ALL 58 * - COUNT( * ) - + 23 - - 98 * + - 5 + - 38 AS col1
----
-609

skipif mysql # not compatible
query I rowsort label-9156
SELECT ALL 58 * - COUNT ( * ) - + 23 - - 98 * + - 5 + - 38 AS col1
----
-609

onlyif mysql # aggregate syntax: 
query I rowsort label-9157
SELECT ( - MIN( - 29 ) )
----
29

skipif mysql # not compatible
query I rowsort label-9157
SELECT ( - MIN ( - 29 ) )
----
29

query I rowsort
SELECT 91 + - 26
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-9159
SELECT DISTINCT + MAX( - 57 ) AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-9159
SELECT DISTINCT + MAX ( - 57 ) AS col0
----
-57

query I rowsort
SELECT DISTINCT 1 - COALESCE ( - + 33, 66 )
----
34

query I rowsort
SELECT ALL + 25 * + - 38 AS col0
----
-950

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9162
SELECT 60 + - + 97 + - CAST( + - COUNT( * ) AS SIGNED ) + - - 63
----
27

skipif mysql # not compatible
query I rowsort label-9162
SELECT 60 + - + 97 + - CAST ( + - COUNT ( * ) AS INTEGER ) + - - 63
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9163
SELECT - 63 + - 84 * + SUM( ALL 95 )
----
-8043

skipif mysql # not compatible
query I rowsort label-9163
SELECT - 63 + - 84 * + SUM ( ALL 95 )
----
-8043

query I rowsort
SELECT ALL + 80 * + 57
----
4560

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9165
SELECT ALL 46 * + COUNT( ALL + - 60 ) + - 83 + - 37 + 32 + + - 85 * + + 52 * - SUM( DISTINCT + 70 ) + 48 * + 22 + - + CAST( NULL AS SIGNED ) + + 54 + + - 8 + + + COALESCE ( - + 63, + 38 * - 63 ) * + COUNT( * ) + - 26 * 37 * + CASE + 72 WHEN - + 7 THEN - 67 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9165
SELECT ALL 46 * + COUNT ( ALL + - 60 ) + - 83 + - 37 + 32 + + - 85 * + + 52 * - SUM ( DISTINCT + 70 ) + 48 * + 22 + - + CAST ( NULL AS INTEGER ) + + 54 + + - 8 + + + COALESCE ( - + 63, + 38 * - 63 ) * + COUNT ( * ) + - 26 * 37 * + CASE + 72 WHEN - + 7 THEN - 67 ELSE NULL END
----
NULL

query I rowsort
SELECT 7 * - + 10 AS col1
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-9167
SELECT 46 + + 55 + + MIN( ALL ( - - 62 ) )
----
163

skipif mysql # not compatible
query I rowsort label-9167
SELECT 46 + + 55 + + MIN ( ALL ( - - 62 ) )
----
163

onlyif mysql # aggregate syntax: 
query II rowsort label-9168
SELECT 23 AS col0, 93 - + 65 + - NULLIF ( SUM( DISTINCT 90 ), 16 )
----
23
-62

skipif mysql # not compatible
query II rowsort label-9168
SELECT 23 AS col0, 93 - + 65 + - NULLIF ( SUM ( DISTINCT 90 ), 16 )
----
23
-62

query I rowsort
SELECT ALL 23 * - 82 AS col0
----
-1886

query I rowsort
SELECT 32 * + + 20 AS col1
----
640

query II rowsort
SELECT 4 AS col1, 40 * 37
----
4
1480

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9172
SELECT DISTINCT 75 * - CAST( - NULLIF ( + CASE + COUNT( * ) WHEN 12 THEN NULL WHEN - COUNT( * ) THEN - - 62 END, SUM( DISTINCT + - 26 ) ) AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9172
SELECT DISTINCT 75 * - CAST ( - NULLIF ( + CASE + COUNT ( * ) WHEN 12 THEN NULL WHEN - COUNT ( * ) THEN - - 62 END, SUM ( DISTINCT + - 26 ) ) AS REAL )
----
NULL

query II rowsort
SELECT + 26 AS col2, ( + + 48 ) AS col0
----
26
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9174
SELECT 22 DIV + 80 * - + 32 AS col2, 19 + + - 78 * + + COUNT( * )
----
0
-59

skipif mysql # not compatible
query II rowsort label-9174
SELECT 22 / + 80 * - + 32 AS col2, 19 + + - 78 * + + COUNT ( * )
----
0
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-9175
SELECT DISTINCT - 7 DIV - 31 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9175
SELECT DISTINCT - 7 / - 31 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9176
SELECT COUNT( * ) * + - 67 col1
----
-67

skipif mysql # not compatible
query I rowsort label-9176
SELECT COUNT ( * ) * + - 67 col1
----
-67

query I rowsort
SELECT 71 * - - 35 AS col2
----
2485

onlyif mysql # DIV for integer division: 
query I rowsort label-9178
SELECT ALL - 98 DIV 76 DIV + COALESCE ( - 45, - + 16 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9178
SELECT ALL - 98 / 76 / + COALESCE ( - 45, - + 16 ) AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9179
SELECT 77 DIV - - 37 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-9179
SELECT 77 / - - 37 AS col1
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9180
SELECT MAX( ALL - 92 ) * - + 84 DIV + COALESCE ( + 42, CAST( - - 97 AS SIGNED ) ) AS col0
----
184

skipif mysql # not compatible
query I rowsort label-9180
SELECT MAX ( ALL - 92 ) * - + 84 / + COALESCE ( + 42, CAST ( - - 97 AS INTEGER ) ) AS col0
----
184

query I rowsort
SELECT ALL + 34 + 29 AS col1
----
63

query I rowsort
SELECT ALL + 25 * + + 30 AS col1
----
750

onlyif mysql # aggregate syntax: 
query I rowsort label-9183
SELECT DISTINCT + ( + ( + + 1 ) ) + + SUM( ALL + - 68 ) AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-9183
SELECT DISTINCT + ( + ( + + 1 ) ) + + SUM ( ALL + - 68 ) AS col1
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-9184
SELECT DISTINCT - COUNT( * ) + 34
----
33

skipif mysql # not compatible
query I rowsort label-9184
SELECT DISTINCT - COUNT ( * ) + 34
----
33

query I rowsort
SELECT ALL 34 + + 52 AS col0
----
86

query I rowsort
SELECT ALL - 72 + - - 30 + + - 91 * 26
----
-2408

onlyif mysql # aggregate syntax: 
query II rowsort label-9187
SELECT + COUNT( ALL - + 6 ) + - + 1, 56 AS col0
----
0
56

skipif mysql # not compatible
query II rowsort label-9187
SELECT + COUNT ( ALL - + 6 ) + - + 1, 56 AS col0
----
0
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9188
SELECT + 52 * + - NULLIF ( - 59, + + 96 * 86 + + 64 + + + 91 ) * - MAX( DISTINCT + 12 ) + + - ( - 65 ) - + 57 * + ( + 15 ) * - 64 * - - 90 + - 57 * - 1 * + CASE + COUNT( ALL - + 69 ) WHEN 92 - + 48 + + + 2 THEN + 53 * + COUNT( * ) / - AVG ( DISTINCT + ( + ( + 42 ) ) ) + - - ( + - 48 ) / 96 END + 33 - - CAST( + 89 AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9188
SELECT + 52 * + - NULLIF ( - 59, + + 96 * 86 + + 64 + + + 91 ) * - MAX ( DISTINCT + 12 ) + + - ( - 65 ) - + 57 * + ( + 15 ) * - 64 * - - 90 + - 57 * - 1 * + CASE + COUNT ( ALL - + 69 ) WHEN 92 - + 48 + + + 2 THEN + 53 * + COUNT ( * ) / - AVG ( DISTINCT + ( + ( + 42 ) ) ) + - - ( + - 48 ) / 96 END + 33 - - CAST ( + 89 AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9189
SELECT 75 * - 32 * 91 + COUNT( * ) + + 13 - - 6 * COUNT( * ) + - 4 + - - 70 + - 79 + 69, + 94 AS col0
----
-218324
94

skipif mysql # not compatible
query II rowsort label-9189
SELECT 75 * - 32 * 91 + COUNT ( * ) + + 13 - - 6 * COUNT ( * ) + - 4 + - - 70 + - 79 + 69, + 94 AS col0
----
-218324
94

query I rowsort
SELECT ALL - 69 + 43 + NULLIF ( - + ( + 8 ), 31 / 71 + 82 - - 84 ) + - 29
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-9191
SELECT + MAX( ALL - - 56 )
----
56

skipif mysql # not compatible
query I rowsort label-9191
SELECT + MAX ( ALL - - 56 )
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-9192
SELECT ALL COUNT( * ) - + + CASE + - 34 WHEN + - 75 THEN NULL ELSE MAX( DISTINCT - - 60 ) * 92 * - 23 END + + - COUNT( * ) AS col2, - 67
----
126960
-67

skipif mysql # not compatible
query II rowsort label-9192
SELECT ALL COUNT ( * ) - + + CASE + - 34 WHEN + - 75 THEN NULL ELSE MAX ( DISTINCT - - 60 ) * 92 * - 23 END + + - COUNT ( * ) AS col2, - 67
----
126960
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-9193
SELECT ALL - COUNT( * ) - - 31
----
30

skipif mysql # not compatible
query I rowsort label-9193
SELECT ALL - COUNT ( * ) - - 31
----
30

query I rowsort
SELECT - CASE - 7 WHEN 33 THEN NULL WHEN - 55 THEN + 30 + + 41 * - - 58 END AS col1
----
NULL

query I rowsort
SELECT ALL 50 - - 90 AS col1
----
140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9196
SELECT - 34 / - 58 * - CAST( NULL AS SIGNED ) * + NULLIF ( + - 13, 43 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9196
SELECT - 34 / - 58 * - CAST ( NULL AS INTEGER ) * + NULLIF ( + - 13, 43 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9197
SELECT ALL - 88, CASE + 18 WHEN + 55 * - 83 * - ( ( 1 ) ) * + - 40 * + SUM( - + 22 ) THEN NULL WHEN + ( + - 89 ) * + - 44 - + + 90 + - 22 + 99 - 50 THEN - - 44 ELSE ( - CAST( NULL AS DECIMAL ) ) * ( - - 71 ) * 18 + - 8 END AS col1
----
-88
NULL

skipif mysql # not compatible
query II rowsort label-9197
SELECT ALL - 88, CASE + 18 WHEN + 55 * - 83 * - ( ( 1 ) ) * + - 40 * + SUM ( - + 22 ) THEN NULL WHEN + ( + - 89 ) * + - 44 - + + 90 + - 22 + 99 - 50 THEN - - 44 ELSE ( - CAST ( NULL AS REAL ) ) * ( - - 71 ) * 18 + - 8 END AS col1
----
-88
NULL

query I rowsort
SELECT DISTINCT - 26 * - 62 AS col0
----
1612

query I rowsort
SELECT 77 * - + 68 AS col2
----
-5236

onlyif mysql # aggregate syntax: 
query I rowsort label-9200
SELECT ALL - MAX( DISTINCT 50 )
----
-50

skipif mysql # not compatible
query I rowsort label-9200
SELECT ALL - MAX ( DISTINCT 50 )
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-9201
SELECT + 0 - + - COUNT( * ) + + 89 * - + NULLIF ( 17, + + 84 ) * + 90 * + + 78 AS col2
----
-10621259

skipif mysql # not compatible
query I rowsort label-9201
SELECT + 0 - + - COUNT ( * ) + + 89 * - + NULLIF ( 17, + + 84 ) * + 90 * + + 78 AS col2
----
-10621259

query I rowsort
SELECT 23 * + 85 AS col0
----
1955

query II rowsort
SELECT 43, 69 AS col2
----
43
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9204
SELECT AVG ( + 19 ) - 86 + + + ( 57 ) + + 70 / CAST( NULL AS SIGNED ) + - + 33 - + + 25 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9204
SELECT AVG ( + 19 ) - 86 + + + ( 57 ) + + 70 / CAST ( NULL AS INTEGER ) + - + 33 - + + 25 AS col1
----
NULL

query I rowsort
SELECT ( - 47 ) - + - 12 - - 2
----
-33

query I rowsort
SELECT 26 + + 66
----
92

query I rowsort
SELECT 61 - + 90 - + + 76 * 10 - + - 84 * + 4 AS col0
----
-453

onlyif mysql # aggregate syntax: 
query I rowsort label-9208
SELECT - MIN( ALL - 93 )
----
93

skipif mysql # not compatible
query I rowsort label-9208
SELECT - MIN ( ALL - 93 )
----
93

query I rowsort
SELECT 80 * 17 * - 79 AS col0
----
-107440

onlyif mysql # aggregate syntax: 
query I rowsort label-9210
SELECT MIN( DISTINCT - ( + - 10 ) ) + - - 56 - + 35
----
31

skipif mysql # not compatible
query I rowsort label-9210
SELECT MIN ( DISTINCT - ( + - 10 ) ) + - - 56 - + 35
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9211
SELECT ALL - 94 * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9211
SELECT ALL - 94 * - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9212
SELECT ALL 61 * - CAST( - 60 AS SIGNED ) + - COUNT( * ) * + + 97 AS col0
----
3563

skipif mysql # not compatible
query I rowsort label-9212
SELECT ALL 61 * - CAST ( - 60 AS INTEGER ) + - COUNT ( * ) * + + 97 AS col0
----
3563

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9213
SELECT + 73 * + 85 + - 93 DIV - - NULLIF ( 25, + - 0 * 90 + - CAST( NULL AS SIGNED ) * NULLIF ( + 76, - + 24 ) + 25 ) AS col2
----
6202

skipif mysql # not compatible
query I rowsort label-9213
SELECT + 73 * + 85 + - 93 / - - NULLIF ( 25, + - 0 * 90 + - CAST ( NULL AS INTEGER ) * NULLIF ( + 76, - + 24 ) + 25 ) AS col2
----
6202

onlyif mysql # DIV for integer division: 
query I rowsort label-9214
SELECT ( - 57 ) DIV 58 * + 45 + - + 61 * + 13 AS col1
----
-793

skipif mysql # not compatible
query I rowsort label-9214
SELECT ( - 57 ) / 58 * + 45 + - + 61 * + 13 AS col1
----
-793

query I rowsort
SELECT ALL 4 * + 8 / + - NULLIF ( 52, + + 52 ) * + 38 + - - 6 - AVG ( + 40 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9216
SELECT ALL + 73 * - - SUM( ALL + 96 ) + + 96 AS col2, + 85 * + MAX( - 76 ) AS col2
----
7104
-6460

skipif mysql # not compatible
query II rowsort label-9216
SELECT ALL + 73 * - - SUM ( ALL + 96 ) + + 96 AS col2, + 85 * + MAX ( - 76 ) AS col2
----
7104
-6460

query II rowsort
SELECT 57 + - 32 AS col0, 44 AS col1
----
25
44

onlyif mysql # DIV for integer division: 
query I rowsort label-9218
SELECT 21 DIV 12
----
1

skipif mysql # not compatible
query I rowsort label-9218
SELECT 21 / 12
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9219
SELECT 64 + COUNT( ALL - - 10 ) AS col1
----
65

skipif mysql # not compatible
query I rowsort label-9219
SELECT 64 + COUNT ( ALL - - 10 ) AS col1
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9220
SELECT DISTINCT CAST( COUNT( * ) AS SIGNED ) * + 93 DIV + - 84 + 62
----
61

skipif mysql # not compatible
query I rowsort label-9220
SELECT DISTINCT CAST ( COUNT ( * ) AS INTEGER ) * + 93 / + - 84 + 62
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-9221
SELECT - ( ( - 11 ) ) + ( - MAX( ALL - 59 ) ) * + 48
----
2843

skipif mysql # not compatible
query I rowsort label-9221
SELECT - ( ( - 11 ) ) + ( - MAX ( ALL - 59 ) ) * + 48
----
2843

onlyif mysql # aggregate syntax: 
query I rowsort label-9222
SELECT DISTINCT + MAX( - + 91 )
----
-91

skipif mysql # not compatible
query I rowsort label-9222
SELECT DISTINCT + MAX ( - + 91 )
----
-91

query I rowsort
SELECT ALL - - 91 * - 26
----
-2366

onlyif mysql # aggregate syntax: 
query I rowsort label-9224
SELECT DISTINCT - + SUM( + + 4 ) * ( - - 25 ) AS col1
----
-100

skipif mysql # not compatible
query I rowsort label-9224
SELECT DISTINCT - + SUM ( + + 4 ) * ( - - 25 ) AS col1
----
-100

query I rowsort
SELECT - 22 * 74 AS col0
----
-1628

query I rowsort
SELECT ALL - + 24 * + 20 + + + 40
----
-440

onlyif mysql # aggregate syntax: 
query I rowsort label-9227
SELECT - - COUNT( * ) + 59
----
60

skipif mysql # not compatible
query I rowsort label-9227
SELECT - - COUNT ( * ) + 59
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9228
SELECT - - ( + 94 ) + + 7 * CAST( NULL AS SIGNED ), COALESCE ( - 38, + - AVG ( 57 ) ) + COUNT( * ) * + + CAST( NULL AS SIGNED ) AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9228
SELECT - - ( + 94 ) + + 7 * CAST ( NULL AS INTEGER ), COALESCE ( - 38, + - AVG ( 57 ) ) + COUNT ( * ) * + + CAST ( NULL AS INTEGER ) AS col2
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9229
SELECT - + CAST( + 68 AS SIGNED ) * - 90
----
6120

skipif mysql # not compatible
query I rowsort label-9229
SELECT - + CAST ( + 68 AS INTEGER ) * - 90
----
6120

onlyif mysql # aggregate syntax: 
query I rowsort label-9230
SELECT + + 53 * - COUNT( * ) * 38 AS col0
----
-2014

skipif mysql # not compatible
query I rowsort label-9230
SELECT + + 53 * - COUNT ( * ) * 38 AS col0
----
-2014

onlyif mysql # aggregate syntax: 
query I rowsort label-9231
SELECT - COUNT( * ) * - 27 + - COUNT( * ) + - - ( - 22 ) * + 20 AS col0
----
-414

skipif mysql # not compatible
query I rowsort label-9231
SELECT - COUNT ( * ) * - 27 + - COUNT ( * ) + - - ( - 22 ) * + 20 AS col0
----
-414

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9232
SELECT + 67 - + CAST( NULL AS SIGNED ) + + ( + - 36 ) * - - CAST( + - 34 AS SIGNED ) * NULLIF ( + + 29, + 18 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9232
SELECT + 67 - + CAST ( NULL AS INTEGER ) + + ( + - 36 ) * - - CAST ( + - 34 AS INTEGER ) * NULLIF ( + + 29, + 18 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9233
SELECT - COUNT( * ) + - - 32
----
31

skipif mysql # not compatible
query I rowsort label-9233
SELECT - COUNT ( * ) + - - 32
----
31

query I rowsort
SELECT - 11 + - 22 AS col2
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-9235
SELECT ALL 23 * - - 75 * - - MIN( 59 ) AS col1
----
101775

skipif mysql # not compatible
query I rowsort label-9235
SELECT ALL 23 * - - 75 * - - MIN ( 59 ) AS col1
----
101775

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9236
SELECT DISTINCT + 24 DIV - COUNT( * )
----
-24

skipif mysql # not compatible
query I rowsort label-9236
SELECT DISTINCT + 24 / - COUNT ( * )
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9237
SELECT ALL - CAST( + 7 AS SIGNED ) + 4 * SUM( ALL - + 17 ) AS col0, 65 DIV 74 * ( 35 ) AS col0
----
-75
0

skipif mysql # not compatible
query II rowsort label-9237
SELECT ALL - CAST ( + 7 AS INTEGER ) + 4 * SUM ( ALL - + 17 ) AS col0, 65 / 74 * ( 35 ) AS col0
----
-75
0

query II rowsort
SELECT + 5 + - 69 * 97 AS col2, + 0
----
-6688
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9239
SELECT + 57 + + + 79 + - - 42 + - 16 * SUM( - 3 ) DIV + 18 + ( + - COUNT( * ) ) * + 79
----
101

skipif mysql # not compatible
query I rowsort label-9239
SELECT + 57 + + + 79 + - - 42 + - 16 * SUM ( - 3 ) / + 18 + ( + - COUNT ( * ) ) * + 79
----
101

query I rowsort
SELECT ALL 63 + - + 20
----
43

query II rowsort
SELECT 78, 94 AS col1
----
78
94

query I rowsort
SELECT DISTINCT 80 * 32 col0
----
2560

query I rowsort
SELECT ALL 15 + - + 87 - + - 85 + 12
----
25

query I rowsort
SELECT ALL - 35 + 88 AS col2
----
53

onlyif mysql # aggregate syntax: 
query II rowsort label-9245
SELECT - COALESCE ( + + 60, MIN( DISTINCT - - ( + + 35 ) ) ) AS col2, COALESCE ( 26, - 1 )
----
-60
26

skipif mysql # not compatible
query II rowsort label-9245
SELECT - COALESCE ( + + 60, MIN ( DISTINCT - - ( + + 35 ) ) ) AS col2, COALESCE ( 26, - 1 )
----
-60
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9246
SELECT DISTINCT 50 + + + 97 * - SUM( DISTINCT + 85 )
----
-8195

skipif mysql # not compatible
query I rowsort label-9246
SELECT DISTINCT 50 + + + 97 * - SUM ( DISTINCT + 85 )
----
-8195

onlyif mysql # aggregate syntax: 
query II rowsort label-9247
SELECT - COALESCE ( - + ( + - 13 ), - - 77 * 20 - MAX( ALL 82 ), 31 + - + ( 1 ) ), - 92 col1
----
-13
-92

skipif mysql # not compatible
query II rowsort label-9247
SELECT - COALESCE ( - + ( + - 13 ), - - 77 * 20 - MAX ( ALL 82 ), 31 + - + ( 1 ) ), - 92 col1
----
-13
-92

query I rowsort
SELECT ALL 79 + 40 + + 72 AS col1
----
191

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9249
SELECT DISTINCT 0 / + - CAST( NULL AS SIGNED ) - - 70
----
NULL

skipif mysql # not compatible
query I rowsort label-9249
SELECT DISTINCT 0 / + - CAST ( NULL AS INTEGER ) - - 70
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9250
SELECT 63 DIV - + 48 + + 40
----
39

skipif mysql # not compatible
query I rowsort label-9250
SELECT 63 / - + 48 + + 40
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9251
SELECT ALL CASE - AVG ( 10 ) WHEN - 64 + - + 20 + - + 81 THEN + 97 / + - 61 END / 57 - 52, + ( - + 4 ) * + + CAST( NULL AS SIGNED ) / + COUNT( * ) * - 59 * - - 39 + + 96 + + 90 / - 75 - CAST( 98 AS SIGNED ) AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9251
SELECT ALL CASE - AVG ( 10 ) WHEN - 64 + - + 20 + - + 81 THEN + 97 / + - 61 END / 57 - 52, + ( - + 4 ) * + + CAST ( NULL AS INTEGER ) / + COUNT ( * ) * - 59 * - - 39 + + 96 + + 90 / - 75 - CAST ( 98 AS INTEGER ) AS col0
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9252
SELECT + + SUM( + 99 ) * 86 AS col0
----
8514

skipif mysql # not compatible
query I rowsort label-9252
SELECT + + SUM ( + 99 ) * 86 AS col0
----
8514

onlyif mysql # aggregate syntax: 
query I rowsort label-9253
SELECT - + 58 * + - CASE - 48 WHEN COUNT( * ) THEN + 46 END * 38 + 97
----
NULL

skipif mysql # not compatible
query I rowsort label-9253
SELECT - + 58 * + - CASE - 48 WHEN COUNT ( * ) THEN + 46 END * 38 + 97
----
NULL

query I rowsort
SELECT DISTINCT + 20 * 73
----
1460

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-9255
SELECT ALL + - COUNT( * ), + 46 * - 85 AS col2, - CASE CAST( + 68 AS SIGNED ) WHEN + COUNT( * ) * + MIN( - 12 ) THEN NULL WHEN - + 65 THEN ( + - 14 ) * - - 10 * + 8 - 84 END col2
----
-1
-3910
NULL

skipif mysql # not compatible
query III rowsort label-9255
SELECT ALL + - COUNT ( * ), + 46 * - 85 AS col2, - CASE CAST ( + 68 AS INTEGER ) WHEN + COUNT ( * ) * + MIN ( - 12 ) THEN NULL WHEN - + 65 THEN ( + - 14 ) * - - 10 * + 8 - 84 END col2
----
-1
-3910
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9256
SELECT DISTINCT + NULLIF ( 6, - COUNT( * ) + + 37 ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-9256
SELECT DISTINCT + NULLIF ( 6, - COUNT ( * ) + + 37 ) AS col2
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9257
SELECT - CAST( NULL AS SIGNED ) / 22 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9257
SELECT - CAST ( NULL AS INTEGER ) / 22 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9258
SELECT + - COUNT( * ) * - MAX( DISTINCT - 92 )
----
-92

skipif mysql # not compatible
query I rowsort label-9258
SELECT + - COUNT ( * ) * - MAX ( DISTINCT - 92 )
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9259
SELECT + - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9259
SELECT + - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9260
SELECT - - 82 DIV - 70 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9260
SELECT - - 82 / - 70 AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9261
SELECT ALL + 76 DIV + 99 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9261
SELECT ALL + 76 / + 99 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9262
SELECT ALL - 5 * CAST( NULL AS SIGNED ) - + NULLIF ( + CAST( NULL AS SIGNED ), + COUNT( * ) * + ( - + 99 ) ) / - 50 + - MAX( DISTINCT + 52 ) + + + 86 - - NULLIF ( 91, + SUM( 24 ) ) * 28 * 69 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9262
SELECT ALL - 5 * CAST ( NULL AS INTEGER ) - + NULLIF ( + CAST ( NULL AS INTEGER ), + COUNT ( * ) * + ( - + 99 ) ) / - 50 + - MAX ( DISTINCT + 52 ) + + + 86 - - NULLIF ( 91, + SUM ( 24 ) ) * 28 * 69 AS col2
----
NULL

query I rowsort
SELECT ALL + + 22 * - 6 - + 71 * + - 20 col2
----
1288

query I rowsort
SELECT DISTINCT + 33 * + 44 + + 98 + - 61 * + - 73
----
6003

query II rowsort
SELECT - 9 AS col1, - 97 col0
----
-9
-97

query I rowsort
SELECT + 75 + + 62 + 28
----
165

query I rowsort
SELECT ALL + ( + NULLIF ( - 69, - + 57 ) ) * - 33 - 37 + 92 * 92 AS col1
----
10704

query I rowsort
SELECT ALL + 11 * - 2 AS col2
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-9269
SELECT - CASE 18 WHEN - 18 / + + 33 * - 11 THEN - - 7 - COALESCE ( 54, 2, - COUNT( * ) * 5 + + + 66 + - COUNT( * ) - - + 51 * + + 40 + MAX( ALL + 22 ) + 24, + 95 + + AVG ( - 63 ) + + ( + - 12 ) - - - MIN( DISTINCT + + 82 ) * 36 + - + 21 ) + + + 90 + + 32 * ( + 99 ) / - + 79 * + + NULLIF ( 94, + - MIN( DISTINCT - + 40 ) ) WHEN - 78 THEN + 9 * + - 75 * + - ( - ( NULLIF ( + ( - 28 ), + 47 / - 8 ) ) ) + 57 + COUNT( * ) ELSE NULL END * - ( - 84 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9269
SELECT - CASE 18 WHEN - 18 / + + 33 * - 11 THEN - - 7 - COALESCE ( 54, 2, - COUNT ( * ) * 5 + + + 66 + - COUNT ( * ) - - + 51 * + + 40 + MAX ( ALL + 22 ) + 24, + 95 + + AVG ( - 63 ) + + ( + - 12 ) - - - MIN ( DISTINCT + + 82 ) * 36 + - + 21 ) + + + 90 + + 32 * ( + 99 ) / - + 79 * + + NULLIF ( 94, + - MIN ( DISTINCT - + 40 ) ) WHEN - 78 THEN + 9 * + - 75 * + - ( - ( NULLIF ( + ( - 28 ), + 47 / - 8 ) ) ) + 57 + COUNT ( * ) ELSE NULL END * - ( - 84 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9270
SELECT - SUM( ( + 80 ) ) - - 69 AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-9270
SELECT - SUM ( ( + 80 ) ) - - 69 AS col2
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9271
SELECT DISTINCT CAST( - CAST( + 58 AS SIGNED ) AS SIGNED )
----
-58

skipif mysql # not compatible
query I rowsort label-9271
SELECT DISTINCT CAST ( - CAST ( + 58 AS INTEGER ) AS INTEGER )
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9272
SELECT ALL - 39 + - MAX( - + 88 ) AS col0
----
49

skipif mysql # not compatible
query I rowsort label-9272
SELECT ALL - 39 + - MAX ( - + 88 ) AS col0
----
49

query I rowsort
SELECT - 45 - 7
----
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-9274
SELECT ALL + 66 DIV + + 91
----
0

skipif mysql # not compatible
query I rowsort label-9274
SELECT ALL + 66 / + + 91
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9275
SELECT - SUM( + ( + 1 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9275
SELECT - SUM ( + ( + 1 ) )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9276
SELECT ALL 9 + - COUNT( * ) + 78 * - - CASE COALESCE ( 14, + 24, - ( - - COALESCE ( 39, 86 * - 35, - + 46 ) ) * + 91 - + CAST( - 2 AS SIGNED ) ) WHEN + 21 * NULLIF ( - 13, - MAX( DISTINCT + 37 ) ) + + + 42 THEN - ( - - NULLIF ( + - 74, + 44 * + SUM( - 9 ) ) ) + - 43 * 17 * + COUNT( * ) + + NULLIF ( ( - 39 ), COUNT( * ) ) WHEN + ( + + COUNT( ALL - 35 ) ) * - - 0 + + ( CAST( NULL AS SIGNED ) ) + + 33 * AVG ( DISTINCT + 56 + 0 ) THEN - AVG ( + CAST( NULL AS SIGNED ) ) ELSE CASE 70 WHEN 97 + 51 THEN + 18 WHEN ( - 41 ) + + 24 THEN COUNT( * ) / - MIN( 64 ) ELSE NULL END + 50 * 22 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9276
SELECT ALL 9 + - COUNT ( * ) + 78 * - - CASE COALESCE ( 14, + 24, - ( - - COALESCE ( 39, 86 * - 35, - + 46 ) ) * + 91 - + CAST ( - 2 AS INTEGER ) ) WHEN + 21 * NULLIF ( - 13, - MAX ( DISTINCT + 37 ) ) + + + 42 THEN - ( - - NULLIF ( + - 74, + 44 * + SUM ( - 9 ) ) ) + - 43 * 17 * + COUNT ( * ) + + NULLIF ( ( - 39 ), COUNT ( * ) ) WHEN + ( + + COUNT ( ALL - 35 ) ) * - - 0 + + ( CAST ( NULL AS INTEGER ) ) + + 33 * AVG ( DISTINCT + 56 + 0 ) THEN - AVG ( + CAST ( NULL AS INTEGER ) ) ELSE CASE 70 WHEN 97 + 51 THEN + 18 WHEN ( - 41 ) + + 24 THEN COUNT ( * ) / - MIN ( 64 ) ELSE NULL END + 50 * 22 END col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9277
SELECT DISTINCT MIN( - ( - + 31 ) ) * 49 * + 95 - - - 10 AS col2, + 37 AS col0
----
144295
37

skipif mysql # not compatible
query II rowsort label-9277
SELECT DISTINCT MIN ( - ( - + 31 ) ) * 49 * + 95 - - - 10 AS col2, + 37 AS col0
----
144295
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9278
SELECT 44 col0, - 98 DIV - ( + COUNT( * ) )
----
44
98

skipif mysql # not compatible
query II rowsort label-9278
SELECT 44 col0, - 98 / - ( + COUNT ( * ) )
----
44
98

onlyif mysql # DIV for integer division: 
query I rowsort label-9279
SELECT ALL + 76 DIV + ( - 94 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9279
SELECT ALL + 76 / + ( - 94 ) AS col0
----
0

query II rowsort
SELECT DISTINCT - 21 - - + NULLIF ( + + ( + 40 ), 78 * 77 ) AS col0, 79 - - ( 81 ) AS col1
----
19
160

onlyif mysql # aggregate syntax: 
query I rowsort label-9281
SELECT - NULLIF ( - NULLIF ( - - 66, 40 * + COUNT( DISTINCT + - 10 ) ), - + 25 ) * + - 56 - - NULLIF ( + - 85, - 63 ) + + 48 * + - 1
----
-3829

skipif mysql # not compatible
query I rowsort label-9281
SELECT - NULLIF ( - NULLIF ( - - 66, 40 * + COUNT ( DISTINCT + - 10 ) ), - + 25 ) * + - 56 - - NULLIF ( + - 85, - 63 ) + + 48 * + - 1
----
-3829

query II rowsort
SELECT - 45 col0, + 75
----
-45
75

query II rowsort
SELECT 30 AS col0, + 3
----
30
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9284
SELECT 76 DIV - - 65 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9284
SELECT 76 / - - 65 AS col2
----
1

query II rowsort
SELECT 74 AS col0, - 26 * - 27 * - 28
----
74
-19656

query I rowsort
SELECT 81 + + 84 AS col2
----
165

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9287
SELECT DISTINCT + 80 * + + 37 * 53 * - COALESCE ( - NULLIF ( - + COALESCE ( + - 87, + 94 + + 41 ), 88 ), - 10, 35 + + CAST( NULL AS SIGNED ) )
----
13648560

skipif mysql # not compatible
query I rowsort label-9287
SELECT DISTINCT + 80 * + + 37 * 53 * - COALESCE ( - NULLIF ( - + COALESCE ( + - 87, + 94 + + 41 ), 88 ), - 10, 35 + + CAST ( NULL AS INTEGER ) )
----
13648560

onlyif mysql # aggregate syntax: 
query I rowsort label-9288
SELECT ALL - NULLIF ( - COUNT( * ), 77 * + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-9288
SELECT ALL - NULLIF ( - COUNT ( * ), 77 * + COUNT ( * ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9289
SELECT ALL - CASE - ( + COALESCE ( 55, - + COUNT( * ) ) ) WHEN - 52 THEN - + 22 WHEN - - COUNT( * ) * 94 + - - 23 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9289
SELECT ALL - CASE - ( + COALESCE ( 55, - + COUNT ( * ) ) ) WHEN - 52 THEN - + 22 WHEN - - COUNT ( * ) * 94 + - - 23 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT 4 * + 32 + + 90 col0
----
218

query II rowsort
SELECT + + 6, - 40 AS col2
----
6
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-9292
SELECT ALL - 40 col0, + ( - COUNT( * ) )
----
-40
-1

skipif mysql # not compatible
query II rowsort label-9292
SELECT ALL - 40 col0, + ( - COUNT ( * ) )
----
-40
-1

query I rowsort
SELECT 83 * + ( - 98 ) + 17 * - 61 AS col1
----
-9171

onlyif mysql # DIV for integer division: 
query I rowsort label-9294
SELECT - 13 * - ( 1 ) DIV - 16 * - + 45 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9294
SELECT - 13 * - ( 1 ) / - 16 * - + 45 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9295
SELECT - 78 * - + 70 - + + 87 + - NULLIF ( CASE WHEN NOT ( NULL ) IS NOT NULL THEN 25 END, - 21 ) + + 69 + CAST( NULL AS SIGNED ) / + 66 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9295
SELECT - 78 * - + 70 - + + 87 + - NULLIF ( CASE WHEN NOT ( NULL ) IS NOT NULL THEN 25 END, - 21 ) + + 69 + CAST ( NULL AS INTEGER ) / + 66 AS col2
----
NULL

query II rowsort
SELECT 13 AS col0, 23 AS col0
----
13
23

query II rowsort
SELECT + 88 AS col1, + 85 * + + ( + ( 47 ) )
----
88
3995

onlyif mysql # aggregate syntax: 
query I rowsort label-9298
SELECT ALL 97 + + MAX( DISTINCT - 35 ) + + 33
----
95

skipif mysql # not compatible
query I rowsort label-9298
SELECT ALL 97 + + MAX ( DISTINCT - 35 ) + + 33
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9299
SELECT COUNT( * ) * 82 + - - 63 + - + 83 DIV + 55 + 49 + + MAX( DISTINCT 56 ) DIV 2 + 44 + + ( 60 ) + 0 + + SUM( DISTINCT + 94 ) * - 63 * SUM( ALL - NULLIF ( - - 98, + 90 ) ) col2
----
580681

skipif mysql # not compatible
query I rowsort label-9299
SELECT COUNT ( * ) * 82 + - - 63 + - + 83 / + 55 + 49 + + MAX ( DISTINCT 56 ) / 2 + 44 + + ( 60 ) + 0 + + SUM ( DISTINCT + 94 ) * - 63 * SUM ( ALL - NULLIF ( - - 98, + 90 ) ) col2
----
580681

query II rowsort
SELECT DISTINCT - + 36 AS col1, + 35
----
-36
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9301
SELECT ALL 40 DIV MIN( + 37 ) * + 10 DIV + 26 + 66 * COUNT( * ) + + 90
----
156

skipif mysql # not compatible
query I rowsort label-9301
SELECT ALL 40 / MIN ( + 37 ) * + 10 / + 26 + 66 * COUNT ( * ) + + 90
----
156

query I rowsort
SELECT + 80 + + + 1 AS col0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9303
SELECT + - 22 col1, + CAST( NULL AS SIGNED ) * - - 52 - 21
----
-22
NULL

skipif mysql # not compatible
query II rowsort label-9303
SELECT + - 22 col1, + CAST ( NULL AS INTEGER ) * - - 52 - 21
----
-22
NULL

query I rowsort
SELECT 52 + - + 54 * + - CASE + 22 WHEN + - 90 + + - 64 THEN + + 72 / + 61 WHEN - 24 THEN COALESCE ( 36, + + 13 ) END
----
NULL

query I rowsort
SELECT ALL - ( 62 ) + + + 62 AS col1
----
0

query II rowsort
SELECT ALL - + 37 AS col1, - 96 col0
----
-37
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9307
SELECT ALL - + MIN( - - 73 ) + - + ( - + 80 ) AS col0, + CAST( + 7 AS SIGNED ) AS col0
----
7
7

skipif mysql # not compatible
query II rowsort label-9307
SELECT ALL - + MIN ( - - 73 ) + - + ( - + 80 ) AS col0, + CAST ( + 7 AS INTEGER ) AS col0
----
7
7

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9308
SELECT - 48 * - CAST( - 36 AS SIGNED ) + 52 - CAST( NULL AS DECIMAL ) + + + 98 + + 1
----
NULL

skipif mysql # not compatible
query I rowsort label-9308
SELECT - 48 * - CAST ( - 36 AS INTEGER ) + 52 - CAST ( NULL AS REAL ) + + + 98 + + 1
----
NULL

query II rowsort
SELECT DISTINCT 86 + - 70, - 37 AS col2
----
16
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-9310
SELECT COUNT( * ) * - + 78
----
-78

skipif mysql # not compatible
query I rowsort label-9310
SELECT COUNT ( * ) * - + 78
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-9311
SELECT 61 + - 83 + + COUNT( * ) * - 82 * 39 AS col2
----
-3220

skipif mysql # not compatible
query I rowsort label-9311
SELECT 61 + - 83 + + COUNT ( * ) * - 82 * 39 AS col2
----
-3220

query I rowsort
SELECT 71 + + 52 AS col1
----
123

query I rowsort
SELECT 42 + + 12 AS col0
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-9314
SELECT DISTINCT - 61 DIV - ( 69 ) * - 24
----
0

skipif mysql # not compatible
query I rowsort label-9314
SELECT DISTINCT - 61 / - ( 69 ) * - 24
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9315
SELECT ALL ( - 37 ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9315
SELECT ALL ( - 37 ) + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 61 + - 83 AS col2
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-9317
SELECT ALL - 35 + - MAX( + - 12 ) col2
----
-23

skipif mysql # not compatible
query I rowsort label-9317
SELECT ALL - 35 + - MAX ( + - 12 ) col2
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-9318
SELECT ALL + MIN( ALL ( 39 ) ) * + CASE - 75 WHEN 42 THEN + 82 / COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9318
SELECT ALL + MIN ( ALL ( 39 ) ) * + CASE - 75 WHEN 42 THEN + 82 / COUNT ( * ) ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT + 62 * 49 * + 2 * 23
----
139748

onlyif mysql # aggregate syntax: 
query II rowsort label-9320
SELECT DISTINCT + 90 - - + COUNT( * ) AS col0, - 82
----
91
-82

skipif mysql # not compatible
query II rowsort label-9320
SELECT DISTINCT + 90 - - + COUNT ( * ) AS col0, - 82
----
91
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9321
SELECT 96 + - 29 AS col2, + 20 / - NULLIF ( + + ( + 17 ), + + AVG ( 34 ) ) * + CAST( NULL AS SIGNED ) - 70 + + - 14 * - 97 + - + 46 * - COUNT( * ) AS col1
----
67
NULL

skipif mysql # not compatible
query II rowsort label-9321
SELECT 96 + - 29 AS col2, + 20 / - NULLIF ( + + ( + 17 ), + + AVG ( 34 ) ) * + CAST ( NULL AS INTEGER ) - 70 + + - 14 * - 97 + - + 46 * - COUNT ( * ) AS col1
----
67
NULL

query I rowsort
SELECT ALL 38 * + 59 * - 80
----
-179360

query II rowsort
SELECT ALL ( - 76 ) AS col1, 14 col0
----
-76
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9324
SELECT DISTINCT - CAST( NULL AS SIGNED ) / + 97 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9324
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / + 97 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-9325
SELECT + 53 * - + 37 AS col1, 19 + + SUM( DISTINCT - 2 ) AS col1, - 69
----
-1961
17
-69

skipif mysql # not compatible
query III rowsort label-9325
SELECT + 53 * - + 37 AS col1, 19 + + SUM ( DISTINCT - 2 ) AS col1, - 69
----
-1961
17
-69

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-9326
SELECT DISTINCT COALESCE ( + 55, - + 66 DIV + - 70 + + 36 + - COUNT( ( CAST( + 93 AS DECIMAL ) ) ) * 63 ) * 3
----
165

skipif mysql # not compatible
query I rowsort label-9326
SELECT DISTINCT COALESCE ( + 55, - + 66 / + - 70 + + 36 + - COUNT ( ( CAST ( + 93 AS REAL ) ) ) * 63 ) * 3
----
165

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9327
SELECT 37 * - 80 * + ( - - CAST( NULL AS SIGNED ) ) * + 1 + - 81 / 33
----
NULL

skipif mysql # not compatible
query I rowsort label-9327
SELECT 37 * - 80 * + ( - - CAST ( NULL AS INTEGER ) ) * + 1 + - 81 / 33
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9328
SELECT - NULLIF ( - + 17, - 83 ) DIV - 59 * + - 25 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9328
SELECT - NULLIF ( - + 17, - 83 ) / - 59 * + - 25 AS col2
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-9329
SELECT DISTINCT - 10 + - 84 + 49 DIV - 36 - 92, + 84 * NULLIF ( - 45, - COALESCE ( - ( 39 ), - + 0 ) ) AS col0
----
-187
-3780

skipif mysql # not compatible
query II rowsort label-9329
SELECT DISTINCT - 10 + - 84 + 49 / - 36 - 92, + 84 * NULLIF ( - 45, - COALESCE ( - ( 39 ), - + 0 ) ) AS col0
----
-187
-3780

onlyif mysql # aggregate syntax: 
query I rowsort label-9330
SELECT MIN( + - 82 )
----
-82

skipif mysql # not compatible
query I rowsort label-9330
SELECT MIN ( + - 82 )
----
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9331
SELECT ALL + + COUNT( * ) + ( + - 90 ) DIV - 79 * - + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-9331
SELECT ALL + + COUNT ( * ) + ( + - 90 ) / - 79 * - + COUNT ( * )
----
0

query II rowsort
SELECT ALL 85 + 75 AS col1, - 6 AS col2
----
160
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9333
SELECT + COUNT( - - 27 ) - 7 AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-9333
SELECT + COUNT ( - - 27 ) - 7 AS col1
----
-6

query I rowsort
SELECT ALL - CASE + 63 WHEN + 31 / - 15 THEN + 23 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9335
SELECT ALL - + 50 + - COUNT( * ) - 51 AS col0
----
-102

skipif mysql # not compatible
query I rowsort label-9335
SELECT ALL - + 50 + - COUNT ( * ) - 51 AS col0
----
-102

query I rowsort
SELECT 98 + - 39
----
59

query I rowsort
SELECT 44 * 76
----
3344

query II rowsort
SELECT ALL 64 + - ( + 26 ), 26 AS col2
----
38
26

query II rowsort
SELECT 50 AS col0, - ( - 64 ) AS col1
----
50
64

query I rowsort
SELECT ALL 40 * + 99 AS col1
----
3960

query I rowsort
SELECT 51 * + 23 AS col1
----
1173

query I rowsort
SELECT ALL - ( + 0 ) AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9343
SELECT DISTINCT - ( COUNT( DISTINCT + CASE + 86 WHEN CAST( - ( 62 ) AS SIGNED ) * + 17 + + 86 THEN NULL WHEN + 99 THEN + 5 ELSE NULL END ) ) / + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9343
SELECT DISTINCT - ( COUNT ( DISTINCT + CASE + 86 WHEN CAST ( - ( 62 ) AS INTEGER ) * + 17 + + 86 THEN NULL WHEN + 99 THEN + 5 ELSE NULL END ) ) / + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL 34 - + 97
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-9345
SELECT DISTINCT 63 - + COUNT( * )
----
62

skipif mysql # not compatible
query I rowsort label-9345
SELECT DISTINCT 63 - + COUNT ( * )
----
62

query II rowsort
SELECT 83 col1, - 50 col2
----
83
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-9347
SELECT COUNT( ALL - + 85 ) + + + 36 * - 9
----
-323

skipif mysql # not compatible
query I rowsort label-9347
SELECT COUNT ( ALL - + 85 ) + + + 36 * - 9
----
-323

query I rowsort
SELECT 89 * + + 81
----
7209

onlyif mysql # aggregate syntax: 
query II rowsort label-9349
SELECT - COALESCE ( - 83, - MAX( 17 ) ) AS col2, 94
----
83
94

skipif mysql # not compatible
query II rowsort label-9349
SELECT - COALESCE ( - 83, - MAX ( 17 ) ) AS col2, 94
----
83
94

query I rowsort
SELECT + ( + - 19 ) - - ( - 55 ) * - 32 AS col2
----
1741

query I rowsort
SELECT - 62 * 64 AS col2
----
-3968

onlyif mysql # DIV for integer division: 
query I rowsort label-9352
SELECT ALL 26 DIV + 58
----
0

skipif mysql # not compatible
query I rowsort label-9352
SELECT ALL 26 / + 58
----
0

query I rowsort
SELECT ALL - 4 * 61
----
-244

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9354
SELECT DISTINCT 56 DIV SUM( - 41 ) DIV MIN( - 75 )
----
0

skipif mysql # not compatible
query I rowsort label-9354
SELECT DISTINCT 56 / SUM ( - 41 ) / MIN ( - 75 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9355
SELECT ALL + 41 * + 95 * - 16 * + COUNT( * ) AS col1
----
-62320

skipif mysql # not compatible
query I rowsort label-9355
SELECT ALL + 41 * + 95 * - 16 * + COUNT ( * ) AS col1
----
-62320

query I rowsort
SELECT + 90 + + + 23 * + 39 + + 35 AS col0
----
1022

query I rowsort
SELECT ALL 29 * 29
----
841

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9358
SELECT + + CAST( NULL AS SIGNED ) * - 99 + - + 53
----
NULL

skipif mysql # not compatible
query I rowsort label-9358
SELECT + + CAST ( NULL AS INTEGER ) * - 99 + - + 53
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9359
SELECT + 3 + + 97 * - - COUNT( * ), - 27 AS col1
----
100
-27

skipif mysql # not compatible
query II rowsort label-9359
SELECT + 3 + + 97 * - - COUNT ( * ), - 27 AS col1
----
100
-27

query II rowsort
SELECT - 73 + 78 + 33 * + 77 - + + 83 + - - 42 AS col1, 49 + + 55 - - ( + 53 ) + - - 91 col2
----
2505
248

query II rowsort
SELECT - - 20, 14 AS col1
----
20
14

onlyif mysql # aggregate syntax: 
query II rowsort label-9362
SELECT 74 col1, - 66 + COUNT( * )
----
74
-65

skipif mysql # not compatible
query II rowsort label-9362
SELECT 74 col1, - 66 + COUNT ( * )
----
74
-65

query I rowsort
SELECT DISTINCT + - 53 + + 38
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-9364
SELECT - COUNT( * ), 44 AS col0
----
-1
44

skipif mysql # not compatible
query II rowsort label-9364
SELECT - COUNT ( * ), 44 AS col0
----
-1
44

onlyif mysql # aggregate syntax: 
query I rowsort label-9365
SELECT ALL + NULLIF ( - + COUNT( * ), 7 * + - 39 ) + - + 56
----
-57

skipif mysql # not compatible
query I rowsort label-9365
SELECT ALL + NULLIF ( - + COUNT ( * ), 7 * + - 39 ) + - + 56
----
-57

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9366
SELECT - 94 * - CAST( - 82 AS SIGNED ) + + - 63 DIV - + 51
----
-7707

skipif mysql # not compatible
query I rowsort label-9366
SELECT - 94 * - CAST ( - 82 AS INTEGER ) + + - 63 / - + 51
----
-7707

query I rowsort
SELECT DISTINCT + 36 * 33
----
1188

query II rowsort
SELECT + 23 AS col2, - 29 AS col2
----
23
-29

query I rowsort
SELECT DISTINCT - ( - 53 ) * 55 + - - 86 + - 17 * - 77 * 14
----
21327

onlyif mysql # aggregate syntax: 
query I rowsort label-9370
SELECT + 15 + COUNT( * ) AS col2
----
16

skipif mysql # not compatible
query I rowsort label-9370
SELECT + 15 + COUNT ( * ) AS col2
----
16

query I rowsort
SELECT - 89 + + 82 AS col2
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9372
SELECT ALL - 54 DIV + COUNT( * ) + + 83 * - 75 AS col1, ( + 25 )
----
-6279
25

skipif mysql # not compatible
query II rowsort label-9372
SELECT ALL - 54 / + COUNT ( * ) + + 83 * - 75 AS col1, ( + 25 )
----
-6279
25

query I rowsort
SELECT 48 * - - 53 + - 65 AS col2
----
2479

query I rowsort
SELECT + 19 * - ( - 6 ) * + 10 + 11 + + 30 + 4 * 36 AS col2
----
1325

onlyif mysql # aggregate syntax: 
query II rowsort label-9375
SELECT + COUNT( * ) AS col2, - ( + + 23 )
----
1
-23

skipif mysql # not compatible
query II rowsort label-9375
SELECT + COUNT ( * ) AS col2, - ( + + 23 )
----
1
-23

query II rowsort
SELECT ALL + 2 col0, ( 32 ) + - 3 + CASE - 81 WHEN - - 81 THEN 21 END + + 27 + + 93 AS col0
----
2
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9377
SELECT ALL 23 * + 63 + + 0 DIV + MAX( + + 4 ) * - - 98 - COUNT( * ) AS col2
----
1448

skipif mysql # not compatible
query I rowsort label-9377
SELECT ALL 23 * + 63 + + 0 / + MAX ( + + 4 ) * - - 98 - COUNT ( * ) AS col2
----
1448

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9378
SELECT + + 93 * - ( - 32 ) * - 58 + - CAST( NULL AS SIGNED ) + + + ( - - 6 ) * CASE - 10 WHEN + 75 THEN NULL WHEN ( COUNT( * ) ) THEN - 57 WHEN - 87 / - 22 * - + 42 THEN NULL END AS col1, 55
----
NULL
55

skipif mysql # not compatible
query II rowsort label-9378
SELECT + + 93 * - ( - 32 ) * - 58 + - CAST ( NULL AS INTEGER ) + + + ( - - 6 ) * CASE - 10 WHEN + 75 THEN NULL WHEN ( COUNT ( * ) ) THEN - 57 WHEN - 87 / - 22 * - + 42 THEN NULL END AS col1, 55
----
NULL
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9379
SELECT + 4 DIV + - 46 * - 33 * - 54 + - 86 + COUNT( + - 68 )
----
-85

skipif mysql # not compatible
query I rowsort label-9379
SELECT + 4 / + - 46 * - 33 * - 54 + - 86 + COUNT ( + - 68 )
----
-85

query I rowsort
SELECT - 5 * + 46 AS col0
----
-230

query I rowsort
SELECT DISTINCT + ( + 19 ) * 65
----
1235

query I rowsort
SELECT ALL - 7 * + 94
----
-658

onlyif mysql # DIV for integer division: 
query I rowsort label-9383
SELECT ALL 93 DIV 59 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9383
SELECT ALL 93 / 59 AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9384
SELECT + CAST( NULL AS DECIMAL ) * - COUNT( * ) + CAST( NULL AS DECIMAL ) - + 73
----
NULL

skipif mysql # not compatible
query I rowsort label-9384
SELECT + CAST ( NULL AS REAL ) * - COUNT ( * ) + CAST ( NULL AS REAL ) - + 73
----
NULL

query II rowsort
SELECT DISTINCT + NULLIF ( + 84, ( + ( 66 ) ) ) AS col2, + 67 AS col0
----
84
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9386
SELECT CAST( NULL AS SIGNED ) * - - 81 + + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9386
SELECT CAST ( NULL AS INTEGER ) * - - 81 + + + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9387
SELECT ALL + ( 57 ) col2, - 15 - - COUNT( + 72 )
----
57
-14

skipif mysql # not compatible
query II rowsort label-9387
SELECT ALL + ( 57 ) col2, - 15 - - COUNT ( + 72 )
----
57
-14

query II rowsort
SELECT - 39 * - 98 AS col2, + 97
----
3822
97

query I rowsort
SELECT + 45 + + 1 * 3 * - - 93
----
324

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9390
SELECT + 21 + + 61 + + 64 + - - 73 DIV + COUNT( * )
----
219

skipif mysql # not compatible
query I rowsort label-9390
SELECT + 21 + + 61 + + 64 + - - 73 / + COUNT ( * )
----
219

onlyif mysql # aggregate syntax: 
query I rowsort label-9391
SELECT ALL - 45 * MIN( + 43 )
----
-1935

skipif mysql # not compatible
query I rowsort label-9391
SELECT ALL - 45 * MIN ( + 43 )
----
-1935

onlyif mysql # aggregate syntax: 
query I rowsort label-9392
SELECT ALL SUM( ALL - 77 )
----
-77

skipif mysql # not compatible
query I rowsort label-9392
SELECT ALL SUM ( ALL - 77 )
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-9393
SELECT + - 65 + - CAST( NULL AS SIGNED ) AS col0, COUNT( * ) * + ( + 95 ) col2, + - COUNT( * )
----
NULL
95
-1

skipif mysql # not compatible
query III rowsort label-9393
SELECT + - 65 + - CAST ( NULL AS INTEGER ) AS col0, COUNT ( * ) * + ( + 95 ) col2, + - COUNT ( * )
----
NULL
95
-1

query I rowsort
SELECT DISTINCT 22 + - - 27 AS col2
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9395
SELECT + - 21 DIV + + 58 * COUNT( * ) + - COUNT( * ) + - 37 * 63 * + - COUNT( * ) + + 77 - + 6 * + 75 AS col2
----
1957

skipif mysql # not compatible
query I rowsort label-9395
SELECT + - 21 / + + 58 * COUNT ( * ) + - COUNT ( * ) + - 37 * 63 * + - COUNT ( * ) + + 77 - + 6 * + 75 AS col2
----
1957

onlyif mysql # aggregate syntax: 
query I rowsort label-9396
SELECT + - COUNT( * ) + - - 18 AS col0
----
17

skipif mysql # not compatible
query I rowsort label-9396
SELECT + - COUNT ( * ) + - - 18 AS col0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9397
SELECT ALL - COUNT( * ) + + MAX( DISTINCT + 38 )
----
37

skipif mysql # not compatible
query I rowsort label-9397
SELECT ALL - COUNT ( * ) + + MAX ( DISTINCT + 38 )
----
37

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9398
SELECT ALL + CAST( NULL AS DECIMAL ) + 27 - - + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-9398
SELECT ALL + CAST ( NULL AS REAL ) + 27 - - + 48
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9399
SELECT ALL - ( - 97 ) + - + 16 * - 5 AS col2, - 88 DIV 96 AS col2
----
177
0

skipif mysql # not compatible
query II rowsort label-9399
SELECT ALL - ( - 97 ) + - + 16 * - 5 AS col2, - 88 / 96 AS col2
----
177
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9400
SELECT ALL COUNT( * ) + + 82 AS col0
----
83

skipif mysql # not compatible
query I rowsort label-9400
SELECT ALL COUNT ( * ) + + 82 AS col0
----
83

onlyif mysql # aggregate syntax: 
query II rowsort label-9401
SELECT DISTINCT - - ( - + COUNT( * ) ) * - ( 35 ) AS col2, + 91 + + - 23 AS col0
----
35
68

skipif mysql # not compatible
query II rowsort label-9401
SELECT DISTINCT - - ( - + COUNT ( * ) ) * - ( 35 ) AS col2, + 91 + + - 23 AS col0
----
35
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9402
SELECT DISTINCT + COUNT( * ) + - - 50
----
51

skipif mysql # not compatible
query I rowsort label-9402
SELECT DISTINCT + COUNT ( * ) + - - 50
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9403
SELECT ALL - CASE - ( + 84 ) WHEN SUM( ( - 6 ) ) * - + COUNT( * ) / - CASE - CAST( NULL AS SIGNED ) WHEN 65 THEN NULL ELSE COUNT( * ) + + 57 - - 94 END + - 45 THEN - + COUNT( * ) END + + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9403
SELECT ALL - CASE - ( + 84 ) WHEN SUM ( ( - 6 ) ) * - + COUNT ( * ) / - CASE - CAST ( NULL AS INTEGER ) WHEN 65 THEN NULL ELSE COUNT ( * ) + + 57 - - 94 END + - 45 THEN - + COUNT ( * ) END + + COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9404
SELECT + 4 + COUNT( - - 13 ) / + CAST( NULL AS SIGNED ) + + 30 + + - 73 * - SUM( ALL - ( + + 69 ) ) * 23 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9404
SELECT + 4 + COUNT ( - - 13 ) / + CAST ( NULL AS INTEGER ) + + 30 + + - 73 * - SUM ( ALL - ( + + 69 ) ) * 23 AS col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9405
SELECT - - CAST( NULL AS DECIMAL ) * - 56 / 22
----
NULL

skipif mysql # not compatible
query I rowsort label-9405
SELECT - - CAST ( NULL AS REAL ) * - 56 / 22
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9406
SELECT ALL + 16 DIV - 93 - + COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9406
SELECT ALL + 16 / - 93 - + COUNT ( * ) AS col2
----
-1

query I rowsort
SELECT DISTINCT - 64 * - 57 AS col2
----
3648

query II rowsort
SELECT DISTINCT + 29 col2, + 66
----
29
66

query I rowsort
SELECT - 81 - 49 AS col2
----
-130

onlyif mysql # DIV for integer division: 
query I rowsort label-9410
SELECT DISTINCT + 30 DIV - - 5 AS col1
----
6

skipif mysql # not compatible
query I rowsort label-9410
SELECT DISTINCT + 30 / - - 5 AS col1
----
6

query II rowsort
SELECT ALL + 41, + 79 * - 98 AS col2
----
41
-7742

onlyif mysql # DIV for integer division: 
query II rowsort label-9412
SELECT ALL 37 DIV + + 37 - - 58 + + ( - + 29 ) AS col1, - 2
----
30
-2

skipif mysql # not compatible
query II rowsort label-9412
SELECT ALL 37 / + + 37 - - 58 + + ( - + 29 ) AS col1, - 2
----
30
-2

query I rowsort
SELECT ( - - 9 ) AS col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9414
SELECT 99 - + + COUNT( * )
----
98

skipif mysql # not compatible
query I rowsort label-9414
SELECT 99 - + + COUNT ( * )
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9415
SELECT 70 DIV - SUM( ALL + 85 )
----
0

skipif mysql # not compatible
query I rowsort label-9415
SELECT 70 / - SUM ( ALL + 85 )
----
0

query I rowsort
SELECT DISTINCT - 58 * - + 65 col1
----
3770

query I rowsort
SELECT 79 * + 54 AS col1
----
4266

query I rowsort
SELECT ALL + 13 + 52 + + - 27 * - + 38 * + 5 + + 4
----
5199

query I rowsort
SELECT DISTINCT - 59 * 71 * - 54
----
226206

query I rowsort
SELECT 5 * + - 90
----
-450

query I rowsort
SELECT 85 + + 72 * - + 36 * 63
----
-163211

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9422
SELECT ALL + COUNT( * ) + + CAST( - - COUNT( * ) AS SIGNED )
----
2

skipif mysql # not compatible
query I rowsort label-9422
SELECT ALL + COUNT ( * ) + + CAST ( - - COUNT ( * ) AS INTEGER )
----
2

query I rowsort
SELECT 4 + 67 AS col1
----
71

query I rowsort
SELECT DISTINCT - ( 94 ) + 43
----
-51

query I rowsort
SELECT - 21 + 73 + - ( - - 93 )
----
-41

query I rowsort
SELECT 42 + - 39
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9427
SELECT ALL + 98 + + + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9427
SELECT ALL + 98 + + + CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT ALL + 87 * + ( + 31 )
----
2697

onlyif mysql # aggregate syntax: 
query I rowsort label-9429
SELECT + 88 + + - NULLIF ( - + CASE ( + MAX( DISTINCT - 7 ) ) WHEN + + ( + COUNT( * ) ) THEN NULL WHEN 94 / + - 38 * + 62 * 94 THEN - 88 * - 32 + + + 45 ELSE NULL END, - 32 - 62 + + - 3 * 36 * + + COUNT( * ) * + COALESCE ( + 45, + 11 ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9429
SELECT + 88 + + - NULLIF ( - + CASE ( + MAX ( DISTINCT - 7 ) ) WHEN + + ( + COUNT ( * ) ) THEN NULL WHEN 94 / + - 38 * + 62 * 94 THEN - 88 * - 32 + + + 45 ELSE NULL END, - 32 - 62 + + - 3 * 36 * + + COUNT ( * ) * + COALESCE ( + 45, + 11 ) ) col2
----
NULL

query I rowsort
SELECT + 57 - - 53 AS col1
----
110

query II rowsort
SELECT DISTINCT - 93, - 85 col1
----
-93
-85

query I rowsort
SELECT ALL 41 - - + 20
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-9433
SELECT - 80 * COUNT( * ) col1
----
-80

skipif mysql # not compatible
query I rowsort label-9433
SELECT - 80 * COUNT ( * ) col1
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-9434
SELECT COUNT( * ) + 18 * - - 63
----
1135

skipif mysql # not compatible
query I rowsort label-9434
SELECT COUNT ( * ) + 18 * - - 63
----
1135

onlyif mysql # aggregate syntax: 
query I rowsort label-9435
SELECT ALL COUNT( ALL + - 5 )
----
1

skipif mysql # not compatible
query I rowsort label-9435
SELECT ALL COUNT ( ALL + - 5 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9436
SELECT + COUNT( * ) * - 71 + - 56 AS col1, + 56 AS col1
----
-127
56

skipif mysql # not compatible
query II rowsort label-9436
SELECT + COUNT ( * ) * - 71 + - 56 AS col1, + 56 AS col1
----
-127
56

onlyif mysql # aggregate syntax: 
query I rowsort label-9437
SELECT + COUNT( * ) * - 90 AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-9437
SELECT + COUNT ( * ) * - 90 AS col1
----
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9438
SELECT DISTINCT NULLIF ( + COUNT( * ), + 45 ) DIV - 81 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9438
SELECT DISTINCT NULLIF ( + COUNT ( * ), + 45 ) / - 81 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9439
SELECT DISTINCT + 44 * - MIN( - 79 )
----
3476

skipif mysql # not compatible
query I rowsort label-9439
SELECT DISTINCT + 44 * - MIN ( - 79 )
----
3476

query II rowsort
SELECT + 4 AS col2, 23 col2
----
4
23

onlyif mysql # DIV for integer division: 
query I rowsort label-9441
SELECT 51 + - 84 DIV + - 11 AS col0
----
58

skipif mysql # not compatible
query I rowsort label-9441
SELECT 51 + - 84 / + - 11 AS col0
----
58

query II rowsort
SELECT + 7 AS col0, 97
----
7
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9443
SELECT ALL 75 * + 65 * + COUNT( * ) AS col2
----
4875

skipif mysql # not compatible
query I rowsort label-9443
SELECT ALL 75 * + 65 * + COUNT ( * ) AS col2
----
4875

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9444
SELECT + 15 AS col0, CASE NULLIF ( CAST( NULL AS SIGNED ), - - 72 ) WHEN + COUNT( * ) THEN - 13 WHEN + + 68 THEN 88 END + 86 + - 19 AS col1
----
15
NULL

skipif mysql # not compatible
query II rowsort label-9444
SELECT + 15 AS col0, CASE NULLIF ( CAST ( NULL AS INTEGER ), - - 72 ) WHEN + COUNT ( * ) THEN - 13 WHEN + + 68 THEN 88 END + 86 + - 19 AS col1
----
15
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9445
SELECT DISTINCT - 47 col0, 52 / - - SUM( DISTINCT CASE + 60 WHEN + 27 THEN ( + CAST( NULL AS SIGNED ) ) ELSE NULL END ) AS col2
----
-47
NULL

skipif mysql # not compatible
query II rowsort label-9445
SELECT DISTINCT - 47 col0, 52 / - - SUM ( DISTINCT CASE + 60 WHEN + 27 THEN ( + CAST ( NULL AS INTEGER ) ) ELSE NULL END ) AS col2
----
-47
NULL

query I rowsort
SELECT DISTINCT 80 + + 20 col2
----
100

query I rowsort
SELECT ALL 39 * - 29 AS col1
----
-1131

query I rowsort
SELECT ALL - 45 + - 87
----
-132

onlyif mysql # DIV for integer division: 
query I rowsort label-9449
SELECT 5 DIV + ( + 23 )
----
0

skipif mysql # not compatible
query I rowsort label-9449
SELECT 5 / + ( + 23 )
----
0

query II rowsort
SELECT + 36, - NULLIF ( - ( - 51 ), + ( 30 ) ) AS col1
----
36
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9451
SELECT ALL + MAX( DISTINCT + 92 ) + + 68 DIV - - 98 + ( - SUM( - 84 ) ) - - + 43
----
219

skipif mysql # not compatible
query I rowsort label-9451
SELECT ALL + MAX ( DISTINCT + 92 ) + + 68 / - - 98 + ( - SUM ( - 84 ) ) - - + 43
----
219

query I rowsort
SELECT 40 + + 37
----
77

query I rowsort
SELECT ALL - + 83 * - 66 * - 29
----
-158862

onlyif mysql # aggregate syntax: 
query I rowsort label-9454
SELECT ALL - SUM( + 93 ) + 97
----
4

skipif mysql # not compatible
query I rowsort label-9454
SELECT ALL - SUM ( + 93 ) + 97
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9455
SELECT DISTINCT + MIN( - 3 ) * - 87 * - 29 - - 51 AS col1
----
-7518

skipif mysql # not compatible
query I rowsort label-9455
SELECT DISTINCT + MIN ( - 3 ) * - 87 * - 29 - - 51 AS col1
----
-7518

query II rowsort
SELECT - 58 AS col0, 35 col1
----
-58
35

onlyif mysql # aggregate syntax: 
query I rowsort label-9457
SELECT COUNT( + - 73 )
----
1

skipif mysql # not compatible
query I rowsort label-9457
SELECT COUNT ( + - 73 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9458
SELECT COUNT( * ), 58 * - 72 * 17 AS col0
----
1
-70992

skipif mysql # not compatible
query II rowsort label-9458
SELECT COUNT ( * ), 58 * - 72 * 17 AS col0
----
1
-70992

onlyif mysql # aggregate syntax: 
query I rowsort label-9459
SELECT ALL - + 91 - - MAX( - 13 ) AS col1
----
-104

skipif mysql # not compatible
query I rowsort label-9459
SELECT ALL - + 91 - - MAX ( - 13 ) AS col1
----
-104

query I rowsort
SELECT COALESCE ( - 12, + 18 )
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-9461
SELECT ALL - 75 * - 75 AS col1, COUNT( * ) * + 57
----
5625
57

skipif mysql # not compatible
query II rowsort label-9461
SELECT ALL - 75 * - 75 AS col1, COUNT ( * ) * + 57
----
5625
57

onlyif mysql # aggregate syntax: 
query I rowsort label-9462
SELECT ALL SUM( ALL 47 )
----
47

skipif mysql # not compatible
query I rowsort label-9462
SELECT ALL SUM ( ALL 47 )
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9463
SELECT ALL - + 99 - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9463
SELECT ALL - + 99 - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9464
SELECT - CASE + ( - CASE + 97 WHEN 20 THEN - - SUM( + 13 ) WHEN + + 16 / - 84 THEN + COUNT( * ) END ) WHEN 19 THEN NULL ELSE + ( + 76 ) END AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-9464
SELECT - CASE + ( - CASE + 97 WHEN 20 THEN - - SUM ( + 13 ) WHEN + + 16 / - 84 THEN + COUNT ( * ) END ) WHEN 19 THEN NULL ELSE + ( + 76 ) END AS col0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-9465
SELECT + NULLIF ( + COUNT( * ), + 84 + 45 ) * + COUNT( ALL + 5 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-9465
SELECT + NULLIF ( + COUNT ( * ), + 84 + 45 ) * + COUNT ( ALL + 5 ) col1
----
1

query I rowsort
SELECT ALL + - 87 * 94
----
-8178

query II rowsort
SELECT - - 23 AS col1, - 1 AS col0
----
23
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9468
SELECT ( + + 13 ) DIV + - 68 + CAST( - 83 AS SIGNED ) + COUNT( * )
----
-82

skipif mysql # not compatible
query I rowsort label-9468
SELECT ( + + 13 ) / + - 68 + CAST ( - 83 AS INTEGER ) + COUNT ( * )
----
-82

query I rowsort
SELECT COALESCE ( - 96, + ( + 80 ) ) AS col0
----
-96

query II rowsort
SELECT ALL - ( + 14 ) * - + 36 * - + 50 + + 54, + NULLIF ( 44, + - 16 + - 78 ) AS col0
----
-25146
44

onlyif mysql # aggregate syntax: 
query I rowsort label-9471
SELECT + 33 * 11 * + COUNT( * ) AS col1
----
363

skipif mysql # not compatible
query I rowsort label-9471
SELECT + 33 * 11 * + COUNT ( * ) AS col1
----
363

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9472
SELECT DISTINCT 97 * COUNT( * ) DIV 82 * 43 + - 12
----
31

skipif mysql # not compatible
query I rowsort label-9472
SELECT DISTINCT 97 * COUNT ( * ) / 82 * 43 + - 12
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9473
SELECT DISTINCT - 78 * COALESCE ( - 47, - 83, + - 65 * - + NULLIF ( - COALESCE ( - + 95, - 11, - COUNT( - - COALESCE ( - 36, + 88 ) ) - - 65 * CASE + 23 WHEN 99 * - 33 * - NULLIF ( + - 30, + 9 + + COUNT( * ) + - CAST( NULL AS SIGNED ) / ( - 98 ) ) - COUNT( * ) THEN + 63 END * + 28 + - 45, - 5 ), + NULLIF ( 72, - + 52 ) * + 39 + ( 42 ) * 12 + 50 + + 21 ) + 6 * - CAST( NULL AS SIGNED ) * 72 ) + + - 31 AS col1
----
3635

skipif mysql # not compatible
query I rowsort label-9473
SELECT DISTINCT - 78 * COALESCE ( - 47, - 83, + - 65 * - + NULLIF ( - COALESCE ( - + 95, - 11, - COUNT ( - - COALESCE ( - 36, + 88 ) ) - - 65 * CASE + 23 WHEN 99 * - 33 * - NULLIF ( + - 30, + 9 + + COUNT ( * ) + - CAST ( NULL AS INTEGER ) / ( - 98 ) ) - COUNT ( * ) THEN + 63 END * + 28 + - 45, - 5 ), + NULLIF ( 72, - + 52 ) * + 39 + ( 42 ) * 12 + 50 + + 21 ) + 6 * - CAST ( NULL AS INTEGER ) * 72 ) + + - 31 AS col1
----
3635

query I rowsort
SELECT CASE - + 90 WHEN - + ( - 7 ) THEN NULL WHEN 32 + - NULLIF ( - + 27, + + 51 ) THEN + 98 * + + 73 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9475
SELECT ALL CAST( NULL AS SIGNED ) * + 22 * + + 92 + + - 10
----
NULL

skipif mysql # not compatible
query I rowsort label-9475
SELECT ALL CAST ( NULL AS INTEGER ) * + 22 * + + 92 + + - 10
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9476
SELECT + ( - COUNT( * ) ) * - 81 col0
----
81

skipif mysql # not compatible
query I rowsort label-9476
SELECT + ( - COUNT ( * ) ) * - 81 col0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9477
SELECT + 80 * - COUNT( * ) * - 29 AS col2
----
2320

skipif mysql # not compatible
query I rowsort label-9477
SELECT + 80 * - COUNT ( * ) * - 29 AS col2
----
2320

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9478
SELECT DISTINCT + 1 * 33 + 47 - - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9478
SELECT DISTINCT + 1 * 33 + 47 - - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL ( - - 55 ) * + 16 AS col1
----
880

onlyif mysql # aggregate syntax: 
query I rowsort label-9480
SELECT COUNT( - - 74 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9480
SELECT COUNT ( - - 74 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9481
SELECT + 44 * + CAST( NULL AS SIGNED ) * + COUNT( * ) AS col1, - 11 + 99 - - 99 + + 77
----
NULL
264

skipif mysql # not compatible
query II rowsort label-9481
SELECT + 44 * + CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col1, - 11 + 99 - - 99 + + 77
----
NULL
264

query I rowsort
SELECT + NULLIF ( - + 11, - 29 ) col2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-9483
SELECT ALL + 53 * - + 71 * - COUNT( * ) AS col2
----
3763

skipif mysql # not compatible
query I rowsort label-9483
SELECT ALL + 53 * - + 71 * - COUNT ( * ) AS col2
----
3763

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9484
SELECT ALL 31 * + - CAST( + 75 AS SIGNED ) - + 26 * 6 col1
----
-2481

skipif mysql # not compatible
query I rowsort label-9484
SELECT ALL 31 * + - CAST ( + 75 AS INTEGER ) - + 26 * 6 col1
----
-2481

query I rowsort
SELECT - 12 - 9
----
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-9486
SELECT - 17 * + 58, - 30 + + 51 * SUM( DISTINCT 35 ) + 32 AS col2
----
-986
1787

skipif mysql # not compatible
query II rowsort label-9486
SELECT - 17 * + 58, - 30 + + 51 * SUM ( DISTINCT 35 ) + 32 AS col2
----
-986
1787

query II rowsort
SELECT ALL + 70 - + 83 AS col2, ( - 90 ) AS col1
----
-13
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-9488
SELECT + + MAX( + - 10 ) * + - 88 + + 61 AS col1
----
941

skipif mysql # not compatible
query I rowsort label-9488
SELECT + + MAX ( + - 10 ) * + - 88 + + 61 AS col1
----
941

query I rowsort
SELECT + 83 * 21 + - 46
----
1697

onlyif mysql # aggregate syntax: 
query I rowsort label-9490
SELECT - - 26 * - + MAX( - + 58 ) * 27 + - - COALESCE ( + + 31, - 44 + 3 + + + 14 )
----
40747

skipif mysql # not compatible
query I rowsort label-9490
SELECT - - 26 * - + MAX ( - + 58 ) * 27 + - - COALESCE ( + + 31, - 44 + 3 + + + 14 )
----
40747

onlyif mysql # aggregate syntax: 
query I rowsort label-9491
SELECT - + COUNT( * ) + + - 75 - + 45 * 20
----
-976

skipif mysql # not compatible
query I rowsort label-9491
SELECT - + COUNT ( * ) + + - 75 - + 45 * 20
----
-976

onlyif mysql # DIV for integer division: 
query I rowsort label-9492
SELECT ALL + 46 * - + 55 - - + 1 - 31 * ( - + 0 ) DIV - + 29 AS col0
----
-2529

skipif mysql # not compatible
query I rowsort label-9492
SELECT ALL + 46 * - + 55 - - + 1 - 31 * ( - + 0 ) / - + 29 AS col0
----
-2529

query I rowsort
SELECT ALL - 43 * + 85 col0
----
-3655

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9494
SELECT DISTINCT - CAST( + 95 AS SIGNED )
----
-95

skipif mysql # not compatible
query I rowsort label-9494
SELECT DISTINCT - CAST ( + 95 AS INTEGER )
----
-95

query I rowsort
SELECT - 99 * 34 AS col2
----
-3366

query I rowsort
SELECT + 46 * + - 56
----
-2576

query I rowsort
SELECT ALL - 17 + - 82 AS col2
----
-99

query I rowsort
SELECT - 93 + 9 * ( - 67 ) * 91
----
-54966

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9499
SELECT ALL + COALESCE ( + - COUNT( * ), - + 65, + 73 ) col0, CAST( NULL AS SIGNED ) / + 40 AS col2
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-9499
SELECT ALL + COALESCE ( + - COUNT ( * ), - + 65, + 73 ) col0, CAST ( NULL AS INTEGER ) / + 40 AS col2
----
-1
NULL

query I rowsort
SELECT - 57 * - 62
----
3534

query I rowsort
SELECT - 74 + + 35 AS col0
----
-39

query I rowsort
SELECT + 80 * + 32
----
2560

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9503
SELECT ALL + CAST( - + 4 AS SIGNED )
----
-4

skipif mysql # not compatible
query I rowsort label-9503
SELECT ALL + CAST ( - + 4 AS INTEGER )
----
-4

query I rowsort
SELECT ( + + 88 ) AS col0
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9505
SELECT 0 * - 90 * - ( - 85 ) * + CAST( + 84 AS SIGNED ) + + - 22 AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-9505
SELECT 0 * - 90 * - ( - 85 ) * + CAST ( + 84 AS INTEGER ) + + - 22 AS col2
----
-22

query I rowsort
SELECT - 26 * 73 AS col0
----
-1898

onlyif mysql # aggregate syntax: 
query I rowsort label-9507
SELECT 19 * + MIN( DISTINCT 22 ) + 45 + 8 * - 64 * 48 AS col2
----
-24113

skipif mysql # not compatible
query I rowsort label-9507
SELECT 19 * + MIN ( DISTINCT 22 ) + 45 + 8 * - 64 * 48 AS col2
----
-24113

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9508
SELECT DISTINCT COUNT( * ) * + 42 - - 98 + 22 DIV CASE - SUM( ALL 51 ) WHEN + COUNT( * ) THEN NULL ELSE - COALESCE ( + + COALESCE ( 69, - 34 + ( - 55 ) + + 53 ), - 88 DIV - 34, 67 ) END + 51 * - 93 AS col0
----
-4603

skipif mysql # not compatible
query I rowsort label-9508
SELECT DISTINCT COUNT ( * ) * + 42 - - 98 + 22 / CASE - SUM ( ALL 51 ) WHEN + COUNT ( * ) THEN NULL ELSE - COALESCE ( + + COALESCE ( 69, - 34 + ( - 55 ) + + 53 ), - 88 / - 34, 67 ) END + 51 * - 93 AS col0
----
-4603

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9509
SELECT + 20 + + ( + COUNT( 60 ) ) + + CAST( COUNT( * ) AS SIGNED ), - ( + + 96 ) AS col2
----
22
-96

skipif mysql # not compatible
query II rowsort label-9509
SELECT + 20 + + ( + COUNT ( 60 ) ) + + CAST ( COUNT ( * ) AS INTEGER ), - ( + + 96 ) AS col2
----
22
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9510
SELECT + 96 + - 82 + + COUNT( * ) AS col0, 53 + + + 39 + - NULLIF ( + 51, - COALESCE ( 87, + 3 * + + 14 + 19 ) ) + + CAST( NULL AS SIGNED ) + - - 43 * + - 85 + + 23
----
15
NULL

skipif mysql # not compatible
query II rowsort label-9510
SELECT + 96 + - 82 + + COUNT ( * ) AS col0, 53 + + + 39 + - NULLIF ( + 51, - COALESCE ( 87, + 3 * + + 14 + 19 ) ) + + CAST ( NULL AS INTEGER ) + - - 43 * + - 85 + + 23
----
15
NULL

query II rowsort
SELECT + - 48 AS col1, 97
----
-48
97

query II rowsort
SELECT ALL + - 57 AS col0, 21 AS col1
----
-57
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9513
SELECT + ( - - CAST( ( + - 91 ) AS SIGNED ) ) * CAST( + + ( - CAST( - 74 AS SIGNED ) ) AS SIGNED ) * 73 * + COUNT( * ) + CAST( 63 AS SIGNED ) + + - CASE + 83 WHEN + + 76 THEN COUNT( * ) WHEN 71 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9513
SELECT + ( - - CAST ( ( + - 91 ) AS INTEGER ) ) * CAST ( + + ( - CAST ( - 74 AS INTEGER ) ) AS INTEGER ) * 73 * + COUNT ( * ) + CAST ( 63 AS INTEGER ) + + - CASE + 83 WHEN + + 76 THEN COUNT ( * ) WHEN 71 THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9514
SELECT + 8 * - + 37 * 80 + + CASE + 84 WHEN - - 72 - + 10 * - + 43 THEN NULL ELSE + + 27 END + - 6 * - COALESCE ( - 82, + + COUNT( * ) )
----
-24145

skipif mysql # not compatible
query I rowsort label-9514
SELECT + 8 * - + 37 * 80 + + CASE + 84 WHEN - - 72 - + 10 * - + 43 THEN NULL ELSE + + 27 END + - 6 * - COALESCE ( - 82, + + COUNT ( * ) )
----
-24145

query I rowsort
SELECT ALL + + 1 * - 15 * - + CASE - 69 WHEN 10 THEN NULL WHEN + 33 * + 52 THEN NULL ELSE - 33 * - 56 END - - - 29 * + - 43
----
28967

query I rowsort
SELECT ALL 84 * 86 AS col1
----
7224

query I rowsort
SELECT + + 30 + - 0 - - ( - 40 ) + + 20 * 26 - + 20 AS col1
----
490

onlyif mysql # aggregate syntax: 
query I rowsort label-9518
SELECT + + COUNT( * ) * + 80 + - 14 + + 56 * 60 AS col2
----
3426

skipif mysql # not compatible
query I rowsort label-9518
SELECT + + COUNT ( * ) * + 80 + - 14 + + 56 * 60 AS col2
----
3426

query I rowsort
SELECT + - 55 + - 73 AS col1
----
-128

query I rowsort
SELECT DISTINCT 42 * + 37
----
1554

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9521
SELECT - 76 col0, + CAST( NULL AS DECIMAL )
----
-76
NULL

skipif mysql # not compatible
query II rowsort label-9521
SELECT - 76 col0, + CAST ( NULL AS REAL )
----
-76
NULL

query I rowsort
SELECT DISTINCT - 47 * - - 16
----
-752

onlyif mysql # aggregate syntax: 
query I rowsort label-9523
SELECT + COUNT( * ) * - COUNT( * ) * + ( MIN( 49 ) )
----
-49

skipif mysql # not compatible
query I rowsort label-9523
SELECT + COUNT ( * ) * - COUNT ( * ) * + ( MIN ( 49 ) )
----
-49

query I rowsort
SELECT ALL + 63 * - 63 + + 66
----
-3903

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9525
SELECT - + COALESCE ( - 22, - + 88 + - 29 DIV + COUNT( * ) DIV - 59 DIV + 51 * - ( 92 ) * + - COUNT( * ), 91 + + 58 * + COUNT( * ) ) AS col2
----
22

skipif mysql # not compatible
query I rowsort label-9525
SELECT - + COALESCE ( - 22, - + 88 + - 29 / + COUNT ( * ) / - 59 / + 51 * - ( 92 ) * + - COUNT ( * ), 91 + + 58 * + COUNT ( * ) ) AS col2
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9526
SELECT DISTINCT ( - ( CAST( NULL AS SIGNED ) ) ) / + - COUNT( * ) + - 82 + 38
----
NULL

skipif mysql # not compatible
query I rowsort label-9526
SELECT DISTINCT ( - ( CAST ( NULL AS INTEGER ) ) ) / + - COUNT ( * ) + - 82 + 38
----
NULL

query I rowsort
SELECT 66 * + 89 * + 18 col2
----
105732

query I rowsort
SELECT DISTINCT - - 19 + - 95
----
-76

query I rowsort
SELECT ALL + 31 + + 30 + - - 62 * 57 * 7 AS col0
----
24799

query I rowsort
SELECT 80 - 77 - - 75 AS col2
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9531
SELECT DISTINCT 81 + - 36 + NULLIF ( + + ( COUNT( * ) ), MAX( DISTINCT + 63 ) ) + - 38 + 4 * - + 26
----
-96

skipif mysql # not compatible
query I rowsort label-9531
SELECT DISTINCT 81 + - 36 + NULLIF ( + + ( COUNT ( * ) ), MAX ( DISTINCT + 63 ) ) + - 38 + 4 * - + 26
----
-96

query I rowsort
SELECT 89 * - + 98 AS col2
----
-8722

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9533
SELECT DISTINCT 16 + + 83 * - COALESCE ( + 73, - ( - 60 ) * - + 89 + + COUNT( * ) * + - 96 * - ( + 29 ) * + - CAST( NULL AS SIGNED ) ) AS col2
----
-6043

skipif mysql # not compatible
query I rowsort label-9533
SELECT DISTINCT 16 + + 83 * - COALESCE ( + 73, - ( - 60 ) * - + 89 + + COUNT ( * ) * + - 96 * - ( + 29 ) * + - CAST ( NULL AS INTEGER ) ) AS col2
----
-6043

onlyif mysql # aggregate syntax: 
query I rowsort label-9534
SELECT ( 36 ) + - COUNT( * )
----
35

skipif mysql # not compatible
query I rowsort label-9534
SELECT ( 36 ) + - COUNT ( * )
----
35

query I rowsort
SELECT 14 * + 48 * 56
----
37632

query I rowsort
SELECT 89 + - - 88
----
177

query I rowsort
SELECT 24 * + 16
----
384

query I rowsort
SELECT DISTINCT - CASE 62 WHEN + COALESCE ( - 13, + 92 ) THEN - 66 END
----
NULL

query I rowsort
SELECT 23 + + 25 * - - 86
----
2173

onlyif mysql # aggregate syntax: 
query I rowsort label-9540
SELECT ALL - ( - SUM( DISTINCT - + 17 ) ) AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-9540
SELECT ALL - ( - SUM ( DISTINCT - + 17 ) ) AS col1
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9541
SELECT 39 * + CAST( COALESCE ( - 84, + CAST( NULL AS SIGNED ) + - + 19, - 56 + 96 ) AS SIGNED ) AS col2
----
-3276

skipif mysql # not compatible
query I rowsort label-9541
SELECT 39 * + CAST ( COALESCE ( - 84, + CAST ( NULL AS INTEGER ) + - + 19, - 56 + 96 ) AS INTEGER ) AS col2
----
-3276

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9542
SELECT DISTINCT - CAST( 35 AS SIGNED )
----
-35

skipif mysql # not compatible
query I rowsort label-9542
SELECT DISTINCT - CAST ( 35 AS INTEGER )
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-9543
SELECT + + MAX( + 76 )
----
76

skipif mysql # not compatible
query I rowsort label-9543
SELECT + + MAX ( + 76 )
----
76

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9544
SELECT + CAST( NULL AS DECIMAL ) * + - 61 - + 31 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9544
SELECT + CAST ( NULL AS REAL ) * + - 61 - + 31 col0
----
NULL

query I rowsort
SELECT ALL + + CASE - 50 WHEN - - 77 THEN + 39 ELSE NULL END * 84 * + 2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9546
SELECT + 8 * + + COUNT( * ) * + 24 * - 24
----
-4608

skipif mysql # not compatible
query I rowsort label-9546
SELECT + 8 * + + COUNT ( * ) * + 24 * - 24
----
-4608

query I rowsort
SELECT - 47 - - 46
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9548
SELECT 73 - ( 92 ) * + CAST( ( - + 51 ) AS SIGNED ) AS col2
----
4765

skipif mysql # not compatible
query I rowsort label-9548
SELECT 73 - ( 92 ) * + CAST ( ( - + 51 ) AS INTEGER ) AS col2
----
4765

query I rowsort
SELECT - 74 * + CASE + 32 WHEN + 9 + 84 - 78 THEN NULL ELSE + 61 END
----
-4514

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9550
SELECT ALL + 87 DIV + - COUNT( * ) + 60 AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-9550
SELECT ALL + 87 / + - COUNT ( * ) + 60 AS col2
----
-27

query I rowsort
SELECT ALL - - 93 + - + 3 AS col2
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9552
SELECT 11 DIV 34 AS col2, COUNT( NULLIF ( + 4, - CAST( NULL AS SIGNED ) ) )
----
0
1

skipif mysql # not compatible
query II rowsort label-9552
SELECT 11 / 34 AS col2, COUNT ( NULLIF ( + 4, - CAST ( NULL AS INTEGER ) ) )
----
0
1

query I rowsort
SELECT ( - - 15 ) - - - COALESCE ( + 63, - 15 * + 53 + + - 52 )
----
-48

onlyif mysql # DIV for integer division: 
query II rowsort label-9554
SELECT ALL + ( 23 ) DIV 92 * + - 75 AS col1, - 15 * ( - 47 ) DIV + 70 + 70 * 78 * - - 21 + - - 76 DIV + 85
----
0
114670

skipif mysql # not compatible
query II rowsort label-9554
SELECT ALL + ( 23 ) / 92 * + - 75 AS col1, - 15 * ( - 47 ) / + 70 + 70 * 78 * - - 21 + - - 76 / + 85
----
0
114670

query I rowsort
SELECT 63 * - 61 + + + 17 + - 76
----
-3902

query I rowsort
SELECT ALL NULLIF ( + 73, + - 85 ) AS col2
----
73

query I rowsort
SELECT 80 * - 61 * - + 72
----
351360

query I rowsort
SELECT ALL 21 + 90 col1
----
111

query I rowsort
SELECT - 91 + + 92 - + + 4
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9560
SELECT ALL - - NULLIF ( 58, 54 ) * NULLIF ( - 63, + - 94 + - + 82 * - - 90 - 87 * + MIN( DISTINCT - 25 ) * - 4 + - COALESCE ( - + 70, - 75 ) - - - 25 )
----
-3654

skipif mysql # not compatible
query I rowsort label-9560
SELECT ALL - - NULLIF ( 58, 54 ) * NULLIF ( - 63, + - 94 + - + 82 * - - 90 - 87 * + MIN ( DISTINCT - 25 ) * - 4 + - COALESCE ( - + 70, - 75 ) - - - 25 )
----
-3654

onlyif mysql # aggregate syntax: 
query I rowsort label-9561
SELECT SUM( - 80 ) + + + COUNT( * )
----
-79

skipif mysql # not compatible
query I rowsort label-9561
SELECT SUM ( - 80 ) + + + COUNT ( * )
----
-79

query I rowsort
SELECT ALL 75 + - + 46 * 90 * - + 46
----
190515

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9563
SELECT DISTINCT CASE + 75 WHEN - - COUNT( * ) THEN - - 65 - - CAST( + 75 AS SIGNED ) + COUNT( * ) * - 84 * - 5 + + ( + 56 ) - MIN( ALL - 2 ) DIV + 3 WHEN + 23 * + 87 THEN + 90 + ( COUNT( * ) ) ELSE + 18 DIV - + 53 + - 40 + - + 66 + - 1 DIV - 52 * - 95 + 12 + - + 23 + 63 + - + 67 * - + COUNT( * ) END DIV 36 * + 48
----
0

skipif mysql # not compatible
query I rowsort label-9563
SELECT DISTINCT CASE + 75 WHEN - - COUNT ( * ) THEN - - 65 - - CAST ( + 75 AS INTEGER ) + COUNT ( * ) * - 84 * - 5 + + ( + 56 ) - MIN ( ALL - 2 ) / + 3 WHEN + 23 * + 87 THEN + 90 + ( COUNT ( * ) ) ELSE + 18 / - + 53 + - 40 + - + 66 + - 1 / - 52 * - 95 + 12 + - + 23 + 63 + - + 67 * - + COUNT ( * ) END / 36 * + 48
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9564
SELECT ALL + CAST( NULL AS SIGNED ) * NULLIF ( + 70, + CAST( NULL AS SIGNED ) ) * - + SUM( ALL + 54 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9564
SELECT ALL + CAST ( NULL AS INTEGER ) * NULLIF ( + 70, + CAST ( NULL AS INTEGER ) ) * - + SUM ( ALL + 54 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9565
SELECT ALL - 94 AS col2, - CASE 5 WHEN 57 + 53 + - 71 * - COUNT( * ) THEN NULL WHEN + COUNT( * ) * 94 THEN 5 ELSE + 73 * - - COUNT( * ) END
----
-94
-73

skipif mysql # not compatible
query II rowsort label-9565
SELECT ALL - 94 AS col2, - CASE 5 WHEN 57 + 53 + - 71 * - COUNT ( * ) THEN NULL WHEN + COUNT ( * ) * 94 THEN 5 ELSE + 73 * - - COUNT ( * ) END
----
-94
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9566
SELECT DISTINCT - CASE + ( + 96 ) WHEN + 99 THEN NULL WHEN 39 + - MAX( ALL + 66 ) + + COUNT( * ) * + AVG ( + - 21 ) * + - 30 + + 41 / - + ( 49 ) + COUNT( * ) * 1 * 79 / COALESCE ( - + 93, - ( + 29 ) * + 23 + - 19 + 72 + - CAST( NULL AS SIGNED ) / 25 + - NULLIF ( - 7, + 81 ) - + + 77 - + + 64 + + 10 / COALESCE ( - 66, - - 51, + + 71 ) * + 0 ) + - - NULLIF ( - + 88, ( + COUNT( * ) ) * + - 11 + + 97 - 68 / 36 / - 80 * + 38 * + 75 + - 59 * ( + MIN( ALL + 85 ) ) ) * 3 * - CASE 78 WHEN 9 THEN 96 * - COUNT( * ) + COUNT( * ) ELSE NULL END THEN + MIN( ( 56 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9566
SELECT DISTINCT - CASE + ( + 96 ) WHEN + 99 THEN NULL WHEN 39 + - MAX ( ALL + 66 ) + + COUNT ( * ) * + AVG ( + - 21 ) * + - 30 + + 41 / - + ( 49 ) + COUNT ( * ) * 1 * 79 / COALESCE ( - + 93, - ( + 29 ) * + 23 + - 19 + 72 + - CAST ( NULL AS INTEGER ) / 25 + - NULLIF ( - 7, + 81 ) - + + 77 - + + 64 + + 10 / COALESCE ( - 66, - - 51, + + 71 ) * + 0 ) + - - NULLIF ( - + 88, ( + COUNT ( * ) ) * + - 11 + + 97 - 68 / 36 / - 80 * + 38 * + 75 + - 59 * ( + MIN ( ALL + 85 ) ) ) * 3 * - CASE 78 WHEN 9 THEN 96 * - COUNT ( * ) + COUNT ( * ) ELSE NULL END THEN + MIN ( ( 56 ) ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9567
SELECT ALL ( 24 ) * CASE 81 WHEN 69 + - 13 THEN NULL ELSE - 25 * + - 52 + - + SUM( - NULLIF ( 88, + 78 ) ) END
----
33312

skipif mysql # not compatible
query I rowsort label-9567
SELECT ALL ( 24 ) * CASE 81 WHEN 69 + - 13 THEN NULL ELSE - 25 * + - 52 + - + SUM ( - NULLIF ( 88, + 78 ) ) END
----
33312

query I rowsort
SELECT 49 * + 90
----
4410

onlyif mysql # aggregate syntax: 
query I rowsort label-9569
SELECT DISTINCT - COUNT( - 11 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9569
SELECT DISTINCT - COUNT ( - 11 ) AS col2
----
-1

query I rowsort
SELECT 74 * 15 AS col1
----
1110

query I rowsort
SELECT DISTINCT - NULLIF ( - 27, + 60 + - 14 )
----
27

query I rowsort
SELECT DISTINCT + 82 * 3 + - 57 AS col2
----
189

query I rowsort
SELECT ALL + 2 * - 58 AS col0
----
-116

onlyif mysql # aggregate syntax: 
query I rowsort label-9574
SELECT 64 + MAX( 47 + - 62 ) * - 92
----
1444

skipif mysql # not compatible
query I rowsort label-9574
SELECT 64 + MAX ( 47 + - 62 ) * - 92
----
1444

onlyif mysql # aggregate syntax: 
query I rowsort label-9575
SELECT ( - 5 ) * - 10 + COUNT( * ) AS col0
----
51

skipif mysql # not compatible
query I rowsort label-9575
SELECT ( - 5 ) * - 10 + COUNT ( * ) AS col0
----
51

query I rowsort
SELECT ALL + 3 + + 74 * + 55
----
4073

onlyif mysql # aggregate syntax: 
query I rowsort label-9577
SELECT - COUNT( * ) * - 39 col0
----
39

skipif mysql # not compatible
query I rowsort label-9577
SELECT - COUNT ( * ) * - 39 col0
----
39

query I rowsort
SELECT ALL - 30 + 65 AS col2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-9579
SELECT ALL + 3 * COUNT( * )
----
3

skipif mysql # not compatible
query I rowsort label-9579
SELECT ALL + 3 * COUNT ( * )
----
3

query I rowsort
SELECT - ( - 90 ) * + 41 AS col2
----
3690

query I rowsort
SELECT DISTINCT + 85 + 36 AS col0
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-9582
SELECT ALL - 31 + MAX( ALL 82 ) * COALESCE ( + COUNT( NULLIF ( ( 62 ), - 40 + 25 ) ) + - 31, + 92 * 21 ) col2
----
-2491

skipif mysql # not compatible
query I rowsort label-9582
SELECT ALL - 31 + MAX ( ALL 82 ) * COALESCE ( + COUNT ( NULLIF ( ( 62 ), - 40 + 25 ) ) + - 31, + 92 * 21 ) col2
----
-2491

onlyif mysql # DIV for integer division: 
query I rowsort label-9583
SELECT ALL ( 47 ) DIV 87
----
0

skipif mysql # not compatible
query I rowsort label-9583
SELECT ALL ( 47 ) / 87
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9584
SELECT DISTINCT COUNT( * ) + 24
----
25

skipif mysql # not compatible
query I rowsort label-9584
SELECT DISTINCT COUNT ( * ) + 24
----
25

query I rowsort
SELECT DISTINCT NULLIF ( - 15, ( 12 ) )
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-9586
SELECT ALL - 41 DIV - ( + 42 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9586
SELECT ALL - 41 / - ( + 42 ) AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9587
SELECT + 40 DIV - 38
----
-1

skipif mysql # not compatible
query I rowsort label-9587
SELECT + 40 / - 38
----
-1

query I rowsort
SELECT - 51 * - 77 col1
----
3927

query I rowsort
SELECT - NULLIF ( ( - 26 ), - 52 ) AS col1
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9590
SELECT ALL COALESCE ( - 29, - COUNT( * ) ) - 81 * - MAX( + CAST( - 50 AS SIGNED ) ) AS col0
----
-4079

skipif mysql # not compatible
query I rowsort label-9590
SELECT ALL COALESCE ( - 29, - COUNT ( * ) ) - 81 * - MAX ( + CAST ( - 50 AS INTEGER ) ) AS col0
----
-4079

query I rowsort
SELECT - 27 * 85 AS col2
----
-2295

query I rowsort
SELECT ALL NULLIF ( + 64, ( - 15 ) * + 61 )
----
64

query I rowsort
SELECT + 4 - 75 * 1 AS col1
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-9594
SELECT DISTINCT + MAX( DISTINCT + 33 ) * 94 AS col1
----
3102

skipif mysql # not compatible
query I rowsort label-9594
SELECT DISTINCT + MAX ( DISTINCT + 33 ) * 94 AS col1
----
3102

query I rowsort
SELECT + 97 * + 27 col0
----
2619

query I rowsort
SELECT DISTINCT ( 67 ) * + 79 AS col2
----
5293

onlyif mysql # aggregate syntax: 
query I rowsort label-9597
SELECT + 44 + NULLIF ( COUNT( * ), 97 )
----
45

skipif mysql # not compatible
query I rowsort label-9597
SELECT + 44 + NULLIF ( COUNT ( * ), 97 )
----
45

query I rowsort
SELECT + 26 - - 26 AS col2
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9599
SELECT MIN( - 42 ) / 46 + CASE COUNT( * ) WHEN - 92 * - COUNT( - 76 * - 64 ) THEN + 49 * - 45 END * 57 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9599
SELECT MIN ( - 42 ) / 46 + CASE COUNT ( * ) WHEN - 92 * - COUNT ( - 76 * - 64 ) THEN + 49 * - 45 END * 57 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9600
SELECT ( MIN( COALESCE ( 66, 7 / 98 ) ) ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-9600
SELECT ( MIN ( COALESCE ( 66, 7 / 98 ) ) ) AS col1
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-9601
SELECT ALL 8 DIV 36 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9601
SELECT ALL 8 / 36 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9602
SELECT DISTINCT + + COUNT( * ) * 8 + 28 AS col0
----
36

skipif mysql # not compatible
query I rowsort label-9602
SELECT DISTINCT + + COUNT ( * ) * 8 + 28 AS col0
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-9603
SELECT - 34 DIV ( - 44 ) + - 8
----
-8

skipif mysql # not compatible
query I rowsort label-9603
SELECT - 34 / ( - 44 ) + - 8
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-9604
SELECT DISTINCT + 52 * 70 + COUNT( * )
----
3641

skipif mysql # not compatible
query I rowsort label-9604
SELECT DISTINCT + 52 * 70 + COUNT ( * )
----
3641

onlyif mysql # aggregate syntax: 
query I rowsort label-9605
SELECT ALL - 16 * - 73 + + COUNT( * ) AS col1
----
1169

skipif mysql # not compatible
query I rowsort label-9605
SELECT ALL - 16 * - 73 + + COUNT ( * ) AS col1
----
1169

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9606
SELECT + + 82 DIV COUNT( DISTINCT + 91 )
----
82

skipif mysql # not compatible
query I rowsort label-9606
SELECT + + 82 / COUNT ( DISTINCT + 91 )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9607
SELECT ALL + 51 * 74 + COUNT( * ) AS col0
----
3775

skipif mysql # not compatible
query I rowsort label-9607
SELECT ALL + 51 * 74 + COUNT ( * ) AS col0
----
3775

onlyif mysql # aggregate syntax: 
query I rowsort label-9608
SELECT DISTINCT COUNT( * ) * + 48
----
48

skipif mysql # not compatible
query I rowsort label-9608
SELECT DISTINCT COUNT ( * ) * + 48
----
48

query I rowsort
SELECT - 17 * 27 + 17
----
-442

onlyif mysql # DIV for integer division: 
query I rowsort label-9610
SELECT + 23 DIV 43
----
0

skipif mysql # not compatible
query I rowsort label-9610
SELECT + 23 / 43
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9611
SELECT - 93 DIV 32 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-9611
SELECT - 93 / 32 AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9612
SELECT - MAX( - 87 )
----
87

skipif mysql # not compatible
query I rowsort label-9612
SELECT - MAX ( - 87 )
----
87

query I rowsort
SELECT - + 41 * 91
----
-3731

query I rowsort
SELECT ALL 25 * 58 + 52 AS col0
----
1502

query I rowsort
SELECT + - 30 - 33
----
-63

query I rowsort
SELECT DISTINCT 84 * ( 91 ) + 61
----
7705

onlyif mysql # aggregate syntax: 
query I rowsort label-9617
SELECT - - MIN( - 19 ) * COUNT( * ) AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-9617
SELECT - - MIN ( - 19 ) * COUNT ( * ) AS col1
----
-19

query I rowsort
SELECT ALL - 86 * 39 - 76
----
-3430

query I rowsort
SELECT + ( 44 ) AS col2
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-9620
SELECT ALL + COUNT( * ) * + 61 - 36
----
25

skipif mysql # not compatible
query I rowsort label-9620
SELECT ALL + COUNT ( * ) * + 61 - 36
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9621
SELECT + 39 + CAST( 72 AS SIGNED ) AS col2
----
111

skipif mysql # not compatible
query I rowsort label-9621
SELECT + 39 + CAST ( 72 AS INTEGER ) AS col2
----
111

query I rowsort
SELECT - 64 - + 45 AS col0
----
-109

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9623
SELECT + 33 * + + CAST( NULL AS DECIMAL ) + - 26 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9623
SELECT + 33 * + + CAST ( NULL AS REAL ) + - 26 col1
----
NULL

query I rowsort
SELECT - 40 - - - 71
----
-111

query I rowsort
SELECT ALL - 36 * - 6 * - 73
----
-15768

query I rowsort
SELECT DISTINCT - 55 * 56 AS col0
----
-3080

onlyif mysql # aggregate syntax: 
query I rowsort label-9627
SELECT DISTINCT ( + COUNT( * ) ) col1
----
1

skipif mysql # not compatible
query I rowsort label-9627
SELECT DISTINCT ( + COUNT ( * ) ) col1
----
1

query I rowsort
SELECT DISTINCT ( - + 68 ) AS col1
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9629
SELECT ALL CAST( + - 97 AS SIGNED )
----
-97

skipif mysql # not compatible
query I rowsort label-9629
SELECT ALL CAST ( + - 97 AS INTEGER )
----
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-9630
SELECT - 62 DIV + - 41 col1
----
1

skipif mysql # not compatible
query I rowsort label-9630
SELECT - 62 / + - 41 col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9631
SELECT DISTINCT - ( ( NULLIF ( - 86, SUM( 78 ) ) ) ) * - COUNT( + NULLIF ( 0, ( 69 ) ) )
----
-86

skipif mysql # not compatible
query I rowsort label-9631
SELECT DISTINCT - ( ( NULLIF ( - 86, SUM ( 78 ) ) ) ) * - COUNT ( + NULLIF ( 0, ( 69 ) ) )
----
-86

query I rowsort
SELECT - 38 * + 42
----
-1596

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9633
SELECT + COALESCE ( - COUNT( * ), + SUM( ALL - 64 ) ) * MIN( + ( CAST( NULL AS SIGNED ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9633
SELECT + COALESCE ( - COUNT ( * ), + SUM ( ALL - 64 ) ) * MIN ( + ( CAST ( NULL AS INTEGER ) ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9634
SELECT + 2 + + + CASE COALESCE ( COALESCE ( MAX( - 67 ), - 46 + + 58 ), COUNT( * ) * - 61, + 56 / - 84, - 67 ) WHEN 69 - + 69 THEN - 25 WHEN + COUNT( * ) THEN NULL ELSE NULL END + NULLIF ( 45 + + 57, CASE + 9 WHEN 26 THEN NULL WHEN 37 + - 14 THEN + COUNT( * ) + - ( + 4 ) / 49 ELSE NULL END * COALESCE ( 46, + 36 ) + 98 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9634
SELECT + 2 + + + CASE COALESCE ( COALESCE ( MAX ( - 67 ), - 46 + + 58 ), COUNT ( * ) * - 61, + 56 / - 84, - 67 ) WHEN 69 - + 69 THEN - 25 WHEN + COUNT ( * ) THEN NULL ELSE NULL END + NULLIF ( 45 + + 57, CASE + 9 WHEN 26 THEN NULL WHEN 37 + - 14 THEN + COUNT ( * ) + - ( + 4 ) / 49 ELSE NULL END * COALESCE ( 46, + 36 ) + 98 ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT 67 * 60 AS col1
----
4020

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9636
SELECT DISTINCT - MAX( ALL + 17 ) + - NULLIF ( 16, - 47 DIV - 11 - + 79 ) DIV 51
----
-17

skipif mysql # not compatible
query I rowsort label-9636
SELECT DISTINCT - MAX ( ALL + 17 ) + - NULLIF ( 16, - 47 / - 11 - + 79 ) / 51
----
-17

query I rowsort
SELECT ALL 2 * + NULLIF ( + 78, 84 ) * - 26
----
-4056

query I rowsort
SELECT ALL + ( - 48 ) + 17 AS col0
----
-31

query I rowsort
SELECT ALL + 22 + ( + 72 )
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9640
SELECT DISTINCT - 64 * 57 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9640
SELECT DISTINCT - 64 * 57 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9641
SELECT + 94 + + MIN( DISTINCT + 39 )
----
133

skipif mysql # not compatible
query I rowsort label-9641
SELECT + 94 + + MIN ( DISTINCT + 39 )
----
133

query I rowsort
SELECT DISTINCT 42 + 42 * 87 AS col2
----
3696

query I rowsort
SELECT ALL + 39 + + ( 41 ) * - 24 AS col0
----
-945

query I rowsort
SELECT - 77 * + 73 + - 91 * + ( - 69 )
----
658

onlyif mysql # aggregate syntax: 
query I rowsort label-9645
SELECT - CASE + MIN( DISTINCT - 8 ) WHEN - 44 / 53 THEN NULL ELSE 75 + MAX( 20 + 76 ) END
----
-171

skipif mysql # not compatible
query I rowsort label-9645
SELECT - CASE + MIN ( DISTINCT - 8 ) WHEN - 44 / 53 THEN NULL ELSE 75 + MAX ( 20 + 76 ) END
----
-171

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9646
SELECT ALL - CAST( - MIN( DISTINCT 65 ) AS SIGNED ) AS col0
----
65

skipif mysql # not compatible
query I rowsort label-9646
SELECT ALL - CAST ( - MIN ( DISTINCT 65 ) AS INTEGER ) AS col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-9647
SELECT ALL 13 - + 80 * COUNT( * ) AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-9647
SELECT ALL 13 - + 80 * COUNT ( * ) AS col2
----
-67

query I rowsort
SELECT 19 + 38 AS col1
----
57

query I rowsort
SELECT ALL NULLIF ( 89, 35 ) - 21 AS col2
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9650
SELECT ALL - CAST( + + 77 AS SIGNED ) AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-9650
SELECT ALL - CAST ( + + 77 AS INTEGER ) AS col2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9651
SELECT DISTINCT - SUM( DISTINCT + 70 ) * 46 AS col0
----
-3220

skipif mysql # not compatible
query I rowsort label-9651
SELECT DISTINCT - SUM ( DISTINCT + 70 ) * 46 AS col0
----
-3220

query I rowsort
SELECT ALL + 24 - + + 23 * + 93 AS col2
----
-2115

query I rowsort
SELECT 68 * + 11 AS col0
----
748

query I rowsort
SELECT - 84 * - 3
----
252

onlyif mysql # aggregate syntax: 
query I rowsort label-9655
SELECT ALL MIN( 67 ) * + 55
----
3685

skipif mysql # not compatible
query I rowsort label-9655
SELECT ALL MIN ( 67 ) * + 55
----
3685

query I rowsort
SELECT DISTINCT ( - - 4 ) * + 0
----
0

query I rowsort
SELECT ALL ( + 93 ) - + 30 AS col2
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9658
SELECT CAST( + 18 AS SIGNED ) * + 48 + 32
----
896

skipif mysql # not compatible
query I rowsort label-9658
SELECT CAST ( + 18 AS INTEGER ) * + 48 + 32
----
896

query I rowsort
SELECT 34 + + - 53
----
-19

query II rowsort
SELECT DISTINCT - 72 AS col0, 68
----
-72
68

query II rowsort
SELECT DISTINCT 65 AS col1, 95 AS col0
----
65
95

query I rowsort
SELECT ALL - 5 * 11 AS col0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-9663
SELECT ALL + MIN( - 47 ) + - - 54 + 80
----
87

skipif mysql # not compatible
query I rowsort label-9663
SELECT ALL + MIN ( - 47 ) + - - 54 + 80
----
87

query I rowsort
SELECT ( + 51 ) - - 40 AS col1
----
91

query I rowsort
SELECT 23 * - 27 * - 37 AS col0
----
22977

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9666
SELECT ALL - COUNT( * ) * - + 75 * + CASE 25 WHEN 12 THEN 27 + 79 WHEN + CAST( NULL AS DECIMAL ) THEN NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9666
SELECT ALL - COUNT ( * ) * - + 75 * + CASE 25 WHEN 12 THEN 27 + 79 WHEN + CAST ( NULL AS REAL ) THEN NULL END col2
----
NULL

query I rowsort
SELECT 65 * 94
----
6110

query II rowsort
SELECT 40 AS col2, + 11 * ( 42 ) AS col0
----
40
462

onlyif mysql # aggregate syntax: 
query II rowsort label-9669
SELECT DISTINCT 34, + 21 * - COUNT( * ) AS col1
----
34
-21

skipif mysql # not compatible
query II rowsort label-9669
SELECT DISTINCT 34, + 21 * - COUNT ( * ) AS col1
----
34
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9670
SELECT ALL - CAST( NULL AS SIGNED ) * 43 * 92 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9670
SELECT ALL - CAST ( NULL AS INTEGER ) * 43 * 92 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9671
SELECT 55 DIV 31 * - + 26
----
-26

skipif mysql # not compatible
query I rowsort label-9671
SELECT 55 / 31 * - + 26
----
-26

query I rowsort
SELECT DISTINCT - 61 + 41 * + 3
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9673
SELECT ALL + CAST( NULL AS SIGNED ) + + NULLIF ( - COUNT( + 12 ), + 1 ) + - 26
----
NULL

skipif mysql # not compatible
query I rowsort label-9673
SELECT ALL + CAST ( NULL AS INTEGER ) + + NULLIF ( - COUNT ( + 12 ), + 1 ) + - 26
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9674
SELECT ALL + NULLIF ( - 11, + - COALESCE ( 61, + 85, - COUNT( * ) + 19 * 38 ) * CAST( NULL AS SIGNED ) )
----
-11

skipif mysql # not compatible
query I rowsort label-9674
SELECT ALL + NULLIF ( - 11, + - COALESCE ( 61, + 85, - COUNT ( * ) + 19 * 38 ) * CAST ( NULL AS INTEGER ) )
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9675
SELECT ( + + CAST( NULL AS SIGNED ) ) / + + 9 - 73 * CAST( 67 * + MAX( DISTINCT 34 ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9675
SELECT ( + + CAST ( NULL AS INTEGER ) ) / + + 9 - 73 * CAST ( 67 * + MAX ( DISTINCT 34 ) AS INTEGER )
----
NULL

query II rowsort
SELECT - 7, + 0 col2
----
-7
0

query I rowsort
SELECT - ( - 70 ) col0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9678
SELECT 63 + - + COUNT( * ) * - + 22 AS col2
----
85

skipif mysql # not compatible
query I rowsort label-9678
SELECT 63 + - + COUNT ( * ) * - + 22 AS col2
----
85

query I rowsort
SELECT DISTINCT - - 33 + 50 + 12
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-9680
SELECT ALL + - 71 * - + COUNT( * ) * - MAX( - 98 )
----
6958

skipif mysql # not compatible
query I rowsort label-9680
SELECT ALL + - 71 * - + COUNT ( * ) * - MAX ( - 98 )
----
6958

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9681
SELECT CAST( + 86 AS SIGNED ) * 82 col1
----
7052

skipif mysql # not compatible
query I rowsort label-9681
SELECT CAST ( + 86 AS INTEGER ) * 82 col1
----
7052

onlyif mysql # aggregate syntax: 
query I rowsort label-9682
SELECT ALL CASE + + MIN( + 92 ) WHEN 43 THEN 97 ELSE - 52 + - 94 END * 77
----
-11242

skipif mysql # not compatible
query I rowsort label-9682
SELECT ALL CASE + + MIN ( + 92 ) WHEN 43 THEN 97 ELSE - 52 + - 94 END * 77
----
-11242

query I rowsort
SELECT DISTINCT - + 42 - + 83 * + COALESCE ( + 47, + 76 ) AS col0
----
-3943

query II rowsort
SELECT ALL - 1, 68 + - 26 + - 18 AS col1
----
-1
24

onlyif mysql # aggregate syntax: 
query II rowsort label-9685
SELECT ALL - 24, COUNT( * ) AS col1
----
-24
1

skipif mysql # not compatible
query II rowsort label-9685
SELECT ALL - 24, COUNT ( * ) AS col1
----
-24
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9686
SELECT + - NULLIF ( + - COUNT( * ), - + 97 ) * - COALESCE ( - 32 * + 74 + 2, 10, + 80 * - 77 - + NULLIF ( - 94, 26 * 15 ) DIV ( 15 - + 27 ) ) + - 85 * - SUM( ALL - 1 * + 50 ) AS col2
----
-1884

skipif mysql # not compatible
query I rowsort label-9686
SELECT + - NULLIF ( + - COUNT ( * ), - + 97 ) * - COALESCE ( - 32 * + 74 + 2, 10, + 80 * - 77 - + NULLIF ( - 94, 26 * 15 ) / ( 15 - + 27 ) ) + - 85 * - SUM ( ALL - 1 * + 50 ) AS col2
----
-1884

onlyif mysql # aggregate syntax: 
query II rowsort label-9687
SELECT DISTINCT - 55, 92 * COUNT( * ) AS col0
----
-55
92

skipif mysql # not compatible
query II rowsort label-9687
SELECT DISTINCT - 55, 92 * COUNT ( * ) AS col0
----
-55
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9688
SELECT - COALESCE ( COUNT( * ), 41 * - CASE + 7 WHEN 94 + - 77 THEN NULL ELSE - 15 END )
----
-1

skipif mysql # not compatible
query I rowsort label-9688
SELECT - COALESCE ( COUNT ( * ), 41 * - CASE + 7 WHEN 94 + - 77 THEN NULL ELSE - 15 END )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9689
SELECT 91 - - - COUNT( * ) AS col0
----
90

skipif mysql # not compatible
query I rowsort label-9689
SELECT 91 - - - COUNT ( * ) AS col0
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9690
SELECT DISTINCT COUNT( * ) DIV - 19
----
0

skipif mysql # not compatible
query I rowsort label-9690
SELECT DISTINCT COUNT ( * ) / - 19
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9691
SELECT + MIN( ALL - CAST( - 78 AS SIGNED ) )
----
78

skipif mysql # not compatible
query I rowsort label-9691
SELECT + MIN ( ALL - CAST ( - 78 AS INTEGER ) )
----
78

query I rowsort
SELECT 43 * 58 * + - 41
----
-102254

query II rowsort
SELECT ALL 39 + - 68 AS col2, - 20
----
-29
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9694
SELECT 49 - + CASE + + 58 WHEN + MAX( ALL - 49 ) + - COALESCE ( + 76 + 57, - 87 * 63 + COUNT( * ) ) THEN + 85 / + SUM( DISTINCT 77 ) WHEN ( NULLIF ( 32, + COALESCE ( - 51, + 20, + CAST( + 16 AS SIGNED ) * - 99 + 85 * 69 ) * ( 25 ) ) ) THEN NULL END * 60
----
NULL

skipif mysql # not compatible
query I rowsort label-9694
SELECT 49 - + CASE + + 58 WHEN + MAX ( ALL - 49 ) + - COALESCE ( + 76 + 57, - 87 * 63 + COUNT ( * ) ) THEN + 85 / + SUM ( DISTINCT 77 ) WHEN ( NULLIF ( 32, + COALESCE ( - 51, + 20, + CAST ( + 16 AS INTEGER ) * - 99 + 85 * 69 ) * ( 25 ) ) ) THEN NULL END * 60
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9695
SELECT ALL 56 * + 69 * + CAST( NULL AS SIGNED ) / - + ( 93 ) * - 45 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9695
SELECT ALL 56 * + 69 * + CAST ( NULL AS INTEGER ) / - + ( 93 ) * - 45 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9696
SELECT - 86 * + 21 + + MIN( CAST( NULL AS SIGNED ) ) / - 0
----
NULL

skipif mysql # not compatible
query I rowsort label-9696
SELECT - 86 * + 21 + + MIN ( CAST ( NULL AS INTEGER ) ) / - 0
----
NULL

query I rowsort
SELECT 59 - + NULLIF ( - 64, + + COALESCE ( 85, 30 ) )
----
123

query I rowsort
SELECT ALL ( - - 75 ) + 82 * - - 71 AS col1
----
5897

onlyif mysql # aggregate syntax: 
query I rowsort label-9699
SELECT - MAX( 57 ) col0
----
-57

skipif mysql # not compatible
query I rowsort label-9699
SELECT - MAX ( 57 ) col0
----
-57

query I rowsort
SELECT 33 * + + 73 * - + 16 * - 33 AS col0
----
1271952

query I rowsort
SELECT 68 * 4 AS col2
----
272

query I rowsort
SELECT ALL + 47 + - 60 AS col1
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9703
SELECT CAST( NULL AS SIGNED ) + - 58 + 37 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9703
SELECT CAST ( NULL AS INTEGER ) + - 58 + 37 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9704
SELECT SUM( + 21 ) + + 83 AS col1
----
104

skipif mysql # not compatible
query I rowsort label-9704
SELECT SUM ( + 21 ) + + 83 AS col1
----
104

query I rowsort
SELECT - ( 70 ) + - 42 + + 66
----
-46

query I rowsort
SELECT ALL 49 + + + 31
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9707
SELECT + 62 + + 39 DIV COUNT( * )
----
101

skipif mysql # not compatible
query I rowsort label-9707
SELECT + 62 + + 39 / COUNT ( * )
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-9708
SELECT + + COUNT( * ) * 50 * - - 19
----
950

skipif mysql # not compatible
query I rowsort label-9708
SELECT + + COUNT ( * ) * 50 * - - 19
----
950

onlyif mysql # aggregate syntax: 
query I rowsort label-9709
SELECT - + 20 + COUNT( * )
----
-19

skipif mysql # not compatible
query I rowsort label-9709
SELECT - + 20 + COUNT ( * )
----
-19

query I rowsort
SELECT - ( 31 ) + + NULLIF ( 36, 76 ) * 98 AS col0
----
3497

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9711
SELECT DISTINCT + 12 - - COUNT( * ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9711
SELECT DISTINCT + 12 - - COUNT ( * ) * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - - 43 + + 6 + - ( + + 92 ) AS col0
----
-43

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9713
SELECT DISTINCT - NULLIF ( - ( - - CAST( NULL AS DECIMAL ) ), + 51 ) - AVG ( + 75 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9713
SELECT DISTINCT - NULLIF ( - ( - - CAST ( NULL AS REAL ) ), + 51 ) - AVG ( + 75 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9714
SELECT DISTINCT CASE COUNT( * ) WHEN - COUNT( * ) THEN COUNT( * ) / - 80 + + COALESCE ( + MAX( DISTINCT 38 ), CAST( + 77 AS SIGNED ) ) END * + 24
----
NULL

skipif mysql # not compatible
query I rowsort label-9714
SELECT DISTINCT CASE COUNT ( * ) WHEN - COUNT ( * ) THEN COUNT ( * ) / - 80 + + COALESCE ( + MAX ( DISTINCT 38 ), CAST ( + 77 AS INTEGER ) ) END * + 24
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9715
SELECT - + MAX( - + 31 ), 32 DIV - + 94 AS col1
----
31
0

skipif mysql # not compatible
query II rowsort label-9715
SELECT - + MAX ( - + 31 ), 32 / - + 94 AS col1
----
31
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9716
SELECT - - 93 * + COUNT( * ) + + MIN( + NULLIF ( CASE + 84 WHEN 99 THEN - 33 WHEN 40 * - 14 THEN NULL END, CASE + NULLIF ( - 47, 84 ) WHEN CAST( - 22 AS SIGNED ) THEN 6 WHEN + NULLIF ( 60, + 3 ) + 10 / + 26 THEN NULL ELSE 67 END ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9716
SELECT - - 93 * + COUNT ( * ) + + MIN ( + NULLIF ( CASE + 84 WHEN 99 THEN - 33 WHEN 40 * - 14 THEN NULL END, CASE + NULLIF ( - 47, 84 ) WHEN CAST ( - 22 AS INTEGER ) THEN 6 WHEN + NULLIF ( 60, + 3 ) + 10 / + 26 THEN NULL ELSE 67 END ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9717
SELECT NULLIF ( - NULLIF ( + 5, 45 ), NULLIF ( - 64, 20 * ( SUM( + 9 ) * CAST( NULL AS SIGNED ) ) ) + 81 ) / CASE 13 + - 18 * 1 WHEN 71 / 81 + 84 THEN COUNT( * ) * COUNT( * ) + - 97 END + 81 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9717
SELECT NULLIF ( - NULLIF ( + 5, 45 ), NULLIF ( - 64, 20 * ( SUM ( + 9 ) * CAST ( NULL AS INTEGER ) ) ) + 81 ) / CASE 13 + - 18 * 1 WHEN 71 / 81 + 84 THEN COUNT ( * ) * COUNT ( * ) + - 97 END + 81 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9718
SELECT - COUNT( * ) * 60 AS col1, COUNT( * )
----
-60
1

skipif mysql # not compatible
query II rowsort label-9718
SELECT - COUNT ( * ) * 60 AS col1, COUNT ( * )
----
-60
1

query I rowsort
SELECT - 75 + + - 36 + + 21 col1
----
-90

query II rowsort
SELECT - 19 * + + 36, 59 AS col0
----
-684
59

query I rowsort
SELECT 41 * + 23 + 69
----
1012

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9722
SELECT - COUNT( * ) DIV + COUNT( * ), + ( + 50 ) AS col1
----
-1
50

skipif mysql # not compatible
query II rowsort label-9722
SELECT - COUNT ( * ) / + COUNT ( * ), + ( + 50 ) AS col1
----
-1
50

onlyif mysql # aggregate syntax: 
query I rowsort label-9723
SELECT ALL + + CASE + 23 WHEN - 76 THEN - 51 + 68 * COUNT( * ) ELSE NULL END * 86
----
NULL

skipif mysql # not compatible
query I rowsort label-9723
SELECT ALL + + CASE + 23 WHEN - 76 THEN - 51 + 68 * COUNT ( * ) ELSE NULL END * 86
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9724
SELECT - 43 / - - 39 + + + 89 + 97 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9724
SELECT - 43 / - - 39 + + + 89 + 97 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + ( - 96 ) AS col2
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9726
SELECT ALL + SUM( ALL + - 32 ) AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-9726
SELECT ALL + SUM ( ALL + - 32 ) AS col0
----
-32

query II rowsort
SELECT DISTINCT - 21 * - - 51 + + + 30 col0, - 26 * - - 29 * - 92
----
-1041
69368

query II rowsort
SELECT ALL + 98 AS col1, 50
----
98
50

query I rowsort
SELECT DISTINCT + 24 * - 34 * - - NULLIF ( - + 1, - - 46 + - 55 )
----
816

onlyif mysql # aggregate syntax: 
query I rowsort label-9730
SELECT + MIN( + 51 )
----
51

skipif mysql # not compatible
query I rowsort label-9730
SELECT + MIN ( + 51 )
----
51

query I rowsort
SELECT - 45 * - - 22 col2
----
-990

query I rowsort
SELECT - 20 * + + 5 * + 78 + + ( - - ( + 72 ) ) col2
----
-7728

query I rowsort
SELECT ALL + ( - ( + 86 ) )
----
-86

query I rowsort
SELECT + 27 + - 24
----
3

query II rowsort
SELECT DISTINCT + 97 AS col1, + 35
----
97
35

onlyif mysql # aggregate syntax: 
query I rowsort label-9736
SELECT + MAX( DISTINCT - 64 )
----
-64

skipif mysql # not compatible
query I rowsort label-9736
SELECT + MAX ( DISTINCT - 64 )
----
-64

query I rowsort
SELECT + NULLIF ( + - ( 83 ), - 98 ) + 8 + 95
----
20

query II rowsort
SELECT DISTINCT + 78 * - 80 + - - 87 AS col1, 35 AS col2
----
-6153
35

query I rowsort
SELECT ALL + ( - 71 ) AS col2
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-9740
SELECT ALL + COUNT( * ) * - 8 * + + 97 * + ( - + 68 ) + 41
----
52809

skipif mysql # not compatible
query I rowsort label-9740
SELECT ALL + COUNT ( * ) * - 8 * + + 97 * + ( - + 68 ) + 41
----
52809

onlyif mysql # aggregate syntax: 
query I rowsort label-9741
SELECT DISTINCT ( + CASE + - 9 WHEN + + ( 75 ) + - COUNT( * ) THEN + COUNT( * ) WHEN ( + 70 ) THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-9741
SELECT DISTINCT ( + CASE + - 9 WHEN + + ( 75 ) + - COUNT ( * ) THEN + COUNT ( * ) WHEN ( + 70 ) THEN NULL END )
----
NULL

query I rowsort
SELECT DISTINCT - 79 * + 63 * + 36 * 58 + - ( + 8 ) + 25 AS col1
----
-10391959

query I rowsort
SELECT ALL 79 * 65
----
5135

onlyif mysql # aggregate syntax: 
query I rowsort label-9744
SELECT COUNT( DISTINCT + - 0 )
----
1

skipif mysql # not compatible
query I rowsort label-9744
SELECT COUNT ( DISTINCT + - 0 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9745
SELECT ALL 49 + + COUNT( * ) col0
----
50

skipif mysql # not compatible
query I rowsort label-9745
SELECT ALL 49 + + COUNT ( * ) col0
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9746
SELECT 80 * + 99 - + 44 + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9746
SELECT 80 * + 99 - + 44 + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9747
SELECT MAX( DISTINCT 27 )
----
27

skipif mysql # not compatible
query I rowsort label-9747
SELECT MAX ( DISTINCT 27 )
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-9748
SELECT + NULLIF ( + COALESCE ( + - 67, ( + 32 ) DIV ( ( - NULLIF ( 28, ( - 41 ) ) ) ) ), - 30 ) - + 83 AS col0
----
-150

skipif mysql # not compatible
query I rowsort label-9748
SELECT + NULLIF ( + COALESCE ( + - 67, ( + 32 ) / ( ( - NULLIF ( 28, ( - 41 ) ) ) ) ), - 30 ) - + 83 AS col0
----
-150

onlyif mysql # aggregate syntax: 
query I rowsort label-9749
SELECT ALL 43 * ( COUNT( * ) )
----
43

skipif mysql # not compatible
query I rowsort label-9749
SELECT ALL 43 * ( COUNT ( * ) )
----
43

query I rowsort
SELECT + NULLIF ( - 19, - + 65 + COALESCE ( 82, - 81 / 98 - 50 ) ) * 89
----
-1691

query II rowsort
SELECT - 58 col0, 14
----
-58
14

onlyif mysql # aggregate syntax: 
query II rowsort label-9752
SELECT + 34 * - MIN( DISTINCT + 61 ), - 75 * + 53 AS col2
----
-2074
-3975

skipif mysql # not compatible
query II rowsort label-9752
SELECT + 34 * - MIN ( DISTINCT + 61 ), - 75 * + 53 AS col2
----
-2074
-3975

onlyif mysql # aggregate syntax: 
query I rowsort label-9753
SELECT - - 58 + - 94 * + - COUNT( * ) * - 24
----
-2198

skipif mysql # not compatible
query I rowsort label-9753
SELECT - - 58 + - 94 * + - COUNT ( * ) * - 24
----
-2198

query I rowsort
SELECT DISTINCT 52 - + + 1 col0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9755
SELECT ALL COUNT( DISTINCT - 17 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9755
SELECT ALL COUNT ( DISTINCT - 17 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9756
SELECT + + 13 - CASE 49 WHEN - 60 THEN + MAX( 11 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9756
SELECT + + 13 - CASE 49 WHEN - 60 THEN + MAX ( 11 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9757
SELECT ALL 36 col2, COALESCE ( - - 16, + NULLIF ( + 95, - 40 ) + - NULLIF ( - 18, 63 + 93 * 80 ) ) + 93 * COUNT( * )
----
36
109

skipif mysql # not compatible
query II rowsort label-9757
SELECT ALL 36 col2, COALESCE ( - - 16, + NULLIF ( + 95, - 40 ) + - NULLIF ( - 18, 63 + 93 * 80 ) ) + 93 * COUNT ( * )
----
36
109

onlyif mysql # aggregate syntax: 
query I rowsort label-9758
SELECT DISTINCT + - COUNT( * ) * ( - 67 ) + + - COUNT( * )
----
66

skipif mysql # not compatible
query I rowsort label-9758
SELECT DISTINCT + - COUNT ( * ) * ( - 67 ) + + - COUNT ( * )
----
66

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9759
SELECT ALL NULLIF ( + 95, MAX( DISTINCT - CAST( + + 91 AS DECIMAL ) ) * - 1 - + MIN( 26 ) )
----
95

skipif mysql # not compatible
query I rowsort label-9759
SELECT ALL NULLIF ( + 95, MAX ( DISTINCT - CAST ( + + 91 AS REAL ) ) * - 1 - + MIN ( 26 ) )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-9760
SELECT + - CASE + ( - MAX( DISTINCT ( + 65 ) ) ) WHEN 66 / - SUM( 58 ) THEN 38 * 29 WHEN + 6 + + 43 THEN NULL ELSE NULL END + ( - 99 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9760
SELECT + - CASE + ( - MAX ( DISTINCT ( + 65 ) ) ) WHEN 66 / - SUM ( 58 ) THEN 38 * 29 WHEN + 6 + + 43 THEN NULL ELSE NULL END + ( - 99 ) AS col0
----
NULL

query I rowsort
SELECT - 37 * + 95
----
-3515

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9762
SELECT - - 5 AS col2, 76 * + 7 DIV + COUNT( * ) + 84
----
5
616

skipif mysql # not compatible
query II rowsort label-9762
SELECT - - 5 AS col2, 76 * + 7 / + COUNT ( * ) + 84
----
5
616

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9763
SELECT - COUNT( * ) + + 36 + + - CASE - CASE + + 57 WHEN + 45 + + 68 THEN NULL WHEN 13 THEN 52 * NULLIF ( 97, - 78 ) END WHEN 52 * - 76 THEN SUM( 81 ) + 34 * - 56 WHEN - 95 + + CAST( NULL AS DECIMAL ) THEN 83 * ( 86 ) + + COUNT( * ) WHEN - 70 THEN - 54 ELSE + 60 END col1
----
-25

skipif mysql # not compatible
query I rowsort label-9763
SELECT - COUNT ( * ) + + 36 + + - CASE - CASE + + 57 WHEN + 45 + + 68 THEN NULL WHEN 13 THEN 52 * NULLIF ( 97, - 78 ) END WHEN 52 * - 76 THEN SUM ( 81 ) + 34 * - 56 WHEN - 95 + + CAST ( NULL AS REAL ) THEN 83 * ( 86 ) + + COUNT ( * ) WHEN - 70 THEN - 54 ELSE + 60 END col1
----
-25

query I rowsort
SELECT DISTINCT + 25 * + 24
----
600

query I rowsort
SELECT + COALESCE ( - - 67, 49, - 0 - - 63 + - 81 ) * 52
----
3484

query I rowsort
SELECT ALL + 32 * - 18 col1
----
-576

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9767
SELECT ALL + 40 DIV - 37 + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-9767
SELECT ALL + 40 / - 37 + COUNT ( * )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9768
SELECT CAST( NULL AS SIGNED ) AS col1, COALESCE ( - 34, + ( + 73 ) + + MAX( 27 ) + 33 * + 81 ) + NULLIF ( + 34, - 61 / AVG ( ALL 26 ) - + 6 ) * 74
----
NULL
2482

skipif mysql # not compatible
query II rowsort label-9768
SELECT CAST ( NULL AS INTEGER ) AS col1, COALESCE ( - 34, + ( + 73 ) + + MAX ( 27 ) + 33 * + 81 ) + NULLIF ( + 34, - 61 / AVG ( ALL 26 ) - + 6 ) * 74
----
NULL
2482

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9769
SELECT 10 * 46 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9769
SELECT 10 * 46 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9770
SELECT CAST( NULL AS SIGNED ) AS col2, 54
----
NULL
54

skipif mysql # not compatible
query II rowsort label-9770
SELECT CAST ( NULL AS INTEGER ) AS col2, 54
----
NULL
54

query I rowsort
SELECT 46 * 50 + COALESCE ( + 52, + NULLIF ( - - 66, 49 ), 69, + 52 * - 18 + 22 )
----
2352

query I rowsort
SELECT - 51 * - 18
----
918

query I rowsort
SELECT - 22 * - 54 AS col2
----
1188

query I rowsort
SELECT ( 58 ) col1
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-9775
SELECT - 4 DIV + 25
----
0

skipif mysql # not compatible
query I rowsort label-9775
SELECT - 4 / + 25
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9776
SELECT ALL 72 DIV 43 + + 33
----
34

skipif mysql # not compatible
query I rowsort label-9776
SELECT ALL 72 / 43 + + 33
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-9777
SELECT ALL - 74 DIV + 3 AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-9777
SELECT ALL - 74 / + 3 AS col1
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9778
SELECT ALL + 75 * CASE 76 WHEN + COALESCE ( 0, 40 ) + 92 THEN NULL WHEN + COUNT( ALL + 65 ) THEN + 15 ELSE - CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9778
SELECT ALL + 75 * CASE 76 WHEN + COALESCE ( 0, 40 ) + 92 THEN NULL WHEN + COUNT ( ALL + 65 ) THEN + 15 ELSE - CAST ( NULL AS INTEGER ) END
----
NULL

query I rowsort
SELECT ALL - ( + ( - 4 ) ) + - 49 AS col0
----
-45

query II rowsort
SELECT + 26 col1, 91 * + COALESCE ( + - 20, 58, 88 * 46 )
----
26
-1820

query I rowsort
SELECT ALL + 84 * - 58 * - ( + - 42 ) * - 63 AS col2
----
12891312

query I rowsort
SELECT DISTINCT - 30 - 90 AS col0
----
-120

query I rowsort
SELECT ALL + 75 * - 49
----
-3675

onlyif mysql # DIV for integer division: 
query I rowsort label-9784
SELECT 84 * - 74 + 2 DIV + 20 * 30 AS col2
----
-6216

skipif mysql # not compatible
query I rowsort label-9784
SELECT 84 * - 74 + 2 / + 20 * 30 AS col2
----
-6216

query I rowsort
SELECT 84 - ( + 57 )
----
27

query I rowsort
SELECT ( - + 5 ) - + - 45 AS col2
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-9787
SELECT MAX( 42 ) * + - 47 AS col1
----
-1974

skipif mysql # not compatible
query I rowsort label-9787
SELECT MAX ( 42 ) * + - 47 AS col1
----
-1974

query I rowsort
SELECT ( ( + 50 ) ) * + 29 AS col1
----
1450

query I rowsort
SELECT DISTINCT + - 10 - + 84 + - 76 + + - 15 * - 10
----
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-9790
SELECT ALL 9 AS col1, + 45 - - 80 + + 13 + + SUM( ALL + 26 ) * + 79 AS col0
----
9
2192

skipif mysql # not compatible
query II rowsort label-9790
SELECT ALL 9 AS col1, + 45 - - 80 + + 13 + + SUM ( ALL + 26 ) * + 79 AS col0
----
9
2192

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9791
SELECT - CAST( CAST( - CASE - 61 WHEN + - COUNT( * ) THEN NULL WHEN - 24 THEN NULL ELSE - 11 END AS SIGNED ) AS SIGNED ) * 58
----
-638

skipif mysql # not compatible
query I rowsort label-9791
SELECT - CAST ( CAST ( - CASE - 61 WHEN + - COUNT ( * ) THEN NULL WHEN - 24 THEN NULL ELSE - 11 END AS INTEGER ) AS INTEGER ) * 58
----
-638

query II rowsort
SELECT ALL + 53 AS col2, + 16 AS col0
----
53
16

query II rowsort
SELECT - - 40, 61 AS col1
----
40
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9794
SELECT MAX( DISTINCT 97 ) DIV - COUNT( * ) col1
----
-97

skipif mysql # not compatible
query I rowsort label-9794
SELECT MAX ( DISTINCT 97 ) / - COUNT ( * ) col1
----
-97

query I rowsort
SELECT ALL + 71 * - + 29 AS col0
----
-2059

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9796
SELECT ALL - 96 * + + 11 AS col1, COALESCE ( + COUNT( * ), - ( - CAST( 40 AS SIGNED ) ) + MIN( ALL + 52 ) ) - - 61 AS col0
----
-1056
62

skipif mysql # not compatible
query II rowsort label-9796
SELECT ALL - 96 * + + 11 AS col1, COALESCE ( + COUNT ( * ), - ( - CAST ( 40 AS INTEGER ) ) + MIN ( ALL + 52 ) ) - - 61 AS col0
----
-1056
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9797
SELECT SUM( ALL - + 91 ) AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-9797
SELECT SUM ( ALL - + 91 ) AS col1
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-9798
SELECT + 87 DIV 35
----
2

skipif mysql # not compatible
query I rowsort label-9798
SELECT + 87 / 35
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-9799
SELECT 9 DIV - + 64 + - - 28
----
28

skipif mysql # not compatible
query I rowsort label-9799
SELECT 9 / - + 64 + - - 28
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9800
SELECT ALL - MAX( + 79 ) AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-9800
SELECT ALL - MAX ( + 79 ) AS col0
----
-79

query I rowsort
SELECT DISTINCT - 2 + - 36 col0
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9802
SELECT ALL 93 + + + CAST( + - 2 AS SIGNED ) col2
----
91

skipif mysql # not compatible
query I rowsort label-9802
SELECT ALL 93 + + + CAST ( + - 2 AS INTEGER ) col2
----
91

query II rowsort
SELECT + + 35, 14 + - ( + ( - 52 ) ) - - 49 AS col1
----
35
115

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9804
SELECT ALL 16 * + CASE + 90 WHEN + 92 THEN CAST( 15 AS SIGNED ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9804
SELECT ALL 16 * + CASE + 90 WHEN + 92 THEN CAST ( 15 AS INTEGER ) ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9805
SELECT DISTINCT CASE 31 WHEN - 1 + - 68 - + 12 THEN + COALESCE ( - ( 64 ), - CASE + COUNT( * ) WHEN ( + 59 ) THEN COALESCE ( 67, 94, - 26 ) / + 60 END * - 76 + + 54 ) + 82 ELSE NULL END + 61
----
NULL

skipif mysql # not compatible
query I rowsort label-9805
SELECT DISTINCT CASE 31 WHEN - 1 + - 68 - + 12 THEN + COALESCE ( - ( 64 ), - CASE + COUNT ( * ) WHEN ( + 59 ) THEN COALESCE ( 67, 94, - 26 ) / + 60 END * - 76 + + 54 ) + 82 ELSE NULL END + 61
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9806
SELECT ALL 33 + - 6 DIV - 3 + + + 42 AS col1
----
77

skipif mysql # not compatible
query I rowsort label-9806
SELECT ALL 33 + - 6 / - 3 + + + 42 AS col1
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9807
SELECT + 87 * - - 16 + + CASE 34 WHEN 34 + MAX( 24 ) + 71 * 2 / 86 THEN NULLIF ( 84, 26 * - CAST( - CASE 41 WHEN 90 THEN 44 END AS SIGNED ) ) * 36 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9807
SELECT + 87 * - - 16 + + CASE 34 WHEN 34 + MAX ( 24 ) + 71 * 2 / 86 THEN NULLIF ( 84, 26 * - CAST ( - CASE 41 WHEN 90 THEN 44 END AS INTEGER ) ) * 36 END AS col0
----
NULL

query I rowsort
SELECT - 12 * + 83 + - 71 * - - 1 AS col2
----
-1067

query I rowsort
SELECT ALL 80 * + 7 AS col0
----
560

query I rowsort
SELECT 49 + - 49
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9811
SELECT ALL ( ( + - 97 ) ) - - 59 * CASE + CAST( + CASE - 75 WHEN + MIN( - 66 ) / 81 + 61 THEN - 79 END AS SIGNED ) WHEN - 56 THEN + 24 - + 39 / + 15 WHEN 37 + - 34 * SUM( 72 ) THEN - 41 / - 5 + 43 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9811
SELECT ALL ( ( + - 97 ) ) - - 59 * CASE + CAST ( + CASE - 75 WHEN + MIN ( - 66 ) / 81 + 61 THEN - 79 END AS INTEGER ) WHEN - 56 THEN + 24 - + 39 / + 15 WHEN 37 + - 34 * SUM ( 72 ) THEN - 41 / - 5 + 43 END col1
----
NULL

query I rowsort
SELECT DISTINCT 32 * - 15 AS col0
----
-480

onlyif mysql # DIV for integer division: 
query I rowsort label-9813
SELECT 39 DIV - - 85 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9813
SELECT 39 / - - 85 AS col0
----
0

query I rowsort
SELECT + 73 * 95 + - 89 AS col1
----
6846

onlyif mysql # DIV for integer division: 
query I rowsort label-9815
SELECT ALL - 25 DIV + 20
----
-1

skipif mysql # not compatible
query I rowsort label-9815
SELECT ALL - 25 / + 20
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9816
SELECT DISTINCT - COALESCE ( + + 59, 51 * + 34 - + + COUNT( * ) - + 45 ) AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-9816
SELECT DISTINCT - COALESCE ( + + 59, 51 * + 34 - + + COUNT ( * ) - + 45 ) AS col0
----
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-9817
SELECT ALL - 16 DIV + + 48 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9817
SELECT ALL - 16 / + + 48 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9818
SELECT 64 DIV 5 AS col1
----
12

skipif mysql # not compatible
query I rowsort label-9818
SELECT 64 / 5 AS col1
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9819
SELECT 0 * 48 AS col1, + 90 - - 63 + + + CAST( NULL AS SIGNED ) * + ( + 31 ) + 52 * - 95
----
0
NULL

skipif mysql # not compatible
query II rowsort label-9819
SELECT 0 * 48 AS col1, + 90 - - 63 + + + CAST ( NULL AS INTEGER ) * + ( + 31 ) + 52 * - 95
----
0
NULL

query I rowsort
SELECT DISTINCT - 99 * + NULLIF ( 6, - 31 / - 25 ) * + + ( ( 97 ) ) * + 98
----
-5646564

query I rowsort
SELECT ALL + 44 * - 11 * - 52 col2
----
25168

query I rowsort
SELECT ALL + 2 * - NULLIF ( - 43, 58 - 3 + 21 + + 75 * 81 ) + 17 AS col0
----
103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9823
SELECT ALL - - NULLIF ( + 76, - + 81 ) * - 77 * + CAST( + - 3 AS SIGNED ) + + 20 + + 55 * + 82 AS col1
----
22086

skipif mysql # not compatible
query I rowsort label-9823
SELECT ALL - - NULLIF ( + 76, - + 81 ) * - 77 * + CAST ( + - 3 AS INTEGER ) + + 20 + + 55 * + 82 AS col1
----
22086

query II rowsort
SELECT + 92 * - 75, 80 AS col1
----
-6900
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9825
SELECT + 37 * + 94 - COUNT( * ) * - COUNT( * ) + + COUNT( * )
----
3480

skipif mysql # not compatible
query I rowsort label-9825
SELECT + 37 * + 94 - COUNT ( * ) * - COUNT ( * ) + + COUNT ( * )
----
3480

onlyif mysql # aggregate syntax: 
query II rowsort label-9826
SELECT - - NULLIF ( 81, 65 ) col2, COUNT( * ) - + - 87 AS col0
----
81
88

skipif mysql # not compatible
query II rowsort label-9826
SELECT - - NULLIF ( 81, 65 ) col2, COUNT ( * ) - + - 87 AS col0
----
81
88

query II rowsort
SELECT + 58 * 33 AS col1, 74 * 80 AS col2
----
1914
5920

onlyif mysql # aggregate syntax: 
query I rowsort label-9828
SELECT 32 + MIN( + + 59 )
----
91

skipif mysql # not compatible
query I rowsort label-9828
SELECT 32 + MIN ( + + 59 )
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9829
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - ( + CAST( - + 10 AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9829
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - ( + CAST ( - + 10 AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9830
SELECT ALL COALESCE ( + - 24, + + CAST( NULL AS SIGNED ) )
----
-24

skipif mysql # not compatible
query I rowsort label-9830
SELECT ALL COALESCE ( + - 24, + + CAST ( NULL AS INTEGER ) )
----
-24

query I rowsort
SELECT ALL - 76 + - 88 + + - 56 + - 84 AS col1
----
-304

query I rowsort
SELECT ALL 25 + - ( 3 ) + - 86
----
-64

query I rowsort
SELECT 11 * + - 96 AS col2
----
-1056

onlyif mysql # aggregate syntax: 
query I rowsort label-9834
SELECT ALL + 73 + - 11 - COALESCE ( + - 16, - - SUM( + 81 ) )
----
78

skipif mysql # not compatible
query I rowsort label-9834
SELECT ALL + 73 + - 11 - COALESCE ( + - 16, - - SUM ( + 81 ) )
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9835
SELECT ALL - 15 + - 59 + + 25 * - 23 * - 75 * - CAST( + - 61 AS SIGNED ) AS col2
----
2630551

skipif mysql # not compatible
query I rowsort label-9835
SELECT ALL - 15 + - 59 + + 25 * - 23 * - 75 * - CAST ( + - 61 AS INTEGER ) AS col2
----
2630551

query I rowsort
SELECT + 65 + + 15
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9837
SELECT - MIN( 27 )
----
-27

skipif mysql # not compatible
query I rowsort label-9837
SELECT - MIN ( 27 )
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-9838
SELECT + COALESCE ( + 41, COUNT( * ) * - + 50 * - + ( + - 52 ) ) - + MIN( 72 ) + MIN( DISTINCT - 42 ) * - 43
----
1775

skipif mysql # not compatible
query I rowsort label-9838
SELECT + COALESCE ( + 41, COUNT ( * ) * - + 50 * - + ( + - 52 ) ) - + MIN ( 72 ) + MIN ( DISTINCT - 42 ) * - 43
----
1775

query I rowsort
SELECT 39 * 73 AS col2
----
2847

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9840
SELECT ALL 86 DIV COUNT( * ) * 64 * + 33 AS col2, - MIN( - + ( 75 ) ) * - - 13 + 11
----
181632
986

skipif mysql # not compatible
query II rowsort label-9840
SELECT ALL 86 / COUNT ( * ) * 64 * + 33 AS col2, - MIN ( - + ( 75 ) ) * - - 13 + 11
----
181632
986

onlyif mysql # aggregate syntax: 
query I rowsort label-9841
SELECT + MIN( DISTINCT + - 73 ) AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-9841
SELECT + MIN ( DISTINCT + - 73 ) AS col0
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9842
SELECT ALL + 13 * ( - - 43 ) - 16, 15 + - CAST( NULL AS SIGNED ) - + 2 / - + 38 AS col1
----
543
NULL

skipif mysql # not compatible
query II rowsort label-9842
SELECT ALL + 13 * ( - - 43 ) - 16, 15 + - CAST ( NULL AS INTEGER ) - + 2 / - + 38 AS col1
----
543
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9843
SELECT DISTINCT - 80 * - 10 * - 56 * - + 16 * + 0 - MIN( 90 )
----
-90

skipif mysql # not compatible
query I rowsort label-9843
SELECT DISTINCT - 80 * - 10 * - 56 * - + 16 * + 0 - MIN ( 90 )
----
-90

query I rowsort
SELECT CASE - 27 WHEN - 55 THEN NULL ELSE - + 95 END AS col1
----
-95

query I rowsort
SELECT 21 * + 55 + 41
----
1196

query I rowsort
SELECT + 85 * - 75
----
-6375

query I rowsort
SELECT + 2 - 16
----
-14

query II rowsort
SELECT DISTINCT - 12 * - 75 * - + 86, 88 col1
----
-77400
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9849
SELECT ALL + COALESCE ( + CASE ( 64 ) WHEN + ( - - 83 ) DIV + 97 + + - 30 + 59 THEN NULL ELSE + 66 END, + COUNT( * ) DIV ( + COUNT( * ) ) ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-9849
SELECT ALL + COALESCE ( + CASE ( 64 ) WHEN + ( - - 83 ) / + 97 + + - 30 + 59 THEN NULL ELSE + 66 END, + COUNT ( * ) / ( + COUNT ( * ) ) ) AS col1
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-9850
SELECT + 44 * - 57 + - - 29 - + 7 DIV + + 40
----
-2479

skipif mysql # not compatible
query I rowsort label-9850
SELECT + 44 * - 57 + - - 29 - + 7 / + + 40
----
-2479

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9851
SELECT ALL - COUNT( * ) * + + CAST( 95 AS SIGNED ) * COALESCE ( + - ( + + 87 ), COALESCE ( COUNT( * ), 25 ) ) * 0 + + COALESCE ( - 91 + COUNT( * ), COUNT( * ) ) AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-9851
SELECT ALL - COUNT ( * ) * + + CAST ( 95 AS INTEGER ) * COALESCE ( + - ( + + 87 ), COALESCE ( COUNT ( * ), 25 ) ) * 0 + + COALESCE ( - 91 + COUNT ( * ), COUNT ( * ) ) AS col0
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-9852
SELECT SUM( DISTINCT + - COALESCE ( - 19, 52 ) )
----
19

skipif mysql # not compatible
query I rowsort label-9852
SELECT SUM ( DISTINCT + - COALESCE ( - 19, 52 ) )
----
19

query I rowsort
SELECT + + 40 + - + 83
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-9854
SELECT COUNT( + - ( 37 ) )
----
1

skipif mysql # not compatible
query I rowsort label-9854
SELECT COUNT ( + - ( 37 ) )
----
1

query I rowsort
SELECT + 9 * - 12 + 67 AS col0
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9856
SELECT - - 60 - + + CAST( + 52 AS SIGNED ) col0
----
8

skipif mysql # not compatible
query I rowsort label-9856
SELECT - - 60 - + + CAST ( + 52 AS INTEGER ) col0
----
8

query I rowsort
SELECT ALL 30 + + 62 AS col1
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9858
SELECT - COUNT( 63 ) + + ( + 88 ) + + MIN( - 5 ) - 35 AS col1
----
47

skipif mysql # not compatible
query I rowsort label-9858
SELECT - COUNT ( 63 ) + + ( + 88 ) + + MIN ( - 5 ) - 35 AS col1
----
47

query I rowsort
SELECT ALL + - 92 * - - 20 AS col2
----
-1840

query I rowsort
SELECT ALL - 30 + + 55
----
25

query I rowsort
SELECT - 97 + + 97
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9862
SELECT ALL + + COUNT( * ) + + ( - - COUNT( * ) ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-9862
SELECT ALL + + COUNT ( * ) + + ( - - COUNT ( * ) ) AS col1
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-9863
SELECT DISTINCT - - ( - 7 ) * + + 49, CASE - - 76 WHEN - COUNT( ALL - 93 ) * + AVG ( ALL 42 ) THEN - 4 WHEN COUNT( + 83 ) THEN NULL ELSE NULL END * - 21 + + 28 AS col0
----
-343
NULL

skipif mysql # not compatible
query II rowsort label-9863
SELECT DISTINCT - - ( - 7 ) * + + 49, CASE - - 76 WHEN - COUNT ( ALL - 93 ) * + AVG ( ALL 42 ) THEN - 4 WHEN COUNT ( + 83 ) THEN NULL ELSE NULL END * - 21 + + 28 AS col0
----
-343
NULL

query I rowsort
SELECT - 58 + 69
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9865
SELECT DISTINCT - + COUNT( ALL 69 ) + - ( - 99 ) * + 10
----
989

skipif mysql # not compatible
query I rowsort label-9865
SELECT DISTINCT - + COUNT ( ALL 69 ) + - ( - 99 ) * + 10
----
989

onlyif mysql # aggregate syntax: 
query II rowsort label-9866
SELECT - 35 AS col0, + COALESCE ( - 59, - + MIN( DISTINCT + + 81 ) + - 50, - - ( 34 ) ) col0
----
-35
-59

skipif mysql # not compatible
query II rowsort label-9866
SELECT - 35 AS col0, + COALESCE ( - 59, - + MIN ( DISTINCT + + 81 ) + - 50, - - ( 34 ) ) col0
----
-35
-59

query I rowsort
SELECT ALL + 61 - - 30 AS col0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9868
SELECT ALL - + 38 - - NULLIF ( + 99, + COUNT( * ) / 79 )
----
61

skipif mysql # not compatible
query I rowsort label-9868
SELECT ALL - + 38 - - NULLIF ( + 99, + COUNT ( * ) / 79 )
----
61

query I rowsort
SELECT DISTINCT - ( - + 98 ) AS col0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9870
SELECT DISTINCT CASE - 21 WHEN + 7 THEN + COUNT( * ) - + 26 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9870
SELECT DISTINCT CASE - 21 WHEN + 7 THEN + COUNT ( * ) - + 26 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT - 92 + - 65 * 10 col0
----
-742

onlyif mysql # DIV for integer division: 
query I rowsort label-9872
SELECT DISTINCT + 43 DIV + 35 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9872
SELECT DISTINCT + 43 / + 35 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9873
SELECT NULLIF ( + 28, SUM( 63 ) ) * 69 + - COUNT( * ) + - - 92 * - - 68 * + 95 + + 75
----
596326

skipif mysql # not compatible
query I rowsort label-9873
SELECT NULLIF ( + 28, SUM ( 63 ) ) * 69 + - COUNT ( * ) + - - 92 * - - 68 * + 95 + + 75
----
596326

query I rowsort
SELECT + COALESCE ( + - 56, + 96 + 63 * - 56 ) * 65 + + + 71 * 12
----
-2788

query I rowsort
SELECT ALL + 25 * 78
----
1950

onlyif mysql # DIV for integer division: 
query I rowsort label-9876
SELECT + 28 DIV 76 + 16 AS col2
----
16

skipif mysql # not compatible
query I rowsort label-9876
SELECT + 28 / 76 + 16 AS col2
----
16

query I rowsort
SELECT ALL + 16 * 81
----
1296

onlyif mysql # aggregate syntax: 
query I rowsort label-9878
SELECT + 15 + + + 98 + - 94 + - CASE - 7 WHEN + + SUM( ALL - 76 ) THEN NULL WHEN + 43 * - 71 THEN 41 ELSE - 64 END * 25
----
1619

skipif mysql # not compatible
query I rowsort label-9878
SELECT + 15 + + + 98 + - 94 + - CASE - 7 WHEN + + SUM ( ALL - 76 ) THEN NULL WHEN + 43 * - 71 THEN 41 ELSE - 64 END * 25
----
1619

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9879
SELECT - CASE + MIN( - 63 ) WHEN 96 * - + NULLIF ( - + 56, + + 32 ) THEN NULL WHEN - 81 THEN NULL ELSE - 46 + - 92 END DIV - 57
----
-2

skipif mysql # not compatible
query I rowsort label-9879
SELECT - CASE + MIN ( - 63 ) WHEN 96 * - + NULLIF ( - + 56, + + 32 ) THEN NULL WHEN - 81 THEN NULL ELSE - 46 + - 92 END / - 57
----
-2

query II rowsort
SELECT ALL + 26 * - 46, 73 AS col2
----
-1196
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9881
SELECT + 65 DIV - 87 * 79 + + 96 * + COUNT( * ) AS col2
----
96

skipif mysql # not compatible
query I rowsort label-9881
SELECT + 65 / - 87 * 79 + + 96 * + COUNT ( * ) AS col2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9882
SELECT + 61 * - + COUNT( * ) AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-9882
SELECT + 61 * - + COUNT ( * ) AS col1
----
-61

query I rowsort
SELECT ALL - 53 * - 21 AS col0
----
1113

onlyif mysql # aggregate syntax: 
query II rowsort label-9884
SELECT ( 66 ) AS col2, + 21 * + COUNT( * ) AS col1
----
66
21

skipif mysql # not compatible
query II rowsort label-9884
SELECT ( 66 ) AS col2, + 21 * + COUNT ( * ) AS col1
----
66
21

query I rowsort
SELECT ALL 96 * ( - + 28 ) * - 37 + + 54
----
99510

onlyif mysql # DIV for integer division: 
query I rowsort label-9886
SELECT ALL - 3 * + ( - 52 ) + + 66 DIV + - 74 AS col2
----
156

skipif mysql # not compatible
query I rowsort label-9886
SELECT ALL - 3 * + ( - 52 ) + + 66 / + - 74 AS col2
----
156

query I rowsort
SELECT + 31 * + 65
----
2015

onlyif mysql # aggregate syntax: 
query II rowsort label-9888
SELECT + COUNT( * ) + - + 20 AS col1, + 68 * 2 * ( 19 )
----
-19
2584

skipif mysql # not compatible
query II rowsort label-9888
SELECT + COUNT ( * ) + - + 20 AS col1, + 68 * 2 * ( 19 )
----
-19
2584

onlyif mysql # aggregate syntax: 
query II rowsort label-9889
SELECT + SUM( + - 92 ), - COUNT( * ) AS col2
----
-92
-1

skipif mysql # not compatible
query II rowsort label-9889
SELECT + SUM ( + - 92 ), - COUNT ( * ) AS col2
----
-92
-1

query I rowsort
SELECT DISTINCT - + 57 * + 24 + - - 52
----
-1316

query I rowsort
SELECT ALL + + 91 * - + 99 + + ( - NULLIF ( - ( + ( + - 5 ) ), 21 + + NULLIF ( ( + NULLIF ( + 19, + 76 * 24 ) ), 53 ) + - 59 * - COALESCE ( 99, 43 ) * 94 ) ) + 50 col0
----
-8964

query I rowsort
SELECT + + CASE - 99 WHEN - 35 THEN NULL ELSE - + 63 * - 24 END * - - 18 AS col2
----
27216

query I rowsort
SELECT DISTINCT + 66 * + 75 * - 17 + - 14 - + 34
----
-84198

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9894
SELECT ALL + COALESCE ( + 52, + COUNT( * ) - - 16 * 79 * - + ( + + 50 ) ) * - 75 + - 4 DIV NULLIF ( - 83, + 30 ) + - 21
----
-3921

skipif mysql # not compatible
query I rowsort label-9894
SELECT ALL + COALESCE ( + 52, + COUNT ( * ) - - 16 * 79 * - + ( + + 50 ) ) * - 75 + - 4 / NULLIF ( - 83, + 30 ) + - 21
----
-3921

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9895
SELECT + COUNT( * ) - + + NULLIF ( + 35, 25 ) / + - 62 + + CAST( NULL AS SIGNED ) + + 32 * - 92 + - - 75 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9895
SELECT + COUNT ( * ) - + + NULLIF ( + 35, 25 ) / + - 62 + + CAST ( NULL AS INTEGER ) + + 32 * - 92 + - - 75 AS col1
----
NULL

query I rowsort
SELECT - 3 * + 80 * 11 + 39
----
-2601

onlyif mysql # aggregate syntax: 
query I rowsort label-9897
SELECT - + 96 + - 58 * - - COALESCE ( + + 51, 18, - - MIN( ALL + 11 ), COUNT( * ) ) * - 9 col0
----
26526

skipif mysql # not compatible
query I rowsort label-9897
SELECT - + 96 + - 58 * - - COALESCE ( + + 51, 18, - - MIN ( ALL + 11 ), COUNT ( * ) ) * - 9 col0
----
26526

onlyif mysql # DIV for integer division: 
query I rowsort label-9898
SELECT - 30 DIV + 70 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9898
SELECT - 30 / + 70 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9899
SELECT + - COALESCE ( + 3, + 18 + - COUNT( * ) + - 51 * + 75 - + 19 + 32, 20 ) * + 63 col0
----
-189

skipif mysql # not compatible
query I rowsort label-9899
SELECT + - COALESCE ( + 3, + 18 + - COUNT ( * ) + - 51 * + 75 - + 19 + 32, 20 ) * + 63 col0
----
-189

query I rowsort
SELECT DISTINCT + 2 * - - 95
----
190

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9901
SELECT ALL CAST( - + COUNT( * ) AS SIGNED ) DIV - + 35 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9901
SELECT ALL CAST ( - + COUNT ( * ) AS INTEGER ) / - + 35 AS col1
----
0

query I rowsort
SELECT 58 * + + 82
----
4756

onlyif mysql # aggregate syntax: 
query I rowsort label-9903
SELECT NULLIF ( - 90, + - COUNT( * ) ) * - 77
----
6930

skipif mysql # not compatible
query I rowsort label-9903
SELECT NULLIF ( - 90, + - COUNT ( * ) ) * - 77
----
6930

query II rowsort
SELECT - 7 AS col0, - 91
----
-7
-91

query I rowsort
SELECT DISTINCT + 39 * + 1 AS col1
----
39

query I rowsort
SELECT 83 * + - 38 AS col0
----
-3154

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9907
SELECT ALL - COALESCE ( - - 46, + CASE - + 49 WHEN - - COUNT( * ) THEN - ( 10 ) DIV - NULLIF ( + + 65, + MIN( ALL 55 ) * + 88 ) - COALESCE ( 71 + 11, 54 ) * + 70 + 79 END * + 19, + MAX( ALL 81 ) )
----
-46

skipif mysql # not compatible
query I rowsort label-9907
SELECT ALL - COALESCE ( - - 46, + CASE - + 49 WHEN - - COUNT ( * ) THEN - ( 10 ) / - NULLIF ( + + 65, + MIN ( ALL 55 ) * + 88 ) - COALESCE ( 71 + 11, 54 ) * + 70 + 79 END * + 19, + MAX ( ALL 81 ) )
----
-46

query I rowsort
SELECT DISTINCT + 12 + 65 AS col1
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-9909
SELECT ALL 67 + - 13 + - 41 + - 15 DIV - 71 * - + 50 * + + 74 + + 7 AS col2
----
20

skipif mysql # not compatible
query I rowsort label-9909
SELECT ALL 67 + - 13 + - 41 + - 15 / - 71 * - + 50 * + + 74 + + 7 AS col2
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9910
SELECT COUNT( * ) DIV 13 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9910
SELECT COUNT ( * ) / 13 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9911
SELECT ALL + 95 + - CASE + 58 WHEN - + 71 + - COUNT( * ) + - + 57 THEN - 20 WHEN + + 67 + + + NULLIF ( - 40, NULLIF ( ( ( 83 ) ), 33 ) * 38 ) THEN + 91 + + 58 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9911
SELECT ALL + 95 + - CASE + 58 WHEN - + 71 + - COUNT ( * ) + - + 57 THEN - 20 WHEN + + 67 + + + NULLIF ( - 40, NULLIF ( ( ( 83 ) ), 33 ) * 38 ) THEN + 91 + + 58 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9912
SELECT 95 DIV COUNT( - + NULLIF ( - 78, 55 ) ) + 67 AS col0
----
162

skipif mysql # not compatible
query I rowsort label-9912
SELECT 95 / COUNT ( - + NULLIF ( - 78, 55 ) ) + 67 AS col0
----
162

query I rowsort
SELECT ALL - + 13 + + 39 AS col1
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9914
SELECT ALL + + 51 * + COUNT( * ) * - - CAST( NULL AS SIGNED ) * COUNT( * ) / - CAST( NULL AS SIGNED ) * - 63
----
NULL

skipif mysql # not compatible
query I rowsort label-9914
SELECT ALL + + 51 * + COUNT ( * ) * - - CAST ( NULL AS INTEGER ) * COUNT ( * ) / - CAST ( NULL AS INTEGER ) * - 63
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9915
SELECT + 85 DIV 17
----
5

skipif mysql # not compatible
query I rowsort label-9915
SELECT + 85 / 17
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9916
SELECT 40 * + CASE ( - COALESCE ( 19, - 97 ) ) WHEN 60 * 90 * + ( + - 19 ) + + NULLIF ( 64, + 61 * 14 ) THEN NULL ELSE NULLIF ( - 22, 49 / CAST( NULL AS SIGNED ) ) * + COUNT( * ) END AS col2
----
-880

skipif mysql # not compatible
query I rowsort label-9916
SELECT 40 * + CASE ( - COALESCE ( 19, - 97 ) ) WHEN 60 * 90 * + ( + - 19 ) + + NULLIF ( 64, + 61 * 14 ) THEN NULL ELSE NULLIF ( - 22, 49 / CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) END AS col2
----
-880

onlyif mysql # aggregate syntax: 
query I rowsort label-9917
SELECT ALL + - 21 * - 47 * - + COUNT( * ) * + 11 + 71 col0
----
-10786

skipif mysql # not compatible
query I rowsort label-9917
SELECT ALL + - 21 * - 47 * - + COUNT ( * ) * + 11 + 71 col0
----
-10786

onlyif mysql # aggregate syntax: 
query I rowsort label-9918
SELECT ALL - 77 + + - 4 + - 72 * COUNT( * ) AS col2
----
-153

skipif mysql # not compatible
query I rowsort label-9918
SELECT ALL - 77 + + - 4 + - 72 * COUNT ( * ) AS col2
----
-153

onlyif mysql # DIV for integer division: 
query II rowsort label-9919
SELECT ALL 91 DIV - 55 - + 38, - 52 AS col2
----
-39
-52

skipif mysql # not compatible
query II rowsort label-9919
SELECT ALL 91 / - 55 - + 38, - 52 AS col2
----
-39
-52

query I rowsort
SELECT - 79 + - 50 col0
----
-129

query I rowsort
SELECT - 18 + + - 7 AS col2
----
-25

query I rowsort
SELECT + 1 + 74 col0
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9923
SELECT DISTINCT - 60 col0, + 71 + 59 - + COALESCE ( + 52, - - NULLIF ( 22, COUNT( * ) * 15 ) DIV - - 42 ) * - 35 AS col1
----
-60
1950

skipif mysql # not compatible
query II rowsort label-9923
SELECT DISTINCT - 60 col0, + 71 + 59 - + COALESCE ( + 52, - - NULLIF ( 22, COUNT ( * ) * 15 ) / - - 42 ) * - 35 AS col1
----
-60
1950

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9924
SELECT DISTINCT 89 * 77 / + + CASE 58 WHEN + 78 + - + NULLIF ( - 72, + 2 * + 67 * - 92 + 99 + 77 * - CAST( NULL AS SIGNED ) ) + 79 THEN 77 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9924
SELECT DISTINCT 89 * 77 / + + CASE 58 WHEN + 78 + - + NULLIF ( - 72, + 2 * + 67 * - 92 + 99 + 77 * - CAST ( NULL AS INTEGER ) ) + 79 THEN 77 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9925
SELECT + COUNT( DISTINCT - 8 ) + - COUNT( * ) + - 70
----
-70

skipif mysql # not compatible
query I rowsort label-9925
SELECT + COUNT ( DISTINCT - 8 ) + - COUNT ( * ) + - 70
----
-70

query I rowsort
SELECT ALL 37 * + 38
----
1406

query II rowsort
SELECT ALL + 14, 87 + 0 - + - ( + COALESCE ( - 23, 8 ) ) AS col1
----
14
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9928
SELECT CAST( - + 85 AS SIGNED ) + - 6 AS col0
----
-91

skipif mysql # not compatible
query I rowsort label-9928
SELECT CAST ( - + 85 AS INTEGER ) + - 6 AS col0
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9929
SELECT NULLIF ( + COUNT( * ), + 80 ) / - 17 + - CAST( NULL AS SIGNED ) * + ( + 80 ) AS col2, 11
----
NULL
11

skipif mysql # not compatible
query II rowsort label-9929
SELECT NULLIF ( + COUNT ( * ), + 80 ) / - 17 + - CAST ( NULL AS INTEGER ) * + ( + 80 ) AS col2, 11
----
NULL
11

query I rowsort
SELECT ALL 51 * 11 * + 99 AS col2
----
55539

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9931
SELECT ( - - 49 ) + - - COUNT( ALL 65 ) / 74 / + 22 / + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9931
SELECT ( - - 49 ) + - - COUNT ( ALL 65 ) / 74 / + 22 / + CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9932
SELECT COUNT( * ) + - - 6
----
7

skipif mysql # not compatible
query I rowsort label-9932
SELECT COUNT ( * ) + - - 6
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-9933
SELECT 2 AS col2, + 34 AS col1, - 49 + - 2 + + - ( - + 21 ) * - NULLIF ( + CAST( 74 AS SIGNED ), - SUM( 22 ) * - COUNT( * ) + CAST( ( COALESCE ( + 40, 54 + - 30 ) ) + + 17 AS SIGNED ) * - 46 ) * 88 col1
----
2
34
-136803

skipif mysql # not compatible
query III rowsort label-9933
SELECT 2 AS col2, + 34 AS col1, - 49 + - 2 + + - ( - + 21 ) * - NULLIF ( + CAST ( 74 AS INTEGER ), - SUM ( 22 ) * - COUNT ( * ) + CAST ( ( COALESCE ( + 40, 54 + - 30 ) ) + + 17 AS INTEGER ) * - 46 ) * 88 col1
----
2
34
-136803

query I rowsort
SELECT 87 + - + 2 + + 63 * - - 60 col0
----
3865

query II rowsort
SELECT 83 col2, 23 + - 51 AS col0
----
83
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-9936
SELECT ALL + COUNT( * ) + - 83 col0
----
-82

skipif mysql # not compatible
query I rowsort label-9936
SELECT ALL + COUNT ( * ) + - 83 col0
----
-82

query I rowsort
SELECT ( + 44 ) + 96 AS col2
----
140

onlyif mysql # aggregate syntax: 
query II rowsort label-9938
SELECT 91, + COUNT( * ) * ( + - NULLIF ( - 5, - - 77 ) ) * + 83 * + + 35 - COUNT( * ) AS col0
----
91
14524

skipif mysql # not compatible
query II rowsort label-9938
SELECT 91, + COUNT ( * ) * ( + - NULLIF ( - 5, - - 77 ) ) * + 83 * + + 35 - COUNT ( * ) AS col0
----
91
14524

query I rowsort
SELECT 83 + + 72 AS col1
----
155

query I rowsort
SELECT 93 + - 93 * 92 + + 99 * - + 6 + ( + 21 )
----
-9036

query I rowsort
SELECT ALL 61 + + + 54
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-9942
SELECT MAX( ALL ( + 62 ) ) AS col1
----
62

skipif mysql # not compatible
query I rowsort label-9942
SELECT MAX ( ALL ( + 62 ) ) AS col1
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-9943
SELECT 90 DIV + - 72 + + 5
----
4

skipif mysql # not compatible
query I rowsort label-9943
SELECT 90 / + - 72 + + 5
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-9944
SELECT COUNT( * ) AS col1, 8 * - NULLIF ( 94, + ( NULLIF ( - 79, - 75 - + + 43 + 87 ) ) )
----
1
-752

skipif mysql # not compatible
query II rowsort label-9944
SELECT COUNT ( * ) AS col1, 8 * - NULLIF ( 94, + ( NULLIF ( - 79, - 75 - + + 43 + 87 ) ) )
----
1
-752

query I rowsort
SELECT 18 + - 25 + + 84
----
77

query I rowsort
SELECT 28 + + - 77
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-9947
SELECT ALL + + 36 * 52 + COUNT( * ) AS col1
----
1873

skipif mysql # not compatible
query I rowsort label-9947
SELECT ALL + + 36 * 52 + COUNT ( * ) AS col1
----
1873

query I rowsort
SELECT 55 * + 9 * - 75 * + 97 - + 38
----
-3601163

query I rowsort
SELECT DISTINCT - + AVG ( ALL + 8 ) * - 26 / - CASE 13 WHEN + 85 + - - 59 * + 98 THEN + 33 WHEN + - 81 THEN NULL END * + 63 - ( 46 ) - ( - COALESCE ( 80, NULLIF ( 90, + 44 ), 31 ) + 89 * COALESCE ( 30, 44, - 10 * + 48 + 23 ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9950
SELECT ALL - 43 * - 64 + CAST( - COUNT( * ) AS SIGNED ) + + 73 * 11 AS col0
----
3554

skipif mysql # not compatible
query I rowsort label-9950
SELECT ALL - 43 * - 64 + CAST ( - COUNT ( * ) AS INTEGER ) + + 73 * 11 AS col0
----
3554

query I rowsort
SELECT ALL - 79 * 88 - + 10
----
-6962

onlyif mysql # aggregate syntax: 
query I rowsort label-9952
SELECT COUNT( * ) * - - SUM( ALL + 55 )
----
55

skipif mysql # not compatible
query I rowsort label-9952
SELECT COUNT ( * ) * - - SUM ( ALL + 55 )
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-9953
SELECT + CASE - 91 WHEN + COUNT( * ) + + 43 THEN + + 62 * + SUM( DISTINCT + ( + 98 ) ) * + 45 / - - NULLIF ( + COUNT( * ), + SUM( 40 ) ) / - 1 END * - 7
----
NULL

skipif mysql # not compatible
query I rowsort label-9953
SELECT + CASE - 91 WHEN + COUNT ( * ) + + 43 THEN + + 62 * + SUM ( DISTINCT + ( + 98 ) ) * + 45 / - - NULLIF ( + COUNT ( * ), + SUM ( 40 ) ) / - 1 END * - 7
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9954
SELECT ALL - NULLIF ( ( + + COUNT( * ) ), + 30 )
----
-1

skipif mysql # not compatible
query I rowsort label-9954
SELECT ALL - NULLIF ( ( + + COUNT ( * ) ), + 30 )
----
-1

query I rowsort
SELECT DISTINCT - 98 - + - 79 AS col0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-9956
SELECT DISTINCT - COUNT( * ) * - 81 AS col0
----
81

skipif mysql # not compatible
query I rowsort label-9956
SELECT DISTINCT - COUNT ( * ) * - 81 AS col0
----
81

query I rowsort
SELECT DISTINCT + - ( + - 86 ) AS col2
----
86

query II rowsort
SELECT + + 49 AS col0, 61 * - ( + 11 ) AS col1
----
49
-671

onlyif mysql # aggregate syntax: 
query I rowsort label-9959
SELECT ALL - 5 * + 89 + COUNT( * ) + - 61
----
-505

skipif mysql # not compatible
query I rowsort label-9959
SELECT ALL - 5 * + 89 + COUNT ( * ) + - 61
----
-505

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9960
SELECT DISTINCT + 46 * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9960
SELECT DISTINCT + 46 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9961
SELECT DISTINCT + + COUNT( * ) AS col0, ( 74 ) + - - 28 + - 24 * - + COALESCE ( 54, - 74 ) DIV COALESCE ( 91, 67 ) DIV 30 - + 76 col0
----
1
26

skipif mysql # not compatible
query II rowsort label-9961
SELECT DISTINCT + + COUNT ( * ) AS col0, ( 74 ) + - - 28 + - 24 * - + COALESCE ( 54, - 74 ) / COALESCE ( 91, 67 ) / 30 - + 76 col0
----
1
26

query II rowsort
SELECT DISTINCT + ( 81 ) AS col0, 78
----
81
78

query II rowsort
SELECT ALL 4 AS col1, - 84
----
4
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9964
SELECT ALL CASE + 16 WHEN + + 91 + - CAST( - - 95 AS SIGNED ) * 7 THEN + 75 * + + 4 * - 37 + + - COALESCE ( - 60, - - 91 * - COUNT( * ), NULLIF ( MIN( + 63 ), CAST( NULL AS DECIMAL ) / ( + 18 / - 17 ) ) * 35 - + 99 ) WHEN + 66 * + COUNT( * ) THEN + 17 WHEN + COUNT( * ) * + 25 THEN ( + 93 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9964
SELECT ALL CASE + 16 WHEN + + 91 + - CAST ( - - 95 AS INTEGER ) * 7 THEN + 75 * + + 4 * - 37 + + - COALESCE ( - 60, - - 91 * - COUNT ( * ), NULLIF ( MIN ( + 63 ), CAST ( NULL AS REAL ) / ( + 18 / - 17 ) ) * 35 - + 99 ) WHEN + 66 * + COUNT ( * ) THEN + 17 WHEN + COUNT ( * ) * + 25 THEN ( + 93 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9965
SELECT - COUNT( * ) + + + 93 AS col2, 76 + - 91
----
92
-15

skipif mysql # not compatible
query II rowsort label-9965
SELECT - COUNT ( * ) + + + 93 AS col2, 76 + - 91
----
92
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9966
SELECT + CAST( NULL AS SIGNED ) + 37 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9966
SELECT + CAST ( NULL AS INTEGER ) + 37 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9967
SELECT + 3 * - + 8 DIV - 2
----
12

skipif mysql # not compatible
query I rowsort label-9967
SELECT + 3 * - + 8 / - 2
----
12

query I rowsort
SELECT + 38 + + 7 - + - 39 + 3 AS col0
----
87

onlyif mysql # DIV for integer division: 
query II rowsort label-9969
SELECT + 56 DIV 98 AS col1, + ( 60 )
----
0
60

skipif mysql # not compatible
query II rowsort label-9969
SELECT + 56 / 98 AS col1, + ( 60 )
----
0
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9970
SELECT - SUM( - + CAST( NULL AS SIGNED ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9970
SELECT - SUM ( - + CAST ( NULL AS INTEGER ) ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9971
SELECT + 2 + 45 + - 17 - - COUNT( * ) + + 73 col0
----
104

skipif mysql # not compatible
query I rowsort label-9971
SELECT + 2 + 45 + - 17 - - COUNT ( * ) + + 73 col0
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-9972
SELECT ALL COALESCE ( - NULLIF ( + 90, + 50 ), + + 1 * + - 68, - 83 ) + COUNT( * ) AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-9972
SELECT ALL COALESCE ( - NULLIF ( + 90, + 50 ), + + 1 * + - 68, - 83 ) + COUNT ( * ) AS col2
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9973
SELECT + CAST( NULL AS SIGNED ) - + + ( - - 30 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9973
SELECT + CAST ( NULL AS INTEGER ) - + + ( - - 30 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9974
SELECT ALL MAX( + 88 ) DIV + 14 + + 66 DIV 44
----
7

skipif mysql # not compatible
query I rowsort label-9974
SELECT ALL MAX ( + 88 ) / + 14 + + 66 / 44
----
7

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9975
SELECT DISTINCT - CAST( 28 AS SIGNED ) DIV + 34 col0
----
0

skipif mysql # not compatible
query I rowsort label-9975
SELECT DISTINCT - CAST ( 28 AS INTEGER ) / + 34 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9976
SELECT ALL - + CASE - 7 WHEN - 8 THEN NULL WHEN + - 14 THEN - MAX( 12 ) WHEN + + 30 * - COUNT( * ) + + + SUM( 14 ) - 27 / + + 28 THEN NULL ELSE NULL END * 24 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9976
SELECT ALL - + CASE - 7 WHEN - 8 THEN NULL WHEN + - 14 THEN - MAX ( 12 ) WHEN + + 30 * - COUNT ( * ) + + + SUM ( 14 ) - 27 / + + 28 THEN NULL ELSE NULL END * 24 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9977
SELECT COUNT( - 48 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9977
SELECT COUNT ( - 48 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9978
SELECT ALL - 61 * - + COUNT( * ), + 96 AS col1
----
61
96

skipif mysql # not compatible
query II rowsort label-9978
SELECT ALL - 61 * - + COUNT ( * ), + 96 AS col1
----
61
96

onlyif mysql # DIV for integer division: 
query II rowsort label-9979
SELECT - - 50 DIV - - 93, 91 * 20 AS col2
----
0
1820

skipif mysql # not compatible
query II rowsort label-9979
SELECT - - 50 / - - 93, 91 * 20 AS col2
----
0
1820

query I rowsort
SELECT - ( + + 27 ) - + 48 AS col2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9981
SELECT ALL COUNT( * ) * + - 5 col0
----
-5

skipif mysql # not compatible
query I rowsort label-9981
SELECT ALL COUNT ( * ) * + - 5 col0
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9982
SELECT - - 53 DIV ( - + 94 ) * 95 + 1 - - 73 * 73 * + COALESCE ( COALESCE ( 4, + ( - COUNT( * ) ) ), ( - 91 ) + + 69 ) * - 13 * 19 AS col2
----
-5265051

skipif mysql # not compatible
query I rowsort label-9982
SELECT - - 53 / ( - + 94 ) * 95 + 1 - - 73 * 73 * + COALESCE ( COALESCE ( 4, + ( - COUNT ( * ) ) ), ( - 91 ) + + 69 ) * - 13 * 19 AS col2
----
-5265051

query I rowsort
SELECT + 14 + + 56 AS col0
----
70

query I rowsort
SELECT + ( + 50 ) + + + 77 AS col1
----
127

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9985
SELECT ALL - 9 * - - 64 / + - 34 + + ( - NULLIF ( + 64, - - 58 ) ) * CAST( NULL AS SIGNED ) * - 18
----
NULL

skipif mysql # not compatible
query I rowsort label-9985
SELECT ALL - 9 * - - 64 / + - 34 + + ( - NULLIF ( + 64, - - 58 ) ) * CAST ( NULL AS INTEGER ) * - 18
----
NULL

query I rowsort
SELECT - 36 + - ( + 89 )
----
-125

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9987
SELECT - - COALESCE ( + 78, + 15 DIV 75 * 58 + - 60 ) * + COUNT( * ) col2, 20 + NULLIF ( - 62, 97 )
----
78
-42

skipif mysql # not compatible
query II rowsort label-9987
SELECT - - COALESCE ( + 78, + 15 / 75 * 58 + - 60 ) * + COUNT ( * ) col2, 20 + NULLIF ( - 62, 97 )
----
78
-42

query I rowsort
SELECT - - 90 + 59 AS col0
----
149

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-9989
SELECT + ( + COALESCE ( - + 82, 45 - 18 * + COUNT( DISTINCT - CAST( NULL AS DECIMAL ) ) DIV - 47 ) ) AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-9989
SELECT + ( + COALESCE ( - + 82, 45 - 18 * + COUNT ( DISTINCT - CAST ( NULL AS REAL ) ) / - 47 ) ) AS col0
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-9990
SELECT - COUNT( DISTINCT + - 38 ) + - 36 AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-9990
SELECT - COUNT ( DISTINCT + - 38 ) + - 36 AS col1
----
-37

query I rowsort
SELECT ALL - 93 * - 13 + 22 AS col1
----
1231

onlyif mysql # aggregate syntax: 
query I rowsort label-9992
SELECT - COUNT( * ) * + 20 AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-9992
SELECT - COUNT ( * ) * + 20 AS col1
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9993
SELECT + 91 AS col2, 56 * - - CAST( - + 17 AS SIGNED ) AS col0
----
91
-952

skipif mysql # not compatible
query II rowsort label-9993
SELECT + 91 AS col2, 56 * - - CAST ( - + 17 AS INTEGER ) AS col0
----
91
-952

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9994
SELECT - CAST( ( + 21 ) AS SIGNED ) + - 34 AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-9994
SELECT - CAST ( ( + 21 ) AS INTEGER ) + - 34 AS col2
----
-55

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9995
SELECT DISTINCT - 80 * - + NULLIF ( - + 12, - - 86 / + 65 + + AVG ( DISTINCT - - CAST( 50 AS DECIMAL ) ) ) col2
----
-960

skipif mysql # not compatible
query I rowsort label-9995
SELECT DISTINCT - 80 * - + NULLIF ( - + 12, - - 86 / + 65 + + AVG ( DISTINCT - - CAST ( 50 AS REAL ) ) ) col2
----
-960

query I rowsort
SELECT DISTINCT 56 * 52 + 40 AS col0
----
2952

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9997
SELECT ALL ( 67 ) * - + 39 * - CAST( NULL AS SIGNED ) / + CASE 6 WHEN + - 93 * + 72 THEN NULL ELSE - CASE - ( - 39 ) WHEN - 97 * 98 + - CAST( NULL AS SIGNED ) THEN + 39 ELSE NULL END + 46 END + 13
----
NULL

skipif mysql # not compatible
query I rowsort label-9997
SELECT ALL ( 67 ) * - + 39 * - CAST ( NULL AS INTEGER ) / + CASE 6 WHEN + - 93 * + 72 THEN NULL ELSE - CASE - ( - 39 ) WHEN - 97 * 98 + - CAST ( NULL AS INTEGER ) THEN + 39 ELSE NULL END + 46 END + 13
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9998
SELECT COUNT( * ), + 89 + - - 11 + + 35 * + + 36 * - - 58 AS col1
----
1
73180

skipif mysql # not compatible
query II rowsort label-9998
SELECT COUNT ( * ), + 89 + - - 11 + + 35 * + + 36 * - - 58 AS col1
----
1
73180

query I rowsort
SELECT ALL + 98 * + - 18 AS col1
----
-1764

