sqllogictest
Artifact Content
Not logged in

Artifact b64022ce3b7e15540f1ceed7fdf439556eb1954e:


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