sqllogictest
Artifact Content
Not logged in

Artifact a0b9425d1d3b8f183058da15b67115ee37555316:


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 # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-0
SELECT COALESCE ( - 67, + CAST( NULL AS SIGNED ) DIV + 7 ) col2
----
-67

skipif mysql # not compatible
query I rowsort label-0
SELECT COALESCE ( - 67, + CAST ( NULL AS INTEGER ) / + 7 ) col2
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1
SELECT - CAST( + + COUNT( ALL + 21 ) AS SIGNED ) / + 62 + 96 + - + ( COUNT( * ) ) + + 24 - + 55 * - CASE - CAST( NULL AS SIGNED ) WHEN + 62 THEN 88 + - COUNT( * ) / 12 ELSE NULL END * 86 + + 88 / SUM( ALL + ( + CAST( 65 AS SIGNED ) ) + + 66 ) * 60 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1
SELECT - CAST ( + + COUNT ( ALL + 21 ) AS INTEGER ) / + 62 + 96 + - + ( COUNT ( * ) ) + + 24 - + 55 * - CASE - CAST ( NULL AS INTEGER ) WHEN + 62 THEN 88 + - COUNT ( * ) / 12 ELSE NULL END * 86 + + 88 / SUM ( ALL + ( + CAST ( 65 AS INTEGER ) ) + + 66 ) * 60 AS col1
----
NULL

query I rowsort
SELECT - 86 * - ( + 62 ) col2
----
5332

onlyif mysql # aggregate syntax: 
query I rowsort label-3
SELECT - - ( - + 51 ) + COALESCE ( 59, - 65 + 32, + 37 * 66 * - COUNT( ALL 8 ) + - - 19 ) + - + COUNT( * )
----
7

skipif mysql # not compatible
query I rowsort label-3
SELECT - - ( - + 51 ) + COALESCE ( 59, - 65 + 32, + 37 * 66 * - COUNT ( ALL 8 ) + - - 19 ) + - + COUNT ( * )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4
SELECT + - 14 / + CASE + + 66 WHEN + - 75 + + COUNT( * ) THEN 82 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4
SELECT + - 14 / + CASE + + 66 WHEN + - 75 + + COUNT ( * ) THEN 82 END AS col0
----
NULL

query II rowsort
SELECT + + 44 + 58 AS col0, 91 + 58 * - - 1 AS col1
----
102
149

query I rowsort
SELECT DISTINCT + ( - + 39 ) * 1 AS col2
----
-39

query I rowsort
SELECT - - 95 * - 0 + + + 4 AS col2
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-8
SELECT + ( - ( - 91 ) ) DIV - 94 * + - 88 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8
SELECT + ( - ( - 91 ) ) / - 94 * + - 88 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9
SELECT 78 DIV + 82 - + COUNT( * ) + NULLIF ( + 68, 66 ) * - SUM( - 36 ) AS col0
----
2447

skipif mysql # not compatible
query I rowsort label-9
SELECT 78 / + 82 - + COUNT ( * ) + NULLIF ( + 68, 66 ) * - SUM ( - 36 ) AS col0
----
2447

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-11
SELECT + ( + + 46 ) + + 21 + - 12 + - 53 / + CASE - 87 WHEN + - 98 / - CASE WHEN - 83 IS NULL THEN + - 46 ELSE NULL END + - 54 THEN 45 * 54 WHEN COUNT( * ) + - 95 THEN NULL WHEN + 43 THEN 5 END * COALESCE ( COUNT( - 39 ), - 43 / + COUNT( * ) + 21 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-11
SELECT + ( + + 46 ) + + 21 + - 12 + - 53 / + CASE - 87 WHEN + - 98 / - CASE WHEN - 83 IS NULL THEN + - 46 ELSE NULL END + - 54 THEN 45 * 54 WHEN COUNT ( * ) + - 95 THEN NULL WHEN + 43 THEN 5 END * COALESCE ( COUNT ( - 39 ), - 43 / + COUNT ( * ) + 21 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-12
SELECT ALL + 98 DIV - COUNT( * ) + - 44
----
-142

skipif mysql # not compatible
query I rowsort label-12
SELECT ALL + 98 / - COUNT ( * ) + - 44
----
-142

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-13
SELECT + - 87 DIV - - 47 + + 6 + - CAST( + COUNT( * ) AS SIGNED )
----
4

skipif mysql # not compatible
query I rowsort label-13
SELECT + - 87 / - - 47 + + 6 + - CAST ( + COUNT ( * ) AS INTEGER )
----
4

query I rowsort
SELECT 29 * 43 * - 82 + - 7
----
-102261

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-16
SELECT ALL + COUNT( * ) * - + 97 + + + 33 + + 98 + - - 69 AS col2
----
103

skipif mysql # not compatible
query I rowsort label-16
SELECT ALL + COUNT ( * ) * - + 97 + + + 33 + + 98 + - - 69 AS col2
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-17
SELECT + - 68 + - NULLIF ( + - CASE 2 WHEN - COUNT( + NULLIF ( + 18, + + 87 ) ) * + 17 THEN NULL ELSE 88 * + ( - 95 ) END, 66 + - CASE 34 WHEN - 53 THEN NULL WHEN 1 + 45 / - 81 THEN 62 ELSE - 6 END )
----
-8428

skipif mysql # not compatible
query I rowsort label-17
SELECT + - 68 + - NULLIF ( + - CASE 2 WHEN - COUNT ( + NULLIF ( + 18, + + 87 ) ) * + 17 THEN NULL ELSE 88 * + ( - 95 ) END, 66 + - CASE 34 WHEN - 53 THEN NULL WHEN 1 + 45 / - 81 THEN 62 ELSE - 6 END )
----
-8428

query I rowsort
SELECT ALL - 15 * + + 22 + 94 + + + 70 - 71 + - - 64 AS col2
----
-173

onlyif mysql # aggregate syntax: 
query I rowsort label-19
SELECT MIN( 62 ) AS col1
----
62

skipif mysql # not compatible
query I rowsort label-19
SELECT MIN ( 62 ) AS col1
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-20
SELECT DISTINCT + COUNT( * ) AS col1, + CASE - - 58 WHEN - 55 THEN NULL ELSE + 97 END AS col2
----
1
97

skipif mysql # not compatible
query II rowsort label-20
SELECT DISTINCT + COUNT ( * ) AS col1, + CASE - - 58 WHEN - 55 THEN NULL ELSE + 97 END AS col2
----
1
97

onlyif mysql # aggregate syntax: 
query II rowsort label-21
SELECT DISTINCT NULLIF ( - 52, 20 * ( - - 80 ) + - - COUNT( 8 ) - + - 9 + + + 31 / + ( - + 54 ) ), - 79 AS col1
----
-52
-79

skipif mysql # not compatible
query II rowsort label-21
SELECT DISTINCT NULLIF ( - 52, 20 * ( - - 80 ) + - - COUNT ( 8 ) - + - 9 + + + 31 / + ( - + 54 ) ), - 79 AS col1
----
-52
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-22
SELECT ALL CASE - - 68 WHEN COUNT( * ) THEN + ( - - 1 ) WHEN - - 14 / + + 12 + - 36 + + CAST( + - SUM( - 81 ) AS SIGNED ) / - 98 + 49 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-22
SELECT ALL CASE - - 68 WHEN COUNT ( * ) THEN + ( - - 1 ) WHEN - - 14 / + + 12 + - 36 + + CAST ( + - SUM ( - 81 ) AS INTEGER ) / - 98 + 49 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-23
SELECT - COALESCE ( + - ( - 71 ), - + COUNT( * ) - 83 ) + - COUNT( * ) + 68 - + NULLIF ( COUNT( * ), - 75 - + + 46 ) * - 69 + - 96 AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-23
SELECT - COALESCE ( + - ( - 71 ), - + COUNT ( * ) - 83 ) + - COUNT ( * ) + 68 - + NULLIF ( COUNT ( * ), - 75 - + + 46 ) * - 69 + - 96 AS col1
----
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-24
SELECT DISTINCT COUNT( * ), 41 * + COUNT( COALESCE ( 91, + 62 ) ) + + 68 * + + 6 AS col0
----
1
449

skipif mysql # not compatible
query II rowsort label-24
SELECT DISTINCT COUNT ( * ), 41 * + COUNT ( COALESCE ( 91, + 62 ) ) + + 68 * + + 6 AS col0
----
1
449

onlyif mysql # DIV for integer division: 
query I rowsort label-25
SELECT ALL + 20 DIV - 64 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-25
SELECT ALL + 20 / - 64 AS col2
----
0

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

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

query II rowsort
SELECT - 21 AS col2, 39 + + 17 AS col2
----
-21
56

onlyif mysql # aggregate syntax: 
query II rowsort label-28
SELECT + 39 + + ( - - 67 ) AS col1, - 69 + COUNT( * )
----
106
-68

skipif mysql # not compatible
query II rowsort label-28
SELECT + 39 + + ( - - 67 ) AS col1, - 69 + COUNT ( * )
----
106
-68

query I rowsort
SELECT ALL 4 - - 94 AS col0
----
98

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

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

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

query I rowsort
SELECT DISTINCT + 3 * + 75 AS col2
----
225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-33
SELECT - CAST( 71 AS SIGNED ) * + 94 * + 40
----
-266960

skipif mysql # not compatible
query I rowsort label-33
SELECT - CAST ( 71 AS INTEGER ) * + 94 * + 40
----
-266960

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

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

query I rowsort
SELECT - 85 + + + 45
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-36
SELECT ALL CASE - 90 WHEN + MIN( ALL - - 20 ) THEN + + 34 END
----
NULL

skipif mysql # not compatible
query I rowsort label-36
SELECT ALL CASE - 90 WHEN + MIN ( ALL - - 20 ) THEN + + 34 END
----
NULL

query I rowsort
SELECT ALL NULLIF ( - + NULLIF ( 25, - - ( - 96 ) ), + 32 * 87 ) AS col1
----
-25

query II rowsort
SELECT 2, - 81 AS col1
----
2
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-39
SELECT - + 65 DIV - 58 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-39
SELECT - + 65 / - 58 AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-40
SELECT - + 59 + - + 94 + 50 + + + CAST( + + 35 AS SIGNED ) * - 89 * - + 12 * 77 DIV + COUNT( * )
----
2878157

skipif mysql # not compatible
query I rowsort label-40
SELECT - + 59 + - + 94 + 50 + + + CAST ( + + 35 AS INTEGER ) * - 89 * - + 12 * 77 / + COUNT ( * )
----
2878157

query I rowsort
SELECT + 49 + - + ( + - 43 ) - - 78 AS col2
----
170

query I rowsort
SELECT DISTINCT 50 * + 73 * - 14 * + - 3 AS col0
----
153300

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

skipif mysql # not compatible
query I rowsort label-43
SELECT - COUNT ( * ) * 93
----
-93

query II rowsort
SELECT 61 AS col0, + 62
----
61
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-45
SELECT + + CASE - 63 WHEN + CAST( NULL AS SIGNED ) - + 70 THEN + CAST( NULL AS SIGNED ) WHEN + 58 + - + CAST( NULL AS SIGNED ) THEN + + MIN( - 96 ) WHEN + 7 / CASE + COALESCE ( - 39, + 75 ) WHEN - 30 - - 85 / - 51 THEN 9 ELSE NULL END THEN NULL END * - 52 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-45
SELECT + + CASE - 63 WHEN + CAST ( NULL AS INTEGER ) - + 70 THEN + CAST ( NULL AS INTEGER ) WHEN + 58 + - + CAST ( NULL AS INTEGER ) THEN + + MIN ( - 96 ) WHEN + 7 / CASE + COALESCE ( - 39, + 75 ) WHEN - 30 - - 85 / - 51 THEN 9 ELSE NULL END THEN NULL END * - 52 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-46
SELECT + + 26 AS col2, ( SUM( DISTINCT - - 44 ) ) AS col1
----
26
44

skipif mysql # not compatible
query II rowsort label-46
SELECT + + 26 AS col2, ( SUM ( DISTINCT - - 44 ) ) AS col1
----
26
44

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

query I rowsort
SELECT - 22 * - - 53
----
-1166

query I rowsort
SELECT DISTINCT + + 1 col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-50
SELECT DISTINCT 80 / - - CASE + - 76 WHEN 42 THEN NULL WHEN - 66 + 32 THEN NULL ELSE + - CAST( NULL AS SIGNED ) - + 92 END
----
NULL

skipif mysql # not compatible
query I rowsort label-50
SELECT DISTINCT 80 / - - CASE + - 76 WHEN 42 THEN NULL WHEN - 66 + 32 THEN NULL ELSE + - CAST ( NULL AS INTEGER ) - + 92 END
----
NULL

query I rowsort
SELECT DISTINCT - 30 * ( + + 95 ) + + 0 col0
----
-2850

query I rowsort
SELECT - 52 + - - 88 AS col0
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-53
SELECT + CAST( - 49 AS SIGNED ) AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-53
SELECT + CAST ( - 49 AS INTEGER ) AS col0
----
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-54
SELECT + 34 DIV 35 DIV - + 13 * + + COUNT( * ) AS col1, 18 AS col0
----
0
18

skipif mysql # not compatible
query II rowsort label-54
SELECT + 34 / 35 / - + 13 * + + COUNT ( * ) AS col1, 18 AS col0
----
0
18

query I rowsort
SELECT + 46 * + 43 AS col0
----
1978

query I rowsort
SELECT + 51 * - 11
----
-561

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

onlyif mysql # aggregate syntax: 
query I rowsort label-58
SELECT MAX( ALL + - 68 ) - + 80 AS col1
----
-148

skipif mysql # not compatible
query I rowsort label-58
SELECT MAX ( ALL + - 68 ) - + 80 AS col1
----
-148

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-59
SELECT ( + COUNT( * ) ) * - 83 - - 36 * + 34 + - - CASE + 34 WHEN - COUNT( * ) * + 25 + - 8 * + 45 + + CAST( + + MAX( DISTINCT + 20 ) AS SIGNED ) THEN COUNT( * ) + 22 WHEN 46 THEN NULL ELSE 22 + COALESCE ( ( + 79 ), ( - 78 ) * 38 ) END + + ( + 96 )
----
1338

skipif mysql # not compatible
query I rowsort label-59
SELECT ( + COUNT ( * ) ) * - 83 - - 36 * + 34 + - - CASE + 34 WHEN - COUNT ( * ) * + 25 + - 8 * + 45 + + CAST ( + + MAX ( DISTINCT + 20 ) AS INTEGER ) THEN COUNT ( * ) + 22 WHEN 46 THEN NULL ELSE 22 + COALESCE ( ( + 79 ), ( - 78 ) * 38 ) END + + ( + 96 )
----
1338

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-60
SELECT DISTINCT 63 * + CAST( NULL AS SIGNED ), - MIN( - 14 ) + + 54 * 4 + 63 * 94 * - 6 AS col1
----
NULL
-35302

skipif mysql # not compatible
query II rowsort label-60
SELECT DISTINCT 63 * + CAST ( NULL AS INTEGER ), - MIN ( - 14 ) + + 54 * 4 + 63 * 94 * - 6 AS col1
----
NULL
-35302

query II rowsort
SELECT ( 51 ) * + + 3 * - 46 AS col1, 91 AS col0
----
-7038
91

onlyif mysql # aggregate syntax: 
query I rowsort label-62
SELECT DISTINCT 15 - - - SUM( 78 )
----
-63

skipif mysql # not compatible
query I rowsort label-62
SELECT DISTINCT 15 - - - SUM ( 78 )
----
-63

query I rowsort
SELECT 5 - - - 56
----
-51

query I rowsort
SELECT ( 57 ) * + 76 AS col1
----
4332

onlyif mysql # aggregate syntax: 
query I rowsort label-65
SELECT ( + COUNT( * ) ) - + 32 col0
----
-31

skipif mysql # not compatible
query I rowsort label-65
SELECT ( + COUNT ( * ) ) - + 32 col0
----
-31

query I rowsort
SELECT 18 + + + 73 AS col1
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-67
SELECT DISTINCT - CAST( + + SUM( 41 ) AS SIGNED ) AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-67
SELECT DISTINCT - CAST ( + + SUM ( 41 ) AS INTEGER ) AS col1
----
-41

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-70
SELECT + 4 DIV + + CAST( - 30 AS SIGNED ) + - 84 AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-70
SELECT + 4 / + + CAST ( - 30 AS INTEGER ) + - 84 AS col0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-71
SELECT ALL - 42 + + + COALESCE ( + 75, + COUNT( * ), 26 ) + - - 52 * - + 12 * 49 col2
----
-30543

skipif mysql # not compatible
query I rowsort label-71
SELECT ALL - 42 + + + COALESCE ( + 75, + COUNT ( * ), 26 ) + - - 52 * - + 12 * 49 col2
----
-30543

query I rowsort
SELECT + 13 * + 7 AS col2
----
91

query I rowsort
SELECT NULLIF ( 1, + 83 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-74
SELECT - 40 DIV + 13 + + MAX( + + 90 ) * COUNT( * ) - 57 + + - 67 * - - 56 * 2, 42 AS col2
----
-7474
42

skipif mysql # not compatible
query II rowsort label-74
SELECT - 40 / + 13 + + MAX ( + + 90 ) * COUNT ( * ) - 57 + + - 67 * - - 56 * 2, 42 AS col2
----
-7474
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-75
SELECT + ( + + CASE + 34 WHEN - + 69 THEN NULL WHEN + 87 + + 35 THEN + ( COUNT( * ) ) WHEN 32 THEN + + 75 + + 4 WHEN + + 6 THEN NULL END ) / + + 59 + - CAST( + 10 AS SIGNED ) * 42 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-75
SELECT + ( + + CASE + 34 WHEN - + 69 THEN NULL WHEN + 87 + + 35 THEN + ( COUNT ( * ) ) WHEN 32 THEN + + 75 + + 4 WHEN + + 6 THEN NULL END ) / + + 59 + - CAST ( + 10 AS INTEGER ) * 42 AS col0
----
NULL

query I rowsort
SELECT 10 * - 6 + - 2 * + - 3 col0
----
-54

query I rowsort
SELECT ALL + + 56 + + 57
----
113

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

onlyif mysql # DIV for integer division: 
query I rowsort label-79
SELECT + ( - 37 ) DIV - 13 - 67 + 46 * + - 55
----
-2595

skipif mysql # not compatible
query I rowsort label-79
SELECT + ( - 37 ) / - 13 - 67 + 46 * + - 55
----
-2595

onlyif mysql # aggregate syntax: 
query I rowsort label-80
SELECT - - MAX( DISTINCT 1 ) * + 53 + - 88 col1
----
-35

skipif mysql # not compatible
query I rowsort label-80
SELECT - - MAX ( DISTINCT 1 ) * + 53 + - 88 col1
----
-35

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

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

query I rowsort
SELECT ALL + 66 + + NULLIF ( - + 64, - 41 + - 70 )
----
2

query I rowsort
SELECT 41 * + + NULLIF ( - 6, + 53 )
----
-246

query I rowsort
SELECT DISTINCT - 20 * 53 AS col1
----
-1060

onlyif mysql # aggregate syntax: 
query I rowsort label-85
SELECT 60 + - MAX( DISTINCT + 67 ) + + + 45 AS col2
----
38

skipif mysql # not compatible
query I rowsort label-85
SELECT 60 + - MAX ( DISTINCT + 67 ) + + + 45 AS col2
----
38

query I rowsort
SELECT 96 * - ( + - 33 ) AS col2
----
3168

onlyif mysql # aggregate syntax: 
query I rowsort label-87
SELECT DISTINCT - 20 * - MIN( - + 67 )
----
-1340

skipif mysql # not compatible
query I rowsort label-87
SELECT DISTINCT - 20 * - MIN ( - + 67 )
----
-1340

query II rowsort
SELECT ALL - NULLIF ( - 32, 84 ) AS col2, 72 AS col1
----
32
72

query I rowsort
SELECT 86 * - + 36
----
-3096

query I rowsort
SELECT 5 + + 2 AS col1
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-91
SELECT 76 DIV - + 78 col2
----
0

skipif mysql # not compatible
query I rowsort label-91
SELECT 76 / - + 78 col2
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-93
SELECT CASE - 27 WHEN - 51 THEN - CAST( NULL AS SIGNED ) * 22 ELSE NULL END + - 13 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-93
SELECT CASE - 27 WHEN - 51 THEN - CAST ( NULL AS INTEGER ) * 22 ELSE NULL END + - 13 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-94
SELECT DISTINCT MAX( ALL 8 )
----
8

skipif mysql # not compatible
query I rowsort label-94
SELECT DISTINCT MAX ( ALL 8 )
----
8

query I rowsort
SELECT ALL + 63 * 82 AS col2
----
5166

query I rowsort
SELECT DISTINCT 10 + - 88 AS col0
----
-78

query I rowsort
SELECT DISTINCT - 93 + - 96 AS col1
----
-189

query I rowsort
SELECT - + COALESCE ( + 15, - 83, 76 * - 44 - - 69 )
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-99
SELECT DISTINCT 67 + - + 83 * + 34, 35 * - - CAST( NULL AS SIGNED ) * + COUNT( * ) + + - 54 AS col2
----
-2755
NULL

skipif mysql # not compatible
query II rowsort label-99
SELECT DISTINCT 67 + - + 83 * + 34, 35 * - - CAST ( NULL AS INTEGER ) * + COUNT ( * ) + + - 54 AS col2
----
-2755
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-100
SELECT - COUNT( * ) + 36 AS col1
----
35

skipif mysql # not compatible
query I rowsort label-100
SELECT - COUNT ( * ) + 36 AS col1
----
35

query I rowsort
SELECT DISTINCT + ( NULLIF ( - 6, + - 32 ) ) AS col2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-102
SELECT ALL 94 + + 97 + - COUNT( ALL - 37 ) AS col2
----
190

skipif mysql # not compatible
query I rowsort label-102
SELECT ALL 94 + + 97 + - COUNT ( ALL - 37 ) AS col2
----
190

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-103
SELECT + MAX( - + 27 ) * - CAST( NULL AS SIGNED ) + 21 + + + 58, + SUM( DISTINCT - 36 ) col1
----
NULL
-36

skipif mysql # not compatible
query II rowsort label-103
SELECT + MAX ( - + 27 ) * - CAST ( NULL AS INTEGER ) + 21 + + + 58, + SUM ( DISTINCT - 36 ) col1
----
NULL
-36

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-105
SELECT ALL - - COUNT( * ) * + + COUNT( * ) + + 58 col1, + ( 94 ) * + COUNT( * ) * 99 AS col1
----
59
9306

skipif mysql # not compatible
query II rowsort label-105
SELECT ALL - - COUNT ( * ) * + + COUNT ( * ) + + 58 col1, + ( 94 ) * + COUNT ( * ) * 99 AS col1
----
59
9306

query I rowsort
SELECT ALL + 75 + - 84 AS col0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-107
SELECT DISTINCT 66 * 82 + + 73 - - 79 + 40 + COALESCE ( - 91, - 77 * MAX( - - 23 ) ) * 67
----
-493

skipif mysql # not compatible
query I rowsort label-107
SELECT DISTINCT 66 * 82 + + 73 - - 79 + 40 + COALESCE ( - 91, - 77 * MAX ( - - 23 ) ) * 67
----
-493

query II rowsort
SELECT + 98 AS col1, 32 * 24
----
98
768

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

skipif mysql # not compatible
query I rowsort label-109
SELECT - NULLIF ( - COUNT ( * ), + 21 ) * 65
----
65

query I rowsort
SELECT DISTINCT 14 * 26 - - 35
----
399

onlyif mysql # DIV for integer division: 
query I rowsort label-111
SELECT ALL + 61 DIV - + 51 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-111
SELECT ALL + 61 / - + 51 AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-112
SELECT ALL + 5, + 90 / + CAST( NULL AS SIGNED ) / + 55 - - + 32 * COUNT( * ) AS col0
----
5
NULL

skipif mysql # not compatible
query II rowsort label-112
SELECT ALL + 5, + 90 / + CAST ( NULL AS INTEGER ) / + 55 - - + 32 * COUNT ( * ) AS col0
----
5
NULL

query I rowsort
SELECT - 16 * - 10
----
160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-114
SELECT DISTINCT 51 * + 22 * - 91 * + + ( - + 33 ) * - - NULLIF ( + - COUNT( * ), + 79 ) - + 68 * + CASE - CAST( - + 93 AS SIGNED ) WHEN + COUNT( * ) * - 92 THEN - - 36 END
----
NULL

skipif mysql # not compatible
query I rowsort label-114
SELECT DISTINCT 51 * + 22 * - 91 * + + ( - + 33 ) * - - NULLIF ( + - COUNT ( * ), + 79 ) - + 68 * + CASE - CAST ( - + 93 AS INTEGER ) WHEN + COUNT ( * ) * - 92 THEN - - 36 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-115
SELECT - 80 * - SUM( 15 )
----
1200

skipif mysql # not compatible
query I rowsort label-115
SELECT - 80 * - SUM ( 15 )
----
1200

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-116
SELECT + 72, - 93 * - 73 + + CAST( NULL AS SIGNED ) * - 3 AS col1
----
72
NULL

skipif mysql # not compatible
query II rowsort label-116
SELECT + 72, - 93 * - 73 + + CAST ( NULL AS INTEGER ) * - 3 AS col1
----
72
NULL

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

skipif mysql # not compatible
query II rowsort label-117
SELECT COUNT ( * ) AS col2, + 51 * - + CAST ( NULL AS INTEGER ) AS col0
----
1
NULL

query II rowsort
SELECT + 75, 82 AS col1
----
75
82

onlyif mysql # aggregate syntax: 
query I rowsort label-119
SELECT ALL - 71 * - ( COUNT( * ) ) AS col2
----
71

skipif mysql # not compatible
query I rowsort label-119
SELECT ALL - 71 * - ( COUNT ( * ) ) AS col2
----
71

query II rowsort
SELECT + 38 * + 16 * - NULLIF ( - 62, 13 + - 91 ) AS col1, 7 * + 95 AS col0
----
37696
665

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-121
SELECT - MAX( DISTINCT + 25 ) * + + COALESCE ( - 8, + NULLIF ( + 65, + MAX( DISTINCT + ( - + ( - 53 ) ) ) + - 61 ) * ( ( 22 ) ) * 96 ) - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-121
SELECT - MAX ( DISTINCT + 25 ) * + + COALESCE ( - 8, + NULLIF ( + 65, + MAX ( DISTINCT + ( - + ( - 53 ) ) ) + - 61 ) * ( ( 22 ) ) * 96 ) - - CAST ( NULL AS INTEGER )
----
NULL

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

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

query I rowsort
SELECT ALL + 26 + 70
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-124
SELECT ALL - SUM( + 24 ) * + 72 * - 57 AS col1
----
98496

skipif mysql # not compatible
query I rowsort label-124
SELECT ALL - SUM ( + 24 ) * + 72 * - 57 AS col1
----
98496

onlyif mysql # DIV for integer division: 
query I rowsort label-125
SELECT - 2 DIV + ( - 85 ) * 79 * - ( - + 75 )
----
0

skipif mysql # not compatible
query I rowsort label-125
SELECT - 2 / + ( - 85 ) * 79 * - ( - + 75 )
----
0

query I rowsort
SELECT ALL + 42 + 61 AS col0
----
103

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-129
SELECT - + COALESCE ( - 81, - CAST( - - 0 AS SIGNED ) DIV + CASE 8 WHEN 56 THEN + 11 ELSE NULL END + 31 - 67 - + MAX( + CAST( NULL AS SIGNED ) ) DIV + 34, - + 37 * 92 + + 54 + + COUNT( * ) ) - 39
----
42

skipif mysql # not compatible
query I rowsort label-129
SELECT - + COALESCE ( - 81, - CAST ( - - 0 AS INTEGER ) / + CASE 8 WHEN 56 THEN + 11 ELSE NULL END + 31 - 67 - + MAX ( + CAST ( NULL AS INTEGER ) ) / + 34, - + 37 * 92 + + 54 + + COUNT ( * ) ) - 39
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-130
SELECT - 53 * + CAST( - + 20 AS SIGNED ) AS col2
----
1060

skipif mysql # not compatible
query I rowsort label-130
SELECT - 53 * + CAST ( - + 20 AS INTEGER ) AS col2
----
1060

onlyif mysql # DIV for integer division: 
query I rowsort label-131
SELECT - - 59 DIV + + 36
----
1

skipif mysql # not compatible
query I rowsort label-131
SELECT - - 59 / + + 36
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-132
SELECT + - 54 DIV - + 26 + - ( + 54 ) - - - 21 * - COUNT( * ) * + 80 * 92 + + 3 col0
----
154511

skipif mysql # not compatible
query I rowsort label-132
SELECT + - 54 / - + 26 + - ( + 54 ) - - - 21 * - COUNT ( * ) * + 80 * 92 + + 3 col0
----
154511

query II rowsort
SELECT - 69 col2, 5 AS col2
----
-69
5

onlyif mysql # aggregate syntax: 
query I rowsort label-134
SELECT ALL - - COUNT( DISTINCT - 62 ) + 51
----
52

skipif mysql # not compatible
query I rowsort label-134
SELECT ALL - - COUNT ( DISTINCT - 62 ) + 51
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-135
SELECT ALL 28 - - + 13 DIV + 24 * 54 + + 29
----
57

skipif mysql # not compatible
query I rowsort label-135
SELECT ALL 28 - - + 13 / + 24 * 54 + + 29
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-136
SELECT + COUNT( DISTINCT + 3 ) - + 51 AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-136
SELECT + COUNT ( DISTINCT + 3 ) - + 51 AS col2
----
-50

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

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

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

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

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

query II rowsort
SELECT - 4 AS col0, 78 AS col2
----
-4
78

query I rowsort
SELECT + - 52 * + - 60
----
3120

onlyif mysql # aggregate syntax: 
query I rowsort label-142
SELECT + CASE + + SUM( 73 ) WHEN MIN( ALL 35 ) * - 80 THEN - 44 + - 68 WHEN 29 * 48 * - 83 + 56 * 15 + 98 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-142
SELECT + CASE + + SUM ( 73 ) WHEN MIN ( ALL 35 ) * - 80 THEN - 44 + - 68 WHEN 29 * 48 * - 83 + 56 * 15 + 98 THEN NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-143
SELECT ( 9 ) * COUNT( * ) * 18 * - - 27 + - CAST( NULL AS SIGNED ) - + 69 * - 48 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-143
SELECT ( 9 ) * COUNT ( * ) * 18 * - - 27 + - CAST ( NULL AS INTEGER ) - + 69 * - 48 col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-144
SELECT DISTINCT 40 / + + 12 * - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-144
SELECT DISTINCT 40 / + + 12 * - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL 57 * - 61
----
-3477

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

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

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

query I rowsort
SELECT - 62 * + 66 * - - 7 * - 63
----
1804572

query I rowsort
SELECT ALL - 72 * + 27 + - 94
----
-2038

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

skipif mysql # not compatible
query II rowsort label-150
SELECT + CAST ( - 88 AS INTEGER ), - COUNT ( * ) AS col0
----
-88
-1

query II rowsort
SELECT - 27 * - 45, - 87 * 66 AS col0
----
1215
-5742

onlyif mysql # aggregate syntax: 
query I rowsort label-152
SELECT DISTINCT COUNT( * ) * + 73 + - 74
----
-1

skipif mysql # not compatible
query I rowsort label-152
SELECT DISTINCT COUNT ( * ) * + 73 + - 74
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-153
SELECT ALL COUNT( * ) * - - 98 + + 38
----
136

skipif mysql # not compatible
query I rowsort label-153
SELECT ALL COUNT ( * ) * - - 98 + + 38
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-154
SELECT ALL + 57 * + COUNT( * ) + 60
----
117

skipif mysql # not compatible
query I rowsort label-154
SELECT ALL + 57 * + COUNT ( * ) + 60
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-155
SELECT DISTINCT - 96 * - COUNT( * ) + - SUM( - 75 )
----
171

skipif mysql # not compatible
query I rowsort label-155
SELECT DISTINCT - 96 * - COUNT ( * ) + - SUM ( - 75 )
----
171

query I rowsort
SELECT CASE - + NULLIF ( 61, - + 28 ) WHEN - 93 THEN - + 56 WHEN NULLIF ( - - 69, - 55 + - + 8 ) + 62 THEN NULL END AS col1
----
NULL

query I rowsort
SELECT ALL + 81 * - 13 + - - 85
----
-968

query I rowsort
SELECT - 32 + CASE + + 44 WHEN - - 5 THEN 9 + ( + 81 ) WHEN + 6 THEN NULL ELSE NULL END - 89 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-159
SELECT - 46 + 38 AS col1, COUNT( * )
----
-8
1

skipif mysql # not compatible
query II rowsort label-159
SELECT - 46 + 38 AS col1, COUNT ( * )
----
-8
1

query I rowsort
SELECT - 59 + + 54 AS col1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-161
SELECT DISTINCT + - COUNT( * ) * + 64 + 94 * + 59
----
5482

skipif mysql # not compatible
query I rowsort label-161
SELECT DISTINCT + - COUNT ( * ) * + 64 + 94 * + 59
----
5482

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-162
SELECT DISTINCT COALESCE ( + 51, + COUNT( * ) DIV CASE WHEN NOT NULL NOT IN ( 95, 16, - CASE - 72 WHEN - 83 THEN - 70 * + + CAST( NULL AS DECIMAL ) DIV + + 81 WHEN CAST( + COUNT( * ) AS DECIMAL ) THEN + - 13 ELSE NULL END * + 74 * + COUNT( * ) ) THEN 69 END + 27 ) AS col0
----
51

skipif mysql # not compatible
query I rowsort label-162
SELECT DISTINCT COALESCE ( + 51, + COUNT ( * ) / CASE WHEN NOT NULL NOT IN ( 95, 16, - CASE - 72 WHEN - 83 THEN - 70 * + + CAST ( NULL AS REAL ) / + + 81 WHEN CAST ( + COUNT ( * ) AS REAL ) THEN + - 13 ELSE NULL END * + 74 * + COUNT ( * ) ) THEN 69 END + 27 ) AS col0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-163
SELECT - + ( + 4 ) + - MAX( DISTINCT + + 67 ) AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-163
SELECT - + ( + 4 ) + - MAX ( DISTINCT + + 67 ) AS col2
----
-71

onlyif mysql # aggregate syntax: 
query II rowsort label-164
SELECT + - 73 + - - COALESCE ( - 70, 47, COUNT( * ) + + SUM( DISTINCT - - 2 ) ) col2, 93 AS col2
----
-143
93

skipif mysql # not compatible
query II rowsort label-164
SELECT + - 73 + - - COALESCE ( - 70, 47, COUNT ( * ) + + SUM ( DISTINCT - - 2 ) ) col2, 93 AS col2
----
-143
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-165
SELECT + ( + - COUNT( * ) ) * 69, + COALESCE ( - 31, - 44 - - 51 ) + COUNT( * ) + CAST( - + 42 AS SIGNED ) * 38 AS col1
----
-69
-1626

skipif mysql # not compatible
query II rowsort label-165
SELECT + ( + - COUNT ( * ) ) * 69, + COALESCE ( - 31, - 44 - - 51 ) + COUNT ( * ) + CAST ( - + 42 AS INTEGER ) * 38 AS col1
----
-69
-1626

query I rowsort
SELECT 41 + - 95 AS col2
----
-54

query I rowsort
SELECT ALL 19 * - 90 * + - 2
----
3420

query I rowsort
SELECT ALL + 70 * - 57
----
-3990

query II rowsort
SELECT 62 col1, - 0 AS col2
----
62
0

query I rowsort
SELECT ALL + 98 * + 32 AS col0
----
3136

query II rowsort
SELECT ALL - 25 AS col2, 35
----
-25
35

onlyif mysql # aggregate syntax: 
query I rowsort label-172
SELECT 70 * - 43 * + COUNT( + + 77 ) * COALESCE ( 84, + 37, + 0 ) AS col0
----
-252840

skipif mysql # not compatible
query I rowsort label-172
SELECT 70 * - 43 * + COUNT ( + + 77 ) * COALESCE ( 84, + 37, + 0 ) AS col0
----
-252840

onlyif mysql # aggregate syntax: 
query I rowsort label-173
SELECT DISTINCT NULLIF ( + 40, + NULLIF ( 27, + 91 + 70 ) * + 53 + 49 * + 98 + - 89 ) + - + MAX( ALL + 31 ) * COUNT( * )
----
9

skipif mysql # not compatible
query I rowsort label-173
SELECT DISTINCT NULLIF ( + 40, + NULLIF ( 27, + 91 + 70 ) * + 53 + 49 * + 98 + - 89 ) + - + MAX ( ALL + 31 ) * COUNT ( * )
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-174
SELECT ALL - 46, 91 * 16 * - 17 + - 38 * COUNT( * ) AS col0
----
-46
-24790

skipif mysql # not compatible
query II rowsort label-174
SELECT ALL - 46, 91 * 16 * - 17 + - 38 * COUNT ( * ) AS col0
----
-46
-24790

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-175
SELECT DISTINCT NULLIF ( - SUM( CAST( + 37 AS SIGNED ) ), + 66 ) + + - 91 * 92 + + + 15 DIV - + 65 AS col0
----
-8409

skipif mysql # not compatible
query I rowsort label-175
SELECT DISTINCT NULLIF ( - SUM ( CAST ( + 37 AS INTEGER ) ), + 66 ) + + - 91 * 92 + + + 15 / - + 65 AS col0
----
-8409

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-176
SELECT DISTINCT SUM( - 57 ) + - COUNT( * ) + - 6 + ( 52 ) + - COUNT( * ) * COALESCE ( 33, + - CAST( NULL AS SIGNED ) - 20 ) * - 31
----
1011

skipif mysql # not compatible
query I rowsort label-176
SELECT DISTINCT SUM ( - 57 ) + - COUNT ( * ) + - 6 + ( 52 ) + - COUNT ( * ) * COALESCE ( 33, + - CAST ( NULL AS INTEGER ) - 20 ) * - 31
----
1011

query I rowsort
SELECT ALL ( CASE - - 1 WHEN + 47 + 98 + - - 42 * + 78 THEN NULL ELSE + - 54 END ) + - - 77
----
23

onlyif mysql # DIV for integer division: 
query II rowsort label-178
SELECT + NULLIF ( - 73, - 61 ) * 31 DIV + - 70 + 16 AS col2, 51 DIV 98 * + 36 AS col0
----
48
0

skipif mysql # not compatible
query II rowsort label-178
SELECT + NULLIF ( - 73, - 61 ) * 31 / + - 70 + 16 AS col2, 51 / 98 * + 36 AS col0
----
48
0

onlyif mysql # aggregate syntax: 
query I rowsort label-179
SELECT DISTINCT - 32 - - COUNT( * ) AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-179
SELECT DISTINCT - 32 - - COUNT ( * ) AS col2
----
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-180
SELECT ALL - + 35 - + 24 - + 75 DIV - COALESCE ( - + ( - - 36 ), + 37 ) AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-180
SELECT ALL - + 35 - + 24 - + 75 / - COALESCE ( - + ( - - 36 ), + 37 ) AS col0
----
-61

query II rowsort
SELECT + 15, 40 * - 74 - 78 AS col0
----
15
-3038

onlyif mysql # aggregate syntax: 
query II rowsort label-182
SELECT DISTINCT - COUNT( - 39 ) - - COUNT( * ) AS col0, ( - - SUM( + 90 ) ) AS col1
----
0
90

skipif mysql # not compatible
query II rowsort label-182
SELECT DISTINCT - COUNT ( - 39 ) - - COUNT ( * ) AS col0, ( - - SUM ( + 90 ) ) AS col1
----
0
90

onlyif mysql # aggregate syntax: 
query II rowsort label-183
SELECT + 65 AS col0, COUNT( * ) * - 13 + + 31 AS col0
----
65
18

skipif mysql # not compatible
query II rowsort label-183
SELECT + 65 AS col0, COUNT ( * ) * - 13 + + 31 AS col0
----
65
18

onlyif mysql # aggregate syntax: 
query II rowsort label-184
SELECT ALL - 31 AS col2, + COALESCE ( - - COUNT( DISTINCT - 57 ), + 51 + - + 99 ) col0
----
-31
1

skipif mysql # not compatible
query II rowsort label-184
SELECT ALL - 31 AS col2, + COALESCE ( - - COUNT ( DISTINCT - 57 ), + 51 + - + 99 ) col0
----
-31
1

onlyif mysql # aggregate syntax: 
query I rowsort label-185
SELECT ALL MIN( ALL 84 ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-185
SELECT ALL MIN ( ALL 84 ) AS col1
----
84

query II rowsort
SELECT 96, 63 col0
----
96
63

query I rowsort
SELECT 20 - 18 AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-188
SELECT 36 * + + SUM( + + 80 ) + - + 46 + - 28 * + + 98
----
90

skipif mysql # not compatible
query I rowsort label-188
SELECT 36 * + + SUM ( + + 80 ) + - + 46 + - 28 * + + 98
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-189
SELECT 79 * - 0 * - + CAST( NULL AS SIGNED ) AS col1, + COUNT( * ) * - 78 * - 25 * - - 48 - + - 64
----
NULL
93664

skipif mysql # not compatible
query II rowsort label-189
SELECT 79 * - 0 * - + CAST ( NULL AS INTEGER ) AS col1, + COUNT ( * ) * - 78 * - 25 * - - 48 - + - 64
----
NULL
93664

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

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

query I rowsort
SELECT DISTINCT + + 63 * - 23
----
-1449

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-192
SELECT ALL + 75 + COUNT( * ) + - 75 * 80, - COUNT( * ) + + CAST( 96 AS SIGNED ) - - 73 + + 36 * 81 * COALESCE ( - - 71, + 19, - 40 + 32 ) AS col0
----
-5924
207204

skipif mysql # not compatible
query II rowsort label-192
SELECT ALL + 75 + COUNT ( * ) + - 75 * 80, - COUNT ( * ) + + CAST ( 96 AS INTEGER ) - - 73 + + 36 * 81 * COALESCE ( - - 71, + 19, - 40 + 32 ) AS col0
----
-5924
207204

onlyif mysql # aggregate syntax: 
query I rowsort label-193
SELECT COUNT( + 6 ) - - 27 AS col0
----
28

skipif mysql # not compatible
query I rowsort label-193
SELECT COUNT ( + 6 ) - - 27 AS col0
----
28

query I rowsort
SELECT ALL - 11 + 69 * - - 98
----
6751

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-195
SELECT DISTINCT + 57 + + - COALESCE ( + 55, + - NULLIF ( + 57, + + 45 * + AVG ( + 16 ) ), - 91 * - + ( - 75 ) ) + - - 89 col1, 23 + + 73 - CAST( 49 AS SIGNED ) AS col1
----
91
47

skipif mysql # not compatible
query II rowsort label-195
SELECT DISTINCT + 57 + + - COALESCE ( + 55, + - NULLIF ( + 57, + + 45 * + AVG ( + 16 ) ), - 91 * - + ( - 75 ) ) + - - 89 col1, 23 + + 73 - CAST ( 49 AS INTEGER ) AS col1
----
91
47

query II rowsort
SELECT 5 * 24, 31 + - 48 * + 85 AS col1
----
120
-4049

onlyif mysql # aggregate syntax: 
query II rowsort label-197
SELECT ALL - 39 + 71 AS col2, + NULLIF ( + 57, + COUNT( * ) + - 65 ) AS col1
----
32
57

skipif mysql # not compatible
query II rowsort label-197
SELECT ALL - 39 + 71 AS col2, + NULLIF ( + 57, + COUNT ( * ) + - 65 ) AS col1
----
32
57

onlyif mysql # aggregate syntax: 
query I rowsort label-198
SELECT DISTINCT MIN( + ( - 86 ) ) AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-198
SELECT DISTINCT MIN ( + ( - 86 ) ) AS col2
----
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-199
SELECT + 32 DIV - 24 + - 19
----
-20

skipif mysql # not compatible
query I rowsort label-199
SELECT + 32 / - 24 + - 19
----
-20

query I rowsort
SELECT ALL - 34 * + 68 * + 24 * - 92 + - 3 + - 88
----
5104805

onlyif mysql # aggregate syntax: 
query II rowsort label-201
SELECT 95 + + 94 AS col2, 63 + - 73 * + COUNT( * ) + - 43 AS col1
----
189
-53

skipif mysql # not compatible
query II rowsort label-201
SELECT 95 + + 94 AS col2, 63 + - 73 * + COUNT ( * ) + - 43 AS col1
----
189
-53

query I rowsort
SELECT ALL 51 * - 77 + + 13 * - 17 * 77 + - + 74
----
-21018

onlyif mysql # aggregate syntax: 
query II rowsort label-203
SELECT - 44 * - - 69 * - + 75 + - COUNT( * ) AS col2, + 13 AS col2
----
227699
13

skipif mysql # not compatible
query II rowsort label-203
SELECT - 44 * - - 69 * - + 75 + - COUNT ( * ) AS col2, + 13 AS col2
----
227699
13

query I rowsort
SELECT ALL + 18 * - 87 + - 77 AS col0
----
-1643

onlyif mysql # aggregate syntax: 
query II rowsort label-205
SELECT ALL - ( + + 4 ), - COUNT( * ) - + COUNT( * ) AS col0
----
-4
-2

skipif mysql # not compatible
query II rowsort label-205
SELECT ALL - ( + + 4 ), - COUNT ( * ) - + COUNT ( * ) AS col0
----
-4
-2

query I rowsort
SELECT ALL + 57 * + + 90 + + - 14 * + + 84
----
3954

onlyif mysql # aggregate syntax: 
query II rowsort label-207
SELECT DISTINCT - 95 + - + COALESCE ( - 4, - 15 * + - 28 + + 83 + + 31, + - COUNT( * ) * 66 ), 14 AS col2
----
-91
14

skipif mysql # not compatible
query II rowsort label-207
SELECT DISTINCT - 95 + - + COALESCE ( - 4, - 15 * + - 28 + + 83 + + 31, + - COUNT ( * ) * 66 ), 14 AS col2
----
-91
14

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-209
SELECT + MAX( DISTINCT ( - 6 ) ) AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-209
SELECT + MAX ( DISTINCT ( - 6 ) ) AS col2
----
-6

query I rowsort
SELECT 39 + - 71 + + 40 * 53 * 59
----
125048

onlyif mysql # aggregate syntax: 
query I rowsort label-211
SELECT ALL 38 - - + COALESCE ( - + 21, + COUNT( * ) ) AS col2
----
17

skipif mysql # not compatible
query I rowsort label-211
SELECT ALL 38 - - + COALESCE ( - + 21, + COUNT ( * ) ) AS col2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-212
SELECT MAX( - NULLIF ( + + 27, - COALESCE ( 5, - 68 * + - 28, - 4 + - - ( - - 76 ) ) + 33 ) )
----
-27

skipif mysql # not compatible
query I rowsort label-212
SELECT MAX ( - NULLIF ( + + 27, - COALESCE ( 5, - 68 * + - 28, - 4 + - - ( - - 76 ) ) + 33 ) )
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-213
SELECT - 6 * 46 / + 51 + + CAST( NULL AS DECIMAL ) + - 67 * - ( - CAST( NULL AS SIGNED ) ) * - CASE CASE + 55 WHEN - 83 THEN NULL WHEN + 14 THEN - 43 END WHEN - MIN( + - 50 ) * 63 + MIN( ALL - + 96 ) THEN COUNT( 83 ) * + 53 WHEN + COUNT( * ) / + COUNT( * ) THEN + 30 / - 11 END * - 69 + + 7 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-213
SELECT - 6 * 46 / + 51 + + CAST ( NULL AS REAL ) + - 67 * - ( - CAST ( NULL AS INTEGER ) ) * - CASE CASE + 55 WHEN - 83 THEN NULL WHEN + 14 THEN - 43 END WHEN - MIN ( + - 50 ) * 63 + MIN ( ALL - + 96 ) THEN COUNT ( 83 ) * + 53 WHEN + COUNT ( * ) / + COUNT ( * ) THEN + 30 / - 11 END * - 69 + + 7 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-214
SELECT ALL - MIN( DISTINCT - - 63 ) AS col0, ( + COUNT( * ) ) DIV + MIN( ALL + 54 ) + - - 14 - + + 53 + - + NULLIF ( + ( + - 48 ), + 78 ) DIV 6 * ( + 21 ), + - 49 col0
----
-63
129
-49

skipif mysql # not compatible
query III rowsort label-214
SELECT ALL - MIN ( DISTINCT - - 63 ) AS col0, ( + COUNT ( * ) ) / + MIN ( ALL + 54 ) + - - 14 - + + 53 + - + NULLIF ( + ( + - 48 ), + 78 ) / 6 * ( + 21 ), + - 49 col0
----
-63
129
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-215
SELECT DISTINCT - CAST( + 6 AS SIGNED )
----
-6

skipif mysql # not compatible
query I rowsort label-215
SELECT DISTINCT - CAST ( + 6 AS INTEGER )
----
-6

query I rowsort
SELECT ALL + ( - 45 ) * + + 86 col0
----
-3870

onlyif mysql # aggregate syntax: 
query II rowsort label-217
SELECT + + MIN( + 22 ) col2, NULLIF ( 22, + 41 * MAX( - + 91 ) * 70 ) - 45 * - 0 AS col0
----
22
22

skipif mysql # not compatible
query II rowsort label-217
SELECT + + MIN ( + 22 ) col2, NULLIF ( 22, + 41 * MAX ( - + 91 ) * 70 ) - 45 * - 0 AS col0
----
22
22

onlyif mysql # aggregate syntax: 
query I rowsort label-218
SELECT DISTINCT + 59 * COUNT( * ) + + 12
----
71

skipif mysql # not compatible
query I rowsort label-218
SELECT DISTINCT + 59 * COUNT ( * ) + + 12
----
71

query I rowsort
SELECT + 78 * + 30
----
2340

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-220
SELECT - COALESCE ( + NULLIF ( - 4, - ( + + 62 ) ), + CAST( - + ( - 73 ) AS SIGNED ), COALESCE ( + - NULLIF ( + NULLIF ( - - 27, + 27 / - + 30 ), COUNT( * ) ), + 7 ) )
----
4

skipif mysql # not compatible
query I rowsort label-220
SELECT - COALESCE ( + NULLIF ( - 4, - ( + + 62 ) ), + CAST ( - + ( - 73 ) AS INTEGER ), COALESCE ( + - NULLIF ( + NULLIF ( - - 27, + 27 / - + 30 ), COUNT ( * ) ), + 7 ) )
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-221
SELECT DISTINCT + 9 * NULLIF ( - 77, CASE 7 WHEN 1 / + - 29 + + 44 - 33 THEN + - 65 ELSE + ( 90 ) END ) * + + 46 + + COUNT( * ) + - 94 AS col2, CAST( - 48 AS SIGNED ) AS col0
----
-31971
-48

skipif mysql # not compatible
query II rowsort label-221
SELECT DISTINCT + 9 * NULLIF ( - 77, CASE 7 WHEN 1 / + - 29 + + 44 - 33 THEN + - 65 ELSE + ( 90 ) END ) * + + 46 + + COUNT ( * ) + - 94 AS col2, CAST ( - 48 AS INTEGER ) AS col0
----
-31971
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-222
SELECT ALL + 65 * - COUNT( * ) - + CASE 83 WHEN + - 53 + MAX( DISTINCT + NULLIF ( + 21, - 68 + + 36 ) ) THEN - - 28 + - + 1 / - 97 END
----
NULL

skipif mysql # not compatible
query I rowsort label-222
SELECT ALL + 65 * - COUNT ( * ) - + CASE 83 WHEN + - 53 + MAX ( DISTINCT + NULLIF ( + 21, - 68 + + 36 ) ) THEN - - 28 + - + 1 / - 97 END
----
NULL

query I rowsort
SELECT ALL ( - + 31 ) * - + 60 AS col0
----
1860

onlyif mysql # DIV for integer division: 
query I rowsort label-224
SELECT ALL - 26 DIV ( - 58 ) * + 82
----
0

skipif mysql # not compatible
query I rowsort label-224
SELECT ALL - 26 / ( - 58 ) * + 82
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-225
SELECT + - 21 / 34 * + + ( 69 ) + CASE 81 WHEN - NULLIF ( - - 59, - + ( 45 ) - - SUM( DISTINCT + 96 ) ) THEN CAST( + + 56 AS SIGNED ) END + 23
----
NULL

skipif mysql # not compatible
query I rowsort label-225
SELECT + - 21 / 34 * + + ( 69 ) + CASE 81 WHEN - NULLIF ( - - 59, - + ( 45 ) - - SUM ( DISTINCT + 96 ) ) THEN CAST ( + + 56 AS INTEGER ) END + 23
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-226
SELECT ALL + COUNT( * ) + 42 DIV + 2
----
22

skipif mysql # not compatible
query I rowsort label-226
SELECT ALL + COUNT ( * ) + 42 / + 2
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-227
SELECT DISTINCT + MAX( ALL + 44 ) + - 80 + + 63 + + - 41 col0
----
-14

skipif mysql # not compatible
query I rowsort label-227
SELECT DISTINCT + MAX ( ALL + 44 ) + - 80 + + 63 + + - 41 col0
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-228
SELECT - - CAST( + 21 AS SIGNED ), - 19 AS col1
----
21
-19

skipif mysql # not compatible
query II rowsort label-228
SELECT - - CAST ( + 21 AS INTEGER ), - 19 AS col1
----
21
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-229
SELECT ALL + 35 + + COUNT( * )
----
36

skipif mysql # not compatible
query I rowsort label-229
SELECT ALL + 35 + + COUNT ( * )
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-230
SELECT DISTINCT + 53 * - 36 / 5 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-230
SELECT DISTINCT + 53 * - 36 / 5 * + CAST ( NULL AS INTEGER )
----
NULL

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

query I rowsort
SELECT - 22 + + 25 col1
----
3

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

skipif mysql # not compatible
query I rowsort label-233
SELECT DISTINCT - COUNT ( * ) + - 85 AS col0
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-234
SELECT DISTINCT 75 * - COUNT( * )
----
-75

skipif mysql # not compatible
query I rowsort label-234
SELECT DISTINCT 75 * - COUNT ( * )
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-235
SELECT - 86 DIV + 82 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-235
SELECT - 86 / + 82 AS col1
----
-1

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

skipif mysql # not compatible
query I rowsort label-236
SELECT ALL - CAST ( NULL AS REAL ) + 13
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-238
SELECT DISTINCT + CASE + COALESCE ( - 60, + COUNT( * ) ) WHEN 39 THEN NULL WHEN - - 15 + - - 65 * 34 + - 0 THEN - 32 WHEN + CAST( - COUNT( * ) AS SIGNED ) THEN + 34 + - COUNT( * ) WHEN - 98 * + 50 - - + 92 - COUNT( * ) THEN 23 * + 28 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-238
SELECT DISTINCT + CASE + COALESCE ( - 60, + COUNT ( * ) ) WHEN 39 THEN NULL WHEN - - 15 + - - 65 * 34 + - 0 THEN - 32 WHEN + CAST ( - COUNT ( * ) AS INTEGER ) THEN + 34 + - COUNT ( * ) WHEN - 98 * + 50 - - + 92 - COUNT ( * ) THEN 23 * + 28 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-239
SELECT 45 * - MIN( + - 95 ) - - 48
----
4323

skipif mysql # not compatible
query I rowsort label-239
SELECT 45 * - MIN ( + - 95 ) - - 48
----
4323

onlyif mysql # aggregate syntax: 
query I rowsort label-240
SELECT + 26 * - COALESCE ( + COUNT( * ), 34 )
----
-26

skipif mysql # not compatible
query I rowsort label-240
SELECT + 26 * - COALESCE ( + COUNT ( * ), 34 )
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-241
SELECT - CAST( 5 AS SIGNED ) * - + 13 - - NULLIF ( + MIN( ALL - + 37 ), - - 58 + ( + 31 ) * - - 70 / - + 54 ) * + - 94
----
3543

skipif mysql # not compatible
query I rowsort label-241
SELECT - CAST ( 5 AS INTEGER ) * - + 13 - - NULLIF ( + MIN ( ALL - + 37 ), - - 58 + ( + 31 ) * - - 70 / - + 54 ) * + - 94
----
3543

onlyif mysql # aggregate syntax: 
query I rowsort label-242
SELECT ALL - SUM( ALL + + 30 ) * + 25 + + COUNT( * ) + - SUM( ALL 84 ) + - 10 + + - 79 - + 47 + - 32
----
-1001

skipif mysql # not compatible
query I rowsort label-242
SELECT ALL - SUM ( ALL + + 30 ) * + 25 + + COUNT ( * ) + - SUM ( ALL 84 ) + - 10 + + - 79 - + 47 + - 32
----
-1001

query I rowsort
SELECT DISTINCT + + 1 * 89 AS col1
----
89

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

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

query I rowsort
SELECT - - 91 * + COALESCE ( + - 58, - 47 ) + + 24
----
-5254

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-247
SELECT - CASE - 11 WHEN + 76 THEN 28 WHEN + - COUNT( * ) * + ( + - 28 ) * - 67 * COUNT( * ) * 55 + - - 50 * ( - + ( + 38 ) ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-247
SELECT - CASE - 11 WHEN + 76 THEN 28 WHEN + - COUNT ( * ) * + ( + - 28 ) * - 67 * COUNT ( * ) * 55 + - - 50 * ( - + ( + 38 ) ) THEN NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-248
SELECT ALL - 52 * + COUNT( 46 ) + - CASE - 37 WHEN - 56 THEN - - 5 * - 23 + + 74 + - 25 * + 63 + + CAST( + 40 AS SIGNED ) WHEN + 54 THEN COUNT( * ) * - 27 + + 15 END * - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-248
SELECT ALL - 52 * + COUNT ( 46 ) + - CASE - 37 WHEN - 56 THEN - - 5 * - 23 + + 74 + - 25 * + 63 + + CAST ( + 40 AS INTEGER ) WHEN + 54 THEN COUNT ( * ) * - 27 + + 15 END * - COUNT ( * ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-249
SELECT DISTINCT - CAST( NULL AS SIGNED ) * 31 + + - 73 / ( + - CAST( NULL AS SIGNED ) ) - - 64 * + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-249
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 31 + + - 73 / ( + - CAST ( NULL AS INTEGER ) ) - - 64 * + 89
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-250
SELECT - 8 * + 16 - - - CAST( NULL AS SIGNED ) + + CAST( NULL AS SIGNED ) - 28 AS col0, 69 DIV + ( + 19 )
----
NULL
3

skipif mysql # not compatible
query II rowsort label-250
SELECT - 8 * + 16 - - - CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER ) - 28 AS col0, 69 / + ( + 19 )
----
NULL
3

query I rowsort
SELECT DISTINCT - 37 + - 22 + - - 37
----
-22

query II rowsort
SELECT + ( 69 ) - + 48 * + 97 + 26 + + 58 AS col2, 84 * - + ( - + 20 ) - ( - 64 ) + + - 43 * - 89
----
-4503
5571

query II rowsort
SELECT DISTINCT 94, + 65 * + 73 * + 70 + + 95 + - + 67 + 52 col1
----
94
332230

query I rowsort
SELECT ALL 28 + - + 82 AS col1
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-255
SELECT + COUNT( * ) - 66 + + 84 + + CASE 31 WHEN + 27 THEN 29 * - 64 WHEN + - 79 * 57 + + 73 + 78 - + 20 * + 73 THEN NULL END * + 67 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-255
SELECT + COUNT ( * ) - 66 + + 84 + + CASE 31 WHEN + 27 THEN 29 * - 64 WHEN + - 79 * 57 + + 73 + 78 - + 20 * + 73 THEN NULL END * + 67 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 40 * + 20
----
-800

query I rowsort
SELECT DISTINCT 34 * - 27 col1
----
-918

onlyif mysql # aggregate syntax: 
query I rowsort label-258
SELECT ALL 92 + MIN( 34 ) + + MAX( + 8 ) * + 95 + - + 83 col1
----
803

skipif mysql # not compatible
query I rowsort label-258
SELECT ALL 92 + MIN ( 34 ) + + MAX ( + 8 ) * + 95 + - + 83 col1
----
803

onlyif mysql # aggregate syntax: 
query I rowsort label-259
SELECT + 4 * 50 * - COUNT( * ) AS col0
----
-200

skipif mysql # not compatible
query I rowsort label-259
SELECT + 4 * 50 * - COUNT ( * ) AS col0
----
-200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-260
SELECT - CAST( NULL AS SIGNED ) AS col2, - 54 * + 38 + - 17 + + COALESCE ( - MIN( + 42 ), 75 ) - - - ( 67 ) AS col0
----
NULL
-2178

skipif mysql # not compatible
query II rowsort label-260
SELECT - CAST ( NULL AS INTEGER ) AS col2, - 54 * + 38 + - 17 + + COALESCE ( - MIN ( + 42 ), 75 ) - - - ( 67 ) AS col0
----
NULL
-2178

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-261
SELECT DISTINCT COUNT( * ) - - - 59 DIV + COUNT( * ) + + 53 AS col0, + CAST( NULL AS SIGNED ) AS col0
----
-5
NULL

skipif mysql # not compatible
query II rowsort label-261
SELECT DISTINCT COUNT ( * ) - - - 59 / + COUNT ( * ) + + 53 AS col0, + CAST ( NULL AS INTEGER ) AS col0
----
-5
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-262
SELECT + ( COUNT( 84 ) ) + 10 - + - 99 * + + 67 AS col2
----
6644

skipif mysql # not compatible
query I rowsort label-262
SELECT + ( COUNT ( 84 ) ) + 10 - + - 99 * + + 67 AS col2
----
6644

query I rowsort
SELECT - 56 - - 41
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-264
SELECT ALL CASE - 7 WHEN + + 91 THEN - 64 + - 31 END - + 17 / 87 + - COUNT( * ) + - NULLIF ( - 57, 51 + + 34 )
----
NULL

skipif mysql # not compatible
query I rowsort label-264
SELECT ALL CASE - 7 WHEN + + 91 THEN - 64 + - 31 END - + 17 / 87 + - COUNT ( * ) + - NULLIF ( - 57, 51 + + 34 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-265
SELECT 72 AS col1, MIN( ALL 35 ) + SUM( - 61 )
----
72
-26

skipif mysql # not compatible
query II rowsort label-265
SELECT 72 AS col1, MIN ( ALL 35 ) + SUM ( - 61 )
----
72
-26

query I rowsort
SELECT + 27 + - + 14 * - ( - 27 ) AS col0
----
-351

query I rowsort
SELECT + 44 * + 95 * 30 AS col1
----
125400

query II rowsort
SELECT - 50 * + 77 col1, - 73
----
-3850
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-269
SELECT DISTINCT - NULLIF ( + - MIN( 41 ), + - COUNT( * ) + - 58 ) * + - 83 + - 96 col1
----
-3499

skipif mysql # not compatible
query I rowsort label-269
SELECT DISTINCT - NULLIF ( + - MIN ( 41 ), + - COUNT ( * ) + - 58 ) * + - 83 + - 96 col1
----
-3499

query I rowsort
SELECT ALL CASE 59 WHEN + 51 THEN + 7 + - 71 / 49 + - + 84 WHEN ( - 46 ) + + 58 THEN NULL END AS col2
----
NULL

query I rowsort
SELECT + 20 + - 47 AS col0
----
-27

query II rowsort
SELECT + 79 AS col2, - 70
----
79
-70

query I rowsort
SELECT + 97 + - 43 * 91 + - 8 - + 76 AS col1
----
-3900

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-274
SELECT ALL - 77 * - CASE + AVG ( DISTINCT + - 18 ) WHEN + + 37 + - CASE - + 14 WHEN - 21 * + 56 + - ( 87 ) THEN - 76 ELSE - 70 / CAST( NULL AS SIGNED ) + CAST( - 74 AS SIGNED ) END THEN + 28 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-274
SELECT ALL - 77 * - CASE + AVG ( DISTINCT + - 18 ) WHEN + + 37 + - CASE - + 14 WHEN - 21 * + 56 + - ( 87 ) THEN - 76 ELSE - 70 / CAST ( NULL AS INTEGER ) + CAST ( - 74 AS INTEGER ) END THEN + 28 ELSE NULL END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-276
SELECT DISTINCT 20 * ( + 71 ) * - 15 AS col0, COUNT( * )
----
-21300
1

skipif mysql # not compatible
query II rowsort label-276
SELECT DISTINCT 20 * ( + 71 ) * - 15 AS col0, COUNT ( * )
----
-21300
1

query II rowsort
SELECT + 90, 27 * + 25 AS col1
----
90
675

query I rowsort
SELECT ALL - + ( 65 ) * + 21 AS col2
----
-1365

query I rowsort
SELECT + + 70 + - 57 * + 24
----
-1298

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-280
SELECT + COUNT( * ) AS col2, 88 + + CAST( NULL AS SIGNED ) * + 47 - - COUNT( * )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-280
SELECT + COUNT ( * ) AS col2, 88 + + CAST ( NULL AS INTEGER ) * + 47 - - COUNT ( * )
----
1
NULL

query II rowsort
SELECT + 72 AS col0, + 84
----
72
84

onlyif mysql # aggregate syntax: 
query II rowsort label-282
SELECT ALL + + 99 + - COALESCE ( - COUNT( * ), 42 ), 3 AS col1
----
100
3

skipif mysql # not compatible
query II rowsort label-282
SELECT ALL + + 99 + - COALESCE ( - COUNT ( * ), 42 ), 3 AS col1
----
100
3

onlyif mysql # aggregate syntax: 
query I rowsort label-283
SELECT ALL - MAX( DISTINCT + 3 ) + + 67 * + 48
----
3213

skipif mysql # not compatible
query I rowsort label-283
SELECT ALL - MAX ( DISTINCT + 3 ) + + 67 * + 48
----
3213

onlyif mysql # aggregate syntax: 
query II rowsort label-284
SELECT + 33 AS col0, COUNT( * ) * - 22 * + 45
----
33
-990

skipif mysql # not compatible
query II rowsort label-284
SELECT + 33 AS col0, COUNT ( * ) * - 22 * + 45
----
33
-990

onlyif mysql # aggregate syntax: 
query I rowsort label-285
SELECT ALL + + COUNT( * ) * MAX( DISTINCT + 89 ) AS col1
----
89

skipif mysql # not compatible
query I rowsort label-285
SELECT ALL + + COUNT ( * ) * MAX ( DISTINCT + 89 ) AS col1
----
89

query I rowsort
SELECT ALL - 90 + - 42 AS col2
----
-132

query I rowsort
SELECT DISTINCT - 57 + + 18 - - 97 * + 64 * - ( - 4 ) AS col0
----
24793

query I rowsort
SELECT ALL + 99 * 66 * - 76 AS col1
----
-496584

onlyif mysql # aggregate syntax: 
query I rowsort label-289
SELECT + COALESCE ( - COUNT( - 25 ), 33 * + + 30 + - ( + ( 71 ) ) + - 73 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-289
SELECT + COALESCE ( - COUNT ( - 25 ), 33 * + + 30 + - ( + ( 71 ) ) + - 73 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-290
SELECT + COALESCE ( + - 33, + + COUNT( * ), + 22 ) * ( ( + - NULLIF ( - 28, + + 89 ) ) ) + 13 + + COUNT( * ) - 24 * 10 + + + 26 * - 92
----
-3542

skipif mysql # not compatible
query I rowsort label-290
SELECT + COALESCE ( + - 33, + + COUNT ( * ), + 22 ) * ( ( + - NULLIF ( - 28, + + 89 ) ) ) + 13 + + COUNT ( * ) - 24 * 10 + + + 26 * - 92
----
-3542

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-291
SELECT DISTINCT + 16, - CASE + 54 WHEN - 88 * 5 THEN NULL WHEN + 8 * + NULLIF ( + 4, - 80 * 80 ) THEN NULL ELSE + ( 83 ) * 34 + - CASE - 55 WHEN + - COUNT( - 73 ) + + + 30 THEN - 43 ELSE NULL END + - 91 END * - 81 * 5 + 54 + CAST( 52 AS DECIMAL ) AS col2
----
16
NULL

skipif mysql # not compatible
query II rowsort label-291
SELECT DISTINCT + 16, - CASE + 54 WHEN - 88 * 5 THEN NULL WHEN + 8 * + NULLIF ( + 4, - 80 * 80 ) THEN NULL ELSE + ( 83 ) * 34 + - CASE - 55 WHEN + - COUNT ( - 73 ) + + + 30 THEN - 43 ELSE NULL END + - 91 END * - 81 * 5 + 54 + CAST ( 52 AS REAL ) AS col2
----
16
NULL

query I rowsort
SELECT 89 * + + 33 col1
----
2937

onlyif mysql # aggregate syntax: 
query I rowsort label-293
SELECT 80 * COUNT( * ) + + + 7 + - - 47 * + 78 * - + COUNT( * )
----
-3579

skipif mysql # not compatible
query I rowsort label-293
SELECT 80 * COUNT ( * ) + + + 7 + - - 47 * + 78 * - + COUNT ( * )
----
-3579

onlyif mysql # aggregate syntax: 
query I rowsort label-294
SELECT DISTINCT COUNT( * ) + - 68 + + 36 - 51 + - NULLIF ( 85, + - 37 * + 31 ) * ( + 90 ) * 8 * - 32 * 50
----
97919918

skipif mysql # not compatible
query I rowsort label-294
SELECT DISTINCT COUNT ( * ) + - 68 + + 36 - 51 + - NULLIF ( 85, + - 37 * + 31 ) * ( + 90 ) * 8 * - 32 * 50
----
97919918

onlyif mysql # aggregate syntax: 
query I rowsort label-295
SELECT COUNT( * ) + + 13 * + NULLIF ( - 31, + 58 * - + 60 * + 32 ) * - 94
----
37883

skipif mysql # not compatible
query I rowsort label-295
SELECT COUNT ( * ) + + 13 * + NULLIF ( - 31, + 58 * - + 60 * + 32 ) * - 94
----
37883

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-296
SELECT DISTINCT + COALESCE ( + 60, + - 4 + - - 77 + + + 39 * + - CAST( NULL AS SIGNED ) - 89 ) DIV + 68 * 55 col1
----
0

skipif mysql # not compatible
query I rowsort label-296
SELECT DISTINCT + COALESCE ( + 60, + - 4 + - - 77 + + + 39 * + - CAST ( NULL AS INTEGER ) - 89 ) / + 68 * 55 col1
----
0

query I rowsort
SELECT 30 + - 88 * + 91 + + 40
----
-7938

onlyif mysql # aggregate syntax: 
query I rowsort label-298
SELECT NULLIF ( + 64, + SUM( - + 84 ) * + 11 ) + + 26 - 30 + + - 52 AS col0
----
8

skipif mysql # not compatible
query I rowsort label-298
SELECT NULLIF ( + 64, + SUM ( - + 84 ) * + 11 ) + + 26 - 30 + + - 52 AS col0
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-299
SELECT ALL COALESCE ( + CASE + + COUNT( * ) WHEN - 37 * + 17 + + 89 THEN + - 84 + + CASE 33 WHEN + 38 / + 58 + - 74 - - ( - 39 ) * + + 35 * - 93 THEN + CAST( NULL AS SIGNED ) + 23 END - - + ( 78 ) + - - 73 * - 57 END, - CASE + 95 WHEN + 9 * 23 THEN - 29 + 37 WHEN - 76 THEN NULL END ) * 75
----
NULL

skipif mysql # not compatible
query I rowsort label-299
SELECT ALL COALESCE ( + CASE + + COUNT ( * ) WHEN - 37 * + 17 + + 89 THEN + - 84 + + CASE 33 WHEN + 38 / + 58 + - 74 - - ( - 39 ) * + + 35 * - 93 THEN + CAST ( NULL AS INTEGER ) + 23 END - - + ( 78 ) + - - 73 * - 57 END, - CASE + 95 WHEN + 9 * 23 THEN - 29 + 37 WHEN - 76 THEN NULL END ) * 75
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-300
SELECT NULLIF ( - 20, 93 * - 24 ) DIV + + 38, + 94 AS col0
----
0
94

skipif mysql # not compatible
query II rowsort label-300
SELECT NULLIF ( - 20, 93 * - 24 ) / + + 38, + 94 AS col0
----
0
94

query I rowsort
SELECT 45 * - 2 * + + 55 AS col2
----
-4950

query I rowsort
SELECT ( + 82 ) * 80
----
6560

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-303
SELECT ALL CAST( 18 AS SIGNED ) DIV - MIN( - 95 )
----
0

skipif mysql # not compatible
query I rowsort label-303
SELECT ALL CAST ( 18 AS INTEGER ) / - MIN ( - 95 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-304
SELECT CAST( NULL AS SIGNED ) * + MIN( DISTINCT - + 69 ) + + - 92
----
NULL

skipif mysql # not compatible
query I rowsort label-304
SELECT CAST ( NULL AS INTEGER ) * + MIN ( DISTINCT - + 69 ) + + - 92
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-305
SELECT + 55 * 51 * 81 + - ( + COUNT( * ) ) DIV + 50
----
227205

skipif mysql # not compatible
query I rowsort label-305
SELECT + 55 * 51 * 81 + - ( + COUNT ( * ) ) / + 50
----
227205

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-306
SELECT ALL + 80 + + COALESCE ( - 71, - - 27 + - CAST( NULL AS DECIMAL ), + 31 ) + + COUNT( * ) * - - 77 * - 93 / - + 5 + + 68 * + - 6 + COUNT( * ) + - CASE + - COUNT( * ) WHEN - + 83 THEN - 85 WHEN + 14 THEN - 92 * AVG ( ALL + - 40 ) + + - 83 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-306
SELECT ALL + 80 + + COALESCE ( - 71, - - 27 + - CAST ( NULL AS REAL ), + 31 ) + + COUNT ( * ) * - - 77 * - 93 / - + 5 + + 68 * + - 6 + COUNT ( * ) + - CASE + - COUNT ( * ) WHEN - + 83 THEN - 85 WHEN + 14 THEN - 92 * AVG ( ALL + - 40 ) + + - 83 END AS col1
----
NULL

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

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

query I rowsort
SELECT DISTINCT + + 21 + - + 93 - 95 - + 16
----
-183

query I rowsort
SELECT + NULLIF ( + - 87, + - 80 ) AS col0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-310
SELECT ALL - - 8 + SUM( + 18 ) * 95 AS col1
----
1718

skipif mysql # not compatible
query I rowsort label-310
SELECT ALL - - 8 + SUM ( + 18 ) * 95 AS col1
----
1718

query I rowsort
SELECT 10 + - 51 AS col0
----
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-312
SELECT + COUNT( * ) * + 87 DIV - 30 - + - 8 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-312
SELECT + COUNT ( * ) * + 87 / - 30 - + - 8 AS col0
----
6

query I rowsort
SELECT ALL + - 79 + 82 + 78
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-314
SELECT ALL - - 16 + + CASE + 24 WHEN + - COUNT( * ) THEN - 63 * - 50 * - 93 DIV - - 59 + - + 17 ELSE - 75 + 14 END
----
-45

skipif mysql # not compatible
query I rowsort label-314
SELECT ALL - - 16 + + CASE + 24 WHEN + - COUNT ( * ) THEN - 63 * - 50 * - 93 / - - 59 + - + 17 ELSE - 75 + 14 END
----
-45

onlyif mysql # aggregate syntax: 
query II rowsort label-315
SELECT ALL + COUNT( * ) - - 73 AS col0, + 10 AS col1
----
74
10

skipif mysql # not compatible
query II rowsort label-315
SELECT ALL + COUNT ( * ) - - 73 AS col0, + 10 AS col1
----
74
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-316
SELECT ALL + CAST( - - 31 AS SIGNED ) - - - 12 DIV MAX( DISTINCT - 86 ) + + 71 * - COUNT( * )
----
-40

skipif mysql # not compatible
query I rowsort label-316
SELECT ALL + CAST ( - - 31 AS INTEGER ) - - - 12 / MAX ( DISTINCT - 86 ) + + 71 * - COUNT ( * )
----
-40

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-318
SELECT DISTINCT + 94 - ( + + ( - MAX( ALL 9 ) ) )
----
103

skipif mysql # not compatible
query I rowsort label-318
SELECT DISTINCT + 94 - ( + + ( - MAX ( ALL 9 ) ) )
----
103

query I rowsort
SELECT 14 * - 17
----
-238

onlyif mysql # DIV for integer division: 
query I rowsort label-320
SELECT 21 DIV - + 94 * + 49
----
0

skipif mysql # not compatible
query I rowsort label-320
SELECT 21 / - + 94 * + 49
----
0

query I rowsort
SELECT ALL + 22 * - 41
----
-902

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-322
SELECT 95 + - + COUNT( * ) * + 77 * - + MAX( + CASE - - 8 WHEN 7 THEN 31 + 51 * - 74 ELSE 38 END ), 48 * + CAST( NULL AS SIGNED ) + + - 51 AS col0
----
3021
NULL

skipif mysql # not compatible
query II rowsort label-322
SELECT 95 + - + COUNT ( * ) * + 77 * - + MAX ( + CASE - - 8 WHEN 7 THEN 31 + 51 * - 74 ELSE 38 END ), 48 * + CAST ( NULL AS INTEGER ) + + - 51 AS col0
----
3021
NULL

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

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

query I rowsort
SELECT 20 - + 23 + - 57
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-325
SELECT DISTINCT CASE + - 57 WHEN + ( + ( - 24 ) ) + + - COUNT( * ) * 1 THEN NULL WHEN + ( + 50 ) + - + COUNT( * ) THEN CASE + 2 WHEN - 13 + - 99 + - 70 THEN NULL WHEN COUNT( * ) / - MIN( - ( + + 78 ) ) + - 93 THEN NULL WHEN 4 THEN - 66 + 91 END WHEN COUNT( * ) / + 76 + 30 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-325
SELECT DISTINCT CASE + - 57 WHEN + ( + ( - 24 ) ) + + - COUNT ( * ) * 1 THEN NULL WHEN + ( + 50 ) + - + COUNT ( * ) THEN CASE + 2 WHEN - 13 + - 99 + - 70 THEN NULL WHEN COUNT ( * ) / - MIN ( - ( + + 78 ) ) + - 93 THEN NULL WHEN 4 THEN - 66 + 91 END WHEN COUNT ( * ) / + 76 + 30 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-326
SELECT DISTINCT + 4 * - COUNT( ALL + + 84 ) * 52 - - 90 - + 65 * + 75 + + COALESCE ( + 44, - - 4 ) + + ( + 63 ) * + 41 AS col2
----
-2366

skipif mysql # not compatible
query I rowsort label-326
SELECT DISTINCT + 4 * - COUNT ( ALL + + 84 ) * 52 - - 90 - + 65 * + 75 + + COALESCE ( + 44, - - 4 ) + + ( + 63 ) * + 41 AS col2
----
-2366

onlyif mysql # aggregate syntax: 
query I rowsort label-327
SELECT COUNT( * ) * - COALESCE ( 48, - - 15 ) * - 68 AS col0
----
3264

skipif mysql # not compatible
query I rowsort label-327
SELECT COUNT ( * ) * - COALESCE ( 48, - - 15 ) * - 68 AS col0
----
3264

onlyif mysql # aggregate syntax: 
query I rowsort label-328
SELECT DISTINCT COUNT( DISTINCT - 76 )
----
1

skipif mysql # not compatible
query I rowsort label-328
SELECT DISTINCT COUNT ( DISTINCT - 76 )
----
1

query I rowsort
SELECT 55 - + + 52 * 33
----
-1661

query I rowsort
SELECT ALL COALESCE ( - 76, + + 32 + + 41 * + 96, 78 ) AS col2
----
-76

query I rowsort
SELECT - 37 + 33 AS col2
----
-4

query I rowsort
SELECT + COALESCE ( - 8, - + 12 * - + 94 * - ( ( ( - 11 ) ) ) ) - - 82
----
74

query I rowsort
SELECT - ( AVG ( ALL + CASE 8 WHEN - 33 THEN - 94 WHEN - 56 THEN - 43 + + + 76 END ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-334
SELECT + 19 + - + 72 * + + COUNT( * )
----
-53

skipif mysql # not compatible
query I rowsort label-334
SELECT + 19 + - + 72 * + + COUNT ( * )
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-335
SELECT + 33 / - CASE ( - 72 ) WHEN 59 THEN NULL WHEN + + 71 + + ( + + AVG ( - CAST( NULL AS SIGNED ) ) ) THEN - + 66 END * + + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-335
SELECT + 33 / - CASE ( - 72 ) WHEN 59 THEN NULL WHEN + + 71 + + ( + + AVG ( - CAST ( NULL AS INTEGER ) ) ) THEN - + 66 END * + + 89
----
NULL

query I rowsort
SELECT + 72 + + 49
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-337
SELECT + 61 * COUNT( * ) + ( 74 )
----
135

skipif mysql # not compatible
query I rowsort label-337
SELECT + 61 * COUNT ( * ) + ( 74 )
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-338
SELECT ALL + - COUNT( * ) * 4 + - 13
----
-17

skipif mysql # not compatible
query I rowsort label-338
SELECT ALL + - COUNT ( * ) * 4 + - 13
----
-17

query II rowsort
SELECT - 18 AS col1, + 59 AS col2
----
-18
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-340
SELECT ( + 47 ) * + + 81 + - 55 + 65 - - - 49 + 55 + - 55 + - 60 + + MIN( ALL 83 ) * + 96 / + AVG ( 92 ) * 16 + - - 48 - - - 24 * + CAST( NULL AS SIGNED ) + + 11 * 19
----
NULL

skipif mysql # not compatible
query I rowsort label-340
SELECT ( + 47 ) * + + 81 + - 55 + 65 - - - 49 + 55 + - 55 + - 60 + + MIN ( ALL 83 ) * + 96 / + AVG ( 92 ) * 16 + - - 48 - - - 24 * + CAST ( NULL AS INTEGER ) + + 11 * 19
----
NULL

query II rowsort
SELECT + ( - 14 ) + + + 86 AS col2, 83 + - 78
----
72
5

query I rowsort
SELECT DISTINCT + + NULLIF ( + ( ( - 33 ) ), + 4 * + 33 ) AS col0
----
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-343
SELECT + + COUNT( * ) * COUNT( * ) * - + 31 DIV + 78 + - - 43 * + 37 + + - 7 + - 30
----
1554

skipif mysql # not compatible
query I rowsort label-343
SELECT + + COUNT ( * ) * COUNT ( * ) * - + 31 / + 78 + - - 43 * + 37 + + - 7 + - 30
----
1554

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-344
SELECT + 92 AS col2, - SUM( + 9 ) * - 1 DIV 28 + - - 45 AS col0
----
92
45

skipif mysql # not compatible
query II rowsort label-344
SELECT + 92 AS col2, - SUM ( + 9 ) * - 1 / 28 + - - 45 AS col0
----
92
45

onlyif mysql # aggregate syntax: 
query I rowsort label-345
SELECT 11 * - 35 + - - 46 + 71 * + COUNT( * ) * - 96
----
-7155

skipif mysql # not compatible
query I rowsort label-345
SELECT 11 * - 35 + - - 46 + 71 * + COUNT ( * ) * - 96
----
-7155

query I rowsort
SELECT + 15 * + 52 + + + 72 * + 1 / CASE - 91 WHEN 91 THEN NULL WHEN + 19 + ( + 92 ) * 86 * AVG ( - 97 ) - + ( + + 54 ) THEN - + 29 + - 43 END col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-347
SELECT ALL + COUNT( * ) * + + 99 - COUNT( * ) AS col2, - 70 * + - 95 AS col0
----
98
6650

skipif mysql # not compatible
query II rowsort label-347
SELECT ALL + COUNT ( * ) * + + 99 - COUNT ( * ) AS col2, - 70 * + - 95 AS col0
----
98
6650

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

onlyif mysql # aggregate syntax: 
query I rowsort label-349
SELECT DISTINCT COUNT( * ) * SUM( ALL - + 88 ) AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-349
SELECT DISTINCT COUNT ( * ) * SUM ( ALL - + 88 ) AS col2
----
-88

query I rowsort
SELECT - 81 + - 97
----
-178

query I rowsort
SELECT - 40 * + 3
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-352
SELECT ALL ( - NULLIF ( - - COUNT( * ), MAX( + 71 ) + 23 + - 86 - - COUNT( * ) + 87 ) ) * - 81 * + - COUNT( * ) AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-352
SELECT ALL ( - NULLIF ( - - COUNT ( * ), MAX ( + 71 ) + 23 + - 86 - - COUNT ( * ) + 87 ) ) * - 81 * + - COUNT ( * ) AS col1
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-353
SELECT + 45 + 62 + + 18 * + ( + + COUNT( * ) ) AS col0
----
125

skipif mysql # not compatible
query I rowsort label-353
SELECT + 45 + 62 + + 18 * + ( + + COUNT ( * ) ) AS col0
----
125

onlyif mysql # DIV for integer division: 
query I rowsort label-354
SELECT + 4 DIV 21
----
0

skipif mysql # not compatible
query I rowsort label-354
SELECT + 4 / 21
----
0

query I rowsort
SELECT - 10 * - - 62 AS col0
----
-620

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-356
SELECT + 21 + COALESCE ( - ( - 30 ), CAST( NULL AS SIGNED ) )
----
51

skipif mysql # not compatible
query I rowsort label-356
SELECT + 21 + COALESCE ( - ( - 30 ), CAST ( NULL AS INTEGER ) )
----
51

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

skipif mysql # not compatible
query I rowsort label-357
SELECT DISTINCT - COUNT ( * ) / + + 5 * - - 69 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-358
SELECT - CASE WHEN NOT + CASE + AVG ( ALL + + 26 ) WHEN ( + 47 ) + CAST( + 26 AS SIGNED ) - - COUNT( * ) * - COALESCE ( - - 44, + ( 80 ) ) + + + 47 THEN - 2 ELSE NULL END BETWEEN NULL AND - COUNT( * ) THEN + + 25 WHEN 92 + + + COUNT( * ) <= ( + ( + 40 ) + 67 ) THEN NULL END * - 82 + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-358
SELECT - CASE WHEN NOT + CASE + AVG ( ALL + + 26 ) WHEN ( + 47 ) + CAST ( + 26 AS INTEGER ) - - COUNT ( * ) * - COALESCE ( - - 44, + ( 80 ) ) + + + 47 THEN - 2 ELSE NULL END BETWEEN NULL AND - COUNT ( * ) THEN + + 25 WHEN 92 + + + COUNT ( * ) <= ( + ( + 40 ) + 67 ) THEN NULL END * - 82 + 89
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-359
SELECT - 74 * + CAST( - + 14 AS SIGNED )
----
1036

skipif mysql # not compatible
query I rowsort label-359
SELECT - 74 * + CAST ( - + 14 AS INTEGER )
----
1036

onlyif mysql # aggregate syntax: 
query I rowsort label-360
SELECT - 44 + + + COALESCE ( - COUNT( * ), + ( + 71 ) - COUNT( * ) ) - - ( - + 50 ) AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-360
SELECT - 44 + + + COALESCE ( - COUNT ( * ), + ( + 71 ) - COUNT ( * ) ) - - ( - + 50 ) AS col2
----
-95

query I rowsort
SELECT ALL - 19 + + 47 + 58
----
86

onlyif mysql # aggregate syntax: 
query II rowsort label-362
SELECT - ( - 29 ) + 85 + + COUNT( * ) AS col2, ( + 32 ) AS col2
----
115
32

skipif mysql # not compatible
query II rowsort label-362
SELECT - ( - 29 ) + 85 + + COUNT ( * ) AS col2, ( + 32 ) AS col2
----
115
32

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

query II rowsort
SELECT DISTINCT ( + 23 ) AS col2, 73 AS col1
----
23
73

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

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

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

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

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

query I rowsort
SELECT DISTINCT 18 + + 91 col1
----
109

query I rowsort
SELECT ALL 23 + 37
----
60

onlyif mysql # aggregate syntax: 
query II rowsort label-370
SELECT + 6 * - COUNT( * ), 62 + - MAX( DISTINCT + 29 ) AS col1
----
-6
33

skipif mysql # not compatible
query II rowsort label-370
SELECT + 6 * - COUNT ( * ), 62 + - MAX ( DISTINCT + 29 ) AS col1
----
-6
33

query I rowsort
SELECT + + NULLIF ( - + 77, + 80 )
----
-77

query I rowsort
SELECT - - 0 * - - 65 + + 39 col0
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-373
SELECT ALL - 7 DIV 37 - - 0 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-373
SELECT ALL - 7 / 37 - - 0 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-374
SELECT - + ( - COUNT( * ) ) * - 61 - + 54 col1, + 85 col0
----
-115
85

skipif mysql # not compatible
query II rowsort label-374
SELECT - + ( - COUNT ( * ) ) * - 61 - + 54 col1, + 85 col0
----
-115
85

query I rowsort
SELECT + - 25 * + 49 - 30 AS col2
----
-1255

query I rowsort
SELECT ALL - 20 * 71
----
-1420

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

onlyif mysql # aggregate syntax: 
query I rowsort label-378
SELECT DISTINCT + COUNT( * ) * - 97 * - 25
----
2425

skipif mysql # not compatible
query I rowsort label-378
SELECT DISTINCT + COUNT ( * ) * - 97 * - 25
----
2425

onlyif mysql # DIV for integer division: 
query I rowsort label-379
SELECT ALL + + 73 DIV 8 - - - ( + 30 ) DIV - 93 - - 49
----
58

skipif mysql # not compatible
query I rowsort label-379
SELECT ALL + + 73 / 8 - - - ( + 30 ) / - 93 - - 49
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-380
SELECT DISTINCT + 37 DIV + COUNT( ALL - + 39 ) * - COUNT( * ) + - + 61
----
-98

skipif mysql # not compatible
query I rowsort label-380
SELECT DISTINCT + 37 / + COUNT ( ALL - + 39 ) * - COUNT ( * ) + - + 61
----
-98

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-381
SELECT + 40 DIV - - CASE + 47 WHEN + - AVG ( + 79 ) + - 54 * + - AVG ( 32 ) THEN CAST( + - 81 AS SIGNED ) ELSE 55 END AS col1
----
0

skipif mysql # not compatible
query I rowsort label-381
SELECT + 40 / - - CASE + 47 WHEN + - AVG ( + 79 ) + - 54 * + - AVG ( 32 ) THEN CAST ( + - 81 AS INTEGER ) ELSE 55 END AS col1
----
0

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

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

query I rowsort
SELECT + 58 * + ( + 14 ) * + 48 + - + 31
----
38945

query I rowsort
SELECT + 28 * + 21
----
588

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-386
SELECT ALL 92 * + COALESCE ( 57, - 67 + 72 + + + 39 * - 51, - CAST( NULL AS SIGNED ) * - + 11 ) * + SUM( 18 ) AS col1
----
94392

skipif mysql # not compatible
query I rowsort label-386
SELECT ALL 92 * + COALESCE ( 57, - 67 + 72 + + + 39 * - 51, - CAST ( NULL AS INTEGER ) * - + 11 ) * + SUM ( 18 ) AS col1
----
94392

query I rowsort
SELECT + 98 * - 31 AS col2
----
-3038

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-388
SELECT ALL - 50 * 99 * + + 73 + MIN( - 31 ) + MIN( DISTINCT - + 36 ) + + 7 DIV COUNT( * ) * 60 + - 69 AS col2
----
-361066

skipif mysql # not compatible
query I rowsort label-388
SELECT ALL - 50 * 99 * + + 73 + MIN ( - 31 ) + MIN ( DISTINCT - + 36 ) + + 7 / COUNT ( * ) * 60 + - 69 AS col2
----
-361066

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-390
SELECT CASE - - ( 36 ) WHEN + ( - + 14 ) THEN NULL WHEN + CAST( + 37 AS DECIMAL ) THEN - 69 WHEN + 0 * - 22 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-390
SELECT CASE - - ( 36 ) WHEN + ( - + 14 ) THEN NULL WHEN + CAST ( + 37 AS REAL ) THEN - 69 WHEN + 0 * - 22 THEN NULL END
----
NULL

query I rowsort
SELECT ALL 56 + - 17
----
39

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-393
SELECT 74 DIV - COUNT( * ) * + COUNT( * ) AS col2, - 36
----
-74
-36

skipif mysql # not compatible
query II rowsort label-393
SELECT 74 / - COUNT ( * ) * + COUNT ( * ) AS col2, - 36
----
-74
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-394
SELECT 45 - + CASE ( COUNT( * ) ) WHEN 82 THEN 16 * - + COUNT( * ) * - - 0 WHEN - 8 * 78 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-394
SELECT 45 - + CASE ( COUNT ( * ) ) WHEN 82 THEN 16 * - + COUNT ( * ) * - - 0 WHEN - 8 * 78 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-395
SELECT ALL + 60 + + - MAX( DISTINCT + 27 ) + 78 + 68
----
179

skipif mysql # not compatible
query I rowsort label-395
SELECT ALL + 60 + + - MAX ( DISTINCT + 27 ) + 78 + 68
----
179

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-396
SELECT CAST( + 96 AS SIGNED ) + + NULLIF ( 26, + COALESCE ( 16, - 60 + + - 13 + COUNT( * ) ) )
----
122

skipif mysql # not compatible
query I rowsort label-396
SELECT CAST ( + 96 AS INTEGER ) + + NULLIF ( 26, + COALESCE ( 16, - 60 + + - 13 + COUNT ( * ) ) )
----
122

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

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

query I rowsort
SELECT ALL 24 + + ( - 89 ) * + 72 AS col2
----
-6384

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-399
SELECT - 63 * + CAST( + + 41 AS SIGNED ) * + 32 + + 59 * - + 59
----
-86137

skipif mysql # not compatible
query I rowsort label-399
SELECT - 63 * + CAST ( + + 41 AS INTEGER ) * + 32 + + 59 * - + 59
----
-86137

onlyif mysql # DIV for integer division: 
query I rowsort label-400
SELECT DISTINCT 33 DIV - - 44 * + 87 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-400
SELECT DISTINCT 33 / - - 44 * + 87 AS col2
----
0

query I rowsort
SELECT DISTINCT - - 14 * + + 72
----
1008

query II rowsort
SELECT - 97 AS col0, + 83
----
-97
83

query II rowsort
SELECT ALL 51 * - 52 + + 24 + 58 * + 82 AS col0, + 81 + 25 AS col0
----
2128
106

query I rowsort
SELECT DISTINCT - 74 - + - 32 + + 14 col1
----
-28

query I rowsort
SELECT - ( 49 ) + + + 58
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-406
SELECT + 4 + 6 * - - 75 + - 42 + - 69 * + - 83 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-406
SELECT + 4 + 6 * - - 75 + - 42 + - 69 * + - 83 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

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

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

query I rowsort
SELECT 34 * 96
----
3264

query II rowsort
SELECT ALL 76 AS col2, 86 AS col2
----
76
86

query I rowsort
SELECT + 70 + - - 33 AS col2
----
103

query I rowsort
SELECT ALL 40 * + - 67
----
-2680

onlyif mysql # aggregate syntax: 
query II rowsort label-412
SELECT - 37, 3 + - - COUNT( * ) AS col1
----
-37
4

skipif mysql # not compatible
query II rowsort label-412
SELECT - 37, 3 + - - COUNT ( * ) AS col1
----
-37
4

onlyif mysql # aggregate syntax: 
query II rowsort label-413
SELECT + + 81 * 22 + + 20, - COUNT( * ) AS col2
----
1802
-1

skipif mysql # not compatible
query II rowsort label-413
SELECT + + 81 * 22 + + 20, - COUNT ( * ) AS col2
----
1802
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-414
SELECT ALL - 44, + 13 * + MIN( ALL 95 ) - + 79 col0
----
-44
1156

skipif mysql # not compatible
query II rowsort label-414
SELECT ALL - 44, + 13 * + MIN ( ALL 95 ) - + 79 col0
----
-44
1156

query I rowsort
SELECT 34 * + 70 col0
----
2380

query I rowsort
SELECT ALL + 8 * + 30 + 12
----
252

onlyif mysql # aggregate syntax: 
query I rowsort label-417
SELECT - MAX( DISTINCT + - 64 ) AS col2
----
64

skipif mysql # not compatible
query I rowsort label-417
SELECT - MAX ( DISTINCT + - 64 ) AS col2
----
64

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

onlyif mysql # aggregate syntax: 
query II rowsort label-419
SELECT DISTINCT - COUNT( - + ( - ( - ( + 30 ) ) ) ) AS col2, - 42 * - + 6
----
-1
252

skipif mysql # not compatible
query II rowsort label-419
SELECT DISTINCT - COUNT ( - + ( - ( - ( + 30 ) ) ) ) AS col2, - 42 * - + 6
----
-1
252

query I rowsort
SELECT ALL - 63 * - 98
----
6174

query I rowsort
SELECT 4 * + 65 AS col1
----
260

query I rowsort
SELECT 40 * 67 * - - 34 AS col1
----
91120

onlyif mysql # aggregate syntax: 
query I rowsort label-423
SELECT - COUNT( ALL + 27 ) * + - COUNT( * ) + - 51 * COUNT( * ) col0
----
-50

skipif mysql # not compatible
query I rowsort label-423
SELECT - COUNT ( ALL + 27 ) * + - COUNT ( * ) + - 51 * COUNT ( * ) col0
----
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-424
SELECT DISTINCT - NULLIF ( - + 28, - + 31 ) * - - 14 * CAST( + 21 AS SIGNED ) col0
----
8232

skipif mysql # not compatible
query I rowsort label-424
SELECT DISTINCT - NULLIF ( - + 28, - + 31 ) * - - 14 * CAST ( + 21 AS INTEGER ) col0
----
8232

query II rowsort
SELECT - 22 * 14 * - - 29 + + + NULLIF ( - COALESCE ( 68, - 29, 95 * + - 53 + - 63 ), + 77 ), + 20 * + ( - 0 ) AS col1
----
-9000
0

query I rowsort
SELECT DISTINCT 10 + - 15
----
-5

query I rowsort
SELECT DISTINCT + 45 * - - 30 * + 97 AS col1
----
130950

onlyif mysql # aggregate syntax: 
query II rowsort label-428
SELECT ALL - ( 16 ) + + SUM( + + 24 ) * + MAX( DISTINCT 43 ) AS col1, 68
----
1016
68

skipif mysql # not compatible
query II rowsort label-428
SELECT ALL - ( 16 ) + + SUM ( + + 24 ) * + MAX ( DISTINCT 43 ) AS col1, 68
----
1016
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-429
SELECT DISTINCT - 17, - NULLIF ( MIN( 5 ), 12 + + ( - MIN( ( + 33 ) ) ) - - 12 * + - 38 ) * + + ( - 74 ) + CAST( NULL AS SIGNED ) + - 57 + + 51 AS col1
----
-17
NULL

skipif mysql # not compatible
query II rowsort label-429
SELECT DISTINCT - 17, - NULLIF ( MIN ( 5 ), 12 + + ( - MIN ( ( + 33 ) ) ) - - 12 * + - 38 ) * + + ( - 74 ) + CAST ( NULL AS INTEGER ) + - 57 + + 51 AS col1
----
-17
NULL

query I rowsort
SELECT ALL 62 + - 1 * + 83
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-431
SELECT SUM( DISTINCT 1 ) + 91
----
92

skipif mysql # not compatible
query I rowsort label-431
SELECT SUM ( DISTINCT 1 ) + 91
----
92

query I rowsort
SELECT DISTINCT ( + 49 ) + - 19 + 86 + - 70
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-433
SELECT 29 * 55 * - 87 * - NULLIF ( + COUNT( * ), + ( - COUNT( * ) ) * 64 * - 58 ) AS col1, 17 DIV + CAST( + 99 AS SIGNED )
----
138765
0

skipif mysql # not compatible
query II rowsort label-433
SELECT 29 * 55 * - 87 * - NULLIF ( + COUNT ( * ), + ( - COUNT ( * ) ) * 64 * - 58 ) AS col1, 17 / + CAST ( + 99 AS INTEGER )
----
138765
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-434
SELECT COUNT( ALL + 30 ) * + 93 + + - 73 + + NULLIF ( 75, + 40 * - - 14 * MIN( + 66 ) * - 10 + 18 + - + 12 ) DIV + - 2
----
-17

skipif mysql # not compatible
query I rowsort label-434
SELECT COUNT ( ALL + 30 ) * + 93 + + - 73 + + NULLIF ( 75, + 40 * - - 14 * MIN ( + 66 ) * - 10 + 18 + - + 12 ) / + - 2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-435
SELECT ALL 50 + + COUNT( * ) * NULLIF ( - + 61, 75 ) AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-435
SELECT ALL 50 + + COUNT ( * ) * NULLIF ( - + 61, 75 ) AS col1
----
-11

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-437
SELECT DISTINCT - 6 AS col0, + ( - + ( - 18 ) ) + + 45 + + 88 * + COUNT( * ) * - COUNT( * )
----
-6
-25

skipif mysql # not compatible
query II rowsort label-437
SELECT DISTINCT - 6 AS col0, + ( - + ( - 18 ) ) + + 45 + + 88 * + COUNT ( * ) * - COUNT ( * )
----
-6
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-438
SELECT COUNT( * ) + ( + 44 ) col2
----
45

skipif mysql # not compatible
query I rowsort label-438
SELECT COUNT ( * ) + ( + 44 ) col2
----
45

query I rowsort
SELECT ALL - 56 + + 11 - 27
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-440
SELECT ALL COUNT( ALL + 23 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-440
SELECT ALL COUNT ( ALL + 23 ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-441
SELECT DISTINCT 37 + - ( + COUNT( * ) ) + + + COALESCE ( - COUNT( + 50 ), + COALESCE ( 52, - - 92 + + 52 ), - 53 + NULLIF ( - 26, + 37 / + COUNT( * ) ) * - + CAST( NULL AS SIGNED ) ) + - 95 * - 62 + + 85
----
6010

skipif mysql # not compatible
query I rowsort label-441
SELECT DISTINCT 37 + - ( + COUNT ( * ) ) + + + COALESCE ( - COUNT ( + 50 ), + COALESCE ( 52, - - 92 + + 52 ), - 53 + NULLIF ( - 26, + 37 / + COUNT ( * ) ) * - + CAST ( NULL AS INTEGER ) ) + - 95 * - 62 + + 85
----
6010

onlyif mysql # aggregate syntax: 
query I rowsort label-442
SELECT ALL MIN( DISTINCT - 64 ) + - 67 + + 99
----
-32

skipif mysql # not compatible
query I rowsort label-442
SELECT ALL MIN ( DISTINCT - 64 ) + - 67 + + 99
----
-32

query I rowsort
SELECT ALL 55 * 99
----
5445

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

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

query I rowsort
SELECT + 61 + + 74
----
135

query I rowsort
SELECT DISTINCT ( + 52 ) - - 76
----
128

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-447
SELECT - COALESCE ( + CASE - 33 WHEN - 48 THEN MIN( ALL + 80 ) - 32 * 94 ELSE NULL END, + COUNT( * ) DIV - + 36, - - COUNT( * ) ) AS col1, + 91 * - - 10
----
0
910

skipif mysql # not compatible
query II rowsort label-447
SELECT - COALESCE ( + CASE - 33 WHEN - 48 THEN MIN ( ALL + 80 ) - 32 * 94 ELSE NULL END, + COUNT ( * ) / - + 36, - - COUNT ( * ) ) AS col1, + 91 * - - 10
----
0
910

query I rowsort
SELECT ALL - 70 - + 97
----
-167

query I rowsort
SELECT - COALESCE ( + - 10, - 19 ) * + 98 * - ( - - 90 ) AS col2
----
-88200

query II rowsort
SELECT 88 AS col0, - 2 * - 37 + + 79 * 31 AS col0
----
88
2523

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-451
SELECT - 9, CAST( NULL AS DECIMAL ) AS col2
----
-9
NULL

skipif mysql # not compatible
query II rowsort label-451
SELECT - 9, CAST ( NULL AS REAL ) AS col2
----
-9
NULL

query II rowsort
SELECT DISTINCT 32, - 62 AS col2
----
32
-62

query II rowsort
SELECT ALL + 36 AS col2, - ( 54 ) AS col1
----
36
-54

query II rowsort
SELECT + 10, + 58 AS col2
----
10
58

onlyif mysql # aggregate syntax: 
query I rowsort label-455
SELECT DISTINCT + 70 * + COUNT( * ) + - NULLIF ( - 23, SUM( ALL 29 ) + - 22 ) AS col0
----
93

skipif mysql # not compatible
query I rowsort label-455
SELECT DISTINCT + 70 * + COUNT ( * ) + - NULLIF ( - 23, SUM ( ALL 29 ) + - 22 ) AS col0
----
93

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-457
SELECT ALL 51 DIV + 62
----
0

skipif mysql # not compatible
query I rowsort label-457
SELECT ALL 51 / + 62
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-458
SELECT + 91 DIV - 98 AS col2, + 11 AS col2
----
0
11

skipif mysql # not compatible
query II rowsort label-458
SELECT + 91 / - 98 AS col2, + 11 AS col2
----
0
11

onlyif mysql # aggregate syntax: 
query I rowsort label-459
SELECT DISTINCT + 37 * - 65 * + COALESCE ( + - 87, 99 + - 31 + - 69 * + - CASE + - 79 WHEN - 24 THEN MAX( DISTINCT + + 64 ) + - 12 * + 73 * 55 END * COUNT( * ) + 12, + CASE - - 0 WHEN + + COUNT( * ) * - 68 + COUNT( * ) - - 73 / + 25 THEN - 79 * - COUNT( * ) * + 6 + MIN( DISTINCT - 52 ) WHEN + NULLIF ( 52, 58 ) / 66 THEN NULL WHEN 84 - + 43 THEN COUNT( * ) END )
----
209235

skipif mysql # not compatible
query I rowsort label-459
SELECT DISTINCT + 37 * - 65 * + COALESCE ( + - 87, 99 + - 31 + - 69 * + - CASE + - 79 WHEN - 24 THEN MAX ( DISTINCT + + 64 ) + - 12 * + 73 * 55 END * COUNT ( * ) + 12, + CASE - - 0 WHEN + + COUNT ( * ) * - 68 + COUNT ( * ) - - 73 / + 25 THEN - 79 * - COUNT ( * ) * + 6 + MIN ( DISTINCT - 52 ) WHEN + NULLIF ( 52, 58 ) / 66 THEN NULL WHEN 84 - + 43 THEN COUNT ( * ) END )
----
209235

query I rowsort
SELECT + 34 + - 13 + + 13 * + 65 AS col1
----
866

query II rowsort
SELECT - 43 * + - 16, 99 col2
----
688
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-462
SELECT ( 75 ) + + CASE - + 12 WHEN 35 THEN NULL WHEN CAST( + + 22 AS SIGNED ) * + 1 * 7 * + + 21 * + 5 THEN + - 20 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-462
SELECT ( 75 ) + + CASE - + 12 WHEN 35 THEN NULL WHEN CAST ( + + 22 AS INTEGER ) * + 1 * 7 * + + 21 * + 5 THEN + - 20 ELSE NULL END
----
NULL

query II rowsort
SELECT 6, 0 AS col2
----
6
0

query I rowsort
SELECT DISTINCT - + 66 * 91 + - 54 * - 1 + - 67
----
-6019

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-465
SELECT ALL - 89 * + 19 * - 49 + + 97 * - + CASE + 77 WHEN AVG ( DISTINCT + ( - + 25 ) ) * - 96 + - 12 * 63 * + - CAST( NULL AS SIGNED ) THEN + NULLIF ( 40, AVG ( 94 ) * - 68 + - 67 DIV - - COALESCE ( COUNT( * ), + - 38 + - MIN( CAST( NULL AS SIGNED ) ) ) ) DIV - 88 + - ( + - 57 ) ELSE 9 * 1 END * COUNT( ALL 36 ) AS col0
----
81986

skipif mysql # not compatible
query I rowsort label-465
SELECT ALL - 89 * + 19 * - 49 + + 97 * - + CASE + 77 WHEN AVG ( DISTINCT + ( - + 25 ) ) * - 96 + - 12 * 63 * + - CAST ( NULL AS INTEGER ) THEN + NULLIF ( 40, AVG ( 94 ) * - 68 + - 67 / - - COALESCE ( COUNT ( * ), + - 38 + - MIN ( CAST ( NULL AS INTEGER ) ) ) ) / - 88 + - ( + - 57 ) ELSE 9 * 1 END * COUNT ( ALL 36 ) AS col0
----
81986

query I rowsort
SELECT 20 * + 57 col2
----
1140

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-467
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - - 80 + - COUNT( * ) + 87 / + 7 / + - 5 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-467
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - - 80 + - COUNT ( * ) + 87 / + 7 / + - 5 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-468
SELECT 4 DIV + COALESCE ( + 69, + 92, - ( 20 ) * - + 44 + + 49 * 72 + + COUNT( DISTINCT - 60 ) ) * - + 72 + + + 79 + - COUNT( * ) * - 70 + - + COUNT( * ) AS col0
----
148

skipif mysql # not compatible
query I rowsort label-468
SELECT 4 / + COALESCE ( + 69, + 92, - ( 20 ) * - + 44 + + 49 * 72 + + COUNT ( DISTINCT - 60 ) ) * - + 72 + + + 79 + - COUNT ( * ) * - 70 + - + COUNT ( * ) AS col0
----
148

query II rowsort
SELECT DISTINCT 18 * 29 + 1, 74 + + - 90 col0
----
523
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-470
SELECT ALL - 29 * + 79 + COUNT( DISTINCT + + 41 ) AS col2
----
-2290

skipif mysql # not compatible
query I rowsort label-470
SELECT ALL - 29 * + 79 + COUNT ( DISTINCT + + 41 ) AS col2
----
-2290

query I rowsort
SELECT DISTINCT + 14 * 29
----
406

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-472
SELECT ALL + MAX( + CAST( NULL AS SIGNED ) ), - 10 + - + SUM( DISTINCT + 37 ) + - CAST( NULL AS SIGNED ) + 89 * 62 AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-472
SELECT ALL + MAX ( + CAST ( NULL AS INTEGER ) ), - 10 + - + SUM ( DISTINCT + 37 ) + - CAST ( NULL AS INTEGER ) + 89 * 62 AS col0
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-473
SELECT - COUNT( * ) * - 76 * - + COUNT( * ) AS col1, 30 + - 93 + + - ( + 31 ) AS col2
----
-76
-94

skipif mysql # not compatible
query II rowsort label-473
SELECT - COUNT ( * ) * - 76 * - + COUNT ( * ) AS col1, 30 + - 93 + + - ( + 31 ) AS col2
----
-76
-94

onlyif mysql # aggregate syntax: 
query II rowsort label-474
SELECT 5 * + 20 - + NULLIF ( - + ( + - 43 ), 66 + 47 - - NULLIF ( + - 60, + 43 ) * COUNT( * ) ) + COUNT( * ), ( - 80 ) AS col1
----
58
-80

skipif mysql # not compatible
query II rowsort label-474
SELECT 5 * + 20 - + NULLIF ( - + ( + - 43 ), 66 + 47 - - NULLIF ( + - 60, + 43 ) * COUNT ( * ) ) + COUNT ( * ), ( - 80 ) AS col1
----
58
-80

query I rowsort
SELECT DISTINCT + 14 * + ( + - 67 )
----
-938

onlyif mysql # aggregate syntax: 
query I rowsort label-476
SELECT + COUNT( ALL - NULLIF ( + 84, + - 4 ) )
----
1

skipif mysql # not compatible
query I rowsort label-476
SELECT + COUNT ( ALL - NULLIF ( + 84, + - 4 ) )
----
1

query I rowsort
SELECT ALL + 97 * + 25 col0
----
2425

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-478
SELECT - COUNT( * ) DIV - - 55 AS col0, + ( 88 ) col2
----
0
88

skipif mysql # not compatible
query II rowsort label-478
SELECT - COUNT ( * ) / - - 55 AS col0, + ( 88 ) col2
----
0
88

onlyif mysql # aggregate syntax: 
query I rowsort label-479
SELECT DISTINCT + COUNT( * ) * - ( 4 ) * 32 col0
----
-128

skipif mysql # not compatible
query I rowsort label-479
SELECT DISTINCT + COUNT ( * ) * - ( 4 ) * 32 col0
----
-128

onlyif mysql # aggregate syntax: 
query II rowsort label-480
SELECT ALL 96 - - 20 + - ( + COUNT( 5 ) ) + - 20 + 92, + 59 + + 63 * + COUNT( ALL - - CASE + 7 WHEN - + 26 * + 48 THEN + + 85 WHEN + + NULLIF ( ( + - 81 ), 40 ) THEN 43 ELSE NULL END ) AS col0
----
187
59

skipif mysql # not compatible
query II rowsort label-480
SELECT ALL 96 - - 20 + - ( + COUNT ( 5 ) ) + - 20 + 92, + 59 + + 63 * + COUNT ( ALL - - CASE + 7 WHEN - + 26 * + 48 THEN + + 85 WHEN + + NULLIF ( ( + - 81 ), 40 ) THEN 43 ELSE NULL END ) AS col0
----
187
59

query II rowsort
SELECT ALL + 97 * + 56 AS col0, 61 AS col1
----
5432
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-482
SELECT DISTINCT - 43 - - 34 * + 90 - + 62 + + 6 - + - ( + - MIN( - 42 ) ) DIV 92 * 18 AS col1
----
2961

skipif mysql # not compatible
query I rowsort label-482
SELECT DISTINCT - 43 - - 34 * + 90 - + 62 + + 6 - + - ( + - MIN ( - 42 ) ) / 92 * 18 AS col1
----
2961

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-483
SELECT DISTINCT CASE + CAST( + 99 AS SIGNED ) WHEN - - 47 THEN NULL ELSE + - 31 END DIV + 79 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-483
SELECT DISTINCT CASE + CAST ( + 99 AS INTEGER ) WHEN - - 47 THEN NULL ELSE + - 31 END / + 79 AS col1
----
0

query I rowsort
SELECT ALL - + 93 - 41 - + + 8 * + 77 * + - 36
----
22042

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-487
SELECT DISTINCT - 82 DIV + - 15, 28 * - 49 * - MAX( + - 85 ) AS col2
----
5
-116620

skipif mysql # not compatible
query II rowsort label-487
SELECT DISTINCT - 82 / + - 15, 28 * - 49 * - MAX ( + - 85 ) AS col2
----
5
-116620

onlyif mysql # aggregate syntax: 
query II rowsort label-488
SELECT - 25 + + 27 AS col1, COALESCE ( ( + + 21 ), + COUNT( * ) ) AS col0
----
2
21

skipif mysql # not compatible
query II rowsort label-488
SELECT - 25 + + 27 AS col1, COALESCE ( ( + + 21 ), + COUNT ( * ) ) AS col0
----
2
21

query II rowsort
SELECT + + NULLIF ( + 60, - 18 ) * + + ( + COALESCE ( 76, 65 ) ), 25 * 44 * + + 89 * + + 96 - 40 AS col2
----
4560
9398360

query I rowsort
SELECT + 39 + + - 1
----
38

query I rowsort
SELECT + + 52 * - 88
----
-4576

query I rowsort
SELECT + - 94 + - + 84
----
-178

onlyif mysql # aggregate syntax: 
query II rowsort label-493
SELECT + 88 + - 13 col0, COUNT( ALL - COALESCE ( 27, - + 76 ) ) AS col0
----
75
1

skipif mysql # not compatible
query II rowsort label-493
SELECT + 88 + - 13 col0, COUNT ( ALL - COALESCE ( 27, - + 76 ) ) AS col0
----
75
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-494
SELECT ALL 58 * - - CAST( NULL AS SIGNED ) / 53
----
NULL

skipif mysql # not compatible
query I rowsort label-494
SELECT ALL 58 * - - CAST ( NULL AS INTEGER ) / 53
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-495
SELECT + 28 * - - COALESCE ( 82, - - 85, + COUNT( * ) + - ( - CASE + - 88 WHEN - ( + 25 ) THEN - 64 END ) + 84 ) AS col2
----
2296

skipif mysql # not compatible
query I rowsort label-495
SELECT + 28 * - - COALESCE ( 82, - - 85, + COUNT ( * ) + - ( - CASE + - 88 WHEN - ( + 25 ) THEN - 64 END ) + 84 ) AS col2
----
2296

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

onlyif mysql # aggregate syntax: 
query I rowsort label-497
SELECT + COUNT( * ) + - 96 AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-497
SELECT + COUNT ( * ) + - 96 AS col2
----
-95

query II rowsort
SELECT DISTINCT - ( + 90 ) AS col0, + 64
----
-90
64

onlyif mysql # aggregate syntax: 
query I rowsort label-499
SELECT DISTINCT + COUNT( * ) + + - 15
----
-14

skipif mysql # not compatible
query I rowsort label-499
SELECT DISTINCT + COUNT ( * ) + + - 15
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-500
SELECT ALL 85 + + SUM( DISTINCT 60 ) AS col2
----
145

skipif mysql # not compatible
query I rowsort label-500
SELECT ALL 85 + + SUM ( DISTINCT 60 ) AS col2
----
145

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-501
SELECT + 55 + - - 83 + + 1 AS col2, ( + NULLIF ( ( + COALESCE ( 89, 83 ) ), CAST( 90 AS SIGNED ) * COUNT( 41 ) + + 78 ) ) col1
----
139
89

skipif mysql # not compatible
query II rowsort label-501
SELECT + 55 + - - 83 + + 1 AS col2, ( + NULLIF ( ( + COALESCE ( 89, 83 ) ), CAST ( 90 AS INTEGER ) * COUNT ( 41 ) + + 78 ) ) col1
----
139
89

onlyif mysql # aggregate syntax: 
query I rowsort label-502
SELECT + SUM( DISTINCT + 19 ) + 45 + NULLIF ( - 24, + COUNT( * ) * + NULLIF ( 99, + COALESCE ( ( + 68 ), + - COUNT( * ) + - 35, + + 12 ) * ( - 3 ) + 37 / - 7 + - - 83 ) ) AS col2
----
40

skipif mysql # not compatible
query I rowsort label-502
SELECT + SUM ( DISTINCT + 19 ) + 45 + NULLIF ( - 24, + COUNT ( * ) * + NULLIF ( 99, + COALESCE ( ( + 68 ), + - COUNT ( * ) + - 35, + + 12 ) * ( - 3 ) + 37 / - 7 + - - 83 ) ) AS col2
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-503
SELECT CAST( + NULLIF ( - 90, 28 ) AS SIGNED ) AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-503
SELECT CAST ( + NULLIF ( - 90, 28 ) AS INTEGER ) AS col0
----
-90

query I rowsort
SELECT ALL + 0 * - 29 * - - 77 * 4 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-505
SELECT ( + + COUNT( + - 70 ) ) col1
----
1

skipif mysql # not compatible
query I rowsort label-505
SELECT ( + + COUNT ( + - 70 ) ) col1
----
1

query II rowsort
SELECT ALL + 75 AS col2, + 45 col2
----
75
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-507
SELECT DISTINCT CAST( NULL AS SIGNED ) / - MAX( CAST( NULL AS SIGNED ) ) * + COUNT( DISTINCT + + 64 ) + + 54
----
NULL

skipif mysql # not compatible
query I rowsort label-507
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - MAX ( CAST ( NULL AS INTEGER ) ) * + COUNT ( DISTINCT + + 64 ) + + 54
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-508
SELECT DISTINCT CAST( - - 32 AS SIGNED ) DIV - 81 * COALESCE ( COUNT( * ), 40 DIV 37 * + 6 * - 53 ), 56 AS col1
----
0
56

skipif mysql # not compatible
query II rowsort label-508
SELECT DISTINCT CAST ( - - 32 AS INTEGER ) / - 81 * COALESCE ( COUNT ( * ), 40 / 37 * + 6 * - 53 ), 56 AS col1
----
0
56

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-509
SELECT 28 / - 87 * - CAST( NULL AS DECIMAL ) + - 77 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-509
SELECT 28 / - 87 * - CAST ( NULL AS REAL ) + - 77 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-510
SELECT + 22 DIV + - 95 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-510
SELECT + 22 / + - 95 AS col2
----
0

query I rowsort
SELECT - 27 + - + 39
----
-66

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-513
SELECT - COUNT( * ) + ( - - COUNT( ALL - 79 ) )
----
0

skipif mysql # not compatible
query I rowsort label-513
SELECT - COUNT ( * ) + ( - - COUNT ( ALL - 79 ) )
----
0

query I rowsort
SELECT DISTINCT - 83 * - - 82 AS col2
----
-6806

query I rowsort
SELECT ALL + 28 * + 30
----
840

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

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

query I rowsort
SELECT 28 * - - 85 + + 57 * + - 30
----
670

query I rowsort
SELECT ALL 91 * + 94 AS col1
----
8554

onlyif mysql # aggregate syntax: 
query I rowsort label-519
SELECT NULLIF ( 90, + 64 * - COUNT( + + 73 ) )
----
90

skipif mysql # not compatible
query I rowsort label-519
SELECT NULLIF ( 90, + 64 * - COUNT ( + + 73 ) )
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-520
SELECT DISTINCT + 16 AS col1, + CAST( - - 45 AS SIGNED ) AS col1
----
16
45

skipif mysql # not compatible
query II rowsort label-520
SELECT DISTINCT + 16 AS col1, + CAST ( - - 45 AS INTEGER ) AS col1
----
16
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-521
SELECT + 31 * + - 56 * 62 * - + 82 + - CAST( NULL AS SIGNED ) * - COUNT( * ) + + 10
----
NULL

skipif mysql # not compatible
query I rowsort label-521
SELECT + 31 * + - 56 * 62 * - + 82 + - CAST ( NULL AS INTEGER ) * - COUNT ( * ) + + 10
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-522
SELECT DISTINCT ( - - COUNT( * ) ) * + - ( - 32 ) - - 68
----
100

skipif mysql # not compatible
query I rowsort label-522
SELECT DISTINCT ( - - COUNT ( * ) ) * + - ( - 32 ) - - 68
----
100

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

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

query I rowsort
SELECT ALL + 53 * + 72 * + ( 25 ) AS col1
----
95400

query I rowsort
SELECT - + NULLIF ( 36, - 74 + + 84 ) AS col1
----
-36

query I rowsort
SELECT ALL - 3 * - 85 - 12 AS col1
----
243

query I rowsort
SELECT - - 98 * - 42 - 27 AS col2
----
-4143

onlyif mysql # aggregate syntax: 
query I rowsort label-528
SELECT ALL - 92 * + 99 + - - COUNT( * )
----
-9107

skipif mysql # not compatible
query I rowsort label-528
SELECT ALL - 92 * + 99 + - - COUNT ( * )
----
-9107

query I rowsort
SELECT DISTINCT - + 30 * 27 + 5 - + 52 * + 69 AS col0
----
-4393

onlyif mysql # aggregate syntax: 
query I rowsort label-530
SELECT DISTINCT - 59 * - MAX( 89 ) AS col1
----
5251

skipif mysql # not compatible
query I rowsort label-530
SELECT DISTINCT - 59 * - MAX ( 89 ) AS col1
----
5251

query I rowsort
SELECT - 3 * CASE + 18 WHEN - + COALESCE ( + + 50, - - 38 + + 64, + 30 ) * AVG ( DISTINCT 62 ) THEN NULL WHEN - 87 THEN - + 26 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-532
SELECT + CASE - 21 WHEN + 41 + 55 THEN + 27 / CASE SUM( DISTINCT 53 ) WHEN 46 + - 40 THEN 74 * + - 84 ELSE - + 73 END WHEN - 91 THEN - 31 - - 82 END * 51 / + - 8 * - 82
----
NULL

skipif mysql # not compatible
query I rowsort label-532
SELECT + CASE - 21 WHEN + 41 + 55 THEN + 27 / CASE SUM ( DISTINCT 53 ) WHEN 46 + - 40 THEN 74 * + - 84 ELSE - + 73 END WHEN - 91 THEN - 31 - - 82 END * 51 / + - 8 * - 82
----
NULL

query II rowsort
SELECT - 95 AS col0, - 80
----
-95
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-534
SELECT - 30 DIV - + 81 + - COUNT( * ) * - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-534
SELECT - 30 / - + 81 + - COUNT ( * ) * - COUNT ( * )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-535
SELECT - + 71 * - COUNT( ALL - 16 ), ( + ( + COUNT( * ) ) ) DIV + - NULLIF ( + 91, 15 ) - + + 84 AS col2
----
71
-84

skipif mysql # not compatible
query II rowsort label-535
SELECT - + 71 * - COUNT ( ALL - 16 ), ( + ( + COUNT ( * ) ) ) / + - NULLIF ( + 91, 15 ) - + + 84 AS col2
----
71
-84

onlyif mysql # DIV for integer division: 
query II rowsort label-536
SELECT 79 AS col1, - 47 DIV ( + 80 )
----
79
0

skipif mysql # not compatible
query II rowsort label-536
SELECT 79 AS col1, - 47 / ( + 80 )
----
79
0

query I rowsort
SELECT ALL + COALESCE ( + 55, - 27 )
----
55

query I rowsort
SELECT DISTINCT 28 * - 82
----
-2296

query I rowsort
SELECT DISTINCT 87 + ( + 31 ) AS col2
----
118

query I rowsort
SELECT ALL 46 + + 27 AS col1
----
73

query I rowsort
SELECT 23 + 88 AS col1
----
111

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-542
SELECT CAST( - 45 AS SIGNED ) * + - 5 * + 54 AS col0
----
12150

skipif mysql # not compatible
query I rowsort label-542
SELECT CAST ( - 45 AS INTEGER ) * + - 5 * + 54 AS col0
----
12150

query II rowsort
SELECT 39 * + 86 AS col0, + 89 + 94 + - 1 AS col0
----
3354
182

onlyif mysql # aggregate syntax: 
query I rowsort label-544
SELECT ALL 86 - COUNT( * ) AS col0
----
85

skipif mysql # not compatible
query I rowsort label-544
SELECT ALL 86 - COUNT ( * ) AS col0
----
85

query I rowsort
SELECT - 65 * - ( + 30 ) * - 63 - + 91 - + 75 AS col2
----
-123016

onlyif mysql # aggregate syntax: 
query I rowsort label-546
SELECT DISTINCT - NULLIF ( - + 68, - COUNT( * ) ) * - 84
----
-5712

skipif mysql # not compatible
query I rowsort label-546
SELECT DISTINCT - NULLIF ( - + 68, - COUNT ( * ) ) * - 84
----
-5712

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-547
SELECT ALL 50 - - CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) * ( 58 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-547
SELECT ALL 50 - - CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) * ( 58 ) AS col1
----
NULL

query I rowsort
SELECT ALL - 43 - - 14 + - 84
----
-113

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-549
SELECT ALL 44 DIV - 46 * COUNT( * ) * - 23
----
0

skipif mysql # not compatible
query I rowsort label-549
SELECT ALL 44 / - 46 * COUNT ( * ) * - 23
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-550
SELECT + 27 * + + COUNT( * ) * + - 84 - - 31
----
-2237

skipif mysql # not compatible
query I rowsort label-550
SELECT + 27 * + + COUNT ( * ) * + - 84 - - 31
----
-2237

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-552
SELECT 73 DIV + 38 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-552
SELECT 73 / + 38 AS col1
----
1

query II rowsort
SELECT ALL 14 * - 90 AS col0, + ( - 46 ) AS col2
----
-1260
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-554
SELECT DISTINCT + - 76 * + 30 + 6 + 67 AS col0, COUNT( * ) AS col1
----
-2207
1

skipif mysql # not compatible
query II rowsort label-554
SELECT DISTINCT + - 76 * + 30 + 6 + 67 AS col0, COUNT ( * ) AS col1
----
-2207
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-556
SELECT DISTINCT + - COUNT( * ) + 37 * MIN( + + 48 )
----
1775

skipif mysql # not compatible
query I rowsort label-556
SELECT DISTINCT + - COUNT ( * ) + 37 * MIN ( + + 48 )
----
1775

onlyif mysql # aggregate syntax: 
query I rowsort label-557
SELECT ALL - + MIN( ALL 81 ) + - COUNT( * )
----
-82

skipif mysql # not compatible
query I rowsort label-557
SELECT ALL - + MIN ( ALL 81 ) + - COUNT ( * )
----
-82

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-558
SELECT - 42 * + - MAX( CAST( NULL AS DECIMAL ) ) + - ( + + 23 ) - - + 23 AS col0
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-559
SELECT ALL + + 71 + + 57 DIV COUNT( * ) AS col1
----
128

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

onlyif mysql # aggregate syntax: 
query II rowsort label-560
SELECT - 87 + - 40 * + MAX( + + 44 ) AS col2, - 95 + 15 + + 47 - - 28 * + ( + 4 ) AS col1
----
-1847
79

skipif mysql # not compatible
query II rowsort label-560
SELECT - 87 + - 40 * + MAX ( + + 44 ) AS col2, - 95 + 15 + + 47 - - 28 * + ( + 4 ) AS col1
----
-1847
79

onlyif mysql # aggregate syntax: 
query I rowsort label-561
SELECT + 75 * COUNT( + ( + 14 ) ) + + + 94 col0
----
169

skipif mysql # not compatible
query I rowsort label-561
SELECT + 75 * COUNT ( + ( + 14 ) ) + + + 94 col0
----
169

query I rowsort
SELECT + 70 * + 66 + + 6 + - COALESCE ( 68, + ( 62 ) + - 75 + 95 )
----
4558

query II rowsort
SELECT DISTINCT 2 + 67 AS col0, - 9 * 79 AS col1
----
69
-711

onlyif mysql # aggregate syntax: 
query I rowsort label-564
SELECT ALL - COALESCE ( - 74, - - 72 + 32 ) * - - NULLIF ( + 53, COUNT( * ) ) + - 33 * + COALESCE ( + + ( + 37 ), 83, - 63 * + ( - 34 ) + + + 98 )
----
2701

skipif mysql # not compatible
query I rowsort label-564
SELECT ALL - COALESCE ( - 74, - - 72 + 32 ) * - - NULLIF ( + 53, COUNT ( * ) ) + - 33 * + COALESCE ( + + ( + 37 ), 83, - 63 * + ( - 34 ) + + + 98 )
----
2701

query I rowsort
SELECT 26 + - 12 AS col2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-566
SELECT 72 + - ( - + COALESCE ( - - 75, - - 50 ) ) * + - 84 * + 68 + 58 * - + COUNT( * ) * 58
----
-431692

skipif mysql # not compatible
query I rowsort label-566
SELECT 72 + - ( - + COALESCE ( - - 75, - - 50 ) ) * + - 84 * + 68 + 58 * - + COUNT ( * ) * 58
----
-431692

query I rowsort
SELECT ALL 3 + + - 30 * + 65
----
-1947

query I rowsort
SELECT ALL - 54 * + - 7
----
378

query II rowsort
SELECT 15 AS col0, + 97 * - 26 + 10
----
15
-2512

query I rowsort
SELECT 68 + - 91
----
-23

query I rowsort
SELECT ALL - 73 - 36
----
-109

query I rowsort
SELECT 74 * ( - 11 ) AS col0
----
-814

query II rowsort
SELECT 58 + - - 71 + + 45 AS col0, 12 + - 15 AS col1
----
174
-3

query I rowsort
SELECT DISTINCT 39 * + 17 AS col0
----
663

onlyif mysql # aggregate syntax: 
query I rowsort label-575
SELECT COUNT( * ) * 95 * - - 21 + + 89 + - 21
----
2063

skipif mysql # not compatible
query I rowsort label-575
SELECT COUNT ( * ) * 95 * - - 21 + + 89 + - 21
----
2063

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

skipif mysql # not compatible
query I rowsort label-576
SELECT DISTINCT - NULLIF ( 42, ( - + COUNT ( * ) ) )
----
-42

query I rowsort
SELECT ALL 74 * + - 57 AS col0
----
-4218

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

onlyif mysql # aggregate syntax: 
query II rowsort label-579
SELECT 54 + + 66 + - ( - MIN( 50 ) ), 48 AS col0
----
170
48

skipif mysql # not compatible
query II rowsort label-579
SELECT 54 + + 66 + - ( - MIN ( 50 ) ), 48 AS col0
----
170
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-580
SELECT 93 + - CAST( + 50 AS SIGNED )
----
43

skipif mysql # not compatible
query I rowsort label-580
SELECT 93 + - CAST ( + 50 AS INTEGER )
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-581
SELECT ALL 38 * - COALESCE ( 52, - + 49 DIV - 55 * + + 18, NULLIF ( + + 67, - + 39 ) ) DIV ( + COALESCE ( CAST( NULL AS SIGNED ), + COUNT( * ) ) ) AS col0
----
-1976

skipif mysql # not compatible
query I rowsort label-581
SELECT ALL 38 * - COALESCE ( 52, - + 49 / - 55 * + + 18, NULLIF ( + + 67, - + 39 ) ) / ( + COALESCE ( CAST ( NULL AS INTEGER ), + COUNT ( * ) ) ) AS col0
----
-1976

query II rowsort
SELECT + 77 AS col2, 33 AS col0
----
77
33

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-584
SELECT + 23 * 3 + 33 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-584
SELECT + 23 * 3 + 33 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-585
SELECT DISTINCT + 21 + + 73 - 9 + + + 39 * 55 DIV + 33 + 19 + + 2
----
171

skipif mysql # not compatible
query I rowsort label-585
SELECT DISTINCT + 21 + + 73 - 9 + + + 39 * 55 / + 33 + 19 + + 2
----
171

query I rowsort
SELECT ALL - + 94 * - - 61 AS col0
----
-5734

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

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

query I rowsort
SELECT ALL - 70 + 51
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-590
SELECT + 28 + 88 + COALESCE ( - 99, + 56 * - ( - COUNT( * ) ) + + 77 * + - 79 )
----
17

skipif mysql # not compatible
query I rowsort label-590
SELECT + 28 + 88 + COALESCE ( - 99, + 56 * - ( - COUNT ( * ) ) + + 77 * + - 79 )
----
17

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-592
SELECT NULLIF ( 37, - SUM( DISTINCT 80 ) * + + CASE - - MAX( + 36 ) WHEN + COUNT( * ) THEN + 48 ELSE - - 94 END ) * + MAX( ALL 1 ) + + + 26 AS col0
----
63

skipif mysql # not compatible
query I rowsort label-592
SELECT NULLIF ( 37, - SUM ( DISTINCT 80 ) * + + CASE - - MAX ( + 36 ) WHEN + COUNT ( * ) THEN + 48 ELSE - - 94 END ) * + MAX ( ALL 1 ) + + + 26 AS col0
----
63

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

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

skipif mysql # not compatible
query I rowsort label-594
SELECT - + 17 * + 1 + - COUNT ( * ) AS col1
----
-18

query I rowsort
SELECT ALL 24 + + 86 AS col1
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-596
SELECT DISTINCT + SUM( - - 24 ) + - - 98 * - + CASE + - 84 WHEN + + 45 + + - 22 - 2 * - COUNT( * ) * 95 THEN + + COUNT( * ) + NULLIF ( - 65, 44 * 42 + 63 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-596
SELECT DISTINCT + SUM ( - - 24 ) + - - 98 * - + CASE + - 84 WHEN + + 45 + + - 22 - 2 * - COUNT ( * ) * 95 THEN + + COUNT ( * ) + NULLIF ( - 65, 44 * 42 + 63 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-597
SELECT COALESCE ( - - 39, + SUM( - 68 ) + + - 91 * + - 97 ) AS col1
----
39

skipif mysql # not compatible
query I rowsort label-597
SELECT COALESCE ( - - 39, + SUM ( - 68 ) + + - 91 * + - 97 ) AS col1
----
39

query I rowsort
SELECT ALL - ( + - 44 ) + 67 - 14
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-599
SELECT CASE ( + - 40 ) WHEN - + 73 * CASE - 81 WHEN - MAX( 36 ) * + 13 THEN + - 11 END / + COUNT( * ) THEN NULL WHEN - 9 THEN + ( + + 82 ) * + - 4 - 70 + - - CAST( NULL AS SIGNED ) + - + 77 ELSE + MAX( CAST( NULL AS DECIMAL ) ) + + - COUNT( * ) END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-599
SELECT CASE ( + - 40 ) WHEN - + 73 * CASE - 81 WHEN - MAX ( 36 ) * + 13 THEN + - 11 END / + COUNT ( * ) THEN NULL WHEN - 9 THEN + ( + + 82 ) * + - 4 - 70 + - - CAST ( NULL AS INTEGER ) + - + 77 ELSE + MAX ( CAST ( NULL AS REAL ) ) + + - COUNT ( * ) END col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-600
SELECT ALL + - CAST( NULL AS SIGNED ) - 51 + - ( 0 ) - - MIN( + - 22 ) * + COUNT( * ) * - 14 * 26
----
NULL

skipif mysql # not compatible
query I rowsort label-600
SELECT ALL + - CAST ( NULL AS INTEGER ) - 51 + - ( 0 ) - - MIN ( + - 22 ) * + COUNT ( * ) * - 14 * 26
----
NULL

query II rowsort
SELECT - 92 AS col2, 20 * + 97 + + 95 AS col2
----
-92
2035

query I rowsort
SELECT - - 14 * NULLIF ( - 76, + + 86 * - 76 ) + + - 30 AS col0
----
-1094

query I rowsort
SELECT + 10 * + 27
----
270

query II rowsort
SELECT 87 AS col0, 44
----
87
44

onlyif mysql # aggregate syntax: 
query II rowsort label-605
SELECT - 87 AS col2, NULLIF ( - 68, + - 82 + - - 2 ) + ( + + 19 ) * COUNT( * ) AS col0
----
-87
-49

skipif mysql # not compatible
query II rowsort label-605
SELECT - 87 AS col2, NULLIF ( - 68, + - 82 + - - 2 ) + ( + + 19 ) * COUNT ( * ) AS col0
----
-87
-49

query I rowsort
SELECT ALL + 41 - 39 col1
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-607
SELECT DISTINCT COUNT( * ), - CASE + - 11 WHEN - + CAST( NULL AS SIGNED ) THEN NULL ELSE - 54 END / - - COALESCE ( + 8, 32 / + - COUNT( * ) * + + 15 - ( + ( 75 ) ) * - - 77, - - 89 * + + COUNT( * ), - ( COALESCE ( - 75, - 91, - + 33 ) ) - + 92 ) + + CAST( NULL AS DECIMAL ) AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-607
SELECT DISTINCT COUNT ( * ), - CASE + - 11 WHEN - + CAST ( NULL AS INTEGER ) THEN NULL ELSE - 54 END / - - COALESCE ( + 8, 32 / + - COUNT ( * ) * + + 15 - ( + ( 75 ) ) * - - 77, - - 89 * + + COUNT ( * ), - ( COALESCE ( - 75, - 91, - + 33 ) ) - + 92 ) + + CAST ( NULL AS REAL ) AS col1
----
1
NULL

query I rowsort
SELECT ALL - 69 * 90 AS col0
----
-6210

onlyif mysql # aggregate syntax: 
query I rowsort label-609
SELECT ALL MAX( ALL - 22 ) AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-609
SELECT ALL MAX ( ALL - 22 ) AS col0
----
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-610
SELECT - 98 col0, - MIN( - + 98 ) + - 85 * 98 AS col0
----
-98
-8232

skipif mysql # not compatible
query II rowsort label-610
SELECT - 98 col0, - MIN ( - + 98 ) + - 85 * 98 AS col0
----
-98
-8232

onlyif mysql # aggregate syntax: 
query II rowsort label-611
SELECT ALL ( 43 ) AS col2, SUM( ALL + 90 ) * + - 28 AS col2
----
43
-2520

skipif mysql # not compatible
query II rowsort label-611
SELECT ALL ( 43 ) AS col2, SUM ( ALL + 90 ) * + - 28 AS col2
----
43
-2520

query II rowsort
SELECT - 11 AS col0, 71
----
-11
71

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-614
SELECT - COUNT( * ) DIV + 5 * - COALESCE ( 88, + 60 )
----
0

skipif mysql # not compatible
query I rowsort label-614
SELECT - COUNT ( * ) / + 5 * - COALESCE ( 88, + 60 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-615
SELECT DISTINCT + NULLIF ( - 50, MIN( 63 ) )
----
-50

skipif mysql # not compatible
query I rowsort label-615
SELECT DISTINCT + NULLIF ( - 50, MIN ( 63 ) )
----
-50

query I rowsort
SELECT ( - 3 ) col2
----
-3

query I rowsort
SELECT + 8 * ( 74 )
----
592

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

skipif mysql # not compatible
query I rowsort label-618
SELECT - ( + - 33 ) / + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 69 * + 13 + 1 * - - 18
----
915

onlyif mysql # aggregate syntax: 
query II rowsort label-620
SELECT ALL + 28 AS col2, 86 * - COUNT( * ) + + + 38
----
28
-48

skipif mysql # not compatible
query II rowsort label-620
SELECT ALL + 28 AS col2, 86 * - COUNT ( * ) + + + 38
----
28
-48

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-622
SELECT DISTINCT + - 68 AS col0, + 56 - + - COUNT( * ) + - 98 col2
----
-68
-41

skipif mysql # not compatible
query II rowsort label-622
SELECT DISTINCT + - 68 AS col0, + 56 - + - COUNT ( * ) + - 98 col2
----
-68
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-623
SELECT ALL + 92 * - 69 - + - 27 * CASE + 66 WHEN + - 16 THEN + - COALESCE ( + 87, - - 39 ) * + - 59 WHEN + COUNT( * ) THEN NULL ELSE NULL END + - 74 * + 66 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-623
SELECT ALL + 92 * - 69 - + - 27 * CASE + 66 WHEN + - 16 THEN + - COALESCE ( + 87, - - 39 ) * + - 59 WHEN + COUNT ( * ) THEN NULL ELSE NULL END + - 74 * + 66 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-624
SELECT + 25 * 14 + - COUNT( * )
----
349

skipif mysql # not compatible
query I rowsort label-624
SELECT + 25 * 14 + - COUNT ( * )
----
349

onlyif mysql # aggregate syntax: 
query I rowsort label-625
SELECT DISTINCT - - 12 * + COUNT( * ) + + - 42 AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-625
SELECT DISTINCT - - 12 * + COUNT ( * ) + + - 42 AS col1
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-626
SELECT ALL - COUNT( * ) * - 92 + 4 DIV + - 43
----
92

skipif mysql # not compatible
query I rowsort label-626
SELECT ALL - COUNT ( * ) * - 92 + 4 / + - 43
----
92

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-628
SELECT - MIN( ALL - 58 ) - 70
----
-12

skipif mysql # not compatible
query I rowsort label-628
SELECT - MIN ( ALL - 58 ) - 70
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-629
SELECT + - 86 AS col0, NULLIF ( + 17, 85 + + + COUNT( * ) )
----
-86
17

skipif mysql # not compatible
query II rowsort label-629
SELECT + - 86 AS col0, NULLIF ( + 17, 85 + + + COUNT ( * ) )
----
-86
17

query II rowsort
SELECT 55 AS col2, 62 AS col2
----
55
62

query I rowsort
SELECT + + 92 * + + 90 + - 65 + - 2 AS col1
----
8213

query II rowsort
SELECT DISTINCT + 37 col2, + 55 AS col0
----
37
55

query I rowsort
SELECT 18 * - ( + 57 ) + + 44 - + 41
----
-1023

onlyif mysql # aggregate syntax: 
query I rowsort label-634
SELECT - + COUNT( * ) + - + COUNT( * ) + + 28 + + 53 AS col1
----
79

skipif mysql # not compatible
query I rowsort label-634
SELECT - + COUNT ( * ) + - + COUNT ( * ) + + 28 + + 53 AS col1
----
79

query I rowsort
SELECT + 94 * 7 AS col1
----
658

query II rowsort
SELECT ALL 43 AS col0, - 13
----
43
-13

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-638
SELECT - 65 AS col2, CAST( NULL AS DECIMAL ) * - 47 AS col1
----
-65
NULL

skipif mysql # not compatible
query II rowsort label-638
SELECT - 65 AS col2, CAST ( NULL AS REAL ) * - 47 AS col1
----
-65
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-639
SELECT + AVG ( - 10 ) + + + CAST( NULL AS DECIMAL ) * 6 - 43
----
NULL

skipif mysql # not compatible
query I rowsort label-639
SELECT + AVG ( - 10 ) + + + CAST ( NULL AS REAL ) * 6 - 43
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-640
SELECT ALL 63 * - SUM( + ( COALESCE ( - 69, + 89 ) ) ) AS col0
----
4347

skipif mysql # not compatible
query I rowsort label-640
SELECT ALL 63 * - SUM ( + ( COALESCE ( - 69, + 89 ) ) ) AS col0
----
4347

query I rowsort
SELECT + ( 14 ) + - + 52 * - 33
----
1730

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-642
SELECT DISTINCT MAX( DISTINCT + CAST( NULL AS DECIMAL ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-642
SELECT DISTINCT MAX ( DISTINCT + CAST ( NULL AS REAL ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-643
SELECT + MAX( - + 25 ) * COUNT( * )
----
-25

skipif mysql # not compatible
query I rowsort label-643
SELECT + MAX ( - + 25 ) * COUNT ( * )
----
-25

query I rowsort
SELECT - 91 + - 99 - + 5 * - 72 col0
----
170

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-645
SELECT - CAST( CAST( - + MAX( - - ( + - 27 ) ) AS DECIMAL ) AS SIGNED ) col2, 99 - NULLIF ( - + 10, 32 + + MAX( DISTINCT + + 36 ) / - 25 ) AS col2
----
-27
109

skipif mysql # not compatible
query II rowsort label-645
SELECT - CAST ( CAST ( - + MAX ( - - ( + - 27 ) ) AS REAL ) AS INTEGER ) col2, 99 - NULLIF ( - + 10, 32 + + MAX ( DISTINCT + + 36 ) / - 25 ) AS col2
----
-27
109

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

query I rowsort
SELECT ALL ( - - 39 ) AS col0
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-648
SELECT - ( - + ( + - 50 ) ) * - CASE + - 96 WHEN + + ( - - 91 ) THEN 57 WHEN + SUM( - 51 ) THEN NULL ELSE + CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-648
SELECT - ( - + ( + - 50 ) ) * - CASE + - 96 WHEN + + ( - - 91 ) THEN 57 WHEN + SUM ( - 51 ) THEN NULL ELSE + CAST ( NULL AS INTEGER ) END
----
NULL

query I rowsort
SELECT ALL 61 + ( - 15 ) AS col2
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-650
SELECT DISTINCT + 68 DIV - 96 + - + 21 DIV + 52 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-650
SELECT DISTINCT + 68 / - 96 + - + 21 / + 52 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-651
SELECT + - 70 * - + 94 + + - NULLIF ( 56, - 70 ) DIV - 46
----
6581

skipif mysql # not compatible
query I rowsort label-651
SELECT + - 70 * - + 94 + + - NULLIF ( 56, - 70 ) / - 46
----
6581

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

skipif mysql # not compatible
query I rowsort label-652
SELECT - 1 * + - 92 - COUNT ( * ) AS col0
----
91

query I rowsort
SELECT + 40 + + - 61 + - + 61
----
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-654
SELECT DISTINCT - COUNT( * ) DIV NULLIF ( + 1, + 19 ) - - 16 * - 36 AS col0
----
-577

skipif mysql # not compatible
query I rowsort label-654
SELECT DISTINCT - COUNT ( * ) / NULLIF ( + 1, + 19 ) - - 16 * - 36 AS col0
----
-577

onlyif mysql # DIV for integer division: 
query I rowsort label-655
SELECT - + 79 DIV + 96 + 66 col1
----
66

skipif mysql # not compatible
query I rowsort label-655
SELECT - + 79 / + 96 + 66 col1
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-656
SELECT DISTINCT - SUM( ALL + CAST( NULL AS SIGNED ) ), 67 + + ( + 71 ) AS col2, + 50 col1
----
NULL
138
50

skipif mysql # not compatible
query III rowsort label-656
SELECT DISTINCT - SUM ( ALL + CAST ( NULL AS INTEGER ) ), 67 + + ( + 71 ) AS col2, + 50 col1
----
NULL
138
50

query I rowsort
SELECT ALL 42 - - 8 - 55 AS col0
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-658
SELECT ALL - 69 * - - CASE + - COUNT( * ) WHEN - 61 THEN - 23 * 54 / + CAST( NULL AS DECIMAL ) ELSE + 39 + + 6 END + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-658
SELECT ALL - 69 * - - CASE + - COUNT ( * ) WHEN - 61 THEN - 23 * 54 / + CAST ( NULL AS REAL ) ELSE + 39 + + 6 END + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-659
SELECT + CASE + 55 WHEN + 34 * + - COUNT( * ) THEN NULL WHEN + 7 THEN + 33 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-659
SELECT + CASE + 55 WHEN + 34 * + - COUNT ( * ) THEN NULL WHEN + 7 THEN + 33 END col2
----
NULL

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

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

query II rowsort
SELECT 72 * + - 90 - + + 81 * + 61 + - 35 + 22 + - 13, + 30 AS col0
----
-11447
30

onlyif mysql # aggregate syntax: 
query I rowsort label-662
SELECT ALL - 66 - - + COUNT( ALL + ( + 47 ) )
----
-65

skipif mysql # not compatible
query I rowsort label-662
SELECT ALL - 66 - - + COUNT ( ALL + ( + 47 ) )
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-663
SELECT COUNT( * ) + + 93 * + - 82
----
-7625

skipif mysql # not compatible
query I rowsort label-663
SELECT COUNT ( * ) + + 93 * + - 82
----
-7625

query I rowsort
SELECT DISTINCT - 75 * - 20 * 95 AS col0
----
142500

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-666
SELECT + + NULLIF ( - 5, + COUNT( * ) * + COALESCE ( + 95, 2 + 46, - 15 + 3 ) - 43 + - NULLIF ( + 87, - - 12 + COUNT( * ) ) * + 5 )
----
-5

skipif mysql # not compatible
query I rowsort label-666
SELECT + + NULLIF ( - 5, + COUNT ( * ) * + COALESCE ( + 95, 2 + 46, - 15 + 3 ) - 43 + - NULLIF ( + 87, - - 12 + COUNT ( * ) ) * + 5 )
----
-5

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

query II rowsort
SELECT ALL 41, - 53 * + 79 AS col2
----
41
-4187

onlyif mysql # aggregate syntax: 
query I rowsort label-669
SELECT ( - SUM( + ( - - 47 ) ) ) * 24 * - - 23
----
-25944

skipif mysql # not compatible
query I rowsort label-669
SELECT ( - SUM ( + ( - - 47 ) ) ) * 24 * - - 23
----
-25944

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-670
SELECT ALL + 51 + + COALESCE ( + - NULLIF ( ( + + MAX( DISTINCT + + ( - 98 ) ) ), NULLIF ( - 55, + 19 + - 0 ) ), - 84 DIV 80, + 19 + + 4 )
----
149

skipif mysql # not compatible
query I rowsort label-670
SELECT ALL + 51 + + COALESCE ( + - NULLIF ( ( + + MAX ( DISTINCT + + ( - 98 ) ) ), NULLIF ( - 55, + 19 + - 0 ) ), - 84 / 80, + 19 + + 4 )
----
149

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

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

query II rowsort
SELECT - 51 AS col1, 97
----
-51
97

query I rowsort
SELECT DISTINCT 80 * 72 AS col1
----
5760

onlyif mysql # DIV for integer division: 
query I rowsort label-674
SELECT 67 DIV + 61 col0
----
1

skipif mysql # not compatible
query I rowsort label-674
SELECT 67 / + 61 col0
----
1

query I rowsort
SELECT DISTINCT 15 + + 55 + + - 22 * 45 AS col2
----
-920

onlyif mysql # aggregate syntax: 
query I rowsort label-676
SELECT SUM( COALESCE ( 5, - 48 ) ) - + 84 + - COUNT( * ) col1
----
-80

skipif mysql # not compatible
query I rowsort label-676
SELECT SUM ( COALESCE ( 5, - 48 ) ) - + 84 + - COUNT ( * ) col1
----
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-677
SELECT ALL 50 + + ( 14 ) * + COUNT( * ) DIV + 98 col2
----
50

skipif mysql # not compatible
query I rowsort label-677
SELECT ALL 50 + + ( 14 ) * + COUNT ( * ) / + 98 col2
----
50

query I rowsort
SELECT 93 * + 55 * + 37
----
189255

onlyif mysql # aggregate syntax: 
query I rowsort label-679
SELECT DISTINCT 79 + + COUNT( + - 79 ) AS col2
----
80

skipif mysql # not compatible
query I rowsort label-679
SELECT DISTINCT 79 + + COUNT ( + - 79 ) AS col2
----
80

query I rowsort
SELECT ALL NULLIF ( 41, 75 ) + - 31 AS col2
----
10

query I rowsort
SELECT 82 + 75 + 86 - - - NULLIF ( + + 21, + - 67 + - 18 ) * - + ( - 65 ) * + 10 col2
----
-13407

onlyif mysql # aggregate syntax: 
query I rowsort label-682
SELECT COUNT( * ) + - + 77 col2
----
-76

skipif mysql # not compatible
query I rowsort label-682
SELECT COUNT ( * ) + - + 77 col2
----
-76

query I rowsort
SELECT 27 - 90
----
-63

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

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

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

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

query I rowsort
SELECT ALL - CASE + - 12 WHEN 6 THEN NULL ELSE + - 42 + - + 24 END AS col0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-687
SELECT ALL + + ( 96 ) - - + CASE + - 32 WHEN - 41 THEN 12 + - + COALESCE ( 37, 45 ) WHEN + + 79 * 67 - - - COUNT( 9 ) THEN - 94 END
----
NULL

skipif mysql # not compatible
query I rowsort label-687
SELECT ALL + + ( 96 ) - - + CASE + - 32 WHEN - 41 THEN 12 + - + COALESCE ( 37, 45 ) WHEN + + 79 * 67 - - - COUNT ( 9 ) THEN - 94 END
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-690
SELECT CASE + COUNT( * ) WHEN + - 70 THEN - + SUM( DISTINCT + 10 ) / + - 55 ELSE NULL END / - + COUNT( * ) + + SUM( - - 5 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-690
SELECT CASE + COUNT ( * ) WHEN + - 70 THEN - + SUM ( DISTINCT + 10 ) / + - 55 ELSE NULL END / - + COUNT ( * ) + + SUM ( - - 5 ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-691
SELECT DISTINCT + 20 DIV + - 82 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-691
SELECT DISTINCT + 20 / + - 82 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-692
SELECT ALL - - COUNT( * ) * + 97 + - 5
----
92

skipif mysql # not compatible
query I rowsort label-692
SELECT ALL - - COUNT ( * ) * + 97 + - 5
----
92

query I rowsort
SELECT 46 * 7 * 34 + - + 24 AS col0
----
10924

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-694
SELECT 34 + COALESCE ( - 6, - 97 + - - 97 - - + 18 * - 40 * COUNT( * ) + 0 + 83 + + 98 * - - COUNT( * ) + 60 - - MIN( - 45 ) * COUNT( * ) DIV - ( - + CASE - SUM( + 71 ) WHEN + 64 THEN - - 45 * 47 END ), - + 28 * - 95 + - NULLIF ( + 16, + 67 ) + - 19 * - 38 ) + SUM( ALL + + 46 ) * - - NULLIF ( 16, 0 * - 40 ) AS col0
----
764

skipif mysql # not compatible
query I rowsort label-694
SELECT 34 + COALESCE ( - 6, - 97 + - - 97 - - + 18 * - 40 * COUNT ( * ) + 0 + 83 + + 98 * - - COUNT ( * ) + 60 - - MIN ( - 45 ) * COUNT ( * ) / - ( - + CASE - SUM ( + 71 ) WHEN + 64 THEN - - 45 * 47 END ), - + 28 * - 95 + - NULLIF ( + 16, + 67 ) + - 19 * - 38 ) + SUM ( ALL + + 46 ) * - - NULLIF ( 16, 0 * - 40 ) AS col0
----
764

query I rowsort
SELECT DISTINCT + 70 * 19 AS col1
----
1330

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

skipif mysql # not compatible
query I rowsort label-696
SELECT - MAX ( + 30 )
----
-30

query II rowsort
SELECT ALL - 46 AS col1, 51 + 64 AS col0
----
-46
115

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-698
SELECT - COUNT( * ) * - 63 DIV + 16 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-698
SELECT - COUNT ( * ) * - 63 / + 16 AS col1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-699
SELECT ALL - - 32 DIV + - 89 * 46
----
0

skipif mysql # not compatible
query I rowsort label-699
SELECT ALL - - 32 / + - 89 * 46
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-700
SELECT ALL + 83 + - 68 - + 48 + + COUNT( * ) - + 55
----
-87

skipif mysql # not compatible
query I rowsort label-700
SELECT ALL + 83 + - 68 - + 48 + + COUNT ( * ) - + 55
----
-87

query I rowsort
SELECT ALL - 92 * - 24 col0
----
2208

onlyif mysql # aggregate syntax: 
query II rowsort label-702
SELECT 48 + + COUNT( * ) AS col2, 81 * 10 * - - 81 * - 52
----
49
-3411720

skipif mysql # not compatible
query II rowsort label-702
SELECT 48 + + COUNT ( * ) AS col2, 81 * 10 * - - 81 * - 52
----
49
-3411720

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-703
SELECT COUNT( * ) * - 99 * + CAST( - 18 AS SIGNED ) * + 69 * - 30 - + + 94 * - 8 + - 97 * + 35 * + 94 - - 9
----
-4007109

skipif mysql # not compatible
query I rowsort label-703
SELECT COUNT ( * ) * - 99 * + CAST ( - 18 AS INTEGER ) * + 69 * - 30 - + + 94 * - 8 + - 97 * + 35 * + 94 - - 9
----
-4007109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-704
SELECT 58 + - 13 + + 9 - + 44 - + COUNT( * ) - - COUNT( DISTINCT 59 ) / - 92 * + - NULLIF ( + ( + + MAX( 99 ) ), - 32 ) * - 50 * + CAST( NULL AS SIGNED ) + + ( + + CAST( NULL AS DECIMAL ) ) + - AVG ( DISTINCT + 35 ) / 68
----
NULL

skipif mysql # not compatible
query I rowsort label-704
SELECT 58 + - 13 + + 9 - + 44 - + COUNT ( * ) - - COUNT ( DISTINCT 59 ) / - 92 * + - NULLIF ( + ( + + MAX ( 99 ) ), - 32 ) * - 50 * + CAST ( NULL AS INTEGER ) + + ( + + CAST ( NULL AS REAL ) ) + - AVG ( DISTINCT + 35 ) / 68
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-705
SELECT 74 + - + SUM( DISTINCT + 60 )
----
14

skipif mysql # not compatible
query I rowsort label-705
SELECT 74 + - + SUM ( DISTINCT + 60 )
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-706
SELECT ALL - COUNT( * ) + + CAST( + NULLIF ( - COUNT( * ), + 31 ) AS SIGNED ) * + - 63 col0
----
62

skipif mysql # not compatible
query I rowsort label-706
SELECT ALL - COUNT ( * ) + + CAST ( + NULLIF ( - COUNT ( * ), + 31 ) AS INTEGER ) * + - 63 col0
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-707
SELECT 83 + - 71 + + - NULLIF ( - + COUNT( * ), + + 1 ) + - - 21 * + 0 DIV - - 38
----
13

skipif mysql # not compatible
query I rowsort label-707
SELECT 83 + - 71 + + - NULLIF ( - + COUNT ( * ), + + 1 ) + - - 21 * + 0 / - - 38
----
13

query I rowsort
SELECT ALL - 48 * 20 * ( + 20 )
----
-19200

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-710
SELECT 2 + + 93 - - COUNT( * ) + - CASE - - 64 WHEN - 96 * - 51 + - - 63 * 41 + - + 32 THEN + + 50 END - + 82 / - 53
----
NULL

skipif mysql # not compatible
query I rowsort label-710
SELECT 2 + + 93 - - COUNT ( * ) + - CASE - - 64 WHEN - 96 * - 51 + - - 63 * 41 + - + 32 THEN + + 50 END - + 82 / - 53
----
NULL

query I rowsort
SELECT ALL - 21 + 25 AS col1
----
4

query I rowsort
SELECT 8 * + ( + 64 )
----
512

onlyif mysql # aggregate syntax: 
query I rowsort label-713
SELECT DISTINCT - COUNT( * ) + - 20
----
-21

skipif mysql # not compatible
query I rowsort label-713
SELECT DISTINCT - COUNT ( * ) + - 20
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-714
SELECT ALL CASE 1 WHEN - MAX( - 51 ) * - 95 * 34 * + - 23 / 95 THEN NULL WHEN + - 7 THEN NULL ELSE CAST( - + 14 AS SIGNED ) * - - 35 * + - 50 - + - 21 END AS col1
----
24521

skipif mysql # not compatible
query I rowsort label-714
SELECT ALL CASE 1 WHEN - MAX ( - 51 ) * - 95 * 34 * + - 23 / 95 THEN NULL WHEN + - 7 THEN NULL ELSE CAST ( - + 14 AS INTEGER ) * - - 35 * + - 50 - + - 21 END AS col1
----
24521

query I rowsort
SELECT 28 + - - ( + 23 )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-716
SELECT DISTINCT 25 * - - COUNT( * )
----
25

skipif mysql # not compatible
query I rowsort label-716
SELECT DISTINCT 25 * - - COUNT ( * )
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-717
SELECT COALESCE ( + - 54, + 92 * 91 ), 48 + - 77 DIV + COALESCE ( - - 32, - 99, - 15 + + 14 + ( - COUNT( * ) ) + - CAST( NULL AS SIGNED ) - + 76 DIV - + 22 * - 43 * 89 + NULLIF ( - + 55, + + 4 + - 64 * + + COUNT( + 33 ) ) DIV + 78 + + - COALESCE ( + 59, + COALESCE ( - COUNT( * ), - 71 + - 13, - 5 ) ) + 75 ) AS col1
----
-54
46

skipif mysql # not compatible
query II rowsort label-717
SELECT COALESCE ( + - 54, + 92 * 91 ), 48 + - 77 / + COALESCE ( - - 32, - 99, - 15 + + 14 + ( - COUNT ( * ) ) + - CAST ( NULL AS INTEGER ) - + 76 / - + 22 * - 43 * 89 + NULLIF ( - + 55, + + 4 + - 64 * + + COUNT ( + 33 ) ) / + 78 + + - COALESCE ( + 59, + COALESCE ( - COUNT ( * ), - 71 + - 13, - 5 ) ) + 75 ) AS col1
----
-54
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-718
SELECT MIN( ALL - 11 ) DIV + 9
----
-1

skipif mysql # not compatible
query I rowsort label-718
SELECT MIN ( ALL - 11 ) / + 9
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-719
SELECT ALL - 82 DIV + - 41 - + + 66
----
-64

skipif mysql # not compatible
query I rowsort label-719
SELECT ALL - 82 / + - 41 - + + 66
----
-64

onlyif mysql # DIV for integer division: 
query II rowsort label-720
SELECT + 85 DIV - 77, - 13 * - 25 col1
----
-1
325

skipif mysql # not compatible
query II rowsort label-720
SELECT + 85 / - 77, - 13 * - 25 col1
----
-1
325

onlyif mysql # DIV for integer division: 
query I rowsort label-721
SELECT - 85 DIV - 13 + - - 59 + NULLIF ( + 47, - 38 ) * + - 52 * + 65 AS col0
----
-158795

skipif mysql # not compatible
query I rowsort label-721
SELECT - 85 / - 13 + - - 59 + NULLIF ( + 47, - 38 ) * + - 52 * + 65 AS col0
----
-158795

onlyif mysql # aggregate syntax: 
query I rowsort label-722
SELECT + 29 - 27 + - 95 + - + 41 * 73 * - COUNT( * )
----
2900

skipif mysql # not compatible
query I rowsort label-722
SELECT + 29 - 27 + - 95 + - + 41 * 73 * - COUNT ( * )
----
2900

query I rowsort
SELECT + - ( + 90 ) * + - 93 AS col0
----
8370

onlyif mysql # DIV for integer division: 
query I rowsort label-724
SELECT 30 DIV + 55 * - 70 + + 12 AS col1
----
12

skipif mysql # not compatible
query I rowsort label-724
SELECT 30 / + 55 * - 70 + + 12 AS col1
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-725
SELECT + - 86 * AVG ( - + 18 ) * + 94 * + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-725
SELECT + - 86 * AVG ( - + 18 ) * + 94 * + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT + + ( + 65 ) - + - 10 * + 61
----
675

query I rowsort
SELECT DISTINCT - - 80 * + 66 + + 15 col2
----
5295

query I rowsort
SELECT ALL - - 30 * - + ( - + 72 )
----
2160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-729
SELECT ALL 13 * - - CAST( - 97 AS SIGNED ) * + + 82 * + 46 + - + 48 + + COUNT( * ) AS col2
----
-4756539

skipif mysql # not compatible
query I rowsort label-729
SELECT ALL 13 * - - CAST ( - 97 AS INTEGER ) * + + 82 * + 46 + - + 48 + + COUNT ( * ) AS col2
----
-4756539

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

skipif mysql # not compatible
query I rowsort label-730
SELECT ALL 4 * - COUNT ( * ) / + 45
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-731
SELECT + 10 DIV + 15 * + - 34 col2
----
0

skipif mysql # not compatible
query I rowsort label-731
SELECT + 10 / + 15 * + - 34 col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-732
SELECT 52 * - CAST( NULL AS SIGNED ) + 43 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-732
SELECT 52 * - CAST ( NULL AS INTEGER ) + 43 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-733
SELECT ALL COALESCE ( + COUNT( * ), - - MIN( 77 ) ) * + - 83 + - + 90 - 48 * + 58 AS col0
----
-2957

skipif mysql # not compatible
query I rowsort label-733
SELECT ALL COALESCE ( + COUNT ( * ), - - MIN ( 77 ) ) * + - 83 + - + 90 - 48 * + 58 AS col0
----
-2957

onlyif mysql # aggregate syntax: 
query I rowsort label-734
SELECT COUNT( ALL - - 83 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-734
SELECT COUNT ( ALL - - 83 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-735
SELECT - MIN( 64 ) * COUNT( * )
----
-64

skipif mysql # not compatible
query I rowsort label-735
SELECT - MIN ( 64 ) * COUNT ( * )
----
-64

query I rowsort
SELECT ALL COALESCE ( - + 21, - - 20 )
----
-21

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

onlyif mysql # aggregate syntax: 
query I rowsort label-738
SELECT DISTINCT - COUNT( * ) + 78
----
77

skipif mysql # not compatible
query I rowsort label-738
SELECT DISTINCT - COUNT ( * ) + 78
----
77

query I rowsort
SELECT - 26 * + 43 AS col1
----
-1118

onlyif mysql # DIV for integer division: 
query I rowsort label-740
SELECT ALL COALESCE ( 76, - - 8 DIV + - 22, - ( 79 ), 80 * - - 96 * 50 * - 24 + 32 ) AS col2
----
76

skipif mysql # not compatible
query I rowsort label-740
SELECT ALL COALESCE ( 76, - - 8 / + - 22, - ( 79 ), 80 * - - 96 * 50 * - 24 + 32 ) AS col2
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-741
SELECT - MAX( - COALESCE ( + 45, - 66 ) )
----
45

skipif mysql # not compatible
query I rowsort label-741
SELECT - MAX ( - COALESCE ( + 45, - 66 ) )
----
45

query I rowsort
SELECT - 90 * - 85
----
7650

query I rowsort
SELECT + 96 * 57 * - + 10 AS col1
----
-54720

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

query I rowsort
SELECT DISTINCT - 53 * + 21 * - ( + + 29 )
----
32277

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-747
SELECT 39 AS col2, 87 + - 88 * 85 * + CAST( - - 89 AS SIGNED ) * + + 20 AS col1
----
39
-13314313

skipif mysql # not compatible
query II rowsort label-747
SELECT 39 AS col2, 87 + - 88 * 85 * + CAST ( - - 89 AS INTEGER ) * + + 20 AS col1
----
39
-13314313

onlyif mysql # DIV for integer division: 
query I rowsort label-748
SELECT - + 81 + + 35 * 65 - - 96 DIV 27
----
2197

skipif mysql # not compatible
query I rowsort label-748
SELECT - + 81 + + 35 * 65 - - 96 / 27
----
2197

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-749
SELECT - CAST( - - 45 AS SIGNED ) AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-749
SELECT - CAST ( - - 45 AS INTEGER ) AS col1
----
-45

query I rowsort
SELECT - 22 * + - 32 + - + 19 col2
----
685

onlyif mysql # aggregate syntax: 
query I rowsort label-751
SELECT + 92 + COUNT( * )
----
93

skipif mysql # not compatible
query I rowsort label-751
SELECT + 92 + COUNT ( * )
----
93

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

skipif mysql # not compatible
query I rowsort label-752
SELECT + - CAST ( NULL AS REAL ) - 32 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-753
SELECT ALL CASE + COUNT( * ) WHEN 62 * 18 * - + 76 THEN NULL WHEN + + MIN( DISTINCT - 83 ) THEN - 57 + + NULLIF ( 58, - 14 ) / CASE + 31 WHEN + - CAST( NULL AS SIGNED ) * 57 * + 9 + - COUNT( ALL - - 87 ) - + ( - - 88 ) THEN - 5 * + 46 - - 81 + + 24 / - COUNT( * ) WHEN - 7 / + 28 THEN NULL WHEN + 94 THEN - + 29 ELSE NULL END ELSE NULL END * - - 81
----
NULL

skipif mysql # not compatible
query I rowsort label-753
SELECT ALL CASE + COUNT ( * ) WHEN 62 * 18 * - + 76 THEN NULL WHEN + + MIN ( DISTINCT - 83 ) THEN - 57 + + NULLIF ( 58, - 14 ) / CASE + 31 WHEN + - CAST ( NULL AS INTEGER ) * 57 * + 9 + - COUNT ( ALL - - 87 ) - + ( - - 88 ) THEN - 5 * + 46 - - 81 + + 24 / - COUNT ( * ) WHEN - 7 / + 28 THEN NULL WHEN + 94 THEN - + 29 ELSE NULL END ELSE NULL END * - - 81
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-754
SELECT ALL + 10 DIV - - 81
----
0

skipif mysql # not compatible
query I rowsort label-754
SELECT ALL + 10 / - - 81
----
0

query I rowsort
SELECT - - 99 * + 27 AS col0
----
2673

onlyif mysql # DIV for integer division: 
query I rowsort label-756
SELECT ALL + 30 DIV 55 * - 31 * + 81 DIV 92 + - + 9
----
-9

skipif mysql # not compatible
query I rowsort label-756
SELECT ALL + 30 / 55 * - 31 * + 81 / 92 + - + 9
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-757
SELECT + - 49 DIV + + 16
----
-3

skipif mysql # not compatible
query I rowsort label-757
SELECT + - 49 / + + 16
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-758
SELECT ALL 65 DIV - 86 + 98 + + ( + + COUNT( * ) )
----
99

skipif mysql # not compatible
query I rowsort label-758
SELECT ALL 65 / - 86 + 98 + + ( + + COUNT ( * ) )
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-759
SELECT DISTINCT + 72 DIV - ( - + 74 ) + + 73
----
73

skipif mysql # not compatible
query I rowsort label-759
SELECT DISTINCT + 72 / - ( - + 74 ) + + 73
----
73

query I rowsort
SELECT + 92 * - + 95 AS col0
----
-8740

onlyif mysql # aggregate syntax: 
query I rowsort label-761
SELECT ALL 37 * 25 + - + MIN( - 55 ) AS col0
----
980

skipif mysql # not compatible
query I rowsort label-761
SELECT ALL 37 * 25 + - + MIN ( - 55 ) AS col0
----
980

onlyif mysql # aggregate syntax: 
query II rowsort label-762
SELECT ( 5 ) AS col1, SUM( 72 ) - - 41 + - 95 AS col2
----
5
18

skipif mysql # not compatible
query II rowsort label-762
SELECT ( 5 ) AS col1, SUM ( 72 ) - - 41 + - 95 AS col2
----
5
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-763
SELECT + CAST( 39 AS SIGNED ) - - 15
----
54

skipif mysql # not compatible
query I rowsort label-763
SELECT + CAST ( 39 AS INTEGER ) - - 15
----
54

query I rowsort
SELECT ALL 51 * - 44 col2
----
-2244

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-765
SELECT + CASE + - 46 WHEN - COUNT( * ) * - 1 + ( + - CAST( NULL AS SIGNED ) ) + - 37 THEN + + NULLIF ( - 14, + 11 ) + + - 18 ELSE NULL END + + MIN( + 30 ) + 19 + - 27 / ( - + ( - 60 ) ) - - ( - MAX( - 69 ) ) * - 11 * + ( 32 ) * + - 84 * - SUM( + 78 )
----
NULL

skipif mysql # not compatible
query I rowsort label-765
SELECT + CASE + - 46 WHEN - COUNT ( * ) * - 1 + ( + - CAST ( NULL AS INTEGER ) ) + - 37 THEN + + NULLIF ( - 14, + 11 ) + + - 18 ELSE NULL END + + MIN ( + 30 ) + 19 + - 27 / ( - + ( - 60 ) ) - - ( - MAX ( - 69 ) ) * - 11 * + ( 32 ) * + - 84 * - SUM ( + 78 )
----
NULL

query II rowsort
SELECT ALL 74 * + 23 * 64 - - 82, + 70 AS col2
----
109010
70

onlyif mysql # aggregate syntax: 
query I rowsort label-767
SELECT ALL - 8 * - 34 * - + 51 * + + 72 - - 40 + - 54 - - 23 - COUNT( ALL - 59 )
----
-998776

skipif mysql # not compatible
query I rowsort label-767
SELECT ALL - 8 * - 34 * - + 51 * + + 72 - - 40 + - 54 - - 23 - COUNT ( ALL - 59 )
----
-998776

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-768
SELECT CASE CAST( - + 70 AS SIGNED ) WHEN 59 THEN NULL ELSE + 41 END AS col0
----
41

skipif mysql # not compatible
query I rowsort label-768
SELECT CASE CAST ( - + 70 AS INTEGER ) WHEN 59 THEN NULL ELSE + 41 END AS col0
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-769
SELECT - 26 - - - CAST( - 69 AS SIGNED )
----
43

skipif mysql # not compatible
query I rowsort label-769
SELECT - 26 - - - CAST ( - 69 AS INTEGER )
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-770
SELECT ALL COUNT( * ) AS col2, 6 DIV - 50 AS col0
----
1
0

skipif mysql # not compatible
query II rowsort label-770
SELECT ALL COUNT ( * ) AS col2, 6 / - 50 AS col0
----
1
0

query I rowsort
SELECT - 2 - + 36 AS col1
----
-38

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

skipif mysql # not compatible
query II rowsort label-772
SELECT - CAST ( NULL AS INTEGER ) AS col1, - 27 AS col0
----
NULL
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-773
SELECT + 73 * COALESCE ( + 75, 20 + + 28 ) * + + 75 * - 53 + SUM( DISTINCT - 64 ) + 3
----
-21763186

skipif mysql # not compatible
query I rowsort label-773
SELECT + 73 * COALESCE ( + 75, 20 + + 28 ) * + + 75 * - 53 + SUM ( DISTINCT - 64 ) + 3
----
-21763186

query I rowsort
SELECT - 48 * + 90 + 79 AS col0
----
-4241

onlyif mysql # aggregate syntax: 
query I rowsort label-775
SELECT ALL 55 * 42 * COUNT( * )
----
2310

skipif mysql # not compatible
query I rowsort label-775
SELECT ALL 55 * 42 * COUNT ( * )
----
2310

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

skipif mysql # not compatible
query I rowsort label-776
SELECT + 40 / - + 40 * - COUNT ( * ) AS col1
----
1

query I rowsort
SELECT 52 * + - 38
----
-1976

query I rowsort
SELECT - 67 + 12 AS col1
----
-55

query I rowsort
SELECT DISTINCT + CASE + 78 WHEN 10 + - 96 THEN NULL WHEN 64 THEN - 53 WHEN + + 82 / - AVG ( - 99 ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-780
SELECT DISTINCT COUNT( * ) + - - 54 * 48 / + + 38 + + - CASE MAX( 17 ) WHEN - 60 * + COUNT( * ) THEN 28 + - COUNT( * ) + MIN( + 86 ) / + + 46 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-780
SELECT DISTINCT COUNT ( * ) + - - 54 * 48 / + + 38 + + - CASE MAX ( 17 ) WHEN - 60 * + COUNT ( * ) THEN 28 + - COUNT ( * ) + MIN ( + 86 ) / + + 46 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT + NULLIF ( 86, - 80 * + 98 + 55 + - 17 )
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-782
SELECT ALL - 11 AS col2, - 55 + + CAST( NULL AS SIGNED ) / ( CAST( NULL AS SIGNED ) ) - - 38 * - 20 * 50 + + 84 * - NULLIF ( 0, - 97 ) - - + 52
----
-11
NULL

skipif mysql # not compatible
query II rowsort label-782
SELECT ALL - 11 AS col2, - 55 + + CAST ( NULL AS INTEGER ) / ( CAST ( NULL AS INTEGER ) ) - - 38 * - 20 * 50 + + 84 * - NULLIF ( 0, - 97 ) - - + 52
----
-11
NULL

query I rowsort
SELECT + 56 + + ( - 3 )
----
53

query I rowsort
SELECT ALL + 47 + + - 91 + 74
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-785
SELECT ALL - - 59 + - COUNT( * ) * 60 + - 92
----
-93

skipif mysql # not compatible
query I rowsort label-785
SELECT ALL - - 59 + - COUNT ( * ) * 60 + - 92
----
-93

query II rowsort
SELECT - 84, 79 AS col2
----
-84
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-787
SELECT - 38 DIV - 63 + + 67 + COUNT( * ) + - 90 AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-787
SELECT - 38 / - 63 + + 67 + COUNT ( * ) + - 90 AS col0
----
-22

query II rowsort
SELECT - 7 AS col1, + CASE - 55 WHEN - - 67 THEN + - 82 ELSE NULL END
----
-7
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-789
SELECT + + 26 AS col2, COUNT( * ) DIV + + 95 + + COUNT( * ) AS col1, + - COUNT( ALL - 45 ) AS col2
----
26
1
-1

skipif mysql # not compatible
query III rowsort label-789
SELECT + + 26 AS col2, COUNT ( * ) / + + 95 + + COUNT ( * ) AS col1, + - COUNT ( ALL - 45 ) AS col2
----
26
1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-790
SELECT + 77 * + SUM( + 68 ) + + SUM( - ( 43 ) ) + - 94 AS col0
----
5099

skipif mysql # not compatible
query I rowsort label-790
SELECT + 77 * + SUM ( + 68 ) + + SUM ( - ( 43 ) ) + - 94 AS col0
----
5099

onlyif mysql # aggregate syntax: 
query II rowsort label-791
SELECT DISTINCT COUNT( * ) * - 18, 64 * + 42 AS col0
----
-18
2688

skipif mysql # not compatible
query II rowsort label-791
SELECT DISTINCT COUNT ( * ) * - 18, 64 * + 42 AS col0
----
-18
2688

onlyif mysql # DIV for integer division: 
query I rowsort label-792
SELECT DISTINCT + 7 DIV ( + 35 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-792
SELECT DISTINCT + 7 / ( + 35 ) AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-793
SELECT MAX( + CAST( NULL AS SIGNED ) ) - 22 + + 21
----
NULL

skipif mysql # not compatible
query I rowsort label-793
SELECT MAX ( + CAST ( NULL AS INTEGER ) ) - 22 + + 21
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-794
SELECT - 44 * - - 17 + + - 23 AS col1, + NULLIF ( + 97, + MIN( DISTINCT + COALESCE ( - - 73, 47 ) ) / + 77 + + CASE + 70 WHEN - - AVG ( ALL - 58 ) * + 68 / - 25 * 67 / + 93 - + MIN( 48 ) * + - COUNT( * ) THEN + - 54 END + - + 65 + 67 + 74 - + + ( - + COUNT( * ) ) - + - 70 * + 10 * + 57 * - + 99 - ( + - 73 ) * - 90 ) AS col0
----
-771
97

skipif mysql # not compatible
query II rowsort label-794
SELECT - 44 * - - 17 + + - 23 AS col1, + NULLIF ( + 97, + MIN ( DISTINCT + COALESCE ( - - 73, 47 ) ) / + 77 + + CASE + 70 WHEN - - AVG ( ALL - 58 ) * + 68 / - 25 * 67 / + 93 - + MIN ( 48 ) * + - COUNT ( * ) THEN + - 54 END + - + 65 + 67 + 74 - + + ( - + COUNT ( * ) ) - + - 70 * + 10 * + 57 * - + 99 - ( + - 73 ) * - 90 ) AS col0
----
-771
97

onlyif mysql # aggregate syntax: 
query I rowsort label-795
SELECT 37 + - + 36 + + 97 * - - COUNT( * ) + + 23 * 99 AS col2
----
2375

skipif mysql # not compatible
query I rowsort label-795
SELECT 37 + - + 36 + + 97 * - - COUNT ( * ) + + 23 * 99 AS col2
----
2375

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

skipif mysql # not compatible
query I rowsort label-796
SELECT COUNT ( * ) * 44 * + 56 AS col1
----
2464

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-797
SELECT DISTINCT ( - NULLIF ( - 80, + 46 * - 86 - - + 6 + - CAST( NULL AS SIGNED ) ) ) * + 73 AS col0, 86 * - 70
----
5840
-6020

skipif mysql # not compatible
query II rowsort label-797
SELECT DISTINCT ( - NULLIF ( - 80, + 46 * - 86 - - + 6 + - CAST ( NULL AS INTEGER ) ) ) * + 73 AS col0, 86 * - 70
----
5840
-6020

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-798
SELECT ( - + 98 ) * 44 + - MAX( DISTINCT - + 9 ) DIV + 65 - + + 28 AS col2, + 30 AS col0
----
-4340
30

skipif mysql # not compatible
query II rowsort label-798
SELECT ( - + 98 ) * 44 + - MAX ( DISTINCT - + 9 ) / + 65 - + + 28 AS col2, + 30 AS col0
----
-4340
30

onlyif mysql # aggregate syntax: 
query I rowsort label-799
SELECT ALL + 27 * + COALESCE ( - COUNT( * ), 4 )
----
-27

skipif mysql # not compatible
query I rowsort label-799
SELECT ALL + 27 * + COALESCE ( - COUNT ( * ), 4 )
----
-27

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-801
SELECT ALL NULLIF ( + 7, - 71 ) + CASE + 46 WHEN - COUNT( * ) THEN - 28 - - + 62 + CASE COUNT( * ) WHEN - 90 THEN + - CAST( NULL AS SIGNED ) WHEN COUNT( * ) THEN NULL WHEN - 90 THEN NULL ELSE 30 END / + 50 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-801
SELECT ALL NULLIF ( + 7, - 71 ) + CASE + 46 WHEN - COUNT ( * ) THEN - 28 - - + 62 + CASE COUNT ( * ) WHEN - 90 THEN + - CAST ( NULL AS INTEGER ) WHEN COUNT ( * ) THEN NULL WHEN - 90 THEN NULL ELSE 30 END / + 50 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT 69 * + 55 * 84 * 12
----
3825360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-803
SELECT - 65 * - - CAST( 77 AS SIGNED ) * + MIN( - 48 ) + - 67 / 74 * + CASE + 99 WHEN - 54 THEN 7 * + 99 - + 35 + + + 32 WHEN - 75 * CAST( - 39 AS DECIMAL ) * 43 THEN 29 ELSE NULL END + - MAX( DISTINCT 10 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-803
SELECT - 65 * - - CAST ( 77 AS INTEGER ) * + MIN ( - 48 ) + - 67 / 74 * + CASE + 99 WHEN - 54 THEN 7 * + 99 - + 35 + + + 32 WHEN - 75 * CAST ( - 39 AS REAL ) * 43 THEN 29 ELSE NULL END + - MAX ( DISTINCT 10 ) col1
----
NULL

query I rowsort
SELECT ALL - 54 * - 13 AS col1
----
702

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

onlyif mysql # aggregate syntax: 
query I rowsort label-806
SELECT ALL - 62 + - 94 * - - 41 * COALESCE ( - COUNT( * ), - + ( + 13 ) ) + 25 + + + 68
----
3885

skipif mysql # not compatible
query I rowsort label-806
SELECT ALL - 62 + - 94 * - - 41 * COALESCE ( - COUNT ( * ), - + ( + 13 ) ) + 25 + + + 68
----
3885

query I rowsort
SELECT DISTINCT 97 + + 21 * - 90
----
-1793

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-808
SELECT - 40 / + CAST( NULL AS DECIMAL ) - + ( + + 95 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-808
SELECT - 40 / + CAST ( NULL AS REAL ) - + ( + + 95 ) AS col1
----
NULL

query II rowsort
SELECT 39 - 18 AS col1, + 6 AS col1
----
21
6

query I rowsort
SELECT ALL - 18 + 70 + - 19 - 29 AS col0
----
4

query I rowsort
SELECT 15 * - CASE + - NULLIF ( + 54, + 76 ) WHEN + 63 - - 94 THEN 66 ELSE NULL END AS col0
----
NULL

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

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

query I rowsort
SELECT - 81 - + 52
----
-133

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-814
SELECT - CASE - 24 WHEN + - COUNT( * ) * - 0 * - - ( 59 ) * - COUNT( - COALESCE ( ( + 85 ), - + ( - CAST( 55 AS SIGNED ) ) ) ) THEN NULL ELSE - + 74 END AS col2
----
74

skipif mysql # not compatible
query I rowsort label-814
SELECT - CASE - 24 WHEN + - COUNT ( * ) * - 0 * - - ( 59 ) * - COUNT ( - COALESCE ( ( + 85 ), - + ( - CAST ( 55 AS INTEGER ) ) ) ) THEN NULL ELSE - + 74 END AS col2
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-815
SELECT ALL + - CAST( NULL AS SIGNED ) * + MAX( ALL - - COALESCE ( - 81, + + 99 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-815
SELECT ALL + - CAST ( NULL AS INTEGER ) * + MAX ( ALL - - COALESCE ( - 81, + + 99 ) ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 23 * - 31 - 7 + - - 26 * + 99 * + - 15 * 9
----
-348210

query II rowsort
SELECT DISTINCT - 35 AS col2, - 34 AS col1
----
-35
-34

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

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

query I rowsort
SELECT 92 * - - 15
----
1380

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-820
SELECT 99 DIV COUNT( * ) * 64
----
6336

skipif mysql # not compatible
query I rowsort label-820
SELECT 99 / COUNT ( * ) * 64
----
6336

onlyif mysql # aggregate syntax: 
query II rowsort label-821
SELECT COUNT( * ) AS col2, + 99 + 51
----
1
150

skipif mysql # not compatible
query II rowsort label-821
SELECT COUNT ( * ) AS col2, + 99 + 51
----
1
150

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-822
SELECT - NULLIF ( - + 51, - CASE - 81 WHEN + COALESCE ( - - 97, 1 ) + 24 * + 4 THEN + - 92 WHEN - 49 THEN - + 19 WHEN - 9 * - - 24 + - - 12 THEN + + COUNT( * ) * - - 61 * + 30 * 24 DIV - + 54 ELSE - 47 END * - - AVG ( 39 ) ) DIV - 97 - - 67 - - ( + - 72 ) + COUNT( * ) DIV + + COUNT( * ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-822
SELECT - NULLIF ( - + 51, - CASE - 81 WHEN + COALESCE ( - - 97, 1 ) + 24 * + 4 THEN + - 92 WHEN - 49 THEN - + 19 WHEN - 9 * - - 24 + - - 12 THEN + + COUNT ( * ) * - - 61 * + 30 * 24 / - + 54 ELSE - 47 END * - - AVG ( 39 ) ) / - 97 - - 67 - - ( + - 72 ) + COUNT ( * ) / + + COUNT ( * ) AS col2
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-823
SELECT - 50 DIV ( - + 67 )
----
0

skipif mysql # not compatible
query I rowsort label-823
SELECT - 50 / ( - + 67 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-824
SELECT - 15 * 68 + + COUNT( * ) col2, CAST( COUNT( * ) AS SIGNED ) + - 88 AS col1
----
-1019
-87

skipif mysql # not compatible
query II rowsort label-824
SELECT - 15 * 68 + + COUNT ( * ) col2, CAST ( COUNT ( * ) AS INTEGER ) + - 88 AS col1
----
-1019
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-825
SELECT DISTINCT - 40 * - + COUNT( * ) * ( + 57 )
----
2280

skipif mysql # not compatible
query I rowsort label-825
SELECT DISTINCT - 40 * - + COUNT ( * ) * ( + 57 )
----
2280

onlyif mysql # aggregate syntax: 
query I rowsort label-826
SELECT ALL + 68 + - 46 - + 16 - COUNT( * ) * + + SUM( + + 40 )
----
-34

skipif mysql # not compatible
query I rowsort label-826
SELECT ALL + 68 + - 46 - + 16 - COUNT ( * ) * + + SUM ( + + 40 )
----
-34

query II rowsort
SELECT - 7 + + 65 + - 82 * 14, 95 AS col1
----
-1090
95

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-829
SELECT + + SUM( CAST( NULL AS DECIMAL ) ) + - + COUNT( ( 54 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-829
SELECT + + SUM ( CAST ( NULL AS REAL ) ) + - + COUNT ( ( 54 ) )
----
NULL

query I rowsort
SELECT + - 14 + - 34 AS col0
----
-48

query II rowsort
SELECT ALL - 2, 71 AS col2
----
-2
71

onlyif mysql # aggregate syntax: 
query II rowsort label-832
SELECT + 16 + - + 10 + + 52 AS col2, 80 * COUNT( * ) AS col0
----
58
80

skipif mysql # not compatible
query II rowsort label-832
SELECT + 16 + - + 10 + + 52 AS col2, 80 * COUNT ( * ) AS col0
----
58
80

query I rowsort
SELECT ALL - 22 + 9 + 77
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-834
SELECT - MAX( - 49 )
----
49

skipif mysql # not compatible
query I rowsort label-834
SELECT - MAX ( - 49 )
----
49

query I rowsort
SELECT + 43 + + 49 AS col0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-836
SELECT - COALESCE ( - 0, - - COALESCE ( + 37, - - 94 ) * NULLIF ( + + 38, SUM( - 91 ) ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-836
SELECT - COALESCE ( - 0, - - COALESCE ( + 37, - - 94 ) * NULLIF ( + + 38, SUM ( - 91 ) ) ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-837
SELECT - + ( + + 88 ) + + - COUNT( * ) + - 89 AS col0, 28
----
-178
28

skipif mysql # not compatible
query II rowsort label-837
SELECT - + ( + + 88 ) + + - COUNT ( * ) + - 89 AS col0, 28
----
-178
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-838
SELECT + + CAST( ( - 46 ) AS SIGNED ) * - - 84 AS col2
----
-3864

skipif mysql # not compatible
query I rowsort label-838
SELECT + + CAST ( ( - 46 ) AS INTEGER ) * - - 84 AS col2
----
-3864

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

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

query I rowsort
SELECT + 41 + - 77
----
-36

query I rowsort
SELECT DISTINCT + 4 * - 58 AS col1
----
-232

onlyif mysql # DIV for integer division: 
query I rowsort label-843
SELECT ALL - 34 DIV + 51 * + 54 * 14 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-843
SELECT ALL - 34 / + 51 * + 54 * 14 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-844
SELECT + 33 * + + COUNT( * ) * + 85 AS col1
----
2805

skipif mysql # not compatible
query I rowsort label-844
SELECT + 33 * + + COUNT ( * ) * + 85 AS col1
----
2805

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-845
SELECT - 10 * + COUNT( DISTINCT - ( + - 22 ) ) * CASE - 52 WHEN - + COALESCE ( + 60, - 51 * - 69 + - 45 + + + ( - 83 ) DIV - + 15 - - 86 + - 48 ) * + CASE - + 82 WHEN MAX( ALL - + 81 ) THEN NULL ELSE - 86 END * - 39 * 22 * + - 84 + + 67 THEN - 23 ELSE + COALESCE ( + 47, 62, 85 * - NULLIF ( - 48, + + ( AVG ( DISTINCT - 13 ) ) + - ( - 69 ) ) * + + 24 * + - 16 * - NULLIF ( + 33, - 93 ) - + 92 DIV - COUNT( * ) + + 26 * 55 ) END
----
-470

skipif mysql # not compatible
query I rowsort label-845
SELECT - 10 * + COUNT ( DISTINCT - ( + - 22 ) ) * CASE - 52 WHEN - + COALESCE ( + 60, - 51 * - 69 + - 45 + + + ( - 83 ) / - + 15 - - 86 + - 48 ) * + CASE - + 82 WHEN MAX ( ALL - + 81 ) THEN NULL ELSE - 86 END * - 39 * 22 * + - 84 + + 67 THEN - 23 ELSE + COALESCE ( + 47, 62, 85 * - NULLIF ( - 48, + + ( AVG ( DISTINCT - 13 ) ) + - ( - 69 ) ) * + + 24 * + - 16 * - NULLIF ( + 33, - 93 ) - + 92 / - COUNT ( * ) + + 26 * 55 ) END
----
-470

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-847
SELECT + COUNT( DISTINCT 78 ) * + + 67 * 56 * + 21 AS col2
----
78792

skipif mysql # not compatible
query I rowsort label-847
SELECT + COUNT ( DISTINCT 78 ) * + + 67 * 56 * + 21 AS col2
----
78792

query II rowsort
SELECT + 74 * 50 col1, 39 + + 85
----
3700
124

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-849
SELECT - COUNT( - + 45 ) + 16 + - - 79 + - + 91 DIV 11 * 14 * + 64 AS col1
----
-7074

skipif mysql # not compatible
query I rowsort label-849
SELECT - COUNT ( - + 45 ) + 16 + - - 79 + - + 91 / 11 * 14 * + 64 AS col1
----
-7074

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-851
SELECT ALL 32 * - COUNT( - - 74 ) col2
----
-32

skipif mysql # not compatible
query I rowsort label-851
SELECT ALL 32 * - COUNT ( - - 74 ) col2
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-852
SELECT ALL + NULLIF ( - - CASE + CAST( NULL AS SIGNED ) WHEN 54 THEN SUM( + 40 ) * + 88 END, 17 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-852
SELECT ALL + NULLIF ( - - CASE + CAST ( NULL AS INTEGER ) WHEN 54 THEN SUM ( + 40 ) * + 88 END, 17 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-853
SELECT - COUNT( * ) + + 58
----
57

skipif mysql # not compatible
query I rowsort label-853
SELECT - COUNT ( * ) + + 58
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-854
SELECT 63 * + + 11 + - COUNT( * )
----
692

skipif mysql # not compatible
query I rowsort label-854
SELECT 63 * + + 11 + - COUNT ( * )
----
692

query I rowsort
SELECT + 98 * + 63 + + 63 + + 13 * 40 * + + 47
----
30677

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-856
SELECT COALESCE ( + COUNT( * ), + 89 DIV NULLIF ( 51, + CAST( + ( 83 ) AS SIGNED ) + + + CAST( + - 16 AS SIGNED ) * - COUNT( * ) * - 80 ) + - 81 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-856
SELECT COALESCE ( + COUNT ( * ), + 89 / NULLIF ( 51, + CAST ( + ( 83 ) AS INTEGER ) + + + CAST ( + - 16 AS INTEGER ) * - COUNT ( * ) * - 80 ) + - 81 ) AS col1
----
1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-858
SELECT DISTINCT - + ( CAST( NULL AS SIGNED ) ) / - + 35 * + 28 + + NULLIF ( - + 75, + 56 - - MAX( 77 ) / 3 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-858
SELECT DISTINCT - + ( CAST ( NULL AS INTEGER ) ) / - + 35 * + 28 + + NULLIF ( - + 75, + 56 - - MAX ( 77 ) / 3 ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-859
SELECT - 13 DIV - 80 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-859
SELECT - 13 / - 80 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-860
SELECT ALL + 20 * - - COUNT( CAST( NULL AS SIGNED ) ) * 58 + - - 61 + - - COUNT( DISTINCT + + 50 ) * - - 70
----
131

skipif mysql # not compatible
query I rowsort label-860
SELECT ALL + 20 * - - COUNT ( CAST ( NULL AS INTEGER ) ) * 58 + - - 61 + - - COUNT ( DISTINCT + + 50 ) * - - 70
----
131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-861
SELECT - + 66 * 35 AS col1, - MAX( ALL + CAST( - - ( 73 ) AS SIGNED ) ) AS col0
----
-2310
-73

skipif mysql # not compatible
query II rowsort label-861
SELECT - + 66 * 35 AS col1, - MAX ( ALL + CAST ( - - ( 73 ) AS INTEGER ) ) AS col0
----
-2310
-73

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

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

query I rowsort
SELECT - + 96 - - - 36 + - 63
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-864
SELECT - COALESCE ( + COUNT( * ), - - 17 + - + 57 + + 79 + - + 81 )
----
-1

skipif mysql # not compatible
query I rowsort label-864
SELECT - COALESCE ( + COUNT ( * ), - - 17 + - + 57 + + 79 + - + 81 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-865
SELECT + + 6 * - + 5 + + ( + ( + CASE - MIN( DISTINCT - CAST( NULL AS SIGNED ) ) WHEN - 13 * - 88 * 85 / - 10 - 59 THEN + 9 + - 97 + - 35 WHEN 89 * - 41 THEN NULL WHEN - MAX( - 63 ) THEN NULL END ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-865
SELECT + + 6 * - + 5 + + ( + ( + CASE - MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) WHEN - 13 * - 88 * 85 / - 10 - 59 THEN + 9 + - 97 + - 35 WHEN 89 * - 41 THEN NULL WHEN - MAX ( - 63 ) THEN NULL END ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-866
SELECT + + NULLIF ( - 17, + ( - 73 ) ) DIV + ( 72 ) * + - 75 - + - 90
----
90

skipif mysql # not compatible
query I rowsort label-866
SELECT + + NULLIF ( - 17, + ( - 73 ) ) / + ( 72 ) * + - 75 - + - 90
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-867
SELECT - + 47 + CAST( NULL AS SIGNED ) - + + ( 67 ) / + 45 * + 82 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-867
SELECT - + 47 + CAST ( NULL AS INTEGER ) - + + ( 67 ) / + 45 * + 82 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-868
SELECT DISTINCT - - 10 - - 37 / + - CAST( NULL AS SIGNED ) / + + COALESCE ( + 1, - + NULLIF ( + + 30, - 42 / - - 41 ) * 77 + 12 * - 92 + + 27 )
----
NULL

skipif mysql # not compatible
query I rowsort label-868
SELECT DISTINCT - - 10 - - 37 / + - CAST ( NULL AS INTEGER ) / + + COALESCE ( + 1, - + NULLIF ( + + 30, - 42 / - - 41 ) * 77 + 12 * - 92 + + 27 )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-869
SELECT - - MAX ( ALL - 62 )
----
-62

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

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

query I rowsort
SELECT - 4 + - 93 AS col1
----
-97

query I rowsort
SELECT + 10 * 92
----
920

query I rowsort
SELECT - 22 * 71 AS col2
----
-1562

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-874
SELECT + 86 - - 10 * - + 4 * + COUNT( 53 ) AS col1, + COALESCE ( - + 75, + 2 DIV - 46 + 52 DIV - + 81 + + 52 + + - 65, - - 65 + + + 13 ) AS col2
----
46
-75

skipif mysql # not compatible
query II rowsort label-874
SELECT + 86 - - 10 * - + 4 * + COUNT ( 53 ) AS col1, + COALESCE ( - + 75, + 2 / - 46 + 52 / - + 81 + + 52 + + - 65, - - 65 + + + 13 ) AS col2
----
46
-75

onlyif mysql # DIV for integer division: 
query II rowsort label-875
SELECT 2 DIV - + ( 60 ), 62 AS col0
----
0
62

skipif mysql # not compatible
query II rowsort label-875
SELECT 2 / - + ( 60 ), 62 AS col0
----
0
62

onlyif mysql # DIV for integer division: 
query I rowsort label-876
SELECT - 32 DIV - + 70 + 28
----
28

skipif mysql # not compatible
query I rowsort label-876
SELECT - 32 / - + 70 + 28
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-877
SELECT ALL MAX( ALL 1 ) + + 35 * + COUNT( * ) * - + COUNT( * ) + + 62 + + - 83 * - 82 AS col1
----
6834

skipif mysql # not compatible
query I rowsort label-877
SELECT ALL MAX ( ALL 1 ) + + 35 * + COUNT ( * ) * - + COUNT ( * ) + + 62 + + - 83 * - 82 AS col1
----
6834

onlyif mysql # aggregate syntax: 
query I rowsort label-878
SELECT - 7 * - 13 + COUNT( * ) AS col1
----
92

skipif mysql # not compatible
query I rowsort label-878
SELECT - 7 * - 13 + COUNT ( * ) AS col1
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-879
SELECT 53 * - 10 * - COUNT( * ) * + 43
----
22790

skipif mysql # not compatible
query I rowsort label-879
SELECT 53 * - 10 * - COUNT ( * ) * + 43
----
22790

query I rowsort
SELECT ALL ( - 29 ) + COALESCE ( 45, + 52 * - ( - + 61 ) + - 7 ) + 43 AS col0
----
59

query I rowsort
SELECT 62 * + 13 col1
----
806

onlyif mysql # aggregate syntax: 
query I rowsort label-882
SELECT 96 * - SUM( ALL + 19 ) - - 50 * + 40
----
176

skipif mysql # not compatible
query I rowsort label-882
SELECT 96 * - SUM ( ALL + 19 ) - - 50 * + 40
----
176

query I rowsort
SELECT DISTINCT - 23 * - + 68
----
1564

query I rowsort
SELECT ALL + 68 + 19 AS col2
----
87

query I rowsort
SELECT ( + 56 ) + 1 * + 86
----
142

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-886
SELECT + 84 + COUNT( * ) DIV + + ( 72 )
----
84

skipif mysql # not compatible
query I rowsort label-886
SELECT + 84 + COUNT ( * ) / + + ( 72 )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-887
SELECT ALL - 75 * + 66 * - COUNT( * ) + - - 42
----
4992

skipif mysql # not compatible
query I rowsort label-887
SELECT ALL - 75 * + 66 * - COUNT ( * ) + - - 42
----
4992

onlyif mysql # aggregate syntax: 
query I rowsort label-888
SELECT ALL + ( - COALESCE ( - - 65, - 76 + + - 77 ) ) + COUNT( * ) + 80 - 35
----
-19

skipif mysql # not compatible
query I rowsort label-888
SELECT ALL + ( - COALESCE ( - - 65, - 76 + + - 77 ) ) + COUNT ( * ) + 80 - 35
----
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-889
SELECT + COUNT( * ) AS col0, 97 + + COUNT( * ) + 20 + + 57 AS col2
----
1
175

skipif mysql # not compatible
query II rowsort label-889
SELECT + COUNT ( * ) AS col0, 97 + + COUNT ( * ) + 20 + + 57 AS col2
----
1
175

query I rowsort
SELECT ALL - 31 * - 67
----
2077

onlyif mysql # aggregate syntax: 
query I rowsort label-891
SELECT + MAX( - 49 ) + 87 AS col1
----
38

skipif mysql # not compatible
query I rowsort label-891
SELECT + MAX ( - 49 ) + 87 AS col1
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-892
SELECT - 96 * 7 / + 43 / CAST( NULL AS SIGNED ) - - COUNT( * ) * - 78
----
NULL

skipif mysql # not compatible
query I rowsort label-892
SELECT - 96 * 7 / + 43 / CAST ( NULL AS INTEGER ) - - COUNT ( * ) * - 78
----
NULL

query I rowsort
SELECT - 34 - + 40 + - 81 * - 72
----
5758

query I rowsort
SELECT + 0 + - - 40
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-895
SELECT ALL - SUM( ALL + 10 ) AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-895
SELECT ALL - SUM ( ALL + 10 ) AS col0
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-896
SELECT ALL + CASE + 14 WHEN - 43 THEN - 19 END * + + 0 / CAST( - 6 AS SIGNED ) * - MIN( - 26 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-896
SELECT ALL + CASE + 14 WHEN - 43 THEN - 19 END * + + 0 / CAST ( - 6 AS INTEGER ) * - MIN ( - 26 ) AS col0
----
NULL

query I rowsort
SELECT + 23 * - + ( - NULLIF ( 57, ( 89 ) * 26 * AVG ( + - 3 ) ) )
----
1311

onlyif mysql # DIV for integer division: 
query I rowsort label-898
SELECT DISTINCT + ( 50 ) DIV - + 11 AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-898
SELECT DISTINCT + ( 50 ) / - + 11 AS col0
----
-4

query II rowsort
SELECT DISTINCT - COALESCE ( 83, 94 ) col0, COALESCE ( - 76, + 24 ) AS col0
----
-83
-76

query I rowsort
SELECT - 89 + + + 44
----
-45

query I rowsort
SELECT ALL - CASE - AVG ( ALL - 6 ) WHEN + + 46 THEN - 97 ELSE NULL END * + 30
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-902
SELECT COALESCE ( + 99, + CAST( NULL AS SIGNED ) + - 35 + - + 18 * + 81 * - COUNT( * ) * + + 85, - 96 + + 21 * + 51 ) + + 41 AS col1
----
140

skipif mysql # not compatible
query I rowsort label-902
SELECT COALESCE ( + 99, + CAST ( NULL AS INTEGER ) + - 35 + - + 18 * + 81 * - COUNT ( * ) * + + 85, - 96 + + 21 * + 51 ) + + 41 AS col1
----
140

onlyif mysql # DIV for integer division: 
query II rowsort label-903
SELECT 63 AS col1, 54 DIV - 9 AS col2
----
63
-6

skipif mysql # not compatible
query II rowsort label-903
SELECT 63 AS col1, 54 / - 9 AS col2
----
63
-6

query I rowsort
SELECT ALL + ( - 72 ) + - 53
----
-125

query I rowsort
SELECT ALL - 72 * - + 56
----
4032

query I rowsort
SELECT DISTINCT + 17 + 7
----
24

query II rowsort
SELECT DISTINCT 45 AS col0, + 38 * + 95 AS col1
----
45
3610

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-908
SELECT ALL 96 AS col2, - COUNT( ALL - 37 ) / - 58 + + 58 * ( - - 2 ) * + 6 + CAST( - 29 AS DECIMAL ) + + ( CASE - - 0 WHEN - 29 THEN NULL WHEN + + COUNT( * ) * + - 56 * + 39 + 28 * + 34 + - 17 THEN COUNT( * ) / - 42 * + 21 + + 87 + - - SUM( - 84 ) * - ( - 87 ) END ) / - - 14 - - + 8 + - CAST( NULL AS DECIMAL ) * + 74
----
96
NULL

skipif mysql # not compatible
query II rowsort label-908
SELECT ALL 96 AS col2, - COUNT ( ALL - 37 ) / - 58 + + 58 * ( - - 2 ) * + 6 + CAST ( - 29 AS REAL ) + + ( CASE - - 0 WHEN - 29 THEN NULL WHEN + + COUNT ( * ) * + - 56 * + 39 + 28 * + 34 + - 17 THEN COUNT ( * ) / - 42 * + 21 + + 87 + - - SUM ( - 84 ) * - ( - 87 ) END ) / - - 14 - - + 8 + - CAST ( NULL AS REAL ) * + 74
----
96
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-909
SELECT NULLIF ( 69, + COUNT( 43 ) ) + - 69 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-909
SELECT NULLIF ( 69, + COUNT ( 43 ) ) + - 69 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-910
SELECT ALL + 45 + - + 43 + - CASE - - 80 WHEN 56 / 4 THEN + 53 WHEN 55 + - COUNT( * ) THEN NULL ELSE + + 72 END
----
-70

skipif mysql # not compatible
query I rowsort label-910
SELECT ALL + 45 + - + 43 + - CASE - - 80 WHEN 56 / 4 THEN + 53 WHEN 55 + - COUNT ( * ) THEN NULL ELSE + + 72 END
----
-70

query I rowsort
SELECT DISTINCT 73 + - 12
----
61

query I rowsort
SELECT 8 * 35
----
280

query I rowsort
SELECT 11 - - 2 + + 93 * + - 0
----
13

onlyif mysql # DIV for integer division: 
query II rowsort label-914
SELECT 0 DIV 16 * 72 * + + 89 * 82 * + 90 + + 84 AS col1, 34
----
84
34

skipif mysql # not compatible
query II rowsort label-914
SELECT 0 / 16 * 72 * + + 89 * 82 * + 90 + + 84 AS col1, 34
----
84
34

onlyif mysql # aggregate syntax: 
query I rowsort label-915
SELECT SUM( DISTINCT + - 62 ) AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-915
SELECT SUM ( DISTINCT + - 62 ) AS col0
----
-62

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

onlyif mysql # aggregate syntax: 
query I rowsort label-917
SELECT 72 + ( - 61 ) * - 27 + - + COUNT( * ) * 47 AS col0
----
1672

skipif mysql # not compatible
query I rowsort label-917
SELECT 72 + ( - 61 ) * - 27 + - + COUNT ( * ) * 47 AS col0
----
1672

onlyif mysql # aggregate syntax: 
query I rowsort label-918
SELECT COUNT( * ) * - 20 * + 79 + + 62 AS col1
----
-1518

skipif mysql # not compatible
query I rowsort label-918
SELECT COUNT ( * ) * - 20 * + 79 + + 62 AS col1
----
-1518

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

skipif mysql # not compatible
query I rowsort label-919
SELECT ALL + COUNT ( * ) * + SUM ( ALL 21 ) AS col1
----
21

query I rowsort
SELECT ALL 52 - - + COALESCE ( - + 56, 54 ) AS col0
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-921
SELECT DISTINCT + COUNT( + + 1 ) - 8 * - 18 * - - ( + 72 ) AS col2, 93
----
10369
93

skipif mysql # not compatible
query II rowsort label-921
SELECT DISTINCT + COUNT ( + + 1 ) - 8 * - 18 * - - ( + 72 ) AS col2, 93
----
10369
93

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-923
SELECT + 53 AS col2, - CASE - 65 WHEN + + 10 - - 1 + + ( - + 46 ) - - 5 * + + CAST( - - 74 AS SIGNED ) THEN COUNT( * ) END
----
53
NULL

skipif mysql # not compatible
query II rowsort label-923
SELECT + 53 AS col2, - CASE - 65 WHEN + + 10 - - 1 + + ( - + 46 ) - - 5 * + + CAST ( - - 74 AS INTEGER ) THEN COUNT ( * ) END
----
53
NULL

query I rowsort
SELECT - 68 * 97 + + - 93 * - 66
----
-458

query I rowsort
SELECT + CASE + CASE + 39 WHEN - 23 THEN - - 57 ELSE NULL END WHEN - 83 * + 97 * - 85 THEN NULL WHEN + + ( - ( + - 11 ) ) THEN + 17 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-926
SELECT SUM( DISTINCT + - 48 ) DIV + - 33 col2
----
1

skipif mysql # not compatible
query I rowsort label-926
SELECT SUM ( DISTINCT + - 48 ) / + - 33 col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-927
SELECT ALL + 19 * + MIN( + + COALESCE ( + 42, + 76 ) )
----
798

skipif mysql # not compatible
query I rowsort label-927
SELECT ALL + 19 * + MIN ( + + COALESCE ( + 42, + 76 ) )
----
798

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

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

query II rowsort
SELECT ALL - 74 AS col0, 75
----
-74
75

onlyif mysql # aggregate syntax: 
query I rowsort label-930
SELECT DISTINCT - - COUNT( ( + + 84 ) ) col0
----
1

skipif mysql # not compatible
query I rowsort label-930
SELECT DISTINCT - - COUNT ( ( + + 84 ) ) col0
----
1

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

skipif mysql # not compatible
query I rowsort label-931
SELECT ALL SUM ( 22 )
----
22

query II rowsort
SELECT DISTINCT - 67 AS col0, 3 col1
----
-67
3

onlyif mysql # DIV for integer division: 
query I rowsort label-933
SELECT - 64 + 7 DIV + ( + - 81 )
----
-64

skipif mysql # not compatible
query I rowsort label-933
SELECT - 64 + 7 / + ( + - 81 )
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-934
SELECT - SUM( DISTINCT NULLIF ( - 29, 88 - - 91 ) ) AS col1
----
29

skipif mysql # not compatible
query I rowsort label-934
SELECT - SUM ( DISTINCT NULLIF ( - 29, 88 - - 91 ) ) AS col1
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-935
SELECT 87 + COUNT( * ) + + 47 + - CAST( 99 AS SIGNED ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-935
SELECT 87 + COUNT ( * ) + + 47 + - CAST ( 99 AS INTEGER ) AS col2
----
36

onlyif mysql # aggregate syntax: 
query II rowsort label-936
SELECT - + SUM( - 44 ) + - + COUNT( * ) + + SUM( DISTINCT - 6 ) * + - 90 AS col0, 10 * + - 93 col1
----
583
-930

skipif mysql # not compatible
query II rowsort label-936
SELECT - + SUM ( - 44 ) + - + COUNT ( * ) + + SUM ( DISTINCT - 6 ) * + - 90 AS col0, 10 * + - 93 col1
----
583
-930

onlyif mysql # aggregate syntax: 
query I rowsort label-937
SELECT ALL + COUNT( * ) + - - MAX( - 44 )
----
-43

skipif mysql # not compatible
query I rowsort label-937
SELECT ALL + COUNT ( * ) + - - MAX ( - 44 )
----
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-938
SELECT - 51 - COUNT( * ) * - 68 AS col2, - 84 * + 30
----
17
-2520

skipif mysql # not compatible
query II rowsort label-938
SELECT - 51 - COUNT ( * ) * - 68 AS col2, - 84 * + 30
----
17
-2520

onlyif mysql # DIV for integer division: 
query I rowsort label-939
SELECT ALL COALESCE ( + 2, + 52 DIV + + 53 )
----
2

skipif mysql # not compatible
query I rowsort label-939
SELECT ALL COALESCE ( + 2, + 52 / + + 53 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-940
SELECT - COUNT( * ) + 72 * + 19 AS col1
----
1367

skipif mysql # not compatible
query I rowsort label-940
SELECT - COUNT ( * ) + 72 * + 19 AS col1
----
1367

query I rowsort
SELECT ALL + 13 + 64
----
77

query I rowsort
SELECT - 91 + + 22 + - 84 AS col1
----
-153

query I rowsort
SELECT ALL + 40 * 17
----
680

onlyif mysql # aggregate syntax: 
query II rowsort label-944
SELECT - 78 * - MAX( - + 10 ) AS col0, 45
----
-780
45

skipif mysql # not compatible
query II rowsort label-944
SELECT - 78 * - MAX ( - + 10 ) AS col0, 45
----
-780
45

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

onlyif mysql # DIV for integer division: 
query II rowsort label-946
SELECT DISTINCT + CASE + ( 35 ) WHEN 76 THEN NULL ELSE 56 END AS col0, + 9 DIV - 35
----
56
0

skipif mysql # not compatible
query II rowsort label-946
SELECT DISTINCT + CASE + ( 35 ) WHEN 76 THEN NULL ELSE 56 END AS col0, + 9 / - 35
----
56
0

query I rowsort
SELECT ALL + 47 * - - 73 - + 2 AS col1
----
3429

onlyif mysql # aggregate syntax: 
query II rowsort label-948
SELECT ALL + ( 31 ) AS col2, MAX( 16 )
----
31
16

skipif mysql # not compatible
query II rowsort label-948
SELECT ALL + ( 31 ) AS col2, MAX ( 16 )
----
31
16

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-949
SELECT - + 84 + CAST( - + CAST( NULL AS DECIMAL ) AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-949
SELECT - + 84 + CAST ( - + CAST ( NULL AS REAL ) AS REAL ) AS col0
----
NULL

query I rowsort
SELECT + ( 11 ) * - + 45
----
-495

query I rowsort
SELECT + - 43 * + 25 + 75
----
-1000

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-952
SELECT - 49 DIV - 25 + - - ( + MIN( - 57 ) ) AS col0, + 27 * + 95 * + 94 * + 24
----
-56
5786640

skipif mysql # not compatible
query II rowsort label-952
SELECT - 49 / - 25 + - - ( + MIN ( - 57 ) ) AS col0, + 27 * + 95 * + 94 * + 24
----
-56
5786640

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-953
SELECT ALL + CAST( + + MAX( 71 ) AS SIGNED )
----
71

skipif mysql # not compatible
query I rowsort label-953
SELECT ALL + CAST ( + + MAX ( 71 ) AS INTEGER )
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-954
SELECT - - SUM( - + 72 ) * - 58 AS col2
----
4176

skipif mysql # not compatible
query I rowsort label-954
SELECT - - SUM ( - + 72 ) * - 58 AS col2
----
4176

onlyif mysql # aggregate syntax: 
query I rowsort label-955
SELECT ALL + MIN( ALL - - 7 ) * 95 AS col2
----
665

skipif mysql # not compatible
query I rowsort label-955
SELECT ALL + MIN ( ALL - - 7 ) * 95 AS col2
----
665

query II rowsort
SELECT ALL + ( - 1 ) AS col0, 15 AS col0
----
-1
15

query I rowsort
SELECT DISTINCT + + 3 * + 3
----
9

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-960
SELECT - - 64 * + - ( + ( - - 32 ) ) - - 44 * - + 36 * - + MAX( - 84 ) + + 11
----
-135093

skipif mysql # not compatible
query I rowsort label-960
SELECT - - 64 * + - ( + ( - - 32 ) ) - - 44 * - + 36 * - + MAX ( - 84 ) + + 11
----
-135093

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-962
SELECT + + COUNT( * ) + - - SUM( ALL + 46 ) + - 10
----
37

skipif mysql # not compatible
query I rowsort label-962
SELECT + + COUNT ( * ) + - - SUM ( ALL + 46 ) + - 10
----
37

query I rowsort
SELECT + - 58 * - 68
----
3944

query I rowsort
SELECT ALL + ( - ( - 90 ) ) * 39 + + - 99 + - 37 AS col2
----
3374

query I rowsort
SELECT + 98 + - 46 * - COALESCE ( + + 52, - - ( 50 ) ) AS col0
----
2490

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

onlyif mysql # aggregate syntax: 
query II rowsort label-967
SELECT 88 AS col2, COUNT( * ) + 24
----
88
25

skipif mysql # not compatible
query II rowsort label-967
SELECT 88 AS col2, COUNT ( * ) + 24
----
88
25

query I rowsort
SELECT + 4 + 15 AS col1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-969
SELECT ALL 9 + - COUNT( DISTINCT + 91 )
----
8

skipif mysql # not compatible
query I rowsort label-969
SELECT ALL 9 + - COUNT ( DISTINCT + 91 )
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-970
SELECT DISTINCT ( - 82 ) * - 37 DIV - COUNT( * )
----
-3034

skipif mysql # not compatible
query I rowsort label-970
SELECT DISTINCT ( - 82 ) * - 37 / - COUNT ( * )
----
-3034

onlyif mysql # aggregate syntax: 
query I rowsort label-971
SELECT + 33 + + + COUNT( * ) + + 46 + - 32 AS col1
----
48

skipif mysql # not compatible
query I rowsort label-971
SELECT + 33 + + + COUNT ( * ) + + 46 + - 32 AS col1
----
48

query I rowsort
SELECT + 91 * + + 61
----
5551

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

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

query I rowsort
SELECT + 9 + - - 19 * 19
----
370

onlyif mysql # aggregate syntax: 
query I rowsort label-975
SELECT - NULLIF ( + + 42, + + 17 ) * - - COUNT( * )
----
-42

skipif mysql # not compatible
query I rowsort label-975
SELECT - NULLIF ( + + 42, + + 17 ) * - - COUNT ( * )
----
-42

query II rowsort
SELECT 82 AS col0, - ( - 20 ) AS col2
----
82
20

onlyif mysql # DIV for integer division: 
query I rowsort label-977
SELECT ALL - 82 - + 65 DIV - - 87 col2
----
-82

skipif mysql # not compatible
query I rowsort label-977
SELECT ALL - 82 - + 65 / - - 87 col2
----
-82

query I rowsort
SELECT + 61 * + 71
----
4331

onlyif mysql # DIV for integer division: 
query I rowsort label-979
SELECT DISTINCT - 64 DIV + 72
----
0

skipif mysql # not compatible
query I rowsort label-979
SELECT DISTINCT - 64 / + 72
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-980
SELECT ALL ( + - CASE - 59 WHEN - + CASE - - COUNT( * ) WHEN - 19 - + - 24 THEN NULL WHEN + 7 THEN NULL WHEN - 14 DIV 40 + COALESCE ( + 85, - + 16 ) THEN + 69 ELSE - 91 * + + 10 END THEN NULL WHEN 3 THEN 0 ELSE + + 80 DIV + 56 END ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-980
SELECT ALL ( + - CASE - 59 WHEN - + CASE - - COUNT ( * ) WHEN - 19 - + - 24 THEN NULL WHEN + 7 THEN NULL WHEN - 14 / 40 + COALESCE ( + 85, - + 16 ) THEN + 69 ELSE - 91 * + + 10 END THEN NULL WHEN 3 THEN 0 ELSE + + 80 / + 56 END ) AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-981
SELECT - 14 DIV 95 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-981
SELECT - 14 / 95 AS col0
----
0

query I rowsort
SELECT - 31 + CASE - 73 WHEN + 25 THEN - ( - - 11 ) - - 79 * - 78 * + - 97 WHEN + 71 THEN 35 - 60 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL - 37 * + 18 * 46 AS col1
----
-30636

query I rowsort
SELECT DISTINCT - 64 * + 2
----
-128

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-986
SELECT + 94 * 58 + + 97 * + 43 * - NULLIF ( - 80, + 20 * - + MIN( CAST( + 57 AS SIGNED ) ) + + - 33 + - 45 * MAX( + 28 ) - 59 + - 54 + - 82 + COALESCE ( ( + - 45 ), - - COUNT( * ) * CAST( NULL AS SIGNED ) - - 93, - 47 - - + 53 + + - 94 * + 74 / - 55 * - - 1 * + - 26, + + ( 15 ) + + COUNT( * ) ) * 32 )
----
339132

skipif mysql # not compatible
query I rowsort label-986
SELECT + 94 * 58 + + 97 * + 43 * - NULLIF ( - 80, + 20 * - + MIN ( CAST ( + 57 AS INTEGER ) ) + + - 33 + - 45 * MAX ( + 28 ) - 59 + - 54 + - 82 + COALESCE ( ( + - 45 ), - - COUNT ( * ) * CAST ( NULL AS INTEGER ) - - 93, - 47 - - + 53 + + - 94 * + 74 / - 55 * - - 1 * + - 26, + + ( 15 ) + + COUNT ( * ) ) * 32 )
----
339132

onlyif mysql # aggregate syntax: 
query I rowsort label-987
SELECT - 84 / + + 45 * + CASE WHEN ( NULL ) BETWEEN NULL AND 83 THEN + 36 / NULLIF ( 66, + 31 ) WHEN NOT 14 NOT BETWEEN NULL AND - + 32 * - 93 THEN 57 * + NULLIF ( - - 33, - COUNT( * ) ) ELSE NULL END * 21 * + 96 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-987
SELECT - 84 / + + 45 * + CASE WHEN ( NULL ) BETWEEN NULL AND 83 THEN + 36 / NULLIF ( 66, + 31 ) WHEN NOT 14 NOT BETWEEN NULL AND - + 32 * - 93 THEN 57 * + NULLIF ( - - 33, - COUNT ( * ) ) ELSE NULL END * 21 * + 96 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-988
SELECT ALL - 47 * + MAX( NULLIF ( - + 38, 22 * ( - + 48 ) + - - 45 + 21 ) ) AS col1, 97 - 24 AS col2, + COUNT( - 96 ) AS col0
----
1786
73
1

skipif mysql # not compatible
query III rowsort label-988
SELECT ALL - 47 * + MAX ( NULLIF ( - + 38, 22 * ( - + 48 ) + - - 45 + 21 ) ) AS col1, 97 - 24 AS col2, + COUNT ( - 96 ) AS col0
----
1786
73
1

query I rowsort
SELECT - 0 + 60
----
60

query II rowsort
SELECT ALL + - 70 col0, - 40
----
-70
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-991
SELECT ALL - + 14 * 84 * - ( - 97 ) + - 39 * COUNT( ALL 8 ) AS col1
----
-114111

skipif mysql # not compatible
query I rowsort label-991
SELECT ALL - + 14 * 84 * - ( - 97 ) + - 39 * COUNT ( ALL 8 ) AS col1
----
-114111

query II rowsort
SELECT DISTINCT + 40 AS col2, 67 * + 55 AS col2
----
40
3685

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-993
SELECT DISTINCT + COALESCE ( - 67, - 55 ) / 40 * 44 + + 21 + - - 91 / - 97 * 8 + - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-993
SELECT DISTINCT + COALESCE ( - 67, - 55 ) / 40 * 44 + + 21 + - - 91 / - 97 * 8 + - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-994
SELECT DISTINCT + COALESCE ( + 63, + MIN( - 87 ), + 42 ) AS col0
----
63

skipif mysql # not compatible
query I rowsort label-994
SELECT DISTINCT + COALESCE ( + 63, + MIN ( - 87 ), + 42 ) AS col0
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-995
SELECT ALL 26 DIV - ( 81 ) + + + MAX( ALL - 74 )
----
-74

skipif mysql # not compatible
query I rowsort label-995
SELECT ALL 26 / - ( 81 ) + + + MAX ( ALL - 74 )
----
-74

query II rowsort
SELECT + 72 AS col0, - ( - 24 )
----
72
24

onlyif mysql # DIV for integer division: 
query I rowsort label-997
SELECT ALL + + 6 DIV 14 * - 43 + + 40 AS col0
----
40

skipif mysql # not compatible
query I rowsort label-997
SELECT ALL + + 6 / 14 * - 43 + + 40 AS col0
----
40

onlyif mysql # DIV for integer division: 
query II rowsort label-998
SELECT DISTINCT - - ( - 28 ) DIV - 73 * - - 28 + + ( - 95 ) * - - 63 * + + 94 AS col2, 10 AS col2
----
-562590
10

skipif mysql # not compatible
query II rowsort label-998
SELECT DISTINCT - - ( - 28 ) / - 73 * - - 28 + + ( - 95 ) * - - 63 * + + 94 AS col2, 10 AS col2
----
-562590
10

query I rowsort
SELECT ALL + 51 + - 96 col1
----
-45

query II rowsort
SELECT + 56 AS col0, + ( + 50 ) * + 88 * + 17
----
56
74800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1001
SELECT 14 * 92 DIV + MIN( - + 87 ) AS col1, + CAST( + 73 AS SIGNED ) + - + 62 AS col1
----
-14
11

skipif mysql # not compatible
query II rowsort label-1001
SELECT 14 * 92 / + MIN ( - + 87 ) AS col1, + CAST ( + 73 AS INTEGER ) + - + 62 AS col1
----
-14
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1002
SELECT ALL - 65 / - 17 * - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1002
SELECT ALL - 65 / - 17 * - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1003
SELECT ALL + 7 + + COUNT( * ) * - + 29 - - + 19 + - 0 DIV 66
----
-3

skipif mysql # not compatible
query I rowsort label-1003
SELECT ALL + 7 + + COUNT ( * ) * - + 29 - - + 19 + - 0 / 66
----
-3

query I rowsort
SELECT DISTINCT - + 84 + + + 13 AS col2
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1005
SELECT ALL - NULLIF ( + + CAST( NULL AS SIGNED ), + 25 ) AS col2, - COUNT( * ) * + 46 + - 9
----
NULL
-55

skipif mysql # not compatible
query II rowsort label-1005
SELECT ALL - NULLIF ( + + CAST ( NULL AS INTEGER ), + 25 ) AS col2, - COUNT ( * ) * + 46 + - 9
----
NULL
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-1006
SELECT ALL NULLIF ( 81, - - 16 ) + 71 + 25 - - MAX( - 48 )
----
129

skipif mysql # not compatible
query I rowsort label-1006
SELECT ALL NULLIF ( 81, - - 16 ) + 71 + 25 - - MAX ( - 48 )
----
129

query I rowsort
SELECT 93 * - ( - 43 ) * 98 AS col2
----
391902

query I rowsort
SELECT DISTINCT - ( + - CASE - - 71 WHEN - - 75 THEN NULL ELSE 11 END )
----
11

query I rowsort
SELECT ALL 16 + - 70
----
-54

query I rowsort
SELECT ALL 86 + + 97 + 73 + + 41 * - - 38
----
1814

query I rowsort
SELECT 49 * - 51 + ( - 87 ) AS col1
----
-2586

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

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

query I rowsort
SELECT ALL 56 - + ( - + 65 ) AS col0
----
121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1014
SELECT ALL - CASE - 40 WHEN - 48 THEN NULL WHEN 71 * - 91 + + 83 THEN - 70 ELSE NULL END / + 92 + - 25 - + - COUNT( * ) * CAST( - 42 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1014
SELECT ALL - CASE - 40 WHEN - 48 THEN NULL WHEN 71 * - 91 + + 83 THEN - 70 ELSE NULL END / + 92 + - 25 - + - COUNT ( * ) * CAST ( - 42 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1015
SELECT DISTINCT SUM( ALL - + 81 ) - COUNT( * ) - + - 20 + - + 62 * - 87 * SUM( DISTINCT - 0 ) * + SUM( ALL - - ( ( + 77 ) ) ) + + 81 + - 35 * + + 83 * - + 72 * + 78 * + 40 AS col1
----
652579219

skipif mysql # not compatible
query I rowsort label-1015
SELECT DISTINCT SUM ( ALL - + 81 ) - COUNT ( * ) - + - 20 + - + 62 * - 87 * SUM ( DISTINCT - 0 ) * + SUM ( ALL - - ( ( + 77 ) ) ) + + 81 + - 35 * + + 83 * - + 72 * + 78 * + 40 AS col1
----
652579219

query I rowsort
SELECT ALL 49 * + 88 AS col1
----
4312

onlyif mysql # aggregate syntax: 
query I rowsort label-1017
SELECT CASE - + COUNT( * ) WHEN + + 23 THEN + ( - 28 ) + + 58 ELSE + 1 END + - ( - 68 ) + + 29
----
98

skipif mysql # not compatible
query I rowsort label-1017
SELECT CASE - + COUNT ( * ) WHEN + + 23 THEN + ( - 28 ) + + 58 ELSE + 1 END + - ( - 68 ) + + 29
----
98

onlyif mysql # aggregate syntax: 
query II rowsort label-1018
SELECT 36 * + 97 AS col2, + SUM( - 0 )
----
3492
0

skipif mysql # not compatible
query II rowsort label-1018
SELECT 36 * + 97 AS col2, + SUM ( - 0 )
----
3492
0

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

skipif mysql # not compatible
query I rowsort label-1019
SELECT 71 * COUNT ( DISTINCT + - 96 ) AS col0
----
71

query I rowsort
SELECT ALL 14 * + - 88 AS col1
----
-1232

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1021
SELECT 90 - + - CAST( NULL AS DECIMAL ) * CAST( + 74 AS SIGNED ) * + 54
----
NULL

skipif mysql # not compatible
query I rowsort label-1021
SELECT 90 - + - CAST ( NULL AS REAL ) * CAST ( + 74 AS INTEGER ) * + 54
----
NULL

query I rowsort
SELECT 61 * - + 6 AS col1
----
-366

query I rowsort
SELECT ALL - - 78 * - 31
----
-2418

query I rowsort
SELECT ALL + - 65 + + 26
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-1025
SELECT + 78 DIV + NULLIF ( 95, - ( - 52 ) ) col0
----
0

skipif mysql # not compatible
query I rowsort label-1025
SELECT + 78 / + NULLIF ( 95, - ( - 52 ) ) col0
----
0

query II rowsort
SELECT - 17 + + + 79 * + - 24 * 65 AS col1, - 63 AS col1
----
-123257
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1027
SELECT ( + 12 ) AS col1, + COUNT( * ) * + COALESCE ( + 7, - 3, COALESCE ( 64, + CAST( NULL AS SIGNED ), + 38 ) ) AS col0
----
12
7

skipif mysql # not compatible
query II rowsort label-1027
SELECT ( + 12 ) AS col1, + COUNT ( * ) * + COALESCE ( + 7, - 3, COALESCE ( 64, + CAST ( NULL AS INTEGER ), + 38 ) ) AS col0
----
12
7

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1029
SELECT 83 DIV 18 AS col0, 27
----
4
27

skipif mysql # not compatible
query II rowsort label-1029
SELECT 83 / 18 AS col0, 27
----
4
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1030
SELECT - + CAST( NULL AS DECIMAL ) * ( - 38 ) + - - SUM( - + 9 ) - + CAST( COUNT( * ) AS SIGNED ) / + 66 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1030
SELECT - + CAST ( NULL AS REAL ) * ( - 38 ) + - - SUM ( - + 9 ) - + CAST ( COUNT ( * ) AS INTEGER ) / + 66 AS col0
----
NULL

query I rowsort
SELECT ALL - 19 * + - 7 * + 89
----
11837

onlyif mysql # aggregate syntax: 
query I rowsort label-1032
SELECT - COUNT( * ) * + 89 * - COUNT( * ) + + 39 AS col0
----
128

skipif mysql # not compatible
query I rowsort label-1032
SELECT - COUNT ( * ) * + 89 * - COUNT ( * ) + + 39 AS col0
----
128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1033
SELECT COUNT( * ) + - + 47 DIV + ( - CAST( + + 41 AS SIGNED ) ), 18 DIV + 34 AS col1
----
2
0

skipif mysql # not compatible
query II rowsort label-1033
SELECT COUNT ( * ) + - + 47 / + ( - CAST ( + + 41 AS INTEGER ) ), 18 / + 34 AS col1
----
2
0

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1035
SELECT ALL - CAST( + 56 AS SIGNED ) - 25 * + 68 * + 17 / - - MAX( 62 ) / + CASE ( - 21 ) WHEN - - COUNT( * ) * + - 98 THEN - COUNT( - 68 ) ELSE NULLIF ( + CAST( NULL AS SIGNED ), 15 ) END + 28 * 13 + CAST( NULL AS DECIMAL ) + - 24 * COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1035
SELECT ALL - CAST ( + 56 AS INTEGER ) - 25 * + 68 * + 17 / - - MAX ( 62 ) / + CASE ( - 21 ) WHEN - - COUNT ( * ) * + - 98 THEN - COUNT ( - 68 ) ELSE NULLIF ( + CAST ( NULL AS INTEGER ), 15 ) END + 28 * 13 + CAST ( NULL AS REAL ) + - 24 * COUNT ( * ) col0
----
NULL

query I rowsort
SELECT 27 * - + 24
----
-648

query I rowsort
SELECT ALL - 91 * + 44 * 68
----
-272272

query I rowsort
SELECT 46 + + - 85 AS col1
----
-39

query I rowsort
SELECT 56 + - - 37
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1040
SELECT DISTINCT + CAST( + - 70 AS SIGNED ) * + 28 * + 23
----
-45080

skipif mysql # not compatible
query I rowsort label-1040
SELECT DISTINCT + CAST ( + - 70 AS INTEGER ) * + 28 * + 23
----
-45080

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1042
SELECT CASE - 56 WHEN + 62 * - + 55 THEN 50 - - + COUNT( * ) + + 87 WHEN - COUNT( * ) THEN NULL END + + - 93 + - CAST( 59 AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1042
SELECT CASE - 56 WHEN + 62 * - + 55 THEN 50 - - + COUNT ( * ) + + 87 WHEN - COUNT ( * ) THEN NULL END + + - 93 + - CAST ( 59 AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1043
SELECT SUM( ALL + 30 ) DIV ( - 85 ) * + 53 AS col1, CAST( NULL AS SIGNED ) AS col2
----
0
NULL

skipif mysql # not compatible
query II rowsort label-1043
SELECT SUM ( ALL + 30 ) / ( - 85 ) * + 53 AS col1, CAST ( NULL AS INTEGER ) AS col2
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1044
SELECT ALL 60 + - COUNT( * ) * + - 48 * - ( - 14 ) * - + CASE - 71 WHEN + - 61 THEN + + 59 WHEN 84 THEN - - MIN( + 97 ) END * + - 22 / - - 12 + + 31 + 98 + + - 8
----
NULL

skipif mysql # not compatible
query I rowsort label-1044
SELECT ALL 60 + - COUNT ( * ) * + - 48 * - ( - 14 ) * - + CASE - 71 WHEN + - 61 THEN + + 59 WHEN 84 THEN - - MIN ( + 97 ) END * + - 22 / - - 12 + + 31 + 98 + + - 8
----
NULL

query I rowsort
SELECT 77 + - + CASE - 63 WHEN - 11 THEN NULL WHEN - 72 THEN + + 68 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1046
SELECT ALL + CASE - CAST( NULL AS SIGNED ) WHEN - - 96 + CAST( NULL AS SIGNED ) THEN + 66 ELSE + COUNT( * ) END DIV - 21 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1046
SELECT ALL + CASE - CAST ( NULL AS INTEGER ) WHEN - - 96 + CAST ( NULL AS INTEGER ) THEN + 66 ELSE + COUNT ( * ) END / - 21 AS col0
----
0

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

query I rowsort
SELECT DISTINCT 74 + - - 32 AS col0
----
106

query I rowsort
SELECT - 49 + - 70 + - - 65 * + 31
----
1896

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1051
SELECT DISTINCT + COUNT( * ) + 93 DIV + COUNT( * ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-1051
SELECT DISTINCT + COUNT ( * ) + 93 / + COUNT ( * ) AS col0
----
94

query I rowsort
SELECT + 15 * + 53 AS col0
----
795

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1053
SELECT 14 DIV - MIN( + 42 ) + 77 AS col0
----
77

skipif mysql # not compatible
query I rowsort label-1053
SELECT 14 / - MIN ( + 42 ) + 77 AS col0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1054
SELECT ALL + - 19 * - - 19 + + 23 - 87 * + + ( + + 76 ) + + COUNT( * ) AS col0
----
-6949

skipif mysql # not compatible
query I rowsort label-1054
SELECT ALL + - 19 * - - 19 + + 23 - 87 * + + ( + + 76 ) + + COUNT ( * ) AS col0
----
-6949

query II rowsort
SELECT DISTINCT + 79 AS col1, - 71 AS col1
----
79
-71

query II rowsort
SELECT DISTINCT + 26 AS col1, - 27
----
26
-27

query I rowsort
SELECT ALL - + 21 * + - 89 + 3
----
1872

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1058
SELECT DISTINCT + 79 * + - 72 * + 61 + + - 4 + - 49 + + - 47 * - + CAST( NULL AS SIGNED ) * 89
----
NULL

skipif mysql # not compatible
query I rowsort label-1058
SELECT DISTINCT + 79 * + - 72 * + 61 + + - 4 + - 49 + + - 47 * - + CAST ( NULL AS INTEGER ) * 89
----
NULL

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

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

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

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

query I rowsort
SELECT - 87 * + NULLIF ( - 45, - 36 ) + + 24
----
3939

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1063
SELECT ALL + COUNT( * ) * - ( - 56 ) - 84 * - 97 AS col0
----
8204

skipif mysql # not compatible
query I rowsort label-1063
SELECT ALL + COUNT ( * ) * - ( - 56 ) - 84 * - 97 AS col0
----
8204

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1064
SELECT + NULLIF ( + 73, + NULLIF ( + ( + + 87 ), ( - + 13 ) - - + COUNT( * ) - + 88 / COALESCE ( + - 99, 54 ) - - - 47 + + COUNT( * ) + 86 * - 30 + 49 + - 63 * - 35 / + + CAST( NULL AS SIGNED ) / + - 31 ) * - 40 / - 24 * - 10 + - COUNT( * ) * 42 + + CAST( NULL AS SIGNED ) + + 16 - - - 84 + - 15 ) AS col0
----
73

skipif mysql # not compatible
query I rowsort label-1064
SELECT + NULLIF ( + 73, + NULLIF ( + ( + + 87 ), ( - + 13 ) - - + COUNT ( * ) - + 88 / COALESCE ( + - 99, 54 ) - - - 47 + + COUNT ( * ) + 86 * - 30 + 49 + - 63 * - 35 / + + CAST ( NULL AS INTEGER ) / + - 31 ) * - 40 / - 24 * - 10 + - COUNT ( * ) * 42 + + CAST ( NULL AS INTEGER ) + + 16 - - - 84 + - 15 ) AS col0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-1065
SELECT ALL + ( - COUNT( - 3 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1065
SELECT ALL + ( - COUNT ( - 3 ) ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-1066
SELECT + 90, ( + - 41 ) + - COUNT( 81 ) AS col1
----
90
-42

skipif mysql # not compatible
query II rowsort label-1066
SELECT + 90, ( + - 41 ) + - COUNT ( 81 ) AS col1
----
90
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-1067
SELECT DISTINCT + 5 DIV + 28 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1067
SELECT DISTINCT + 5 / + 28 AS col1
----
0

query I rowsort
SELECT + 2 + 8 AS col1
----
10

query III rowsort
SELECT - 32 * - COALESCE ( + + 7, + + 9, + - 17 ) + - 0 col1, 62 AS col2, + - 58
----
224
62
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-1070
SELECT - COALESCE ( + 53, - 33 * + 52, - ( - 16 ) ) + + COUNT( * ) AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-1070
SELECT - COALESCE ( + 53, - 33 * + 52, - ( - 16 ) ) + + COUNT ( * ) AS col2
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1071
SELECT ALL NULLIF ( - 43, - SUM( - 25 ) + + CASE - + CASE + COUNT( * ) WHEN 22 * ( + 61 ) THEN 97 WHEN - SUM( DISTINCT + CAST( NULL AS SIGNED ) ) + - 54 THEN NULL END WHEN - 17 * 7 THEN - 31 ELSE - 44 + - + 72 + + 65 * + NULLIF ( 29, + 6 + + + CASE - CASE - 68 WHEN - 88 THEN - - MAX( ALL - 34 ) - + COUNT( * ) END WHEN - 11 + - 14 / ( - 55 ) THEN - 7 END ) END + + 18 )
----
-43

skipif mysql # not compatible
query I rowsort label-1071
SELECT ALL NULLIF ( - 43, - SUM ( - 25 ) + + CASE - + CASE + COUNT ( * ) WHEN 22 * ( + 61 ) THEN 97 WHEN - SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) + - 54 THEN NULL END WHEN - 17 * 7 THEN - 31 ELSE - 44 + - + 72 + + 65 * + NULLIF ( 29, + 6 + + + CASE - CASE - 68 WHEN - 88 THEN - - MAX ( ALL - 34 ) - + COUNT ( * ) END WHEN - 11 + - 14 / ( - 55 ) THEN - 7 END ) END + + 18 )
----
-43

query II rowsort
SELECT 14, NULLIF ( - 88, 65 ) - + 78 AS col0
----
14
-166

query I rowsort
SELECT ALL - 79 + - - 17
----
-62

query II rowsort
SELECT 22 AS col2, + 28 AS col2
----
22
28

query II rowsort
SELECT ALL + 15 + - 29 AS col0, - 93 + - 97 AS col1
----
-14
-190

onlyif mysql # aggregate syntax: 
query I rowsort label-1076
SELECT DISTINCT + 43 + + 36 + - 47 + 98 + + SUM( + + 10 )
----
140

skipif mysql # not compatible
query I rowsort label-1076
SELECT DISTINCT + 43 + + 36 + - 47 + 98 + + SUM ( + + 10 )
----
140

query I rowsort
SELECT ALL NULLIF ( + - 63, 83 * - 71 )
----
-63

query I rowsort
SELECT - - 26 + 14 AS col0
----
40

query I rowsort
SELECT ALL + + 94 + - ( 21 ) * 96 + 99
----
-1823

query I rowsort
SELECT - + 99 - - ( - 58 ) + + 63 AS col0
----
-94

query I rowsort
SELECT DISTINCT + 71 + - 57
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1082
SELECT + SUM( - 76 ) * + + 5 + COALESCE ( - 46, + CAST( NULL AS SIGNED ), 23 ) * COUNT( * ) * + + 74 + 47
----
-3737

skipif mysql # not compatible
query I rowsort label-1082
SELECT + SUM ( - 76 ) * + + 5 + COALESCE ( - 46, + CAST ( NULL AS INTEGER ), 23 ) * COUNT ( * ) * + + 74 + 47
----
-3737

onlyif mysql # aggregate syntax: 
query I rowsort label-1083
SELECT ALL + CASE - 81 WHEN - 23 + - + 64 THEN NULL WHEN + + COUNT( * ) THEN NULL WHEN 76 THEN NULL ELSE 38 * - + 17 END
----
-646

skipif mysql # not compatible
query I rowsort label-1083
SELECT ALL + CASE - 81 WHEN - 23 + - + 64 THEN NULL WHEN + + COUNT ( * ) THEN NULL WHEN 76 THEN NULL ELSE 38 * - + 17 END
----
-646

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1085
SELECT + 74 + + - 94 * COUNT( * ) AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-1085
SELECT + 74 + + - 94 * COUNT ( * ) AS col1
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-1086
SELECT DISTINCT 48 DIV + 75 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1086
SELECT DISTINCT 48 / + 75 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1087
SELECT - + 99 * ( - 76 ) * + COUNT( * ) + - 35 + CASE COUNT( * ) WHEN - - 64 THEN NULL WHEN 28 THEN NULL WHEN + - 11 + 84 * 4 THEN - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1087
SELECT - + 99 * ( - 76 ) * + COUNT ( * ) + - 35 + CASE COUNT ( * ) WHEN - - 64 THEN NULL WHEN 28 THEN NULL WHEN + - 11 + 84 * 4 THEN - COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1088
SELECT ALL 66 * - + COUNT( * ) * - 13 AS col0
----
858

skipif mysql # not compatible
query I rowsort label-1088
SELECT ALL 66 * - + COUNT ( * ) * - 13 AS col0
----
858

query I rowsort
SELECT + 35 - 1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-1090
SELECT ALL + NULLIF ( 22, + + 34 + NULLIF ( COUNT( - 50 ), - + 16 ) ) AS col2
----
22

skipif mysql # not compatible
query I rowsort label-1090
SELECT ALL + NULLIF ( 22, + + 34 + NULLIF ( COUNT ( - 50 ), - + 16 ) ) AS col2
----
22

query II rowsort
SELECT ALL + 2 AS col1, 53
----
2
53

query I rowsort
SELECT - - 22 + - 96
----
-74

query II rowsort
SELECT 36 col1, + 14 * + 52 AS col0
----
36
728

query I rowsort
SELECT - - 74 * 42 + - 95
----
3013

query I rowsort
SELECT + - 42 - 27 AS col1
----
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1096
SELECT 73 * + CASE ( + 85 ) WHEN COALESCE ( SUM( - - 30 ), - ( + 84 ) / 67 / 61 * + SUM( ALL 2 ) * - CAST( NULL AS SIGNED ) / 23 ) THEN NULL WHEN - 56 THEN + 3 + + - 44 ELSE NULL END + - - SUM( - - 84 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1096
SELECT 73 * + CASE ( + 85 ) WHEN COALESCE ( SUM ( - - 30 ), - ( + 84 ) / 67 / 61 * + SUM ( ALL 2 ) * - CAST ( NULL AS INTEGER ) / 23 ) THEN NULL WHEN - 56 THEN + 3 + + - 44 ELSE NULL END + - - SUM ( - - 84 ) AS col2
----
NULL

query II rowsort
SELECT + 45 * + 83 AS col0, - COALESCE ( + 15, - - 64 ) * 67 + 98 * + 69
----
3735
5757

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1098
SELECT - 10 DIV + ( + MIN( DISTINCT 17 ) ) + + 42 AS col0
----
42

skipif mysql # not compatible
query I rowsort label-1098
SELECT - 10 / + ( + MIN ( DISTINCT 17 ) ) + + 42 AS col0
----
42

query II rowsort
SELECT + 39 + - + ( - + 20 ) AS col0, 62 AS col1
----
59
62

onlyif mysql # aggregate syntax: 
query II rowsort label-1100
SELECT ALL + 19 * COUNT( * ), - 93 - - 4 - - 66 * + COALESCE ( 30, - 37 * - 78 ) AS col1
----
19
1891

skipif mysql # not compatible
query II rowsort label-1100
SELECT ALL + 19 * COUNT ( * ), - 93 - - 4 - - 66 * + COALESCE ( 30, - 37 * - 78 ) AS col1
----
19
1891

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1101
SELECT + COALESCE ( COALESCE ( + NULLIF ( - 7, CAST( + 78 AS SIGNED ) ), - - COUNT( * ) + - 94 ), 72 * - 72 ) * + ( ( - + 26 ) )
----
182

skipif mysql # not compatible
query I rowsort label-1101
SELECT + COALESCE ( COALESCE ( + NULLIF ( - 7, CAST ( + 78 AS INTEGER ) ), - - COUNT ( * ) + - 94 ), 72 * - 72 ) * + ( ( - + 26 ) )
----
182

query I rowsort
SELECT ( + - CASE - 29 WHEN + 31 THEN 5 END ) * + + 18 + - 50 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1103
SELECT ALL 91 * COUNT( * ) * + 66 AS col2
----
6006

skipif mysql # not compatible
query I rowsort label-1103
SELECT ALL 91 * COUNT ( * ) * + 66 AS col2
----
6006

onlyif mysql # DIV for integer division: 
query I rowsort label-1104
SELECT + 96 DIV + 37 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-1104
SELECT + 96 / + 37 AS col1
----
2

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1105
SELECT + CAST( + 97 AS SIGNED ) AS col0, + 28 DIV - 67 AS col1
----
97
0

skipif mysql # not compatible
query II rowsort label-1105
SELECT + CAST ( + 97 AS INTEGER ) AS col0, + 28 / - 67 AS col1
----
97
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1106
SELECT DISTINCT COUNT( * ) * - 5 + NULLIF ( 40, - 39 + + 87 + 20 ) + - 65 / 98 + - + COUNT( * ) + - - 99 + + CAST( NULL AS SIGNED ) * 64 / - - 30 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1106
SELECT DISTINCT COUNT ( * ) * - 5 + NULLIF ( 40, - 39 + + 87 + 20 ) + - 65 / 98 + - + COUNT ( * ) + - - 99 + + CAST ( NULL AS INTEGER ) * 64 / - - 30 AS col2
----
NULL

query I rowsort
SELECT ALL 55 * + 12 AS col0
----
660

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

skipif mysql # not compatible
query I rowsort label-1108
SELECT ALL 2 * COUNT ( * ) + - 34 AS col0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-1109
SELECT DISTINCT ( + 22 ) * + MAX( DISTINCT - 70 ) * + 91 + MIN( ALL 94 ) + 71 * + + 0 - + 7 col1
----
-140053

skipif mysql # not compatible
query I rowsort label-1109
SELECT DISTINCT ( + 22 ) * + MAX ( DISTINCT - 70 ) * + 91 + MIN ( ALL 94 ) + 71 * + + 0 - + 7 col1
----
-140053

query I rowsort
SELECT - ( - 19 ) * + 18 AS col2
----
342

query I rowsort
SELECT DISTINCT 65 * - - 90 + - CASE + 48 WHEN 70 THEN + 84 ELSE + 5 + - ( 40 ) END
----
5885

onlyif mysql # DIV for integer division: 
query I rowsort label-1112
SELECT ALL - 56 DIV - 75 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1112
SELECT ALL - 56 / - 75 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1113
SELECT + + 69 - - COUNT( * ) + + 69
----
139

skipif mysql # not compatible
query I rowsort label-1113
SELECT + + 69 - - COUNT ( * ) + + 69
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-1114
SELECT - + CASE + 98 WHEN - - ( + ( + 49 ) ) * MIN( - + 0 ) THEN - 37 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1114
SELECT - + CASE + 98 WHEN - - ( + ( + 49 ) ) * MIN ( - + 0 ) THEN - 37 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT + 42 + - - 8 AS col0
----
50

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1117
SELECT ALL - 34 - - COUNT( - 82 ) + - 59 AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-1117
SELECT ALL - 34 - - COUNT ( - 82 ) + - 59 AS col2
----
-92

query II rowsort
SELECT 37 * 97, - 44 AS col0
----
3589
-44

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

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

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

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

query I rowsort
SELECT 68 + - - 42
----
110

query I rowsort
SELECT ALL - 32 * + 67 + + 16 col0
----
-2128

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

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

query II rowsort
SELECT - ( - 95 ), 81 AS col2
----
95
81

onlyif mysql # aggregate syntax: 
query II rowsort label-1125
SELECT 45 + + 40 col1, ( - 89 ) * - 41 + COUNT( * )
----
85
3650

skipif mysql # not compatible
query II rowsort label-1125
SELECT 45 + + 40 col1, ( - 89 ) * - 41 + COUNT ( * )
----
85
3650

query I rowsort
SELECT + 60 * - 82
----
-4920

query I rowsort
SELECT - - NULLIF ( + 28, 26 * 1 ) AS col0
----
28

query I rowsort
SELECT - ( 93 ) + - 47 AS col1
----
-140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1129
SELECT + CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) / + + ( - 50 ) + 49 * - 56
----
NULL

skipif mysql # not compatible
query I rowsort label-1129
SELECT + CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) / + + ( - 50 ) + 49 * - 56
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1130
SELECT - 22 * + COUNT( * ) * - 51
----
1122

skipif mysql # not compatible
query I rowsort label-1130
SELECT - 22 * + COUNT ( * ) * - 51
----
1122

query I rowsort
SELECT - 27 * - 83 AS col0
----
2241

onlyif mysql # DIV for integer division: 
query II rowsort label-1132
SELECT ALL 66 DIV 11 - - 81, 59 AS col1
----
87
59

skipif mysql # not compatible
query II rowsort label-1132
SELECT ALL 66 / 11 - - 81, 59 AS col1
----
87
59

onlyif mysql # aggregate syntax: 
query I rowsort label-1133
SELECT COALESCE ( - COUNT( * ), + COUNT( - + 24 ), - 77 - + 62 )
----
-1

skipif mysql # not compatible
query I rowsort label-1133
SELECT COALESCE ( - COUNT ( * ), + COUNT ( - + 24 ), - 77 - + 62 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1134
SELECT 86 * + COUNT( * ) * - SUM( ALL 81 )
----
-6966

skipif mysql # not compatible
query I rowsort label-1134
SELECT 86 * + COUNT ( * ) * - SUM ( ALL 81 )
----
-6966

query I rowsort
SELECT ALL - CASE - ( + 35 ) WHEN 4 THEN NULL ELSE - 29 END
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-1136
SELECT DISTINCT 92 * 24 DIV 91
----
24

skipif mysql # not compatible
query I rowsort label-1136
SELECT DISTINCT 92 * 24 / 91
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-1137
SELECT ALL - 32 DIV 36 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1137
SELECT ALL - 32 / 36 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1138
SELECT 56 * 71 * 27 col1, 10 * - SUM( DISTINCT + 64 ) * + CAST( - + 17 AS SIGNED ) + - + 14 + - 70 + + COUNT( * ) + ( CAST( + ( + COUNT( * ) ) AS SIGNED ) ) * + 61 * - 36 * ( - - 46 ) + 39
----
107352
-90180

skipif mysql # not compatible
query II rowsort label-1138
SELECT 56 * 71 * 27 col1, 10 * - SUM ( DISTINCT + 64 ) * + CAST ( - + 17 AS INTEGER ) + - + 14 + - 70 + + COUNT ( * ) + ( CAST ( + ( + COUNT ( * ) ) AS INTEGER ) ) * + 61 * - 36 * ( - - 46 ) + 39
----
107352
-90180

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1140
SELECT ALL + 60 + - - 96 + - SUM( DISTINCT - 81 ) + 10 * - + 68 col0, - 94 * - 55 * 23 AS col1
----
-443
118910

skipif mysql # not compatible
query II rowsort label-1140
SELECT ALL + 60 + - - 96 + - SUM ( DISTINCT - 81 ) + 10 * - + 68 col0, - 94 * - 55 * 23 AS col1
----
-443
118910

query I rowsort
SELECT - 81 * + - 29 - - 25
----
2374

query II rowsort
SELECT 67 AS col2, - 15
----
67
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-1143
SELECT ALL 15 * - - 51 * + 15 * + 78 * + COUNT( * )
----
895050

skipif mysql # not compatible
query I rowsort label-1143
SELECT ALL 15 * - - 51 * + 15 * + 78 * + COUNT ( * )
----
895050

query I rowsort
SELECT ALL 50 + - 4
----
46

query II rowsort
SELECT 53, 20 AS col2
----
53
20

query I rowsort
SELECT DISTINCT 85 + - 7 AS col1
----
78

query I rowsort
SELECT ALL 43 + + 58 AS col1
----
101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1148
SELECT MIN( - 68 ) - COUNT( * ) + + + ( + 69 ) + + MAX( ALL + CAST( NULL AS SIGNED ) ) * - 87 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1148
SELECT MIN ( - 68 ) - COUNT ( * ) + + + ( + 69 ) + + MAX ( ALL + CAST ( NULL AS INTEGER ) ) * - 87 col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1149
SELECT ALL - COALESCE ( + ( + COUNT( * ) ), + 8 * COUNT( * ) DIV + - CASE + 76 WHEN + 25 * + 98 THEN - ( + + 46 ) + - + 79 END )
----
-1

skipif mysql # not compatible
query I rowsort label-1149
SELECT ALL - COALESCE ( + ( + COUNT ( * ) ), + 8 * COUNT ( * ) / + - CASE + 76 WHEN + 25 * + 98 THEN - ( + + 46 ) + - + 79 END )
----
-1

query I rowsort
SELECT ALL - 33 + + 88 col0
----
55

query I rowsort
SELECT 61 * - 10 * 80 - 56 AS col1
----
-48856

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1152
SELECT ALL MAX( 0 ) + + + COUNT( * ) DIV - 2 + + 21 DIV + 68 + 26 + + 82 AS col0, - 15 * 28
----
108
-420

skipif mysql # not compatible
query II rowsort label-1152
SELECT ALL MAX ( 0 ) + + + COUNT ( * ) / - 2 + + 21 / + 68 + 26 + + 82 AS col0, - 15 * 28
----
108
-420

query II rowsort
SELECT + 66 AS col2, + 44
----
66
44

query I rowsort
SELECT 0 / - CASE + + 97 WHEN - 74 THEN - - 29 END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1155
SELECT ALL 84 + - 47 * - - 16 * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1155
SELECT ALL 84 + - 47 * - - 16 * + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1156
SELECT 70 + - ( - 8 ) + - ( - ( 43 ) ) * ( - MAX( ALL + ( - 18 ) ) ) * 19 + - 96 AS col2
----
14688

skipif mysql # not compatible
query I rowsort label-1156
SELECT 70 + - ( - 8 ) + - ( - ( 43 ) ) * ( - MAX ( ALL + ( - 18 ) ) ) * 19 + - 96 AS col2
----
14688

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1157
SELECT + ( 40 ) - - 86 + - 83 + + CAST( 13 AS SIGNED ) + - 1 DIV + - 78 AS col0
----
56

skipif mysql # not compatible
query I rowsort label-1157
SELECT + ( 40 ) - - 86 + - 83 + + CAST ( 13 AS INTEGER ) + - 1 / + - 78 AS col0
----
56

query I rowsort
SELECT DISTINCT - 55 * - + 17
----
935

onlyif mysql # aggregate syntax: 
query I rowsort label-1159
SELECT - 42 / - CASE - 78 WHEN + COUNT( * ) THEN + - 26 END + + 20 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1159
SELECT - 42 / - CASE - 78 WHEN + COUNT ( * ) THEN + - 26 END + + 20 AS col2
----
NULL

query I rowsort
SELECT 14 * - 16 + + ( + 94 ) * 87
----
7954

onlyif mysql # aggregate syntax: 
query I rowsort label-1161
SELECT ALL + 21 * COALESCE ( 72, + 33 ) + + - 40 - - 21 + - - 44 * COUNT( * ) * + - 40 AS col1
----
-267

skipif mysql # not compatible
query I rowsort label-1161
SELECT ALL + 21 * COALESCE ( 72, + 33 ) + + - 40 - - 21 + - - 44 * COUNT ( * ) * + - 40 AS col1
----
-267

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1162
SELECT ALL + - 64 - - 66 + ( + 43 ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1162
SELECT ALL + - 64 - - 66 + ( + 43 ) * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 69 * + 56
----
3864

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1164
SELECT + COUNT( * ) * - - COALESCE ( AVG ( ALL + 32 ), - - 28, + CAST( NULL AS SIGNED ) ) - 46 * + 21 * CASE + 76 WHEN 13 THEN - + 72 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1164
SELECT + COUNT ( * ) * - - COALESCE ( AVG ( ALL + 32 ), - - 28, + CAST ( NULL AS INTEGER ) ) - 46 * + 21 * CASE + 76 WHEN 13 THEN - + 72 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1165
SELECT - COUNT( + 46 ) - + 2
----
-3

skipif mysql # not compatible
query I rowsort label-1165
SELECT - COUNT ( + 46 ) - + 2
----
-3

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

query I rowsort
SELECT NULLIF ( + 28, COALESCE ( + 36, ( - ( + 79 ) ) + 9 ) )
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-1168
SELECT + MIN( DISTINCT - 58 ) * 16 col2
----
-928

skipif mysql # not compatible
query I rowsort label-1168
SELECT + MIN ( DISTINCT - 58 ) * 16 col2
----
-928

query I rowsort
SELECT + 20 - - 33 col1
----
53

query I rowsort
SELECT DISTINCT - CASE 59 WHEN - + 26 * + 75 + 0 + 58 * + + 43 THEN NULL ELSE - 32 END
----
32

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1173
SELECT 55 DIV 3 DIV + - 85 - - 18
----
18

skipif mysql # not compatible
query I rowsort label-1173
SELECT 55 / 3 / + - 85 - - 18
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-1174
SELECT DISTINCT - 19 * - 14 * + ( - - SUM( + + 49 ) )
----
13034

skipif mysql # not compatible
query I rowsort label-1174
SELECT DISTINCT - 19 * - 14 * + ( - - SUM ( + + 49 ) )
----
13034

query II rowsort
SELECT - 14 * - ( + 56 ) + 46 AS col0, 75 AS col0
----
830
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1176
SELECT COUNT( ALL - 18 ) - - - 55 AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-1176
SELECT COUNT ( ALL - 18 ) - - - 55 AS col2
----
-54

query I rowsort
SELECT ALL 37 * + - 71
----
-2627

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1178
SELECT DISTINCT + 84 DIV - COUNT( * )
----
-84

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1179
SELECT DISTINCT MIN( - - CASE - 52 WHEN + 0 THEN 32 END ) + - 7 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1179
SELECT DISTINCT MIN ( - - CASE - 52 WHEN + 0 THEN 32 END ) + - 7 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1180
SELECT DISTINCT + 75 DIV - 21
----
-3

skipif mysql # not compatible
query I rowsort label-1180
SELECT DISTINCT + 75 / - 21
----
-3

query I rowsort
SELECT - 82 * + - 22 + 62 col2
----
1866

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

query I rowsort
SELECT - 66 * - 52
----
3432

query I rowsort
SELECT + 72 + 57 AS col1
----
129

query II rowsort
SELECT DISTINCT 95 * + - 77 AS col0, - 67 AS col0
----
-7315
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-1186
SELECT ALL SUM( 95 ) - - 56
----
151

skipif mysql # not compatible
query I rowsort label-1186
SELECT ALL SUM ( 95 ) - - 56
----
151

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1188
SELECT ALL CASE 22 WHEN - + 5 * 3 / 12 + + + COUNT( ALL - + 93 ) * CAST( NULL AS SIGNED ) + 88 * - 2 * - 29 + 8 THEN - 6 * + 35 * + MAX( 74 ) WHEN + 64 THEN + + 31 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1188
SELECT ALL CASE 22 WHEN - + 5 * 3 / 12 + + + COUNT ( ALL - + 93 ) * CAST ( NULL AS INTEGER ) + 88 * - 2 * - 29 + 8 THEN - 6 * + 35 * + MAX ( 74 ) WHEN + 64 THEN + + 31 ELSE NULL END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1189
SELECT + ( - - 18 ) * - ( - + 51 ) + + + 39 DIV + + 61 AS col2
----
918

skipif mysql # not compatible
query I rowsort label-1189
SELECT + ( - - 18 ) * - ( - + 51 ) + + + 39 / + + 61 AS col2
----
918

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1190
SELECT DISTINCT - COUNT( * ) DIV - ( - - 69 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-1190
SELECT DISTINCT - COUNT ( * ) / - ( - - 69 ) col2
----
0

query I rowsort
SELECT ALL + ( 25 ) col2
----
25

query I rowsort
SELECT - 55 + 94 AS col1
----
39

query I rowsort
SELECT - 59 - - 93
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-1194
SELECT + CASE + 12 WHEN + - 28 THEN NULL WHEN + - 68 - + 36 * - - COUNT( + - 4 ) THEN + 34 * + NULLIF ( + 26, 87 ) END + + - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1194
SELECT + CASE + 12 WHEN + - 28 THEN NULL WHEN + - 68 - + 36 * - - COUNT ( + - 4 ) THEN + 34 * + NULLIF ( + 26, 87 ) END + + - COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT + + 29 + + - 16 AS col1
----
13

query I rowsort
SELECT + 82 * - + 55
----
-4510

onlyif mysql # DIV for integer division: 
query I rowsort label-1197
SELECT ALL - 49 * 11 DIV + 50 + + ( - ( + 67 ) ) * - 22 AS col2
----
1464

skipif mysql # not compatible
query I rowsort label-1197
SELECT ALL - 49 * 11 / + 50 + + ( - ( + 67 ) ) * - 22 AS col2
----
1464

onlyif mysql # aggregate syntax: 
query II rowsort label-1198
SELECT ALL MAX( 73 ), 34 AS col0
----
73
34

skipif mysql # not compatible
query II rowsort label-1198
SELECT ALL MAX ( 73 ), 34 AS col0
----
73
34

query I rowsort
SELECT ALL + COALESCE ( - + 22, + 1 * 68 )
----
-22

query I rowsort
SELECT + - 69 + - 89
----
-158

query I rowsort
SELECT ALL - 99 + + + 85 AS col1
----
-14

query I rowsort
SELECT + + 94 + - + ( - 40 ) + - - 91 + + 67
----
292

query I rowsort
SELECT ALL ( + 2 ) * - 15 col2
----
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-1204
SELECT ALL MIN( ALL + 47 ) AS col0, - 85
----
47
-85

skipif mysql # not compatible
query II rowsort label-1204
SELECT ALL MIN ( ALL + 47 ) AS col0, - 85
----
47
-85

query I rowsort
SELECT ALL 1 + - 88 + - - 34 AS col1
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1206
SELECT ALL - ( + 15 ) + + + 51 - - 73 * - ( + 32 ) * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1206
SELECT ALL - ( + 15 ) + + + 51 - - 73 * - ( + 32 ) * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1207
SELECT - 45 DIV 57
----
0

skipif mysql # not compatible
query I rowsort label-1207
SELECT - 45 / 57
----
0

query I rowsort
SELECT ALL 74 + 25 AS col1
----
99

query I rowsort
SELECT - 86 + 85 col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1210
SELECT DISTINCT 4 DIV + - 36 + - 85 * + 66 + 96 + - 65
----
-5579

skipif mysql # not compatible
query I rowsort label-1210
SELECT DISTINCT 4 / + - 36 + - 85 * + 66 + 96 + - 65
----
-5579

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1211
SELECT ALL COUNT( - 74 ) DIV + - 38 + ( + COUNT( * ) ) * + 83
----
83

skipif mysql # not compatible
query I rowsort label-1211
SELECT ALL COUNT ( - 74 ) / + - 38 + ( + COUNT ( * ) ) * + 83
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1212
SELECT DISTINCT - 88 * - CASE + + 79 WHEN SUM( DISTINCT 71 ) THEN + + COUNT( * ) * - 89 WHEN + ( COUNT( ALL - CAST( + - 69 AS SIGNED ) ) ) THEN 82 * 96 - - + 62 END * + 36 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1212
SELECT DISTINCT - 88 * - CASE + + 79 WHEN SUM ( DISTINCT 71 ) THEN + + COUNT ( * ) * - 89 WHEN + ( COUNT ( ALL - CAST ( + - 69 AS INTEGER ) ) ) THEN 82 * 96 - - + 62 END * + 36 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1213
SELECT DISTINCT 41 * + 67 + + - SUM( DISTINCT + + 20 )
----
2727

skipif mysql # not compatible
query I rowsort label-1213
SELECT DISTINCT 41 * + 67 + + - SUM ( DISTINCT + + 20 )
----
2727

query I rowsort
SELECT DISTINCT + 63 * + 42 + + - 45 AS col2
----
2601

query I rowsort
SELECT - NULLIF ( + 99, + 60 / + 48 + 98 / + COALESCE ( - 39, + 69 + + + 2 + - - 76 ) ) * + + 83 * - - 26 AS col0
----
-213642

query I rowsort
SELECT DISTINCT + 88 * - + 72 AS col0
----
-6336

query I rowsort
SELECT ( + 70 ) * - + 65 - 24
----
-4574

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1218
SELECT ( - CAST( - 68 AS SIGNED ) ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-1218
SELECT ( - CAST ( - 68 AS INTEGER ) ) AS col1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-1219
SELECT - CASE + 90 WHEN + + 84 + - 27 THEN 16 * + - MAX( - - 83 ) END - CASE 10 WHEN + 61 THEN - 30 WHEN - 14 THEN NULL ELSE ( MAX( ALL - + 96 ) ) - - 80 END * + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-1219
SELECT - CASE + 90 WHEN + + 84 + - 27 THEN 16 * + - MAX ( - - 83 ) END - CASE 10 WHEN + 61 THEN - 30 WHEN - 14 THEN NULL ELSE ( MAX ( ALL - + 96 ) ) - - 80 END * + 6
----
NULL

query I rowsort
SELECT NULLIF ( - 57, - - 82 * - - 38 )
----
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-1221
SELECT ALL + ( + COALESCE ( + 81, + 28 * + MAX( - 24 ) ) ) * 48 - + 64 AS col1, CASE + 55 WHEN - 8 + - + COUNT( * ) * - 62 THEN + COUNT( * ) * + - 83 END + COUNT( * ) * - 41
----
3824
NULL

skipif mysql # not compatible
query II rowsort label-1221
SELECT ALL + ( + COALESCE ( + 81, + 28 * + MAX ( - 24 ) ) ) * 48 - + 64 AS col1, CASE + 55 WHEN - 8 + - + COUNT ( * ) * - 62 THEN + COUNT ( * ) * + - 83 END + COUNT ( * ) * - 41
----
3824
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1222
SELECT - AVG ( DISTINCT + 86 ) * + 22 + + COUNT( * ) + + + MAX( ALL + - 77 ) - - - CASE + COALESCE ( - CAST( NULL AS SIGNED ), - 76 ) WHEN - 85 THEN 32 + + 25 END * - 70 - + - COUNT( * ) * 45
----
NULL

skipif mysql # not compatible
query I rowsort label-1222
SELECT - AVG ( DISTINCT + 86 ) * + 22 + + COUNT ( * ) + + + MAX ( ALL + - 77 ) - - - CASE + COALESCE ( - CAST ( NULL AS INTEGER ), - 76 ) WHEN - 85 THEN 32 + + 25 END * - 70 - + - COUNT ( * ) * 45
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1223
SELECT DISTINCT + COALESCE ( - 10, - ( 51 ) * + MAX( NULLIF ( - 66, - COALESCE ( 73, + COALESCE ( 52, CAST( NULL AS SIGNED ) ) * + 89 ) * 31 ) ) ) AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-1223
SELECT DISTINCT + COALESCE ( - 10, - ( 51 ) * + MAX ( NULLIF ( - 66, - COALESCE ( 73, + COALESCE ( 52, CAST ( NULL AS INTEGER ) ) * + 89 ) * 31 ) ) ) AS col1
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1224
SELECT DISTINCT CAST( - 80 AS SIGNED ) * 11 col0
----
-880

skipif mysql # not compatible
query I rowsort label-1224
SELECT DISTINCT CAST ( - 80 AS INTEGER ) * 11 col0
----
-880

query I rowsort
SELECT COALESCE ( + 51, 63 + + 61 ) AS col1
----
51

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

skipif mysql # not compatible
query I rowsort label-1226
SELECT ALL CAST ( NULL AS INTEGER ) * 55 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1227
SELECT ALL + 26 * + COALESCE ( 76 * 44, COUNT( * ) )
----
86944

skipif mysql # not compatible
query I rowsort label-1227
SELECT ALL + 26 * + COALESCE ( 76 * 44, COUNT ( * ) )
----
86944

onlyif mysql # DIV for integer division: 
query I rowsort label-1228
SELECT 35 * 43 + + 69 DIV + 9 AS col2
----
1512

skipif mysql # not compatible
query I rowsort label-1228
SELECT 35 * 43 + + 69 / + 9 AS col2
----
1512

query I rowsort
SELECT + 82 * - ( - 93 ) AS col0
----
7626

query I rowsort
SELECT ALL - ( + 22 ) * - 93
----
2046

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1231
SELECT DISTINCT CAST( 18 AS SIGNED )
----
18

skipif mysql # not compatible
query I rowsort label-1231
SELECT DISTINCT CAST ( 18 AS INTEGER )
----
18

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

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

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

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

query I rowsort
SELECT DISTINCT - 9 + 26 AS col2
----
17

query I rowsort
SELECT ALL 34 + + 92
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-1236
SELECT DISTINCT 93 + MAX( ALL 99 + 39 ) AS col1
----
231

skipif mysql # not compatible
query I rowsort label-1236
SELECT DISTINCT 93 + MAX ( ALL 99 + 39 ) AS col1
----
231

onlyif mysql # aggregate syntax: 
query I rowsort label-1237
SELECT + SUM( ALL 53 ) + CASE 81 + - SUM( - 80 ) WHEN + 20 * ( CASE COUNT( * ) WHEN - 94 THEN NULL ELSE COUNT( * ) END * + 80 ) THEN - 48 WHEN + 88 THEN + 28 * - 39 + 28 WHEN - 74 THEN NULL END * - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1237
SELECT + SUM ( ALL 53 ) + CASE 81 + - SUM ( - 80 ) WHEN + 20 * ( CASE COUNT ( * ) WHEN - 94 THEN NULL ELSE COUNT ( * ) END * + 80 ) THEN - 48 WHEN + 88 THEN + 28 * - 39 + 28 WHEN - 74 THEN NULL END * - COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1238
SELECT DISTINCT 69 + + COUNT( * ) * 54
----
123

skipif mysql # not compatible
query I rowsort label-1238
SELECT DISTINCT 69 + + COUNT ( * ) * 54
----
123

query I rowsort
SELECT ALL 98 + ( 39 ) AS col2
----
137

query I rowsort
SELECT - 4 + 62 AS col1
----
58

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

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

query I rowsort
SELECT + ( + ( 89 ) ) * 96 AS col1
----
8544

onlyif mysql # DIV for integer division: 
query I rowsort label-1243
SELECT ALL 92 + ( 52 ) DIV + 8
----
98

skipif mysql # not compatible
query I rowsort label-1243
SELECT ALL 92 + ( 52 ) / + 8
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1244
SELECT - COALESCE ( - 59, NULLIF ( + 63, COUNT( * ) / CASE 70 WHEN - 14 THEN CAST( NULL AS SIGNED ) END ) * 9 + 61 * 34 ) AS col1
----
59

skipif mysql # not compatible
query I rowsort label-1244
SELECT - COALESCE ( - 59, NULLIF ( + 63, COUNT ( * ) / CASE 70 WHEN - 14 THEN CAST ( NULL AS INTEGER ) END ) * 9 + 61 * 34 ) AS col1
----
59

query I rowsort
SELECT ALL 68 + + 0
----
68

query I rowsort
SELECT + 74 - - 92
----
166

onlyif mysql # DIV for integer division: 
query I rowsort label-1247
SELECT ALL + 1 DIV + ( 68 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1247
SELECT ALL + 1 / + ( 68 ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1248
SELECT DISTINCT 97 + CAST( COALESCE ( 9, + COUNT( * ) * ( 6 * - 46 ) + + NULLIF ( - NULLIF ( + ( COALESCE ( - 6, COALESCE ( + 37, + 44 - 83, COUNT( * ) ) * + 9 + 98 ) ), 59 + 5 ), + ( - 48 ) ) ) AS SIGNED ) AS col2
----
106

skipif mysql # not compatible
query I rowsort label-1248
SELECT DISTINCT 97 + CAST ( COALESCE ( 9, + COUNT ( * ) * ( 6 * - 46 ) + + NULLIF ( - NULLIF ( + ( COALESCE ( - 6, COALESCE ( + 37, + 44 - 83, COUNT ( * ) ) * + 9 + 98 ) ), 59 + 5 ), + ( - 48 ) ) ) AS INTEGER ) AS col2
----
106

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

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

query I rowsort
SELECT ALL 91 * - ( 53 ) AS col0
----
-4823

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1252
SELECT ALL - 36 DIV + 13 - CAST( - 66 + + 50 AS SIGNED ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-1252
SELECT ALL - 36 / + 13 - CAST ( - 66 + + 50 AS INTEGER ) AS col2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-1253
SELECT COUNT( DISTINCT 22 ) + 42 AS col0
----
43

skipif mysql # not compatible
query I rowsort label-1253
SELECT COUNT ( DISTINCT 22 ) + 42 AS col0
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1254
SELECT - COUNT( + 69 ) DIV 37 - - 17 * - 39
----
-663

skipif mysql # not compatible
query I rowsort label-1254
SELECT - COUNT ( + 69 ) / 37 - - 17 * - 39
----
-663

query I rowsort
SELECT 9 * + 55 AS col0
----
495

onlyif mysql # DIV for integer division: 
query I rowsort label-1256
SELECT ALL 61 DIV 99
----
0

skipif mysql # not compatible
query I rowsort label-1256
SELECT ALL 61 / 99
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1257
SELECT COALESCE ( - 79, 5 * + 78, + 53 + 0, - COUNT( * ) * COALESCE ( + COUNT( * ), 63 ) ) * - COUNT( * ) + - 57
----
22

skipif mysql # not compatible
query I rowsort label-1257
SELECT COALESCE ( - 79, 5 * + 78, + 53 + 0, - COUNT ( * ) * COALESCE ( + COUNT ( * ), 63 ) ) * - COUNT ( * ) + - 57
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-1258
SELECT 16 - + 41 * + COUNT( * )
----
-25

skipif mysql # not compatible
query I rowsort label-1258
SELECT 16 - + 41 * + COUNT ( * )
----
-25

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1260
SELECT - 86 * - COUNT( * ) + - 89 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-1260
SELECT - 86 * - COUNT ( * ) + - 89 AS col1
----
-3

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

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

query I rowsort
SELECT 6 + NULLIF ( + 70, 13 * 0 + - 87 ) AS col2
----
76

query I rowsort
SELECT ALL + 39 * 92 AS col2
----
3588

query I rowsort
SELECT 15 + 61 AS col2
----
76

query I rowsort
SELECT + 70 * - 25
----
-1750

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1266
SELECT + CAST( 31 AS SIGNED ) * 1 + - 66 * 67 AS col2
----
-4391

skipif mysql # not compatible
query I rowsort label-1266
SELECT + CAST ( 31 AS INTEGER ) * 1 + - 66 * 67 AS col2
----
-4391

query I rowsort
SELECT - 88 + + 43
----
-45

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

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

query I rowsort
SELECT + 37 + 74
----
111

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

query I rowsort
SELECT 81 + - 99 AS col2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-1272
SELECT + SUM( DISTINCT 28 ) * 43 AS col0
----
1204

skipif mysql # not compatible
query I rowsort label-1272
SELECT + SUM ( DISTINCT 28 ) * 43 AS col0
----
1204

onlyif mysql # DIV for integer division: 
query I rowsort label-1273
SELECT NULLIF ( + 70, + 16 ) + NULLIF ( - 21, + 48 ) DIV 75
----
70

skipif mysql # not compatible
query I rowsort label-1273
SELECT NULLIF ( + 70, + 16 ) + NULLIF ( - 21, + 48 ) / 75
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1274
SELECT DISTINCT - + CAST( 82 AS SIGNED )
----
-82

skipif mysql # not compatible
query I rowsort label-1274
SELECT DISTINCT - + CAST ( 82 AS INTEGER )
----
-82

query I rowsort
SELECT ALL + 32 + 52 AS col2
----
84

query I rowsort
SELECT ALL + - 53 + 52
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1277
SELECT - + 10 * + 13 + - COUNT( * ) col0
----
-131

skipif mysql # not compatible
query I rowsort label-1277
SELECT - + 10 * + 13 + - COUNT ( * ) col0
----
-131

query I rowsort
SELECT 6 * + ( ( - 9 ) )
----
-54

query I rowsort
SELECT 37 + - 5 AS col0
----
32

query I rowsort
SELECT DISTINCT - 66 + + 63 * ( 86 + 97 * 77 ) AS col0
----
475899

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1281
SELECT DISTINCT - - COALESCE ( 44, 85 - - COUNT( * ), 52 DIV 15, 21 * - 23 ) DIV 5
----
8

skipif mysql # not compatible
query I rowsort label-1281
SELECT DISTINCT - - COALESCE ( 44, 85 - - COUNT ( * ), 52 / 15, 21 * - 23 ) / 5
----
8

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

query I rowsort
SELECT 86 - - 46 AS col2
----
132

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

query I rowsort
SELECT DISTINCT - - 48 + + 43 * 98 AS col2
----
4262

query I rowsort
SELECT ALL + - 86 * ( 2 ) AS col0
----
-172

query I rowsort
SELECT 6 + - ( - 70 )
----
76

query I rowsort
SELECT DISTINCT + 15 - 12 * 2 AS col0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-1289
SELECT DISTINCT - 60 - SUM( ALL + 12 ) * - 56
----
612

skipif mysql # not compatible
query I rowsort label-1289
SELECT DISTINCT - 60 - SUM ( ALL + 12 ) * - 56
----
612

query I rowsort
SELECT 64 * - 64 AS col1
----
-4096

onlyif mysql # DIV for integer division: 
query I rowsort label-1291
SELECT DISTINCT COALESCE ( 23, 62 * - ( 60 * 72 ) ) DIV - 3
----
-7

skipif mysql # not compatible
query I rowsort label-1291
SELECT DISTINCT COALESCE ( 23, 62 * - ( 60 * 72 ) ) / - 3
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1292
SELECT ALL 78 - NULLIF ( 56, 57 ) + CAST( NULL AS SIGNED ) * + 28
----
NULL

skipif mysql # not compatible
query I rowsort label-1292
SELECT ALL 78 - NULLIF ( 56, 57 ) + CAST ( NULL AS INTEGER ) * + 28
----
NULL

query I rowsort
SELECT 90 * 37
----
3330

query I rowsort
SELECT 25 + 47 + ( - 79 + - 9 ) * - 29 AS col0
----
2624

query I rowsort
SELECT ALL - ( - + 80 ) col1
----
80

query I rowsort
SELECT DISTINCT 36 * + 71 AS col0
----
2556

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1297
SELECT CASE 49 WHEN 28 + COUNT( 95 ) THEN 39 ELSE 34 END DIV - 6 AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-1297
SELECT CASE 49 WHEN 28 + COUNT ( 95 ) THEN 39 ELSE 34 END / - 6 AS col2
----
-5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1298
SELECT 39 * CAST( NULL AS DECIMAL ) - 69 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1298
SELECT 39 * CAST ( NULL AS REAL ) - 69 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1299
SELECT + - MIN( - 45 ) * + 98 + + COUNT( DISTINCT - CASE 92 WHEN 54 THEN NULL ELSE - 50 END )
----
4411

skipif mysql # not compatible
query I rowsort label-1299
SELECT + - MIN ( - 45 ) * + 98 + + COUNT ( DISTINCT - CASE 92 WHEN 54 THEN NULL ELSE - 50 END )
----
4411

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

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

query I rowsort
SELECT ALL + ( + - 91 ) + 57 AS col0
----
-34

query I rowsort
SELECT ALL + + 38 + 8 * 9
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-1303
SELECT - ( 0 ) * 64 - COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1303
SELECT - ( 0 ) * 64 - COUNT ( * ) AS col1
----
-1

query I rowsort
SELECT + 71 * - 75 col2
----
-5325

onlyif mysql # aggregate syntax: 
query I rowsort label-1305
SELECT NULLIF ( + CASE - 74 WHEN - 52 THEN 41 ELSE 25 END, + 20 * + 99 ) * 75 - COUNT( * )
----
1874

skipif mysql # not compatible
query I rowsort label-1305
SELECT NULLIF ( + CASE - 74 WHEN - 52 THEN 41 ELSE 25 END, + 20 * + 99 ) * 75 - COUNT ( * )
----
1874

query I rowsort
SELECT ALL + 1 + + 62 AS col0
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1307
SELECT ALL MAX( + + CAST( + 3 AS SIGNED ) ) * + 17
----
51

skipif mysql # not compatible
query I rowsort label-1307
SELECT ALL MAX ( + + CAST ( + 3 AS INTEGER ) ) * + 17
----
51

query I rowsort
SELECT - 37 * 79 col0
----
-2923

onlyif mysql # aggregate syntax: 
query I rowsort label-1309
SELECT - 20 + + CASE - 16 WHEN - 68 + - 30 THEN 89 ELSE NULL END + - COUNT( * ) / 26 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1309
SELECT - 20 + + CASE - 16 WHEN - 68 + - 30 THEN 89 ELSE NULL END + - COUNT ( * ) / 26 AS col2
----
NULL

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

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

query I rowsort
SELECT ALL - 47 - - + 94 AS col2
----
47

query I rowsort
SELECT 74 * - ( 85 )
----
-6290

onlyif mysql # aggregate syntax: 
query I rowsort label-1313
SELECT DISTINCT MIN( DISTINCT - + NULLIF ( 88, 26 ) ) AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-1313
SELECT DISTINCT MIN ( DISTINCT - + NULLIF ( 88, 26 ) ) AS col0
----
-88

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1314
SELECT 84 + - - ( + - NULLIF ( CAST( NULL AS DECIMAL ), 10 / 40 + 95 ) ) + 98 * - 32
----
NULL

skipif mysql # not compatible
query I rowsort label-1314
SELECT 84 + - - ( + - NULLIF ( CAST ( NULL AS REAL ), 10 / 40 + 95 ) ) + 98 * - 32
----
NULL

query I rowsort
SELECT ALL CASE WHEN - 85 IS NULL THEN + 5 + + 0 END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1316
SELECT + 73 DIV + ( + 33 ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-1316
SELECT + 73 / + ( + 33 ) AS col1
----
2

query I rowsort
SELECT - 79 * + - 43
----
3397

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

skipif mysql # not compatible
query I rowsort label-1318
SELECT ALL - COUNT ( * ) / + 38 * COUNT ( 40 ) AS col2
----
0

query I rowsort
SELECT - 91 + - + 99 AS col0
----
-190

query I rowsort
SELECT DISTINCT - 29 * 97 AS col0
----
-2813

query I rowsort
SELECT ALL COALESCE ( 87, + 46 * + 89 )
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-1322
SELECT DISTINCT + CASE 20 WHEN 65 THEN NULL ELSE - 97 DIV + 82 END * 19 AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-1322
SELECT DISTINCT + CASE 20 WHEN 65 THEN NULL ELSE - 97 / + 82 END * 19 AS col0
----
-19

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1324
SELECT - 20 * ( - CASE MAX( DISTINCT 25 ) WHEN - CAST( NULL AS SIGNED ) THEN NULL ELSE + 25 END )
----
500

skipif mysql # not compatible
query I rowsort label-1324
SELECT - 20 * ( - CASE MAX ( DISTINCT 25 ) WHEN - CAST ( NULL AS INTEGER ) THEN NULL ELSE + 25 END )
----
500

query I rowsort
SELECT ALL COALESCE ( 45, - - 67 )
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1326
SELECT ALL - 66 * + CAST( + 91 AS SIGNED ) * ( 61 DIV SUM( ALL + 42 ) ) AS col1
----
-6006

skipif mysql # not compatible
query I rowsort label-1326
SELECT ALL - 66 * + CAST ( + 91 AS INTEGER ) * ( 61 / SUM ( ALL + 42 ) ) AS col1
----
-6006

onlyif mysql # aggregate syntax: 
query I rowsort label-1327
SELECT ALL MIN( - 10 ) AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-1327
SELECT ALL MIN ( - 10 ) AS col2
----
-10

query I rowsort
SELECT - 13 + - 44 AS col1
----
-57

query II rowsort
SELECT ALL + 89 AS col2, + 85 col0
----
89
85

query I rowsort
SELECT CASE + 93 WHEN - 52 + - 82 THEN NULL ELSE - 53 END AS col1
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-1331
SELECT ALL + 44 * - - NULLIF ( - - 44, 37 * COUNT( * ) + + COUNT( * ) ) + 52 AS col0
----
1988

skipif mysql # not compatible
query I rowsort label-1331
SELECT ALL + 44 * - - NULLIF ( - - 44, 37 * COUNT ( * ) + + COUNT ( * ) ) + 52 AS col0
----
1988

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1332
SELECT - 77 + - + 49 + + - ( CASE WHEN ( NULL ) IS NOT NULL THEN 26 WHEN NOT + 26 * + 1 + - COUNT( - 82 ) BETWEEN + 9 AND COUNT( * ) * - SUM( - 19 ) THEN + CAST( NULLIF ( 40, + 7 ) AS SIGNED ) END ) AS col2
----
-166

skipif mysql # not compatible
query I rowsort label-1332
SELECT - 77 + - + 49 + + - ( CASE WHEN ( NULL ) IS NOT NULL THEN 26 WHEN NOT + 26 * + 1 + - COUNT ( - 82 ) BETWEEN + 9 AND COUNT ( * ) * - SUM ( - 19 ) THEN + CAST ( NULLIF ( 40, + 7 ) AS INTEGER ) END ) AS col2
----
-166

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1333
SELECT - 27 DIV + + COALESCE ( - + COUNT( * ), 68 ) - 44
----
-17

skipif mysql # not compatible
query I rowsort label-1333
SELECT - 27 / + + COALESCE ( - + COUNT ( * ), 68 ) - 44
----
-17

query I rowsort
SELECT 93 * + 33 + - - 51
----
3120

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1335
SELECT + 79 - + - COUNT( * ) DIV + - 99 + 44
----
123

skipif mysql # not compatible
query I rowsort label-1335
SELECT + 79 - + - COUNT ( * ) / + - 99 + 44
----
123

onlyif mysql # DIV for integer division: 
query I rowsort label-1336
SELECT ALL + ( + 69 ) * - + 58 + 46 DIV + 81 + - 45
----
-4047

skipif mysql # not compatible
query I rowsort label-1336
SELECT ALL + ( + 69 ) * - + 58 + 46 / + 81 + - 45
----
-4047

onlyif mysql # aggregate syntax: 
query I rowsort label-1337
SELECT DISTINCT + + SUM( ( + 38 ) ) * + 53 + + 83 AS col2
----
2097

skipif mysql # not compatible
query I rowsort label-1337
SELECT DISTINCT + + SUM ( ( + 38 ) ) * + 53 + + 83 AS col2
----
2097

query II rowsort
SELECT DISTINCT + 38 col2, 56 AS col1
----
38
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1339
SELECT ALL + COUNT( * ) * + - MAX( 4 ) DIV 49 + - 21 AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-1339
SELECT ALL + COUNT ( * ) * + - MAX ( 4 ) / 49 + - 21 AS col2
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1340
SELECT + - COALESCE ( + - 71, + CAST( - COUNT( * ) AS SIGNED ) * + 62 + 96 * SUM( DISTINCT - 70 ) ) + 69 DIV + 64
----
72

skipif mysql # not compatible
query I rowsort label-1340
SELECT + - COALESCE ( + - 71, + CAST ( - COUNT ( * ) AS INTEGER ) * + 62 + 96 * SUM ( DISTINCT - 70 ) ) + 69 / + 64
----
72

query I rowsort
SELECT ALL - - 82 * 10
----
820

query II rowsort
SELECT ALL + 31 AS col1, + ( - 63 )
----
31
-63

onlyif mysql # aggregate syntax: 
query II rowsort label-1343
SELECT - 24 AS col2, SUM( - 10 ) AS col2
----
-24
-10

skipif mysql # not compatible
query II rowsort label-1343
SELECT - 24 AS col2, SUM ( - 10 ) AS col2
----
-24
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-1344
SELECT DISTINCT 38 * CASE + 9 WHEN COUNT( * ) THEN COALESCE ( + 77, 41 ) + 31 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1344
SELECT DISTINCT 38 * CASE + 9 WHEN COUNT ( * ) THEN COALESCE ( + 77, 41 ) + 31 END
----
NULL

query I rowsort
SELECT ALL + 2 * - ( - + 49 ) + + 93
----
191

query I rowsort
SELECT + 82 * + + 45 + - 72 AS col0
----
3618

query I rowsort
SELECT + 26 * - - 81 AS col0
----
2106

onlyif mysql # DIV for integer division: 
query I rowsort label-1348
SELECT + NULLIF ( 74, 27 ) DIV 87
----
0

skipif mysql # not compatible
query I rowsort label-1348
SELECT + NULLIF ( 74, 27 ) / 87
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1349
SELECT + 9 + - COUNT( * ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-1349
SELECT + 9 + - COUNT ( * ) AS col2
----
8

query I rowsort
SELECT + NULLIF ( - + 42, - 77 )
----
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1351
SELECT + - COUNT( * ) * 75 DIV + + 35 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-1351
SELECT + - COUNT ( * ) * 75 / + + 35 AS col1
----
-2

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1353
SELECT + 3 + + COALESCE ( - COUNT( * ), - 39 ) + 74 * + 92 AS col0
----
6810

skipif mysql # not compatible
query I rowsort label-1353
SELECT + 3 + + COALESCE ( - COUNT ( * ), - 39 ) + 74 * + 92 AS col0
----
6810

query I rowsort
SELECT ALL 9 * - + ( 62 ) * - + ( + 9 ) * 96
----
482112

onlyif mysql # aggregate syntax: 
query I rowsort label-1355
SELECT + 50 - - MIN( - + NULLIF ( 42, + 30 ) )
----
8

skipif mysql # not compatible
query I rowsort label-1355
SELECT + 50 - - MIN ( - + NULLIF ( 42, + 30 ) )
----
8

query I rowsort
SELECT - 56 * - 9
----
504

query I rowsort
SELECT ALL 62 * 89 AS col2
----
5518

query I rowsort
SELECT - 73 + 98 * 4
----
319

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

skipif mysql # not compatible
query I rowsort label-1359
SELECT ALL MIN ( 14 )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-1360
SELECT - 49 + - - SUM( ALL - ( + + 60 ) ) AS col2
----
-109

skipif mysql # not compatible
query I rowsort label-1360
SELECT - 49 + - - SUM ( ALL - ( + + 60 ) ) AS col2
----
-109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1361
SELECT ALL CASE 87 WHEN + + CAST( NULL AS SIGNED ) THEN + CAST( NULL AS SIGNED ) WHEN 4 THEN - COUNT( * ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1361
SELECT ALL CASE 87 WHEN + + CAST ( NULL AS INTEGER ) THEN + CAST ( NULL AS INTEGER ) WHEN 4 THEN - COUNT ( * ) ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1362
SELECT + COALESCE ( + COUNT( + 95 ), + COUNT( * ) * 6 ) DIV - 35
----
0

skipif mysql # not compatible
query I rowsort label-1362
SELECT + COALESCE ( + COUNT ( + 95 ), + COUNT ( * ) * 6 ) / - 35
----
0

query I rowsort
SELECT ALL COALESCE ( - 47, - 57, + 9 * + 71 )
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1364
SELECT DISTINCT + MAX( DISTINCT - 54 ) DIV 46 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1364
SELECT DISTINCT + MAX ( DISTINCT - 54 ) / 46 AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1365
SELECT ALL + CAST( + + COUNT( * ) AS SIGNED ) * + COUNT( * ) + - 66 DIV - 1
----
67

skipif mysql # not compatible
query I rowsort label-1365
SELECT ALL + CAST ( + + COUNT ( * ) AS INTEGER ) * + COUNT ( * ) + - 66 / - 1
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-1366
SELECT - 90 DIV - 62
----
1

skipif mysql # not compatible
query I rowsort label-1366
SELECT - 90 / - 62
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1367
SELECT ALL + ( - 79 ) + + MIN( DISTINCT 82 )
----
3

skipif mysql # not compatible
query I rowsort label-1367
SELECT ALL + ( - 79 ) + + MIN ( DISTINCT 82 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1368
SELECT - 66 * - - MIN( DISTINCT 20 ) AS col0
----
-1320

skipif mysql # not compatible
query I rowsort label-1368
SELECT - 66 * - - MIN ( DISTINCT 20 ) AS col0
----
-1320

query I rowsort
SELECT - 83 + + + 98 * + 26
----
2465

onlyif mysql # aggregate syntax: 
query I rowsort label-1370
SELECT ALL COALESCE ( 37, 33, COUNT( DISTINCT 37 ) - 67, + 81 ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-1370
SELECT ALL COALESCE ( 37, 33, COUNT ( DISTINCT 37 ) - 67, + 81 ) AS col2
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-1371
SELECT ALL + MAX( DISTINCT ( 14 ) ) + + 18 AS col0
----
32

skipif mysql # not compatible
query I rowsort label-1371
SELECT ALL + MAX ( DISTINCT ( 14 ) ) + + 18 AS col0
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-1372
SELECT - 54 DIV 41 * - 44 AS col0
----
44

skipif mysql # not compatible
query I rowsort label-1372
SELECT - 54 / 41 * - 44 AS col0
----
44

onlyif mysql # DIV for integer division: 
query II rowsort label-1373
SELECT ALL - 17 * + 96 AS col0, - 81 + + 59 DIV 14
----
-1632
-77

skipif mysql # not compatible
query II rowsort label-1373
SELECT ALL - 17 * + 96 AS col0, - 81 + + 59 / 14
----
-1632
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1374
SELECT ALL - 84 DIV 25 * + 17 * + ( 20 ) + COUNT( * ) * 29 + + 71
----
-920

skipif mysql # not compatible
query I rowsort label-1374
SELECT ALL - 84 / 25 * + 17 * + ( 20 ) + COUNT ( * ) * 29 + + 71
----
-920

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1375
SELECT DISTINCT 96 DIV - 55 * - + COUNT( * ) + + 17 + COUNT( * ) * + 70 col2
----
88

skipif mysql # not compatible
query I rowsort label-1375
SELECT DISTINCT 96 / - 55 * - + COUNT ( * ) + + 17 + COUNT ( * ) * + 70 col2
----
88

query I rowsort
SELECT ALL - 92 * - + 84 AS col0
----
7728

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1377
SELECT DISTINCT - 91 DIV + + 33 + - COUNT( * ) AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-1377
SELECT DISTINCT - 91 / + + 33 + - COUNT ( * ) AS col0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-1378
SELECT ALL + 48 DIV + + 83 + + NULLIF ( + 59, + 20 )
----
59

skipif mysql # not compatible
query I rowsort label-1378
SELECT ALL + 48 / + + 83 + + NULLIF ( + 59, + 20 )
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1379
SELECT + 71 DIV + + 47 * + - COUNT( * ) - 51 * 22 AS col2
----
-1123

skipif mysql # not compatible
query I rowsort label-1379
SELECT + 71 / + + 47 * + - COUNT ( * ) - 51 * 22 AS col2
----
-1123

query I rowsort
SELECT + + 15 * - - ( + - 63 ) * + - 44
----
41580

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1381
SELECT - 24 + - + 10 * 4 + CAST( NULL AS SIGNED ) + - 94
----
NULL

skipif mysql # not compatible
query I rowsort label-1381
SELECT - 24 + - + 10 * 4 + CAST ( NULL AS INTEGER ) + - 94
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1382
SELECT DISTINCT 67 * - + 4 AS col2, COALESCE ( 69, COALESCE ( COUNT( * ), ( 32 ) + + 17 * - ( 58 ), 97 + COUNT( * ) ) DIV 55, - COUNT( - NULLIF ( + 66, + 42 ) ) ) AS col1
----
-268
69

skipif mysql # not compatible
query II rowsort label-1382
SELECT DISTINCT 67 * - + 4 AS col2, COALESCE ( 69, COALESCE ( COUNT ( * ), ( 32 ) + + 17 * - ( 58 ), 97 + COUNT ( * ) ) / 55, - COUNT ( - NULLIF ( + 66, + 42 ) ) ) AS col1
----
-268
69

onlyif mysql # DIV for integer division: 
query I rowsort label-1383
SELECT ALL + 49 DIV - + 95 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1383
SELECT ALL + 49 / - + 95 AS col1
----
0

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

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

query I rowsort
SELECT DISTINCT + NULLIF ( - CASE - 64 WHEN - 22 THEN ( 93 ) WHEN ( 29 ) THEN 9 * + 44 ELSE NULL END, + 16 ) col1
----
NULL

query I rowsort
SELECT ALL 68 * - - 64
----
4352

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1387
SELECT 64 * - NULLIF ( 47, 34 - CAST( - 50 AS SIGNED ) ) AS col0
----
-3008

skipif mysql # not compatible
query I rowsort label-1387
SELECT 64 * - NULLIF ( 47, 34 - CAST ( - 50 AS INTEGER ) ) AS col0
----
-3008

onlyif mysql # aggregate syntax: 
query II rowsort label-1388
SELECT + COUNT( * ) * - 89 + - + COUNT( * ) AS col1, - 41 * - + ( 81 ) AS col1
----
-90
3321

skipif mysql # not compatible
query II rowsort label-1388
SELECT + COUNT ( * ) * - 89 + - + COUNT ( * ) AS col1, - 41 * - + ( 81 ) AS col1
----
-90
3321

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1389
SELECT 90 * + ( + CAST( - 4 AS SIGNED ) )
----
-360

skipif mysql # not compatible
query I rowsort label-1389
SELECT 90 * + ( + CAST ( - 4 AS INTEGER ) )
----
-360

onlyif mysql # aggregate syntax: 
query I rowsort label-1390
SELECT DISTINCT MAX( ALL - 85 ) + + 67 + - ( COUNT( * ) ) * - CASE 52 + - COALESCE ( 56, 49 ) WHEN + 95 * 62 THEN MIN( ALL 58 ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1390
SELECT DISTINCT MAX ( ALL - 85 ) + + 67 + - ( COUNT ( * ) ) * - CASE 52 + - COALESCE ( 56, 49 ) WHEN + 95 * 62 THEN MIN ( ALL 58 ) ELSE NULL END AS col0
----
NULL

query II rowsort
SELECT - 43, 25 + - 24 col1
----
-43
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1393
SELECT COUNT( * ) * + 15 * - 35 col0
----
-525

skipif mysql # not compatible
query I rowsort label-1393
SELECT COUNT ( * ) * + 15 * - 35 col0
----
-525

onlyif mysql # aggregate syntax: 
query II rowsort label-1394
SELECT ALL 20 + - COUNT( * ) + + 71 AS col1, 41 AS col1
----
90
41

skipif mysql # not compatible
query II rowsort label-1394
SELECT ALL 20 + - COUNT ( * ) + + 71 AS col1, 41 AS col1
----
90
41

query II rowsort
SELECT ALL 99 AS col0, 67 * + - 9 * - 70
----
99
42210

query I rowsort
SELECT 96 + - + NULLIF ( + - 54, 35 + - 63 )
----
150

query I rowsort
SELECT 41 * - 41
----
-1681

query I rowsort
SELECT 15 + - + 8 AS col0
----
7

query I rowsort
SELECT NULLIF ( - - ( + 2 ), - - 45 + - + 1 + 44 / - NULLIF ( 84, - 5 + + 95 ) ) + + 85 AS col0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-1400
SELECT DISTINCT CASE + 9 WHEN - 34 * - 34 + - 12 + + SUM( DISTINCT 93 + 18 ) THEN NULL WHEN + 35 - + ( 58 ) * - MIN( DISTINCT 36 ) THEN + 59 * 18 + + 78 END * 34
----
NULL

skipif mysql # not compatible
query I rowsort label-1400
SELECT DISTINCT CASE + 9 WHEN - 34 * - 34 + - 12 + + SUM ( DISTINCT 93 + 18 ) THEN NULL WHEN + 35 - + ( 58 ) * - MIN ( DISTINCT 36 ) THEN + 59 * 18 + + 78 END * 34
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1401
SELECT - 14 + - - 8 - - 8 DIV MAX( ALL - + 92 ) AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-1401
SELECT - 14 + - - 8 - - 8 / MAX ( ALL - + 92 ) AS col2
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-1402
SELECT ALL + - 31 DIV - 4 AS col0
----
7

skipif mysql # not compatible
query I rowsort label-1402
SELECT ALL + - 31 / - 4 AS col0
----
7

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

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

query I rowsort
SELECT ALL 98 - 73 AS col1
----
25

query I rowsort
SELECT + 81 + + 42 AS col0
----
123

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

query I rowsort
SELECT - 55 * - - COALESCE ( 78, - - 17 ) AS col1
----
-4290

query I rowsort
SELECT + 64 - + - 20
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1409
SELECT - 43 * CAST( NULL AS SIGNED ) + 60 + 81 * + - ( 94 ) * 16 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1409
SELECT - 43 * CAST ( NULL AS INTEGER ) + 60 + 81 * + - ( 94 ) * 16 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1410
SELECT CAST( + 0 AS SIGNED ) + ( + 74 ) + SUM( DISTINCT 20 )
----
94

skipif mysql # not compatible
query I rowsort label-1410
SELECT CAST ( + 0 AS INTEGER ) + ( + 74 ) + SUM ( DISTINCT 20 )
----
94

onlyif mysql # DIV for integer division: 
query II rowsort label-1411
SELECT ALL - 40 AS col0, + 94 DIV 83 AS col2
----
-40
1

skipif mysql # not compatible
query II rowsort label-1411
SELECT ALL - 40 AS col0, + 94 / 83 AS col2
----
-40
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1412
SELECT DISTINCT + + 77 * - - ( COALESCE ( + 6, COUNT( * ) ) ) AS col0
----
462

skipif mysql # not compatible
query I rowsort label-1412
SELECT DISTINCT + + 77 * - - ( COALESCE ( + 6, COUNT ( * ) ) ) AS col0
----
462

query I rowsort
SELECT ALL + 20 * + 34 AS col1
----
680

onlyif mysql # DIV for integer division: 
query I rowsort label-1414
SELECT + 56 * + 77 + - NULLIF ( + + 33, 90 ) - - 69 DIV - 86 + + 31 col1
----
4310

skipif mysql # not compatible
query I rowsort label-1414
SELECT + 56 * + 77 + - NULLIF ( + + 33, 90 ) - - 69 / - 86 + + 31 col1
----
4310

query I rowsort
SELECT + 80 * 85
----
6800

query I rowsort
SELECT + 26 * - COALESCE ( - ( - 85 ), 63 + + NULLIF ( 7, 44 ) ) + + 92
----
-2118

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

skipif mysql # not compatible
query I rowsort label-1417
SELECT + MIN ( + ( + 52 ) )
----
52

query I rowsort
SELECT 80 + 1 col2
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1419
SELECT 84 * CAST( + - 49 AS SIGNED ) AS col0
----
-4116

skipif mysql # not compatible
query I rowsort label-1419
SELECT 84 * CAST ( + - 49 AS INTEGER ) AS col0
----
-4116

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1421
SELECT ALL + COUNT( * ) + COUNT( * ) + + - 26 + 36
----
12

skipif mysql # not compatible
query I rowsort label-1421
SELECT ALL + COUNT ( * ) + COUNT ( * ) + + - 26 + 36
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-1422
SELECT DISTINCT + COUNT( * ) + + 48 * + + 17
----
817

skipif mysql # not compatible
query I rowsort label-1422
SELECT DISTINCT + COUNT ( * ) + + 48 * + + 17
----
817

onlyif mysql # aggregate syntax: 
query I rowsort label-1423
SELECT NULLIF ( COUNT( * ), - + 99 * - - 55 ) + - - 89 * - COUNT( * )
----
-88

skipif mysql # not compatible
query I rowsort label-1423
SELECT NULLIF ( COUNT ( * ), - + 99 * - - 55 ) + - - 89 * - COUNT ( * )
----
-88

query II rowsort
SELECT ALL + 7 + + - 71 AS col0, + ( - 12 )
----
-64
-12

query II rowsort
SELECT - 46 AS col2, + 56 * + 58 AS col1
----
-46
3248

query I rowsort
SELECT 99 * + + 55
----
5445

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

skipif mysql # not compatible
query I rowsort label-1427
SELECT 5 / - + 58
----
0

query I rowsort
SELECT 41 + - 66 AS col1
----
-25

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

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

query I rowsort
SELECT DISTINCT + COALESCE ( - + 9, - 82 ) * + 14 col0
----
-126

query I rowsort
SELECT ALL 42 + + 65
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-1432
SELECT - CASE + COUNT( * ) WHEN 97 THEN + - 66 WHEN + 68 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1432
SELECT - CASE + COUNT ( * ) WHEN 97 THEN + - 66 WHEN + 68 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1433
SELECT ALL + CAST( NULL AS SIGNED ) - + 37 + - + CAST( + 67 AS SIGNED ) + + COALESCE ( + + 65, 98 * COUNT( * ) + - CASE + ( COUNT( * ) ) WHEN 78 * - 28 THEN + 98 + - 86 ELSE + COUNT( * ) + ( + 56 + ( 21 ) ) END * - COUNT( * ) ) + ( + 84 + 18 ) * 28
----
NULL

skipif mysql # not compatible
query I rowsort label-1433
SELECT ALL + CAST ( NULL AS INTEGER ) - + 37 + - + CAST ( + 67 AS INTEGER ) + + COALESCE ( + + 65, 98 * COUNT ( * ) + - CASE + ( COUNT ( * ) ) WHEN 78 * - 28 THEN + 98 + - 86 ELSE + COUNT ( * ) + ( + 56 + ( 21 ) ) END * - COUNT ( * ) ) + ( + 84 + 18 ) * 28
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1434
SELECT - + CASE 79 WHEN + 94 THEN - - 35 END, COUNT( * ) + + COUNT( * ) + - 20 * - 37 AS col1
----
NULL
742

skipif mysql # not compatible
query II rowsort label-1434
SELECT - + CASE 79 WHEN + 94 THEN - - 35 END, COUNT ( * ) + + COUNT ( * ) + - 20 * - 37 AS col1
----
NULL
742

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1436
SELECT 83 * + 74 + 4 DIV - 31 AS col2
----
6142

skipif mysql # not compatible
query I rowsort label-1436
SELECT 83 * + 74 + 4 / - 31 AS col2
----
6142

query I rowsort
SELECT 26 * + 48 * - 95 + - 24 + 92 AS col2
----
-118492

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1438
SELECT - + CAST( NULL AS DECIMAL ) AS col0, + 13 * - - MAX( ALL - NULLIF ( ( + 78 ), 20 * 17 ) ) AS col1
----
NULL
-1014

skipif mysql # not compatible
query II rowsort label-1438
SELECT - + CAST ( NULL AS REAL ) AS col0, + 13 * - - MAX ( ALL - NULLIF ( ( + 78 ), 20 * 17 ) ) AS col1
----
NULL
-1014

onlyif mysql # aggregate syntax: 
query I rowsort label-1439
SELECT 72 + COUNT( * ) * - 68
----
4

skipif mysql # not compatible
query I rowsort label-1439
SELECT 72 + COUNT ( * ) * - 68
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1440
SELECT ALL COUNT( * ) - - - 66 DIV + MAX( + 46 )
----
0

skipif mysql # not compatible
query I rowsort label-1440
SELECT ALL COUNT ( * ) - - - 66 / + MAX ( + 46 )
----
0

query I rowsort
SELECT 6 * 65 - - + COALESCE ( + + 52, ( + 79 ) + 66, 3 ) AS col1
----
442

onlyif mysql # aggregate syntax: 
query III rowsort label-1442
SELECT - 15 AS col2, - 74 * - 14 * + + 83 AS col2, + 53 * + COUNT( * ) + 36 * 7 - - 55
----
-15
85988
360

skipif mysql # not compatible
query III rowsort label-1442
SELECT - 15 AS col2, - 74 * - 14 * + + 83 AS col2, + 53 * + COUNT ( * ) + 36 * 7 - - 55
----
-15
85988
360

query I rowsort
SELECT DISTINCT - ( + 9 ) col0
----
-9

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1445
SELECT ALL + - 72 AS col0, COUNT( * ) * - 39 - 66 + + 78
----
-72
-27

skipif mysql # not compatible
query II rowsort label-1445
SELECT ALL + - 72 AS col0, COUNT ( * ) * - 39 - 66 + + 78
----
-72
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1446
SELECT - + CASE + 40 WHEN - + 87 THEN - 33 + + - COUNT( * ) + + CASE + 64 WHEN ( + 73 ) THEN NULL ELSE + 42 END ELSE 59 + + CAST( + 59 + COUNT( DISTINCT + 88 ) AS SIGNED ) END * - COUNT( * ) AS col0
----
119

skipif mysql # not compatible
query I rowsort label-1446
SELECT - + CASE + 40 WHEN - + 87 THEN - 33 + + - COUNT ( * ) + + CASE + 64 WHEN ( + 73 ) THEN NULL ELSE + 42 END ELSE 59 + + CAST ( + 59 + COUNT ( DISTINCT + 88 ) AS INTEGER ) END * - COUNT ( * ) AS col0
----
119

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1447
SELECT + CAST( NULL AS SIGNED ) * + 7 - + MIN( DISTINCT 11 ) + + - COUNT( * ) * - 29 + - 33
----
NULL

skipif mysql # not compatible
query I rowsort label-1447
SELECT + CAST ( NULL AS INTEGER ) * + 7 - + MIN ( DISTINCT 11 ) + + - COUNT ( * ) * - 29 + - 33
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1448
SELECT ALL 34 DIV + ( - 15 )
----
-2

skipif mysql # not compatible
query I rowsort label-1448
SELECT ALL 34 / + ( - 15 )
----
-2

query I rowsort
SELECT ALL - 2 * - + ( - 42 ) * 94 * + 93 + + 30 * 43
----
-733038

query II rowsort
SELECT + + 67 AS col2, + 74
----
67
74

onlyif mysql # aggregate syntax: 
query I rowsort label-1451
SELECT + COUNT( * ) * + + 92 + + 83
----
175

skipif mysql # not compatible
query I rowsort label-1451
SELECT + COUNT ( * ) * + + 92 + + 83
----
175

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

query I rowsort
SELECT - 91 * + 48 * + 58
----
-253344

onlyif mysql # aggregate syntax: 
query I rowsort label-1454
SELECT MAX( ALL 11 ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-1454
SELECT MAX ( ALL 11 ) AS col2
----
11

query I rowsort
SELECT ALL - 61 * - 17 + 14 AS col0
----
1051

query I rowsort
SELECT ALL - 95 * 2 + + 79 AS col1
----
-111

query I rowsort
SELECT - 73 + - - 98 + - + 34 * + 19 AS col1
----
-621

query I rowsort
SELECT ALL + 84 * - 16 * 59 * + 99 + - - 93
----
-7850211

onlyif mysql # aggregate syntax: 
query II rowsort label-1459
SELECT COUNT( DISTINCT - 35 ) AS col2, 57 * - 27
----
1
-1539

skipif mysql # not compatible
query II rowsort label-1459
SELECT COUNT ( DISTINCT - 35 ) AS col2, 57 * - 27
----
1
-1539

onlyif mysql # aggregate syntax: 
query I rowsort label-1460
SELECT ALL + SUM( - 89 ) AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-1460
SELECT ALL + SUM ( - 89 ) AS col0
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1461
SELECT - 93 * - 12 + 89 * + CAST( + ( 40 ) AS SIGNED )
----
4676

skipif mysql # not compatible
query I rowsort label-1461
SELECT - 93 * - 12 + 89 * + CAST ( + ( 40 ) AS INTEGER )
----
4676

onlyif mysql # aggregate syntax: 
query I rowsort label-1462
SELECT - NULLIF ( NULLIF ( - + CASE CASE + - ( + + 55 ) WHEN NULLIF ( 76, + COUNT( 4 ) / 71 ) / - 41 THEN 68 * - MAX( DISTINCT + 35 ) - - 18 * + 43 WHEN - 12 + + NULLIF ( + 43, 36 - - 32 ) * COUNT( * ) THEN NULL END WHEN 92 THEN - ( - 60 ) + 48 ELSE NULL END, 9 - 34 * 65 ), + 91 ) * 73 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1462
SELECT - NULLIF ( NULLIF ( - + CASE CASE + - ( + + 55 ) WHEN NULLIF ( 76, + COUNT ( 4 ) / 71 ) / - 41 THEN 68 * - MAX ( DISTINCT + 35 ) - - 18 * + 43 WHEN - 12 + + NULLIF ( + 43, 36 - - 32 ) * COUNT ( * ) THEN NULL END WHEN 92 THEN - ( - 60 ) + 48 ELSE NULL END, 9 - 34 * 65 ), + 91 ) * 73 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - ( - 91 ) + - 58 + ( - + 43 )
----
-10

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

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

query I rowsort
SELECT ALL - 58 - - 1 + - - 59
----
2

query I rowsort
SELECT - 7 * + 47 AS col1
----
-329

query I rowsort
SELECT ALL - 49 * + ( 42 )
----
-2058

query I rowsort
SELECT DISTINCT 54 * ( 86 ) col1
----
4644

onlyif mysql # aggregate syntax: 
query II rowsort label-1469
SELECT ALL 12 - COUNT( * ) AS col2, + 57 AS col1
----
11
57

skipif mysql # not compatible
query II rowsort label-1469
SELECT ALL 12 - COUNT ( * ) AS col2, + 57 AS col1
----
11
57

query I rowsort
SELECT - 71 * + 90
----
-6390

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1471
SELECT - COALESCE ( 91, - 21 * + - CAST( - 42 AS SIGNED ) ) + - - 49 DIV - 7 AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-1471
SELECT - COALESCE ( 91, - 21 * + - CAST ( - 42 AS INTEGER ) ) + - - 49 / - 7 AS col1
----
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1472
SELECT + COUNT( * ) DIV 68 * - 3 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1472
SELECT + COUNT ( * ) / 68 * - 3 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-1473
SELECT - MIN( ALL - + 47 ) + NULLIF ( COUNT( * ), 17 * + 82 + - COALESCE ( + CASE - 25 WHEN 86 THEN 28 * + 11 ELSE NULL END, 7 * MIN( ALL - 23 DIV + 83 ) - CAST( NULL AS DECIMAL ) * + 14 ) ) DIV + 43 AS col1
----
47

skipif mysql # not compatible
query I rowsort label-1473
SELECT - MIN ( ALL - + 47 ) + NULLIF ( COUNT ( * ), 17 * + 82 + - COALESCE ( + CASE - 25 WHEN 86 THEN 28 * + 11 ELSE NULL END, 7 * MIN ( ALL - 23 / + 83 ) - CAST ( NULL AS REAL ) * + 14 ) ) / + 43 AS col1
----
47

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1475
SELECT + COUNT( * ) DIV + 43 + - ( 70 ) AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-1475
SELECT + COUNT ( * ) / + 43 + - ( 70 ) AS col2
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-1476
SELECT + 35 * + COUNT( * ) + - ( - 93 ) AS col0
----
128

skipif mysql # not compatible
query I rowsort label-1476
SELECT + 35 * + COUNT ( * ) + - ( - 93 ) AS col0
----
128

onlyif mysql # DIV for integer division: 
query I rowsort label-1477
SELECT + - 13 DIV 63 + 24 + + 86 - - - 88 + + CASE - + 14 WHEN 84 THEN NULL WHEN ( 79 ) THEN NULL ELSE 39 END AS col0
----
61

skipif mysql # not compatible
query I rowsort label-1477
SELECT + - 13 / 63 + 24 + + 86 - - - 88 + + CASE - + 14 WHEN 84 THEN NULL WHEN ( 79 ) THEN NULL ELSE 39 END AS col0
----
61

query I rowsort
SELECT - 79 + - - 33 + + - 94 * - - 28
----
-2678

query I rowsort
SELECT + + 43 + - 41
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-1480
SELECT ALL 93 DIV 45 + + 95 AS col1
----
97

skipif mysql # not compatible
query I rowsort label-1480
SELECT ALL 93 / 45 + + 95 AS col1
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-1481
SELECT + 62 + + 1, + COUNT( * ) + - COUNT( * ) + - 5 col0
----
63
-5

skipif mysql # not compatible
query II rowsort label-1481
SELECT + 62 + + 1, + COUNT ( * ) + - COUNT ( * ) + - 5 col0
----
63
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-1482
SELECT + - 15 * - + 45 + + + 88 + - + 23 * 79 DIV - ( + - 25 ) + 54 * + 53 * + 47
----
135205

skipif mysql # not compatible
query I rowsort label-1482
SELECT + - 15 * - + 45 + + + 88 + - + 23 * 79 / - ( + - 25 ) + 54 * + 53 * + 47
----
135205

onlyif mysql # DIV for integer division: 
query I rowsort label-1483
SELECT ALL ( - 73 ) DIV - 44 + + 62
----
63

skipif mysql # not compatible
query I rowsort label-1483
SELECT ALL ( - 73 ) / - 44 + + 62
----
63

query II rowsort
SELECT + ( NULLIF ( + 69, + AVG ( - 97 ) * + 22 ) ) AS col2, 46 AS col0
----
69
46

onlyif mysql # aggregate syntax: 
query I rowsort label-1485
SELECT ALL + 68 * - SUM( - 86 ) + - 2
----
5846

skipif mysql # not compatible
query I rowsort label-1485
SELECT ALL + 68 * - SUM ( - 86 ) + - 2
----
5846

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1486
SELECT + 97 + - COUNT( * ) - + 89 + + 91 + - ( + COUNT( - 15 ) ) DIV - + 20 * SUM( + 94 * - 96 ) + - 32 * - NULLIF ( - 36 * + 76 + 15 DIV 85, 11 * ( + 56 ) )
----
-87454

skipif mysql # not compatible
query I rowsort label-1486
SELECT + 97 + - COUNT ( * ) - + 89 + + 91 + - ( + COUNT ( - 15 ) ) / - + 20 * SUM ( + 94 * - 96 ) + - 32 * - NULLIF ( - 36 * + 76 + 15 / 85, 11 * ( + 56 ) )
----
-87454

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1487
SELECT ALL + 45, COALESCE ( + - CAST( 88 AS SIGNED ), - - 72 DIV + 84 * - + CASE - 83 WHEN - 38 THEN 90 ELSE NULL END * COUNT( * ) ) * 37 AS col0
----
45
-3256

skipif mysql # not compatible
query II rowsort label-1487
SELECT ALL + 45, COALESCE ( + - CAST ( 88 AS INTEGER ), - - 72 / + 84 * - + CASE - 83 WHEN - 38 THEN 90 ELSE NULL END * COUNT ( * ) ) * 37 AS col0
----
45
-3256

onlyif mysql # aggregate syntax: 
query I rowsort label-1488
SELECT ( - MIN( DISTINCT + 14 ) ) AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-1488
SELECT ( - MIN ( DISTINCT + 14 ) ) AS col1
----
-14

query I rowsort
SELECT + 85 * - + 41
----
-3485

query I rowsort
SELECT + 79 + 70 * 82
----
5819

query II rowsort
SELECT + 43 AS col2, 15
----
43
15

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1492
SELECT - NULLIF ( + 12, + 11 + - CAST( - 22 AS SIGNED ) * - - 15 ) + - 17 DIV - + 1 + - 47 AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-1492
SELECT - NULLIF ( + 12, + 11 + - CAST ( - 22 AS INTEGER ) * - - 15 ) + - 17 / - + 1 + - 47 AS col1
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1493
SELECT ALL + CASE + 41 WHEN + COALESCE ( 21, - ( - 12 ) * MAX( DISTINCT - COALESCE ( 60, 44, + 90 * 80 ) ) ) THEN 89 + COUNT( * ) WHEN CAST( NULL AS SIGNED ) THEN NULL WHEN COUNT( * ) THEN + 54 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1493
SELECT ALL + CASE + 41 WHEN + COALESCE ( 21, - ( - 12 ) * MAX ( DISTINCT - COALESCE ( 60, 44, + 90 * 80 ) ) ) THEN 89 + COUNT ( * ) WHEN CAST ( NULL AS INTEGER ) THEN NULL WHEN COUNT ( * ) THEN + 54 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1494
SELECT DISTINCT SUM( - - CAST( NULL AS SIGNED ) ) / - 92 * + 14 * + 53
----
NULL

skipif mysql # not compatible
query I rowsort label-1494
SELECT DISTINCT SUM ( - - CAST ( NULL AS INTEGER ) ) / - 92 * + 14 * + 53
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1495
SELECT - 7 * 76 DIV - 77 + 62
----
68

skipif mysql # not compatible
query I rowsort label-1495
SELECT - 7 * 76 / - 77 + 62
----
68

query I rowsort
SELECT ALL 89 * + 97 AS col2
----
8633

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1497
SELECT - CAST( - - 79 AS SIGNED ) col1
----
-79

skipif mysql # not compatible
query I rowsort label-1497
SELECT - CAST ( - - 79 AS INTEGER ) col1
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-1498
SELECT ALL CASE WHEN NOT ( - 56 ) <> + AVG ( - ( + 40 ) ) THEN - 26 * + SUM( 39 ) + 94 WHEN NOT NULL = NULL THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1498
SELECT ALL CASE WHEN NOT ( - 56 ) <> + AVG ( - ( + 40 ) ) THEN - 26 * + SUM ( 39 ) + 94 WHEN NOT NULL = NULL THEN NULL END AS col2
----
NULL

query I rowsort
SELECT + 48 * - 72 AS col1
----
-3456

onlyif mysql # aggregate syntax: 
query II rowsort label-1500
SELECT - 27 col0, + 19 * + + COUNT( * ) + + ( - 74 ) col1
----
-27
-55

skipif mysql # not compatible
query II rowsort label-1500
SELECT - 27 col0, + 19 * + + COUNT ( * ) + + ( - 74 ) col1
----
-27
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1501
SELECT - - COUNT( * ) AS col1, CAST( NULL AS SIGNED ) / - + 20 + + 8 + + + 38 * + + 83 * + COUNT( * ) * + 89 AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-1501
SELECT - - COUNT ( * ) AS col1, CAST ( NULL AS INTEGER ) / - + 20 + + 8 + + + 38 * + + 83 * + COUNT ( * ) * + 89 AS col0
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1502
SELECT ALL CASE - 66 WHEN - 68 THEN NULL WHEN + + 21 * - 43 THEN COUNT( * ) * - COUNT( * ) ELSE - COUNT( ALL 17 ) END
----
-1

skipif mysql # not compatible
query I rowsort label-1502
SELECT ALL CASE - 66 WHEN - 68 THEN NULL WHEN + + 21 * - 43 THEN COUNT ( * ) * - COUNT ( * ) ELSE - COUNT ( ALL 17 ) END
----
-1

query II rowsort
SELECT - 77, + 69 + - 48 + + + 71 AS col2
----
-77
92

onlyif mysql # DIV for integer division: 
query I rowsort label-1504
SELECT ALL - ( + 37 ) DIV - 50 * - + 58 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1504
SELECT ALL - ( + 37 ) / - 50 * - + 58 AS col0
----
0

query II rowsort
SELECT - 10 * 46 * 50 AS col2, 27 AS col1
----
-23000
27

onlyif mysql # aggregate syntax: 
query I rowsort label-1506
SELECT ALL + + COUNT( * ) + - + 77 AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-1506
SELECT ALL + + COUNT ( * ) + - + 77 AS col0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-1507
SELECT - SUM( + 26 ) * - 94
----
2444

skipif mysql # not compatible
query I rowsort label-1507
SELECT - SUM ( + 26 ) * - 94
----
2444

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1509
SELECT DISTINCT 39 + CASE 14 WHEN - NULLIF ( + COUNT( * ), + 31 ) + - COALESCE ( 52, NULLIF ( 86, - 93 ) - + COUNT( * ) ) * + CAST( NULL AS SIGNED ) THEN 63 * 74 END + - 83 * 25 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1509
SELECT DISTINCT 39 + CASE 14 WHEN - NULLIF ( + COUNT ( * ), + 31 ) + - COALESCE ( 52, NULLIF ( 86, - 93 ) - + COUNT ( * ) ) * + CAST ( NULL AS INTEGER ) THEN 63 * 74 END + - 83 * 25 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1510
SELECT DISTINCT - - MAX( - + 36 ) + + NULLIF ( 23, ( 95 ) ) + + COUNT( - 10 ) DIV CASE + 30 WHEN COUNT( * ) THEN NULL ELSE COALESCE ( 72, + 18 + 89 * + ( - 74 * - 42 + - NULLIF ( - 37 + ( 98 ) * + 91, 51 ) * - 56 ) ) END
----
-13

skipif mysql # not compatible
query I rowsort label-1510
SELECT DISTINCT - - MAX ( - + 36 ) + + NULLIF ( 23, ( 95 ) ) + + COUNT ( - 10 ) / CASE + 30 WHEN COUNT ( * ) THEN NULL ELSE COALESCE ( 72, + 18 + 89 * + ( - 74 * - 42 + - NULLIF ( - 37 + ( 98 ) * + 91, 51 ) * - 56 ) ) END
----
-13

query I rowsort
SELECT DISTINCT 27 + + CASE 21 WHEN + - ( 93 ) * - 95 + 66 THEN - 62 ELSE + - 34 END * - 7 AS col1
----
265

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1512
SELECT ALL - CAST( 98 AS SIGNED ) AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-1512
SELECT ALL - CAST ( 98 AS INTEGER ) AS col1
----
-98

query I rowsort
SELECT ALL 56 + + 65 col2
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-1514
SELECT + MIN( - 42 ) * 85 + + ( 21 )
----
-3549

skipif mysql # not compatible
query I rowsort label-1514
SELECT + MIN ( - 42 ) * 85 + + ( 21 )
----
-3549

query I rowsort
SELECT 24 * ( - 24 )
----
-576

query I rowsort
SELECT 53 + 12
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-1517
SELECT - NULLIF ( + 30, + 24 / 42 + - 72 + - COUNT( * ) - + - 54 + 24 + - + SUM( DISTINCT 99 ) ) * - 42 + - 8 * 1 AS col1
----
1252

skipif mysql # not compatible
query I rowsort label-1517
SELECT - NULLIF ( + 30, + 24 / 42 + - 72 + - COUNT ( * ) - + - 54 + 24 + - + SUM ( DISTINCT 99 ) ) * - 42 + - 8 * 1 AS col1
----
1252

onlyif mysql # aggregate syntax: 
query I rowsort label-1518
SELECT COUNT( * ) * + + 53 col2
----
53

skipif mysql # not compatible
query I rowsort label-1518
SELECT COUNT ( * ) * + + 53 col2
----
53

query I rowsort
SELECT 43 + 54 AS col1
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1520
SELECT - CASE - 47 WHEN + CAST( 32 AS SIGNED ) THEN + COUNT( * ) + + 87 WHEN - - 86 THEN 84 ELSE + - 13 END - 31
----
-18

skipif mysql # not compatible
query I rowsort label-1520
SELECT - CASE - 47 WHEN + CAST ( 32 AS INTEGER ) THEN + COUNT ( * ) + + 87 WHEN - - 86 THEN 84 ELSE + - 13 END - 31
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1521
SELECT DISTINCT 37 * + COUNT( * ) DIV 86 + - 17
----
-17

skipif mysql # not compatible
query I rowsort label-1521
SELECT DISTINCT 37 * + COUNT ( * ) / 86 + - 17
----
-17

query I rowsort
SELECT DISTINCT + 73 + - 69 AS col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1523
SELECT DISTINCT + COALESCE ( 74, - COUNT( * ) * 41 * + + 83 - - 7 + - + 64 + - 19 ) + - 82 * 0 AS col1
----
74

skipif mysql # not compatible
query I rowsort label-1523
SELECT DISTINCT + COALESCE ( 74, - COUNT ( * ) * 41 * + + 83 - - 7 + - + 64 + - 19 ) + - 82 * 0 AS col1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-1524
SELECT - COUNT( * ) * - 33 * + 95
----
3135

skipif mysql # not compatible
query I rowsort label-1524
SELECT - COUNT ( * ) * - 33 * + 95
----
3135

onlyif mysql # aggregate syntax: 
query II rowsort label-1525
SELECT + COALESCE ( + 62, + - 52 ) + + 60 * + + 10 AS col0, + COUNT( * ) * + COUNT( * ) - 20 + NULLIF ( - 61, NULLIF ( ( 89 ), 55 + 58 ) ) AS col0
----
662
-80

skipif mysql # not compatible
query II rowsort label-1525
SELECT + COALESCE ( + 62, + - 52 ) + + 60 * + + 10 AS col0, + COUNT ( * ) * + COUNT ( * ) - 20 + NULLIF ( - 61, NULLIF ( ( 89 ), 55 + 58 ) ) AS col0
----
662
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-1526
SELECT 29 + - COALESCE ( NULLIF ( - 95, 67 ), - + ( + MAX( ALL + 40 ) ) ) * + - 49 * 99
----
-460816

skipif mysql # not compatible
query I rowsort label-1526
SELECT 29 + - COALESCE ( NULLIF ( - 95, 67 ), - + ( + MAX ( ALL + 40 ) ) ) * + - 49 * 99
----
-460816

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1527
SELECT ( 54 ) * + - 93 / + CAST( NULL AS SIGNED ) * - ( + 18 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1527
SELECT ( 54 ) * + - 93 / + CAST ( NULL AS INTEGER ) * - ( + 18 ) AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1529
SELECT - COALESCE ( MAX( - 36 ), - 77 ) DIV - 70 + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-1529
SELECT - COALESCE ( MAX ( - 36 ), - 77 ) / - 70 + - COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1530
SELECT ALL + MIN( ( 53 ) ) * - 34 * - ( - 2 ) AS col1
----
-3604

skipif mysql # not compatible
query I rowsort label-1530
SELECT ALL + MIN ( ( 53 ) ) * - 34 * - ( - 2 ) AS col1
----
-3604

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1532
SELECT 44 + + 50 + NULLIF ( 56, + - 15 ), - CASE - COUNT( * ) WHEN + MIN( DISTINCT + + 74 ) THEN NULL WHEN MIN( ALL - 9 ) * 98 THEN 31 * - 45 + 37 / COUNT( * ) WHEN - 80 THEN + 6 ELSE NULL END * 22 col0
----
150
NULL

skipif mysql # not compatible
query II rowsort label-1532
SELECT 44 + + 50 + NULLIF ( 56, + - 15 ), - CASE - COUNT ( * ) WHEN + MIN ( DISTINCT + + 74 ) THEN NULL WHEN MIN ( ALL - 9 ) * 98 THEN 31 * - 45 + 37 / COUNT ( * ) WHEN - 80 THEN + 6 ELSE NULL END * 22 col0
----
150
NULL

query I rowsort
SELECT ALL + 63 * - + 74
----
-4662

query I rowsort
SELECT 24 * 74 col2
----
1776

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

skipif mysql # not compatible
query I rowsort label-1535
SELECT DISTINCT + COUNT ( * ) / 14
----
0

query I rowsort
SELECT ALL 96 * + 81 * + 10 * - 80 AS col2
----
-6220800

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

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

query I rowsort
SELECT 24 * - - 25 AS col2
----
600

onlyif mysql # aggregate syntax: 
query II rowsort label-1539
SELECT SUM( DISTINCT - 48 ) * 72 AS col2, + 82 - + 35 AS col0
----
-3456
47

skipif mysql # not compatible
query II rowsort label-1539
SELECT SUM ( DISTINCT - 48 ) * 72 AS col2, + 82 - + 35 AS col0
----
-3456
47

onlyif mysql # aggregate syntax: 
query II rowsort label-1540
SELECT 40 + 88 * 3, COUNT( * ) * + ( COALESCE ( + - 10, + 84 * + - 43 + + 57 * 81, + 78 ) ) AS col2
----
304
-10

skipif mysql # not compatible
query II rowsort label-1540
SELECT 40 + 88 * 3, COUNT ( * ) * + ( COALESCE ( + - 10, + 84 * + - 43 + + 57 * 81, + 78 ) ) AS col2
----
304
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-1541
SELECT CASE + COUNT( * ) WHEN - 30 THEN 69 + NULLIF ( - ( - + 92 ), - 31 ) WHEN 72 THEN + + 55 ELSE 38 + 83 END + + 54 AS col1
----
175

skipif mysql # not compatible
query I rowsort label-1541
SELECT CASE + COUNT ( * ) WHEN - 30 THEN 69 + NULLIF ( - ( - + 92 ), - 31 ) WHEN 72 THEN + + 55 ELSE 38 + 83 END + + 54 AS col1
----
175

query I rowsort
SELECT ALL 36 * 29 AS col1
----
1044

query I rowsort
SELECT 49 * 51
----
2499

query I rowsort
SELECT ALL + + 61 * - 33
----
-2013

query I rowsort
SELECT + + 65 * - 30 * 96 + 41 AS col0
----
-187159

query II rowsort
SELECT + - 80 + - - 66 * + - 71 AS col2, ( + 66 ) AS col2
----
-4766
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1547
SELECT - + NULLIF ( + CAST( + - 55 AS SIGNED ), NULLIF ( - AVG ( DISTINCT 69 ), - 11 ) * 34 )
----
55

skipif mysql # not compatible
query I rowsort label-1547
SELECT - + NULLIF ( + CAST ( + - 55 AS INTEGER ), NULLIF ( - AVG ( DISTINCT 69 ), - 11 ) * 34 )
----
55

query I rowsort
SELECT + - 94 * - + 12 + + 85 + 73
----
1286

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

skipif mysql # not compatible
query I rowsort label-1549
SELECT - NULLIF ( + + COUNT ( * ), + 73 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-1550
SELECT + COUNT( * ) + + NULLIF ( - SUM( 42 ), + 42 ), - 43 AS col1
----
-41
-43

skipif mysql # not compatible
query II rowsort label-1550
SELECT + COUNT ( * ) + + NULLIF ( - SUM ( 42 ), + 42 ), - 43 AS col1
----
-41
-43

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

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

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

query I rowsort
SELECT DISTINCT - 80 + + + 57
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-1554
SELECT ALL ( COUNT( - 94 ) ) + 69 AS col1
----
70

skipif mysql # not compatible
query I rowsort label-1554
SELECT ALL ( COUNT ( - 94 ) ) + 69 AS col1
----
70

query I rowsort
SELECT DISTINCT 16 + + + COALESCE ( - - 58, COALESCE ( 19, - 0 ) + 36 ) AS col0
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1556
SELECT + 86 * - - CAST( - 76 AS SIGNED )
----
-6536

skipif mysql # not compatible
query I rowsort label-1556
SELECT + 86 * - - CAST ( - 76 AS INTEGER )
----
-6536

onlyif mysql # aggregate syntax: 
query I rowsort label-1557
SELECT ALL + CASE ( COUNT( DISTINCT - 67 ) ) WHEN + CASE 71 WHEN COUNT( * ) THEN - - 64 - 78 * + 74 WHEN 64 + - 17 * + COUNT( * ) THEN 79 * 58 WHEN + ( 17 ) * + 81 THEN NULL END + 94 THEN NULL ELSE 91 * + 65 END col2
----
5915

skipif mysql # not compatible
query I rowsort label-1557
SELECT ALL + CASE ( COUNT ( DISTINCT - 67 ) ) WHEN + CASE 71 WHEN COUNT ( * ) THEN - - 64 - 78 * + 74 WHEN 64 + - 17 * + COUNT ( * ) THEN 79 * 58 WHEN + ( 17 ) * + 81 THEN NULL END + 94 THEN NULL ELSE 91 * + 65 END col2
----
5915

query I rowsort
SELECT + - 92 - + 69 AS col0
----
-161

onlyif mysql # aggregate syntax: 
query I rowsort label-1559
SELECT - + MAX( + + 37 ) AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-1559
SELECT - + MAX ( + + 37 ) AS col2
----
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-1560
SELECT ALL COUNT( * ) AS col0, + 92 * + + CASE + 26 WHEN - - 93 THEN + ( - - COUNT( * ) ) WHEN + 88 THEN - 43 WHEN + + 25 THEN NULL ELSE + 62 + - ( + 36 ) END * - 47 + MAX( DISTINCT 78 ) AS col0
----
1
-112346

skipif mysql # not compatible
query II rowsort label-1560
SELECT ALL COUNT ( * ) AS col0, + 92 * + + CASE + 26 WHEN - - 93 THEN + ( - - COUNT ( * ) ) WHEN + 88 THEN - 43 WHEN + + 25 THEN NULL ELSE + 62 + - ( + 36 ) END * - 47 + MAX ( DISTINCT 78 ) AS col0
----
1
-112346

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1562
SELECT DISTINCT COUNT( ALL - - 67 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1562
SELECT DISTINCT COUNT ( ALL - - 67 ) AS col2
----
1

query I rowsort
SELECT + 91 * - 59 AS col0
----
-5369

onlyif mysql # aggregate syntax: 
query I rowsort label-1564
SELECT - 52 * - + 84 - + - MAX( ALL + 33 ) * 10
----
4698

skipif mysql # not compatible
query I rowsort label-1564
SELECT - 52 * - + 84 - + - MAX ( ALL + 33 ) * 10
----
4698

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1565
SELECT ALL + 73 AS col2, - CAST( NULL AS SIGNED )
----
73
NULL

skipif mysql # not compatible
query II rowsort label-1565
SELECT ALL + 73 AS col2, - CAST ( NULL AS INTEGER )
----
73
NULL

query II rowsort
SELECT + 36, ( 7 ) AS col2
----
36
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1567
SELECT ALL + ( COUNT( * ) ) * + 10 AS col0
----
10

skipif mysql # not compatible
query I rowsort label-1567
SELECT ALL + ( COUNT ( * ) ) * + 10 AS col0
----
10

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1569
SELECT 32 * - + 89 + COUNT( * )
----
-2847

skipif mysql # not compatible
query I rowsort label-1569
SELECT 32 * - + 89 + COUNT ( * )
----
-2847

query I rowsort
SELECT ( 75 ) col1
----
75

query I rowsort
SELECT - 25 + + - 4 AS col1
----
-29

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

skipif mysql # not compatible
query I rowsort label-1572
SELECT - 42 / - COUNT ( * )
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-1573
SELECT DISTINCT CASE CASE - 38 WHEN - + 47 + + 17 + 60 * + AVG ( DISTINCT - 96 ) * 24 THEN + ( - 17 ) ELSE NULL END WHEN 37 * SUM( DISTINCT 68 * + 58 ) THEN NULL WHEN MIN( DISTINCT + 0 ) / - COUNT( * ) THEN + MAX( ALL - 95 ) ELSE 24 * 24 END * + 66 + + 20 AS col2
----
38036

skipif mysql # not compatible
query I rowsort label-1573
SELECT DISTINCT CASE CASE - 38 WHEN - + 47 + + 17 + 60 * + AVG ( DISTINCT - 96 ) * 24 THEN + ( - 17 ) ELSE NULL END WHEN 37 * SUM ( DISTINCT 68 * + 58 ) THEN NULL WHEN MIN ( DISTINCT + 0 ) / - COUNT ( * ) THEN + MAX ( ALL - 95 ) ELSE 24 * 24 END * + 66 + + 20 AS col2
----
38036

onlyif mysql # aggregate syntax: 
query I rowsort label-1574
SELECT DISTINCT - ( - 37 ) * - COUNT( - NULLIF ( 25, - 23 ) ) AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-1574
SELECT DISTINCT - ( - 37 ) * - COUNT ( - NULLIF ( 25, - 23 ) ) AS col1
----
-37

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

query I rowsort
SELECT + + 75 * 66 + - - 23 AS col0
----
4973

onlyif mysql # aggregate syntax: 
query I rowsort label-1577
SELECT - + NULLIF ( + 81, 58 / COUNT( * ) * - + 63 / - AVG ( - + 51 ) * COALESCE ( + 47, 64 * - 32 + MIN( + NULLIF ( 72, 37 ) ) * - 53, 4 ) + - 2 * - 60 ) * + MIN( 54 + 22 * + 65 )
----
-120204

skipif mysql # not compatible
query I rowsort label-1577
SELECT - + NULLIF ( + 81, 58 / COUNT ( * ) * - + 63 / - AVG ( - + 51 ) * COALESCE ( + 47, 64 * - 32 + MIN ( + NULLIF ( 72, 37 ) ) * - 53, 4 ) + - 2 * - 60 ) * + MIN ( 54 + 22 * + 65 )
----
-120204

onlyif mysql # aggregate syntax: 
query II rowsort label-1578
SELECT ALL 9 * - COUNT( * ) + 34 + + NULLIF ( + 67, - - COUNT( * ) ) AS col0, 90 AS col1
----
92
90

skipif mysql # not compatible
query II rowsort label-1578
SELECT ALL 9 * - COUNT ( * ) + 34 + + NULLIF ( + 67, - - COUNT ( * ) ) AS col0, 90 AS col1
----
92
90

onlyif mysql # aggregate syntax: 
query I rowsort label-1579
SELECT - 16 - + CASE + 40 WHEN - COUNT( * ) THEN NULL WHEN 40 THEN - 37 * 77 + - 42 ELSE + 92 * + - NULLIF ( - + COUNT( * ), + MIN( 80 ) ) + + ( - 97 ) END
----
2875

skipif mysql # not compatible
query I rowsort label-1579
SELECT - 16 - + CASE + 40 WHEN - COUNT ( * ) THEN NULL WHEN 40 THEN - 37 * 77 + - 42 ELSE + 92 * + - NULLIF ( - + COUNT ( * ), + MIN ( 80 ) ) + + ( - 97 ) END
----
2875

query I rowsort
SELECT + 50 * + 1 + + 3 AS col2
----
53

query I rowsort
SELECT - 29 * + 57 * - 94 AS col0
----
155382

query I rowsort
SELECT + 99 * 91 AS col1
----
9009

query I rowsort
SELECT DISTINCT + ( - + 53 ) * + 13 AS col2
----
-689

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1584
SELECT ALL - + 72 * ( + 90 ) DIV + 71 + NULLIF ( - + 77, + 28 - - 83 ) * - + 41 * - - ( - - 52 ) * 41 + 85 + - COUNT( * )
----
6730717

skipif mysql # not compatible
query I rowsort label-1584
SELECT ALL - + 72 * ( + 90 ) / + 71 + NULLIF ( - + 77, + 28 - - 83 ) * - + 41 * - - ( - - 52 ) * 41 + 85 + - COUNT ( * )
----
6730717

query II rowsort
SELECT - 19 col1, 0 AS col2
----
-19
0

query I rowsort
SELECT ALL + 93 * 51
----
4743

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1587
SELECT + + ( - + 41 ) - CAST( NULL AS SIGNED ) + + - CAST( - - COUNT( ALL + 8 ) AS SIGNED ) * + 81 / - 34 + + MAX( + 89 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1587
SELECT + + ( - + 41 ) - CAST ( NULL AS INTEGER ) + + - CAST ( - - COUNT ( ALL + 8 ) AS INTEGER ) * + 81 / - 34 + + MAX ( + 89 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1588
SELECT - + COUNT( * ) AS col1, - 5 + - 71 DIV COALESCE ( + 1, - - NULLIF ( + 69, + 53 ) ) * + SUM( ALL + + 77 ) - 64 + 5
----
-1
-5531

skipif mysql # not compatible
query II rowsort label-1588
SELECT - + COUNT ( * ) AS col1, - 5 + - 71 / COALESCE ( + 1, - - NULLIF ( + 69, + 53 ) ) * + SUM ( ALL + + 77 ) - 64 + 5
----
-1
-5531

query I rowsort
SELECT ALL - NULLIF ( + + 72, + 4 ) AS col1
----
-72

query I rowsort
SELECT DISTINCT + + 92 * - 91 * - 97 * + + 97 + - 37
----
78772111

onlyif mysql # aggregate syntax: 
query II rowsort label-1591
SELECT ALL + 25 AS col0, COUNT( * ) * + 61 AS col0
----
25
61

skipif mysql # not compatible
query II rowsort label-1591
SELECT ALL + 25 AS col0, COUNT ( * ) * + 61 AS col0
----
25
61

query II rowsort
SELECT - NULLIF ( 55, - 42 ) + - 80 AS col1, 73 AS col2
----
-135
73

query I rowsort
SELECT + 15 - - 80 AS col1
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-1594
SELECT + 29 - - + ( - COUNT( * ) ) * - MIN( DISTINCT 52 )
----
81

skipif mysql # not compatible
query I rowsort label-1594
SELECT + 29 - - + ( - COUNT ( * ) ) * - MIN ( DISTINCT 52 )
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1595
SELECT + 15 + 59 AS col1, + CAST( - 72 AS SIGNED )
----
74
-72

skipif mysql # not compatible
query II rowsort label-1595
SELECT + 15 + 59 AS col1, + CAST ( - 72 AS INTEGER )
----
74
-72

query II rowsort
SELECT + 91 * - - 44, 0 AS col0
----
4004
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1597
SELECT + 9 + - COUNT( * ) + + 31 * MAX( - 27 )
----
-829

skipif mysql # not compatible
query I rowsort label-1597
SELECT + 9 + - COUNT ( * ) + + 31 * MAX ( - 27 )
----
-829

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

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

query I rowsort
SELECT DISTINCT 32 * 54 * 53 AS col2
----
91584

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1601
SELECT + 61 + ( + 44 ) + COUNT( * ) + - + 43 * COUNT( * ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-1601
SELECT + 61 + ( + 44 ) + COUNT ( * ) + - + 43 * COUNT ( * ) AS col2
----
63

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

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

query I rowsort
SELECT + COALESCE ( - - 46, + + 15 ) + + 52
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1604
SELECT + COUNT( ALL + 4 ) * - - COUNT( * ) * + MIN( DISTINCT 1 ) * + + 10 - 57 DIV - + 30
----
11

skipif mysql # not compatible
query I rowsort label-1604
SELECT + COUNT ( ALL + 4 ) * - - COUNT ( * ) * + MIN ( DISTINCT 1 ) * + + 10 - 57 / - + 30
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-1605
SELECT - COUNT( * ) + + 54 + + 35
----
88

skipif mysql # not compatible
query I rowsort label-1605
SELECT - COUNT ( * ) + + 54 + + 35
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-1606
SELECT ALL 59 DIV + 98 + - + 2
----
-2

skipif mysql # not compatible
query I rowsort label-1606
SELECT ALL 59 / + 98 + - + 2
----
-2

query I rowsort
SELECT ALL CASE + 49 WHEN + 54 THEN NULL WHEN - 72 THEN NULL ELSE - - 73 * + + 91 * + - 56 + - 93 * - 43 * - ( + 3 ) * - 27 END + - 2 AS col1
----
-48091

query I rowsort
SELECT DISTINCT - 82 * 2 * 50 AS col2
----
-8200

onlyif mysql # aggregate syntax: 
query I rowsort label-1609
SELECT DISTINCT 60 + - 34 + - COUNT( * ) AS col1
----
25

skipif mysql # not compatible
query I rowsort label-1609
SELECT DISTINCT 60 + - 34 + - COUNT ( * ) AS col1
----
25

query II rowsort
SELECT ALL 21 + + ( - 30 ) - + ( - 17 ) + - ( + 59 ) + + + 67 AS col2, ( + 95 ) AS col0
----
16
95

onlyif mysql # aggregate syntax: 
query I rowsort label-1611
SELECT + - COUNT( * ) * - 21 + 99
----
120

skipif mysql # not compatible
query I rowsort label-1611
SELECT + - COUNT ( * ) * - 21 + 99
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-1612
SELECT NULLIF ( 52, + 54 / 27 + NULLIF ( + - 4, - 1 ) + - + 81 - + 7 + - + 98 ) + + - COALESCE ( - MAX( 83 ), 70 ) AS col0
----
135

skipif mysql # not compatible
query I rowsort label-1612
SELECT NULLIF ( 52, + 54 / 27 + NULLIF ( + - 4, - 1 ) + - + 81 - + 7 + - + 98 ) + + - COALESCE ( - MAX ( 83 ), 70 ) AS col0
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-1613
SELECT ALL - SUM( + 76 ) col1
----
-76

skipif mysql # not compatible
query I rowsort label-1613
SELECT ALL - SUM ( + 76 ) col1
----
-76

query III rowsort
SELECT ALL + 22 * 82, - 93 * + 30 * 51 AS col1, 7 col2
----
1804
-142290
7

query I rowsort
SELECT DISTINCT + 64 * - 14 AS col2
----
-896

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1617
SELECT - 98 * NULLIF ( + CASE MIN( + 68 ) WHEN - 51 THEN NULL WHEN 20 THEN 82 / + 14 + + 64 - COUNT( * ) END, COUNT( * ) * 52 + 59 ) + 84 + + 33 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1617
SELECT - 98 * NULLIF ( + CASE MIN ( + 68 ) WHEN - 51 THEN NULL WHEN 20 THEN 82 / + 14 + + 64 - COUNT ( * ) END, COUNT ( * ) * 52 + 59 ) + 84 + + 33 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1618
SELECT ALL + - 89 - + - MIN( - - 80 ) * - 85 + - 70 + + ( + 79 )
----
-6880

skipif mysql # not compatible
query I rowsort label-1618
SELECT ALL + - 89 - + - MIN ( - - 80 ) * - 85 + - 70 + + ( + 79 )
----
-6880

onlyif mysql # DIV for integer division: 
query I rowsort label-1619
SELECT 7 * 65 DIV 50 AS col2
----
9

skipif mysql # not compatible
query I rowsort label-1619
SELECT 7 * 65 / 50 AS col2
----
9

query I rowsort
SELECT - 77 + - 25 + + 89
----
-13

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1622
SELECT + 99 + - 33 + COUNT( * ) * - 24 DIV + 2
----
54

skipif mysql # not compatible
query I rowsort label-1622
SELECT + 99 + - 33 + COUNT ( * ) * - 24 / + 2
----
54

query II rowsort
SELECT DISTINCT - 48 * - ( - - 95 ) AS col0, 90 + + + 87 + + - 48 + + 64 AS col1
----
4560
193

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1624
SELECT - NULLIF ( - CAST( NULL AS SIGNED ), - COUNT( * ) ) * - 81 * - - 35 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1624
SELECT - NULLIF ( - CAST ( NULL AS INTEGER ), - COUNT ( * ) ) * - 81 * - - 35 AS col1
----
NULL

query I rowsort
SELECT ALL - ( + 65 ) * - 8 * + - 13 AS col2
----
-6760

onlyif mysql # aggregate syntax: 
query I rowsort label-1626
SELECT DISTINCT - 4 * + 84 * + COUNT( * ) AS col0
----
-336

skipif mysql # not compatible
query I rowsort label-1626
SELECT DISTINCT - 4 * + 84 * + COUNT ( * ) AS col0
----
-336

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

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

query I rowsort
SELECT 24 - 61 AS col2
----
-37

query I rowsort
SELECT 63 * 82
----
5166

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

query I rowsort
SELECT ALL 20 + + 47 AS col1
----
67

query II rowsort
SELECT 46 AS col0, - 87 AS col2
----
46
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-1633
SELECT ALL - 96 DIV 42
----
-2

skipif mysql # not compatible
query I rowsort label-1633
SELECT ALL - 96 / 42
----
-2

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

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

query I rowsort
SELECT ALL 66 + + 16 * + - 78
----
-1182

query I rowsort
SELECT 88 * 60 AS col1
----
5280

query I rowsort
SELECT DISTINCT 12 * + 55 AS col0
----
660

query I rowsort
SELECT ALL 71 * + 56 AS col2
----
3976

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1639
SELECT + + 38 DIV - - ( - + 82 ) + - + COUNT( * ) + 81 * - 38 * + 50 col2
----
-153901

skipif mysql # not compatible
query I rowsort label-1639
SELECT + + 38 / - - ( - + 82 ) + - + COUNT ( * ) + 81 * - 38 * + 50 col2
----
-153901

query II rowsort
SELECT DISTINCT - - 33 col2, 24 * - ( + + 95 ) * + 42 AS col2
----
33
-95760

query I rowsort
SELECT 19 + - + 54 AS col2
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1642
SELECT - ( - CAST( + 25 AS SIGNED ) ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-1642
SELECT - ( - CAST ( + 25 AS INTEGER ) ) AS col0
----
25

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

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

query I rowsort
SELECT ALL - 71 * - 22
----
1562

query I rowsort
SELECT - + 37 * 57 + + 56
----
-2053

query I rowsort
SELECT 21 * + ( ( - 48 ) )
----
-1008

query I rowsort
SELECT + 75 * COALESCE ( - 68, 6 + - 66 * + 0 * + 72 ) + 91 col1
----
-5009

query I rowsort
SELECT ALL - 10 * - 41 AS col2
----
410

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1649
SELECT + 14 + CASE + + 34 WHEN ( + + NULLIF ( + 39, - + COUNT( * ) ) ) * - 79 + - 86 + + - CAST( - AVG ( 80 ) AS SIGNED ) THEN NULL WHEN + 46 THEN 71 * - 50 END - - 79
----
NULL

skipif mysql # not compatible
query I rowsort label-1649
SELECT + 14 + CASE + + 34 WHEN ( + + NULLIF ( + 39, - + COUNT ( * ) ) ) * - 79 + - 86 + + - CAST ( - AVG ( 80 ) AS INTEGER ) THEN NULL WHEN + 46 THEN 71 * - 50 END - - 79
----
NULL

query I rowsort
SELECT CASE + + 82 WHEN 24 THEN 7 * - 57 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1651
SELECT 59 AS col1, + COALESCE ( - 77, 68 * - 71 - + ( + 54 ) + - + 2 + 39 + + + CASE 28 WHEN + 32 / - - ( COUNT( 71 ) ) - NULLIF ( + 76, + 35 + + ( CASE CAST( + MAX( + 93 ) AS SIGNED ) WHEN 20 THEN 87 ELSE CAST( - 14 AS SIGNED ) * SUM( ALL + 82 * 63 + - 17 * 47 ) END ) ) THEN NULL ELSE + 81 + ( - 21 + + 34 * - 64 ) * + 58 END )
----
59
-77

skipif mysql # not compatible
query II rowsort label-1651
SELECT 59 AS col1, + COALESCE ( - 77, 68 * - 71 - + ( + 54 ) + - + 2 + 39 + + + CASE 28 WHEN + 32 / - - ( COUNT ( 71 ) ) - NULLIF ( + 76, + 35 + + ( CASE CAST ( + MAX ( + 93 ) AS INTEGER ) WHEN 20 THEN 87 ELSE CAST ( - 14 AS INTEGER ) * SUM ( ALL + 82 * 63 + - 17 * 47 ) END ) ) THEN NULL ELSE + 81 + ( - 21 + + 34 * - 64 ) * + 58 END )
----
59
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-1652
SELECT + 41 * + COUNT( * ) * - - 19 AS col2
----
779

skipif mysql # not compatible
query I rowsort label-1652
SELECT + 41 * + COUNT ( * ) * - - 19 AS col2
----
779

onlyif mysql # aggregate syntax: 
query I rowsort label-1653
SELECT ALL COUNT( * ) * + MIN( + - 89 ) + + + 92 + - ( - 12 )
----
15

skipif mysql # not compatible
query I rowsort label-1653
SELECT ALL COUNT ( * ) * + MIN ( + - 89 ) + + + 92 + - ( - 12 )
----
15

query I rowsort
SELECT DISTINCT - 17 * - 34
----
578

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

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

query I rowsort
SELECT 44 + - 50 + + 57 AS col1
----
51

query II rowsort
SELECT 53 * + 62, 7 AS col0
----
3286
7

query I rowsort
SELECT 24 + - 46
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-1659
SELECT 63 / 8 * + AVG ( - 68 ) * - - CASE - 62 WHEN 35 THEN - 46 * - 51 END / 8 * - 28 + + 9 + - + ( - COUNT( * ) ) + + 7 * SUM( 79 * 28 + NULLIF ( 26, 32 + 78 ) * 38 ) / 99
----
NULL

skipif mysql # not compatible
query I rowsort label-1659
SELECT 63 / 8 * + AVG ( - 68 ) * - - CASE - 62 WHEN 35 THEN - 46 * - 51 END / 8 * - 28 + + 9 + - + ( - COUNT ( * ) ) + + 7 * SUM ( 79 * 28 + NULLIF ( 26, 32 + 78 ) * 38 ) / 99
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1660
SELECT 34 + + 31 AS col0, ( - + CASE 29 WHEN - - 19 * + 36 * - 97 * + 74 THEN + - 39 ELSE - 79 END ) * - 13 * + CAST( + 89 AS SIGNED ) AS col1
----
65
-91403

skipif mysql # not compatible
query II rowsort label-1660
SELECT 34 + + 31 AS col0, ( - + CASE 29 WHEN - - 19 * + 36 * - 97 * + 74 THEN + - 39 ELSE - 79 END ) * - 13 * + CAST ( + 89 AS INTEGER ) AS col1
----
65
-91403

onlyif mysql # aggregate syntax: 
query I rowsort label-1661
SELECT MIN( + - 71 ) - - 44
----
-27

skipif mysql # not compatible
query I rowsort label-1661
SELECT MIN ( + - 71 ) - - 44
----
-27

query I rowsort
SELECT 79 - + 46 AS col0
----
33

query I rowsort
SELECT ALL + 73 + - 31
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1664
SELECT DISTINCT - 82 * - CASE - COUNT( * ) WHEN + + 27 THEN + 63 * - MAX( ALL - 58 ) * 0 / CASE - CAST( + - 93 AS SIGNED ) WHEN 87 * - + 21 THEN - 68 WHEN - 0 THEN - COUNT( * ) ELSE NULL END - 48 * COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1664
SELECT DISTINCT - 82 * - CASE - COUNT ( * ) WHEN + + 27 THEN + 63 * - MAX ( ALL - 58 ) * 0 / CASE - CAST ( + - 93 AS INTEGER ) WHEN 87 * - + 21 THEN - 68 WHEN - 0 THEN - COUNT ( * ) ELSE NULL END - 48 * COUNT ( * ) ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - 1 * 58 * + 97 * 17 * - ( + 61 ) AS col0
----
5834162

query I rowsort
SELECT ALL - 37 + 10 AS col1
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1667
SELECT + NULLIF ( + CASE - 53 WHEN + 84 + CAST( NULL AS SIGNED ) THEN NULL ELSE - 0 - ( - + 59 ) END, - 3 ) + + + 79 + MIN( - 92 )
----
46

skipif mysql # not compatible
query I rowsort label-1667
SELECT + NULLIF ( + CASE - 53 WHEN + 84 + CAST ( NULL AS INTEGER ) THEN NULL ELSE - 0 - ( - + 59 ) END, - 3 ) + + + 79 + MIN ( - 92 )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-1668
SELECT - MAX( ALL + 18 ) * - - 92
----
-1656

skipif mysql # not compatible
query I rowsort label-1668
SELECT - MAX ( ALL + 18 ) * - - 92
----
-1656

onlyif mysql # aggregate syntax: 
query I rowsort label-1669
SELECT + CASE - COUNT( * ) WHEN - - 20 THEN COALESCE ( - 40, - 13 - 27 ) + - ( - 10 ) WHEN + 88 THEN NULL END * - 4 * + - 77 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1669
SELECT + CASE - COUNT ( * ) WHEN - - 20 THEN COALESCE ( - 40, - 13 - 27 ) + - ( - 10 ) WHEN + 88 THEN NULL END * - 4 * + - 77 AS col0
----
NULL

query I rowsort
SELECT NULLIF ( - 73, + 97 )
----
-73

query I rowsort
SELECT NULLIF ( + 56, 55 * 62 ) AS col0
----
56

query I rowsort
SELECT - 96 * - - 94
----
-9024

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1673
SELECT DISTINCT + 22 / - 56 * - + CAST( - 23 AS SIGNED ) - + + 43 + - + 47 * + CASE WHEN + 71 < ( - MIN( ALL + CAST( NULL AS SIGNED ) ) + - 69 + + 14 ) THEN CAST( - 28 AS SIGNED ) - 78 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1673
SELECT DISTINCT + 22 / - 56 * - + CAST ( - 23 AS INTEGER ) - + + 43 + - + 47 * + CASE WHEN + 71 < ( - MIN ( ALL + CAST ( NULL AS INTEGER ) ) + - 69 + + 14 ) THEN CAST ( - 28 AS INTEGER ) - 78 ELSE NULL END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1674
SELECT + 23 DIV - 10 + - 8
----
-10

skipif mysql # not compatible
query I rowsort label-1674
SELECT + 23 / - 10 + - 8
----
-10

query I rowsort
SELECT DISTINCT 67 * + 8 * - - ( + 84 ) col1
----
45024

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1676
SELECT - + CAST( + AVG ( - 41 ) AS SIGNED ) DIV - MIN( DISTINCT - - 12 )
----
-3

skipif mysql # not compatible
query I rowsort label-1676
SELECT - + CAST ( + AVG ( - 41 ) AS INTEGER ) / - MIN ( DISTINCT - - 12 )
----
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-1677
SELECT + + 45 DIV - 3, + 71 * - 17 AS col2
----
-15
-1207

skipif mysql # not compatible
query II rowsort label-1677
SELECT + + 45 / - 3, + 71 * - 17 AS col2
----
-15
-1207

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1678
SELECT ALL + CAST( - 73 AS SIGNED ) AS col2, - 76 AS col1
----
-73
-76

skipif mysql # not compatible
query II rowsort label-1678
SELECT ALL + CAST ( - 73 AS INTEGER ) AS col2, - 76 AS col1
----
-73
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-1679
SELECT + - ( - 6 ) * 30 - + MAX( DISTINCT + 40 ) AS col2
----
140

skipif mysql # not compatible
query I rowsort label-1679
SELECT + - ( - 6 ) * 30 - + MAX ( DISTINCT + 40 ) AS col2
----
140

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1681
SELECT ALL - + 3 * + COUNT( * ) + + SUM( - - 42 ) + 70 + + COUNT( * ) + + - 77 col0, + 9
----
33
9

skipif mysql # not compatible
query II rowsort label-1681
SELECT ALL - + 3 * + COUNT ( * ) + + SUM ( - - 42 ) + 70 + + COUNT ( * ) + + - 77 col0, + 9
----
33
9

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1683
SELECT ALL - + 93 * 1 DIV + + 62 + - + 89 * ( 67 )
----
-5964

skipif mysql # not compatible
query I rowsort label-1683
SELECT ALL - + 93 * 1 / + + 62 + - + 89 * ( 67 )
----
-5964

onlyif mysql # aggregate syntax: 
query I rowsort label-1684
SELECT - - COUNT( ALL ( 32 ) ) * - 32 + + - 51 * - + 33 AS col2
----
1651

skipif mysql # not compatible
query I rowsort label-1684
SELECT - - COUNT ( ALL ( 32 ) ) * - 32 + + - 51 * - + 33 AS col2
----
1651

onlyif mysql # aggregate syntax: 
query I rowsort label-1685
SELECT DISTINCT - 60 * - COUNT( * ) * 93 + - 34 + 41
----
5587

skipif mysql # not compatible
query I rowsort label-1685
SELECT DISTINCT - 60 * - COUNT ( * ) * 93 + - 34 + 41
----
5587

query II rowsort
SELECT - 74 AS col2, NULLIF ( + + 75, 98 * + 81 ) + 93
----
-74
168

onlyif mysql # aggregate syntax: 
query I rowsort label-1687
SELECT - ( - 27 ) + SUM( 56 ) * + - 42 * CASE + COUNT( * ) WHEN - + 57 / + + 67 THEN + 82 END / 86 + - COUNT( * ) * - - 79
----
NULL

skipif mysql # not compatible
query I rowsort label-1687
SELECT - ( - 27 ) + SUM ( 56 ) * + - 42 * CASE + COUNT ( * ) WHEN - + 57 / + + 67 THEN + 82 END / 86 + - COUNT ( * ) * - - 79
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1688
SELECT ALL + 68 + + MAX( DISTINCT + ( 30 ) ) + + 64 + - NULLIF ( + - MAX( DISTINCT + 21 ), - 85 )
----
183

skipif mysql # not compatible
query I rowsort label-1688
SELECT ALL + 68 + + MAX ( DISTINCT + ( 30 ) ) + + 64 + - NULLIF ( + - MAX ( DISTINCT + 21 ), - 85 )
----
183

onlyif mysql # aggregate syntax: 
query II rowsort label-1689
SELECT ALL NULLIF ( - - 97, - 56 ), - COUNT( * ) + + 47 + + - 65 * 0 * - + 61 AS col2
----
97
46

skipif mysql # not compatible
query II rowsort label-1689
SELECT ALL NULLIF ( - - 97, - 56 ), - COUNT ( * ) + + 47 + + - 65 * 0 * - + 61 AS col2
----
97
46

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

query I rowsort
SELECT ALL 8 + + + 95 AS col2
----
103

query I rowsort
SELECT DISTINCT NULLIF ( - 85, + 9 ) AS col0
----
-85

query I rowsort
SELECT DISTINCT 43 + 2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-1694
SELECT - MIN( DISTINCT - 32 ) * COUNT( * ) + - 36 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-1694
SELECT - MIN ( DISTINCT - 32 ) * COUNT ( * ) + - 36 AS col1
----
-4

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

skipif mysql # not compatible
query I rowsort label-1695
SELECT DISTINCT NULLIF ( - - 8, + COUNT ( * ) )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-1696
SELECT + ( + MIN( 62 ) ) - - ( + 88 ) - - + COUNT( * ) * + 96
----
246

skipif mysql # not compatible
query I rowsort label-1696
SELECT + ( + MIN ( 62 ) ) - - ( + 88 ) - - + COUNT ( * ) * + 96
----
246

query I rowsort
SELECT - 66 * - + 28 AS col2
----
1848

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

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

query I rowsort
SELECT - 42 * + 49
----
-2058

onlyif mysql # aggregate syntax: 
query I rowsort label-1700
SELECT ALL CASE - COUNT( * ) WHEN + 17 THEN - CASE - COUNT( 86 ) WHEN COUNT( * ) / - 17 + - - MIN( DISTINCT 55 ) * + 39 THEN COUNT( * ) END / + COUNT( * ) + - 49 + - 93 * 14 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1700
SELECT ALL CASE - COUNT ( * ) WHEN + 17 THEN - CASE - COUNT ( 86 ) WHEN COUNT ( * ) / - 17 + - - MIN ( DISTINCT 55 ) * + 39 THEN COUNT ( * ) END / + COUNT ( * ) + - 49 + - 93 * 14 END AS col2
----
NULL

query I rowsort
SELECT ALL + - 75 * + 33 AS col2
----
-2475

query I rowsort
SELECT - - 65 - + 55 AS col2
----
10

query I rowsort
SELECT - NULLIF ( - 96, 63 ) * - 64 AS col0
----
-6144

onlyif mysql # aggregate syntax: 
query I rowsort label-1704
SELECT ALL + CASE - AVG ( ALL 56 ) WHEN - 4 + + + COUNT( * ) THEN NULL ELSE COUNT( - 66 ) END AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1704
SELECT ALL + CASE - AVG ( ALL 56 ) WHEN - 4 + + + COUNT ( * ) THEN NULL ELSE COUNT ( - 66 ) END AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1705
SELECT - COUNT( ALL + 86 ) * - 66 - - 88 * + COUNT( ALL + 32 ) * + ( 91 ) + + 89 AS col2
----
8163

skipif mysql # not compatible
query I rowsort label-1705
SELECT - COUNT ( ALL + 86 ) * - 66 - - 88 * + COUNT ( ALL + 32 ) * + ( 91 ) + + 89 AS col2
----
8163

query I rowsort
SELECT + - CASE WHEN 73 = NULL THEN 47 ELSE NULL END + 36 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1707
SELECT ALL - - 16 DIV + + 54 * - + 69 * + 48 + - 80 * - 10 * MAX( 50 )
----
40000

skipif mysql # not compatible
query I rowsort label-1707
SELECT ALL - - 16 / + + 54 * - + 69 * + 48 + - 80 * - 10 * MAX ( 50 )
----
40000

query I rowsort
SELECT + - 22 * - + 93 * 47 AS col0
----
96162

onlyif mysql # aggregate syntax: 
query I rowsort label-1709
SELECT DISTINCT - 85 * - 21 * - - 87 + 75 * - 48 * - COUNT( * )
----
158895

skipif mysql # not compatible
query I rowsort label-1709
SELECT DISTINCT - 85 * - 21 * - - 87 + 75 * - 48 * - COUNT ( * )
----
158895

query I rowsort
SELECT ALL + NULLIF ( 63, 44 )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-1711
SELECT + - 89 + - SUM( - 39 ) * - 68 AS col1
----
-2741

skipif mysql # not compatible
query I rowsort label-1711
SELECT + - 89 + - SUM ( - 39 ) * - 68 AS col1
----
-2741

onlyif mysql # aggregate syntax: 
query I rowsort label-1712
SELECT DISTINCT 88 * 77 + + SUM( - 82 ) + - - 93 * - 47 AS col1
----
2323

skipif mysql # not compatible
query I rowsort label-1712
SELECT DISTINCT 88 * 77 + + SUM ( - 82 ) + - - 93 * - 47 AS col1
----
2323

query I rowsort
SELECT DISTINCT 62 * + 5 * + + 11 AS col0
----
3410

query I rowsort
SELECT DISTINCT 67 + - 60 AS col1
----
7

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

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

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

skipif mysql # not compatible
query I rowsort label-1716
SELECT ALL 2 - + 78 * + COUNT ( * ) AS col1
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-1717
SELECT COALESCE ( - COUNT( * ), 86 * + + COUNT( * ) * + 72 ) * + 63
----
-63

skipif mysql # not compatible
query I rowsort label-1717
SELECT COALESCE ( - COUNT ( * ), 86 * + + COUNT ( * ) * + 72 ) * + 63
----
-63

query I rowsort
SELECT ( - + 82 ) + + 40 AS col1
----
-42

query I rowsort
SELECT 4 - 28
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-1720
SELECT ALL COUNT( * ) * - COUNT( * ) * 6 AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-1720
SELECT ALL COUNT ( * ) * - COUNT ( * ) * 6 AS col2
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-1721
SELECT - 54 AS col2, 71 * 19 + CASE - AVG ( ALL + - 97 ) WHEN - COUNT( * ) THEN - - 83 ELSE - - 54 END + - 14 + MAX( ALL + 72 ) - - + 30 * - COUNT( * ) AS col1
----
-54
1431

skipif mysql # not compatible
query II rowsort label-1721
SELECT - 54 AS col2, 71 * 19 + CASE - AVG ( ALL + - 97 ) WHEN - COUNT ( * ) THEN - - 83 ELSE - - 54 END + - 14 + MAX ( ALL + 72 ) - - + 30 * - COUNT ( * ) AS col1
----
-54
1431

onlyif mysql # aggregate syntax: 
query I rowsort label-1722
SELECT 87 * + - COUNT( * ) * 94 AS col1
----
-8178

skipif mysql # not compatible
query I rowsort label-1722
SELECT 87 * + - COUNT ( * ) * 94 AS col1
----
-8178

query II rowsort
SELECT ALL 95 * + 35 AS col0, 73 AS col2
----
3325
73

query I rowsort
SELECT ALL 12 * 97
----
1164

onlyif mysql # aggregate syntax: 
query I rowsort label-1725
SELECT ( 81 ) + - 45 - MIN( + 96 )
----
-60

skipif mysql # not compatible
query I rowsort label-1725
SELECT ( 81 ) + - 45 - MIN ( + 96 )
----
-60

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

query II rowsort
SELECT DISTINCT 93, 11 * + + 6 AS col0
----
93
66

query II rowsort
SELECT DISTINCT - 68 AS col1, 43 AS col2
----
-68
43

onlyif mysql # DIV for integer division: 
query I rowsort label-1729
SELECT ALL - 23 DIV - + 12 + - 12 - - + 96 AS col2
----
85

skipif mysql # not compatible
query I rowsort label-1729
SELECT ALL - 23 / - + 12 + - 12 - - + 96 AS col2
----
85

query I rowsort
SELECT + + 20 col1
----
20

query I rowsort
SELECT DISTINCT + 32 + - 10 + 59 - + ( - ( + 60 ) ) + 37
----
178

query I rowsort
SELECT DISTINCT 73 + + 76
----
149

onlyif mysql # aggregate syntax: 
query II rowsort label-1733
SELECT ALL - + 77 AS col1, - 88 - COUNT( * ) * + SUM( ALL - - 38 ) AS col2
----
-77
-126

skipif mysql # not compatible
query II rowsort label-1733
SELECT ALL - + 77 AS col1, - 88 - COUNT ( * ) * + SUM ( ALL - - 38 ) AS col2
----
-77
-126

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1734
SELECT ALL + CAST( - + 37 AS SIGNED ) * 68 col1
----
-2516

skipif mysql # not compatible
query I rowsort label-1734
SELECT ALL + CAST ( - + 37 AS INTEGER ) * 68 col1
----
-2516

onlyif mysql # aggregate syntax: 
query I rowsort label-1735
SELECT DISTINCT + - 63 + COUNT( * )
----
-62

skipif mysql # not compatible
query I rowsort label-1735
SELECT DISTINCT + - 63 + COUNT ( * )
----
-62

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

query I rowsort
SELECT - 87 * 85 AS col1
----
-7395

onlyif mysql # aggregate syntax: 
query II rowsort label-1738
SELECT + 71 * + - 61 + - + SUM( + + 49 ) AS col0, - 7 AS col1
----
-4380
-7

skipif mysql # not compatible
query II rowsort label-1738
SELECT + 71 * + - 61 + - + SUM ( + + 49 ) AS col0, - 7 AS col1
----
-4380
-7

query I rowsort
SELECT DISTINCT - - 63 + 18
----
81

query I rowsort
SELECT ALL + 41 + + 48
----
89

query I rowsort
SELECT ALL 14 - + 27 * - 58
----
1580

query I rowsort
SELECT 59 + + 44 - 14
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1743
SELECT 72 * + 14 AS col0, COALESCE ( 91, MIN( - + 19 ), - + 21 ) DIV 19
----
1008
4

skipif mysql # not compatible
query II rowsort label-1743
SELECT 72 * + 14 AS col0, COALESCE ( 91, MIN ( - + 19 ), - + 21 ) / 19
----
1008
4

onlyif mysql # DIV for integer division: 
query I rowsort label-1744
SELECT ALL - 51 DIV + - COALESCE ( + + 22, - + 2 * + 9 ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-1744
SELECT ALL - 51 / + - COALESCE ( + + 22, - + 2 * + 9 ) AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1745
SELECT DISTINCT - ( - + COALESCE ( SUM( 83 ), - - 1, - 78 ) )
----
83

skipif mysql # not compatible
query I rowsort label-1745
SELECT DISTINCT - ( - + COALESCE ( SUM ( 83 ), - - 1, - 78 ) )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-1746
SELECT ALL - 42 / + CASE + + ( - COUNT( DISTINCT + 35 ) ) WHEN 87 THEN - - 92 / + COUNT( * ) / + ( - - 14 ) WHEN - COUNT( * ) * + + 65 + + + 17 + COUNT( * ) THEN NULL WHEN - 56 THEN NULL WHEN - + COUNT( * ) THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1746
SELECT ALL - 42 / + CASE + + ( - COUNT ( DISTINCT + 35 ) ) WHEN 87 THEN - - 92 / + COUNT ( * ) / + ( - - 14 ) WHEN - COUNT ( * ) * + + 65 + + + 17 + COUNT ( * ) THEN NULL WHEN - 56 THEN NULL WHEN - + COUNT ( * ) THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1747
SELECT 49 DIV - 93 * 54 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1747
SELECT 49 / - 93 * 54 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1748
SELECT DISTINCT - 24 - - - 42, + 48 * COUNT( * ) AS col2
----
-66
48

skipif mysql # not compatible
query II rowsort label-1748
SELECT DISTINCT - 24 - - - 42, + 48 * COUNT ( * ) AS col2
----
-66
48

onlyif mysql # DIV for integer division: 
query II rowsort label-1749
SELECT 62 DIV 93 AS col0, 50
----
0
50

skipif mysql # not compatible
query II rowsort label-1749
SELECT 62 / 93 AS col0, 50
----
0
50

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1751
SELECT CAST( NULL AS SIGNED ) * 7 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1751
SELECT CAST ( NULL AS INTEGER ) * 7 AS col1
----
NULL

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

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

query I rowsort
SELECT ALL + 79 * + + 77
----
6083

query I rowsort
SELECT 97 * + + 82 * - 22 AS col0
----
-174988

query I rowsort
SELECT ALL 72 + - 66 AS col2
----
6

query I rowsort
SELECT + 42 - - 35 + + ( 62 ) AS col0
----
139

query I rowsort
SELECT ALL + ( 52 ) * + 10 AS col2
----
520

onlyif mysql # aggregate syntax: 
query I rowsort label-1758
SELECT COALESCE ( 22, + ( - - CASE ( + 92 ) WHEN - CASE + 74 WHEN - AVG ( + 93 ) THEN NULL WHEN + + 70 * - 59 * + 94 + + 73 THEN - 24 END THEN - 38 + + + 20 * 5 WHEN 1 THEN COUNT( * ) WHEN - 83 * COUNT( * ) THEN NULL END ) * 16 - + 48 * - 70 ) - - 73
----
95

skipif mysql # not compatible
query I rowsort label-1758
SELECT COALESCE ( 22, + ( - - CASE ( + 92 ) WHEN - CASE + 74 WHEN - AVG ( + 93 ) THEN NULL WHEN + + 70 * - 59 * + 94 + + 73 THEN - 24 END THEN - 38 + + + 20 * 5 WHEN 1 THEN COUNT ( * ) WHEN - 83 * COUNT ( * ) THEN NULL END ) * 16 - + 48 * - 70 ) - - 73
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-1759
SELECT - CASE - 15 WHEN 47 THEN + ( + - 73 ) + + + 61 WHEN SUM( - + 21 ) * + 17 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1759
SELECT - CASE - 15 WHEN 47 THEN + ( + - 73 ) + + + 61 WHEN SUM ( - + 21 ) * + 17 THEN NULL END AS col0
----
NULL

query I rowsort
SELECT + 69 + - 9 * - + 13 AS col2
----
186

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1761
SELECT ALL - 33 + CASE - 60 WHEN - 13 THEN NULL WHEN - CAST( NULL AS DECIMAL ) + + + NULLIF ( + - 81, - 17 ) THEN NULL ELSE - CASE COUNT( * ) WHEN - + 87 THEN NULL WHEN 92 * - 7 + + 77 + CAST( - 27 AS SIGNED ) + + 78 * 11 THEN NULL ELSE + 42 * + 9 END + 33 END
----
-378

skipif mysql # not compatible
query I rowsort label-1761
SELECT ALL - 33 + CASE - 60 WHEN - 13 THEN NULL WHEN - CAST ( NULL AS REAL ) + + + NULLIF ( + - 81, - 17 ) THEN NULL ELSE - CASE COUNT ( * ) WHEN - + 87 THEN NULL WHEN 92 * - 7 + + 77 + CAST ( - 27 AS INTEGER ) + + 78 * 11 THEN NULL ELSE + 42 * + 9 END + 33 END
----
-378

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

skipif mysql # not compatible
query I rowsort label-1762
SELECT ALL - MIN ( 73 )
----
-73

query I rowsort
SELECT + - NULLIF ( - - 13, - 48 ) col2
----
-13

query II rowsort
SELECT DISTINCT + - 41 * + - 79 * - + 71 + - 16 * + 51 + + + 8 + + 93 AS col2, + 29 * + - 59 + 3 AS col0
----
-230684
-1708

query I rowsort
SELECT ALL + - 74 * + 44 * - 74 + - 4 AS col2
----
240940

onlyif mysql # DIV for integer division: 
query I rowsort label-1766
SELECT ALL - 50 DIV - 82 * ( - 82 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1766
SELECT ALL - 50 / - 82 * ( - 82 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1767
SELECT + SUM( DISTINCT + 7 ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-1767
SELECT + SUM ( DISTINCT + 7 ) AS col1
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1768
SELECT ALL + - CAST( + COUNT( * ) AS SIGNED ) * - 55 - - 14
----
69

skipif mysql # not compatible
query I rowsort label-1768
SELECT ALL + - CAST ( + COUNT ( * ) AS INTEGER ) * - 55 - - 14
----
69

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1770
SELECT ALL MIN( + 76 ) * - + 86 * + COUNT( * ) + - - 42 - + 87 - CAST( NULL AS SIGNED ) * + 47
----
NULL

skipif mysql # not compatible
query I rowsort label-1770
SELECT ALL MIN ( + 76 ) * - + 86 * + COUNT ( * ) + - - 42 - + 87 - CAST ( NULL AS INTEGER ) * + 47
----
NULL

query I rowsort
SELECT - 79 * ( + - 3 )
----
237

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1773
SELECT + COUNT( * ) * - 56 * + - 97 + + 74 AS col1, - 41
----
5506
-41

skipif mysql # not compatible
query II rowsort label-1773
SELECT + COUNT ( * ) * - 56 * + - 97 + + 74 AS col1, - 41
----
5506
-41

query I rowsort
SELECT DISTINCT - 64 * - + 71
----
4544

query I rowsort
SELECT ALL - 55 * - 49 AS col2
----
2695

onlyif mysql # aggregate syntax: 
query I rowsort label-1776
SELECT + 43 * 79 * + + CASE NULLIF ( - SUM( DISTINCT COALESCE ( + 70, 4 ) ), - ( + - COUNT( * ) ) * COUNT( * ) + 2 ) WHEN + + 39 + - - NULLIF ( + 93, - 25 + - 84 / + 73 * - 81 ) + + 50 THEN + COUNT( * ) * 70 - + 26 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1776
SELECT + 43 * 79 * + + CASE NULLIF ( - SUM ( DISTINCT COALESCE ( + 70, 4 ) ), - ( + - COUNT ( * ) ) * COUNT ( * ) + 2 ) WHEN + + 39 + - - NULLIF ( + 93, - 25 + - 84 / + 73 * - 81 ) + + 50 THEN + COUNT ( * ) * 70 - + 26 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1777
SELECT + 81 AS col1, 4 + + MIN( DISTINCT 89 ) DIV SUM( ALL - ( - + 85 ) )
----
81
5

skipif mysql # not compatible
query II rowsort label-1777
SELECT + 81 AS col1, 4 + + MIN ( DISTINCT 89 ) / SUM ( ALL - ( - + 85 ) )
----
81
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1778
SELECT COUNT( * ) AS col0, 33 / CASE - CAST( 42 AS SIGNED ) WHEN 29 THEN + 91 END * SUM( + 92 ) + - COUNT( * ) * - - 48 * CAST( 39 AS SIGNED ) * NULLIF ( + - 62, - + ( 69 ) + - CAST( + ( + 93 ) AS DECIMAL ) - 43 / + 58 ) * 39 + + 0 + 98
----
1
NULL

skipif mysql # not compatible
query II rowsort label-1778
SELECT COUNT ( * ) AS col0, 33 / CASE - CAST ( 42 AS INTEGER ) WHEN 29 THEN + 91 END * SUM ( + 92 ) + - COUNT ( * ) * - - 48 * CAST ( 39 AS INTEGER ) * NULLIF ( + - 62, - + ( 69 ) + - CAST ( + ( + 93 ) AS REAL ) - 43 / + 58 ) * 39 + + 0 + 98
----
1
NULL

query I rowsort
SELECT - 2 * + 86 col0
----
-172

onlyif mysql # aggregate syntax: 
query II rowsort label-1780
SELECT COUNT( * ) col0, 94 * - 80
----
1
-7520

skipif mysql # not compatible
query II rowsort label-1780
SELECT COUNT ( * ) col0, 94 * - 80
----
1
-7520

onlyif mysql # aggregate syntax: 
query II rowsort label-1781
SELECT ALL ( + + SUM( - + 95 ) ) col1, + MIN( ALL - 98 ) AS col0
----
-95
-98

skipif mysql # not compatible
query II rowsort label-1781
SELECT ALL ( + + SUM ( - + 95 ) ) col1, + MIN ( ALL - 98 ) AS col0
----
-95
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-1782
SELECT DISTINCT MAX( + 67 ) AS col2
----
67

skipif mysql # not compatible
query I rowsort label-1782
SELECT DISTINCT MAX ( + 67 ) AS col2
----
67

query II rowsort
SELECT DISTINCT NULLIF ( - 88, + 27 ), 41 col0
----
-88
41

query II rowsort
SELECT 11, 67 AS col2
----
11
67

query I rowsort
SELECT - 59 + + 1 + - 9 * - 93 col0
----
779

onlyif mysql # aggregate syntax: 
query I rowsort label-1786
SELECT ALL - COUNT( * ) + - 32 + 47 AS col1
----
14

skipif mysql # not compatible
query I rowsort label-1786
SELECT ALL - COUNT ( * ) + - 32 + 47 AS col1
----
14

query II rowsort
SELECT DISTINCT + 93 * - 61 * 48 AS col0, 87
----
-272304
87

query I rowsort
SELECT - ( - 19 ) + + - 49 + COALESCE ( 17, + 57 )
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-1789
SELECT DISTINCT + SUM( + - 47 ) * - COUNT( * ) col2
----
47

skipif mysql # not compatible
query I rowsort label-1789
SELECT DISTINCT + SUM ( + - 47 ) * - COUNT ( * ) col2
----
47

query I rowsort
SELECT - - 92 + - 85
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-1791
SELECT + - 87 - 57 DIV + + 70 AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-1791
SELECT + - 87 - 57 / + + 70 AS col0
----
-87

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

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

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

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

query I rowsort
SELECT ALL + - 9 + 49
----
40

query I rowsort
SELECT DISTINCT - 54 * 44
----
-2376

onlyif mysql # aggregate syntax: 
query I rowsort label-1796
SELECT ALL NULLIF ( + 92, + + 65 ) + - 78 + - + COUNT( * ) + 55 * + + 89
----
4908

skipif mysql # not compatible
query I rowsort label-1796
SELECT ALL NULLIF ( + 92, + + 65 ) + - 78 + - + COUNT ( * ) + 55 * + + 89
----
4908

query I rowsort
SELECT ALL - + 96 * + + 54 * 62
----
-321408

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1798
SELECT DISTINCT - 4 + + CAST( NULL AS DECIMAL ) + + CAST( 76 AS SIGNED ) * - + 47 * + 31 * - + 7 + + COUNT( DISTINCT - 6 ) / + - 72 * - ( + - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1798
SELECT DISTINCT - 4 + + CAST ( NULL AS REAL ) + + CAST ( 76 AS INTEGER ) * - + 47 * + 31 * - + 7 + + COUNT ( DISTINCT - 6 ) / + - 72 * - ( + - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) )
----
NULL

query II rowsort
SELECT 33 AS col2, - 13 AS col2
----
33
-13

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

query I rowsort
SELECT + - 2 + + 88
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-1802
SELECT MIN( DISTINCT - 37 ) col0
----
-37

skipif mysql # not compatible
query I rowsort label-1802
SELECT MIN ( DISTINCT - 37 ) col0
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1803
SELECT ALL 63, - 24 * COALESCE ( + + 23, - 40 * + 20 * - - ( + 11 ) + CAST( + CASE + 45 WHEN + + NULLIF ( - 87, - + COUNT( * ) + + NULLIF ( 76, - - 50 ) DIV 28 ) * - 38 THEN 46 * - 60 + 14 DIV 80 WHEN 26 * 52 THEN NULL END AS SIGNED ) - - AVG ( DISTINCT 51 + ( + 12 ) * 38 ) DIV 83, + 60 ) + + 9 AS col2
----
63
-543

skipif mysql # not compatible
query II rowsort label-1803
SELECT ALL 63, - 24 * COALESCE ( + + 23, - 40 * + 20 * - - ( + 11 ) + CAST ( + CASE + 45 WHEN + + NULLIF ( - 87, - + COUNT ( * ) + + NULLIF ( 76, - - 50 ) / 28 ) * - 38 THEN 46 * - 60 + 14 / 80 WHEN 26 * 52 THEN NULL END AS INTEGER ) - - AVG ( DISTINCT 51 + ( + 12 ) * 38 ) / 83, + 60 ) + + 9 AS col2
----
63
-543

query I rowsort
SELECT + + 16 * - 48 AS col0
----
-768

onlyif mysql # aggregate syntax: 
query II rowsort label-1805
SELECT + - 10 + - ( + SUM( - - 28 ) ) AS col0, COUNT( * )
----
-38
1

skipif mysql # not compatible
query II rowsort label-1805
SELECT + - 10 + - ( + SUM ( - - 28 ) ) AS col0, COUNT ( * )
----
-38
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1806
SELECT + + COUNT( - ( - - 51 ) )
----
1

skipif mysql # not compatible
query I rowsort label-1806
SELECT + + COUNT ( - ( - - 51 ) )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1807
SELECT ALL - 78 DIV + 35 - - - 39
----
-41

skipif mysql # not compatible
query I rowsort label-1807
SELECT ALL - 78 / + 35 - - - 39
----
-41

query I rowsort
SELECT + 6 * - + 96
----
-576

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

query I rowsort
SELECT + 73 + 14
----
87

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1812
SELECT + 81 * + ( ( - SUM( - 61 ) ) ) + - - 69
----
5010

skipif mysql # not compatible
query I rowsort label-1812
SELECT + 81 * + ( ( - SUM ( - 61 ) ) ) + - - 69
----
5010

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1813
SELECT + ( - CASE + + 32 WHEN + + 39 + + - CAST( NULL AS SIGNED ) THEN NULLIF ( COALESCE ( - 13, 11 * + CASE - - 33 WHEN 35 THEN 34 * - 86 END ), - 57 + - 34 ) ELSE NULL END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1813
SELECT + ( - CASE + + 32 WHEN + + 39 + + - CAST ( NULL AS INTEGER ) THEN NULLIF ( COALESCE ( - 13, 11 * + CASE - - 33 WHEN 35 THEN 34 * - 86 END ), - 57 + - 34 ) ELSE NULL END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1814
SELECT + 20 * - NULLIF ( + - COALESCE ( 79, - 3 * + 81 ), 20 + - COUNT( * ) ) * - + 32, 38 AS col1
----
-50560
38

skipif mysql # not compatible
query II rowsort label-1814
SELECT + 20 * - NULLIF ( + - COALESCE ( 79, - 3 * + 81 ), 20 + - COUNT ( * ) ) * - + 32, 38 AS col1
----
-50560
38

query I rowsort
SELECT - 26 * + 61 AS col0
----
-1586

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1816
SELECT DISTINCT COUNT( ALL - - 66 ) DIV - + 46 col1
----
0

skipif mysql # not compatible
query I rowsort label-1816
SELECT DISTINCT COUNT ( ALL - - 66 ) / - + 46 col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1817
SELECT + ( + - ( - 15 ) ) * - SUM( - 1 ) - - - 80 - + 88 AS col1, + ( + 93 )
----
-153
93

skipif mysql # not compatible
query II rowsort label-1817
SELECT + ( + - ( - 15 ) ) * - SUM ( - 1 ) - - - 80 - + 88 AS col1, + ( + 93 )
----
-153
93

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1818
SELECT ALL + 79 * CAST( NULL AS DECIMAL ) col0
----
NULL

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1820
SELECT 79 * + 5 + CASE - 98 WHEN - + COALESCE ( + ( 59 ), + + COUNT( * ) ) * - ( - 33 ) THEN + 27 WHEN + 77 THEN ( + 31 ) ELSE + - 98 + + 21 * - 34 - ( COUNT( * ) ) DIV + COALESCE ( + 61, 3, - 92 + - COUNT( * ) ) END AS col1
----
-417

skipif mysql # not compatible
query I rowsort label-1820
SELECT 79 * + 5 + CASE - 98 WHEN - + COALESCE ( + ( 59 ), + + COUNT ( * ) ) * - ( - 33 ) THEN + 27 WHEN + 77 THEN ( + 31 ) ELSE + - 98 + + 21 * - 34 - ( COUNT ( * ) ) / + COALESCE ( + 61, 3, - 92 + - COUNT ( * ) ) END AS col1
----
-417

query I rowsort
SELECT COALESCE ( 88, - 8 )
----
88

query I rowsort
SELECT DISTINCT 11 * - 39 + - 10 AS col0
----
-439

onlyif mysql # aggregate syntax: 
query I rowsort label-1823
SELECT NULLIF ( - COUNT( ALL + - 87 ), 71 )
----
-1

skipif mysql # not compatible
query I rowsort label-1823
SELECT NULLIF ( - COUNT ( ALL + - 87 ), 71 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1824
SELECT ALL 86 * - + 34 + + 57 * + 33 + + 9 DIV + - 96 * - + 83 * - 15 * - 65 col2
----
-1043

skipif mysql # not compatible
query I rowsort label-1824
SELECT ALL 86 * - + 34 + + 57 * + 33 + + 9 / + - 96 * - + 83 * - 15 * - 65 col2
----
-1043

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1825
SELECT CASE + COUNT( * ) WHEN - 99 THEN + 63 + 24 + - MIN( - 2 ) * - COUNT( * ) * + 45 / + COUNT( * ) + 67 - + 85 ELSE + CAST( NULL AS DECIMAL ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1825
SELECT CASE + COUNT ( * ) WHEN - 99 THEN + 63 + 24 + - MIN ( - 2 ) * - COUNT ( * ) * + 45 / + COUNT ( * ) + 67 - + 85 ELSE + CAST ( NULL AS REAL ) END
----
NULL

query I rowsort
SELECT DISTINCT + NULLIF ( - - 21, NULLIF ( - 47, + - 70 ) * + 90 ) * - 36 * - 14
----
10584

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1827
SELECT - 53 + + + 82 - + - ( - - 50 ), - CAST( NULL AS SIGNED ) * - 68 col1
----
79
NULL

skipif mysql # not compatible
query II rowsort label-1827
SELECT - 53 + + + 82 - + - ( - - 50 ), - CAST ( NULL AS INTEGER ) * - 68 col1
----
79
NULL

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

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

query I rowsort
SELECT - 30 + 37
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1830
SELECT ALL - - COUNT( * ) * + + COUNT( * ) + CASE + + 42 WHEN + + 10 THEN - SUM( + 59 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1830
SELECT ALL - - COUNT ( * ) * + + COUNT ( * ) + CASE + + 42 WHEN + + 10 THEN - SUM ( + 59 ) ELSE NULL END
----
NULL

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

query I rowsort
SELECT - - 55 * + + 74 * + + 19 AS col1
----
77330

query I rowsort
SELECT DISTINCT + 44 * + 17 AS col2
----
748

query I rowsort
SELECT DISTINCT + + 32 + - 40 * - 46
----
1872

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1835
SELECT - - CAST( NULL AS DECIMAL ) / - 16
----
NULL

skipif mysql # not compatible
query I rowsort label-1835
SELECT - - CAST ( NULL AS REAL ) / - 16
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1836
SELECT ALL + 0 - - MIN( - 83 ) col2
----
-83

skipif mysql # not compatible
query I rowsort label-1836
SELECT ALL + 0 - - MIN ( - 83 ) col2
----
-83

query I rowsort
SELECT - - 95 * + + 64 * - ( + 25 )
----
-152000

query II rowsort
SELECT - 96 * + - 7, 96 col1
----
672
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1839
SELECT DISTINCT + + CASE + 69 WHEN - 22 THEN 66 END * + NULLIF ( - - COUNT( * ), - + 14 * - + 56 ) - + 89 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1839
SELECT DISTINCT + + CASE + 69 WHEN - 22 THEN 66 END * + NULLIF ( - - COUNT ( * ), - + 14 * - + 56 ) - + 89 AS col0
----
NULL

query I rowsort
SELECT - 40 - - + 36 col1
----
-4

query I rowsort
SELECT ALL - 9 * - - 67 + 19 AS col1
----
-584

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1843
SELECT - MIN( DISTINCT 21 ) + + - ( - 33 ) * - 14
----
-483

skipif mysql # not compatible
query I rowsort label-1843
SELECT - MIN ( DISTINCT 21 ) + + - ( - 33 ) * - 14
----
-483

onlyif mysql # aggregate syntax: 
query I rowsort label-1844
SELECT ALL 7 - - + 84 * MIN( - ( 62 ) ) AS col2
----
-5201

skipif mysql # not compatible
query I rowsort label-1844
SELECT ALL 7 - - + 84 * MIN ( - ( 62 ) ) AS col2
----
-5201

onlyif mysql # aggregate syntax: 
query I rowsort label-1845
SELECT 51 * + + 62 + - MIN( - 76 ) + 18
----
3256

skipif mysql # not compatible
query I rowsort label-1845
SELECT 51 * + + 62 + - MIN ( - 76 ) + 18
----
3256

onlyif mysql # aggregate syntax: 
query I rowsort label-1846
SELECT DISTINCT + COUNT( * ) * 58 * + 26 col2
----
1508

skipif mysql # not compatible
query I rowsort label-1846
SELECT DISTINCT + COUNT ( * ) * 58 * + 26 col2
----
1508

onlyif mysql # DIV for integer division: 
query I rowsort label-1847
SELECT + 10 DIV + - 33 - + 72
----
-72

skipif mysql # not compatible
query I rowsort label-1847
SELECT + 10 / + - 33 - + 72
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-1848
SELECT 82 + + + SUM( - 32 )
----
50

skipif mysql # not compatible
query I rowsort label-1848
SELECT 82 + + + SUM ( - 32 )
----
50

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

query II rowsort
SELECT ALL - 23 AS col0, - 64 AS col1
----
-23
-64

query I rowsort
SELECT + 2 * - + 73 + + 84 AS col2
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-1852
SELECT MAX( ALL - ( - - 61 ) ) * 97 AS col1
----
-5917

skipif mysql # not compatible
query I rowsort label-1852
SELECT MAX ( ALL - ( - - 61 ) ) * 97 AS col1
----
-5917

query I rowsort
SELECT 72 + 75
----
147

query I rowsort
SELECT DISTINCT - ( - 99 )
----
99

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

skipif mysql # not compatible
query I rowsort label-1855
SELECT ALL COUNT ( 6 ) * + 33 AS col1
----
33

query I rowsort
SELECT ALL + 20 + + 65 AS col2
----
85

query I rowsort
SELECT DISTINCT 55 + + 89 AS col1
----
144

query I rowsort
SELECT ALL 78 + + + 75 + - + 50
----
103

query I rowsort
SELECT ALL 90 + + 91 - 80
----
101

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1860
SELECT CAST( NULL AS SIGNED ) / 92 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1860
SELECT CAST ( NULL AS INTEGER ) / 92 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1861
SELECT ALL 42 + + + CAST( - 85 AS SIGNED ) col1
----
-43

skipif mysql # not compatible
query I rowsort label-1861
SELECT ALL 42 + + + CAST ( - 85 AS INTEGER ) col1
----
-43

query I rowsort
SELECT 96 * + 14
----
1344

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1863
SELECT ALL 18 DIV - CAST( + + 10 AS SIGNED ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1863
SELECT ALL 18 / - CAST ( + + 10 AS INTEGER ) AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1864
SELECT 21 * 34 + - 98 * CASE + 91 WHEN - CAST( NULL AS SIGNED ) - 70 THEN 58 + - 15 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1864
SELECT 21 * 34 + - 98 * CASE + 91 WHEN - CAST ( NULL AS INTEGER ) - 70 THEN 58 + - 15 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1865
SELECT ALL 36 + - + COUNT( * )
----
35

skipif mysql # not compatible
query I rowsort label-1865
SELECT ALL 36 + - + COUNT ( * )
----
35

query II rowsort
SELECT DISTINCT - 45, 53 AS col0
----
-45
53

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1868
SELECT - - CASE + 95 WHEN + + CAST( - 20 AS SIGNED ) THEN NULL WHEN - 64 THEN + + 35 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1868
SELECT - - CASE + 95 WHEN + + CAST ( - 20 AS INTEGER ) THEN NULL WHEN - 64 THEN + + 35 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1869
SELECT ALL + ( CASE - 46 WHEN 95 THEN NULL WHEN MIN( 41 ) + 44 THEN NULL WHEN - 74 THEN NULL WHEN - COUNT( * ) THEN + COUNT( + 67 ) END ) * + - 89 * + + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1869
SELECT ALL + ( CASE - 46 WHEN 95 THEN NULL WHEN MIN ( 41 ) + 44 THEN NULL WHEN - 74 THEN NULL WHEN - COUNT ( * ) THEN + COUNT ( + 67 ) END ) * + - 89 * + + COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT ALL 28 - - + 1 AS col0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-1871
SELECT - 85 + - - COUNT( * ) * 38
----
-47

skipif mysql # not compatible
query I rowsort label-1871
SELECT - 85 + - - COUNT ( * ) * 38
----
-47

query I rowsort
SELECT 96 + 81 col2
----
177

query I rowsort
SELECT - 94 * 41 AS col0
----
-3854

query I rowsort
SELECT 86 - - 60
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-1875
SELECT ALL NULLIF ( 91, - 31 * - 34 * - - COUNT( * ) + 10 )
----
91

skipif mysql # not compatible
query I rowsort label-1875
SELECT ALL NULLIF ( 91, - 31 * - 34 * - - COUNT ( * ) + 10 )
----
91

query I rowsort
SELECT - + 89 col2
----
-89

query I rowsort
SELECT + 61 * - 1 col2
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-1878
SELECT ALL CASE - - 34 WHEN + COUNT( - 82 ) THEN + 96 WHEN - 0 * 54 + SUM( - ( - 16 ) ) + 45 THEN NULL WHEN - 22 + - 5 * - 76 THEN - 37 + - - 17 - - + 87 * - - ( + - COALESCE ( + 58, - 75 * 83, 15 * + 10 ) ) * COUNT( * ) + 31 * - 97 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1878
SELECT ALL CASE - - 34 WHEN + COUNT ( - 82 ) THEN + 96 WHEN - 0 * 54 + SUM ( - ( - 16 ) ) + 45 THEN NULL WHEN - 22 + - 5 * - 76 THEN - 37 + - - 17 - - + 87 * - - ( + - COALESCE ( + 58, - 75 * 83, 15 * + 10 ) ) * COUNT ( * ) + 31 * - 97 END AS col1
----
NULL

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

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

query I rowsort
SELECT ALL - + 79 * - 78
----
6162

onlyif mysql # aggregate syntax: 
query II rowsort label-1881
SELECT ALL - 55 AS col1, - MAX( ALL - 3 ) / MIN( ALL + 53 ) * + CASE - - 47 WHEN - + 13 THEN AVG ( ALL - NULLIF ( 1, + + NULLIF ( - 69, 37 + 95 + - 77 ) ) ) ELSE NULL END * - 92 - 65 + - 51 * - 61 * 37 - COUNT( * ) col1
----
-55
NULL

skipif mysql # not compatible
query II rowsort label-1881
SELECT ALL - 55 AS col1, - MAX ( ALL - 3 ) / MIN ( ALL + 53 ) * + CASE - - 47 WHEN - + 13 THEN AVG ( ALL - NULLIF ( 1, + + NULLIF ( - 69, 37 + 95 + - 77 ) ) ) ELSE NULL END * - 92 - 65 + - 51 * - 61 * 37 - COUNT ( * ) col1
----
-55
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1882
SELECT - 27 / + 33 + - + 73 + - + 50 * + CASE + 73 WHEN 21 THEN - + 29 ELSE NULL END * - ( - + 97 ) + + 9 - + 41 * + 52 + - COUNT( * ) * - COUNT( * ) * ( - 47 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1882
SELECT - 27 / + 33 + - + 73 + - + 50 * + CASE + 73 WHEN 21 THEN - + 29 ELSE NULL END * - ( - + 97 ) + + 9 - + 41 * + 52 + - COUNT ( * ) * - COUNT ( * ) * ( - 47 ) col0
----
NULL

query I rowsort
SELECT - 97 * - 20
----
1940

query I rowsort
SELECT + 1 + 3 - 9 + + 78 * + 18 * - 65
----
-91265

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

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

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

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

query I rowsort
SELECT ALL - - ( 58 ) * - 18 AS col2
----
-1044

query I rowsort
SELECT 68 + - 25
----
43

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1890
SELECT ALL + 24 * + + COUNT( * ) * - - 82 * - 21
----
-41328

skipif mysql # not compatible
query I rowsort label-1890
SELECT ALL + 24 * + + COUNT ( * ) * - - 82 * - 21
----
-41328

onlyif mysql # aggregate syntax: 
query I rowsort label-1891
SELECT 78 * + COUNT( * ) * + + ( 40 ) AS col2
----
3120

skipif mysql # not compatible
query I rowsort label-1891
SELECT 78 * + COUNT ( * ) * + + ( 40 ) AS col2
----
3120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1892
SELECT ALL 85 * MIN( - 95 ) * + - CAST( - COALESCE ( - CAST( NULL AS SIGNED ), - MIN( + 53 ), + - CAST( NULL AS SIGNED ) - - 99 ) AS SIGNED ) * MIN( ALL + + 98 ) + + - COUNT( * ) + + 5 + - 86
----
41941468

skipif mysql # not compatible
query I rowsort label-1892
SELECT ALL 85 * MIN ( - 95 ) * + - CAST ( - COALESCE ( - CAST ( NULL AS INTEGER ), - MIN ( + 53 ), + - CAST ( NULL AS INTEGER ) - - 99 ) AS INTEGER ) * MIN ( ALL + + 98 ) + + - COUNT ( * ) + + 5 + - 86
----
41941468

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1893
SELECT ALL CAST( 55 AS SIGNED ) * - 11 + 32 col2, MIN( ALL + 29 )
----
-573
29

skipif mysql # not compatible
query II rowsort label-1893
SELECT ALL CAST ( 55 AS INTEGER ) * - 11 + 32 col2, MIN ( ALL + 29 )
----
-573
29

onlyif mysql # aggregate syntax: 
query I rowsort label-1894
SELECT ALL - 67 * - COUNT( * ) * + + 9 + + - 75 + - + COUNT( * ) + + 91
----
618

skipif mysql # not compatible
query I rowsort label-1894
SELECT ALL - 67 * - COUNT ( * ) * + + 9 + + - 75 + - + COUNT ( * ) + + 91
----
618

query I rowsort
SELECT DISTINCT 29 * + 43 + - - 25
----
1272

query I rowsort
SELECT ALL + 17 * ( - 29 ) * - 58 + + + 16 AS col1
----
28610

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

skipif mysql # not compatible
query I rowsort label-1897
SELECT DISTINCT + COUNT ( * ) + 96 AS col0
----
97

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1899
SELECT MIN( DISTINCT - - 82 ) * + 41 AS col1
----
3362

skipif mysql # not compatible
query I rowsort label-1899
SELECT MIN ( DISTINCT - - 82 ) * + 41 AS col1
----
3362

onlyif mysql # DIV for integer division: 
query II rowsort label-1900
SELECT 96 - 52 + + 69 DIV + 30 AS col0, 21 AS col2
----
46
21

skipif mysql # not compatible
query II rowsort label-1900
SELECT 96 - 52 + + 69 / + 30 AS col0, 21 AS col2
----
46
21

query I rowsort
SELECT DISTINCT ( 1 ) + - 31 + - - 50
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-1902
SELECT DISTINCT COUNT( * ) + + 55 AS col1
----
56

skipif mysql # not compatible
query I rowsort label-1902
SELECT DISTINCT COUNT ( * ) + + 55 AS col1
----
56

query I rowsort
SELECT ALL 95 * + 49
----
4655

query I rowsort
SELECT ALL - 89 + + 9 * + 1
----
-80

query II rowsort
SELECT ALL - 86 col2, + 26 AS col0
----
-86
26

query II rowsort
SELECT ALL - 93 AS col0, 9 + - 39 AS col2
----
-93
-30

onlyif mysql # DIV for integer division: 
query II rowsort label-1907
SELECT ALL - 42 AS col1, 26 DIV + - 39 AS col2
----
-42
0

skipif mysql # not compatible
query II rowsort label-1907
SELECT ALL - 42 AS col1, 26 / + - 39 AS col2
----
-42
0

query II rowsort
SELECT + + 86, 77 AS col0
----
86
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1909
SELECT ALL COUNT( * ) - COUNT( * ) + 53 + 30 DIV 68
----
53

skipif mysql # not compatible
query I rowsort label-1909
SELECT ALL COUNT ( * ) - COUNT ( * ) + 53 + 30 / 68
----
53

query II rowsort
SELECT ALL - - 16 AS col2, 80 * - + ( - 37 ) AS col2
----
16
2960

onlyif mysql # aggregate syntax: 
query II rowsort label-1911
SELECT + 25 col0, 8 * + COUNT( * ) + + 78 AS col1
----
25
86

skipif mysql # not compatible
query II rowsort label-1911
SELECT + 25 col0, 8 * + COUNT ( * ) + + 78 AS col1
----
25
86

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

skipif mysql # not compatible
query II rowsort label-1912
SELECT + + COUNT ( * ) col1, 81
----
1
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1913
SELECT - 0 * - MAX( DISTINCT + 27 ) * - 9 AS col1, - COUNT( * ) DIV 79 + + + 41
----
0
41

skipif mysql # not compatible
query II rowsort label-1913
SELECT - 0 * - MAX ( DISTINCT + 27 ) * - 9 AS col1, - COUNT ( * ) / 79 + + + 41
----
0
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1914
SELECT + - 73 DIV + COUNT( ALL - 61 ) AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-1914
SELECT + - 73 / + COUNT ( ALL - 61 ) AS col1
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-1915
SELECT DISTINCT CASE + 45 WHEN - 85 THEN 48 WHEN + - NULLIF ( 62, COUNT( * ) ) / - - 12 * 56 * + 20 * - 70 * 33 THEN NULL END / CASE - CASE - 81 WHEN + 20 * + + 15 THEN NULL WHEN - 61 / + 75 THEN + CASE - 51 WHEN ( 63 ) - COUNT( * ) THEN + 49 WHEN + 56 THEN 26 ELSE NULL END END WHEN 40 THEN 35 * 41 WHEN + MIN( ALL - 58 ) * + 71 THEN - COUNT( * ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1915
SELECT DISTINCT CASE + 45 WHEN - 85 THEN 48 WHEN + - NULLIF ( 62, COUNT ( * ) ) / - - 12 * 56 * + 20 * - 70 * 33 THEN NULL END / CASE - CASE - 81 WHEN + 20 * + + 15 THEN NULL WHEN - 61 / + 75 THEN + CASE - 51 WHEN ( 63 ) - COUNT ( * ) THEN + 49 WHEN + 56 THEN 26 ELSE NULL END END WHEN 40 THEN 35 * 41 WHEN + MIN ( ALL - 58 ) * + 71 THEN - COUNT ( * ) ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1916
SELECT ALL + 34 DIV + ( + COALESCE ( + 11, - - ( 98 ) * - ( - 34 ) DIV + 15 * + - 94 - COALESCE ( COUNT( + - 75 ), - 78 DIV + 74 DIV - COALESCE ( 6, + ( - + 44 ) ) ) + + ( - 3 ) ) ) + 88
----
91

skipif mysql # not compatible
query I rowsort label-1916
SELECT ALL + 34 / + ( + COALESCE ( + 11, - - ( 98 ) * - ( - 34 ) / + 15 * + - 94 - COALESCE ( COUNT ( + - 75 ), - 78 / + 74 / - COALESCE ( 6, + ( - + 44 ) ) ) + + ( - 3 ) ) ) + 88
----
91

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1918
SELECT - - NULLIF ( + 36, + - COUNT( * ) + COUNT( * ) + 46 ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-1918
SELECT - - NULLIF ( + 36, + - COUNT ( * ) + COUNT ( * ) + 46 ) AS col2
----
36

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

query II rowsort
SELECT DISTINCT 88 AS col2, 35
----
88
35

query II rowsort
SELECT ALL + 37, + 45 AS col2
----
37
45

onlyif mysql # aggregate syntax: 
query I rowsort label-1922
SELECT DISTINCT + 10 * + 80 * COUNT( * )
----
800

skipif mysql # not compatible
query I rowsort label-1922
SELECT DISTINCT + 10 * + 80 * COUNT ( * )
----
800

onlyif mysql # DIV for integer division: 
query II rowsort label-1923
SELECT - 94, - 63 DIV + 70 AS col2
----
-94
0

skipif mysql # not compatible
query II rowsort label-1923
SELECT - 94, - 63 / + 70 AS col2
----
-94
0

query I rowsort
SELECT ALL - 65 * - 47
----
3055

onlyif mysql # aggregate syntax: 
query I rowsort label-1925
SELECT ALL 69 + - COUNT( ( - + 57 ) ) + - + 83 AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-1925
SELECT ALL 69 + - COUNT ( ( - + 57 ) ) + - + 83 AS col1
----
-15

query I rowsort
SELECT + + 2 + + 28 col0
----
30

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1929
SELECT DISTINCT + COUNT( * ) + - NULLIF ( - 47, - COUNT( * ) ) + SUM( + 55 ) + 47
----
150

skipif mysql # not compatible
query I rowsort label-1929
SELECT DISTINCT + COUNT ( * ) + - NULLIF ( - 47, - COUNT ( * ) ) + SUM ( + 55 ) + 47
----
150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1930
SELECT + CASE COALESCE ( + + 27, + ( - 60 ) + 48 ) WHEN + 32 THEN - 57 * CAST( + NULLIF ( - 53, + COUNT( * ) ) AS SIGNED ) * COUNT( * ) + + + 23 + 71 END + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1930
SELECT + CASE COALESCE ( + + 27, + ( - 60 ) + 48 ) WHEN + 32 THEN - 57 * CAST ( + NULLIF ( - 53, + COUNT ( * ) ) AS INTEGER ) * COUNT ( * ) + + + 23 + 71 END + COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT COALESCE ( + ( + 52 ), 80, 51 + + + 32 + ( + + 81 ) * + 36 )
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-1932
SELECT ALL + 20 + - - 97 AS col0, MIN( DISTINCT + + 13 ) * - - 85 AS col1
----
117
1105

skipif mysql # not compatible
query II rowsort label-1932
SELECT ALL + 20 + - - 97 AS col0, MIN ( DISTINCT + + 13 ) * - - 85 AS col1
----
117
1105

onlyif mysql # DIV for integer division: 
query III rowsort label-1933
SELECT DISTINCT - 75 DIV - 82, + COALESCE ( + 87, - 9 ) AS col0, + 71 col1
----
0
87
71

skipif mysql # not compatible
query III rowsort label-1933
SELECT DISTINCT - 75 / - 82, + COALESCE ( + 87, - 9 ) AS col0, + 71 col1
----
0
87
71

query I rowsort
SELECT ALL 68 * - 51 + + + 1
----
-3467

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1936
SELECT ALL - 57 * + 99 * - 36, CAST( NULL AS SIGNED ) AS col0
----
203148
NULL

skipif mysql # not compatible
query II rowsort label-1936
SELECT ALL - 57 * + 99 * - 36, CAST ( NULL AS INTEGER ) AS col0
----
203148
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1937
SELECT - COUNT( * ) DIV - 87 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1937
SELECT - COUNT ( * ) / - 87 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1938
SELECT + 55 DIV + CAST( - 53 AS SIGNED ) + - 0 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1938
SELECT + 55 / + CAST ( - 53 AS INTEGER ) + - 0 AS col0
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1939
SELECT ALL - CAST( NULL AS DECIMAL ) * - 48
----
NULL

skipif mysql # not compatible
query I rowsort label-1939
SELECT ALL - CAST ( NULL AS REAL ) * - 48
----
NULL

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

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

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

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

query I rowsort
SELECT COALESCE ( - 41, - 35 ) AS col0
----
-41

query I rowsort
SELECT 3 * + 19 + + - 3 AS col0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-1944
SELECT + CASE + 34 WHEN + COALESCE ( + COUNT( * ), 33 * + 52, - MAX( 40 ) * + 65 + 8 * - 88 * - + 71 * 9 ) THEN + 8 ELSE + 46 END
----
46

skipif mysql # not compatible
query I rowsort label-1944
SELECT + CASE + 34 WHEN + COALESCE ( + COUNT ( * ), 33 * + 52, - MAX ( 40 ) * + 65 + 8 * - 88 * - + 71 * 9 ) THEN + 8 ELSE + 46 END
----
46

query I rowsort
SELECT - - ( + - 85 ) + - 10
----
-95

query I rowsort
SELECT ALL + + NULLIF ( + 29, 80 ) AS col1
----
29

query I rowsort
SELECT + + ( + - 73 ) * - 93 * + + 57
----
386973

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

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

query II rowsort
SELECT - 91 * + - 52 + + 91 AS col2, 40 AS col1
----
4823
40

query I rowsort
SELECT + 43 + - + 48 * - 62
----
3019

query I rowsort
SELECT ALL - - 70 * - ( - - 71 ) AS col2
----
-4970

onlyif mysql # aggregate syntax: 
query I rowsort label-1952
SELECT DISTINCT 30 * SUM( ALL 41 )
----
1230

skipif mysql # not compatible
query I rowsort label-1952
SELECT DISTINCT 30 * SUM ( ALL 41 )
----
1230

onlyif mysql # aggregate syntax: 
query I rowsort label-1953
SELECT + + ( + SUM( - + 29 ) ) + - 46
----
-75

skipif mysql # not compatible
query I rowsort label-1953
SELECT + + ( + SUM ( - + 29 ) ) + - 46
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1954
SELECT ALL + 11 + 1 col2, - CAST( NULL AS SIGNED ) * + 79 * ( + AVG ( DISTINCT + - 64 ) ) * + - SUM( ALL - 81 ) * + 91 col2
----
12
NULL

skipif mysql # not compatible
query II rowsort label-1954
SELECT ALL + 11 + 1 col2, - CAST ( NULL AS INTEGER ) * + 79 * ( + AVG ( DISTINCT + - 64 ) ) * + - SUM ( ALL - 81 ) * + 91 col2
----
12
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1955
SELECT ALL - NULLIF ( 31, + + 85 * - 94 ) + - - 55 DIV - 76 AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-1955
SELECT ALL - NULLIF ( 31, + + 85 * - 94 ) + - - 55 / - 76 AS col2
----
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-1956
SELECT - - 31 + + ( + 49 ) DIV - 82 * + 23 col1
----
31

skipif mysql # not compatible
query I rowsort label-1956
SELECT - - 31 + + ( + 49 ) / - 82 * + 23 col1
----
31

query II rowsort
SELECT - ( 90 ) AS col0, 87 + - - 95 AS col0
----
-90
182

query I rowsort
SELECT + + 56 * - 41 col2
----
-2296

query I rowsort
SELECT ALL 19 + - - 32 AS col0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1960
SELECT DISTINCT 3 + + CASE + - 78 WHEN + 90 THEN 96 + COUNT( * ) + + 50 * - - ( 64 ) WHEN 67 * - ( - 64 ) / 26 THEN NULL END + - + COALESCE ( - COUNT( * ), + MIN( + 15 ) * 6, AVG ( 38 ) * + 72 ) * + 43 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1960
SELECT DISTINCT 3 + + CASE + - 78 WHEN + 90 THEN 96 + COUNT ( * ) + + 50 * - - ( 64 ) WHEN 67 * - ( - 64 ) / 26 THEN NULL END + - + COALESCE ( - COUNT ( * ), + MIN ( + 15 ) * 6, AVG ( 38 ) * + 72 ) * + 43 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1961
SELECT + ( + + COALESCE ( - CASE + COUNT( * ) WHEN - COUNT( * ) * ( - 76 ) THEN - + MIN( - - CAST( NULL AS SIGNED ) ) END, - 75 ) ) + + MIN( - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1961
SELECT + ( + + COALESCE ( - CASE + COUNT ( * ) WHEN - COUNT ( * ) * ( - 76 ) THEN - + MIN ( - - CAST ( NULL AS INTEGER ) ) END, - 75 ) ) + + MIN ( - CAST ( NULL AS REAL ) )
----
NULL

query I rowsort
SELECT + 43 + - 52
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1963
SELECT - COALESCE ( - MIN( - 4 ), MIN( ALL + 22 ) DIV - 47 ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-1963
SELECT - COALESCE ( - MIN ( - 4 ), MIN ( ALL + 22 ) / - 47 ) AS col2
----
-4

query I rowsort
SELECT ALL 2 + + + ( - 47 ) + 28 * - 18
----
-549

onlyif mysql # aggregate syntax: 
query I rowsort label-1965
SELECT + COUNT( * ) * - SUM( ALL + - 67 )
----
67

skipif mysql # not compatible
query I rowsort label-1965
SELECT + COUNT ( * ) * - SUM ( ALL + - 67 )
----
67

onlyif mysql # aggregate syntax: 
query II rowsort label-1966
SELECT - 13 * + ( + COUNT( * ) ) AS col2, - ( + 48 ) - + 77 + - 7
----
-13
-132

skipif mysql # not compatible
query II rowsort label-1966
SELECT - 13 * + ( + COUNT ( * ) ) AS col2, - ( + 48 ) - + 77 + - 7
----
-13
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-1967
SELECT + 25 + + ( - - COUNT( * ) ) + - 54 AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-1967
SELECT + 25 + + ( - - COUNT ( * ) ) + - 54 AS col2
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-1968
SELECT ALL + COUNT( + 95 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-1968
SELECT ALL + COUNT ( + 95 ) col1
----
1

query I rowsort
SELECT 89 * - - 66 + - 79
----
5795

query I rowsort
SELECT - 71 + - 19
----
-90

query I rowsort
SELECT + 41 * + 19 AS col1
----
779

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1972
SELECT ALL + COALESCE ( 14, - - 31 + + 4 ) DIV - - COUNT( * )
----
14

skipif mysql # not compatible
query I rowsort label-1972
SELECT ALL + COALESCE ( 14, - - 31 + + 4 ) / - - COUNT ( * )
----
14

query I rowsort
SELECT + 82 - 9 * 46
----
-332

onlyif mysql # aggregate syntax: 
query I rowsort label-1974
SELECT CASE - - ( - 45 ) WHEN - 37 / MAX( DISTINCT + 22 ) * MIN( ( 6 ) ) + - - 81 THEN + 56 END / + 43 * 64 * - - COALESCE ( - + 22, COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1974
SELECT CASE - - ( - 45 ) WHEN - 37 / MAX ( DISTINCT + 22 ) * MIN ( ( 6 ) ) + - - 81 THEN + 56 END / + 43 * 64 * - - COALESCE ( - + 22, COUNT ( * ) )
----
NULL

query I rowsort
SELECT ALL - 92 * + + 63
----
-5796

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1977
SELECT ALL - MAX( + 7 ) * 74 - - 2 col1
----
-516

skipif mysql # not compatible
query I rowsort label-1977
SELECT ALL - MAX ( + 7 ) * 74 - - 2 col1
----
-516

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

query I rowsort
SELECT ALL + - 47 + + 34 AS col1
----
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1980
SELECT DISTINCT + MAX( - + 53 ) DIV COUNT( * ) * + 82 + 56 AS col1
----
-4290

skipif mysql # not compatible
query I rowsort label-1980
SELECT DISTINCT + MAX ( - + 53 ) / COUNT ( * ) * + 82 + 56 AS col1
----
-4290

query I rowsort
SELECT DISTINCT + - 5 + 92 AS col0
----
87

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

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

query I rowsort
SELECT ALL + 40 + + 23 - - 87 * + 48 + - 14 + + 33 * 43 * + 28 + + 94 * 66
----
50161

query I rowsort
SELECT 51 - + 72
----
-21

query I rowsort
SELECT - COALESCE ( - - 83, - - 60 * + 27 ) col1
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1986
SELECT ALL + CAST( + - 41 AS SIGNED ) + 67 - - COUNT( * ) AS col2, + 22 * - - 50 + - 15
----
27
1085

skipif mysql # not compatible
query II rowsort label-1986
SELECT ALL + CAST ( + - 41 AS INTEGER ) + 67 - - COUNT ( * ) AS col2, + 22 * - - 50 + - 15
----
27
1085

onlyif mysql # DIV for integer division: 
query I rowsort label-1987
SELECT ALL 73 + + 10 DIV + - 5 AS col2
----
71

skipif mysql # not compatible
query I rowsort label-1987
SELECT ALL 73 + + 10 / + - 5 AS col2
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1988
SELECT ALL + 63, 92 / + 15 + - CAST( NULL AS SIGNED ) * + 72 * - COUNT( * ) AS col0
----
63
NULL

skipif mysql # not compatible
query II rowsort label-1988
SELECT ALL + 63, 92 / + 15 + - CAST ( NULL AS INTEGER ) * + 72 * - COUNT ( * ) AS col0
----
63
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1989
SELECT ALL + 24 + - COUNT( * ) * 60 * + COUNT( * ) AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-1989
SELECT ALL + 24 + - COUNT ( * ) * 60 * + COUNT ( * ) AS col2
----
-36

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

skipif mysql # not compatible
query I rowsort label-1990
SELECT - + MIN ( 25 )
----
-25

query I rowsort
SELECT ALL + 74 * 68 AS col1
----
5032

query I rowsort
SELECT 78 * - ( 3 )
----
-234

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1994
SELECT 87 + COUNT( * ) + - + 32
----
56

skipif mysql # not compatible
query I rowsort label-1994
SELECT 87 + COUNT ( * ) + - + 32
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1995
SELECT ( - ( + 48 ) ) * + + NULLIF ( + 66, COUNT( * ) ) + - NULLIF ( 17, - 73 + - 14 + + 19 + 26 + CAST( NULL AS SIGNED ) + - + 24 * + 48 * MIN( ALL - 36 ) ) AS col2
----
-3185

skipif mysql # not compatible
query I rowsort label-1995
SELECT ( - ( + 48 ) ) * + + NULLIF ( + 66, COUNT ( * ) ) + - NULLIF ( 17, - 73 + - 14 + + 19 + 26 + CAST ( NULL AS INTEGER ) + - + 24 * + 48 * MIN ( ALL - 36 ) ) AS col2
----
-3185

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1996
SELECT ALL CAST( + 47 AS SIGNED ) - + + MAX( ALL - 24 ) + + 34 * + + 30 AS col2
----
1091

skipif mysql # not compatible
query I rowsort label-1996
SELECT ALL CAST ( + 47 AS INTEGER ) - + + MAX ( ALL - 24 ) + + 34 * + + 30 AS col2
----
1091

onlyif mysql # aggregate syntax: 
query I rowsort label-1997
SELECT COALESCE ( 45, - 70 ) / - 80 * - - CASE + NULLIF ( 13, 9 ) WHEN SUM( DISTINCT + - 70 ) THEN - - 55 ELSE NULL END * + COUNT( * ) - + - 97 - 35 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1997
SELECT COALESCE ( 45, - 70 ) / - 80 * - - CASE + NULLIF ( 13, 9 ) WHEN SUM ( DISTINCT + - 70 ) THEN - - 55 ELSE NULL END * + COUNT ( * ) - + - 97 - 35 AS col0
----
NULL

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

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

query I rowsort
SELECT ALL 65 * ( + + 79 )
----
5135

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2000
SELECT CASE 68 WHEN - + 41 + - CAST( NULL AS SIGNED ) THEN NULL ELSE + + ( + 99 ) DIV - 52 + + 20 END * 43
----
817

skipif mysql # not compatible
query I rowsort label-2000
SELECT CASE 68 WHEN - + 41 + - CAST ( NULL AS INTEGER ) THEN NULL ELSE + + ( + 99 ) / - 52 + + 20 END * 43
----
817

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2001
SELECT COUNT( * ) DIV COUNT( * ) + 32
----
33

skipif mysql # not compatible
query I rowsort label-2001
SELECT COUNT ( * ) / COUNT ( * ) + 32
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-2002
SELECT DISTINCT COUNT( * ) * - SUM( - 62 ) AS col0
----
62

skipif mysql # not compatible
query I rowsort label-2002
SELECT DISTINCT COUNT ( * ) * - SUM ( - 62 ) AS col0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-2003
SELECT ALL COUNT( * ) * - 13 * 44
----
-572

skipif mysql # not compatible
query I rowsort label-2003
SELECT ALL COUNT ( * ) * - 13 * 44
----
-572

onlyif mysql # aggregate syntax: 
query I rowsort label-2004
SELECT + CASE + + 92 WHEN COUNT( - 51 ) * - 6 - + ( MIN( - 32 ) ) THEN NULL ELSE + 9 END * + 69 col1
----
621

skipif mysql # not compatible
query I rowsort label-2004
SELECT + CASE + + 92 WHEN COUNT ( - 51 ) * - 6 - + ( MIN ( - 32 ) ) THEN NULL ELSE + 9 END * + 69 col1
----
621

onlyif mysql # aggregate syntax: 
query I rowsort label-2005
SELECT DISTINCT 67 * + - 49 + 68 + - - 25 + 26 + - COUNT( * ) * - 52 * - 77 + 8 * - 46 * + 22
----
-15264

skipif mysql # not compatible
query I rowsort label-2005
SELECT DISTINCT 67 * + - 49 + 68 + - - 25 + 26 + - COUNT ( * ) * - 52 * - 77 + 8 * - 46 * + 22
----
-15264

query I rowsort
SELECT + 11 - + 21 AS col0
----
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-2007
SELECT ALL - ( COUNT( * ) ) AS col1, - MAX( DISTINCT COALESCE ( ( - - 57 ), - ( + - 33 ), 38 ) ) + + COUNT( * ) AS col1
----
-1
-56

skipif mysql # not compatible
query II rowsort label-2007
SELECT ALL - ( COUNT ( * ) ) AS col1, - MAX ( DISTINCT COALESCE ( ( - - 57 ), - ( + - 33 ), 38 ) ) + + COUNT ( * ) AS col1
----
-1
-56

query I rowsort
SELECT ALL + 55 + ( - 58 )
----
-3

query I rowsort
SELECT DISTINCT + 11 + - - 65 * 80
----
5211

onlyif mysql # aggregate syntax: 
query I rowsort label-2010
SELECT 66 + + 95 + 73 / NULLIF ( 18, COUNT( * ) ) + - CASE + ( + 34 ) WHEN - 18 THEN NULL WHEN 14 + 34 THEN + 71 WHEN COUNT( * ) + + 45 THEN - 99 - 70 + COUNT( * ) * + 61 + ( - + 90 ) * + + 42 + + 89 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2010
SELECT 66 + + 95 + 73 / NULLIF ( 18, COUNT ( * ) ) + - CASE + ( + 34 ) WHEN - 18 THEN NULL WHEN 14 + 34 THEN + 71 WHEN COUNT ( * ) + + 45 THEN - 99 - 70 + COUNT ( * ) * + 61 + ( - + 90 ) * + + 42 + + 89 ELSE NULL END AS col1
----
NULL

query II rowsort
SELECT + 61 - + 24 AS col0, + ( - 4 ) AS col1
----
37
-4

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2013
SELECT DISTINCT 79 DIV + - 47
----
-1

skipif mysql # not compatible
query I rowsort label-2013
SELECT DISTINCT 79 / + - 47
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2014
SELECT 58 + 4 + COALESCE ( COUNT( 5 ), - 65 + SUM( - 2 ) ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-2014
SELECT 58 + 4 + COALESCE ( COUNT ( 5 ), - 65 + SUM ( - 2 ) ) AS col2
----
63

query I rowsort
SELECT ALL + - 28 + + NULLIF ( - 62, 85 ) AS col1
----
-90

query I rowsort
SELECT + ( + + 98 ) * + 92 + + NULLIF ( 72, - - 38 )
----
9088

query I rowsort
SELECT ALL - - 36 - 17 + - + NULLIF ( 99, - 79 + - 23 )
----
-80

query II rowsort
SELECT - 6 * - 1 * - 8 + - 97 * + 15 AS col1, 41
----
-1503
41

query I rowsort
SELECT ALL + 70 - - 76 + - + 21 + - - 75 * + + 68 * + 18 * - - 73 AS col2
----
6701525

query I rowsort
SELECT 23 * + 16 AS col0
----
368

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2021
SELECT 32 + - - CAST( - 36 AS SIGNED ) col0
----
-4

skipif mysql # not compatible
query I rowsort label-2021
SELECT 32 + - - CAST ( - 36 AS INTEGER ) col0
----
-4

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2023
SELECT ALL + MIN( DISTINCT + - 91 ) - + 50 AS col0
----
-141

skipif mysql # not compatible
query I rowsort label-2023
SELECT ALL + MIN ( DISTINCT + - 91 ) - + 50 AS col0
----
-141

query I rowsort
SELECT DISTINCT + 25 * 65 AS col2
----
1625

query I rowsort
SELECT ALL COALESCE ( + + 78, + ( + + 12 ) + + 43, 80 * 29 ) AS col0
----
78

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

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

query I rowsort
SELECT ALL 66 * - 73 AS col0
----
-4818

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2028
SELECT COUNT( * ) * + + COUNT( * ) * 61 AS col0, + 9 DIV - 55 * + 47 - 72 + 79 + + ( COUNT( * ) )
----
61
8

skipif mysql # not compatible
query II rowsort label-2028
SELECT COUNT ( * ) * + + COUNT ( * ) * 61 AS col0, + 9 / - 55 * + 47 - 72 + 79 + + ( COUNT ( * ) )
----
61
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2029
SELECT DISTINCT + ( - ( + - 90 ) ) * COALESCE ( - COUNT( * ), + - 24 ) AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-2029
SELECT DISTINCT + ( - ( + - 90 ) ) * COALESCE ( - COUNT ( * ), + - 24 ) AS col2
----
-90

query I rowsort
SELECT ALL + 8 * + 5
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2031
SELECT ALL CASE - COUNT( * ) WHEN + - 26 THEN + - 79 + 26 WHEN + ( - COUNT( * ) ) + 3 * + - 16 - + SUM( + 71 ) / 20 THEN + 35 WHEN + 89 THEN + + COUNT( * ) ELSE - + 11 * + 97 END
----
-1067

skipif mysql # not compatible
query I rowsort label-2031
SELECT ALL CASE - COUNT ( * ) WHEN + - 26 THEN + - 79 + 26 WHEN + ( - COUNT ( * ) ) + 3 * + - 16 - + SUM ( + 71 ) / 20 THEN + 35 WHEN + 89 THEN + + COUNT ( * ) ELSE - + 11 * + 97 END
----
-1067

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2032
SELECT - 36 + 35 + - ( + COUNT( - CAST( - ( - - 46 ) AS SIGNED ) ) ) * COALESCE ( - - COUNT( * ), - 7 * + - 23, - - 90 ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-2032
SELECT - 36 + 35 + - ( + COUNT ( - CAST ( - ( - - 46 ) AS INTEGER ) ) ) * COALESCE ( - - COUNT ( * ), - 7 * + - 23, - - 90 ) AS col2
----
-2

query I rowsort
SELECT ALL 55 * + 88 + 24 AS col0
----
4864

query I rowsort
SELECT ALL + NULLIF ( + 88, - - 7 ) AS col1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-2035
SELECT DISTINCT - - 73 * - - 60 + COUNT( DISTINCT - + NULLIF ( - + ( + + ( - 75 ) ), 26 ) ) AS col2
----
4381

skipif mysql # not compatible
query I rowsort label-2035
SELECT DISTINCT - - 73 * - - 60 + COUNT ( DISTINCT - + NULLIF ( - + ( + + ( - 75 ) ), 26 ) ) AS col2
----
4381

onlyif mysql # DIV for integer division: 
query I rowsort label-2036
SELECT - 39 DIV + 2 AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-2036
SELECT - 39 / + 2 AS col2
----
-19

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2038
SELECT + 84 * 45 * + - 46 * 80 * - COUNT( * ) + 69 * + AVG ( DISTINCT + + 95 ) * + + 75 * - - 15 + - COUNT( * ) / - - 32 * 34 * ( 46 ) + + CASE 58 WHEN - 75 * + - 42 / - ( + - 36 ) THEN - 59 WHEN + COUNT( * ) * - 65 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2038
SELECT + 84 * 45 * + - 46 * 80 * - COUNT ( * ) + 69 * + AVG ( DISTINCT + + 95 ) * + + 75 * - - 15 + - COUNT ( * ) / - - 32 * 34 * ( 46 ) + + CASE 58 WHEN - 75 * + - 42 / - ( + - 36 ) THEN - 59 WHEN + COUNT ( * ) * - 65 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2039
SELECT ALL - 63 * 64 + - + COALESCE ( + 85, - COUNT( * ), - ( + CAST( 63 AS SIGNED ) ) ) - + 93 + + + 77 * 96 + + 78 + COUNT( + - 55 )
----
3261

skipif mysql # not compatible
query I rowsort label-2039
SELECT ALL - 63 * 64 + - + COALESCE ( + 85, - COUNT ( * ), - ( + CAST ( 63 AS INTEGER ) ) ) - + 93 + + + 77 * 96 + + 78 + COUNT ( + - 55 )
----
3261

onlyif mysql # aggregate syntax: 
query I rowsort label-2040
SELECT COUNT( * ) * - 64 + - 95
----
-159

skipif mysql # not compatible
query I rowsort label-2040
SELECT COUNT ( * ) * - 64 + - 95
----
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-2041
SELECT ALL - 84 * + ( + + 5 ) * COUNT( * ) + 56 AS col0
----
-364

skipif mysql # not compatible
query I rowsort label-2041
SELECT ALL - 84 * + ( + + 5 ) * COUNT ( * ) + 56 AS col0
----
-364

onlyif mysql # aggregate syntax: 
query II rowsort label-2042
SELECT + COUNT( * ), 76 + + 74 AS col2
----
1
150

skipif mysql # not compatible
query II rowsort label-2042
SELECT + COUNT ( * ), 76 + + 74 AS col2
----
1
150

query I rowsort
SELECT - 38 * + - 94
----
3572

onlyif mysql # DIV for integer division: 
query I rowsort label-2044
SELECT DISTINCT 44 DIV ( + + 35 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2044
SELECT DISTINCT 44 / ( + + 35 ) AS col1
----
1

query I rowsort
SELECT ALL - COALESCE ( 15, - + 93 ) * ( + - CASE + + 45 WHEN 27 / + + 4 THEN NULL WHEN + 43 THEN - 0 END ) + 10 col1
----
NULL

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

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

query I rowsort
SELECT + 2 * - 9
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2048
SELECT DISTINCT 8 DIV 55 * - 8 * - 23 * - + 9 DIV + 80 DIV COALESCE ( COUNT( * ), 81 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2048
SELECT DISTINCT 8 / 55 * - 8 * - 23 * - + 9 / + 80 / COALESCE ( COUNT ( * ), 81 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2049
SELECT ALL + ( - + 82 ) * + 86 * COUNT( * ) col1
----
-7052

skipif mysql # not compatible
query I rowsort label-2049
SELECT ALL + ( - + 82 ) * + 86 * COUNT ( * ) col1
----
-7052

query I rowsort
SELECT - 78 * - 13
----
1014

query I rowsort
SELECT DISTINCT COALESCE ( + + 55, + 15, 17 ) * + 17 * + 92 AS col1
----
86020

query I rowsort
SELECT + 25 + - 78
----
-53

query I rowsort
SELECT ALL + 40 * 88
----
3520

query I rowsort
SELECT + 42 * 1 AS col0
----
42

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

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

query I rowsort
SELECT + 18 + + 32 AS col0
----
50

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2058
SELECT - SUM( - - 20 )
----
-20

skipif mysql # not compatible
query I rowsort label-2058
SELECT - SUM ( - - 20 )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-2059
SELECT - COUNT( * ) * - CASE - 67 WHEN - 81 THEN NULL WHEN - + 93 THEN NULL WHEN + 40 THEN + 11 ELSE + + 71 END
----
71

skipif mysql # not compatible
query I rowsort label-2059
SELECT - COUNT ( * ) * - CASE - 67 WHEN - 81 THEN NULL WHEN - + 93 THEN NULL WHEN + 40 THEN + 11 ELSE + + 71 END
----
71

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2061
SELECT ALL - 68 + - COUNT( * ) AS col0
----
-69

skipif mysql # not compatible
query I rowsort label-2061
SELECT ALL - 68 + - COUNT ( * ) AS col0
----
-69

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

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

query I rowsort
SELECT - + 22 - + 93
----
-115

query I rowsort
SELECT + COALESCE ( - 74, 1 ) AS col2
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2065
SELECT ALL + + 17, + CASE - 97 WHEN + 50 THEN MIN( - 7 ) * + CAST( NULL AS SIGNED ) + - 32 - + COALESCE ( + 55, 58 * - 86 ) + + 99 - + - 3 + - + CASE COALESCE ( - 74, + + 23 * - + 37 ) WHEN - 13 THEN + + 5 + + SUM( - ( - 89 ) ) END - + 58 + CAST( - 1 AS SIGNED ) ELSE NULL END col0
----
17
NULL

skipif mysql # not compatible
query II rowsort label-2065
SELECT ALL + + 17, + CASE - 97 WHEN + 50 THEN MIN ( - 7 ) * + CAST ( NULL AS INTEGER ) + - 32 - + COALESCE ( + 55, 58 * - 86 ) + + 99 - + - 3 + - + CASE COALESCE ( - 74, + + 23 * - + 37 ) WHEN - 13 THEN + + 5 + + SUM ( - ( - 89 ) ) END - + 58 + CAST ( - 1 AS INTEGER ) ELSE NULL END col0
----
17
NULL

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

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

query I rowsort
SELECT ALL 40 * - NULLIF ( + - 99, - 45 )
----
3960

query I rowsort
SELECT + 9 - + + 90 AS col1
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-2069
SELECT ALL 44 DIV - ( 26 ) - + 36 AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-2069
SELECT ALL 44 / - ( 26 ) - + 36 AS col2
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2070
SELECT - CASE 37 WHEN + 58 THEN + 52 + + 75 WHEN 0 THEN NULL WHEN + - 12 * + + CASE - - 55 WHEN COALESCE ( + 42, + 43 * ( + COUNT( * ) ) + + + COUNT( * ), 28 ) THEN - COUNT( * ) + - + 72 - - COUNT( * ) + - COUNT( DISTINCT + 57 ) / - + 85 / + CAST( NULL AS SIGNED ) + + - 43 * - 15 + + ( - 46 ) WHEN - 34 THEN NULL END THEN + 57 + + ( - 71 - - COUNT( * ) * 2 ) END + 60 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2070
SELECT - CASE 37 WHEN + 58 THEN + 52 + + 75 WHEN 0 THEN NULL WHEN + - 12 * + + CASE - - 55 WHEN COALESCE ( + 42, + 43 * ( + COUNT ( * ) ) + + + COUNT ( * ), 28 ) THEN - COUNT ( * ) + - + 72 - - COUNT ( * ) + - COUNT ( DISTINCT + 57 ) / - + 85 / + CAST ( NULL AS INTEGER ) + + - 43 * - 15 + + ( - 46 ) WHEN - 34 THEN NULL END THEN + 57 + + ( - 71 - - COUNT ( * ) * 2 ) END + 60 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - - 21 * ( + 63 ) * 45
----
59535

query II rowsort
SELECT + 31 AS col2, 58 AS col0
----
31
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2073
SELECT - + COUNT( * ) + + + 75
----
74

skipif mysql # not compatible
query I rowsort label-2073
SELECT - + COUNT ( * ) + + + 75
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-2074
SELECT + COUNT( - ( - - 46 ) ) col1
----
1

skipif mysql # not compatible
query I rowsort label-2074
SELECT + COUNT ( - ( - - 46 ) ) col1
----
1

query I rowsort
SELECT ALL + 76 * + 25
----
1900

query II rowsort
SELECT DISTINCT + ( 24 ) col1, + 76 + 96
----
24
172

onlyif mysql # aggregate syntax: 
query I rowsort label-2077
SELECT + 31 + CASE 90 WHEN - 98 THEN ( COUNT( - 26 ) ) + - COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2077
SELECT + 31 + CASE 90 WHEN - 98 THEN ( COUNT ( - 26 ) ) + - COUNT ( * ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2078
SELECT 48 DIV - COUNT( * ), - 52 + - - SUM( - ( - - 81 ) ) + 98 * 23 AS col0
----
-48
2121

skipif mysql # not compatible
query II rowsort label-2078
SELECT 48 / - COUNT ( * ), - 52 + - - SUM ( - ( - - 81 ) ) + 98 * 23 AS col0
----
-48
2121

query II rowsort
SELECT DISTINCT 54 + + ( - 52 ) AS col2, + 47 + 44
----
2
91

query I rowsort
SELECT 60 + - 41 AS col2
----
19

query I rowsort
SELECT 31 * - - 41
----
1271

query I rowsort
SELECT 67 + - 31 AS col1
----
36

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

skipif mysql # not compatible
query I rowsort label-2083
SELECT COUNT ( * ) / ( 27 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2084
SELECT DISTINCT - 63 + + 16 + 92 AS col0, + COUNT( + + 30 ) AS col1
----
45
1

skipif mysql # not compatible
query II rowsort label-2084
SELECT DISTINCT - 63 + + 16 + 92 AS col0, + COUNT ( + + 30 ) AS col1
----
45
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2085
SELECT ALL COUNT( 73 ) + + 20 AS col1
----
21

skipif mysql # not compatible
query I rowsort label-2085
SELECT ALL COUNT ( 73 ) + + 20 AS col1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-2086
SELECT ALL - 82 + COUNT( * ) + + COUNT( - + 8 )
----
-80

skipif mysql # not compatible
query I rowsort label-2086
SELECT ALL - 82 + COUNT ( * ) + + COUNT ( - + 8 )
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-2087
SELECT - MIN( + + 34 ) AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-2087
SELECT - MIN ( + + 34 ) AS col2
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-2088
SELECT 71 + 44 * - ( 42 ) * + COUNT( * ) * 59 AS col2
----
-108961

skipif mysql # not compatible
query I rowsort label-2088
SELECT 71 + 44 * - ( 42 ) * + COUNT ( * ) * 59 AS col2
----
-108961

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2089
SELECT DISTINCT ( - 84 ) AS col0, COUNT( * ) DIV 64 AS col2
----
-84
0

skipif mysql # not compatible
query II rowsort label-2089
SELECT DISTINCT ( - 84 ) AS col0, COUNT ( * ) / 64 AS col2
----
-84
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2090
SELECT DISTINCT + 63 - - 10 * + 74 * - COALESCE ( - - 9, COUNT( * ) )
----
-6597

skipif mysql # not compatible
query I rowsort label-2090
SELECT DISTINCT + 63 - - 10 * + 74 * - COALESCE ( - - 9, COUNT ( * ) )
----
-6597

onlyif mysql # aggregate syntax: 
query I rowsort label-2091
SELECT DISTINCT - + 83 * + 40 + + + 68 * - COUNT( * ) AS col1
----
-3388

skipif mysql # not compatible
query I rowsort label-2091
SELECT DISTINCT - + 83 * + 40 + + + 68 * - COUNT ( * ) AS col1
----
-3388

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2092
SELECT + COUNT( * ) DIV + COUNT( * ) + + 30
----
31

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2093
SELECT DISTINCT + + 4 - - - 61 AS col2, COUNT( ALL + 21 ) AS col1
----
-57
1

skipif mysql # not compatible
query II rowsort label-2093
SELECT DISTINCT + + 4 - - - 61 AS col2, COUNT ( ALL + 21 ) AS col1
----
-57
1

query I rowsort
SELECT ALL - ( + 49 ) * 81 * - 9
----
35721

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2096
SELECT - COUNT( * ) * + 96 * + 32 * COUNT( * ) + + 42
----
-3030

skipif mysql # not compatible
query I rowsort label-2096
SELECT - COUNT ( * ) * + 96 * + 32 * COUNT ( * ) + + 42
----
-3030

query II rowsort
SELECT ALL - 67 AS col1, 90
----
-67
90

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

skipif mysql # not compatible
query I rowsort label-2098
SELECT 6 / + 79
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2099
SELECT COUNT( * ) * + CASE + - 28 WHEN 28 * + COUNT( * ) THEN - COUNT( * ) END / - COUNT( * ) + - - 62 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2099
SELECT COUNT ( * ) * + CASE + - 28 WHEN 28 * + COUNT ( * ) THEN - COUNT ( * ) END / - COUNT ( * ) + - - 62 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2100
SELECT 76 * 38 DIV + 15 - + 36 AS col0
----
156

skipif mysql # not compatible
query I rowsort label-2100
SELECT 76 * 38 / + 15 - + 36 AS col0
----
156

query II rowsort
SELECT + 79 col2, - 16 + 88 AS col1
----
79
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2102
SELECT ALL CAST( + 37 AS SIGNED ) + + CASE 37 WHEN + 93 THEN NULL ELSE + 26 END AS col1
----
63

skipif mysql # not compatible
query I rowsort label-2102
SELECT ALL CAST ( + 37 AS INTEGER ) + + CASE 37 WHEN + 93 THEN NULL ELSE + 26 END AS col1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-2103
SELECT COUNT( * ) - - 92 col1
----
93

skipif mysql # not compatible
query I rowsort label-2103
SELECT COUNT ( * ) - - 92 col1
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2104
SELECT ALL 83 + - SUM( 94 ) * - CAST( NULL AS SIGNED ) * + 34 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2104
SELECT ALL 83 + - SUM ( 94 ) * - CAST ( NULL AS INTEGER ) * + 34 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2105
SELECT DISTINCT 1 + - COUNT( * ) * - ( - - 10 ) - - 96 AS col1
----
107

skipif mysql # not compatible
query I rowsort label-2105
SELECT DISTINCT 1 + - COUNT ( * ) * - ( - - 10 ) - - 96 AS col1
----
107

onlyif mysql # aggregate syntax: 
query II rowsort label-2106
SELECT DISTINCT - 95 + + COUNT( DISTINCT + 92 ), - 89 AS col0
----
-94
-89

skipif mysql # not compatible
query II rowsort label-2106
SELECT DISTINCT - 95 + + COUNT ( DISTINCT + 92 ), - 89 AS col0
----
-94
-89

query II rowsort
SELECT ALL 36 + + 93 - + 44 AS col0, + ( - 48 ) col2
----
85
-48

query I rowsort
SELECT 40 + - - ( - 9 ) col2
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2109
SELECT ALL - COUNT( * ) - - 71 DIV + 50 col0, 35
----
0
35

skipif mysql # not compatible
query II rowsort label-2109
SELECT ALL - COUNT ( * ) - - 71 / + 50 col0, 35
----
0
35

onlyif mysql # aggregate syntax: 
query I rowsort label-2110
SELECT - 89 * + 35 * - - 56 + + SUM( DISTINCT - 63 ) + + + NULLIF ( - + 12, - + 5 + + ( + + 5 ) / + COUNT( * ) ) + - - 90
----
-174425

skipif mysql # not compatible
query I rowsort label-2110
SELECT - 89 * + 35 * - - 56 + + SUM ( DISTINCT - 63 ) + + + NULLIF ( - + 12, - + 5 + + ( + + 5 ) / + COUNT ( * ) ) + - - 90
----
-174425

onlyif mysql # aggregate syntax: 
query I rowsort label-2111
SELECT - COUNT( * ) + + 14 * - 53 * + ( ( - 82 ) ) * + + 41 + 23 + - 17
----
2494609

skipif mysql # not compatible
query I rowsort label-2111
SELECT - COUNT ( * ) + + 14 * - 53 * + ( ( - 82 ) ) * + + 41 + 23 + - 17
----
2494609

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

query I rowsort
SELECT - 46 + 83 AS col2
----
37

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2114
SELECT ALL SUM( DISTINCT + + 71 ) * + CASE - ( - + 41 ) WHEN + 57 THEN NULL WHEN + + CAST( NULL AS DECIMAL ) THEN + 21 * - COUNT( * ) / 56 + ( 70 ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2114
SELECT ALL SUM ( DISTINCT + + 71 ) * + CASE - ( - + 41 ) WHEN + 57 THEN NULL WHEN + + CAST ( NULL AS REAL ) THEN + 21 * - COUNT ( * ) / 56 + ( 70 ) ELSE NULL END AS col1
----
NULL

query II rowsort
SELECT + 55 * + + ( + 87 ) AS col2, 54 AS col0
----
4785
54

query I rowsort
SELECT DISTINCT 34 * 77 col0
----
2618

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2117
SELECT + 42, MAX( + - 75 ) + + + CAST( NULL AS SIGNED ) - 83 AS col1
----
42
NULL

skipif mysql # not compatible
query II rowsort label-2117
SELECT + 42, MAX ( + - 75 ) + + + CAST ( NULL AS INTEGER ) - 83 AS col1
----
42
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2118
SELECT + 22 * + + COUNT( 63 ) AS col1, - COALESCE ( - - NULLIF ( + 60, - 34 / 81 * + - ( - 97 ) + - 54 + + 94 ), + - 13 - + + MIN( ALL 24 ) * + 36 * 79 )
----
22
-60

skipif mysql # not compatible
query II rowsort label-2118
SELECT + 22 * + + COUNT ( 63 ) AS col1, - COALESCE ( - - NULLIF ( + 60, - 34 / 81 * + - ( - 97 ) + - 54 + + 94 ), + - 13 - + + MIN ( ALL 24 ) * + 36 * 79 )
----
22
-60

query I rowsort
SELECT 58 * 63 * + + NULLIF ( - + 10, 50 ) AS col1
----
-36540

query I rowsort
SELECT 89 - - 56
----
145

query I rowsort
SELECT + 93 * - 0 + + ( + 64 )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2122
SELECT ALL - NULLIF ( COUNT( * ), - - 31 * 23 )
----
-1

skipif mysql # not compatible
query I rowsort label-2122
SELECT ALL - NULLIF ( COUNT ( * ), - - 31 * 23 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2123
SELECT ALL - - 15 AS col0, NULLIF ( - 38, + - NULLIF ( - 57, + + 63 ) * + NULLIF ( + + 41, + COUNT( * ) - + COALESCE ( - 74, - + COUNT( * ) - CAST( NULL AS SIGNED ), 61 ) ) - + - COALESCE ( - 1, + + NULLIF ( 65, + ( SUM( DISTINCT - 3 ) ) ) + + 87 * 22 * - 69 * 26 + COUNT( ( 1 ) ) + - 51 * + 68 * - 30 ) / - COALESCE ( 37, + 26 + AVG ( 52 ) ) ) * 61
----
15
-2318

skipif mysql # not compatible
query II rowsort label-2123
SELECT ALL - - 15 AS col0, NULLIF ( - 38, + - NULLIF ( - 57, + + 63 ) * + NULLIF ( + + 41, + COUNT ( * ) - + COALESCE ( - 74, - + COUNT ( * ) - CAST ( NULL AS INTEGER ), 61 ) ) - + - COALESCE ( - 1, + + NULLIF ( 65, + ( SUM ( DISTINCT - 3 ) ) ) + + 87 * 22 * - 69 * 26 + COUNT ( ( 1 ) ) + - 51 * + 68 * - 30 ) / - COALESCE ( 37, + 26 + AVG ( 52 ) ) ) * 61
----
15
-2318

query I rowsort
SELECT ALL + 85 * + 91 + - ( + + 23 ) + - - 87 + + - 82 + 53 + - - 52 AS col1
----
7822

query I rowsort
SELECT DISTINCT - - 63 col2
----
63

query I rowsort
SELECT 32 - 52 AS col2
----
-20

onlyif mysql # DIV for integer division: 
query II rowsort label-2127
SELECT 8 DIV ( - 60 ) + - 62, 58 AS col1
----
-62
58

skipif mysql # not compatible
query II rowsort label-2127
SELECT 8 / ( - 60 ) + - 62, 58 AS col1
----
-62
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2128
SELECT ALL - 11 * - 14 + + 30 + 38 * - ( - + COUNT( * ) ) * - 46 * - + 95 + - CAST( NULL AS SIGNED ) AS col2, ( - 5 ) AS col2
----
NULL
-5

skipif mysql # not compatible
query II rowsort label-2128
SELECT ALL - 11 * - 14 + + 30 + 38 * - ( - + COUNT ( * ) ) * - 46 * - + 95 + - CAST ( NULL AS INTEGER ) AS col2, ( - 5 ) AS col2
----
NULL
-5

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

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

query II rowsort
SELECT ALL + ( - 63 ) AS col0, + 79 + - 90 * - - 92 AS col1
----
-63
-8201

query I rowsort
SELECT - 52 * + 46 + - 4
----
-2396

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2132
SELECT ALL + ( - 87 ) + - + COUNT( * ) / + CASE 70 WHEN - 97 / + - 75 THEN NULL WHEN 35 THEN - 44 / 51 * - + MAX( CAST( - - 91 AS SIGNED ) ) + - 82 - 85 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2132
SELECT ALL + ( - 87 ) + - + COUNT ( * ) / + CASE 70 WHEN - 97 / + - 75 THEN NULL WHEN 35 THEN - 44 / 51 * - + MAX ( CAST ( - - 91 AS INTEGER ) ) + - 82 - 85 END
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2133
SELECT ALL 60 + + 91 DIV + - ( + 9 ), + 35 + 14 AS col1
----
50
49

skipif mysql # not compatible
query II rowsort label-2133
SELECT ALL 60 + + 91 / + - ( + 9 ), + 35 + 14 AS col1
----
50
49

query I rowsort
SELECT - 65 + 82 * 17 * - + 11
----
-15399

query I rowsort
SELECT + 94 + + + 53 + 56 * + 32 * - 66
----
-118125

onlyif mysql # DIV for integer division: 
query I rowsort label-2136
SELECT - 6 DIV - 54 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2136
SELECT - 6 / - 54 AS col1
----
0

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

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

query I rowsort
SELECT ALL + + 50 * - 48 AS col0
----
-2400

onlyif mysql # aggregate syntax: 
query I rowsort label-2140
SELECT ALL NULLIF ( + NULLIF ( COUNT( * ), + 91 ), 13 + + 61 + - MIN( ALL + - 33 ) * SUM( - 60 ) )
----
1

skipif mysql # not compatible
query I rowsort label-2140
SELECT ALL NULLIF ( + NULLIF ( COUNT ( * ), + 91 ), 13 + + 61 + - MIN ( ALL + - 33 ) * SUM ( - 60 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2141
SELECT DISTINCT - MIN( ALL + - 14 ) col1
----
14

skipif mysql # not compatible
query I rowsort label-2141
SELECT DISTINCT - MIN ( ALL + - 14 ) col1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-2142
SELECT DISTINCT + MIN( + + 66 ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-2142
SELECT DISTINCT + MIN ( + + 66 ) AS col1
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2143
SELECT - 19 * + 94 AS col0, COUNT( * ) DIV + - 1 - - 72 * + 99 AS col1
----
-1786
7127

skipif mysql # not compatible
query II rowsort label-2143
SELECT - 19 * + 94 AS col0, COUNT ( * ) / + - 1 - - 72 * + 99 AS col1
----
-1786
7127

query I rowsort
SELECT + - 33 + 53
----
20

query I rowsort
SELECT + 33 - - NULLIF ( + - 26, - - 85 ) * + 17
----
-409

query I rowsort
SELECT + + 58 + - 26
----
32

query I rowsort
SELECT + 46 - + 63 AS col1
----
-17

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

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

query I rowsort
SELECT + - 84 * + 9
----
-756

onlyif mysql # aggregate syntax: 
query I rowsort label-2150
SELECT ALL - 78 + 36 * - + MAX( - 18 ) + - 68 * + 28 * + 26 col1
----
-48934

skipif mysql # not compatible
query I rowsort label-2150
SELECT ALL - 78 + 36 * - + MAX ( - 18 ) + - 68 * + 28 * + 26 col1
----
-48934

onlyif mysql # DIV for integer division: 
query I rowsort label-2151
SELECT ALL + ( - 19 ) DIV 90 + - + 47 + 80 AS col2
----
33

skipif mysql # not compatible
query I rowsort label-2151
SELECT ALL + ( - 19 ) / 90 + - + 47 + 80 AS col2
----
33

query I rowsort
SELECT 92 * + + 39 * + 8 * + 0 + - - 31 * + 85
----
2635

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2153
SELECT + 66 DIV - - 16 + + - COUNT( 92 ) AS col0, + 45 * - CAST( - 0 AS SIGNED ) AS col1
----
3
0

skipif mysql # not compatible
query II rowsort label-2153
SELECT + 66 / - - 16 + + - COUNT ( 92 ) AS col0, + 45 * - CAST ( - 0 AS INTEGER ) AS col1
----
3
0

query I rowsort
SELECT + 26 * - - 12 col2
----
312

query I rowsort
SELECT + 32 + - 90
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-2156
SELECT ALL - 17 DIV + ( - 72 ) + 65 col1
----
65

skipif mysql # not compatible
query I rowsort label-2156
SELECT ALL - 17 / + ( - 72 ) + 65 col1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-2157
SELECT + NULLIF ( + 47, 89 / COUNT( + 39 ) )
----
47

skipif mysql # not compatible
query I rowsort label-2157
SELECT + NULLIF ( + 47, 89 / COUNT ( + 39 ) )
----
47

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

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

query I rowsort
SELECT 76 * + 0 * 81 + - 9 AS col0
----
-9

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2161
SELECT DISTINCT - ( 60 ) * - 98 + + 94 - + - 52 AS col2, NULLIF ( + 29, + 35 + - 12 ) + + COUNT( * ) * - 2 AS col1
----
6026
27

skipif mysql # not compatible
query II rowsort label-2161
SELECT DISTINCT - ( 60 ) * - 98 + + 94 - + - 52 AS col2, NULLIF ( + 29, + 35 + - 12 ) + + COUNT ( * ) * - 2 AS col1
----
6026
27

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2163
SELECT - CASE 5 WHEN + COUNT( * ) + + 97 THEN + 78 + ( 6 ) END * - 57 / 30
----
NULL

skipif mysql # not compatible
query I rowsort label-2163
SELECT - CASE 5 WHEN + COUNT ( * ) + + 97 THEN + 78 + ( 6 ) END * - 57 / 30
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2165
SELECT COALESCE ( + 94, - 83 DIV MAX( - NULLIF ( COALESCE ( 41, - 38 * 29 * 72 ), 47 ) ) ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-2165
SELECT COALESCE ( + 94, - 83 / MAX ( - NULLIF ( COALESCE ( 41, - 38 * 29 * 72 ), 47 ) ) ) AS col2
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2166
SELECT ALL 47 * + + 55 - - MIN( DISTINCT 48 )
----
2633

skipif mysql # not compatible
query I rowsort label-2166
SELECT ALL 47 * + + 55 - - MIN ( DISTINCT 48 )
----
2633

query I rowsort
SELECT - 82 - 65 * - 67 * 6 + - ( 70 ) + - 30 - 46 AS col1
----
25902

query I rowsort
SELECT - 0 * - - 24
----
0

query II rowsort
SELECT ALL CASE + 4 WHEN + 57 + - - 59 THEN 9 / - 27 + + 1 + 15 WHEN 13 THEN NULL ELSE 77 END AS col1, 22 col0
----
77
22

query I rowsort
SELECT - + 56 * + 85 + + 76 AS col1
----
-4684

query I rowsort
SELECT - 81 + - + 74 + + - 58
----
-213

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2172
SELECT - CASE - + 85 WHEN + 63 + 90 / - - 27 * - + CAST( NULL AS DECIMAL ) THEN + 90 ELSE + - 50 END - 74 AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-2172
SELECT - CASE - + 85 WHEN + 63 + 90 / - - 27 * - + CAST ( NULL AS REAL ) THEN + 90 ELSE + - 50 END - 74 AS col2
----
-24

query I rowsort
SELECT - COALESCE ( + 77, CASE WHEN 43 IS NULL THEN NULL ELSE + - 64 + 18 END ) AS col2
----
-77

query I rowsort
SELECT - 64 - + + 29 * + 10
----
-354

onlyif mysql # DIV for integer division: 
query I rowsort label-2175
SELECT ALL - 84 DIV 6
----
-14

skipif mysql # not compatible
query I rowsort label-2175
SELECT ALL - 84 / 6
----
-14

query I rowsort
SELECT - + 4 + + 90
----
86

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

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

query I rowsort
SELECT DISTINCT + 82 + + - 75
----
7

query I rowsort
SELECT DISTINCT 79 + - + 81 AS col1
----
-2

query I rowsort
SELECT ALL 93 + - 6 AS col2
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2181
SELECT ALL CASE - NULLIF ( + 53, + 49 * - 26 * + 89 ) WHEN + COUNT( * ) * COALESCE ( + + 31, - 4 ) * 25 + - COUNT( * ) * - ( + ( - - 65 ) ) * + 0 + + 31 + + 86 + + 97 THEN 70 + - + 52 WHEN + MAX( ALL - 23 ) THEN NULL ELSE NULL END + - ( + CASE 29 WHEN + 34 + - - COUNT( * ) * + 56 * + COUNT( * ) * - 44 THEN CAST( NULL AS DECIMAL ) + + 41 END ) + + 46 * + SUM( ALL + CAST( NULL AS SIGNED ) * 19 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2181
SELECT ALL CASE - NULLIF ( + 53, + 49 * - 26 * + 89 ) WHEN + COUNT ( * ) * COALESCE ( + + 31, - 4 ) * 25 + - COUNT ( * ) * - ( + ( - - 65 ) ) * + 0 + + 31 + + 86 + + 97 THEN 70 + - + 52 WHEN + MAX ( ALL - 23 ) THEN NULL ELSE NULL END + - ( + CASE 29 WHEN + 34 + - - COUNT ( * ) * + 56 * + COUNT ( * ) * - 44 THEN CAST ( NULL AS REAL ) + + 41 END ) + + 46 * + SUM ( ALL + CAST ( NULL AS INTEGER ) * 19 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2182
SELECT DISTINCT + COUNT( DISTINCT + 88 ) + - + 32 + 82 DIV MAX( DISTINCT + 27 ) DIV + NULLIF ( - ( - 46 ), + 70 ) * - 61 + + 87 AS col0
----
56

skipif mysql # not compatible
query I rowsort label-2182
SELECT DISTINCT + COUNT ( DISTINCT + 88 ) + - + 32 + 82 / MAX ( DISTINCT + 27 ) / + NULLIF ( - ( - 46 ), + 70 ) * - 61 + + 87 AS col0
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2183
SELECT COUNT( ALL - CAST( NULL AS SIGNED ) ) * - + 65 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2183
SELECT COUNT ( ALL - CAST ( NULL AS INTEGER ) ) * - + 65 AS col2
----
0

query I rowsort
SELECT ALL + 66 + - 75 + - + 27
----
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-2185
SELECT 25 * - COUNT( * ) col2, 14
----
-25
14

skipif mysql # not compatible
query II rowsort label-2185
SELECT 25 * - COUNT ( * ) col2, 14
----
-25
14

onlyif mysql # aggregate syntax: 
query II rowsort label-2186
SELECT 82, CASE - COALESCE ( 57, - 30 * - 21 ) WHEN + 13 THEN - + 3 + + 86 ELSE NULL END * - 33 + - COUNT( * ) AS col2
----
82
NULL

skipif mysql # not compatible
query II rowsort label-2186
SELECT 82, CASE - COALESCE ( 57, - 30 * - 21 ) WHEN + 13 THEN - + 3 + + 86 ELSE NULL END * - 33 + - COUNT ( * ) AS col2
----
82
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2187
SELECT COUNT( * ) * 55 + + ( + COUNT( * ) ) + 51 DIV COUNT( * ) * - 70 * - 19 * - 32
----
-2170504

skipif mysql # not compatible
query I rowsort label-2187
SELECT COUNT ( * ) * 55 + + ( + COUNT ( * ) ) + 51 / COUNT ( * ) * - 70 * - 19 * - 32
----
-2170504

query I rowsort
SELECT ALL - 81 + 99
----
18

query II rowsort
SELECT ALL 84 + - + 74, - 73 AS col2
----
10
-73

query II rowsort
SELECT DISTINCT - 83 AS col2, + 44
----
-83
44

query I rowsort
SELECT 57 - + - 31 * + + 38 col2
----
1235

query I rowsort
SELECT DISTINCT 78 * 64
----
4992

query I rowsort
SELECT - 43 * + - COALESCE ( - 83, + + 19 * + 55, 37 ) + 11 * + - 36 col2
----
-3965

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2194
SELECT + 56 * - CASE - CAST( + - 34 AS SIGNED ) WHEN + 73 / 80 THEN - 64 * 51 * 84 * + + COALESCE ( + 29, + SUM( DISTINCT + + 76 ) + + CASE + 63 WHEN + 37 + NULLIF ( 55, - ( ( + CAST( NULL AS SIGNED ) ) ) * - - 64 ) + 79 * + 21 * - MIN( 75 ) + + - 97 + + COUNT( * ) / + 35 * - 22 * - ( 66 ) THEN NULL WHEN - 33 THEN NULL ELSE - 27 + + 36 END ) * - 28 END * + ( + MIN( DISTINCT 48 ) * + 6 - - 62 ) + COUNT( 9 + 13 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2194
SELECT + 56 * - CASE - CAST ( + - 34 AS INTEGER ) WHEN + 73 / 80 THEN - 64 * 51 * 84 * + + COALESCE ( + 29, + SUM ( DISTINCT + + 76 ) + + CASE + 63 WHEN + 37 + NULLIF ( 55, - ( ( + CAST ( NULL AS INTEGER ) ) ) * - - 64 ) + 79 * + 21 * - MIN ( 75 ) + + - 97 + + COUNT ( * ) / + 35 * - 22 * - ( 66 ) THEN NULL WHEN - 33 THEN NULL ELSE - 27 + + 36 END ) * - 28 END * + ( + MIN ( DISTINCT 48 ) * + 6 - - 62 ) + COUNT ( 9 + 13 ) col1
----
NULL

query I rowsort
SELECT 40 * 32 AS col0
----
1280

query I rowsort
SELECT ALL 24 * + 40
----
960

onlyif mysql # aggregate syntax: 
query I rowsort label-2197
SELECT 47 + - 80 + COUNT( * ) + + 47 AS col1
----
15

skipif mysql # not compatible
query I rowsort label-2197
SELECT 47 + - 80 + COUNT ( * ) + + 47 AS col1
----
15

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

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

query II rowsort
SELECT 98 col2, - 38 * + + 33 * + 5
----
98
-6270

query I rowsort
SELECT 92 * 96 col1
----
8832

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2201
SELECT + 47 AS col1, CAST( - 81 AS SIGNED ) + + 28 AS col2
----
47
-53

skipif mysql # not compatible
query II rowsort label-2201
SELECT + 47 AS col1, CAST ( - 81 AS INTEGER ) + + 28 AS col2
----
47
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2202
SELECT + COALESCE ( - COALESCE ( 95, + - NULLIF ( + 18, + COUNT( * ) * + 50 + - 42 * + + 49 + 75 ) ), - - 24 ) * 12 + - + ( 71 ) + - NULLIF ( 42, - CAST( ( 62 ) AS SIGNED ) + - 97 + + 14 + - 10 * CAST( NULL AS SIGNED ) / + 63 * - MIN( + COALESCE ( + 20, - 42 ) ) ) AS col0
----
-1253

skipif mysql # not compatible
query I rowsort label-2202
SELECT + COALESCE ( - COALESCE ( 95, + - NULLIF ( + 18, + COUNT ( * ) * + 50 + - 42 * + + 49 + 75 ) ), - - 24 ) * 12 + - + ( 71 ) + - NULLIF ( 42, - CAST ( ( 62 ) AS INTEGER ) + - 97 + + 14 + - 10 * CAST ( NULL AS INTEGER ) / + 63 * - MIN ( + COALESCE ( + 20, - 42 ) ) ) AS col0
----
-1253

query II rowsort
SELECT ALL - 46 AS col0, 65 * 20 AS col1
----
-46
1300

query II rowsort
SELECT ALL - 17 AS col1, - ( 59 )
----
-17
-59

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2206
SELECT + 35 + CAST( NULL AS SIGNED ) + + ( 16 ) + - 68 / - - 4 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2206
SELECT + 35 + CAST ( NULL AS INTEGER ) + + ( 16 ) + - 68 / - - 4 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2207
SELECT - - 45 * 98 + + 3 + 26 + + + COUNT( * )
----
4440

skipif mysql # not compatible
query I rowsort label-2207
SELECT - - 45 * 98 + + 3 + 26 + + + COUNT ( * )
----
4440

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2208
SELECT DISTINCT - 55 * 36 * 93 + + COUNT( + ( CASE + 73 WHEN - 63 THEN NULL WHEN + 60 THEN + 29 + - 21 + - ( + - 31 ) END ) ) DIV + - 1 * - 57 AS col0
----
-184140

skipif mysql # not compatible
query I rowsort label-2208
SELECT DISTINCT - 55 * 36 * 93 + + COUNT ( + ( CASE + 73 WHEN - 63 THEN NULL WHEN + 60 THEN + 29 + - 21 + - ( + - 31 ) END ) ) / + - 1 * - 57 AS col0
----
-184140

query I rowsort
SELECT 23 + + 66 AS col0
----
89

query I rowsort
SELECT 40 + + - 94 + - 73 AS col0
----
-127

onlyif mysql # aggregate syntax: 
query II rowsort label-2211
SELECT - + 87, MIN( 77 ) * - 73 + + + 46 AS col0
----
-87
-5575

skipif mysql # not compatible
query II rowsort label-2211
SELECT - + 87, MIN ( 77 ) * - 73 + + + 46 AS col0
----
-87
-5575

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2212
SELECT ALL - + COALESCE ( - 41, - 61, - CAST( NULL AS SIGNED ) ) + - 32 + 43 AS col0
----
52

skipif mysql # not compatible
query I rowsort label-2212
SELECT ALL - + COALESCE ( - 41, - 61, - CAST ( NULL AS INTEGER ) ) + - 32 + 43 AS col0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-2213
SELECT ALL + 61 * + + 42 * COUNT( * ) + + 26 - 39 + + 50
----
2599

skipif mysql # not compatible
query I rowsort label-2213
SELECT ALL + 61 * + + 42 * COUNT ( * ) + + 26 - 39 + + 50
----
2599

onlyif mysql # aggregate syntax: 
query I rowsort label-2214
SELECT ALL + MAX( ALL + 1 ) + + - 72 col0
----
-71

skipif mysql # not compatible
query I rowsort label-2214
SELECT ALL + MAX ( ALL + 1 ) + + - 72 col0
----
-71

onlyif mysql # aggregate syntax: 
query II rowsort label-2215
SELECT 47, - COUNT( * ) * + + COUNT( * ) * + 8 AS col2
----
47
-8

skipif mysql # not compatible
query II rowsort label-2215
SELECT 47, - COUNT ( * ) * + + COUNT ( * ) * + 8 AS col2
----
47
-8

query I rowsort
SELECT ( + - 79 ) + + + 2 AS col2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2217
SELECT DISTINCT + + 78 + + + COUNT( * )
----
79

skipif mysql # not compatible
query I rowsort label-2217
SELECT DISTINCT + + 78 + + + COUNT ( * )
----
79

query I rowsort
SELECT + 74 + + 91 AS col2
----
165

query II rowsort
SELECT - - 71 AS col0, 7 AS col1
----
71
7

query I rowsort
SELECT ALL + 37 + + 84
----
121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2221
SELECT DISTINCT - - MAX( - 90 ) DIV + 95 * CAST( MIN( DISTINCT + 84 ) AS SIGNED ) * MIN( 60 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2221
SELECT DISTINCT - - MAX ( - 90 ) / + 95 * CAST ( MIN ( DISTINCT + 84 ) AS INTEGER ) * MIN ( 60 ) AS col0
----
0

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

query I rowsort
SELECT + 31 - + 72
----
-41

query I rowsort
SELECT ALL + ( 48 ) * 80 AS col0
----
3840

query I rowsort
SELECT 35 - + + 53
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2226
SELECT ALL - 49 - + + 5 col1, MAX( + + 2 ) DIV ( + COALESCE ( MIN( ALL + 57 ), 5 DIV + + 59 - - SUM( ALL + 1 ) + - 25 - - COUNT( * ) - + 17 + + 72 * - ( - 10 ) * + 32 * - 99 DIV - - ( - 13 ), - 76, + 74 ) ) * - 86 + + 55 + + ( + - 17 ) AS col1
----
-54
38

skipif mysql # not compatible
query II rowsort label-2226
SELECT ALL - 49 - + + 5 col1, MAX ( + + 2 ) / ( + COALESCE ( MIN ( ALL + 57 ), 5 / + + 59 - - SUM ( ALL + 1 ) + - 25 - - COUNT ( * ) - + 17 + + 72 * - ( - 10 ) * + 32 * - 99 / - - ( - 13 ), - 76, + 74 ) ) * - 86 + + 55 + + ( + - 17 ) AS col1
----
-54
38

onlyif mysql # aggregate syntax: 
query I rowsort label-2227
SELECT ALL - CASE 62 WHEN - COALESCE ( - - 82, - NULLIF ( + 60, - COUNT( DISTINCT - + COALESCE ( 26, - 77 ) ) - + + 27 ) + - - 89, + 10 ) * + COUNT( * ) * 78 THEN - 61 - 28 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2227
SELECT ALL - CASE 62 WHEN - COALESCE ( - - 82, - NULLIF ( + 60, - COUNT ( DISTINCT - + COALESCE ( 26, - 77 ) ) - + + 27 ) + - - 89, + 10 ) * + COUNT ( * ) * 78 THEN - 61 - 28 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2228
SELECT + SUM( DISTINCT - 33 ) DIV + + 59 + - - NULLIF ( - 84, 48 * + 58 ) - - 75
----
-9

skipif mysql # not compatible
query I rowsort label-2228
SELECT + SUM ( DISTINCT - 33 ) / + + 59 + - - NULLIF ( - 84, 48 * + 58 ) - - 75
----
-9

query II rowsort
SELECT DISTINCT - ( - 17 ) AS col2, - 3 + - 38
----
17
-41

query I rowsort
SELECT 50 * + + 87
----
4350

query I rowsort
SELECT 85 * + - 55 col2
----
-4675

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2233
SELECT DISTINCT 36 DIV 36, + 20 AS col1
----
1
20

skipif mysql # not compatible
query II rowsort label-2233
SELECT DISTINCT 36 / 36, + 20 AS col1
----
1
20

query I rowsort
SELECT 75 * + + 72 * - 3
----
-16200

onlyif mysql # DIV for integer division: 
query I rowsort label-2235
SELECT ALL 71 * + COALESCE ( + 87, + 67 * 31 * + + 87 DIV - 18 * 81, + - 77 - - 19 )
----
6177

skipif mysql # not compatible
query I rowsort label-2235
SELECT ALL 71 * + COALESCE ( + 87, + 67 * 31 * + + 87 / - 18 * 81, + - 77 - - 19 )
----
6177

onlyif mysql # aggregate syntax: 
query I rowsort label-2236
SELECT MIN( DISTINCT - + 35 ) AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-2236
SELECT MIN ( DISTINCT - + 35 ) AS col0
----
-35

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

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

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

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

query I rowsort
SELECT 65 + + + 78
----
143

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

skipif mysql # not compatible
query I rowsort label-2240
SELECT COUNT ( * ) * + 61 / + 67 * 62
----
0

query I rowsort
SELECT ALL 35 * + 75 AS col1
----
2625

onlyif mysql # aggregate syntax: 
query I rowsort label-2242
SELECT - 72 - - COUNT( * ) AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-2242
SELECT - 72 - - COUNT ( * ) AS col0
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-2243
SELECT DISTINCT 11 + - + 69 + - COUNT( * )
----
-59

skipif mysql # not compatible
query I rowsort label-2243
SELECT DISTINCT 11 + - + 69 + - COUNT ( * )
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2244
SELECT + + MIN( DISTINCT + + 63 ) * - 1 - - 61 * + + 6 * 3 * + - 57 * + COUNT( * ) + COALESCE ( - - CAST( + MAX( DISTINCT + 8 ) AS SIGNED ), 16 - + + 73 ) * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2244
SELECT + + MIN ( DISTINCT + + 63 ) * - 1 - - 61 * + + 6 * 3 * + - 57 * + COUNT ( * ) + COALESCE ( - - CAST ( + MAX ( DISTINCT + 8 ) AS INTEGER ), 16 - + + 73 ) * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2245
SELECT ALL COUNT( * ) + - + 21 DIV 16 col1
----
0

skipif mysql # not compatible
query I rowsort label-2245
SELECT ALL COUNT ( * ) + - + 21 / 16 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2246
SELECT - 99 + + + NULLIF ( COUNT( * ), 72 * + ( + - 68 ) + + 23 ) * + 75 col1
----
-24

skipif mysql # not compatible
query I rowsort label-2246
SELECT - 99 + + + NULLIF ( COUNT ( * ), 72 * + ( + - 68 ) + + 23 ) * + 75 col1
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-2247
SELECT NULLIF ( 51, + - COUNT( + 18 ) + - 34 )
----
51

skipif mysql # not compatible
query I rowsort label-2247
SELECT NULLIF ( 51, + - COUNT ( + 18 ) + - 34 )
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-2248
SELECT ALL - COUNT( * ) + + 85 AS col1, 63 * - - COUNT( * ) * - + 92 AS col1
----
84
-5796

skipif mysql # not compatible
query II rowsort label-2248
SELECT ALL - COUNT ( * ) + + 85 AS col1, 63 * - - COUNT ( * ) * - + 92 AS col1
----
84
-5796

onlyif mysql # aggregate syntax: 
query I rowsort label-2249
SELECT ALL MAX( DISTINCT - 80 ) + - 5 + + 68
----
-17

skipif mysql # not compatible
query I rowsort label-2249
SELECT ALL MAX ( DISTINCT - 80 ) + - 5 + + 68
----
-17

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2250
SELECT + + 21 - 72 + - 15 + + - NULLIF ( + 73, CASE - 82 WHEN - - CAST( NULL AS DECIMAL ) THEN NULL ELSE 44 END ) * - ( - 86 ) * + - 92
----
577510

skipif mysql # not compatible
query I rowsort label-2250
SELECT + + 21 - 72 + - 15 + + - NULLIF ( + 73, CASE - 82 WHEN - - CAST ( NULL AS REAL ) THEN NULL ELSE 44 END ) * - ( - 86 ) * + - 92
----
577510

query II rowsort
SELECT ALL 41 * + + 21 col0, 77
----
861
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2252
SELECT - + NULLIF ( SUM( - 5 ), - + 92 + + COUNT( * ) )
----
5

skipif mysql # not compatible
query I rowsort label-2252
SELECT - + NULLIF ( SUM ( - 5 ), - + 92 + + COUNT ( * ) )
----
5

query II rowsort
SELECT + 29 + - 90 AS col0, + 52
----
-61
52

query I rowsort
SELECT ALL 98 - + + 46 + 79
----
131

query I rowsort
SELECT DISTINCT NULLIF ( + 95, + 85 * - + 67 / 77 + - 99 * COALESCE ( - ( + - 37 ), + 31 + ( 92 ) ) )
----
95

onlyif mysql # aggregate syntax: 
query II rowsort label-2256
SELECT - 65 AS col0, COUNT( * ) * - + COUNT( * ) + 58 AS col0
----
-65
57

skipif mysql # not compatible
query II rowsort label-2256
SELECT - 65 AS col0, COUNT ( * ) * - + COUNT ( * ) + 58 AS col0
----
-65
57

query I rowsort
SELECT + 31 + - 17
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-2258
SELECT ALL + 91 DIV 69 * 36 AS col0
----
36

skipif mysql # not compatible
query I rowsort label-2258
SELECT ALL + 91 / 69 * 36 AS col0
----
36

query I rowsort
SELECT + 47 * - ( - 24 ) * 76 + + 9
----
85737

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

query I rowsort
SELECT - 72 * - 37
----
2664

query I rowsort
SELECT ALL - 1 * - - 27
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-2263
SELECT - COUNT( * ) * + ( + 12 ) * 22 AS col2
----
-264

skipif mysql # not compatible
query I rowsort label-2263
SELECT - COUNT ( * ) * + ( + 12 ) * 22 AS col2
----
-264

query I rowsort
SELECT ALL - 28 * + - 28 col1
----
784

query I rowsort
SELECT DISTINCT + ( + 58 ) AS col1
----
58

query I rowsort
SELECT - COALESCE ( ( + 65 ), - + 55 ) + - 96
----
-161

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2268
SELECT - + 7 * - + 9 + - - CAST( + + CAST( + + 94 AS SIGNED ) AS SIGNED )
----
157

skipif mysql # not compatible
query I rowsort label-2268
SELECT - + 7 * - + 9 + - - CAST ( + + CAST ( + + 94 AS INTEGER ) AS INTEGER )
----
157

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2269
SELECT ALL - 6 DIV - COUNT( * ) + 15 + + + 43 * - 18
----
-753

skipif mysql # not compatible
query I rowsort label-2269
SELECT ALL - 6 / - COUNT ( * ) + 15 + + + 43 * - 18
----
-753

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2271
SELECT - + 81 * + + 86 + + + COALESCE ( - - COUNT( * ), - 25 )
----
-6965

skipif mysql # not compatible
query I rowsort label-2271
SELECT - + 81 * + + 86 + + + COALESCE ( - - COUNT ( * ), - 25 )
----
-6965

onlyif mysql # aggregate syntax: 
query I rowsort label-2272
SELECT ALL - 57 * - COUNT( * ) + + 94 AS col2
----
151

skipif mysql # not compatible
query I rowsort label-2272
SELECT ALL - 57 * - COUNT ( * ) + + 94 AS col2
----
151

query II rowsort
SELECT - 18, 74 AS col2
----
-18
74

query I rowsort
SELECT + + 84 * 44 * - ( 86 ) AS col1
----
-317856

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2276
SELECT + 0 * - COUNT( * ) + + 71 + - 92 AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-2276
SELECT + 0 * - COUNT ( * ) + + 71 + - 92 AS col2
----
-21

query I rowsort
SELECT + + 98 + + 87
----
185

query I rowsort
SELECT + - 24 * - 2 col1
----
48

query II rowsort
SELECT ALL - 62 AS col1, + 58 AS col1
----
-62
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2280
SELECT + + 49 * + CASE + 57 WHEN + 69 THEN NULL WHEN - 95 + + 23 + 50 THEN ( - 99 ) * + CAST( NULL AS SIGNED ) END - + - 4 + - 95 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2280
SELECT + + 49 * + CASE + 57 WHEN + 69 THEN NULL WHEN - 95 + + 23 + 50 THEN ( - 99 ) * + CAST ( NULL AS INTEGER ) END - + - 4 + - 95 col1
----
NULL

query I rowsort
SELECT + 43 + 80 AS col1
----
123

query I rowsort
SELECT + 14 * - + 35
----
-490

onlyif mysql # aggregate syntax: 
query I rowsort label-2283
SELECT + COALESCE ( - - 83, - MAX( 83 ) + - COUNT( * ) * - 44 + 40 ) + - - SUM( + 67 )
----
150

skipif mysql # not compatible
query I rowsort label-2283
SELECT + COALESCE ( - - 83, - MAX ( 83 ) + - COUNT ( * ) * - 44 + 40 ) + - - SUM ( + 67 )
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-2284
SELECT DISTINCT 60 * ( ( MIN( - + 17 ) ) ) * + 86
----
-87720

skipif mysql # not compatible
query I rowsort label-2284
SELECT DISTINCT 60 * ( ( MIN ( - + 17 ) ) ) * + 86
----
-87720

query I rowsort
SELECT ALL NULLIF ( + + 91, 91 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2286
SELECT ALL 65 + 56 * - + 63 * + COUNT( * ) * - CAST( NULL AS DECIMAL ) + + + CAST( 45 AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2286
SELECT ALL 65 + 56 * - + 63 * + COUNT ( * ) * - CAST ( NULL AS REAL ) + + + CAST ( 45 AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2287
SELECT - CAST( NULL AS SIGNED ) / + 13 * - 48 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2287
SELECT - CAST ( NULL AS INTEGER ) / + 13 * - 48 col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2288
SELECT + 30 DIV + 86 * 41 DIV - 85 + 27 + - 9 - - + 2 AS col1
----
20

skipif mysql # not compatible
query I rowsort label-2288
SELECT + 30 / + 86 * 41 / - 85 + 27 + - 9 - - + 2 AS col1
----
20

query I rowsort
SELECT - 30 + - 46 - - 53
----
-23

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

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

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

skipif mysql # not compatible
query I rowsort label-2291
SELECT - 6 / - + 27
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2292
SELECT + CAST( NULL AS SIGNED ) * + - 48 * 25 * + MIN( 58 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2292
SELECT + CAST ( NULL AS INTEGER ) * + - 48 * 25 * + MIN ( 58 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2293
SELECT DISTINCT - 23 DIV + 28 + + ( COUNT( * ) ) AS col1, + 24
----
1
24

skipif mysql # not compatible
query II rowsort label-2293
SELECT DISTINCT - 23 / + 28 + + ( COUNT ( * ) ) AS col1, + 24
----
1
24

onlyif mysql # DIV for integer division: 
query I rowsort label-2294
SELECT DISTINCT - NULLIF ( + 88, + 67 ) DIV - 93 + - 78 * + 39
----
-3042

skipif mysql # not compatible
query I rowsort label-2294
SELECT DISTINCT - NULLIF ( + 88, + 67 ) / - 93 + - 78 * + 39
----
-3042

onlyif mysql # DIV for integer division: 
query I rowsort label-2295
SELECT ALL + 39 DIV - - 51 + - 4 col2
----
-4

skipif mysql # not compatible
query I rowsort label-2295
SELECT ALL + 39 / - - 51 + - 4 col2
----
-4

query I rowsort
SELECT ALL + 76 * + 30
----
2280

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2297
SELECT ALL + ( - 41 ) DIV - CASE 43 WHEN - - 81 - + COUNT( * ) THEN NULL ELSE + 39 END + COUNT( * ) + 60
----
62

skipif mysql # not compatible
query I rowsort label-2297
SELECT ALL + ( - 41 ) / - CASE 43 WHEN - - 81 - + COUNT ( * ) THEN NULL ELSE + 39 END + COUNT ( * ) + 60
----
62

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

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

query II rowsort
SELECT + COALESCE ( + - 72, - - 10 + - 3 ) AS col1, 48
----
-72
48

onlyif mysql # aggregate syntax: 
query II rowsort label-2300
SELECT 87 + 97 AS col0, 94 + + COUNT( * )
----
184
95

skipif mysql # not compatible
query II rowsort label-2300
SELECT 87 + 97 AS col0, 94 + + COUNT ( * )
----
184
95

query I rowsort
SELECT - 17 * 27
----
-459

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2303
SELECT DISTINCT + - CAST( + 93 AS SIGNED ) * 25
----
-2325

skipif mysql # not compatible
query I rowsort label-2303
SELECT DISTINCT + - CAST ( + 93 AS INTEGER ) * 25
----
-2325

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2304
SELECT - COUNT( * ) * 26 - - 27 + - 94 * - CAST( - COUNT( * ) AS SIGNED ) * + - ( - 7 ) AS col0
----
-657

skipif mysql # not compatible
query I rowsort label-2304
SELECT - COUNT ( * ) * 26 - - 27 + - 94 * - CAST ( - COUNT ( * ) AS INTEGER ) * + - ( - 7 ) AS col0
----
-657

query I rowsort
SELECT ALL + + 4 * - 62
----
-248

onlyif mysql # DIV for integer division: 
query I rowsort label-2306
SELECT 56 + + 56 DIV - 84 * + 26 + - 23 AS col1
----
33

skipif mysql # not compatible
query I rowsort label-2306
SELECT 56 + + 56 / - 84 * + 26 + - 23 AS col1
----
33

query I rowsort
SELECT + 11 + - - CASE 10 WHEN + + 64 THEN NULL WHEN - 52 / + 67 * + + 96 THEN 0 - + 61 END * + ( + + 81 ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2308
SELECT ALL MIN( DISTINCT 82 ) AS col2
----
82

skipif mysql # not compatible
query I rowsort label-2308
SELECT ALL MIN ( DISTINCT 82 ) AS col2
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2309
SELECT - 20 * - - CAST( NULL AS SIGNED ) / + + 75
----
NULL

skipif mysql # not compatible
query I rowsort label-2309
SELECT - 20 * - - CAST ( NULL AS INTEGER ) / + + 75
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2310
SELECT DISTINCT + - CASE 98 WHEN + 6 + + ( + + 25 ) / - 17 THEN ( + CAST( - COUNT( * ) AS SIGNED ) ) END / + COUNT( * ) * - - 87
----
NULL

skipif mysql # not compatible
query I rowsort label-2310
SELECT DISTINCT + - CASE 98 WHEN + 6 + + ( + + 25 ) / - 17 THEN ( + CAST ( - COUNT ( * ) AS INTEGER ) ) END / + COUNT ( * ) * - - 87
----
NULL

query I rowsort
SELECT 70 - 84 AS col0
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-2312
SELECT 40 DIV - 90
----
0

skipif mysql # not compatible
query I rowsort label-2312
SELECT 40 / - 90
----
0

query I rowsort
SELECT 76 * - 79 AS col0
----
-6004

query I rowsort
SELECT ALL 26 * + 54 AS col0
----
1404

query I rowsort
SELECT 60 + - 96
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-2316
SELECT DISTINCT + COUNT( * ) * + 21 AS col1
----
21

skipif mysql # not compatible
query I rowsort label-2316
SELECT DISTINCT + COUNT ( * ) * + 21 AS col1
----
21

query I rowsort
SELECT ALL - 91 + + - 75 AS col0
----
-166

query I rowsort
SELECT ALL + 28 + - 20
----
8

query I rowsort
SELECT ALL - 73 + - 86 * + 88
----
-7641

query I rowsort
SELECT ALL 48 + - 19 - + + 23 * + 2
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2321
SELECT ALL COALESCE ( + 54, 12 * + 94 * + - SUM( DISTINCT - 7 ) * + CAST( NULL AS SIGNED ) + 45, 5 ) + + 44 AS col0, - 13 * - 91 - 33
----
98
1150

skipif mysql # not compatible
query II rowsort label-2321
SELECT ALL COALESCE ( + 54, 12 * + 94 * + - SUM ( DISTINCT - 7 ) * + CAST ( NULL AS INTEGER ) + 45, 5 ) + + 44 AS col0, - 13 * - 91 - 33
----
98
1150

query I rowsort
SELECT ( 87 ) * - + 19 * + - 59 + - 0 * 51 AS col1
----
97527

query I rowsort
SELECT 81 + - 78
----
3

query I rowsort
SELECT 26 * 49
----
1274

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2326
SELECT DISTINCT COUNT( * ) DIV + CASE WHEN NOT NULL BETWEEN NULL AND + NULLIF ( + - ( - 35 ), COALESCE ( - + COUNT( * ), COUNT( 95 ) ) ) THEN NULL ELSE - 72 END col1
----
0

skipif mysql # not compatible
query I rowsort label-2326
SELECT DISTINCT COUNT ( * ) / + CASE WHEN NOT NULL BETWEEN NULL AND + NULLIF ( + - ( - 35 ), COALESCE ( - + COUNT ( * ), COUNT ( 95 ) ) ) THEN NULL ELSE - 72 END col1
----
0

query I rowsort
SELECT ALL 76 + 78
----
154

query I rowsort
SELECT ALL - - 73 * 21 AS col2
----
1533

query I rowsort
SELECT 76 + + 50 AS col2
----
126

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

query II rowsort
SELECT + 97 AS col2, + 96 AS col2
----
97
96

query II rowsort
SELECT + 41 * - COALESCE ( - 98, 93 ) + - ( - 37 ) * ( - 1 ) + + - 79 + 36, - 20 * 63 col1
----
3938
-1260

onlyif mysql # DIV for integer division: 
query I rowsort label-2333
SELECT - 77 DIV + 60 + - - 89
----
88

skipif mysql # not compatible
query I rowsort label-2333
SELECT - 77 / + 60 + - - 89
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2334
SELECT CAST( NULL AS SIGNED ) + 50 * + CASE COUNT( * ) WHEN + + CASE - 90 WHEN 95 * + 43 + 25 + AVG ( DISTINCT 10 ) + - 58 + 86 * + 89 + - 38 * + CAST( 83 AS SIGNED ) THEN CAST( - - 82 AS SIGNED ) + 88 WHEN + + 87 / + - 1 THEN + CAST( + - 76 AS SIGNED ) + COUNT( * ) + + 85 END THEN CAST( NULL AS SIGNED ) + + CASE 86 WHEN - + ( - SUM( + 96 ) ) THEN NULL ELSE 10 END ELSE + 91 END * SUM( 40 ) + 17 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2334
SELECT CAST ( NULL AS INTEGER ) + 50 * + CASE COUNT ( * ) WHEN + + CASE - 90 WHEN 95 * + 43 + 25 + AVG ( DISTINCT 10 ) + - 58 + 86 * + 89 + - 38 * + CAST ( 83 AS INTEGER ) THEN CAST ( - - 82 AS INTEGER ) + 88 WHEN + + 87 / + - 1 THEN + CAST ( + - 76 AS INTEGER ) + COUNT ( * ) + + 85 END THEN CAST ( NULL AS INTEGER ) + + CASE 86 WHEN - + ( - SUM ( + 96 ) ) THEN NULL ELSE 10 END ELSE + 91 END * SUM ( 40 ) + 17 AS col0
----
NULL

query I rowsort
SELECT 92 + + - 42 AS col2
----
50

query I rowsort
SELECT - 68 + 84 * - 57 * - - 49
----
-234680

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2338
SELECT - 91 * + + CAST( - 84 AS SIGNED )
----
7644

skipif mysql # not compatible
query I rowsort label-2338
SELECT - 91 * + + CAST ( - 84 AS INTEGER )
----
7644

query I rowsort
SELECT 71 * - + 78 + + 36 AS col2
----
-5502

onlyif mysql # DIV for integer division: 
query I rowsort label-2340
SELECT ALL 65 DIV 98
----
0

skipif mysql # not compatible
query I rowsort label-2340
SELECT ALL 65 / 98
----
0

query I rowsort
SELECT ALL + 38 * - 73 * NULLIF ( 59, + 6 + + 51 ) * + 46 + 99 + 29 AS col1
----
-7528508

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2343
SELECT MAX( DISTINCT + 22 ) + ( + - CASE - 4 WHEN - 68 THEN + 31 * + 97 + - - 92 + + 91 * + 15 END ) / - 47 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2343
SELECT MAX ( DISTINCT + 22 ) + ( + - CASE - 4 WHEN - 68 THEN + 31 * + 97 + - - 92 + + 91 * + 15 END ) / - 47 AS col0
----
NULL

query II rowsort
SELECT 17 AS col0, 65
----
17
65

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2346
SELECT 66 + - 48 / + COALESCE ( 66, MIN( DISTINCT + 83 ) + - COUNT( DISTINCT + 79 ), + COUNT( * ) ) / + - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2346
SELECT 66 + - 48 / + COALESCE ( 66, MIN ( DISTINCT + 83 ) + - COUNT ( DISTINCT + 79 ), + COUNT ( * ) ) / + - CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2347
SELECT DISTINCT + 59 + 33 + - - COUNT( * ) AS col2
----
93

skipif mysql # not compatible
query I rowsort label-2347
SELECT DISTINCT + 59 + 33 + - - COUNT ( * ) AS col2
----
93

query I rowsort
SELECT ALL - 5 + + - 19
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2349
SELECT ALL 72 + + 71 + - CAST( NULL AS SIGNED ) * - 86 * - 45 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2349
SELECT ALL 72 + + 71 + - CAST ( NULL AS INTEGER ) * - 86 * - 45 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2350
SELECT MIN( DISTINCT + 9 ) + - 7 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-2350
SELECT MIN ( DISTINCT + 9 ) + - 7 AS col1
----
2

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2351
SELECT ALL - 69 DIV + + CASE - + 47 WHEN - COALESCE ( - CASE + 16 WHEN + ( + + AVG ( DISTINCT + 24 ) ) THEN 71 WHEN + 54 + - 31 THEN NULL ELSE 43 END, + + 8 ) THEN NULL WHEN 7 THEN NULL ELSE CAST( 99 AS SIGNED ) END AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2351
SELECT ALL - 69 / + + CASE - + 47 WHEN - COALESCE ( - CASE + 16 WHEN + ( + + AVG ( DISTINCT + 24 ) ) THEN 71 WHEN + 54 + - 31 THEN NULL ELSE 43 END, + + 8 ) THEN NULL WHEN 7 THEN NULL ELSE CAST ( 99 AS INTEGER ) END AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2352
SELECT - 27 AS col2, - 6 * + CAST( NULL AS SIGNED ) * MAX( - 49 )
----
-27
NULL

skipif mysql # not compatible
query II rowsort label-2352
SELECT - 27 AS col2, - 6 * + CAST ( NULL AS INTEGER ) * MAX ( - 49 )
----
-27
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2353
SELECT 1 + - 54 + - - 53 + - COUNT( * ) * - + 86 * 47 AS col1
----
4042

skipif mysql # not compatible
query I rowsort label-2353
SELECT 1 + - 54 + - - 53 + - COUNT ( * ) * - + 86 * 47 AS col1
----
4042

query II rowsort
SELECT - 80, 18 * - + 71 * - 39 + + 33 AS col2
----
-80
49875

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

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

query I rowsort
SELECT NULLIF ( - 73, - 32 + 72 ) + + 53
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-2357
SELECT ALL + 97 + - SUM( ALL - ( 47 ) ) + + - ( 44 ) + - 87
----
13

skipif mysql # not compatible
query I rowsort label-2357
SELECT ALL + 97 + - SUM ( ALL - ( 47 ) ) + + - ( 44 ) + - 87
----
13

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

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

query I rowsort
SELECT 84 * - - 61 AS col1
----
5124

onlyif mysql # DIV for integer division: 
query II rowsort label-2360
SELECT 91 DIV + - 64 AS col0, 23
----
-1
23

skipif mysql # not compatible
query II rowsort label-2360
SELECT 91 / + - 64 AS col0, 23
----
-1
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2361
SELECT MIN( 20 ) - - - 38 * + 80
----
-3020

skipif mysql # not compatible
query I rowsort label-2361
SELECT MIN ( 20 ) - - - 38 * + 80
----
-3020

query II rowsort
SELECT ALL 92 AS col0, 65 AS col1
----
92
65

query II rowsort
SELECT 46 AS col1, - 90 AS col0
----
46
-90

query I rowsort
SELECT ALL - 43 + - 52
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-2365
SELECT ALL COUNT( DISTINCT + ( 64 ) ) - + 64
----
-63

skipif mysql # not compatible
query I rowsort label-2365
SELECT ALL COUNT ( DISTINCT + ( 64 ) ) - + 64
----
-63

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

skipif mysql # not compatible
query I rowsort label-2366
SELECT + 64 / + 74
----
0

query II rowsort
SELECT ALL + 81, - 78 AS col2
----
81
-78

query II rowsort
SELECT + - 71, - 41 AS col1
----
-71
-41

query I rowsort
SELECT ( + 70 ) col2
----
70

onlyif mysql # DIV for integer division: 
query II rowsort label-2370
SELECT ALL + 58 AS col2, + 79 DIV 19 AS col1
----
58
4

skipif mysql # not compatible
query II rowsort label-2370
SELECT ALL + 58 AS col2, + 79 / 19 AS col1
----
58
4

query I rowsort
SELECT + 39 * - - COALESCE ( + 76, + 84 )
----
2964

query II rowsort
SELECT ALL + + 92 AS col1, 34
----
92
34

onlyif mysql # aggregate syntax: 
query II rowsort label-2373
SELECT COUNT( * ), + CASE - 26 WHEN + - 61 THEN NULL WHEN - 67 + + - 26 * - 80 + - - 97 THEN - 83 - + - 35 + - 90 END AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-2373
SELECT COUNT ( * ), + CASE - 26 WHEN + - 61 THEN NULL WHEN - 67 + + - 26 * - 80 + - - 97 THEN - 83 - + - 35 + - 90 END AS col1
----
1
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2374
SELECT ALL 36 * CAST( NULL AS SIGNED ) / + 40 * ( + ( + - 90 ) ), 98 col1
----
NULL
98

skipif mysql # not compatible
query II rowsort label-2374
SELECT ALL 36 * CAST ( NULL AS INTEGER ) / + 40 * ( + ( + - 90 ) ), 98 col1
----
NULL
98

query I rowsort
SELECT + + 11 * - 76 col2
----
-836

onlyif mysql # aggregate syntax: 
query I rowsort label-2376
SELECT DISTINCT 54 * + + MAX( + - 88 )
----
-4752

skipif mysql # not compatible
query I rowsort label-2376
SELECT DISTINCT 54 * + + MAX ( + - 88 )
----
-4752

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2377
SELECT + SUM( ALL - ( - - 2 ) ) * CAST( NULL AS SIGNED )
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2378
SELECT + 41 DIV - - 95
----
0

skipif mysql # not compatible
query I rowsort label-2378
SELECT + 41 / - - 95
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2379
SELECT ALL + 57 * 31 DIV 37 + - 1 AS col2
----
46

skipif mysql # not compatible
query I rowsort label-2379
SELECT ALL + 57 * 31 / 37 + - 1 AS col2
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2380
SELECT + 53 * + COUNT( * ) DIV COUNT( * ) - - COUNT( * ) AS col2
----
54

skipif mysql # not compatible
query I rowsort label-2380
SELECT + 53 * + COUNT ( * ) / COUNT ( * ) - - COUNT ( * ) AS col2
----
54

query II rowsort
SELECT + 5, 85 AS col0
----
5
85

query I rowsort
SELECT + 84 * + 86 AS col1
----
7224

onlyif mysql # aggregate syntax: 
query I rowsort label-2383
SELECT ALL COUNT( * ) * 92 + + 54 * ( COUNT( * ) ) AS col2
----
146

skipif mysql # not compatible
query I rowsort label-2383
SELECT ALL COUNT ( * ) * 92 + + 54 * ( COUNT ( * ) ) AS col2
----
146

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2384
SELECT ALL - 73 + + 66 * - 34 * - MAX( + + ( + + 9 ) ) / 18 * - - COUNT( * ) / - + CAST( NULL AS SIGNED ) - - 53 * CAST( + 6 AS SIGNED ) - + + 86
----
NULL

skipif mysql # not compatible
query I rowsort label-2384
SELECT ALL - 73 + + 66 * - 34 * - MAX ( + + ( + + 9 ) ) / 18 * - - COUNT ( * ) / - + CAST ( NULL AS INTEGER ) - - 53 * CAST ( + 6 AS INTEGER ) - + + 86
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2385
SELECT + COUNT( * ) + CAST( - 32 AS SIGNED ) + - ( COUNT( * ) ) * + CASE + 81 WHEN - - 22 * COUNT( * ) THEN NULL ELSE + + 12 + - 73 END - + - COUNT( * )
----
31

skipif mysql # not compatible
query I rowsort label-2385
SELECT + COUNT ( * ) + CAST ( - 32 AS INTEGER ) + - ( COUNT ( * ) ) * + CASE + 81 WHEN - - 22 * COUNT ( * ) THEN NULL ELSE + + 12 + - 73 END - + - COUNT ( * )
----
31

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

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

query II rowsort
SELECT DISTINCT - 83 * + 48, 54 AS col2
----
-3984
54

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2388
SELECT DISTINCT + 28 + - - CAST( NULL AS SIGNED ), - 73 AS col1
----
NULL
-73

skipif mysql # not compatible
query II rowsort label-2388
SELECT DISTINCT + 28 + - - CAST ( NULL AS INTEGER ), - 73 AS col1
----
NULL
-73

query I rowsort
SELECT DISTINCT COALESCE ( - 76, - + 64 )
----
-76

query II rowsort
SELECT DISTINCT 0 - + 0 AS col0, 48 AS col1
----
0
48

onlyif mysql # aggregate syntax: 
query I rowsort label-2391
SELECT ALL + 11 - - 51 + + 82 + + 82 * COUNT( * ) AS col2
----
226

skipif mysql # not compatible
query I rowsort label-2391
SELECT ALL + 11 - - 51 + + 82 + + 82 * COUNT ( * ) AS col2
----
226

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2393
SELECT ALL - 11 - + 52 - + + COUNT( * ) col0
----
-64

skipif mysql # not compatible
query I rowsort label-2393
SELECT ALL - 11 - + 52 - + + COUNT ( * ) col0
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-2394
SELECT ALL COALESCE ( 73, + + 17, 92 * 38 * 12 * SUM( ALL - 31 ) + - 45 )
----
73

skipif mysql # not compatible
query I rowsort label-2394
SELECT ALL COALESCE ( 73, + + 17, 92 * 38 * 12 * SUM ( ALL - 31 ) + - 45 )
----
73

query I rowsort
SELECT - 14 * - 45 * + 66
----
41580

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

skipif mysql # not compatible
query I rowsort label-2396
SELECT + ( + - COUNT ( * ) ) * 13 / + + 94
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2398
SELECT DISTINCT + SUM( DISTINCT + - 78 ) * + COALESCE ( - 92, 94 + - 78 )
----
7176

skipif mysql # not compatible
query I rowsort label-2398
SELECT DISTINCT + SUM ( DISTINCT + - 78 ) * + COALESCE ( - 92, 94 + - 78 )
----
7176

query II rowsort
SELECT DISTINCT + 84 * - 35, ( - 50 ) AS col2
----
-2940
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2400
SELECT - + 61 DIV CAST( COUNT( * ) AS SIGNED ) + + 69 AS col2
----
8

skipif mysql # not compatible
query I rowsort label-2400
SELECT - + 61 / CAST ( COUNT ( * ) AS INTEGER ) + + 69 AS col2
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2401
SELECT ALL + 51 * - - 64 * 58 - + SUM( ALL + 89 )
----
189223

skipif mysql # not compatible
query I rowsort label-2401
SELECT ALL + 51 * - - 64 * 58 - + SUM ( ALL + 89 )
----
189223

onlyif mysql # aggregate syntax: 
query II rowsort label-2402
SELECT ALL + ( - 80 ) AS col2, COALESCE ( + COUNT( * ), - 20 + - + COUNT( * ) )
----
-80
1

skipif mysql # not compatible
query II rowsort label-2402
SELECT ALL + ( - 80 ) AS col2, COALESCE ( + COUNT ( * ), - 20 + - + COUNT ( * ) )
----
-80
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2403
SELECT + SUM( DISTINCT - - 11 ) + CAST( - 37 AS SIGNED ) AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-2403
SELECT + SUM ( DISTINCT - - 11 ) + CAST ( - 37 AS INTEGER ) AS col2
----
-26

query I rowsort
SELECT ALL + CASE - + 14 WHEN 86 THEN NULL ELSE 41 END AS col0
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2405
SELECT + CASE + + COUNT( DISTINCT + 25 ) WHEN COUNT( * ) + - - 28 + - - 33 THEN NULL WHEN - CAST( + - 95 AS SIGNED ) - - ( - 77 ) THEN - 15 * + 34 - CASE - ( + + CAST( NULL AS SIGNED ) ) WHEN 47 + 42 THEN - 67 * - 92 WHEN + 13 THEN NULL END / + + COUNT( * ) * + + NULLIF ( COUNT( * ), 58 ) + + MAX( + - 82 ) + - AVG ( DISTINCT - - 41 ) + - 79 - + 4 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2405
SELECT + CASE + + COUNT ( DISTINCT + 25 ) WHEN COUNT ( * ) + - - 28 + - - 33 THEN NULL WHEN - CAST ( + - 95 AS INTEGER ) - - ( - 77 ) THEN - 15 * + 34 - CASE - ( + + CAST ( NULL AS INTEGER ) ) WHEN 47 + 42 THEN - 67 * - 92 WHEN + 13 THEN NULL END / + + COUNT ( * ) * + + NULLIF ( COUNT ( * ), 58 ) + + MAX ( + - 82 ) + - AVG ( DISTINCT - - 41 ) + - 79 - + 4 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2406
SELECT DISTINCT 8 * - - MAX( + 66 )
----
528

skipif mysql # not compatible
query I rowsort label-2406
SELECT DISTINCT 8 * - - MAX ( + 66 )
----
528

onlyif mysql # aggregate syntax: 
query I rowsort label-2407
SELECT CASE - 43 WHEN 17 THEN NULL ELSE - COUNT( * ) + - 33 END
----
-34

skipif mysql # not compatible
query I rowsort label-2407
SELECT CASE - 43 WHEN 17 THEN NULL ELSE - COUNT ( * ) + - 33 END
----
-34

query I rowsort
SELECT ALL 43 * - 42 * + - 32
----
57792

query I rowsort
SELECT + 13 + + 94 AS col1
----
107

query I rowsort
SELECT + COALESCE ( - + 34, - 79 + + 82 ) AS col2
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-2411
SELECT DISTINCT MAX( DISTINCT - ( - - 26 ) ) * + 98 + - ( 77 )
----
-2625

skipif mysql # not compatible
query I rowsort label-2411
SELECT DISTINCT MAX ( DISTINCT - ( - - 26 ) ) * + 98 + - ( 77 )
----
-2625

onlyif mysql # aggregate syntax: 
query II rowsort label-2412
SELECT ALL COUNT( * ) * - 48 + + + 92 AS col1, 8 * ( - 91 ) + + + 38 * + 74
----
44
2084

skipif mysql # not compatible
query II rowsort label-2412
SELECT ALL COUNT ( * ) * - 48 + + + 92 AS col1, 8 * ( - 91 ) + + + 38 * + 74
----
44
2084

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2413
SELECT + 95 + 53 - + - CASE - - 69 WHEN + + COUNT( * ) THEN - - 25 WHEN - 73 * 15 + + CAST( - 24 AS SIGNED ) / + - 32 + - ( + 87 ) - - - 46 * - - 16 THEN + 39 END + + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2413
SELECT + 95 + 53 - + - CASE - - 69 WHEN + + COUNT ( * ) THEN - - 25 WHEN - 73 * 15 + + CAST ( - 24 AS INTEGER ) / + - 32 + - ( + 87 ) - - - 46 * - - 16 THEN + 39 END + + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + 71 + 27 * 42 * - 42 * 31 AS col1
----
-1476397

onlyif mysql # aggregate syntax: 
query I rowsort label-2415
SELECT DISTINCT + ( - - COUNT( * ) ) - - SUM( DISTINCT - 33 ) * + 78
----
-2573

skipif mysql # not compatible
query I rowsort label-2415
SELECT DISTINCT + ( - - COUNT ( * ) ) - - SUM ( DISTINCT - 33 ) * + 78
----
-2573

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2416
SELECT DISTINCT MAX( - 20 ) DIV + COALESCE ( + CASE + 51 WHEN + 56 * + - 79 - + 17 THEN 40 ELSE - - 16 END, + + COUNT( * ), 17 DIV - - MAX( ALL + 69 ) * 21 + - 82 * 11 ) - 85
----
-86

skipif mysql # not compatible
query I rowsort label-2416
SELECT DISTINCT MAX ( - 20 ) / + COALESCE ( + CASE + 51 WHEN + 56 * + - 79 - + 17 THEN 40 ELSE - - 16 END, + + COUNT ( * ), 17 / - - MAX ( ALL + 69 ) * 21 + - 82 * 11 ) - 85
----
-86

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2418
SELECT ALL + 79 - 76 + + 1 DIV - + COUNT( * ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-2418
SELECT ALL + 79 - 76 + + 1 / - + COUNT ( * ) AS col1
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-2419
SELECT 19 DIV 22 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2419
SELECT 19 / 22 AS col1
----
0

query I rowsort
SELECT ALL NULLIF ( + 34, - + 39 ) * - + 69
----
-2346

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2421
SELECT ( + SUM( + - 24 ) ) * - - ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2421
SELECT ( + SUM ( + - 24 ) ) * - - ( CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT 26 + 34 AS col2
----
60

query I rowsort
SELECT 35 + 38 AS col1
----
73

query I rowsort
SELECT ALL - 34 * + - 15 AS col0
----
510

query I rowsort
SELECT 51 + - 53 AS col1
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2426
SELECT - COUNT( * ) * + + 16 + - COUNT( * ) AS col0, 68 DIV 99 + + 46 + - 4 - - 94 * - - 28 AS col0
----
-17
2674

skipif mysql # not compatible
query II rowsort label-2426
SELECT - COUNT ( * ) * + + 16 + - COUNT ( * ) AS col0, 68 / 99 + + 46 + - 4 - - 94 * - - 28 AS col0
----
-17
2674

onlyif mysql # aggregate syntax: 
query I rowsort label-2427
SELECT ALL - 55 * MAX( - 97 )
----
5335

skipif mysql # not compatible
query I rowsort label-2427
SELECT ALL - 55 * MAX ( - 97 )
----
5335

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2428
SELECT ALL NULLIF ( - 87, - CAST( NULL AS SIGNED ) / - 60 )
----
-87

skipif mysql # not compatible
query I rowsort label-2428
SELECT ALL NULLIF ( - 87, - CAST ( NULL AS INTEGER ) / - 60 )
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2429
SELECT ALL + 6 + + ( 69 ) + - 46 + + 29 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2429
SELECT ALL + 6 + + ( 69 ) + - 46 + + 29 * CAST ( NULL AS INTEGER )
----
NULL

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

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

query I rowsort
SELECT ALL - CASE + 0 WHEN + 30 - + + 20 THEN - 33 + - 95 END col0
----
NULL

query I rowsort
SELECT 0 * - 40
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2433
SELECT ALL + 39 + - - SUM( - 8 ) * + 48 col2, - 2 - + 90 AS col2
----
-345
-92

skipif mysql # not compatible
query II rowsort label-2433
SELECT ALL + 39 + - - SUM ( - 8 ) * + 48 col2, - 2 - + 90 AS col2
----
-345
-92

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-2436
SELECT ALL + COUNT ( - + 65 ) + - 66 - COUNT ( * ) AS col1
----
-66

query I rowsort
SELECT DISTINCT - NULLIF ( + - 13, + + 69 + - 38 + - 56 + + 14 * 76 ) AS col1
----
13

query I rowsort
SELECT ALL + - 3 + 80 AS col1
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2439
SELECT 85 * - CAST( - 81 AS SIGNED )
----
6885

skipif mysql # not compatible
query I rowsort label-2439
SELECT 85 * - CAST ( - 81 AS INTEGER )
----
6885

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2440
SELECT 59 + SUM( ALL - ( 65 ) ), MAX( - - 57 ) + + CAST( + 18 AS SIGNED ) AS col1
----
-6
75

skipif mysql # not compatible
query II rowsort label-2440
SELECT 59 + SUM ( ALL - ( 65 ) ), MAX ( - - 57 ) + + CAST ( + 18 AS INTEGER ) AS col1
----
-6
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2441
SELECT ( - CAST( 89 AS SIGNED ) ) * - 66 + - 44 + + + 95 - + CASE - COUNT( * ) WHEN - 34 * - COUNT( * ) + ( - 60 ) + - + CAST( - + ( - 13 ) AS SIGNED ) * + + 47 + + - CAST( NULL AS SIGNED ) + - + 25 THEN 61 * - 78 * 33 DIV - 84 ELSE + 11 + 1 END * 23 * 69
----
-13119

skipif mysql # not compatible
query I rowsort label-2441
SELECT ( - CAST ( 89 AS INTEGER ) ) * - 66 + - 44 + + + 95 - + CASE - COUNT ( * ) WHEN - 34 * - COUNT ( * ) + ( - 60 ) + - + CAST ( - + ( - 13 ) AS INTEGER ) * + + 47 + + - CAST ( NULL AS INTEGER ) + - + 25 THEN 61 * - 78 * 33 / - 84 ELSE + 11 + 1 END * 23 * 69
----
-13119

onlyif mysql # aggregate syntax: 
query I rowsort label-2442
SELECT ALL - COUNT( * ) - NULLIF ( + 63, - MIN( DISTINCT + - 13 ) ) + - + 96 + 96
----
-64

skipif mysql # not compatible
query I rowsort label-2442
SELECT ALL - COUNT ( * ) - NULLIF ( + 63, - MIN ( DISTINCT + - 13 ) ) + - + 96 + 96
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-2443
SELECT + 73 * - COUNT( * ) + 86 + 7
----
20

skipif mysql # not compatible
query I rowsort label-2443
SELECT + 73 * - COUNT ( * ) + 86 + 7
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2444
SELECT COALESCE ( + COALESCE ( - + 99, + 6 * - 28 + COUNT( * ) ), - + 80, + + ( - - 34 ) ) * - 17 + + CASE 79 WHEN - 54 * - + CAST( NULL AS SIGNED ) THEN 57 ELSE NULL END + + + SUM( DISTINCT + - 50 ) * + + CASE - ( - 92 ) WHEN 87 + - MIN( 52 ) THEN NULL ELSE + - CAST( + 8 AS SIGNED ) END * + COUNT( * ) + - + 32, 14 * - 52 AS col1
----
NULL
-728

skipif mysql # not compatible
query II rowsort label-2444
SELECT COALESCE ( + COALESCE ( - + 99, + 6 * - 28 + COUNT ( * ) ), - + 80, + + ( - - 34 ) ) * - 17 + + CASE 79 WHEN - 54 * - + CAST ( NULL AS INTEGER ) THEN 57 ELSE NULL END + + + SUM ( DISTINCT + - 50 ) * + + CASE - ( - 92 ) WHEN 87 + - MIN ( 52 ) THEN NULL ELSE + - CAST ( + 8 AS INTEGER ) END * + COUNT ( * ) + - + 32, 14 * - 52 AS col1
----
NULL
-728

query I rowsort
SELECT 94 + - 8 + + 63 AS col2
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-2446
SELECT ALL - 11 - SUM( + - 94 ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-2446
SELECT ALL - 11 - SUM ( + - 94 ) AS col2
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2447
SELECT NULLIF ( 50, - CAST( 96 AS SIGNED ) ) + - + SUM( + - 54 ) AS col0
----
104

skipif mysql # not compatible
query I rowsort label-2447
SELECT NULLIF ( 50, - CAST ( 96 AS INTEGER ) ) + - + SUM ( + - 54 ) AS col0
----
104

query I rowsort
SELECT ALL ( 4 ) * - 86
----
-344

query I rowsort
SELECT ALL + 38 * - ( + 20 ) col1
----
-760

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2450
SELECT - 34 * - 15 + + CAST( MAX( - 93 ) AS SIGNED ) + - 28 + + 89 AS col0
----
478

skipif mysql # not compatible
query I rowsort label-2450
SELECT - 34 * - 15 + + CAST ( MAX ( - 93 ) AS INTEGER ) + - 28 + + 89 AS col0
----
478

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2452
SELECT COUNT( * ) + - + 57 + 4 * COUNT( * ) + 69
----
17

skipif mysql # not compatible
query I rowsort label-2452
SELECT COUNT ( * ) + - + 57 + 4 * COUNT ( * ) + 69
----
17

query I rowsort
SELECT 53 * + 84 AS col0
----
4452

query I rowsort
SELECT + NULLIF ( + - 58, + - 4 ) + + + 73
----
15

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2455
SELECT ALL CASE 14 WHEN + 21 / 4 / + 60 THEN NULL WHEN CASE COUNT( * ) WHEN + - COUNT( * ) * ( - CASE - 23 WHEN - 88 * 9 - + ( + SUM( ALL + - NULLIF ( + + 29, - 24 ) ) ) + 75 / + + COUNT( * ) THEN COUNT( * ) + 64 ELSE NULL END ) THEN NULL WHEN + 31 THEN + 17 * + - CAST( - - COUNT( * ) AS DECIMAL ) ELSE 67 END THEN NULL ELSE - + 70 END
----
-70

skipif mysql # not compatible
query I rowsort label-2455
SELECT ALL CASE 14 WHEN + 21 / 4 / + 60 THEN NULL WHEN CASE COUNT ( * ) WHEN + - COUNT ( * ) * ( - CASE - 23 WHEN - 88 * 9 - + ( + SUM ( ALL + - NULLIF ( + + 29, - 24 ) ) ) + 75 / + + COUNT ( * ) THEN COUNT ( * ) + 64 ELSE NULL END ) THEN NULL WHEN + 31 THEN + 17 * + - CAST ( - - COUNT ( * ) AS REAL ) ELSE 67 END THEN NULL ELSE - + 70 END
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2456
SELECT DISTINCT CASE + COUNT( * ) WHEN + CAST( - COUNT( * ) AS SIGNED ) - - 79 THEN + 44 WHEN - 50 + COALESCE ( - 59, - - 20, + 62 ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2456
SELECT DISTINCT CASE + COUNT ( * ) WHEN + CAST ( - COUNT ( * ) AS INTEGER ) - - 79 THEN + 44 WHEN - 50 + COALESCE ( - 59, - - 20, + 62 ) THEN NULL END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2457
SELECT 46 DIV + 4
----
11

skipif mysql # not compatible
query I rowsort label-2457
SELECT 46 / + 4
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-2458
SELECT ALL ( + 25 ) + - COUNT( * ) + 20 * 3 AS col2
----
84

skipif mysql # not compatible
query I rowsort label-2458
SELECT ALL ( + 25 ) + - COUNT ( * ) + 20 * 3 AS col2
----
84

query I rowsort
SELECT DISTINCT 6 + 50 + + 1 * - + 63 AS col2
----
-7

query I rowsort
SELECT DISTINCT - COALESCE ( 42, + + 4 ) * - 10 * - - 4
----
1680

query I rowsort
SELECT + 85 + 82 AS col0
----
167

query I rowsort
SELECT ALL + 43 + + 69
----
112

query I rowsort
SELECT COALESCE ( - + 17, + + 91 * + - 90 ) + + 52
----
35

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

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

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

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

query I rowsort
SELECT 2 + - 30 AS col0
----
-28

query I rowsort
SELECT - + NULLIF ( - ( - 53 ), 6 )
----
-53

query I rowsort
SELECT 13 * 57 + - 89 AS col2
----
652

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2469
SELECT ALL + 9 * + 48 * - CAST( NULL AS DECIMAL ) - + CAST( NULL AS SIGNED ) + + + 47 + + 66
----
NULL

skipif mysql # not compatible
query I rowsort label-2469
SELECT ALL + 9 * + 48 * - CAST ( NULL AS REAL ) - + CAST ( NULL AS INTEGER ) + + + 47 + + 66
----
NULL

query I rowsort
SELECT + - COALESCE ( - 24, - 93 ) AS col2
----
24

onlyif mysql # aggregate syntax: 
query II rowsort label-2471
SELECT - 62 + COUNT( + - 91 ) * - NULLIF ( - 66, + + 4 * + - CASE AVG ( ALL - 35 ) WHEN - ( + 18 ) * + 3 * + - 96 + - 73 THEN NULL ELSE 88 + - - 67 + - - 3 END + + 94 + - 54 ), 95 AS col1
----
4
95

skipif mysql # not compatible
query II rowsort label-2471
SELECT - 62 + COUNT ( + - 91 ) * - NULLIF ( - 66, + + 4 * + - CASE AVG ( ALL - 35 ) WHEN - ( + 18 ) * + 3 * + - 96 + - 73 THEN NULL ELSE 88 + - - 67 + - - 3 END + + 94 + - 54 ), 95 AS col1
----
4
95

query I rowsort
SELECT DISTINCT - 23 * + 65 * + - 21 + + ( 24 ) + 53 AS col1
----
31472

query I rowsort
SELECT 66 * 22 AS col0
----
1452

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

skipif mysql # not compatible
query I rowsort label-2474
SELECT MIN ( DISTINCT 54 )
----
54

query I rowsort
SELECT DISTINCT - 24 * + 4
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2476
SELECT 78 * + CAST( + 77 AS SIGNED ) AS col1
----
6006

skipif mysql # not compatible
query I rowsort label-2476
SELECT 78 * + CAST ( + 77 AS INTEGER ) AS col1
----
6006

onlyif mysql # aggregate syntax: 
query I rowsort label-2477
SELECT 14 + - 75 * + MAX( 49 )
----
-3661

skipif mysql # not compatible
query I rowsort label-2477
SELECT 14 + - 75 * + MAX ( 49 )
----
-3661

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2478
SELECT 85 DIV + NULLIF ( + 10, + SUM( DISTINCT - 87 ) * + 39 * - 1 ) * + 84 DIV - 58 DIV + 34 col2
----
0

skipif mysql # not compatible
query I rowsort label-2478
SELECT 85 / + NULLIF ( + 10, + SUM ( DISTINCT - 87 ) * + 39 * - 1 ) * + 84 / - 58 / + 34 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2479
SELECT ALL + COUNT( DISTINCT 11 ) * - 45 * - COUNT( * ) + + - 60 * - 57 * + - 21
----
-71775

skipif mysql # not compatible
query I rowsort label-2479
SELECT ALL + COUNT ( DISTINCT 11 ) * - 45 * - COUNT ( * ) + + - 60 * - 57 * + - 21
----
-71775

query I rowsort
SELECT DISTINCT - 97 * + 75
----
-7275

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2482
SELECT - 48 DIV 27 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2482
SELECT - 48 / 27 AS col0
----
-1

query I rowsort
SELECT ALL - 6 * + - 14 AS col1
----
84

query I rowsort
SELECT ALL + 52 * 64 * + - 25
----
-83200

query II rowsort
SELECT DISTINCT + 52 col2, + 73 - 61 AS col1
----
52
12

onlyif mysql # DIV for integer division: 
query I rowsort label-2486
SELECT - 12 DIV - 19 * + 22 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2486
SELECT - 12 / - 19 * + 22 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2487
SELECT + 18 * + MIN( + CASE - + 40 WHEN + 33 THEN NULL WHEN - + 84 * - - 27 + + 34 - + - 81 * - 24 THEN - + 27 ELSE 41 END )
----
738

skipif mysql # not compatible
query I rowsort label-2487
SELECT + 18 * + MIN ( + CASE - + 40 WHEN + 33 THEN NULL WHEN - + 84 * - - 27 + + 34 - + - 81 * - 24 THEN - + 27 ELSE 41 END )
----
738

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

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

query I rowsort
SELECT - 88 * + + 1 AS col1
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-2490
SELECT - 82 + MAX( + ( + + 28 ) )
----
-54

skipif mysql # not compatible
query I rowsort label-2490
SELECT - 82 + MAX ( + ( + + 28 ) )
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-2491
SELECT DISTINCT COALESCE ( + - COUNT( 70 ), - 20, + - 90 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2491
SELECT DISTINCT COALESCE ( + - COUNT ( 70 ), - 20, + - 90 ) AS col2
----
-1

query I rowsort
SELECT DISTINCT 51 + 99 AS col0
----
150

onlyif mysql # DIV for integer division: 
query I rowsort label-2493
SELECT DISTINCT - ( + + 96 ) + 60 + + - 8 * 43 DIV - + 49
----
-29

skipif mysql # not compatible
query I rowsort label-2493
SELECT DISTINCT - ( + + 96 ) + 60 + + - 8 * 43 / - + 49
----
-29

query I rowsort
SELECT DISTINCT - CASE + NULLIF ( + 53, - 89 ) WHEN - 86 THEN + ( 44 ) END AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2496
SELECT + + COUNT( - 59 ) + - ( + - 16 ) + + 12 * + ( + 56 ) + - 49 col2, 26 AS col2
----
640
26

skipif mysql # not compatible
query II rowsort label-2496
SELECT + + COUNT ( - 59 ) + - ( + - 16 ) + + 12 * + ( + 56 ) + - 49 col2, 26 AS col2
----
640
26

onlyif mysql # aggregate syntax: 
query I rowsort label-2497
SELECT - + COUNT( + 3 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2497
SELECT - + COUNT ( + 3 ) AS col0
----
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2499
SELECT + 5 * 73 * + COUNT( * ) - - + 46 AS col1
----
411

skipif mysql # not compatible
query I rowsort label-2499
SELECT + 5 * 73 * + COUNT ( * ) - - + 46 AS col1
----
411

onlyif mysql # DIV for integer division: 
query I rowsort label-2500
SELECT + COALESCE ( - 8, - - 96 DIV 41 * - + ( - ( - 60 ) ) ) AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-2500
SELECT + COALESCE ( - 8, - - 96 / 41 * - + ( - ( - 60 ) ) ) AS col1
----
-8

query II rowsort
SELECT DISTINCT - 91 AS col1, 88
----
-91
88

onlyif mysql # aggregate syntax: 
query I rowsort label-2502
SELECT ALL - 62 + COUNT( * ) + - + 91 AS col0
----
-152

skipif mysql # not compatible
query I rowsort label-2502
SELECT ALL - 62 + COUNT ( * ) + - + 91 AS col0
----
-152

query I rowsort
SELECT DISTINCT ( - + ( 45 ) ) - - 81
----
36

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2505
SELECT + + ( - 87 ) DIV + - 66, - 67 * 67 * - 67 AS col1
----
1
300763

skipif mysql # not compatible
query II rowsort label-2505
SELECT + + ( - 87 ) / + - 66, - 67 * 67 * - 67 AS col1
----
1
300763

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2506
SELECT ALL COUNT( * ) / ( + AVG ( ALL - 56 ) ) - 63 * COUNT( * ) - + CASE - - COALESCE ( + + ( - 90 ), - - ( 81 ) * - 70 * 19 ) WHEN + 65 THEN NULL WHEN - 18 THEN NULL WHEN + COALESCE ( + COUNT( * ), + - 77 ) THEN + 75 END + - 10 * + CAST( NULL AS SIGNED ) * + 90
----
NULL

skipif mysql # not compatible
query I rowsort label-2506
SELECT ALL COUNT ( * ) / ( + AVG ( ALL - 56 ) ) - 63 * COUNT ( * ) - + CASE - - COALESCE ( + + ( - 90 ), - - ( 81 ) * - 70 * 19 ) WHEN + 65 THEN NULL WHEN - 18 THEN NULL WHEN + COALESCE ( + COUNT ( * ), + - 77 ) THEN + 75 END + - 10 * + CAST ( NULL AS INTEGER ) * + 90
----
NULL

query I rowsort
SELECT + COALESCE ( + 85, - 65 ) * - 89 AS col2
----
-7565

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2509
SELECT CAST( - 95 AS SIGNED ) AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-2509
SELECT CAST ( - 95 AS INTEGER ) AS col2
----
-95

query I rowsort
SELECT - 8 * - 17 AS col0
----
136

query I rowsort
SELECT ( ( - ( 63 ) ) )
----
-63

query I rowsort
SELECT ALL 43 * - + 40 AS col1
----
-1720

query II rowsort
SELECT ALL + 65 AS col1, - 16 * 21 AS col2
----
65
-336

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

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

query I rowsort
SELECT DISTINCT 78 * 37
----
2886

query II rowsort
SELECT ALL + 39, 89 * - 99 col0
----
39
-8811

query I rowsort
SELECT ( - - COALESCE ( ( 25 ), - 6, + 99 * + 97 * + - 22 ) )
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2518
SELECT 48 * + + SUM( DISTINCT - 60 ) - + 44 * MIN( - 24 ) * - 16 + + CAST( - 61 AS SIGNED ) + 51 + + 29 col1, + COUNT( * )
----
-19757
1

skipif mysql # not compatible
query II rowsort label-2518
SELECT 48 * + + SUM ( DISTINCT - 60 ) - + 44 * MIN ( - 24 ) * - 16 + + CAST ( - 61 AS INTEGER ) + 51 + + 29 col1, + COUNT ( * )
----
-19757
1

query II rowsort
SELECT + 36 * - 2, 78 AS col1
----
-72
78

query I rowsort
SELECT + ( 81 ) + 50
----
131

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2521
SELECT - 89 DIV + COUNT( * ) - + - 23
----
-66

skipif mysql # not compatible
query I rowsort label-2521
SELECT - 89 / + COUNT ( * ) - + - 23
----
-66

query I rowsort
SELECT CASE 64 WHEN - 28 THEN 48 ELSE + - 79 + 93 + 43 END col1
----
57

query I rowsort
SELECT 57 * - 55 * - 45 + + 76
----
141151

query I rowsort
SELECT - 77 * + 75
----
-5775

onlyif mysql # aggregate syntax: 
query I rowsort label-2525
SELECT ALL - COUNT( * ) * 76 + + CASE WHEN + 89 IS NOT NULL THEN + ( COUNT( * ) ) ELSE NULL END AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-2525
SELECT ALL - COUNT ( * ) * 76 + + CASE WHEN + 89 IS NOT NULL THEN + ( COUNT ( * ) ) ELSE NULL END AS col2
----
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2526
SELECT ALL + 22 * 2 * - + 72 + - ( COUNT( * ) ) * + - 95 + + + 63 DIV + 12 + - 78 * - 36 AS col2
----
-260

skipif mysql # not compatible
query I rowsort label-2526
SELECT ALL + 22 * 2 * - + 72 + - ( COUNT ( * ) ) * + - 95 + + + 63 / + 12 + - 78 * - 36 AS col2
----
-260

onlyif mysql # aggregate syntax: 
query I rowsort label-2527
SELECT ALL + SUM( + + 53 ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-2527
SELECT ALL + SUM ( + + 53 ) AS col0
----
53

query I rowsort
SELECT DISTINCT - 61 * + 65 + 49 AS col2
----
-3916

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2529
SELECT - 41 + - + CAST( - - 15 AS SIGNED ) - + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2529
SELECT - 41 + - + CAST ( - - 15 AS INTEGER ) - + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL - 49 * - - 35 * - 24 * - 63
----
-2593080

onlyif mysql # DIV for integer division: 
query I rowsort label-2531
SELECT - 58 DIV - 20 col1
----
2

skipif mysql # not compatible
query I rowsort label-2531
SELECT - 58 / - 20 col1
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2532
SELECT ALL + ( + - ( + 64 ) ) * + - 2 * - 35 + - NULLIF ( + 85, - - MAX( ALL + CAST( + 91 AS SIGNED ) ) + - 58 + 96 + + 63 * + + 16 ) * - - 93 * + 67 + + 69 AS col1
----
-534046

skipif mysql # not compatible
query I rowsort label-2532
SELECT ALL + ( + - ( + 64 ) ) * + - 2 * - 35 + - NULLIF ( + 85, - - MAX ( ALL + CAST ( + 91 AS INTEGER ) ) + - 58 + 96 + + 63 * + + 16 ) * - - 93 * + 67 + + 69 AS col1
----
-534046

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2533
SELECT ALL - 45 * + + 71 + + CAST( + 38 AS SIGNED ) * ( 2 )
----
-3119

skipif mysql # not compatible
query I rowsort label-2533
SELECT ALL - 45 * + + 71 + + CAST ( + 38 AS INTEGER ) * ( 2 )
----
-3119

onlyif mysql # aggregate syntax: 
query II rowsort label-2534
SELECT COUNT( * ) AS col1, 98 + + 30
----
1
128

skipif mysql # not compatible
query II rowsort label-2534
SELECT COUNT ( * ) AS col1, 98 + + 30
----
1
128

onlyif mysql # aggregate syntax: 
query I rowsort label-2535
SELECT ALL - COUNT( * ) * + - 76 + + + 83 - + - 51 + COUNT( * )
----
211

skipif mysql # not compatible
query I rowsort label-2535
SELECT ALL - COUNT ( * ) * + - 76 + + + 83 - + - 51 + COUNT ( * )
----
211

query I rowsort
SELECT DISTINCT + + 58 * + 3 + 99
----
273

onlyif mysql # DIV for integer division: 
query I rowsort label-2537
SELECT - 54 DIV 65 * 73 col2
----
0

skipif mysql # not compatible
query I rowsort label-2537
SELECT - 54 / 65 * 73 col2
----
0

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

skipif mysql # not compatible
query I rowsort label-2538
SELECT - COUNT ( * ) / 53
----
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2540
SELECT COALESCE ( + - 60, 81 - 19, + 75 + 90 ) AS col2, 53 DIV COUNT( - 43 ) DIV 91 * + + 95 AS col2
----
-60
0

skipif mysql # not compatible
query II rowsort label-2540
SELECT COALESCE ( + - 60, 81 - 19, + 75 + 90 ) AS col2, 53 / COUNT ( - 43 ) / 91 * + + 95 AS col2
----
-60
0

query I rowsort
SELECT ALL 51 * + 94 + + 57 + - - 1 * 79 AS col1
----
4930

query II rowsort
SELECT + 51 AS col2, 51 * - - 7 + - ( 2 ) - + 40 AS col0
----
51
315

onlyif mysql # aggregate syntax: 
query I rowsort label-2543
SELECT - + COUNT( * ) - + - ( - COUNT( * ) ) + - 99 + - MAX( ALL + - 15 ) * + - COUNT( * ) AS col1
----
-116

skipif mysql # not compatible
query I rowsort label-2543
SELECT - + COUNT ( * ) - + - ( - COUNT ( * ) ) + - 99 + - MAX ( ALL + - 15 ) * + - COUNT ( * ) AS col1
----
-116

query II rowsort
SELECT - - 54 col2, - 1
----
54
-1

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

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

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

skipif mysql # not compatible
query II rowsort label-2546
SELECT - - 85, - COUNT ( * ) AS col2
----
85
-1

query I rowsort
SELECT ALL CASE + 28 WHEN + 9 THEN NULL ELSE + 7 END
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2548
SELECT - MAX( - 20 ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-2548
SELECT - MAX ( - 20 ) AS col2
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2549
SELECT DISTINCT - CAST( NULL AS SIGNED ) - + 26 + - 83 + + COALESCE ( + 6, + 40, - + 62 * + 67 ) + 39 * - MIN( DISTINCT 19 ) * + + CAST( NULL AS SIGNED ) + + - 3 * - - COALESCE ( COUNT( * ), - ( - - 90 ), + 81 / 95 + COUNT( * ) + 80 / + + 41 ) + + MAX( ALL 94 ) AS col0, 61 AS col1
----
NULL
61

skipif mysql # not compatible
query II rowsort label-2549
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - + 26 + - 83 + + COALESCE ( + 6, + 40, - + 62 * + 67 ) + 39 * - MIN ( DISTINCT 19 ) * + + CAST ( NULL AS INTEGER ) + + - 3 * - - COALESCE ( COUNT ( * ), - ( - - 90 ), + 81 / 95 + COUNT ( * ) + 80 / + + 41 ) + + MAX ( ALL 94 ) AS col0, 61 AS col1
----
NULL
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2550
SELECT - ( - NULLIF ( 94, + 39 * CAST( CAST( - + 49 AS SIGNED ) AS SIGNED ) ) ) AS col1
----
94

skipif mysql # not compatible
query I rowsort label-2550
SELECT - ( - NULLIF ( 94, + 39 * CAST ( CAST ( - + 49 AS INTEGER ) AS INTEGER ) ) ) AS col1
----
94

query I rowsort
SELECT - 83 + - 62
----
-145

query I rowsort
SELECT + 53 - - 47
----
100

onlyif mysql # aggregate syntax: 
query II rowsort label-2553
SELECT ALL - 67 * - COUNT( * ) AS col0, - 16
----
67
-16

skipif mysql # not compatible
query II rowsort label-2553
SELECT ALL - 67 * - COUNT ( * ) AS col0, - 16
----
67
-16

query I rowsort
SELECT - 97 * - + ( + ( - 89 ) )
----
-8633

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2556
SELECT ALL + ( + COUNT( * ) ) - + 28 * 66
----
-1847

skipif mysql # not compatible
query I rowsort label-2556
SELECT ALL + ( + COUNT ( * ) ) - + 28 * 66
----
-1847

onlyif mysql # aggregate syntax: 
query II rowsort label-2557
SELECT ALL + 24 * 1, + MAX( 86 ) + 38 * 93 AS col0
----
24
3620

skipif mysql # not compatible
query II rowsort label-2557
SELECT ALL + 24 * 1, + MAX ( 86 ) + 38 * 93 AS col0
----
24
3620

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2558
SELECT + COUNT( ALL + - 41 ) DIV - 57 * + 5 + + - 76 col0, + 67 * - MAX( DISTINCT - 73 ) AS col1
----
-76
4891

skipif mysql # not compatible
query II rowsort label-2558
SELECT + COUNT ( ALL + - 41 ) / - 57 * + 5 + + - 76 col0, + 67 * - MAX ( DISTINCT - 73 ) AS col1
----
-76
4891

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2559
SELECT DISTINCT - COALESCE ( + - NULLIF ( - 38, + + 24 + - CAST( + + 17 AS DECIMAL ) ), + CAST( NULL AS SIGNED ), + 99 + - CAST( NULL AS SIGNED ) * 57 + COUNT( * ) * ( 39 ) ) col0
----
-38

skipif mysql # not compatible
query I rowsort label-2559
SELECT DISTINCT - COALESCE ( + - NULLIF ( - 38, + + 24 + - CAST ( + + 17 AS REAL ) ), + CAST ( NULL AS INTEGER ), + 99 + - CAST ( NULL AS INTEGER ) * 57 + COUNT ( * ) * ( 39 ) ) col0
----
-38

query I rowsort
SELECT ALL COALESCE ( + 41, 38 ) * 96 AS col2
----
3936

query I rowsort
SELECT NULLIF ( + 25, + + COALESCE ( - + 72, + + 14 ) ) + + 63
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2562
SELECT ALL COUNT( * ) DIV - - 81 col1, 72 * + + 64 AS col2
----
0
4608

skipif mysql # not compatible
query II rowsort label-2562
SELECT ALL COUNT ( * ) / - - 81 col1, 72 * + + 64 AS col2
----
0
4608

onlyif mysql # aggregate syntax: 
query I rowsort label-2563
SELECT 52 * + 6 * COUNT( * ) + - 36 - - 92 AS col2
----
368

skipif mysql # not compatible
query I rowsort label-2563
SELECT 52 * + 6 * COUNT ( * ) + - 36 - - 92 AS col2
----
368

query I rowsort
SELECT 48 + ( - + 99 )
----
-51

query II rowsort
SELECT ALL 71 * - 60 AS col0, - 55 * - 0 AS col2
----
-4260
0

query I rowsort
SELECT DISTINCT 88 + 87
----
175

onlyif mysql # aggregate syntax: 
query I rowsort label-2567
SELECT ALL - COALESCE ( ( + 65 ), + + 71 * + 89 * - MAX( DISTINCT + 45 ) )
----
-65

skipif mysql # not compatible
query I rowsort label-2567
SELECT ALL - COALESCE ( ( + 65 ), + + 71 * + 89 * - MAX ( DISTINCT + 45 ) )
----
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-2568
SELECT DISTINCT - 62 + + CASE + ( - - SUM( + 85 ) ) WHEN + - COUNT( * ) THEN NULL WHEN - 23 / - 19 + 23 THEN NULL ELSE 59 END * - + 28 * + 43 col0, 32
----
-71098
32

skipif mysql # not compatible
query II rowsort label-2568
SELECT DISTINCT - 62 + + CASE + ( - - SUM ( + 85 ) ) WHEN + - COUNT ( * ) THEN NULL WHEN - 23 / - 19 + 23 THEN NULL ELSE 59 END * - + 28 * + 43 col0, 32
----
-71098
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2569
SELECT ALL COUNT( * ) + + COUNT( * ) DIV + + 80 DIV + 20 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2569
SELECT ALL COUNT ( * ) + + COUNT ( * ) / + + 80 / + 20 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2570
SELECT DISTINCT - 44 + COUNT( * )
----
-43

skipif mysql # not compatible
query I rowsort label-2570
SELECT DISTINCT - 44 + COUNT ( * )
----
-43

query II rowsort
SELECT ALL + 90 + - - 69 * - 48 + 17 + - + 18, 88 col1
----
-3223
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2572
SELECT 76 * MAX( ALL - ( ( 99 ) ) ) * + + 58 + 68 - + 95 + - CAST( + - 16 AS SIGNED ) + + + 56 DIV + COUNT( * ) + - COUNT( * ) + - COALESCE ( - 94, COUNT( * ) ) + - + 9
----
-436263

skipif mysql # not compatible
query I rowsort label-2572
SELECT 76 * MAX ( ALL - ( ( 99 ) ) ) * + + 58 + 68 - + 95 + - CAST ( + - 16 AS INTEGER ) + + + 56 / + COUNT ( * ) + - COUNT ( * ) + - COALESCE ( - 94, COUNT ( * ) ) + - + 9
----
-436263

query I rowsort
SELECT + 78 - ( - - 97 )
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2574
SELECT ALL + COUNT( * ) DIV 69 * 78 - + 64 + + + 95 + - + 6 * 36 AS col1, + COUNT( * ) AS col0
----
-185
1

skipif mysql # not compatible
query II rowsort label-2574
SELECT ALL + COUNT ( * ) / 69 * 78 - + 64 + + + 95 + - + 6 * 36 AS col1, + COUNT ( * ) AS col0
----
-185
1

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

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

query I rowsort
SELECT 77 + 0 + + + 5 AS col2
----
82

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

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

query I rowsort
SELECT 38 - - - 33 + + - 12
----
-7

query II rowsort
SELECT - 81 * + - 65 AS col0, - 67 AS col0
----
5265
-67

query I rowsort
SELECT 69 + + 23 + - - 93 * 24
----
2324

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

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

query I rowsort
SELECT ALL - 21 - - - 20 * + 9 * - - 28 * - 35 * - + 49 AS col0
----
-8643621

query I rowsort
SELECT ALL + CASE 33 WHEN - - 44 THEN NULL ELSE - 82 END * 0 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2584
SELECT COUNT( * ) * + MAX( 66 )
----
66

skipif mysql # not compatible
query I rowsort label-2584
SELECT COUNT ( * ) * + MAX ( 66 )
----
66

query I rowsort
SELECT ALL - ( 58 ) + - - 75
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-2586
SELECT MAX( + 7 ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-2586
SELECT MAX ( + 7 ) AS col1
----
7

query II rowsort
SELECT ALL - 90 AS col2, ( + - 95 ) AS col2
----
-90
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-2588
SELECT MAX( - 2 )
----
-2

skipif mysql # not compatible
query I rowsort label-2588
SELECT MAX ( - 2 )
----
-2

query I rowsort
SELECT ALL + 58 + - 50 AS col2
----
8

query I rowsort
SELECT NULLIF ( + 60, + - 66 + + 67 + 34 * 31 * + 69 + - 20 + + + 59 * - 75 ) * - - 13 * + 70
----
54600

onlyif mysql # aggregate syntax: 
query I rowsort label-2591
SELECT 19 + COALESCE ( - + 72, - - COUNT( * ) + COUNT( * ) ) AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-2591
SELECT 19 + COALESCE ( - + 72, - - COUNT ( * ) + COUNT ( * ) ) AS col2
----
-53

query II rowsort
SELECT ALL - 90, 20 + 22 AS col0
----
-90
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2593
SELECT COUNT( * ) + - 60 DIV + 96
----
1

skipif mysql # not compatible
query I rowsort label-2593
SELECT COUNT ( * ) + - 60 / + 96
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2594
SELECT + SUM( + 79 ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-2594
SELECT + SUM ( + 79 ) AS col0
----
79

query I rowsort
SELECT DISTINCT 11 * - 47 * + 34
----
-17578

query I rowsort
SELECT ALL - 27 - 92
----
-119

onlyif mysql # aggregate syntax: 
query I rowsort label-2597
SELECT DISTINCT 84 * - COUNT( * ) * + + 77
----
-6468

skipif mysql # not compatible
query I rowsort label-2597
SELECT DISTINCT 84 * - COUNT ( * ) * + + 77
----
-6468

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2599
SELECT DISTINCT - 56, 15 + + MAX( + + 27 ) / - 16 + - CAST( NULL AS SIGNED ) * + 10 / - 74 AS col0
----
-56
NULL

skipif mysql # not compatible
query II rowsort label-2599
SELECT DISTINCT - 56, 15 + + MAX ( + + 27 ) / - 16 + - CAST ( NULL AS INTEGER ) * + 10 / - 74 AS col0
----
-56
NULL

query I rowsort
SELECT DISTINCT - 33 * + + 37
----
-1221

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2602
SELECT + 59 AS col0, CASE + 53 WHEN + - 18 THEN 25 WHEN 15 / - 41 * - 65 - + CAST( NULL AS SIGNED ) * + 30 - + COUNT( * ) + + MIN( + + 32 ) + + - 44 * 49 * + - 43 THEN - - 22 + 1 + + SUM( - 70 ) WHEN - + COUNT( * ) * 31 * - 90 THEN NULL END + COALESCE ( CAST( - 71 AS SIGNED ), - + 26 + - 71 / + ( + 4 ) ) AS col2
----
59
NULL

skipif mysql # not compatible
query II rowsort label-2602
SELECT + 59 AS col0, CASE + 53 WHEN + - 18 THEN 25 WHEN 15 / - 41 * - 65 - + CAST ( NULL AS INTEGER ) * + 30 - + COUNT ( * ) + + MIN ( + + 32 ) + + - 44 * 49 * + - 43 THEN - - 22 + 1 + + SUM ( - 70 ) WHEN - + COUNT ( * ) * 31 * - 90 THEN NULL END + COALESCE ( CAST ( - 71 AS INTEGER ), - + 26 + - 71 / + ( + 4 ) ) AS col2
----
59
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2603
SELECT - + NULLIF ( - ( 18 ), + COUNT( * ) ), ( 57 ) AS col1
----
18
57

skipif mysql # not compatible
query II rowsort label-2603
SELECT - + NULLIF ( - ( 18 ), + COUNT ( * ) ), ( 57 ) AS col1
----
18
57

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

skipif mysql # not compatible
query I rowsort label-2604
SELECT ALL + CAST ( - MIN ( ALL + - 88 ) AS INTEGER )
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-2605
SELECT ALL + 50 DIV 11
----
4

skipif mysql # not compatible
query I rowsort label-2605
SELECT ALL + 50 / 11
----
4

query I rowsort
SELECT DISTINCT + + 91 * - - 13
----
1183

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

skipif mysql # not compatible
query I rowsort label-2607
SELECT DISTINCT + COUNT ( * ) / + - 93
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2608
SELECT DISTINCT + + 66 * - CASE + COUNT( * ) WHEN + + 19 * ( - - COUNT( * ) ) THEN NULL WHEN - + 3 + - - COUNT( * ) * - + 58 THEN + - 92 ELSE - + 64 * CAST( 26 AS SIGNED ) * + - 73 - - + 21 + + ( - + ( 35 ) ) END AS col2
----
-8016228

skipif mysql # not compatible
query I rowsort label-2608
SELECT DISTINCT + + 66 * - CASE + COUNT ( * ) WHEN + + 19 * ( - - COUNT ( * ) ) THEN NULL WHEN - + 3 + - - COUNT ( * ) * - + 58 THEN + - 92 ELSE - + 64 * CAST ( 26 AS INTEGER ) * + - 73 - - + 21 + + ( - + ( 35 ) ) END AS col2
----
-8016228

query II rowsort
SELECT DISTINCT - 22 AS col2, 13
----
-22
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2610
SELECT ALL 14 + + 23 + + 0 * - - COUNT( * ) DIV - - 96 - + 71 + 34 + + 47 + + - 39 AS col2
----
8

skipif mysql # not compatible
query I rowsort label-2610
SELECT ALL 14 + + 23 + + 0 * - - COUNT ( * ) / - - 96 - + 71 + 34 + + 47 + + - 39 AS col2
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2611
SELECT - 25 - 59 * + COUNT( * ) * + 6 AS col0
----
-379

skipif mysql # not compatible
query I rowsort label-2611
SELECT - 25 - 59 * + COUNT ( * ) * + 6 AS col0
----
-379

query I rowsort
SELECT ALL + ( ( + + 45 ) ) + + 56 - + 92
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2613
SELECT DISTINCT CASE CASE COUNT( * ) WHEN 55 THEN - - NULLIF ( - + ( - 93 ), - 9 + 13 + 80 / 27 ) END WHEN + 29 * 91 THEN 67 - + - COUNT( * ) + - 11 * + + 98 / - + 70 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2613
SELECT DISTINCT CASE CASE COUNT ( * ) WHEN 55 THEN - - NULLIF ( - + ( - 93 ), - 9 + 13 + 80 / 27 ) END WHEN + 29 * 91 THEN 67 - + - COUNT ( * ) + - 11 * + + 98 / - + 70 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2614
SELECT DISTINCT COUNT( * ) + + - CAST( + 91 AS SIGNED ) AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-2614
SELECT DISTINCT COUNT ( * ) + + - CAST ( + 91 AS INTEGER ) AS col1
----
-90

query I rowsort
SELECT ALL COALESCE ( - 49, 12 )
----
-49

query I rowsort
SELECT - 42 + - 88 AS col0
----
-130

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2618
SELECT ALL 45 * + SUM( ALL - 17 ) * + + ( 21 ) * + 2 * - + 29 + + 3 AS col2
----
931773

skipif mysql # not compatible
query I rowsort label-2618
SELECT ALL 45 * + SUM ( ALL - 17 ) * + + ( 21 ) * + 2 * - + 29 + + 3 AS col2
----
931773

query I rowsort
SELECT DISTINCT - 30 * 97 - - 61
----
-2849

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2620
SELECT ALL + CAST( NULL AS SIGNED ) * 37 - 83 / 80 * + MAX( ALL + 15 ) * - + 69 * + + 25
----
NULL

skipif mysql # not compatible
query I rowsort label-2620
SELECT ALL + CAST ( NULL AS INTEGER ) * 37 - 83 / 80 * + MAX ( ALL + 15 ) * - + 69 * + + 25
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2621
SELECT CASE - - ( + 38 ) WHEN - + 31 THEN NULL WHEN ( - + 58 ) * - 10 THEN + COUNT( * ) WHEN + - ( - 71 ) * - - COUNT( * ) + + 38 + + 69 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2621
SELECT CASE - - ( + 38 ) WHEN - + 31 THEN NULL WHEN ( - + 58 ) * - 10 THEN + COUNT ( * ) WHEN + - ( - 71 ) * - - COUNT ( * ) + + 38 + + 69 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2622
SELECT + COUNT( + 10 ) DIV 29 + - 6 + - 20 + COUNT( ALL + - 90 ) + + 23 + - COALESCE ( - 73, + 84 * - + 4 ) * 79 AS col1
----
5765

skipif mysql # not compatible
query I rowsort label-2622
SELECT + COUNT ( + 10 ) / 29 + - 6 + - 20 + COUNT ( ALL + - 90 ) + + 23 + - COALESCE ( - 73, + 84 * - + 4 ) * 79 AS col1
----
5765

onlyif mysql # aggregate syntax: 
query II rowsort label-2623
SELECT DISTINCT + + 27 * 16 AS col2, MIN( ALL - 44 )
----
432
-44

skipif mysql # not compatible
query II rowsort label-2623
SELECT DISTINCT + + 27 * 16 AS col2, MIN ( ALL - 44 )
----
432
-44

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2625
SELECT ALL - CAST( + 26 AS SIGNED ) * 85 + - 64 - + 94 AS col0
----
-2368

skipif mysql # not compatible
query I rowsort label-2625
SELECT ALL - CAST ( + 26 AS INTEGER ) * 85 + - 64 - + 94 AS col0
----
-2368

query I rowsort
SELECT - - 84 * + 48
----
4032

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2627
SELECT DISTINCT + 73 DIV - 37 + - + COUNT( * ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-2627
SELECT DISTINCT + 73 / - 37 + - + COUNT ( * ) AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2628
SELECT + CASE WHEN ( NOT + COUNT( * ) >= - + 33 - - 27 ) THEN + + COUNT( * ) * - + 73 + - - 98 + + 80 * + ( - 80 ) WHEN - MIN( ALL - 23 ) = - MAX( ALL + ( - 85 ) ) * + 19 * COALESCE ( - + 19, - 56 ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2628
SELECT + CASE WHEN ( NOT + COUNT ( * ) >= - + 33 - - 27 ) THEN + + COUNT ( * ) * - + 73 + - - 98 + + 80 * + ( - 80 ) WHEN - MIN ( ALL - 23 ) = - MAX ( ALL + ( - 85 ) ) * + 19 * COALESCE ( - + 19, - 56 ) THEN NULL END AS col2
----
NULL

query I rowsort
SELECT 40 * + 80 - + + 41 AS col2
----
3159

query I rowsort
SELECT - + 24 * - + ( + + 75 )
----
1800

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2631
SELECT + NULLIF ( - 3, 97 * CAST( - + 81 AS SIGNED ) ) + 95
----
92

skipif mysql # not compatible
query I rowsort label-2631
SELECT + NULLIF ( - 3, 97 * CAST ( - + 81 AS INTEGER ) ) + 95
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-2632
SELECT DISTINCT 75 DIV 25 DIV 66 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2632
SELECT DISTINCT 75 / 25 / 66 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2633
SELECT - - COUNT( * ) * - - MIN( - - 16 ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-2633
SELECT - - COUNT ( * ) * - - MIN ( - - 16 ) AS col1
----
16

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

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

query II rowsort
SELECT + - 85 * 24 AS col2, 32 * + 15 * + - 89 AS col0
----
-2040
-42720

onlyif mysql # aggregate syntax: 
query I rowsort label-2636
SELECT ALL + ( - 75 ) * - 33 * + 6 * - COUNT( * )
----
-14850

skipif mysql # not compatible
query I rowsort label-2636
SELECT ALL + ( - 75 ) * - 33 * + 6 * - COUNT ( * )
----
-14850

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2637
SELECT + COUNT( * ) DIV + NULLIF ( - COUNT( * ), - ( + - 14 ) ) + 9 AS col2
----
8

skipif mysql # not compatible
query I rowsort label-2637
SELECT + COUNT ( * ) / + NULLIF ( - COUNT ( * ), - ( + - 14 ) ) + 9 AS col2
----
8

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2639
SELECT DISTINCT - SUM( DISTINCT 53 ) * 83 * 67, 24 * - - 73 AS col1
----
-294733
1752

skipif mysql # not compatible
query II rowsort label-2639
SELECT DISTINCT - SUM ( DISTINCT 53 ) * 83 * 67, 24 * - - 73 AS col1
----
-294733
1752

onlyif mysql # aggregate syntax: 
query II rowsort label-2640
SELECT DISTINCT - COALESCE ( - + 4, - + 38 * - - 90 + + 56 * + MAX( + 31 ) ), - COUNT( * ) + + 79 AS col1
----
4
78

skipif mysql # not compatible
query II rowsort label-2640
SELECT DISTINCT - COALESCE ( - + 4, - + 38 * - - 90 + + 56 * + MAX ( + 31 ) ), - COUNT ( * ) + + 79 AS col1
----
4
78

query I rowsort
SELECT ALL + 28 + + 25 * 34
----
878

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2642
SELECT + + COUNT( * ) * - - 91 DIV 55
----
1

skipif mysql # not compatible
query I rowsort label-2642
SELECT + + COUNT ( * ) * - - 91 / 55
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2643
SELECT CASE - 62 WHEN - 23 THEN NULL WHEN 19 THEN NULL WHEN NULLIF ( - 50, - SUM( + 5 ) ) THEN 52 ELSE - - NULLIF ( - 17, + - COUNT( * ) ) + + 46 END AS col2
----
29

skipif mysql # not compatible
query I rowsort label-2643
SELECT CASE - 62 WHEN - 23 THEN NULL WHEN 19 THEN NULL WHEN NULLIF ( - 50, - SUM ( + 5 ) ) THEN 52 ELSE - - NULLIF ( - 17, + - COUNT ( * ) ) + + 46 END AS col2
----
29

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

skipif mysql # not compatible
query I rowsort label-2644
SELECT ALL COUNT ( * ) + - 33 AS col1
----
-32

onlyif mysql # DIV for integer division: 
query II rowsort label-2645
SELECT + 90 * 53 DIV + + 53 col1, 70
----
90
70

skipif mysql # not compatible
query II rowsort label-2645
SELECT + 90 * 53 / + + 53 col1, 70
----
90
70

onlyif mysql # aggregate syntax: 
query II rowsort label-2646
SELECT ALL MAX( - - ( + 48 ) ) + 43 + - 98 AS col0, - 21
----
-7
-21

skipif mysql # not compatible
query II rowsort label-2646
SELECT ALL MAX ( - - ( + 48 ) ) + 43 + - 98 AS col0, - 21
----
-7
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-2647
SELECT ALL - COUNT( * ) * 64 col2
----
-64

skipif mysql # not compatible
query I rowsort label-2647
SELECT ALL - COUNT ( * ) * 64 col2
----
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-2648
SELECT + 42 DIV - 31
----
-1

skipif mysql # not compatible
query I rowsort label-2648
SELECT + 42 / - 31
----
-1

query I rowsort
SELECT ALL 48 + 54 AS col0
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-2650
SELECT ALL - 21 + + + 82 - + 93 * COUNT( * )
----
-32

skipif mysql # not compatible
query I rowsort label-2650
SELECT ALL - 21 + + + 82 - + 93 * COUNT ( * )
----
-32

query I rowsort
SELECT DISTINCT 65 * + 93 * - - 57
----
344565

query II rowsort
SELECT 2 AS col0, COALESCE ( + + 58, + ( - 50 ) )
----
2
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2653
SELECT DISTINCT COUNT( 75 )
----
1

skipif mysql # not compatible
query I rowsort label-2653
SELECT DISTINCT COUNT ( 75 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2654
SELECT + 6 + - + 85 DIV 92 AS col2
----
6

skipif mysql # not compatible
query I rowsort label-2654
SELECT + 6 + - + 85 / 92 AS col2
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-2655
SELECT - 12 DIV + 41 col0
----
0

skipif mysql # not compatible
query I rowsort label-2655
SELECT - 12 / + 41 col0
----
0

query II rowsort
SELECT 83 AS col0, - COALESCE ( + 81, 27 ) AS col2
----
83
-81

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

skipif mysql # not compatible
query II rowsort label-2657
SELECT 18 col2, COUNT ( * ) AS col2
----
18
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2658
SELECT ALL + 2 DIV - - 81 * - 92 - - 32 + + 58 * ( + + 12 )
----
728

skipif mysql # not compatible
query I rowsort label-2658
SELECT ALL + 2 / - - 81 * - 92 - - 32 + + 58 * ( + + 12 )
----
728

query I rowsort
SELECT + 58 * + 81
----
4698

onlyif mysql # aggregate syntax: 
query I rowsort label-2660
SELECT - MAX( 20 ) * 9 col0
----
-180

skipif mysql # not compatible
query I rowsort label-2660
SELECT - MAX ( 20 ) * 9 col0
----
-180

onlyif mysql # DIV for integer division: 
query I rowsort label-2661
SELECT DISTINCT - 86 DIV + + 5 AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-2661
SELECT DISTINCT - 86 / + + 5 AS col1
----
-17

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

skipif mysql # not compatible
query I rowsort label-2662
SELECT - COUNT ( * ) + + + 94 AS col0
----
93

query I rowsort
SELECT ALL - 44 * + 91 AS col1
----
-4004

query II rowsort
SELECT ALL + + 42 col2, - 12
----
42
-12

query I rowsort
SELECT + + 69 + - + 17
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-2666
SELECT 94 * - 52 + - 71 + - COUNT( * )
----
-4960

skipif mysql # not compatible
query I rowsort label-2666
SELECT 94 * - 52 + - 71 + - COUNT ( * )
----
-4960

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2667
SELECT - - MIN( ALL + 58 ) - - 26 DIV + + 7 * - COUNT( * ) AS col2
----
55

skipif mysql # not compatible
query I rowsort label-2667
SELECT - - MIN ( ALL + 58 ) - - 26 / + + 7 * - COUNT ( * ) AS col2
----
55

query I rowsort
SELECT - 34 * - 86 * - + 87 col1
----
-254388

onlyif mysql # aggregate syntax: 
query I rowsort label-2669
SELECT - 66 * - 2 * - NULLIF ( - + 46, 14 * - 63 * - 38 * + 3 * - - SUM( ALL + - 39 ) ) + + 78 * 24 AS col0
----
7944

skipif mysql # not compatible
query I rowsort label-2669
SELECT - 66 * - 2 * - NULLIF ( - + 46, 14 * - 63 * - 38 * + 3 * - - SUM ( ALL + - 39 ) ) + + 78 * 24 AS col0
----
7944

query I rowsort
SELECT ALL - + 58 * - 36 AS col1
----
2088

query I rowsort
SELECT 54 * - + 6 * - 22 AS col2
----
7128

query I rowsort
SELECT - 74 + - - 30 * + 68
----
1966

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2674
SELECT ALL + 68 + 93 - + + SUM( - 42 ) + + + 19 * - - 18 + + 8 * - CAST( - ( + - COALESCE ( + + COUNT( DISTINCT - COALESCE ( 77, + 5, CAST( NULL AS SIGNED ) + - + 98 ) ), - 19 + + 65, + 9 ) ) AS SIGNED ) * - + 49 - + + 7 col0
----
930

skipif mysql # not compatible
query I rowsort label-2674
SELECT ALL + 68 + 93 - + + SUM ( - 42 ) + + + 19 * - - 18 + + 8 * - CAST ( - ( + - COALESCE ( + + COUNT ( DISTINCT - COALESCE ( 77, + 5, CAST ( NULL AS INTEGER ) + - + 98 ) ), - 19 + + 65, + 9 ) ) AS INTEGER ) * - + 49 - + + 7 col0
----
930

onlyif mysql # aggregate syntax: 
query II rowsort label-2675
SELECT 51 * - 1 + 88 + + 31 + - + COUNT( * ) AS col0, 27 * - 95 AS col2
----
67
-2565

skipif mysql # not compatible
query II rowsort label-2675
SELECT 51 * - 1 + 88 + + 31 + - + COUNT ( * ) AS col0, 27 * - 95 AS col2
----
67
-2565

onlyif mysql # aggregate syntax: 
query I rowsort label-2676
SELECT - COUNT( * ) * + 26 + + 33
----
7

skipif mysql # not compatible
query I rowsort label-2676
SELECT - COUNT ( * ) * + 26 + + 33
----
7

query II rowsort
SELECT ALL + ( 21 ) + + 4, 57 * 10 * + + 51 * 15 AS col1
----
25
436050

query II rowsort
SELECT DISTINCT 97 AS col2, 44
----
97
44

query II rowsort
SELECT ALL 60 * + - 99, 90 AS col0
----
-5940
90

query I rowsort
SELECT 19 + - - 42
----
61

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

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

query I rowsort
SELECT ALL 24 * + 47 * + 55
----
62040

query I rowsort
SELECT 45 - + 89
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2684
SELECT ALL 68 AS col2, 5 - - CAST( NULL AS SIGNED ) * + 94 AS col2
----
68
NULL

skipif mysql # not compatible
query II rowsort label-2684
SELECT ALL 68 AS col2, 5 - - CAST ( NULL AS INTEGER ) * + 94 AS col2
----
68
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2685
SELECT CASE + 63 WHEN + COUNT( * ) THEN NULL WHEN CAST( + - 39 AS SIGNED ) * - ( 13 ) / 25 + - 65 + - 99 * 7 + - 71 THEN + 8 * + + 55 * 61 + - 13 + - + 0 END - - 23
----
NULL

skipif mysql # not compatible
query I rowsort label-2685
SELECT CASE + 63 WHEN + COUNT ( * ) THEN NULL WHEN CAST ( + - 39 AS INTEGER ) * - ( 13 ) / 25 + - 65 + - 99 * 7 + - 71 THEN + 8 * + + 55 * 61 + - 13 + - + 0 END - - 23
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2686
SELECT 64 + + 17 + + - 1 + - + 95 * + 30 * CAST( NULL AS SIGNED ) / 47 * + 2 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2686
SELECT 64 + + 17 + + - 1 + - + 95 * + 30 * CAST ( NULL AS INTEGER ) / 47 * + 2 AS col1
----
NULL

query I rowsort
SELECT 35 * + 96 AS col1
----
3360

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2688
SELECT CAST( - 88 AS SIGNED ) + - 25
----
-113

skipif mysql # not compatible
query I rowsort label-2688
SELECT CAST ( - 88 AS INTEGER ) + - 25
----
-113

onlyif mysql # aggregate syntax: 
query II rowsort label-2689
SELECT - 82 col2, + 68 + + ( - COUNT( * ) ) * COUNT( * ) * - 9 col1
----
-82
77

skipif mysql # not compatible
query II rowsort label-2689
SELECT - 82 col2, + 68 + + ( - COUNT ( * ) ) * COUNT ( * ) * - 9 col1
----
-82
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2690
SELECT DISTINCT 83, + 86 * - + 1 DIV COUNT( * ) AS col2
----
83
-86

skipif mysql # not compatible
query II rowsort label-2690
SELECT DISTINCT 83, + 86 * - + 1 / COUNT ( * ) AS col2
----
83
-86

query I rowsort
SELECT ALL 47 * 9 AS col0
----
423

query II rowsort
SELECT ALL 88 AS col1, 8 col0
----
88
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2693
SELECT CAST( + 57 AS SIGNED ) + - 95 + 82 + 49 * + 72 AS col0
----
3572

skipif mysql # not compatible
query I rowsort label-2693
SELECT CAST ( + 57 AS INTEGER ) + - 95 + 82 + 49 * + 72 AS col0
----
3572

query I rowsort
SELECT ALL - NULLIF ( 6, + 44 )
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2695
SELECT + 93 AS col0, 30 + - + CAST( - + 88 AS SIGNED )
----
93
118

skipif mysql # not compatible
query II rowsort label-2695
SELECT + 93 AS col0, 30 + - + CAST ( - + 88 AS INTEGER )
----
93
118

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

skipif mysql # not compatible
query I rowsort label-2696
SELECT + ( NULLIF ( 97, - - COUNT ( * ) ) ) AS col2
----
97

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2698
SELECT DISTINCT - COUNT( * ) * - 26 * - 34
----
-884

skipif mysql # not compatible
query I rowsort label-2698
SELECT DISTINCT - COUNT ( * ) * - 26 * - 34
----
-884

query I rowsort
SELECT ALL 35 * + - 61 + + - 68
----
-2203

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2701
SELECT 69 * - CAST( NULL AS SIGNED ) * 27
----
NULL

skipif mysql # not compatible
query I rowsort label-2701
SELECT 69 * - CAST ( NULL AS INTEGER ) * 27
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2702
SELECT + 18 * COUNT( * ) + 31 * + CAST( NULL AS SIGNED ) * - + 16 + + - COALESCE ( - + CASE MAX( ALL 75 ) WHEN - COUNT( * ) THEN NULL ELSE - - 20 * - 57 / - - 56 END, - 8 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2702
SELECT + 18 * COUNT ( * ) + 31 * + CAST ( NULL AS INTEGER ) * - + 16 + + - COALESCE ( - + CASE MAX ( ALL 75 ) WHEN - COUNT ( * ) THEN NULL ELSE - - 20 * - 57 / - - 56 END, - 8 )
----
NULL

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2705
SELECT ALL - 21 + + 23 DIV + COALESCE ( - - 46, 47 ) + + 93
----
72

skipif mysql # not compatible
query I rowsort label-2705
SELECT ALL - 21 + + 23 / + COALESCE ( - - 46, 47 ) + + 93
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-2706
SELECT ALL + MAX( DISTINCT + 16 ) + - + 15 * 51 * - 41 * + + 93 AS col0
----
2916961

skipif mysql # not compatible
query I rowsort label-2706
SELECT ALL + MAX ( DISTINCT + 16 ) + - + 15 * 51 * - 41 * + + 93 AS col0
----
2916961

onlyif mysql # aggregate syntax: 
query I rowsort label-2707
SELECT 92 * - 91 * - MIN( + 12 ) AS col0
----
100464

skipif mysql # not compatible
query I rowsort label-2707
SELECT 92 * - 91 * - MIN ( + 12 ) AS col0
----
100464

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

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

query II rowsort
SELECT ALL - + 98 AS col0, - 7
----
-98
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2710
SELECT ALL 37 + - COALESCE ( + MIN( + 10 ), - 98 * - - 68 + - - 99, ( - 70 ) * 39 DIV - 43 * + 37 )
----
27

skipif mysql # not compatible
query I rowsort label-2710
SELECT ALL 37 + - COALESCE ( + MIN ( + 10 ), - 98 * - - 68 + - - 99, ( - 70 ) * 39 / - 43 * + 37 )
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2711
SELECT ALL - 2 + CAST( NULL AS SIGNED ), 26 AS col1
----
NULL
26

skipif mysql # not compatible
query II rowsort label-2711
SELECT ALL - 2 + CAST ( NULL AS INTEGER ), 26 AS col1
----
NULL
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2712
SELECT 22 * CAST( NULL AS SIGNED ) * - 60 - - AVG ( ALL 44 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2712
SELECT 22 * CAST ( NULL AS INTEGER ) * - 60 - - AVG ( ALL 44 ) AS col0
----
NULL

query II rowsort
SELECT 16, 89 * COALESCE ( + + 49, + 38 * + 13, + 75 ) AS col0
----
16
4361

query II rowsort
SELECT ALL - 11 * 25, - ( + - 86 ) AS col0
----
-275
86

onlyif mysql # aggregate syntax: 
query II rowsort label-2715
SELECT + + MIN( - 20 ) AS col1, 26 * 37 * + 86 + + 68 + - + 74 * + NULLIF ( - 82, - 68 ) AS col1
----
-20
88868

skipif mysql # not compatible
query II rowsort label-2715
SELECT + + MIN ( - 20 ) AS col1, 26 * 37 * + 86 + + 68 + - + 74 * + NULLIF ( - 82, - 68 ) AS col1
----
-20
88868

query I rowsort
SELECT ( - 5 ) + - 91 AS col2
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2717
SELECT ALL + CAST( NULL AS SIGNED ) + - 52 + + NULLIF ( + + ( - ( - ( - 1 ) ) ), - - 31 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2717
SELECT ALL + CAST ( NULL AS INTEGER ) + - 52 + + NULLIF ( + + ( - ( - ( - 1 ) ) ), - - 31 ) AS col0
----
NULL

query I rowsort
SELECT 41 * + 0
----
0

query I rowsort
SELECT 19 + + - CASE ( + 19 ) WHEN + 94 THEN - 87 WHEN + - ( + + 67 ) - - + ( - - 25 ) THEN NULL ELSE NULL END * - 54 / 78 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + NULLIF ( - - 53, + - 40 ) * 60 * 41 AS col2
----
130380

query I rowsort
SELECT DISTINCT - 57 - 98 col1
----
-155

onlyif mysql # aggregate syntax: 
query I rowsort label-2722
SELECT DISTINCT - ( 4 ) - - 40 + + + COUNT( * )
----
37

skipif mysql # not compatible
query I rowsort label-2722
SELECT DISTINCT - ( 4 ) - - 40 + + + COUNT ( * )
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2723
SELECT ALL + CAST( NULL AS SIGNED ) / + + COUNT( * ), - 10 AS col2
----
NULL
-10

skipif mysql # not compatible
query II rowsort label-2723
SELECT ALL + CAST ( NULL AS INTEGER ) / + + COUNT ( * ), - 10 AS col2
----
NULL
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-2724
SELECT 28 * + MAX( + + 9 ) AS col0
----
252

skipif mysql # not compatible
query I rowsort label-2724
SELECT 28 * + MAX ( + + 9 ) AS col0
----
252

query I rowsort
SELECT DISTINCT + 86 * ( - 29 ) AS col1
----
-2494

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2726
SELECT COUNT( * ) DIV + MIN( DISTINCT + 79 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2726
SELECT COUNT ( * ) / + MIN ( DISTINCT + 79 ) AS col2
----
0

query I rowsort
SELECT ALL 47 * + - 51 AS col0
----
-2397

query I rowsort
SELECT DISTINCT 6 * 65 AS col2
----
390

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2729
SELECT DISTINCT + CAST( + 70 AS SIGNED ) * - 61 + - 10
----
-4280

skipif mysql # not compatible
query I rowsort label-2729
SELECT DISTINCT + CAST ( + 70 AS INTEGER ) * - 61 + - 10
----
-4280

onlyif mysql # aggregate syntax: 
query I rowsort label-2730
SELECT ALL CASE + ( + 16 ) WHEN 66 * + 29 + + 87 - - + 39 + - COUNT( * ) * + 31 * 70 / MIN( + 60 ) THEN + COUNT( * ) * + - 11 + - ( 44 ) - 9 * + - 46 - + 66 + 1 * + 52 WHEN COUNT( * ) THEN - - 11 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2730
SELECT ALL CASE + ( + 16 ) WHEN 66 * + 29 + + 87 - - + 39 + - COUNT ( * ) * + 31 * 70 / MIN ( + 60 ) THEN + COUNT ( * ) * + - 11 + - ( 44 ) - 9 * + - 46 - + 66 + 1 * + 52 WHEN COUNT ( * ) THEN - - 11 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2731
SELECT 53 + + + 83 * - MAX( ALL 8 ) * + - 69 * 0 AS col0
----
53

skipif mysql # not compatible
query I rowsort label-2731
SELECT 53 + + + 83 * - MAX ( ALL 8 ) * + - 69 * 0 AS col0
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2732
SELECT ALL COALESCE ( - CAST( 96 AS SIGNED ), + CAST( - COUNT( * ) AS SIGNED ) ) col0
----
-96

skipif mysql # not compatible
query I rowsort label-2732
SELECT ALL COALESCE ( - CAST ( 96 AS INTEGER ), + CAST ( - COUNT ( * ) AS INTEGER ) ) col0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2733
SELECT + 89 * + MIN( ALL + - 0 ) * 79 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2733
SELECT + 89 * + MIN ( ALL + - 0 ) * 79 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2734
SELECT 38 + 57 - + 3 * - 0 + - COALESCE ( COALESCE ( - 85, + COUNT( * ) * + 88 - + - 84 * - 40 + - + 70, - COUNT( * ) ), + COUNT( * ), - - COUNT( * ) * + 0 * ( - NULLIF ( - 26, + COUNT( * ) ) ) ) * - 64
----
-5345

skipif mysql # not compatible
query I rowsort label-2734
SELECT 38 + 57 - + 3 * - 0 + - COALESCE ( COALESCE ( - 85, + COUNT ( * ) * + 88 - + - 84 * - 40 + - + 70, - COUNT ( * ) ), + COUNT ( * ), - - COUNT ( * ) * + 0 * ( - NULLIF ( - 26, + COUNT ( * ) ) ) ) * - 64
----
-5345

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2736
SELECT DISTINCT - 39 * - CAST( + 39 AS SIGNED ) * - 88 * - + SUM( + + ( CAST( NULL AS SIGNED ) ) ) * - 55 + + + ( 32 ) + - + 95 * 89
----
NULL

skipif mysql # not compatible
query I rowsort label-2736
SELECT DISTINCT - 39 * - CAST ( + 39 AS INTEGER ) * - 88 * - + SUM ( + + ( CAST ( NULL AS INTEGER ) ) ) * - 55 + + + ( 32 ) + - + 95 * 89
----
NULL

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

query I rowsort
SELECT + + 87 - + 55 - - 55 / CASE + + 70 WHEN + + 75 + 63 THEN + ( 3 ) END * - - 8 - + 81 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2739
SELECT DISTINCT 53 * ( 89 ) * - + COUNT( * ) + 79 + + + 10 + + 31 AS col2
----
-4597

skipif mysql # not compatible
query I rowsort label-2739
SELECT DISTINCT 53 * ( 89 ) * - + COUNT ( * ) + 79 + + + 10 + + 31 AS col2
----
-4597

onlyif mysql # DIV for integer division: 
query I rowsort label-2740
SELECT ALL ( - - 70 ) DIV 24
----
2

skipif mysql # not compatible
query I rowsort label-2740
SELECT ALL ( - - 70 ) / 24
----
2

query I rowsort
SELECT DISTINCT - + 19 * 63 + - 0 * 44 AS col0
----
-1197

query I rowsort
SELECT DISTINCT 40 * ( 23 ) - + 14 + - - 79
----
985

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2743
SELECT + COALESCE ( 13, - 50, + CAST( - 21 AS SIGNED ) ) + 2 DIV + - CAST( 97 AS SIGNED ) AS col1
----
13

skipif mysql # not compatible
query I rowsort label-2743
SELECT + COALESCE ( 13, - 50, + CAST ( - 21 AS INTEGER ) ) + 2 / + - CAST ( 97 AS INTEGER ) AS col1
----
13

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

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

query I rowsort
SELECT - 93 - - 7 AS col2
----
-86

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

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

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

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

query I rowsort
SELECT ALL - + 35 * + 23 - - ( - - 44 )
----
-761

query I rowsort
SELECT + + 85 * NULLIF ( + 9, - ( - + 18 ) - - ( + - 67 ) )
----
765

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

skipif mysql # not compatible
query I rowsort label-2750
SELECT + - COUNT ( * ) + 42 AS col0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-2751
SELECT + COUNT( * ) + - + 4 * - + 2 * ( 36 )
----
289

skipif mysql # not compatible
query I rowsort label-2751
SELECT + COUNT ( * ) + - + 4 * - + 2 * ( 36 )
----
289

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2752
SELECT ALL + 74, SUM( 5 ) DIV NULLIF ( - 52, - COUNT( * ) ) AS col1
----
74
0

skipif mysql # not compatible
query II rowsort label-2752
SELECT ALL + 74, SUM ( 5 ) / NULLIF ( - 52, - COUNT ( * ) ) AS col1
----
74
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2753
SELECT DISTINCT + 80, COUNT( * ) + - SUM( + + 90 ) AS col1
----
80
-89

skipif mysql # not compatible
query II rowsort label-2753
SELECT DISTINCT + 80, COUNT ( * ) + - SUM ( + + 90 ) AS col1
----
80
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-2754
SELECT - 61 * + - 5 + - 37 + - COUNT( * ) * - + MAX( ALL - CASE - 6 WHEN + - 18 THEN 1 * + 26 + 49 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-2754
SELECT - 61 * + - 5 + - 37 + - COUNT ( * ) * - + MAX ( ALL - CASE - 6 WHEN + - 18 THEN 1 * + 26 + 49 END )
----
NULL

query I rowsort
SELECT DISTINCT + 26 - + 27
----
-1

query I rowsort
SELECT + 83 + 11 AS col1
----
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2757
SELECT + 59 * + - 53 * - - 8 AS col0, 92 * - - COUNT( * ) + + + NULLIF ( 45, - - 73 * 90 ) + 41 * - + COUNT( ALL 1 ) + - 36 DIV + ( + 12 ) AS col2
----
-25016
93

skipif mysql # not compatible
query II rowsort label-2757
SELECT + 59 * + - 53 * - - 8 AS col0, 92 * - - COUNT ( * ) + + + NULLIF ( 45, - - 73 * 90 ) + 41 * - + COUNT ( ALL 1 ) + - 36 / + ( + 12 ) AS col2
----
-25016
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2758
SELECT - CASE 7 WHEN + - NULLIF ( 95, + COUNT( * ) ) THEN NULL WHEN + - 82 * + 43 + + 87 * - 66 THEN - 81 ELSE + - 6 DIV - 97 + - 92 END * - 32 AS col0
----
-2944

skipif mysql # not compatible
query I rowsort label-2758
SELECT - CASE 7 WHEN + - NULLIF ( 95, + COUNT ( * ) ) THEN NULL WHEN + - 82 * + 43 + + 87 * - 66 THEN - 81 ELSE + - 6 / - 97 + - 92 END * - 32 AS col0
----
-2944

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2760
SELECT DISTINCT CASE - - COUNT( * ) WHEN + 57 THEN NULL WHEN 99 + - - 6 THEN - - ( + - ( 74 ) ) DIV - - COUNT( ALL + 87 ) ELSE + 48 + 15 END * 63 + - + 81 col2
----
3888

skipif mysql # not compatible
query I rowsort label-2760
SELECT DISTINCT CASE - - COUNT ( * ) WHEN + 57 THEN NULL WHEN 99 + - - 6 THEN - - ( + - ( 74 ) ) / - - COUNT ( ALL + 87 ) ELSE + 48 + 15 END * 63 + - + 81 col2
----
3888

query I rowsort
SELECT - 53 + - + 80 - - 24 AS col1
----
-109

onlyif mysql # aggregate syntax: 
query I rowsort label-2762
SELECT - NULLIF ( ( + - 30 ), - 38 - - COUNT( * ) - - 42 * + 96 + + COUNT( * ) * - 23 * + COUNT( + + 44 ) - COUNT( * ) / ( 20 ) / - - 40 ) + - NULLIF ( 19, + 54 * 34 * + + COUNT( * ) )
----
11

skipif mysql # not compatible
query I rowsort label-2762
SELECT - NULLIF ( ( + - 30 ), - 38 - - COUNT ( * ) - - 42 * + 96 + + COUNT ( * ) * - 23 * + COUNT ( + + 44 ) - COUNT ( * ) / ( 20 ) / - - 40 ) + - NULLIF ( 19, + 54 * 34 * + + COUNT ( * ) )
----
11

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2765
SELECT DISTINCT CASE + 91 WHEN + + COUNT( DISTINCT NULLIF ( - 2, 13 ) ) THEN + 79 * 48 - 5 WHEN + 92 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2765
SELECT DISTINCT CASE + 91 WHEN + + COUNT ( DISTINCT NULLIF ( - 2, 13 ) ) THEN + 79 * 48 - 5 WHEN + 92 THEN NULL END
----
NULL

query I rowsort
SELECT DISTINCT NULLIF ( - + 18, + + 67 ) AS col1
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2767
SELECT - CAST( - 83 AS SIGNED ) + - 32 AS col2, + COUNT( CAST( NULL AS SIGNED ) )
----
51
0

skipif mysql # not compatible
query II rowsort label-2767
SELECT - CAST ( - 83 AS INTEGER ) + - 32 AS col2, + COUNT ( CAST ( NULL AS INTEGER ) )
----
51
0

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

query II rowsort
SELECT - + 37 AS col0, + 90 col1
----
-37
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2770
SELECT DISTINCT - - 5 + - 15 * - - SUM( DISTINCT 88 ) col2
----
-1315

skipif mysql # not compatible
query I rowsort label-2770
SELECT DISTINCT - - 5 + - 15 * - - SUM ( DISTINCT 88 ) col2
----
-1315

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

skipif mysql # not compatible
query I rowsort label-2771
SELECT - CAST ( NULL AS INTEGER ) + - 46 / - + 3 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2772
SELECT - 14 + + + COUNT( * ) AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-2772
SELECT - 14 + + + COUNT ( * ) AS col1
----
-13

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

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

query I rowsort
SELECT ALL - 35 + + + 77
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-2775
SELECT DISTINCT - - 42 DIV ( - 4 ) + - + 51 AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-2775
SELECT DISTINCT - - 42 / ( - 4 ) + - + 51 AS col1
----
-61

query I rowsort
SELECT ALL + + 38 * - 62
----
-2356

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

query I rowsort
SELECT ( - + 10 ) * 4 - - 73 + + 12
----
45

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2780
SELECT DISTINCT + - COALESCE ( - 60, 22 * - - COUNT( * ) + 72 * + COUNT( + 91 ) + - NULLIF ( COUNT( * ), 44 ) + 86 * - 24 )
----
60

skipif mysql # not compatible
query I rowsort label-2780
SELECT DISTINCT + - COALESCE ( - 60, 22 * - - COUNT ( * ) + 72 * + COUNT ( + 91 ) + - NULLIF ( COUNT ( * ), 44 ) + 86 * - 24 )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-2781
SELECT - COUNT( * ) * + + NULLIF ( + - 53, + + CASE - 16 WHEN - MIN( + + 38 ) + 2 THEN + 57 + 6 ELSE NULL END + - - 63 + - - COALESCE ( + 87, - 25 ) )
----
53

skipif mysql # not compatible
query I rowsort label-2781
SELECT - COUNT ( * ) * + + NULLIF ( + - 53, + + CASE - 16 WHEN - MIN ( + + 38 ) + 2 THEN + 57 + 6 ELSE NULL END + - - 63 + - - COALESCE ( + 87, - 25 ) )
----
53

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2783
SELECT ALL - - 57 DIV + - 59 + + + ( COUNT( * ) ) - - NULLIF ( 59, + COUNT( * ) DIV + CAST( - + 18 AS SIGNED ) ) col1
----
60

skipif mysql # not compatible
query I rowsort label-2783
SELECT ALL - - 57 / + - 59 + + + ( COUNT ( * ) ) - - NULLIF ( 59, + COUNT ( * ) / + CAST ( - + 18 AS INTEGER ) ) col1
----
60

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

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

query I rowsort
SELECT ALL 83 * - 89 AS col1
----
-7387

onlyif mysql # aggregate syntax: 
query I rowsort label-2786
SELECT - + 83 * - 92 + - 62 + + CASE + 73 WHEN COUNT( * ) * + - 82 * 24 THEN 50 WHEN + - 14 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2786
SELECT - + 83 * - 92 + - 62 + + CASE + 73 WHEN COUNT ( * ) * + - 82 * 24 THEN 50 WHEN + - 14 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2787
SELECT DISTINCT ( - COALESCE ( + COUNT( * ), NULLIF ( - + COUNT( * ), - + 14 ) * 34 + 16, + 29, - 35 ) ) * 24 AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-2787
SELECT DISTINCT ( - COALESCE ( + COUNT ( * ), NULLIF ( - + COUNT ( * ), - + 14 ) * 34 + 16, + 29, - 35 ) ) * 24 AS col2
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-2788
SELECT + CASE - + NULLIF ( + + 52, + COUNT( * ) ) WHEN - SUM( - 95 ) THEN 63 ELSE 21 + - 9 END * 26
----
312

skipif mysql # not compatible
query I rowsort label-2788
SELECT + CASE - + NULLIF ( + + 52, + COUNT ( * ) ) WHEN - SUM ( - 95 ) THEN 63 ELSE 21 + - 9 END * 26
----
312

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2789
SELECT ALL CAST( NULL AS SIGNED ) * 7 * + ( - + 63 ) * - 79
----
NULL

skipif mysql # not compatible
query I rowsort label-2789
SELECT ALL CAST ( NULL AS INTEGER ) * 7 * + ( - + 63 ) * - 79
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2791
SELECT CASE + 28 WHEN + + COUNT( * ) THEN + 10 WHEN - + COUNT( ALL - - 51 ) THEN - 84 ELSE NULL END, - 78 AS col2
----
NULL
-78

skipif mysql # not compatible
query II rowsort label-2791
SELECT CASE + 28 WHEN + + COUNT ( * ) THEN + 10 WHEN - + COUNT ( ALL - - 51 ) THEN - 84 ELSE NULL END, - 78 AS col2
----
NULL
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-2792
SELECT + CASE + - ( + 51 ) WHEN - 90 + 9 - - 24 THEN NULL WHEN ( 38 ) - COUNT( * ) / + - 46 * - ( COALESCE ( + COUNT( * ), 12 ) ) - - 38 THEN 48 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2792
SELECT + CASE + - ( + 51 ) WHEN - 90 + 9 - - 24 THEN NULL WHEN ( 38 ) - COUNT ( * ) / + - 46 * - ( COALESCE ( + COUNT ( * ), 12 ) ) - - 38 THEN 48 END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2793
SELECT + SUM( + 35 ) + 54 * + 11
----
629

skipif mysql # not compatible
query I rowsort label-2793
SELECT + SUM ( + 35 ) + 54 * + 11
----
629

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

skipif mysql # not compatible
query I rowsort label-2794
SELECT + 60 / COUNT ( ALL - 70 ) AS col2
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2795
SELECT - 66 + + + 78 col0, CASE 70 WHEN - 34 THEN + 27 ELSE 22 + 29 + - 60 - - - COUNT( * ) / + 83 + + - CAST( NULL AS SIGNED ) + + COUNT( * ) END AS col1
----
12
NULL

skipif mysql # not compatible
query II rowsort label-2795
SELECT - 66 + + + 78 col0, CASE 70 WHEN - 34 THEN + 27 ELSE 22 + 29 + - 60 - - - COUNT ( * ) / + 83 + + - CAST ( NULL AS INTEGER ) + + COUNT ( * ) END AS col1
----
12
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2796
SELECT ALL NULLIF ( + - ( - ( - + 38 ) ), + COUNT( * ) + COUNT( * ) + COUNT( * ) + + COUNT( * ) + + - COUNT( * ) / + 26 * + + ( 90 ) ) * 0 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2796
SELECT ALL NULLIF ( + - ( - ( - + 38 ) ), + COUNT ( * ) + COUNT ( * ) + COUNT ( * ) + + COUNT ( * ) + + - COUNT ( * ) / + 26 * + + ( 90 ) ) * 0 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2797
SELECT + 12 - - - COUNT( * ) + - COUNT( * ) AS col1
----
10

skipif mysql # not compatible
query I rowsort label-2797
SELECT + 12 - - - COUNT ( * ) + - COUNT ( * ) AS col1
----
10

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

skipif mysql # not compatible
query I rowsort label-2798
SELECT ALL - 41 / - COUNT ( * )
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2799
SELECT + NULLIF ( - ( COUNT( * ) ), + ( ( 72 ) ) * + - 16 * + 25 + - 78 + + 43 * + + CAST( - COUNT( * ) AS SIGNED ) ) * + + 69 * 11 * COUNT( * )
----
-759

skipif mysql # not compatible
query I rowsort label-2799
SELECT + NULLIF ( - ( COUNT ( * ) ), + ( ( 72 ) ) * + - 16 * + 25 + - 78 + + 43 * + + CAST ( - COUNT ( * ) AS INTEGER ) ) * + + 69 * 11 * COUNT ( * )
----
-759

onlyif mysql # aggregate syntax: 
query II rowsort label-2800
SELECT ALL 81 * + MIN( - 69 ) + - + ( + 7 ) + - + 36 * - - 64, - 68 col0
----
-7900
-68

skipif mysql # not compatible
query II rowsort label-2800
SELECT ALL 81 * + MIN ( - 69 ) + - + ( + 7 ) + - + 36 * - - 64, - 68 col0
----
-7900
-68

query I rowsort
SELECT - ( 7 ) + + - 32
----
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-2802
SELECT - SUM( ALL 74 ) + 82 + 35 AS col2, - 46 * + - 23
----
43
1058

skipif mysql # not compatible
query II rowsort label-2802
SELECT - SUM ( ALL 74 ) + 82 + 35 AS col2, - 46 * + - 23
----
43
1058

query I rowsort
SELECT ALL + 69 + - - 7
----
76

query I rowsort
SELECT ALL - 5 + 33 col1
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2805
SELECT DISTINCT + 51 + - - 13 + - 64 * + CAST( NULL AS SIGNED ) * 25 / + 35
----
NULL

skipif mysql # not compatible
query I rowsort label-2805
SELECT DISTINCT + 51 + - - 13 + - 64 * + CAST ( NULL AS INTEGER ) * 25 / + 35
----
NULL

query I rowsort
SELECT ALL 59 * - - 7
----
413

query II rowsort
SELECT DISTINCT - - 49 * - 87, + 59 + - - 49 + 51 AS col0
----
-4263
159

query I rowsort
SELECT 44 * - - 32 * + 45 * 54
----
3421440

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2809
SELECT - 27 DIV 13 - + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-2809
SELECT - 27 / 13 - + - COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2810
SELECT - COUNT( ALL + + 71 ) * 91 * + + ( - SUM( DISTINCT + + ( + - 50 ) ) ) * - CASE + 62 WHEN + - 22 * - 36 THEN - + 28 ELSE NULL END + + COALESCE ( - 55, 31, + - 57 * + 23 + NULLIF ( + ( - + 42 ), + + 47 - 35 ) ) + + + 27
----
NULL

skipif mysql # not compatible
query I rowsort label-2810
SELECT - COUNT ( ALL + + 71 ) * 91 * + + ( - SUM ( DISTINCT + + ( + - 50 ) ) ) * - CASE + 62 WHEN + - 22 * - 36 THEN - + 28 ELSE NULL END + + COALESCE ( - 55, 31, + - 57 * + 23 + NULLIF ( + ( - + 42 ), + + 47 - 35 ) ) + + + 27
----
NULL

query II rowsort
SELECT DISTINCT - 30 * - 63 - + + ( 72 ), 31 AS col1
----
1818
31

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2815
SELECT MIN( ALL - 98 ) - + 44 + - ( - + 99 ) * - 29
----
-3013

skipif mysql # not compatible
query I rowsort label-2815
SELECT MIN ( ALL - 98 ) - + 44 + - ( - + 99 ) * - 29
----
-3013

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2816
SELECT 54 * - CAST( - 58 AS SIGNED ) * - 78
----
-244296

skipif mysql # not compatible
query I rowsort label-2816
SELECT 54 * - CAST ( - 58 AS INTEGER ) * - 78
----
-244296

onlyif mysql # aggregate syntax: 
query I rowsort label-2817
SELECT DISTINCT - CASE - + 80 WHEN - 96 + - - 51 / - + COUNT( * ) * + - 12 THEN - + 65 ELSE NULL END + - 21
----
NULL

skipif mysql # not compatible
query I rowsort label-2817
SELECT DISTINCT - CASE - + 80 WHEN - 96 + - - 51 / - + COUNT ( * ) * + - 12 THEN - + 65 ELSE NULL END + - 21
----
NULL

query I rowsort
SELECT DISTINCT 83 + + 74
----
157

query I rowsort
SELECT DISTINCT 42 + - - 35
----
77

query I rowsort
SELECT ALL 18 + + 77
----
95

onlyif mysql # aggregate syntax: 
query II rowsort label-2821
SELECT + ( + + 24 ) * - + 96 + 77 + - - COUNT( * ), + MIN( 82 ) * 25 + + 85 * + 3 AS col1
----
-2226
2305

skipif mysql # not compatible
query II rowsort label-2821
SELECT + ( + + 24 ) * - + 96 + 77 + - - COUNT ( * ), + MIN ( 82 ) * 25 + + 85 * + 3 AS col1
----
-2226
2305

query I rowsort
SELECT 63 + + 53 AS col0
----
116

onlyif mysql # DIV for integer division: 
query I rowsort label-2823
SELECT 98 DIV + 60 col0
----
1

skipif mysql # not compatible
query I rowsort label-2823
SELECT 98 / + 60 col0
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2825
SELECT ( 36 ) + + COUNT( * ) + 32
----
69

skipif mysql # not compatible
query I rowsort label-2825
SELECT ( 36 ) + + COUNT ( * ) + 32
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2826
SELECT CAST( + NULLIF ( 21, 8 ) AS SIGNED ) + + 52 AS col0
----
73

skipif mysql # not compatible
query I rowsort label-2826
SELECT CAST ( + NULLIF ( 21, 8 ) AS INTEGER ) + + 52 AS col0
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2827
SELECT ALL + 38 - MIN( CAST( - 60 AS SIGNED ) )
----
98

skipif mysql # not compatible
query I rowsort label-2827
SELECT ALL + 38 - MIN ( CAST ( - 60 AS INTEGER ) )
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2828
SELECT COALESCE ( ( 92 ), - COUNT( * ) DIV + 96 - 95 ) + - 88 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-2828
SELECT COALESCE ( ( 92 ), - COUNT ( * ) / + 96 - 95 ) + - 88 AS col1
----
4

query I rowsort
SELECT NULLIF ( ( 47 ), NULLIF ( 81, + NULLIF ( 39, - 59 + 97 ) ) ) + - 97 AS col1
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-2830
SELECT 23 + 79 * - COUNT( * ) AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-2830
SELECT 23 + 79 * - COUNT ( * ) AS col2
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-2831
SELECT 94 * - COUNT( * ) AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-2831
SELECT 94 * - COUNT ( * ) AS col2
----
-94

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2833
SELECT ALL CASE 75 WHEN MAX( + 90 ) THEN NULL WHEN 43 + - COUNT( * ) * COUNT( * ) THEN + AVG ( DISTINCT ( 39 ) ) * 33 END - 29
----
NULL

skipif mysql # not compatible
query I rowsort label-2833
SELECT ALL CASE 75 WHEN MAX ( + 90 ) THEN NULL WHEN 43 + - COUNT ( * ) * COUNT ( * ) THEN + AVG ( DISTINCT ( 39 ) ) * 33 END - 29
----
NULL

query I rowsort
SELECT 42 + 59 AS col0
----
101

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2835
SELECT 13 + CAST( 92 - 13 AS SIGNED ) * 21 AS col1
----
1672

skipif mysql # not compatible
query I rowsort label-2835
SELECT 13 + CAST ( 92 - 13 AS INTEGER ) * 21 AS col1
----
1672

query I rowsort
SELECT DISTINCT 73 * 89 AS col0
----
6497

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

skipif mysql # not compatible
query I rowsort label-2837
SELECT DISTINCT - SUM ( DISTINCT 86 )
----
-86

query I rowsort
SELECT ALL 26 * 82
----
2132

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

skipif mysql # not compatible
query I rowsort label-2839
SELECT COUNT ( * ) / - 18
----
0

query I rowsort
SELECT 64 * - 61 AS col2
----
-3904

onlyif mysql # DIV for integer division: 
query I rowsort label-2841
SELECT DISTINCT - 58 DIV 49
----
-1

skipif mysql # not compatible
query I rowsort label-2841
SELECT DISTINCT - 58 / 49
----
-1

query I rowsort
SELECT 77 + 88
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-2843
SELECT ALL + 40 * - ( MIN( DISTINCT 21 ) ) AS col0
----
-840

skipif mysql # not compatible
query I rowsort label-2843
SELECT ALL + 40 * - ( MIN ( DISTINCT 21 ) ) AS col0
----
-840

query I rowsort
SELECT 54 + + 79 AS col1
----
133

query I rowsort
SELECT DISTINCT + 61 * - ( - 6 * 88 ) + 57
----
32265

query I rowsort
SELECT 41 * 50 + 28
----
2078

query I rowsort
SELECT 67 * + 2 AS col0
----
134

query I rowsort
SELECT ALL + 41 + - 81
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-2849
SELECT 44 DIV 73
----
0

skipif mysql # not compatible
query I rowsort label-2849
SELECT 44 / 73
----
0

query I rowsort
SELECT 53 * - 66
----
-3498

query I rowsort
SELECT 89 + - 39
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-2852
SELECT DISTINCT - 68 + + COUNT( * ) AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-2852
SELECT DISTINCT - 68 + + COUNT ( * ) AS col1
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2853
SELECT + CAST( - CASE WHEN ( 42 ) = ( 2 * COUNT( * ) - - 39 * - MIN( DISTINCT + 4 / - 92 ) ) THEN CAST( NULL AS SIGNED ) / - 12 - + 55 END AS SIGNED ) + + 70
----
NULL

skipif mysql # not compatible
query I rowsort label-2853
SELECT + CAST ( - CASE WHEN ( 42 ) = ( 2 * COUNT ( * ) - - 39 * - MIN ( DISTINCT + 4 / - 92 ) ) THEN CAST ( NULL AS INTEGER ) / - 12 - + 55 END AS INTEGER ) + + 70
----
NULL

query I rowsort
SELECT ALL - 51 + 49 AS col2
----
-2

query I rowsort
SELECT 78 * - 89 + + 58 AS col0
----
-6884

query I rowsort
SELECT DISTINCT + 23 + 69
----
92

query I rowsort
SELECT DISTINCT 93 + 50 AS col1
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-2858
SELECT ALL NULLIF ( 30, - NULLIF ( COUNT( * ), 60 ) )
----
30

skipif mysql # not compatible
query I rowsort label-2858
SELECT ALL NULLIF ( 30, - NULLIF ( COUNT ( * ), 60 ) )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2859
SELECT ALL COUNT( * ) - + 23
----
-22

skipif mysql # not compatible
query I rowsort label-2859
SELECT ALL COUNT ( * ) - + 23
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2860
SELECT + COALESCE ( COUNT( * ), NULLIF ( 50, + 13 ) ) * CASE + 11 WHEN 33 THEN 92 / CASE + 40 WHEN - CASE WHEN ( + 23 ) NOT BETWEEN ( NULLIF ( + ( - 37 ), 46 ) / 9 ) AND - 21 THEN - 9 + - COUNT( * ) ELSE + 18 END + 18 THEN + 16 END WHEN 2 - + CAST( NULL AS SIGNED ) THEN 52 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2860
SELECT + COALESCE ( COUNT ( * ), NULLIF ( 50, + 13 ) ) * CASE + 11 WHEN 33 THEN 92 / CASE + 40 WHEN - CASE WHEN ( + 23 ) NOT BETWEEN ( NULLIF ( + ( - 37 ), 46 ) / 9 ) AND - 21 THEN - 9 + - COUNT ( * ) ELSE + 18 END + 18 THEN + 16 END WHEN 2 - + CAST ( NULL AS INTEGER ) THEN 52 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2861
SELECT ALL - MAX( ALL - 55 ) - + 75 * 71
----
-5270

skipif mysql # not compatible
query I rowsort label-2861
SELECT ALL - MAX ( ALL - 55 ) - + 75 * 71
----
-5270

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2862
SELECT ALL - COUNT( ALL - COALESCE ( 9, + 57, CAST( NULL AS SIGNED ) + - 38 * - 94 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-2862
SELECT ALL - COUNT ( ALL - COALESCE ( 9, + 57, CAST ( NULL AS INTEGER ) + - 38 * - 94 ) )
----
-1

query I rowsort
SELECT + + 76 - ( 97 )
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-2864
SELECT + + COUNT( * ) * + MIN( ( - 14 ) ) AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-2864
SELECT + + COUNT ( * ) * + MIN ( ( - 14 ) ) AS col0
----
-14

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

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

query I rowsort
SELECT + 10 * + 82 col0
----
820

onlyif mysql # DIV for integer division: 
query I rowsort label-2867
SELECT + 19 DIV 84 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2867
SELECT + 19 / 84 AS col1
----
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2869
SELECT - - CASE 65 WHEN - COUNT( * ) THEN 72 DIV + 83 ELSE 19 + 11 END
----
30

skipif mysql # not compatible
query I rowsort label-2869
SELECT - - CASE 65 WHEN - COUNT ( * ) THEN 72 / + 83 ELSE 19 + 11 END
----
30

query I rowsort
SELECT + 89 + 67
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-2871
SELECT ALL 82 * CASE + COUNT( * ) WHEN + 87 * ( + 74 * - COUNT( * ) ) THEN 9 + 48 ELSE - 68 * 42 END + - 79
----
-234271

skipif mysql # not compatible
query I rowsort label-2871
SELECT ALL 82 * CASE + COUNT ( * ) WHEN + 87 * ( + 74 * - COUNT ( * ) ) THEN 9 + 48 ELSE - 68 * 42 END + - 79
----
-234271

query I rowsort
SELECT + 13 + + 28 AS col0
----
41

query I rowsort
SELECT ALL - 34 * + 18 + 95 AS col2
----
-517

query I rowsort
SELECT ( - - 85 ) * + 20 + - 49
----
1651

query I rowsort
SELECT + NULLIF ( - + 5, + 88 )
----
-5

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

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

query I rowsort
SELECT DISTINCT 94 * 33 * 64 + 90
----
198618

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2878
SELECT CASE - CAST( NULL AS DECIMAL ) WHEN - COUNT( * ) THEN NULL WHEN 34 THEN NULL WHEN + 1 THEN MAX( 83 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2878
SELECT CASE - CAST ( NULL AS REAL ) WHEN - COUNT ( * ) THEN NULL WHEN 34 THEN NULL WHEN + 1 THEN MAX ( 83 ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2879
SELECT ALL 68 * + 40 + - ( 14 ) DIV - ( 1 * + ( ( COUNT( * ) ) ) + NULLIF ( 33, 63 + - 68 * 35 ) )
----
2720

skipif mysql # not compatible
query I rowsort label-2879
SELECT ALL 68 * + 40 + - ( 14 ) / - ( 1 * + ( ( COUNT ( * ) ) ) + NULLIF ( 33, 63 + - 68 * 35 ) )
----
2720

onlyif mysql # aggregate syntax: 
query I rowsort label-2880
SELECT COALESCE ( + - 16, - 31 * COUNT( * ) ) AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-2880
SELECT COALESCE ( + - 16, - 31 * COUNT ( * ) ) AS col2
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-2881
SELECT ALL + 10 DIV - 79
----
0

skipif mysql # not compatible
query I rowsort label-2881
SELECT ALL + 10 / - 79
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2882
SELECT - ( - 65 ) DIV 37
----
1

skipif mysql # not compatible
query I rowsort label-2882
SELECT - ( - 65 ) / 37
----
1

query I rowsort
SELECT DISTINCT 31 * NULLIF ( - 19, + 73 ) - - 24 AS col2
----
-565

onlyif mysql # DIV for integer division: 
query I rowsort label-2884
SELECT ALL + 19 DIV 66
----
0

skipif mysql # not compatible
query I rowsort label-2884
SELECT ALL + 19 / 66
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2885
SELECT ALL - COUNT( * ) * 34 * COUNT( ALL CAST( NULL AS DECIMAL ) * - 59 ) - - 85
----
85

skipif mysql # not compatible
query I rowsort label-2885
SELECT ALL - COUNT ( * ) * 34 * COUNT ( ALL CAST ( NULL AS REAL ) * - 59 ) - - 85
----
85

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

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

query I rowsort
SELECT NULLIF ( + 67, + 36 * 27 ) AS col2
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2888
SELECT ALL - NULLIF ( + + 13, ( + COUNT( * ) ) * + 52 ) * - 43 AS col2
----
559

skipif mysql # not compatible
query I rowsort label-2888
SELECT ALL - NULLIF ( + + 13, ( + COUNT ( * ) ) * + 52 ) * - 43 AS col2
----
559

query I rowsort
SELECT - 11 - + - 17 - 31 * - 36 col1
----
1122

onlyif mysql # DIV for integer division: 
query I rowsort label-2890
SELECT - 69 DIV 51 * - 80
----
80

skipif mysql # not compatible
query I rowsort label-2890
SELECT - 69 / 51 * - 80
----
80

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2892
SELECT ALL + COALESCE ( + + ( 4 ), + 5 DIV 5 )
----
4

skipif mysql # not compatible
query I rowsort label-2892
SELECT ALL + COALESCE ( + + ( 4 ), + 5 / 5 )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2893
SELECT ALL - COALESCE ( - 66, - 76 * + 37 + COUNT( - 83 ), - 20, - 54 ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-2893
SELECT ALL - COALESCE ( - 66, - 76 * + 37 + COUNT ( - 83 ), - 20, - 54 ) AS col0
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2894
SELECT - 53 + - MAX( 93 ) + - COUNT( * ) DIV - 90
----
-146

skipif mysql # not compatible
query I rowsort label-2894
SELECT - 53 + - MAX ( 93 ) + - COUNT ( * ) / - 90
----
-146

query I rowsort
SELECT DISTINCT + + 62 * + 93 AS col2
----
5766

query I rowsort
SELECT - + CASE 32 WHEN 9 THEN 78 * + 29 END * - 5
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2897
SELECT - 80 + - COALESCE ( - 55, 81, 43 * - COUNT( * ) ) AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-2897
SELECT - 80 + - COALESCE ( - 55, 81, 43 * - COUNT ( * ) ) AS col2
----
-25

query I rowsort
SELECT + 7 * 26
----
182

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

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

query I rowsort
SELECT + + 90 + + 50
----
140

query I rowsort
SELECT + - 15 + + 57
----
42

query I rowsort
SELECT ALL - 51 * + 18
----
-918

query I rowsort
SELECT + + 40 + - 91 + - 84 col0
----
-135

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2905
SELECT + CAST( NULL AS SIGNED ) * CASE 92 WHEN + COALESCE ( + MIN( + 12 ), - MIN( ALL - 42 ) ) THEN 29 + COUNT( * ) WHEN + SUM( 30 ) * 54 + + 9 THEN NULL ELSE 39 + + COALESCE ( + 97 + 47, - 52 ) * + 62 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2905
SELECT + CAST ( NULL AS INTEGER ) * CASE 92 WHEN + COALESCE ( + MIN ( + 12 ), - MIN ( ALL - 42 ) ) THEN 29 + COUNT ( * ) WHEN + SUM ( 30 ) * 54 + + 9 THEN NULL ELSE 39 + + COALESCE ( + 97 + 47, - 52 ) * + 62 END
----
NULL

query I rowsort
SELECT ALL 1 + - + 81 + + 15 AS col0
----
-65

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2907
SELECT + CAST( - CAST( - AVG ( ALL 51 ) AS DECIMAL ) AS SIGNED )
----
51

skipif mysql # not compatible
query I rowsort label-2907
SELECT + CAST ( - CAST ( - AVG ( ALL 51 ) AS REAL ) AS INTEGER )
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2908
SELECT ALL 46 DIV - + 31 + + - COUNT( * ) + - CAST( 35 AS SIGNED ) AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-2908
SELECT ALL 46 / - + 31 + + - COUNT ( * ) + - CAST ( 35 AS INTEGER ) AS col2
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-2909
SELECT DISTINCT 15 DIV 14 + - 99 + + 90 AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-2909
SELECT DISTINCT 15 / 14 + - 99 + + 90 AS col2
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2910
SELECT + 61 AS col0, CASE CAST( NULL AS SIGNED ) WHEN 78 + - 14 THEN 85 * 36 WHEN 38 * + 67 THEN NULL END AS col1
----
61
NULL

skipif mysql # not compatible
query II rowsort label-2910
SELECT + 61 AS col0, CASE CAST ( NULL AS INTEGER ) WHEN 78 + - 14 THEN 85 * 36 WHEN 38 * + 67 THEN NULL END AS col1
----
61
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2911
SELECT 23 / - 2 * - 71 + + ( - SUM( DISTINCT 92 ) ) * ( + 82 + - CAST( NULL AS SIGNED ) * + CAST( + 42 AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2911
SELECT 23 / - 2 * - 71 + + ( - SUM ( DISTINCT 92 ) ) * ( + 82 + - CAST ( NULL AS INTEGER ) * + CAST ( + 42 AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2912
SELECT ALL - 43 AS col1, NULLIF ( + 57, + COUNT( * ) + + 63 * 35 )
----
-43
57

skipif mysql # not compatible
query II rowsort label-2912
SELECT ALL - 43 AS col1, NULLIF ( + 57, + COUNT ( * ) + + 63 * 35 )
----
-43
57

onlyif mysql # aggregate syntax: 
query I rowsort label-2913
SELECT ALL COUNT( * ) - + + COUNT( * ) + + + 34 - - COALESCE ( + 76, + 15, - ( - 88 ) * - 35 ) * - 26
----
-1942

skipif mysql # not compatible
query I rowsort label-2913
SELECT ALL COUNT ( * ) - + + COUNT ( * ) + + + 34 - - COALESCE ( + 76, + 15, - ( - 88 ) * - 35 ) * - 26
----
-1942

onlyif mysql # aggregate syntax: 
query I rowsort label-2914
SELECT CASE + - AVG ( DISTINCT - 86 ) WHEN 11 * - ( 83 ) THEN NULL WHEN + 73 THEN 4 - ( - 48 + COUNT( + 8 - 61 ) ) * - 41 END * - 35 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2914
SELECT CASE + - AVG ( DISTINCT - 86 ) WHEN 11 * - ( 83 ) THEN NULL WHEN + 73 THEN 4 - ( - 48 + COUNT ( + 8 - 61 ) ) * - 41 END * - 35 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2915
SELECT ( - + CAST( - + 46 AS SIGNED ) ) + MAX( 63 )
----
109

skipif mysql # not compatible
query I rowsort label-2915
SELECT ( - + CAST ( - + 46 AS INTEGER ) ) + MAX ( 63 )
----
109

query I rowsort
SELECT DISTINCT 64 * 66
----
4224

query II rowsort
SELECT ALL - 33, - 17 AS col0
----
-33
-17

onlyif mysql # DIV for integer division: 
query II rowsort label-2918
SELECT 70 AS col2, 22 DIV - 47
----
70
0

skipif mysql # not compatible
query II rowsort label-2918
SELECT 70 AS col2, 22 / - 47
----
70
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2919
SELECT COUNT( * ) AS col2, + 21 * + + CAST( NULL AS SIGNED ) * - 16 + COUNT( * ) * 45 AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-2919
SELECT COUNT ( * ) AS col2, + 21 * + + CAST ( NULL AS INTEGER ) * - 16 + COUNT ( * ) * 45 AS col1
----
1
NULL

query II rowsort
SELECT ALL - 77 col1, - 77 - 80 * + 93
----
-77
-7517

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

skipif mysql # not compatible
query I rowsort label-2921
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 73
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2922
SELECT SUM( DISTINCT CAST( NULL AS SIGNED ) ) * - 14 + MAX( ALL 53 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2922
SELECT SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) * - 14 + MAX ( ALL 53 ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - + 64 * - 23
----
1472

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

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

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

query I rowsort
SELECT - 1 * + 73 - + - 75 + 46 * 58
----
2670

onlyif mysql # aggregate syntax: 
query I rowsort label-2927
SELECT ALL - 13 * - COUNT( * ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-2927
SELECT ALL - 13 * - COUNT ( * ) AS col2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-2928
SELECT + COALESCE ( + COUNT( * ), + 71 + + 5, - 62 * + COUNT( * ) ) * 84 AS col0
----
84

skipif mysql # not compatible
query I rowsort label-2928
SELECT + COALESCE ( + COUNT ( * ), + 71 + + 5, - 62 * + COUNT ( * ) ) * 84 AS col0
----
84

onlyif mysql # aggregate syntax: 
query II rowsort label-2929
SELECT COUNT( * ) AS col1, 47 + 58 AS col1
----
1
105

skipif mysql # not compatible
query II rowsort label-2929
SELECT COUNT ( * ) AS col1, 47 + 58 AS col1
----
1
105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2930
SELECT - 67 - - 66 * CAST( NULL AS SIGNED ) * 74
----
NULL

skipif mysql # not compatible
query I rowsort label-2930
SELECT - 67 - - 66 * CAST ( NULL AS INTEGER ) * 74
----
NULL

query I rowsort
SELECT ALL + + 9 + 82 - - 72 * 24 AS col1
----
1819

query I rowsort
SELECT DISTINCT - + 47 + 70 * - - 45 * + 0
----
-47

query I rowsort
SELECT DISTINCT + 56 + + 34 * ( + 97 ) + - 13
----
3341

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2935
SELECT 47 + - 56 * MAX( ALL + + 25 )
----
-1353

skipif mysql # not compatible
query I rowsort label-2935
SELECT 47 + - 56 * MAX ( ALL + + 25 )
----
-1353

query I rowsort
SELECT 83 - + + 40
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2937
SELECT 92 * + - COALESCE ( - + CAST( 4 AS SIGNED ), + 26 + 73 ) AS col1
----
368

skipif mysql # not compatible
query I rowsort label-2937
SELECT 92 * + - COALESCE ( - + CAST ( 4 AS INTEGER ), + 26 + 73 ) AS col1
----
368

onlyif mysql # aggregate syntax: 
query I rowsort label-2938
SELECT 66 + + NULLIF ( - COUNT( 66 ), 31 ) AS col0
----
65

skipif mysql # not compatible
query I rowsort label-2938
SELECT 66 + + NULLIF ( - COUNT ( 66 ), 31 ) AS col0
----
65

query I rowsort
SELECT ALL - 19 * + + 99
----
-1881

query I rowsort
SELECT DISTINCT - COALESCE ( 78, + 36 ) col1
----
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-2941
SELECT 8 DIV - 34 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2941
SELECT 8 / - 34 AS col2
----
0

query I rowsort
SELECT 78 * - 12 AS col0
----
-936

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2943
SELECT SUM( DISTINCT - + 74 ) + COUNT( DISTINCT + 11 ) DIV - 26 AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-2943
SELECT SUM ( DISTINCT - + 74 ) + COUNT ( DISTINCT + 11 ) / - 26 AS col0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-2944
SELECT ( + - COUNT( * ) ) * + - MAX( 99 )
----
99

skipif mysql # not compatible
query I rowsort label-2944
SELECT ( + - COUNT ( * ) ) * + - MAX ( 99 )
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2945
SELECT COUNT( * ) * + 82 * + COUNT( * ) * + - 67 + - 96
----
-5590

skipif mysql # not compatible
query I rowsort label-2945
SELECT COUNT ( * ) * + 82 * + COUNT ( * ) * + - 67 + - 96
----
-5590

onlyif mysql # aggregate syntax: 
query I rowsort label-2946
SELECT COUNT( * ) + 80 - - + 67 + 90 * - COUNT( * ) * 93
----
-8222

skipif mysql # not compatible
query I rowsort label-2946
SELECT COUNT ( * ) + 80 - - + 67 + 90 * - COUNT ( * ) * 93
----
-8222

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

skipif mysql # not compatible
query I rowsort label-2947
SELECT CAST ( NULL AS INTEGER ) + + - 40 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2948
SELECT ( - COUNT( * ) ) * - COALESCE ( + ( - COUNT( ALL + 21 ) ), - 81 * 46 + 78 DIV 65, 7 ) + COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2948
SELECT ( - COUNT ( * ) ) * - COALESCE ( + ( - COUNT ( ALL + 21 ) ), - 81 * 46 + 78 / 65, 7 ) + COUNT ( * ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2949
SELECT - 66 * MAX( DISTINCT - - 21 ) + - + 82 AS col2
----
-1468

skipif mysql # not compatible
query I rowsort label-2949
SELECT - 66 * MAX ( DISTINCT - - 21 ) + - + 82 AS col2
----
-1468

onlyif mysql # aggregate syntax: 
query I rowsort label-2950
SELECT ( - 42 ) * + 17 * + - SUM( ALL + 15 )
----
10710

skipif mysql # not compatible
query I rowsort label-2950
SELECT ( - 42 ) * + 17 * + - SUM ( ALL + 15 )
----
10710

onlyif mysql # aggregate syntax: 
query I rowsort label-2951
SELECT DISTINCT - 76 + + 76 + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-2951
SELECT DISTINCT - 76 + + 76 + + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2952
SELECT CASE 48 WHEN - ( - 95 ) THEN SUM( ALL 19 ) * + 79 - NULLIF ( - 37, ( - NULLIF ( + COALESCE ( 58, CASE ( - COALESCE ( - 13, - 1 ) ) WHEN - 23 THEN - 78 ELSE + COUNT( * ) + + 72 * 43 END + - 34 ), + 96 ) ) ) / + 9 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2952
SELECT CASE 48 WHEN - ( - 95 ) THEN SUM ( ALL 19 ) * + 79 - NULLIF ( - 37, ( - NULLIF ( + COALESCE ( 58, CASE ( - COALESCE ( - 13, - 1 ) ) WHEN - 23 THEN - 78 ELSE + COUNT ( * ) + + 72 * 43 END + - 34 ), + 96 ) ) ) / + 9 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2953
SELECT - 49 * ( - 55 ) * + + 37 + 59 + COUNT( * )
----
99775

skipif mysql # not compatible
query I rowsort label-2953
SELECT - 49 * ( - 55 ) * + + 37 + 59 + COUNT ( * )
----
99775

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2956
SELECT 61 + + 68 + CASE + 1 WHEN - 72 THEN + CASE 90 WHEN + 83 THEN NULL ELSE + 57 * + MIN( + 93 * 53 ) + 11 END / 42 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2956
SELECT 61 + + 68 + CASE + 1 WHEN - 72 THEN + CASE 90 WHEN + 83 THEN NULL ELSE + 57 * + MIN ( + 93 * 53 ) + 11 END / 42 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2957
SELECT - 98 * + - COUNT( + - 13 ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-2957
SELECT - 98 * + - COUNT ( + - 13 ) AS col1
----
98

query I rowsort
SELECT ( + 46 ) + + 25 * ( + 70 ) * + 46
----
80546

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2959
SELECT DISTINCT COALESCE ( - - 95, + + 95 DIV SUM( CASE 26 WHEN ( + 39 ) THEN NULL ELSE - 21 + + 71 * NULLIF ( 24, + 78 ) END ) + - COUNT( * ) ) DIV - 91 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2959
SELECT DISTINCT COALESCE ( - - 95, + + 95 / SUM ( CASE 26 WHEN ( + 39 ) THEN NULL ELSE - 21 + + 71 * NULLIF ( 24, + 78 ) END ) + - COUNT ( * ) ) / - 91 AS col1
----
-1

query I rowsort
SELECT ALL - 68 * + - 45 * - 93
----
-284580

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2961
SELECT + SUM( DISTINCT - 92 ) + - - 3 DIV - + 79 - 69 AS col0
----
-161

skipif mysql # not compatible
query I rowsort label-2961
SELECT + SUM ( DISTINCT - 92 ) + - - 3 / - + 79 - 69 AS col0
----
-161

query I rowsort
SELECT ALL + 57 + - ( - 54 ) AS col0
----
111

query I rowsort
SELECT DISTINCT + 99 + - + 23
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2964
SELECT + CAST( SUM( + + 33 ) AS SIGNED )
----
33

skipif mysql # not compatible
query I rowsort label-2964
SELECT + CAST ( SUM ( + + 33 ) AS INTEGER )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-2965
SELECT ALL + 50 * + COUNT( * ) * + 30 AS col0
----
1500

skipif mysql # not compatible
query I rowsort label-2965
SELECT ALL + 50 * + COUNT ( * ) * + 30 AS col0
----
1500

query I rowsort
SELECT ALL - 95 * 53 AS col0
----
-5035

query I rowsort
SELECT - CASE + 12 WHEN ( + ( + 2 ) ) THEN - 26 - 6 ELSE - COALESCE ( 32, 37 ) END + - 92 AS col2
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-2968
SELECT DISTINCT MAX( DISTINCT + + 52 ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-2968
SELECT DISTINCT MAX ( DISTINCT + + 52 ) AS col2
----
52

query I rowsort
SELECT - 48 * + + 90
----
-4320

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2971
SELECT 16 AS col0, 28 + - + 72 + CAST( + 14 AS SIGNED )
----
16
-30

skipif mysql # not compatible
query II rowsort label-2971
SELECT 16 AS col0, 28 + - + 72 + CAST ( + 14 AS INTEGER )
----
16
-30

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

skipif mysql # not compatible
query I rowsort label-2972
SELECT DISTINCT MAX ( - 1 )
----
-1

query I rowsort
SELECT - 18 * - + 51 AS col1
----
918

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2975
SELECT NULLIF ( - 32, - CASE + 23 WHEN + 88 * ( + 81 * - CAST( NULL AS SIGNED ) ) + - AVG ( DISTINCT + ( - 50 ) ) THEN - 4 + 3 WHEN - 83 * + NULLIF ( 70, COUNT( ALL - 91 ) * 65 + - 99 ) THEN NULL END * ( + 4 ) )
----
-32

skipif mysql # not compatible
query I rowsort label-2975
SELECT NULLIF ( - 32, - CASE + 23 WHEN + 88 * ( + 81 * - CAST ( NULL AS INTEGER ) ) + - AVG ( DISTINCT + ( - 50 ) ) THEN - 4 + 3 WHEN - 83 * + NULLIF ( 70, COUNT ( ALL - 91 ) * 65 + - 99 ) THEN NULL END * ( + 4 ) )
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2976
SELECT - 82 * - ( + ( - CAST( NULL AS SIGNED ) ) ) / - + 42 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2976
SELECT - 82 * - ( + ( - CAST ( NULL AS INTEGER ) ) ) / - + 42 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2977
SELECT CASE - - 67 WHEN - 84 THEN 6 WHEN + 25 * - 80 - - 22 * + 81 THEN 34 * + 84 ELSE - 88 DIV 85 + 2 END
----
1

skipif mysql # not compatible
query I rowsort label-2977
SELECT CASE - - 67 WHEN - 84 THEN 6 WHEN + 25 * - 80 - - 22 * + 81 THEN 34 * + 84 ELSE - 88 / 85 + 2 END
----
1

query I rowsort
SELECT ALL + 77 * - 51 + + 35 AS col0
----
-3892

query I rowsort
SELECT ALL - 61 * 19
----
-1159

query I rowsort
SELECT ALL - 88 * - - CASE 99 WHEN - 76 * + + 49 * + 97 THEN NULL WHEN + 59 THEN + 22 + 78 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2981
SELECT - 52 + - COUNT( 51 ) AS col1, 53 - - 42 - - 42 AS col2
----
-53
137

skipif mysql # not compatible
query II rowsort label-2981
SELECT - 52 + - COUNT ( 51 ) AS col1, 53 - - 42 - - 42 AS col2
----
-53
137

onlyif mysql # aggregate syntax: 
query I rowsort label-2982
SELECT COALESCE ( - - 6, COUNT( * ) * - - 22 * + - 46 * 63 ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-2982
SELECT COALESCE ( - - 6, COUNT ( * ) * - - 22 * + - 46 * 63 ) AS col1
----
6

query I rowsort
SELECT - 33 + - + 70
----
-103

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2985
SELECT + 47 DIV - - 22
----
2

skipif mysql # not compatible
query I rowsort label-2985
SELECT + 47 / - - 22
----
2

query I rowsort
SELECT - 99 * - CASE 49 WHEN + + 36 THEN NULL ELSE - + 83 - 42 END + 83
----
-12292

onlyif mysql # aggregate syntax: 
query I rowsort label-2987
SELECT DISTINCT - MAX( ALL + + 53 ) * + 47 + + + ( + 1 ) + COUNT( * ) col2
----
-2489

skipif mysql # not compatible
query I rowsort label-2987
SELECT DISTINCT - MAX ( ALL + + 53 ) * + 47 + + + ( + 1 ) + COUNT ( * ) col2
----
-2489

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

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

query I rowsort
SELECT + - 28 + - + 2 AS col0
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2990
SELECT ALL + 18 * + + 10 + 88 + - COUNT( * ) * + 46 * - 12 DIV 12 AS col2
----
314

skipif mysql # not compatible
query I rowsort label-2990
SELECT ALL + 18 * + + 10 + 88 + - COUNT ( * ) * + 46 * - 12 / 12 AS col2
----
314

onlyif mysql # aggregate syntax: 
query I rowsort label-2991
SELECT + - 16 * 79 + + 18 + SUM( ALL + 54 ) + 88
----
-1104

skipif mysql # not compatible
query I rowsort label-2991
SELECT + - 16 * 79 + + 18 + SUM ( ALL + 54 ) + 88
----
-1104

onlyif mysql # aggregate syntax: 
query I rowsort label-2992
SELECT ALL + CASE - + 85 WHEN + 75 THEN NULL WHEN 25 THEN 70 ELSE - COUNT( * ) END AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2992
SELECT ALL + CASE - + 85 WHEN + 75 THEN NULL WHEN 25 THEN 70 ELSE - COUNT ( * ) END AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2993
SELECT + - MIN( - COALESCE ( - + 67, 97 * - 58 ) ) * 38
----
-2546

skipif mysql # not compatible
query I rowsort label-2993
SELECT + - MIN ( - COALESCE ( - + 67, 97 * - 58 ) ) * 38
----
-2546

query I rowsort
SELECT ALL 15 - - 96 + - 95 - + 69 + 30 + + 42 * + 10 * + 13
----
5437

query II rowsort
SELECT + 20 * 1 + - - 80 AS col0, ( - + 81 )
----
100
-81

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2998
SELECT ALL COUNT( * ), 54 + 86 * + + 75 AS col0
----
1
6504

skipif mysql # not compatible
query II rowsort label-2998
SELECT ALL COUNT ( * ), 54 + 86 * + + 75 AS col0
----
1
6504

onlyif mysql # aggregate syntax: 
query I rowsort label-2999
SELECT + COUNT( * ) - - + 76 * - 6 col0
----
-455

skipif mysql # not compatible
query I rowsort label-2999
SELECT + COUNT ( * ) - - + 76 * - 6 col0
----
-455

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-3000
SELECT + 24 - + - CAST( - - 71 AS SIGNED ) DIV + - 73 AS col2, - CAST( NULL AS DECIMAL ) + + 67 AS col2
----
24
NULL

skipif mysql # not compatible
query II rowsort label-3000
SELECT + 24 - + - CAST ( - - 71 AS INTEGER ) / + - 73 AS col2, - CAST ( NULL AS REAL ) + + 67 AS col2
----
24
NULL

query I rowsort
SELECT ALL COALESCE ( 12, + 29 * 59, - 4 + - - 7 ) AS col2
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-3002
SELECT + ( 47 ) / CASE + COUNT( * ) WHEN - 84 THEN - 42 WHEN 12 + + 37 THEN NULL WHEN - 89 THEN 29 + 7 END - + 3 * + 11 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3002
SELECT + ( 47 ) / CASE + COUNT ( * ) WHEN - 84 THEN - 42 WHEN 12 + + 37 THEN NULL WHEN - 89 THEN 29 + 7 END - + 3 * + 11 AS col2
----
NULL

query I rowsort
SELECT + 88 + - + 61 AS col0
----
27

query I rowsort
SELECT - 70 - 96 * + 37 AS col2
----
-3622

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3005
SELECT + 41 + - - 25 + - 23 DIV - COUNT( * )
----
89

skipif mysql # not compatible
query I rowsort label-3005
SELECT + 41 + - - 25 + - 23 / - COUNT ( * )
----
89

query I rowsort
SELECT - 64 * - 18 * + + 47 AS col0
----
54144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3007
SELECT ALL + 29 + + - 70 + - - 45 * + 63 * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3007
SELECT ALL + 29 + + - 70 + - - 45 * + 63 * + - CAST ( NULL AS INTEGER )
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3009
SELECT DISTINCT 70 DIV + - 20 + - 31 AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-3009
SELECT DISTINCT 70 / + - 20 + - 31 AS col2
----
-34

query I rowsort
SELECT - 11 + + 22
----
11

query I rowsort
SELECT - 28 * + 71
----
-1988

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3012
SELECT ALL + 72 DIV - MIN( NULLIF ( - 41, + 37 + - 0 - 3 * + 16 ) ) + + ( - COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-3012
SELECT ALL + 72 / - MIN ( NULLIF ( - 41, + 37 + - 0 - 3 * + 16 ) ) + + ( - COUNT ( * ) )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3013
SELECT DISTINCT + 71 DIV + 63 - NULLIF ( + 49, + - 72 ) + + ( + 21 ) + - 24
----
-51

skipif mysql # not compatible
query I rowsort label-3013
SELECT DISTINCT + 71 / + 63 - NULLIF ( + 49, + - 72 ) + + ( + 21 ) + - 24
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3014
SELECT ALL NULLIF ( - 11, COUNT( * ) * + 46 * + - 14 ) DIV MAX( ALL - 79 ) + 64 AS col0
----
64

skipif mysql # not compatible
query I rowsort label-3014
SELECT ALL NULLIF ( - 11, COUNT ( * ) * + 46 * + - 14 ) / MAX ( ALL - 79 ) + 64 AS col0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3015
SELECT DISTINCT + COUNT( * ) * + + 61 + 46 + - + 95 AS col1
----
12

skipif mysql # not compatible
query I rowsort label-3015
SELECT DISTINCT + COUNT ( * ) * + + 61 + 46 + - + 95 AS col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-3016
SELECT DISTINCT + NULLIF ( + + 9, + 91 * - CASE - + 64 WHEN - + 66 * - 27 THEN COUNT( * ) ELSE NULL END + + 65 + - 50 ) * - 71
----
-639

skipif mysql # not compatible
query I rowsort label-3016
SELECT DISTINCT + NULLIF ( + + 9, + 91 * - CASE - + 64 WHEN - + 66 * - 27 THEN COUNT ( * ) ELSE NULL END + + 65 + - 50 ) * - 71
----
-639

onlyif mysql # aggregate syntax: 
query I rowsort label-3017
SELECT - + 13 * COALESCE ( + + 74, + - COUNT( * ) )
----
-962

skipif mysql # not compatible
query I rowsort label-3017
SELECT - + 13 * COALESCE ( + + 74, + - COUNT ( * ) )
----
-962

query II rowsort
SELECT + 2 AS col2, + 46 AS col1
----
2
46

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

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

query I rowsort
SELECT ALL - 32 * - 83 AS col0
----
2656

query I rowsort
SELECT - + 10 + 73 - - 44 * - ( 75 )
----
-3237

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3022
SELECT - 4 * - COUNT( DISTINCT 86 ) + - - 6 + - - 72 + COUNT( 20 ) + - ( COUNT( * ) + - ( CAST( NULL AS SIGNED ) ) / 25 ) * 86 * + 21
----
NULL

skipif mysql # not compatible
query I rowsort label-3022
SELECT - 4 * - COUNT ( DISTINCT 86 ) + - - 6 + - - 72 + COUNT ( 20 ) + - ( COUNT ( * ) + - ( CAST ( NULL AS INTEGER ) ) / 25 ) * 86 * + 21
----
NULL

query I rowsort
SELECT 60 * - - 51
----
3060

query I rowsort
SELECT - 2 * + + 54 + 94
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-3025
SELECT COUNT( 49 ) - - 32
----
33

skipif mysql # not compatible
query I rowsort label-3025
SELECT COUNT ( 49 ) - - 32
----
33

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

skipif mysql # not compatible
query I rowsort label-3026
SELECT - 36 * 47 - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 39 * + COALESCE ( 29, - + 51, - 1 )
----
1131

onlyif mysql # aggregate syntax: 
query I rowsort label-3028
SELECT + COUNT( * ) * - CASE 73 WHEN + 16 THEN - 3 ELSE NULL END + COUNT( * ) + 23 * + 68
----
NULL

skipif mysql # not compatible
query I rowsort label-3028
SELECT + COUNT ( * ) * - CASE 73 WHEN + 16 THEN - 3 ELSE NULL END + COUNT ( * ) + 23 * + 68
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3029
SELECT 70 + 8 + - COALESCE ( - ( + 47 ), + - 23 + + 4 DIV - 19 ) * 93 * 25
----
109353

skipif mysql # not compatible
query I rowsort label-3029
SELECT 70 + 8 + - COALESCE ( - ( + 47 ), + - 23 + + 4 / - 19 ) * 93 * 25
----
109353

query I rowsort
SELECT 82 + 87 AS col1
----
169

query I rowsort
SELECT ( + - 0 ) + + 70 - + 71 * ( 43 ) AS col1
----
-2983

onlyif mysql # aggregate syntax: 
query I rowsort label-3032
SELECT DISTINCT 65 * + SUM( COALESCE ( - - 98, - 44, - 99 ) ) col2
----
6370

skipif mysql # not compatible
query I rowsort label-3032
SELECT DISTINCT 65 * + SUM ( COALESCE ( - - 98, - 44, - 99 ) ) col2
----
6370

query I rowsort
SELECT ALL 59 + + 44 + - 94 * + 17 AS col0
----
-1495

onlyif mysql # aggregate syntax: 
query I rowsort label-3034
SELECT MIN( 56 ) * - - 64 * 32 + - 32 + + ( - ( 34 ) ) AS col0
----
114622

skipif mysql # not compatible
query I rowsort label-3034
SELECT MIN ( 56 ) * - - 64 * 32 + - 32 + + ( - ( 34 ) ) AS col0
----
114622

query I rowsort
SELECT ( 19 ) + - 36 col2
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-3036
SELECT ( - 17 ) DIV - 88
----
0

skipif mysql # not compatible
query I rowsort label-3036
SELECT ( - 17 ) / - 88
----
0

query I rowsort
SELECT 36 + + - 72
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3038
SELECT ALL 46 + + COUNT( * ) * - 69 * 86 * + COUNT( * ) * - CAST( 29 AS SIGNED ) col1
----
172132

skipif mysql # not compatible
query I rowsort label-3038
SELECT ALL 46 + + COUNT ( * ) * - 69 * 86 * + COUNT ( * ) * - CAST ( 29 AS INTEGER ) col1
----
172132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3039
SELECT ALL - CAST( + 88 AS SIGNED ) + + ( - NULLIF ( - - 23, + CAST( 70 AS SIGNED ) ) )
----
-111

skipif mysql # not compatible
query I rowsort label-3039
SELECT ALL - CAST ( + 88 AS INTEGER ) + + ( - NULLIF ( - - 23, + CAST ( 70 AS INTEGER ) ) )
----
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-3040
SELECT DISTINCT + COUNT( * ) + - 67 + COUNT( * ) * + 61 AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-3040
SELECT DISTINCT + COUNT ( * ) + - 67 + COUNT ( * ) * + 61 AS col2
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3041
SELECT DISTINCT CASE 40 WHEN - 15 THEN NULL ELSE - 79 + + COUNT( * ) END DIV 53 * + ( 2 ) DIV + 10
----
0

skipif mysql # not compatible
query I rowsort label-3041
SELECT DISTINCT CASE 40 WHEN - 15 THEN NULL ELSE - 79 + + COUNT ( * ) END / 53 * + ( 2 ) / + 10
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3042
SELECT ALL ( - COUNT( * ) ) * - CASE WHEN - 38 IS NOT NULL THEN ( - COUNT( * ) ) ELSE NULL END AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3042
SELECT ALL ( - COUNT ( * ) ) * - CASE WHEN - 38 IS NOT NULL THEN ( - COUNT ( * ) ) ELSE NULL END AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3043
SELECT + CAST( + + 43 AS SIGNED ) AS col1, - 12 AS col1
----
43
-12

skipif mysql # not compatible
query II rowsort label-3043
SELECT + CAST ( + + 43 AS INTEGER ) AS col1, - 12 AS col1
----
43
-12

query I rowsort
SELECT - 51 + - + 8 + - 63 AS col2
----
-122

onlyif mysql # aggregate syntax: 
query I rowsort label-3045
SELECT ALL + COALESCE ( + COUNT( * ), 70 ) + - + 60
----
-59

skipif mysql # not compatible
query I rowsort label-3045
SELECT ALL + COALESCE ( + COUNT ( * ), 70 ) + - + 60
----
-59

query I rowsort
SELECT + 18 + - 32 AS col0
----
-14

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3048
SELECT 85 + + CAST( NULL AS SIGNED ) / + + 2
----
NULL

skipif mysql # not compatible
query I rowsort label-3048
SELECT 85 + + CAST ( NULL AS INTEGER ) / + + 2
----
NULL

query I rowsort
SELECT ALL - + COALESCE ( + 3, - 61 )
----
-3

query I rowsort
SELECT 75 * - 56 col2
----
-4200

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3052
SELECT ALL + - COUNT( DISTINCT + 77 ) * + 29 DIV ( + - 89 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3052
SELECT ALL + - COUNT ( DISTINCT + 77 ) * + 29 / ( + - 89 ) AS col0
----
0

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

query I rowsort
SELECT + 79 * 61 + 29 AS col1
----
4848

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3055
SELECT DISTINCT - ( - CAST( NULL AS DECIMAL ) ) / 87 * + 86
----
NULL

skipif mysql # not compatible
query I rowsort label-3055
SELECT DISTINCT - ( - CAST ( NULL AS REAL ) ) / 87 * + 86
----
NULL

query I rowsort
SELECT ALL + - 83 * + - NULLIF ( 92, + 39 ) AS col1
----
7636

query I rowsort
SELECT ALL + - 66 * - 38
----
2508

query I rowsort
SELECT DISTINCT + 74 * 38 AS col2
----
2812

onlyif mysql # aggregate syntax: 
query I rowsort label-3059
SELECT COUNT( * ) * - COUNT( * ) * + 10 * + 45 * 32
----
-14400

skipif mysql # not compatible
query I rowsort label-3059
SELECT COUNT ( * ) * - COUNT ( * ) * + 10 * + 45 * 32
----
-14400

query II rowsort
SELECT - 0, - 91 * + 46 AS col2
----
0
-4186

onlyif mysql # aggregate syntax: 
query I rowsort label-3061
SELECT 11 * - - CASE + COALESCE ( - - COUNT( * ), + COUNT( * ), - 47 ) WHEN + 59 THEN NULL WHEN + - 82 THEN + 74 - COUNT( * ) * + 21 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3061
SELECT 11 * - - CASE + COALESCE ( - - COUNT ( * ), + COUNT ( * ), - 47 ) WHEN + 59 THEN NULL WHEN + - 82 THEN + 74 - COUNT ( * ) * + 21 END
----
NULL

query I rowsort
SELECT ALL + 1 + + 2
----
3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3063
SELECT 91 DIV 16 * CAST( - 7 AS SIGNED ) DIV + 34
----
-1

skipif mysql # not compatible
query I rowsort label-3063
SELECT 91 / 16 * CAST ( - 7 AS INTEGER ) / + 34
----
-1

query I rowsort
SELECT 27 * 15
----
405

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

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

query I rowsort
SELECT 1 * - 39
----
-39

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

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

query I rowsort
SELECT ALL 5 + 79
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3069
SELECT 17 - - 69 + COUNT( * ) col0
----
87

skipif mysql # not compatible
query I rowsort label-3069
SELECT 17 - - 69 + COUNT ( * ) col0
----
87

query I rowsort
SELECT ALL - 29 + + 30
----
1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3072
SELECT DISTINCT + 57 * + 88 * CAST( NULL AS SIGNED ) * + 76 / + 59 * + SUM( + 23 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3072
SELECT DISTINCT + 57 * + 88 * CAST ( NULL AS INTEGER ) * + 76 / + 59 * + SUM ( + 23 )
----
NULL

query I rowsort
SELECT 7 + - - 48 * ( 60 )
----
2887

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

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

query I rowsort
SELECT ALL 10 - 66
----
-56

query I rowsort
SELECT ALL + 57 * + 5 + + - 74 * 80 AS col0
----
-5635

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

skipif mysql # not compatible
query II rowsort label-3077
SELECT + CAST ( NULL AS INTEGER ) AS col0, + 1
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3078
SELECT ALL - - NULLIF ( - - 69, - 93 + 99 + + 74 / - - ( COALESCE ( COUNT( * ), - 9, 17 ) ) ) * 17 AS col0
----
1173

skipif mysql # not compatible
query I rowsort label-3078
SELECT ALL - - NULLIF ( - - 69, - 93 + 99 + + 74 / - - ( COALESCE ( COUNT ( * ), - 9, 17 ) ) ) * 17 AS col0
----
1173

onlyif mysql # aggregate syntax: 
query II rowsort label-3079
SELECT ( - 2 ) * + + 85 AS col1, COUNT( * ) AS col0
----
-170
1

skipif mysql # not compatible
query II rowsort label-3079
SELECT ( - 2 ) * + + 85 AS col1, COUNT ( * ) AS col0
----
-170
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3080
SELECT - COALESCE ( + 12, - 31 ) * + COUNT( DISTINCT 83 ) * - + 95 + - 84 + + COALESCE ( + 83, ( - 18 ) * - 12, 66 ) * + 14
----
2218

skipif mysql # not compatible
query I rowsort label-3080
SELECT - COALESCE ( + 12, - 31 ) * + COUNT ( DISTINCT 83 ) * - + 95 + - 84 + + COALESCE ( + 83, ( - 18 ) * - 12, 66 ) * + 14
----
2218

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3082
SELECT + 48, + CASE ( - - 59 ) WHEN - 96 THEN + 81 WHEN - CAST( NULL AS DECIMAL ) * + CAST( + 3 AS SIGNED ) * - 93 THEN NULL ELSE NULL END - 35 * AVG ( 94 / 23 ) AS col1
----
48
NULL

skipif mysql # not compatible
query II rowsort label-3082
SELECT + 48, + CASE ( - - 59 ) WHEN - 96 THEN + 81 WHEN - CAST ( NULL AS REAL ) * + CAST ( + 3 AS INTEGER ) * - 93 THEN NULL ELSE NULL END - 35 * AVG ( 94 / 23 ) AS col1
----
48
NULL

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

skipif mysql # not compatible
query I rowsort label-3083
SELECT DISTINCT + MAX ( ALL + - 94 ) AS col1
----
-94

query I rowsort
SELECT - 70 + + 19 * + 70 * - 74
----
-98490

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

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

query I rowsort
SELECT DISTINCT 83 * + 60
----
4980

query I rowsort
SELECT DISTINCT + NULLIF ( - - 2, - - 42 + - 36 ) * 73 * - 8
----
-1168

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3089
SELECT 53 * + CAST( NULL AS SIGNED ) + + 25 + - + CAST( NULL AS SIGNED ) AS col1
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3090
SELECT - + CASE MAX( + NULLIF ( 43, - + CASE 57 WHEN + + 55 THEN - 92 WHEN - 59 / + ( - 78 ) THEN NULL WHEN + ( - 18 ) + + 64 THEN 68 END ) ) WHEN 42 THEN 26 * - COUNT( * ) WHEN + ( ( 50 ) ) THEN NULL END * - ( NULLIF ( ( + 21 ), + 67 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3090
SELECT - + CASE MAX ( + NULLIF ( 43, - + CASE 57 WHEN + + 55 THEN - 92 WHEN - 59 / + ( - 78 ) THEN NULL WHEN + ( - 18 ) + + 64 THEN 68 END ) ) WHEN 42 THEN 26 * - COUNT ( * ) WHEN + ( ( 50 ) ) THEN NULL END * - ( NULLIF ( ( + 21 ), + 67 ) ) AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3092
SELECT ALL + SUM( - + 68 ) AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-3092
SELECT ALL + SUM ( - + 68 ) AS col0
----
-68

query I rowsort
SELECT - 95 - + - 71 + - + 77 + + 48
----
-53

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3095
SELECT MIN( ALL 44 ), 30 * + - 73 * - - COUNT( * ) * 99 AS col0
----
44
-216810

skipif mysql # not compatible
query II rowsort label-3095
SELECT MIN ( ALL 44 ), 30 * + - 73 * - - COUNT ( * ) * 99 AS col0
----
44
-216810

onlyif mysql # aggregate syntax: 
query I rowsort label-3096
SELECT DISTINCT 83 + NULLIF ( + - 2, + 14 * + COUNT( * ) ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-3096
SELECT DISTINCT 83 + NULLIF ( + - 2, + 14 * + COUNT ( * ) ) AS col1
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-3097
SELECT ALL 41 DIV + 68
----
0

skipif mysql # not compatible
query I rowsort label-3097
SELECT ALL 41 / + 68
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3098
SELECT - 12 + - - 37 + + COALESCE ( - COUNT( * ), - - 3, - MAX( ALL 69 ) + + 37, + + 82 ) col2
----
24

skipif mysql # not compatible
query I rowsort label-3098
SELECT - 12 + - - 37 + + COALESCE ( - COUNT ( * ), - - 3, - MAX ( ALL 69 ) + + 37, + + 82 ) col2
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3099
SELECT ALL + 97 + + ( + COUNT( * ) ) DIV 99 AS col2, - ( + 19 )
----
97
-19

skipif mysql # not compatible
query II rowsort label-3099
SELECT ALL + 97 + + ( + COUNT ( * ) ) / 99 AS col2, - ( + 19 )
----
97
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-3100
SELECT ALL - COALESCE ( - COUNT( * ), + + 21 * - + NULLIF ( + 20, - - ( + - 26 ) + - 58 ) ) * 64
----
64

skipif mysql # not compatible
query I rowsort label-3100
SELECT ALL - COALESCE ( - COUNT ( * ), + + 21 * - + NULLIF ( + 20, - - ( + - 26 ) + - 58 ) ) * 64
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3101
SELECT 70 * - 84 + - COUNT( * )
----
-5881

skipif mysql # not compatible
query I rowsort label-3101
SELECT 70 * - 84 + - COUNT ( * )
----
-5881

query I rowsort
SELECT DISTINCT - 25 * + 51 * + - 23
----
29325

query I rowsort
SELECT DISTINCT + 53 - - 31 * + 5
----
208

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

query II rowsort
SELECT DISTINCT ( - + 58 ), - 18 AS col1
----
-58
-18

query I rowsort
SELECT DISTINCT + - 42 - 74
----
-116

query I rowsort
SELECT DISTINCT 25 - 12 AS col2
----
13

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3109
SELECT + NULLIF ( - ( + 8 ), + COUNT( * ) * + + 79 * + 65 + 89 - - 56 + - 3 + 34 * + MAX( DISTINCT ( ( + 45 ) ) + 3 * 18 ) ) * 27
----
-216

skipif mysql # not compatible
query I rowsort label-3109
SELECT + NULLIF ( - ( + 8 ), + COUNT ( * ) * + + 79 * + 65 + 89 - - 56 + - 3 + 34 * + MAX ( DISTINCT ( ( + 45 ) ) + 3 * 18 ) ) * 27
----
-216

onlyif mysql # aggregate syntax: 
query I rowsort label-3110
SELECT - + COUNT( * ) * - + 88 * + - 85 * + + COUNT( ALL 5 )
----
-7480

skipif mysql # not compatible
query I rowsort label-3110
SELECT - + COUNT ( * ) * - + 88 * + - 85 * + + COUNT ( ALL 5 )
----
-7480

onlyif mysql # DIV for integer division: 
query I rowsort label-3111
SELECT + + 65 DIV - 92 - - ( + 15 ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-3111
SELECT + + 65 / - 92 - - ( + 15 ) AS col0
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3112
SELECT + + AVG ( ALL - 85 ) * - COUNT( * ) / - 63 + + 9 + + 4 / ( CASE + 75 WHEN - CAST( 46 AS SIGNED ) + + 65 THEN NULL WHEN - CASE + 41 WHEN - 9 * ( 45 * + 82 ) + + 17 THEN - 27 END * 11 + - 38 THEN COUNT( * ) END ) - - ( + COALESCE ( NULLIF ( + ( + 62 ), 65 * 29 ), + NULLIF ( + ( - ( - SUM( ALL - 54 ) ) ), + COUNT( * ) ) ) - 52 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3112
SELECT + + AVG ( ALL - 85 ) * - COUNT ( * ) / - 63 + + 9 + + 4 / ( CASE + 75 WHEN - CAST ( 46 AS INTEGER ) + + 65 THEN NULL WHEN - CASE + 41 WHEN - 9 * ( 45 * + 82 ) + + 17 THEN - 27 END * 11 + - 38 THEN COUNT ( * ) END ) - - ( + COALESCE ( NULLIF ( + ( + 62 ), 65 * 29 ), + NULLIF ( + ( - ( - SUM ( ALL - 54 ) ) ), + COUNT ( * ) ) ) - 52 ) AS col1
----
NULL

query I rowsort
SELECT ALL + + 32 col0
----
32

query I rowsort
SELECT DISTINCT - 51 * + 98 - + 28 * 62 AS col2
----
-6734

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3115
SELECT + 16 + + 74 DIV MAX( 4 ) - + 45 * + 77
----
-3431

skipif mysql # not compatible
query I rowsort label-3115
SELECT + 16 + + 74 / MAX ( 4 ) - + 45 * + 77
----
-3431

query I rowsort
SELECT - 33 * - 51 - + 72
----
1611

query II rowsort
SELECT + 29 * 73 AS col1, 85 * - 10
----
2117
-850

onlyif mysql # aggregate syntax: 
query I rowsort label-3118
SELECT ALL + - CASE 94 WHEN 81 THEN - + AVG ( + 71 ) * 97 + 20 + 27 + - 70 * + 80 WHEN + 66 THEN - MIN( + 50 ) * 24 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3118
SELECT ALL + - CASE 94 WHEN 81 THEN - + AVG ( + 71 ) * 97 + 20 + 27 + - 70 * + 80 WHEN + 66 THEN - MIN ( + 50 ) * 24 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3119
SELECT DISTINCT - COUNT( * ) * - 39 * 22 + - - 20 AS col0
----
878

skipif mysql # not compatible
query I rowsort label-3119
SELECT DISTINCT - COUNT ( * ) * - 39 * 22 + - - 20 AS col0
----
878

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3120
SELECT 63 * - CAST( NULL AS SIGNED ) * - + 53 + 12 + + 68 + + SUM( + - 32 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3120
SELECT 63 * - CAST ( NULL AS INTEGER ) * - + 53 + 12 + + 68 + + SUM ( + - 32 ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3121
SELECT 65 DIV + 74 + 8 * - + 39 + + 87 + 70 * 37 AS col2
----
2365

skipif mysql # not compatible
query I rowsort label-3121
SELECT 65 / + 74 + 8 * - + 39 + + 87 + 70 * 37 AS col2
----
2365

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3123
SELECT - 48 + MAX( + 25 )
----
-23

skipif mysql # not compatible
query I rowsort label-3123
SELECT - 48 + MAX ( + 25 )
----
-23

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3125
SELECT ALL - 73 * - ( + 29 ) + - COUNT( * ) AS col2
----
2116

skipif mysql # not compatible
query I rowsort label-3125
SELECT ALL - 73 * - ( + 29 ) + - COUNT ( * ) AS col2
----
2116

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3126
SELECT ALL 0 * + ( + CAST( 50 AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-3126
SELECT ALL 0 * + ( + CAST ( 50 AS INTEGER ) )
----
0

query I rowsort
SELECT + 12 * 53 AS col2
----
636

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3129
SELECT ALL + 96 * 87 + - - ( NULLIF ( - MIN( ALL - 46 ), - 61 * COALESCE ( 8, + 75 * COUNT( 3 ) + ( 1 ), + COALESCE ( - ( + 95 ), 85 * - 49 + + MAX( + 64 + 0 ) ) ) + - ( - 79 ) ) ) col2
----
8398

skipif mysql # not compatible
query I rowsort label-3129
SELECT ALL + 96 * 87 + - - ( NULLIF ( - MIN ( ALL - 46 ), - 61 * COALESCE ( 8, + 75 * COUNT ( 3 ) + ( 1 ), + COALESCE ( - ( + 95 ), 85 * - 49 + + MAX ( + 64 + 0 ) ) ) + - ( - 79 ) ) ) col2
----
8398

query I rowsort
SELECT + 76 - + 40 AS col0
----
36

query I rowsort
SELECT - 82 * + 93 AS col2
----
-7626

query I rowsort
SELECT + 52 + 5 AS col1
----
57

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3134
SELECT - COUNT( * ) - ( - + MIN( DISTINCT - - 15 ) ) + 6
----
20

skipif mysql # not compatible
query I rowsort label-3134
SELECT - COUNT ( * ) - ( - + MIN ( DISTINCT - - 15 ) ) + 6
----
20

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3137
SELECT + COUNT( ALL 54 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3137
SELECT + COUNT ( ALL 54 ) AS col1
----
1

query I rowsort
SELECT 91 + - + 90 - - 71
----
72

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3140
SELECT CASE + ( - 35 ) WHEN + 32 - + - MAX( DISTINCT - 63 ) * ( + 53 ) THEN - 86 ELSE NULL END - + + 68 - 18 * 44 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3140
SELECT CASE + ( - 35 ) WHEN + 32 - + - MAX ( DISTINCT - 63 ) * ( + 53 ) THEN - 86 ELSE NULL END - + + 68 - 18 * 44 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3141
SELECT + ( + COUNT( * ) ) * - 78 * + + 14 + + - 5, - 31 * + COUNT( * ) AS col1
----
-1097
-31

skipif mysql # not compatible
query II rowsort label-3141
SELECT + ( + COUNT ( * ) ) * - 78 * + + 14 + + - 5, - 31 * + COUNT ( * ) AS col1
----
-1097
-31

query I rowsort
SELECT 83 + - 33 - - + 67 * - 41
----
-2697

query I rowsort
SELECT + 38 - 90 + + ( 95 )
----
43

query II rowsort
SELECT ALL + - 52 + ( - 17 ) col1, + ( 3 )
----
-69
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3145
SELECT ALL - - 89 + - 70 + - CAST( NULL AS SIGNED ) * - - 17 + - - 41 * - MIN( 82 ) * 89 * MAX( ALL - 43 ) / 14 - - 76 * - 10 + 62
----
NULL

skipif mysql # not compatible
query I rowsort label-3145
SELECT ALL - - 89 + - 70 + - CAST ( NULL AS INTEGER ) * - - 17 + - - 41 * - MIN ( 82 ) * 89 * MAX ( ALL - 43 ) / 14 - - 76 * - 10 + 62
----
NULL

query I rowsort
SELECT DISTINCT + 64 + + 72 + + 3
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-3147
SELECT ALL + + 60 + - - NULLIF ( 67, - COUNT( DISTINCT + 40 ) ) AS col0
----
127

skipif mysql # not compatible
query I rowsort label-3147
SELECT ALL + + 60 + - - NULLIF ( 67, - COUNT ( DISTINCT + 40 ) ) AS col0
----
127

query I rowsort
SELECT DISTINCT - + 47 * + 7 + - + 75
----
-404

query I rowsort
SELECT ALL - 6 * + - 74 AS col0
----
444

query II rowsort
SELECT 35, 30 + + 7 col0
----
35
37

query I rowsort
SELECT DISTINCT - 61 * - 72 * + + 67 * - NULLIF ( 53, - 39 + + ( 18 ) ) AS col2
----
-15595992

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3152
SELECT NULLIF ( + CAST( NULL AS SIGNED ), - 32 + + - 90 * - 8 * - + 26 ) + - 85 * NULLIF ( + - 5, + 42 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3152
SELECT NULLIF ( + CAST ( NULL AS INTEGER ), - 32 + + - 90 * - 8 * - + 26 ) + - 85 * NULLIF ( + - 5, + 42 ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 97 + + 47
----
144

query I rowsort
SELECT ALL - 43 * - 38 * 85
----
138890

onlyif mysql # aggregate syntax: 
query II rowsort label-3155
SELECT 26 + 65 AS col0, 82 + - + 69 - ( + CASE - + 88 WHEN + - SUM( DISTINCT - 52 ) - + 51 THEN NULL ELSE 97 * - 46 END ) + - 85
----
91
4390

skipif mysql # not compatible
query II rowsort label-3155
SELECT 26 + 65 AS col0, 82 + - + 69 - ( + CASE - + 88 WHEN + - SUM ( DISTINCT - 52 ) - + 51 THEN NULL ELSE 97 * - 46 END ) + - 85
----
91
4390

query I rowsort
SELECT 0 * + - ( 99 )
----
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3158
SELECT - CASE 31 WHEN - + 82 + - - CAST( NULL AS SIGNED ) + - 9 / ( + - 69 ) * + + 11 * + + 7 THEN + 82 END * ( - CAST( + AVG ( 24 ) AS SIGNED ) ) + CASE 16 + + 87 WHEN ( 86 ) THEN NULL ELSE ( 98 ) + + 29 * 93 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3158
SELECT - CASE 31 WHEN - + 82 + - - CAST ( NULL AS INTEGER ) + - 9 / ( + - 69 ) * + + 11 * + + 7 THEN + 82 END * ( - CAST ( + AVG ( 24 ) AS INTEGER ) ) + CASE 16 + + 87 WHEN ( 86 ) THEN NULL ELSE ( 98 ) + + 29 * 93 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3159
SELECT COALESCE ( + COALESCE ( - - 47, 75 * - 6 * 60 + MIN( ALL + + 0 ) + - 77, - - COUNT( * ) * - COUNT( 7 ) + 71 + + 56 ), + 53 + + SUM( - 7 ) ) - - 60 * + 5
----
347

skipif mysql # not compatible
query I rowsort label-3159
SELECT COALESCE ( + COALESCE ( - - 47, 75 * - 6 * 60 + MIN ( ALL + + 0 ) + - 77, - - COUNT ( * ) * - COUNT ( 7 ) + 71 + + 56 ), + 53 + + SUM ( - 7 ) ) - - 60 * + 5
----
347

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3160
SELECT 7 * + + 95 + - 95 + + 33 + + - 69 * + CASE + + 52 WHEN 2 + + 12 THEN NULL WHEN - 64 + COUNT( * ) THEN NULL ELSE - CASE - ( 28 ) WHEN 66 THEN COUNT( 66 ) - COUNT( * ) WHEN 7 * 86 + CAST( COALESCE ( - ( + CAST( NULL AS SIGNED ) ), + 94, + 15 ) + 17 AS SIGNED ) THEN - 86 ELSE + 72 END END + 86 AS col2
----
5657

skipif mysql # not compatible
query I rowsort label-3160
SELECT 7 * + + 95 + - 95 + + 33 + + - 69 * + CASE + + 52 WHEN 2 + + 12 THEN NULL WHEN - 64 + COUNT ( * ) THEN NULL ELSE - CASE - ( 28 ) WHEN 66 THEN COUNT ( 66 ) - COUNT ( * ) WHEN 7 * 86 + CAST ( COALESCE ( - ( + CAST ( NULL AS INTEGER ) ), + 94, + 15 ) + 17 AS INTEGER ) THEN - 86 ELSE + 72 END END + 86 AS col2
----
5657

onlyif mysql # aggregate syntax: 
query I rowsort label-3161
SELECT 52 + + - ( - MIN( DISTINCT - 15 ) ) * 44 * - COUNT( * )
----
712

skipif mysql # not compatible
query I rowsort label-3161
SELECT 52 + + - ( - MIN ( DISTINCT - 15 ) ) * 44 * - COUNT ( * )
----
712

query I rowsort
SELECT ALL ( - - 47 ) * + 33 col1
----
1551

onlyif mysql # aggregate syntax: 
query I rowsort label-3163
SELECT + 93 * COUNT( * ) + + 63
----
156

skipif mysql # not compatible
query I rowsort label-3163
SELECT + 93 * COUNT ( * ) + + 63
----
156

onlyif mysql # DIV for integer division: 
query I rowsort label-3164
SELECT ALL 17 * - 2 DIV + 65
----
0

skipif mysql # not compatible
query I rowsort label-3164
SELECT ALL 17 * - 2 / + 65
----
0

query I rowsort
SELECT 42 + 2 + - 83 AS col0
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3166
SELECT SUM( CAST( - 22 AS SIGNED ) ) + - - 22 + 56 - + 53 * + - 74
----
3978

skipif mysql # not compatible
query I rowsort label-3166
SELECT SUM ( CAST ( - 22 AS INTEGER ) ) + - - 22 + 56 - + 53 * + - 74
----
3978

query II rowsort
SELECT DISTINCT 26 AS col1, 83 AS col1
----
26
83

query I rowsort
SELECT + 95 + 78
----
173

query I rowsort
SELECT 49 + 88 AS col0
----
137

onlyif mysql # DIV for integer division: 
query II rowsort label-3170
SELECT 36 * 24 * ( + + 34 ) AS col1, - 53 DIV 81 AS col1
----
29376
0

skipif mysql # not compatible
query II rowsort label-3170
SELECT 36 * 24 * ( + + 34 ) AS col1, - 53 / 81 AS col1
----
29376
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3171
SELECT CAST( - 99 AS SIGNED ) + - - AVG ( - CASE 56 WHEN + 71 + + + 81 THEN - 6 END ) * COUNT( * ) * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3171
SELECT CAST ( - 99 AS INTEGER ) + - - AVG ( - CASE 56 WHEN + 71 + + + 81 THEN - 6 END ) * COUNT ( * ) * + COUNT ( * )
----
NULL

query II rowsort
SELECT - 5 AS col0, + 65 AS col2
----
-5
65

query I rowsort
SELECT ALL + 62 + - - CASE 63 WHEN - - 42 THEN - + 36 * + 6 * - 20 ELSE - - 99 END
----
161

onlyif mysql # aggregate syntax: 
query II rowsort label-3174
SELECT - 55, 29 * 92 + + 52 - COUNT( + 22 ) * + 60 + 35 AS col1
----
-55
2695

skipif mysql # not compatible
query II rowsort label-3174
SELECT - 55, 29 * 92 + + 52 - COUNT ( + 22 ) * + 60 + 35 AS col1
----
-55
2695

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3175
SELECT DISTINCT CAST( NULL AS DECIMAL ) + 37 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3175
SELECT DISTINCT CAST ( NULL AS REAL ) + 37 AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3177
SELECT ALL + MAX( 30 ) + - 20
----
10

skipif mysql # not compatible
query I rowsort label-3177
SELECT ALL + MAX ( 30 ) + - 20
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3178
SELECT ALL CASE - - COUNT( * ) WHEN + 31 THEN + - 69 WHEN CAST( - - 15 AS SIGNED ) THEN + 39 WHEN + SUM( - 94 ) / - 11 THEN COUNT( * ) ELSE + 66 * 23 + 54 * + SUM( - 8 ) END + + 41 AS col2
----
1127

skipif mysql # not compatible
query I rowsort label-3178
SELECT ALL CASE - - COUNT ( * ) WHEN + 31 THEN + - 69 WHEN CAST ( - - 15 AS INTEGER ) THEN + 39 WHEN + SUM ( - 94 ) / - 11 THEN COUNT ( * ) ELSE + 66 * 23 + 54 * + SUM ( - 8 ) END + + 41 AS col2
----
1127

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

skipif mysql # not compatible
query I rowsort label-3179
SELECT 39 / + 98
----
0

query I rowsort
SELECT 54 - - ( 75 ) AS col2
----
129

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3181
SELECT 28 + + 71 + - CAST( NULL AS SIGNED ) * + + 2 * - 27 * CASE - + 27 WHEN - COUNT( * ) THEN - 38 WHEN - - 81 THEN + 5 + 14 * - 69 END * - COALESCE ( CASE - COUNT( * ) WHEN - 74 * 14 + AVG ( ALL + 93 - + 19 * 50 ) THEN 28 ELSE NULL END * - 50, 1 - - 94 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3181
SELECT 28 + + 71 + - CAST ( NULL AS INTEGER ) * + + 2 * - 27 * CASE - + 27 WHEN - COUNT ( * ) THEN - 38 WHEN - - 81 THEN + 5 + 14 * - 69 END * - COALESCE ( CASE - COUNT ( * ) WHEN - 74 * 14 + AVG ( ALL + 93 - + 19 * 50 ) THEN 28 ELSE NULL END * - 50, 1 - - 94 )
----
NULL

query II rowsort
SELECT DISTINCT - + 13 col2, 23 AS col0
----
-13
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3183
SELECT 2 DIV + + MIN( ALL - 23 ) + + + 19 AS col2
----
19

skipif mysql # not compatible
query I rowsort label-3183
SELECT 2 / + + MIN ( ALL - 23 ) + + + 19 AS col2
----
19

query I rowsort
SELECT 11 * - + 37 AS col1
----
-407

onlyif mysql # aggregate syntax: 
query I rowsort label-3185
SELECT ALL - NULLIF ( + 94, + + 2 * + NULLIF ( 96, + 63 + + MAX( + + 75 ) ) ) AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-3185
SELECT ALL - NULLIF ( + 94, + + 2 * + NULLIF ( 96, + 63 + + MAX ( + + 75 ) ) ) AS col0
----
-94

query II rowsort
SELECT ALL - 58 * + 85 - - 46 AS col1, 0
----
-4884
0

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3189
SELECT COUNT( * ) * + 56 * - 52 + + 13 AS col1
----
-2899

skipif mysql # not compatible
query I rowsort label-3189
SELECT COUNT ( * ) * + 56 * - 52 + + 13 AS col1
----
-2899

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

skipif mysql # not compatible
query I rowsort label-3190
SELECT COUNT ( * ) * - 26 / - + 70 AS col1
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3192
SELECT MIN( + 22 ) + - + 16 AS col1
----
6

skipif mysql # not compatible
query I rowsort label-3192
SELECT MIN ( + 22 ) + - + 16 AS col1
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3193
SELECT DISTINCT + CAST( NULLIF ( + + NULLIF ( - 88, SUM( + - 34 ) ), - + AVG ( ALL - 5 ) ) AS SIGNED ) * + 83
----
-7304

skipif mysql # not compatible
query I rowsort label-3193
SELECT DISTINCT + CAST ( NULLIF ( + + NULLIF ( - 88, SUM ( + - 34 ) ), - + AVG ( ALL - 5 ) ) AS INTEGER ) * + 83
----
-7304

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-3194
SELECT 35 * CAST( NULL AS DECIMAL ) AS col1, ( - CAST( + 55 AS SIGNED ) ) DIV - - 74 + 39 DIV ( - + 63 ) + - 97
----
NULL
-97

skipif mysql # not compatible
query II rowsort label-3194
SELECT 35 * CAST ( NULL AS REAL ) AS col1, ( - CAST ( + 55 AS INTEGER ) ) / - - 74 + 39 / ( - + 63 ) + - 97
----
NULL
-97

query II rowsort
SELECT DISTINCT - ( - + 30 ), 41 + - - 94 AS col2
----
30
135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3196
SELECT - SUM( DISTINCT - + 50 ) * + COALESCE ( - 60, + 68, + + 93 ) + - 77 - + 7 + - CAST( - AVG ( + + 32 ) AS SIGNED ) AS col2
----
-3052

skipif mysql # not compatible
query I rowsort label-3196
SELECT - SUM ( DISTINCT - + 50 ) * + COALESCE ( - 60, + 68, + + 93 ) + - 77 - + 7 + - CAST ( - AVG ( + + 32 ) AS INTEGER ) AS col2
----
-3052

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3198
SELECT + + CAST( + 38 AS SIGNED ) DIV - 41 * 47 + 91
----
91

skipif mysql # not compatible
query I rowsort label-3198
SELECT + + CAST ( + 38 AS INTEGER ) / - 41 * 47 + 91
----
91

query I rowsort
SELECT - ( 95 ) + - + 49 + 11 - + - 30 col1
----
-103

query I rowsort
SELECT DISTINCT - ( - + 26 ) + + - NULLIF ( - 57, 94 )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-3201
SELECT ALL 76 + + - 9 * 47 * + 16 * - - COUNT( * )
----
-6692

skipif mysql # not compatible
query I rowsort label-3201
SELECT ALL 76 + + - 9 * 47 * + 16 * - - COUNT ( * )
----
-6692

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3202
SELECT ALL - - 18 + - 12 AS col0, - CAST( NULL AS SIGNED )
----
6
NULL

skipif mysql # not compatible
query II rowsort label-3202
SELECT ALL - - 18 + - 12 AS col0, - CAST ( NULL AS INTEGER )
----
6
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3203
SELECT + - ( + 65 ) - + - SUM( - 84 )
----
-149

skipif mysql # not compatible
query I rowsort label-3203
SELECT + - ( + 65 ) - + - SUM ( - 84 )
----
-149

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3204
SELECT DISTINCT 34 * 24 col2, COALESCE ( + 75, - 14 ) + 76 + + 88 * - ( + 50 ) DIV COUNT( * ) AS col2
----
816
-4249

skipif mysql # not compatible
query II rowsort label-3204
SELECT DISTINCT 34 * 24 col2, COALESCE ( + 75, - 14 ) + 76 + + 88 * - ( + 50 ) / COUNT ( * ) AS col2
----
816
-4249

onlyif mysql # aggregate syntax: 
query I rowsort label-3205
SELECT DISTINCT COUNT( * ) + + 61 * 16 / CASE - ( - 68 ) WHEN 31 * - 71 * + 43 THEN + 47 * - 19 + 80 + 81 * 38 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3205
SELECT DISTINCT COUNT ( * ) + + 61 * 16 / CASE - ( - 68 ) WHEN 31 * - 71 * + 43 THEN + 47 * - 19 + 80 + 81 * 38 END
----
NULL

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

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

query I rowsort
SELECT + + 50 + - ( COALESCE ( 48, + 86 ) ) col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3208
SELECT + - MAX( DISTINCT - + 49 ) + + ( 33 ) AS col2
----
82

skipif mysql # not compatible
query I rowsort label-3208
SELECT + - MAX ( DISTINCT - + 49 ) + + ( 33 ) AS col2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3209
SELECT + 76 * - 12 + COUNT( * )
----
-911

skipif mysql # not compatible
query I rowsort label-3209
SELECT + 76 * - 12 + COUNT ( * )
----
-911

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3210
SELECT DISTINCT CASE + 7 WHEN 75 * 19 * 16 * + 69 + + 44 * - - 12 THEN NULL WHEN + ( + 94 ) + + 77 THEN NULL WHEN + 64 * - - 24 * MAX( DISTINCT 40 ) + + 57 THEN - 83 ELSE 61 * + 82 END DIV 88 col2
----
56

skipif mysql # not compatible
query I rowsort label-3210
SELECT DISTINCT CASE + 7 WHEN 75 * 19 * 16 * + 69 + + 44 * - - 12 THEN NULL WHEN + ( + 94 ) + + 77 THEN NULL WHEN + 64 * - - 24 * MAX ( DISTINCT 40 ) + + 57 THEN - 83 ELSE 61 * + 82 END / 88 col2
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3211
SELECT DISTINCT + 52, - CASE - 25 WHEN + 67 + + NULLIF ( + CASE + 22 WHEN - 15 + + 97 * COUNT( * ) * + + 73 THEN + AVG ( + 45 ) - 29 WHEN - 17 THEN + COALESCE ( + 12, - 16 + AVG ( ALL + 59 ), 1 ) * 24 END, + COALESCE ( - 90, 47 + COALESCE ( 67, + 88, + 29, 34 + 72, 65 ) * 94, 96 * + 84 - 73, + 36 * AVG ( - 25 ) ) + - 25 * + COUNT( + 91 + 66 ) ) THEN - 91 * CAST( NULL AS SIGNED ) + COUNT( * ) END + - ( + 86 ) AS col0
----
52
NULL

skipif mysql # not compatible
query II rowsort label-3211
SELECT DISTINCT + 52, - CASE - 25 WHEN + 67 + + NULLIF ( + CASE + 22 WHEN - 15 + + 97 * COUNT ( * ) * + + 73 THEN + AVG ( + 45 ) - 29 WHEN - 17 THEN + COALESCE ( + 12, - 16 + AVG ( ALL + 59 ), 1 ) * 24 END, + COALESCE ( - 90, 47 + COALESCE ( 67, + 88, + 29, 34 + 72, 65 ) * 94, 96 * + 84 - 73, + 36 * AVG ( - 25 ) ) + - 25 * + COUNT ( + 91 + 66 ) ) THEN - 91 * CAST ( NULL AS INTEGER ) + COUNT ( * ) END + - ( + 86 ) AS col0
----
52
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3213
SELECT DISTINCT + ( + - CAST( 92 AS SIGNED ) ) AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-3213
SELECT DISTINCT + ( + - CAST ( 92 AS INTEGER ) ) AS col2
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3214
SELECT 7 * 61 + - + ( 90 ) * + CAST( + 53 AS SIGNED )
----
-4343

skipif mysql # not compatible
query I rowsort label-3214
SELECT 7 * 61 + - + ( 90 ) * + CAST ( + 53 AS INTEGER )
----
-4343

onlyif mysql # aggregate syntax: 
query I rowsort label-3215
SELECT ( - - COALESCE ( + 48, + COUNT( * ) * + + 60 + - 18, 30 ) )
----
48

skipif mysql # not compatible
query I rowsort label-3215
SELECT ( - - COALESCE ( + 48, + COUNT ( * ) * + + 60 + - 18, 30 ) )
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-3216
SELECT - 41 DIV - 29
----
1

skipif mysql # not compatible
query I rowsort label-3216
SELECT - 41 / - 29
----
1

query II rowsort
SELECT + 4 AS col1, 21 AS col1
----
4
21

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

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

query I rowsort
SELECT + 29 + + 57 - - ( - 62 )
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-3220
SELECT ALL - 53 DIV - 17
----
3

skipif mysql # not compatible
query I rowsort label-3220
SELECT ALL - 53 / - 17
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3221
SELECT - 5 DIV COUNT( * ) AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-3221
SELECT - 5 / COUNT ( * ) AS col2
----
-5

query II rowsort
SELECT DISTINCT + 74 AS col0, - 68
----
74
-68

query II rowsort
SELECT + 66, - 59 col0
----
66
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-3224
SELECT + CASE - ( + COUNT( * ) ) WHEN + ( + ( 78 ) ) THEN NULL WHEN + 75 THEN + 73 END * + + 68 / - - 35 - - 84 + + 83 - ( 41 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3224
SELECT + CASE - ( + COUNT ( * ) ) WHEN + ( + ( 78 ) ) THEN NULL WHEN + 75 THEN + 73 END * + + 68 / - - 35 - - 84 + + 83 - ( 41 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3225
SELECT - 75 + - 10 DIV + CAST( + + MIN( + 74 ) AS SIGNED ) + + 14 + + 60 * 22 AS col0, + 13
----
1259
13

skipif mysql # not compatible
query II rowsort label-3225
SELECT - 75 + - 10 / + CAST ( + + MIN ( + 74 ) AS INTEGER ) + + 14 + + 60 * 22 AS col0, + 13
----
1259
13

onlyif mysql # aggregate syntax: 
query II rowsort label-3226
SELECT - CASE + - 9 WHEN + 19 THEN 51 END * - + MIN( ALL - + 69 ) AS col1, + ( + 31 ) + + - 0 - - 62
----
NULL
93

skipif mysql # not compatible
query II rowsort label-3226
SELECT - CASE + - 9 WHEN + 19 THEN 51 END * - + MIN ( ALL - + 69 ) AS col1, + ( + 31 ) + + - 0 - - 62
----
NULL
93

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3227
SELECT ALL 16 * - 54 * 37 * 94 + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3227
SELECT ALL 16 * - 54 * 37 * 94 + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT DISTINCT ( - 77 ) * 5 * 87 + + 38 col1
----
-33457

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

skipif mysql # not compatible
query I rowsort label-3229
SELECT - CAST ( NULL AS INTEGER ) * - 71
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3230
SELECT ALL + NULLIF ( + COUNT( + 54 ), - 34 * 28 * - 46 ) * + 17 + + - 77 AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-3230
SELECT ALL + NULLIF ( + COUNT ( + 54 ), - 34 * 28 * - 46 ) * + 17 + + - 77 AS col2
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3231
SELECT - - 90 + - 37 * COUNT( * ) AS col0, 21 + 6 * - CAST( NULL AS SIGNED ) * 72
----
53
NULL

skipif mysql # not compatible
query II rowsort label-3231
SELECT - - 90 + - 37 * COUNT ( * ) AS col0, 21 + 6 * - CAST ( NULL AS INTEGER ) * 72
----
53
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3232
SELECT ALL - 77 * COUNT( * ) + + 99 + COUNT( + 41 ) col2
----
23

skipif mysql # not compatible
query I rowsort label-3232
SELECT ALL - 77 * COUNT ( * ) + + 99 + COUNT ( + 41 ) col2
----
23

query I rowsort
SELECT DISTINCT - 41 * - ( + 41 ) + + 67 AS col2
----
1748

query I rowsort
SELECT - - 40 + + - 56 * - - 27 AS col0
----
-1472

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3235
SELECT ALL - 98 * + SUM( DISTINCT + 35 ) * 82 * CASE - COUNT( * ) WHEN - 57 + 11 + - 79 / COUNT( * ) THEN 5 ELSE NULL END + + CAST( 35 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3235
SELECT ALL - 98 * + SUM ( DISTINCT + 35 ) * 82 * CASE - COUNT ( * ) WHEN - 57 + 11 + - 79 / COUNT ( * ) THEN 5 ELSE NULL END + + CAST ( 35 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3236
SELECT DISTINCT + MAX( ALL 87 ) AS col1
----
87

skipif mysql # not compatible
query I rowsort label-3236
SELECT DISTINCT + MAX ( ALL 87 ) AS col1
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3237
SELECT + + COUNT( - 73 ) + + 27 AS col1
----
28

skipif mysql # not compatible
query I rowsort label-3237
SELECT + + COUNT ( - 73 ) + + 27 AS col1
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-3238
SELECT - - 89 AS col2, COALESCE ( - 34, - + MAX( ALL + 54 ) ) AS col2
----
89
-34

skipif mysql # not compatible
query II rowsort label-3238
SELECT - - 89 AS col2, COALESCE ( - 34, - + MAX ( ALL + 54 ) ) AS col2
----
89
-34

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3239
SELECT ALL 29, 90 / + CAST( NULL AS SIGNED ) AS col2
----
29
NULL

skipif mysql # not compatible
query II rowsort label-3239
SELECT ALL 29, 90 / + CAST ( NULL AS INTEGER ) AS col2
----
29
NULL

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

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

query I rowsort
SELECT - + NULLIF ( 57, + - 66 ) AS col2
----
-57

query II rowsort
SELECT DISTINCT + 52 - - - 56 + + 74, 6 AS col0
----
70
6

query II rowsort
SELECT - 24 AS col2, 44
----
-24
44

query I rowsort
SELECT DISTINCT + - 61 * 65 * - + 71
----
281515

onlyif mysql # aggregate syntax: 
query I rowsort label-3245
SELECT ALL + COUNT( DISTINCT + 26 ) - - 95 * - 69 * 38 AS col0
----
-249089

skipif mysql # not compatible
query I rowsort label-3245
SELECT ALL + COUNT ( DISTINCT + 26 ) - - 95 * - 69 * 38 AS col0
----
-249089

query I rowsort
SELECT - 60 * - 37 AS col0
----
2220

onlyif mysql # aggregate syntax: 
query I rowsort label-3247
SELECT + MIN( 37 ) * - 61 * - + 7 AS col1
----
15799

skipif mysql # not compatible
query I rowsort label-3247
SELECT + MIN ( 37 ) * - 61 * - + 7 AS col1
----
15799

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3248
SELECT - NULLIF ( + - CASE - 57 WHEN 18 THEN NULL WHEN - + CAST( COUNT( * ) AS DECIMAL ) * - - 77 * CAST( 37 AS SIGNED ) * CAST( - - 14 AS DECIMAL ) THEN + 3 * + 2 * + SUM( DISTINCT 91 ) ELSE NULL END, 77 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3248
SELECT - NULLIF ( + - CASE - 57 WHEN 18 THEN NULL WHEN - + CAST ( COUNT ( * ) AS REAL ) * - - 77 * CAST ( 37 AS INTEGER ) * CAST ( - - 14 AS REAL ) THEN + 3 * + 2 * + SUM ( DISTINCT 91 ) ELSE NULL END, 77 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3249
SELECT 12 * + - 57 + + ( + + 89 ) AS col0, COUNT( + 67 ) * - 3 * - COUNT( * ) - - MIN( DISTINCT + + 35 ) + 52 DIV - 62 * + 34 * - + COUNT( ( - 40 ) ) * - 5 + + 17
----
-595
55

skipif mysql # not compatible
query II rowsort label-3249
SELECT 12 * + - 57 + + ( + + 89 ) AS col0, COUNT ( + 67 ) * - 3 * - COUNT ( * ) - - MIN ( DISTINCT + + 35 ) + 52 / - 62 * + 34 * - + COUNT ( ( - 40 ) ) * - 5 + + 17
----
-595
55

query I rowsort
SELECT DISTINCT 59 * - - ( - ( - 82 ) ) AS col0
----
4838

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3251
SELECT ALL - 49 * 89 AS col2, - 15 * COUNT( * ) * + 1 + 65 * - CASE - 41 WHEN 40 + + CASE + AVG ( + 46 ) WHEN + 55 * + 17 / 62 THEN 78 WHEN - 28 THEN NULL ELSE CAST( 82 AS SIGNED ) END THEN NULL ELSE + ( 82 ) END AS col1
----
-4361
-5345

skipif mysql # not compatible
query II rowsort label-3251
SELECT ALL - 49 * 89 AS col2, - 15 * COUNT ( * ) * + 1 + 65 * - CASE - 41 WHEN 40 + + CASE + AVG ( + 46 ) WHEN + 55 * + 17 / 62 THEN 78 WHEN - 28 THEN NULL ELSE CAST ( 82 AS INTEGER ) END THEN NULL ELSE + ( 82 ) END AS col1
----
-4361
-5345

query I rowsort
SELECT 51 * - 96 AS col0
----
-4896

query I rowsort
SELECT DISTINCT 23 * + - 33 AS col1
----
-759

query I rowsort
SELECT ALL 58 + + 69
----
127

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3255
SELECT 41 * - CAST( NULL AS DECIMAL ) * + 77 * 30 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3255
SELECT 41 * - CAST ( NULL AS REAL ) * + 77 * 30 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3256
SELECT 96 DIV - 68 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3256
SELECT 96 / - 68 AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3257
SELECT DISTINCT - + 93 DIV 55 * + 82 DIV - + 9 AS col1
----
9

skipif mysql # not compatible
query I rowsort label-3257
SELECT DISTINCT - + 93 / 55 * + 82 / - + 9 AS col1
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3258
SELECT DISTINCT 93 + - - MIN( - - 48 ) + - 96 * NULLIF ( + - 38, + + 20 + - 35 ) * SUM( ALL 12 ) + - 46 + - - ( ( 3 ) ) * + 39 + + 0 DIV 35 AS col2
----
43988

skipif mysql # not compatible
query I rowsort label-3258
SELECT DISTINCT 93 + - - MIN ( - - 48 ) + - 96 * NULLIF ( + - 38, + + 20 + - 35 ) * SUM ( ALL 12 ) + - 46 + - - ( ( 3 ) ) * + 39 + + 0 / 35 AS col2
----
43988

query I rowsort
SELECT ALL 98 + - - 5 AS col2
----
103

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3260
SELECT - ( - 68 ) DIV - COUNT( * )
----
-68

skipif mysql # not compatible
query I rowsort label-3260
SELECT - ( - 68 ) / - COUNT ( * )
----
-68

query I rowsort
SELECT ALL 11 + 61
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3262
SELECT - ( - + COALESCE ( + 81, + - 88 ) ) + + - MAX( 76 )
----
5

skipif mysql # not compatible
query I rowsort label-3262
SELECT - ( - + COALESCE ( + 81, + - 88 ) ) + + - MAX ( 76 )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3263
SELECT + MAX( - + 49 ) * 74 col0
----
-3626

skipif mysql # not compatible
query I rowsort label-3263
SELECT + MAX ( - + 49 ) * 74 col0
----
-3626

query I rowsort
SELECT ALL - + 38 - + - 59 AS col2
----
21

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

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

query I rowsort
SELECT ( - 94 ) + - + 63 AS col1
----
-157

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3267
SELECT DISTINCT MIN( + CAST( - + 10 AS SIGNED ) )
----
-10

skipif mysql # not compatible
query I rowsort label-3267
SELECT DISTINCT MIN ( + CAST ( - + 10 AS INTEGER ) )
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-3268
SELECT ALL - + 46 * - 52 + - 76 DIV 56 DIV 41 - ( - 5 ) AS col2
----
2397

skipif mysql # not compatible
query I rowsort label-3268
SELECT ALL - + 46 * - 52 + - 76 / 56 / 41 - ( - 5 ) AS col2
----
2397

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3269
SELECT - 71 + - - 42 * + CAST( + 3 AS SIGNED ) + 86 * 86 AS col2
----
7451

skipif mysql # not compatible
query I rowsort label-3269
SELECT - 71 + - - 42 * + CAST ( + 3 AS INTEGER ) + 86 * 86 AS col2
----
7451

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3270
SELECT ALL - COALESCE ( - - 93, 91 * + CAST( NULL AS SIGNED ) * + - 48 * + CAST( - CAST( - + 59 AS SIGNED ) AS SIGNED ), 84 + - - 91 ) AS col0, 98
----
-93
98

skipif mysql # not compatible
query II rowsort label-3270
SELECT ALL - COALESCE ( - - 93, 91 * + CAST ( NULL AS INTEGER ) * + - 48 * + CAST ( - CAST ( - + 59 AS INTEGER ) AS INTEGER ), 84 + - - 91 ) AS col0, 98
----
-93
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3271
SELECT - 24 + CASE ( - 79 ) WHEN + 69 THEN NULL WHEN 67 THEN NULL WHEN ( - MAX( 61 ) ) THEN 39 * + 70 + 34 * + + 60 + - + 67 + - 18 * + 32 * + 94 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3271
SELECT - 24 + CASE ( - 79 ) WHEN + 69 THEN NULL WHEN 67 THEN NULL WHEN ( - MAX ( 61 ) ) THEN 39 * + 70 + 34 * + + 60 + - + 67 + - 18 * + 32 * + 94 ELSE NULL END AS col1
----
NULL

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

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

query I rowsort
SELECT 10 + - 67
----
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-3274
SELECT 28 AS col2, 7 * - COUNT( * ) AS col0
----
28
-7

skipif mysql # not compatible
query II rowsort label-3274
SELECT 28 AS col2, 7 * - COUNT ( * ) AS col0
----
28
-7

query I rowsort
SELECT 20 + - 52 col1
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-3276
SELECT ALL COUNT( * ) * + + 74 * 3 AS col0
----
222

skipif mysql # not compatible
query I rowsort label-3276
SELECT ALL COUNT ( * ) * + + 74 * 3 AS col0
----
222

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3277
SELECT MAX( ALL + 6 ) * 52 + - + 42 * - 15 + COALESCE ( + COUNT( * ), 24 DIV COUNT( * ) * 77 * + 21 + + COUNT( * ) + 13 - + COUNT( * ), - - 98 ) AS col2
----
943

skipif mysql # not compatible
query I rowsort label-3277
SELECT MAX ( ALL + 6 ) * 52 + - + 42 * - 15 + COALESCE ( + COUNT ( * ), 24 / COUNT ( * ) * 77 * + 21 + + COUNT ( * ) + 13 - + COUNT ( * ), - - 98 ) AS col2
----
943

query I rowsort
SELECT DISTINCT 59 * 95 col1
----
5605

onlyif mysql # aggregate syntax: 
query I rowsort label-3279
SELECT 45 + CASE COUNT( * ) WHEN + 32 * - + 11 * + - SUM( DISTINCT + - 11 ) THEN NULL WHEN - AVG ( 92 ) THEN - + 78 ELSE NULL END - - COUNT( * ) + - 44 + CASE 67 WHEN + 8 / 94 + - 63 * 38 THEN - ( + 94 ) + 24 WHEN ( COUNT( - 90 ) ) THEN NULL ELSE 32 * 65 + 31 * - 66 END + - MAX( - 34 - + 32 ) * + ( + MIN( DISTINCT - 64 ) ) * - 90 / - 65
----
NULL

skipif mysql # not compatible
query I rowsort label-3279
SELECT 45 + CASE COUNT ( * ) WHEN + 32 * - + 11 * + - SUM ( DISTINCT + - 11 ) THEN NULL WHEN - AVG ( 92 ) THEN - + 78 ELSE NULL END - - COUNT ( * ) + - 44 + CASE 67 WHEN + 8 / 94 + - 63 * 38 THEN - ( + 94 ) + 24 WHEN ( COUNT ( - 90 ) ) THEN NULL ELSE 32 * 65 + 31 * - 66 END + - MAX ( - 34 - + 32 ) * + ( + MIN ( DISTINCT - 64 ) ) * - 90 / - 65
----
NULL

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

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

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

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

query I rowsort
SELECT ALL - ( 76 ) * - + 41
----
3116

query I rowsort
SELECT DISTINCT + 35 * - 24 AS col2
----
-840

onlyif mysql # aggregate syntax: 
query I rowsort label-3284
SELECT ALL 82 + + 49 * + CASE 87 WHEN + 39 + 98 THEN + 96 * - + 21 WHEN - 18 THEN + 90 / + + 94 + - + 95 + - COUNT( * ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3284
SELECT ALL 82 + + 49 * + CASE 87 WHEN + 39 + 98 THEN + 96 * - + 21 WHEN - 18 THEN + 90 / + + 94 + - + 95 + - COUNT ( * ) ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT 44 * - - 74 * 16 + ( - 49 ) AS col0
----
52047

query I rowsort
SELECT ALL 58 + + 72 AS col2
----
130

query I rowsort
SELECT DISTINCT 75 + 94 col1
----
169

query I rowsort
SELECT 86 * 83 AS col0
----
7138

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3290
SELECT ALL - CAST( + COUNT( + 98 ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-3290
SELECT ALL - CAST ( + COUNT ( + 98 ) AS INTEGER )
----
-1

query I rowsort
SELECT ALL 4 * + 24 AS col1
----
96

query I rowsort
SELECT 82 * + ( + 15 ) + + 53 AS col2
----
1283

query II rowsort
SELECT ALL 16 + - 11 + - 12, 30 AS col0
----
-7
30

query I rowsort
SELECT ALL + - ( - 52 ) - 16 - + - 7 - + + 46 + + ( 30 ) * NULLIF ( + 46, - 91 ) AS col1
----
1377

query II rowsort
SELECT DISTINCT - + 4 AS col0, 77 AS col2
----
-4
77

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3296
SELECT ALL + 18 * + - 90 + CAST( NULL AS DECIMAL ) / 47 * COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3296
SELECT ALL + 18 * + - 90 + CAST ( NULL AS REAL ) / 47 * COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT + 79 * 55
----
4345

query I rowsort
SELECT 26 * 76 AS col0
----
1976

onlyif mysql # aggregate syntax: 
query I rowsort label-3299
SELECT MAX( + 68 ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-3299
SELECT MAX ( + 68 ) AS col2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3300
SELECT DISTINCT 27 - + COUNT( * ) * 92
----
-65

skipif mysql # not compatible
query I rowsort label-3300
SELECT DISTINCT 27 - + COUNT ( * ) * 92
----
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3301
SELECT - COALESCE ( - 72, - 97 DIV COUNT( - 52 ) + + 43 + - + 97 + - 88 * - + 28 * + 93 + - - 59 * - 97 * - 48, - ( 54 ) )
----
72

skipif mysql # not compatible
query I rowsort label-3301
SELECT - COALESCE ( - 72, - 97 / COUNT ( - 52 ) + + 43 + - + 97 + - 88 * - + 28 * + 93 + - - 59 * - 97 * - 48, - ( 54 ) )
----
72

query I rowsort
SELECT 5 * 34 + + - 22 + - 32
----
116

onlyif mysql # aggregate syntax: 
query II rowsort label-3303
SELECT ALL COUNT( + ( - - 26 ) ) * + + 14 * + - 88 AS col1, 90 AS col2
----
-1232
90

skipif mysql # not compatible
query II rowsort label-3303
SELECT ALL COUNT ( + ( - - 26 ) ) * + + 14 * + - 88 AS col1, 90 AS col2
----
-1232
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3304
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - - 9 + + 44
----
NULL

skipif mysql # not compatible
query I rowsort label-3304
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - - 9 + + 44
----
NULL

query II rowsort
SELECT 98 + + 5 * - 47 + - ( 59 ) AS col1, - 51
----
-196
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-3306
SELECT DISTINCT 30 DIV + - 74 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3306
SELECT DISTINCT 30 / + - 74 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3307
SELECT ALL - 42 DIV - 61 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3307
SELECT ALL - 42 / - 61 AS col1
----
0

query I rowsort
SELECT ALL - 50 * 88 + 47 * 42
----
-2426

query I rowsort
SELECT 54 * 25 AS col2
----
1350

onlyif mysql # aggregate syntax: 
query I rowsort label-3310
SELECT ALL COUNT( - - 9 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3310
SELECT ALL COUNT ( - - 9 ) AS col1
----
1

query II rowsort
SELECT - 88, 33 AS col0
----
-88
33

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3314
SELECT - 97, - COUNT( * ) DIV + 39 * 15 + - 84 + + 39 + - - 14 AS col2
----
-97
-31

skipif mysql # not compatible
query II rowsort label-3314
SELECT - 97, - COUNT ( * ) / + 39 * 15 + - 84 + + 39 + - - 14 AS col2
----
-97
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-3315
SELECT - COUNT( + NULLIF ( 93, + 23 / 60 + - - 48 ) ) * 47 AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-3315
SELECT - COUNT ( + NULLIF ( 93, + 23 / 60 + - - 48 ) ) * 47 AS col0
----
-47

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

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

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

skipif mysql # not compatible
query I rowsort label-3317
SELECT ALL + CAST ( NULL AS REAL ) + 7
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3318
SELECT - 47 - - 19 + 17 * + 65 + + CASE 66 WHEN - SUM( + 40 ) * - + 90 * - + 8 + - 50 + + + 99 * - + 0 THEN ( + 59 ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3318
SELECT - 47 - - 19 + 17 * + 65 + + CASE 66 WHEN - SUM ( + 40 ) * - + 90 * - + 8 + - 50 + + + 99 * - + 0 THEN ( + 59 ) ELSE NULL END AS col2
----
NULL

query II rowsort
SELECT 43, 21 col1
----
43
21

onlyif mysql # DIV for integer division: 
query I rowsort label-3320
SELECT - 23 - + + ( 32 ) + + 17 DIV - + 86
----
-55

skipif mysql # not compatible
query I rowsort label-3320
SELECT - 23 - + + ( 32 ) + + 17 / - + 86
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-3321
SELECT + COALESCE ( - - 24, CASE 58 WHEN COUNT( * ) THEN NULL WHEN - + 13 THEN - + COUNT( * ) + - - 95 WHEN COALESCE ( - 15, 36, + COUNT( * ) ) THEN NULL END, + COUNT( * ) * + 74 + 15 + + - 19 + + 71 ) * - 53 AS col0
----
-1272

skipif mysql # not compatible
query I rowsort label-3321
SELECT + COALESCE ( - - 24, CASE 58 WHEN COUNT ( * ) THEN NULL WHEN - + 13 THEN - + COUNT ( * ) + - - 95 WHEN COALESCE ( - 15, 36, + COUNT ( * ) ) THEN NULL END, + COUNT ( * ) * + 74 + 15 + + - 19 + + 71 ) * - 53 AS col0
----
-1272

query I rowsort
SELECT + ( 37 ) + ( 39 ) - - ( 96 ) AS col2
----
172

query II rowsort
SELECT ALL + 96, 36 + + - 63 AS col2
----
96
-27

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3325
SELECT - ( - - 44 ) DIV + COUNT( * ) AS col1
----
-44

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3326
SELECT DISTINCT 72 * 69 * + MAX( 20 ) - MAX( - - 88 ) * - 53 * - ( + 32 ) * 94 + + - 10 * MAX( + + CASE + 85 WHEN 68 * + 26 THEN NULL WHEN 55 THEN 69 END ) + 96 * 29
----
NULL

skipif mysql # not compatible
query I rowsort label-3326
SELECT DISTINCT 72 * 69 * + MAX ( 20 ) - MAX ( - - 88 ) * - 53 * - ( + 32 ) * 94 + + - 10 * MAX ( + + CASE + 85 WHEN 68 * + 26 THEN NULL WHEN 55 THEN 69 END ) + 96 * 29
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3327
SELECT DISTINCT + 5 * COUNT( * ) * - + 56
----
-280

skipif mysql # not compatible
query I rowsort label-3327
SELECT DISTINCT + 5 * COUNT ( * ) * - + 56
----
-280

query I rowsort
SELECT DISTINCT + 8 * - 5 - 47 * 74 * + 85 + - 1 + + 92
----
-295579

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3330
SELECT + ( - - 12 ) DIV - 66 + SUM( 48 ) DIV 47 + - + 86 AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-3330
SELECT + ( - - 12 ) / - 66 + SUM ( 48 ) / 47 + - + 86 AS col0
----
-85

query II rowsort
SELECT 78 AS col2, + 95
----
78
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3332
SELECT + 8 col1, - CASE + - 62 WHEN 97 + 41 THEN + ( + CASE - 71 WHEN 21 THEN NULL WHEN - 25 + + COUNT( * ) THEN - - 56 ELSE - COUNT( * ) END ) / + 78 * - CASE - - 76 WHEN 75 * 66 THEN NULL WHEN + COUNT( * ) THEN NULL WHEN 28 * + COUNT( * ) THEN 19 * - 42 + - CAST( MIN( CAST( 8 AS SIGNED ) ) AS SIGNED ) END ELSE NULL END + MIN( + 36 ) * 75
----
8
NULL

skipif mysql # not compatible
query II rowsort label-3332
SELECT + 8 col1, - CASE + - 62 WHEN 97 + 41 THEN + ( + CASE - 71 WHEN 21 THEN NULL WHEN - 25 + + COUNT ( * ) THEN - - 56 ELSE - COUNT ( * ) END ) / + 78 * - CASE - - 76 WHEN 75 * 66 THEN NULL WHEN + COUNT ( * ) THEN NULL WHEN 28 * + COUNT ( * ) THEN 19 * - 42 + - CAST ( MIN ( CAST ( 8 AS INTEGER ) ) AS INTEGER ) END ELSE NULL END + MIN ( + 36 ) * 75
----
8
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3333
SELECT ALL + 84, - 68 DIV - + 70 * + NULLIF ( + + 52, + + COUNT( * ) ) * - 21 AS col1
----
84
0

skipif mysql # not compatible
query II rowsort label-3333
SELECT ALL + 84, - 68 / - + 70 * + NULLIF ( + + 52, + + COUNT ( * ) ) * - 21 AS col1
----
84
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3334
SELECT COUNT( * ) col2, 40 * CASE - 63 WHEN - 68 * - 61 * - COUNT( * ) - - COUNT( * ) + - ( - ( 18 ) ) * - - 36 + + COUNT( * ) * + - 70 THEN NULL WHEN - ( - 31 ) + - 58 THEN NULL WHEN 42 THEN 54 ELSE 8 END
----
1
320

skipif mysql # not compatible
query II rowsort label-3334
SELECT COUNT ( * ) col2, 40 * CASE - 63 WHEN - 68 * - 61 * - COUNT ( * ) - - COUNT ( * ) + - ( - ( 18 ) ) * - - 36 + + COUNT ( * ) * + - 70 THEN NULL WHEN - ( - 31 ) + - 58 THEN NULL WHEN 42 THEN 54 ELSE 8 END
----
1
320

query II rowsort
SELECT - 92 col1, 23
----
-92
23

onlyif mysql # DIV for integer division: 
query II rowsort label-3336
SELECT + 9 AS col2, + 22 DIV COALESCE ( + - 81, 49 + + + 24 )
----
9
0

skipif mysql # not compatible
query II rowsort label-3336
SELECT + 9 AS col2, + 22 / COALESCE ( + - 81, 49 + + + 24 )
----
9
0

query II rowsort
SELECT ALL + 33 AS col2, - 76
----
33
-76

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3339
SELECT DISTINCT SUM( + - ( - 53 ) ) * - NULLIF ( - + 33, 68 ) * + - 22 + - 56 * - + 95 * - + 92 * 53 + + - 7 - + COUNT( * ) * - + 24 AS col2
----
-25978781

skipif mysql # not compatible
query I rowsort label-3339
SELECT DISTINCT SUM ( + - ( - 53 ) ) * - NULLIF ( - + 33, 68 ) * + - 22 + - 56 * - + 95 * - + 92 * 53 + + - 7 - + COUNT ( * ) * - + 24 AS col2
----
-25978781

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3340
SELECT ALL + CAST( NULL AS SIGNED ) * COALESCE ( - - 4, + - 40 ) + - 40 * 77 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3340
SELECT ALL + CAST ( NULL AS INTEGER ) * COALESCE ( - - 4, + - 40 ) + - 40 * 77 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3341
SELECT + COUNT( * ) * COUNT( * ) + - NULLIF ( + 10, 52 + - 11 ) + - COUNT( * ) * COUNT( DISTINCT - - 48 ) AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-3341
SELECT + COUNT ( * ) * COUNT ( * ) + - NULLIF ( + 10, 52 + - 11 ) + - COUNT ( * ) * COUNT ( DISTINCT - - 48 ) AS col1
----
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-3342
SELECT ALL + 2, + 70 * + - ( - CASE + 9 WHEN + 93 + - COUNT( * ) THEN + 14 END ) AS col0
----
2
NULL

skipif mysql # not compatible
query II rowsort label-3342
SELECT ALL + 2, + 70 * + - ( - CASE + 9 WHEN + 93 + - COUNT ( * ) THEN + 14 END ) AS col0
----
2
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3344
SELECT + ( - + COALESCE ( + + 19, 54 * ( + 11 ) + + - CAST( 79 AS SIGNED ) + - CAST( NULL AS SIGNED ), - 90 - - 94 + + 2 + 49 * + - 39 * 68 ) ) + + CASE 38 WHEN + COUNT( 71 ) THEN 43 + - 89 END + ( 43 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3344
SELECT + ( - + COALESCE ( + + 19, 54 * ( + 11 ) + + - CAST ( 79 AS INTEGER ) + - CAST ( NULL AS INTEGER ), - 90 - - 94 + + 2 + 49 * + - 39 * 68 ) ) + + CASE 38 WHEN + COUNT ( 71 ) THEN 43 + - 89 END + ( 43 )
----
NULL

query I rowsort
SELECT ALL ( - 91 ) * + 31 AS col0
----
-2821

onlyif mysql # aggregate syntax: 
query I rowsort label-3346
SELECT + 20 + - COUNT( * ) col0
----
19

skipif mysql # not compatible
query I rowsort label-3346
SELECT + 20 + - COUNT ( * ) col0
----
19

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

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

query I rowsort
SELECT ALL 3 + - + 43 AS col2
----
-40

query I rowsort
SELECT ALL 1 + + 17 AS col2
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3350
SELECT ALL - 62 + + SUM( ALL - - 18 ) + 25
----
-19

skipif mysql # not compatible
query I rowsort label-3350
SELECT ALL - 62 + + SUM ( ALL - - 18 ) + 25
----
-19

query II rowsort
SELECT + 83 + + + ( + 97 ), - 87 AS col1
----
180
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3352
SELECT + 0 * + CAST( ( - NULLIF ( + 60, - + ( 96 ) ) ) AS SIGNED ) * - COUNT( * ) AS col0, 30
----
0
30

skipif mysql # not compatible
query II rowsort label-3352
SELECT + 0 * + CAST ( ( - NULLIF ( + 60, - + ( 96 ) ) ) AS INTEGER ) * - COUNT ( * ) AS col0, 30
----
0
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3353
SELECT DISTINCT COUNT( * ) + - + 56
----
-55

skipif mysql # not compatible
query I rowsort label-3353
SELECT DISTINCT COUNT ( * ) + - + 56
----
-55

query I rowsort
SELECT ALL + 90 * - 39
----
-3510

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

skipif mysql # not compatible
query I rowsort label-3355
SELECT ALL 41 + + + 99 * - - COUNT ( * ) AS col2
----
140

query II rowsort
SELECT + 47 + - - 83 AS col2, 64 AS col0
----
130
64

onlyif mysql # aggregate syntax: 
query III rowsort label-3357
SELECT - ( 15 ) AS col2, - 81, + CASE + - COUNT( * ) WHEN + 45 + - 13 * NULLIF ( COUNT( * ), 63 * COUNT( * ) + + COUNT( * ) * 46 * + 80 + - - 91 + + + 29 * 29 ) + - COUNT( * ) THEN NULL WHEN + 27 THEN 37 ELSE 47 END * + 98 + + 2 AS col2
----
-15
-81
4608

skipif mysql # not compatible
query III rowsort label-3357
SELECT - ( 15 ) AS col2, - 81, + CASE + - COUNT ( * ) WHEN + 45 + - 13 * NULLIF ( COUNT ( * ), 63 * COUNT ( * ) + + COUNT ( * ) * 46 * + 80 + - - 91 + + + 29 * 29 ) + - COUNT ( * ) THEN NULL WHEN + 27 THEN 37 ELSE 47 END * + 98 + + 2 AS col2
----
-15
-81
4608

query I rowsort
SELECT DISTINCT + 45 + + + 55 + + 1 + + 96 + - 1 AS col2
----
196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3359
SELECT ALL NULLIF ( - - ( + - 55 ), + 36 * CAST( 49 AS SIGNED ) )
----
-55

skipif mysql # not compatible
query I rowsort label-3359
SELECT ALL NULLIF ( - - ( + - 55 ), + 36 * CAST ( 49 AS INTEGER ) )
----
-55

query I rowsort
SELECT - COALESCE ( + 0, - 87 ) + + 35 AS col0
----
35

query I rowsort
SELECT DISTINCT NULLIF ( + - 46, + 72 ) AS col2
----
-46

query I rowsort
SELECT ALL + 18 * - 45 AS col2
----
-810

onlyif mysql # aggregate syntax: 
query I rowsort label-3363
SELECT ALL - MAX( + 23 ) - - 54 + 15
----
46

skipif mysql # not compatible
query I rowsort label-3363
SELECT ALL - MAX ( + 23 ) - - 54 + 15
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3364
SELECT DISTINCT + 0 - - + CAST( NULL AS SIGNED ) + - 26 + 45 * - ( 79 ) * - 12
----
NULL

skipif mysql # not compatible
query I rowsort label-3364
SELECT DISTINCT + 0 - - + CAST ( NULL AS INTEGER ) + - 26 + 45 * - ( 79 ) * - 12
----
NULL

query I rowsort
SELECT ALL + 27 * - - 89
----
2403

query I rowsort
SELECT DISTINCT NULLIF ( - - 48, - - 91 - + - 12 )
----
48

onlyif mysql # DIV for integer division: 
query III rowsort label-3367
SELECT ALL + 18 * 19 AS col2, 10 AS col1, - + 78 DIV 2 - 67 + 54 + + 97
----
342
10
45

skipif mysql # not compatible
query III rowsort label-3367
SELECT ALL + 18 * 19 AS col2, 10 AS col1, - + 78 / 2 - 67 + 54 + + 97
----
342
10
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3368
SELECT NULLIF ( COALESCE ( + - 74, 87 + - - COALESCE ( - - 98, + 34, - 51, - 55 ) ), + + 10 / - 52 ) * + 34 - + 40 + 81 * + + COUNT( * ) * + 14 * ( ( + 73 ) ) + SUM( ALL + 67 ) AS col1
----
80293

skipif mysql # not compatible
query I rowsort label-3368
SELECT NULLIF ( COALESCE ( + - 74, 87 + - - COALESCE ( - - 98, + 34, - 51, - 55 ) ), + + 10 / - 52 ) * + 34 - + 40 + 81 * + + COUNT ( * ) * + 14 * ( ( + 73 ) ) + SUM ( ALL + 67 ) AS col1
----
80293

query I rowsort
SELECT - ( - + 3 ) * - 95
----
-285

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3370
SELECT + + 10 DIV + + 36 - + MAX( ALL - ( - ( - + 11 ) ) ) + + 37 + 72 * + + 40
----
2928

skipif mysql # not compatible
query I rowsort label-3370
SELECT + + 10 / + + 36 - + MAX ( ALL - ( - ( - + 11 ) ) ) + + 37 + 72 * + + 40
----
2928

query I rowsort
SELECT - 74 + 90 - - 26 + + - 45
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3372
SELECT - MIN( + 13 ) * - ( - - 16 ) * COUNT( * ) * + 1 AS col1
----
208

skipif mysql # not compatible
query I rowsort label-3372
SELECT - MIN ( + 13 ) * - ( - - 16 ) * COUNT ( * ) * + 1 AS col1
----
208

query I rowsort
SELECT ALL + - 31 * + + 11
----
-341

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3374
SELECT ALL - + CAST( + + COUNT( ALL - - 72 ) AS SIGNED ) * - + COUNT( * ) + + COALESCE ( + + 20, - ( - 55 ) * 10 ) DIV 86
----
1

skipif mysql # not compatible
query I rowsort label-3374
SELECT ALL - + CAST ( + + COUNT ( ALL - - 72 ) AS INTEGER ) * - + COUNT ( * ) + + COALESCE ( + + 20, - ( - 55 ) * 10 ) / 86
----
1

query I rowsort
SELECT + 48 * - 53 + - 5
----
-2549

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

skipif mysql # not compatible
query I rowsort label-3376
SELECT - - ( + - 44 ) * 70 * COUNT ( * ) AS col1
----
-3080

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3377
SELECT + - 5 + - CAST( NULL AS DECIMAL ) + + 5 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3377
SELECT + - 5 + - CAST ( NULL AS REAL ) + + 5 AS col0
----
NULL

query I rowsort
SELECT ALL + 44 * + 44 + + - 45 AS col2
----
1891

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

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

query I rowsort
SELECT + 60 + 82 AS col1
----
142

onlyif mysql # aggregate syntax: 
query I rowsort label-3381
SELECT + + 15 * - COUNT( 58 ) + - + ( - - COUNT( * ) )
----
-16

skipif mysql # not compatible
query I rowsort label-3381
SELECT + + 15 * - COUNT ( 58 ) + - + ( - - COUNT ( * ) )
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3382
SELECT ( + 15 ) AS col2, 40 + - 55 + CASE + 2 WHEN 34 + 68 * - 96 - - + 93 THEN - - COUNT( * ) WHEN - 19 / - ( + - 32 ) + 84 * - - 90 THEN NULL ELSE NULL END + - COUNT( * ) * - AVG ( DISTINCT - 30 + CAST( 36 AS SIGNED ) )
----
15
NULL

skipif mysql # not compatible
query II rowsort label-3382
SELECT ( + 15 ) AS col2, 40 + - 55 + CASE + 2 WHEN 34 + 68 * - 96 - - + 93 THEN - - COUNT ( * ) WHEN - 19 / - ( + - 32 ) + 84 * - - 90 THEN NULL ELSE NULL END + - COUNT ( * ) * - AVG ( DISTINCT - 30 + CAST ( 36 AS INTEGER ) )
----
15
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3383
SELECT ALL MIN( + 9 ) * + - ( + 52 ) + - MAX( 88 ) + - 71 / + ( - 45 ) * + CAST( NULL AS DECIMAL ) * CASE + - 89 WHEN + + 94 / - 26 THEN + - 96 + + COUNT( * ) * CASE CASE 38 WHEN 69 * - 87 THEN NULL WHEN 45 + COUNT( * ) THEN - 54 ELSE + COUNT( * ) * 71 END WHEN + CASE 67 WHEN 62 THEN + 29 - 7 / - 81 ELSE 93 + - 47 END THEN 78 - 67 END * - COUNT( * ) ELSE NULL END * SUM( ALL 44 ) + 37 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3383
SELECT ALL MIN ( + 9 ) * + - ( + 52 ) + - MAX ( 88 ) + - 71 / + ( - 45 ) * + CAST ( NULL AS REAL ) * CASE + - 89 WHEN + + 94 / - 26 THEN + - 96 + + COUNT ( * ) * CASE CASE 38 WHEN 69 * - 87 THEN NULL WHEN 45 + COUNT ( * ) THEN - 54 ELSE + COUNT ( * ) * 71 END WHEN + CASE 67 WHEN 62 THEN + 29 - 7 / - 81 ELSE 93 + - 47 END THEN 78 - 67 END * - COUNT ( * ) ELSE NULL END * SUM ( ALL 44 ) + 37 col1
----
NULL

query I rowsort
SELECT ALL + - 85 + 83 AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3385
SELECT COALESCE ( + + COUNT( DISTINCT - 73 ), NULLIF ( - 95, 36 * ( + 60 ) ) ) * - 89
----
-89

skipif mysql # not compatible
query I rowsort label-3385
SELECT COALESCE ( + + COUNT ( DISTINCT - 73 ), NULLIF ( - 95, 36 * ( + 60 ) ) ) * - 89
----
-89

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

skipif mysql # not compatible
query I rowsort label-3386
SELECT DISTINCT CAST ( NULL AS INTEGER ) + 19 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3387
SELECT ALL COUNT( 92 ) + 1 * + 92 AS col0
----
93

skipif mysql # not compatible
query I rowsort label-3387
SELECT ALL COUNT ( 92 ) + 1 * + 92 AS col0
----
93

query I rowsort
SELECT ALL 41 + 85 AS col0
----
126

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3389
SELECT CAST( - 58 AS SIGNED ) * + 8 - - 6
----
-458

skipif mysql # not compatible
query I rowsort label-3389
SELECT CAST ( - 58 AS INTEGER ) * + 8 - - 6
----
-458

onlyif mysql # aggregate syntax: 
query II rowsort label-3390
SELECT COALESCE ( 7, + + 43 ) + + CASE 76 WHEN - NULLIF ( + 57, COUNT( * ) + - 77 ) / 83 THEN - - 66 + - COUNT( * ) WHEN 66 + - COUNT( * ) - - 79 THEN - 34 END, - 53 AS col2
----
NULL
-53

skipif mysql # not compatible
query II rowsort label-3390
SELECT COALESCE ( 7, + + 43 ) + + CASE 76 WHEN - NULLIF ( + 57, COUNT ( * ) + - 77 ) / 83 THEN - - 66 + - COUNT ( * ) WHEN 66 + - COUNT ( * ) - - 79 THEN - 34 END, - 53 AS col2
----
NULL
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3391
SELECT 90 AS col2, 49 DIV 61 DIV + COUNT( * ) AS col1
----
90
0

skipif mysql # not compatible
query II rowsort label-3391
SELECT 90 AS col2, 49 / 61 / + COUNT ( * ) AS col1
----
90
0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3392
SELECT DISTINCT 53 - - - 22 * 42, - CAST( NULL AS DECIMAL ) AS col0
----
-871
NULL

skipif mysql # not compatible
query II rowsort label-3392
SELECT DISTINCT 53 - - - 22 * 42, - CAST ( NULL AS REAL ) AS col0
----
-871
NULL

query II rowsort
SELECT DISTINCT 57 col0, 65 AS col0
----
57
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3394
SELECT ALL 88 - NULLIF ( + - CAST( NULL AS SIGNED ), 49 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3394
SELECT ALL 88 - NULLIF ( + - CAST ( NULL AS INTEGER ), 49 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3395
SELECT CASE + 17 WHEN + CAST( NULL AS SIGNED ) THEN 88 WHEN + + 71 + - - 99 * + - 15 * + - 99 THEN 24 * 23 + - - 84 + ( - 86 ) + + 88 + - COUNT( * ) ELSE NULL END + COUNT( * ) / + + COUNT( * ) + - ( + 31 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3395
SELECT CASE + 17 WHEN + CAST ( NULL AS INTEGER ) THEN 88 WHEN + + 71 + - - 99 * + - 15 * + - 99 THEN 24 * 23 + - - 84 + ( - 86 ) + + 88 + - COUNT ( * ) ELSE NULL END + COUNT ( * ) / + + COUNT ( * ) + - ( + 31 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3396
SELECT 80 DIV - 72
----
-1

skipif mysql # not compatible
query I rowsort label-3396
SELECT 80 / - 72
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3397
SELECT ALL 52 - + ( + COUNT( * ) ) AS col0
----
51

skipif mysql # not compatible
query I rowsort label-3397
SELECT ALL 52 - + ( + COUNT ( * ) ) AS col0
----
51

query II rowsort
SELECT 68 col2, + 29
----
68
29

query I rowsort
SELECT 70 - 70 col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3400
SELECT 5 DIV COUNT( * ) * - 72 AS col1
----
-360

skipif mysql # not compatible
query I rowsort label-3400
SELECT 5 / COUNT ( * ) * - 72 AS col1
----
-360

onlyif mysql # DIV for integer division: 
query I rowsort label-3401
SELECT ALL 45 DIV - - 37 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3401
SELECT ALL 45 / - - 37 AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3402
SELECT 11 + - 42 * COUNT( * ) DIV - - NULLIF ( - - SUM( DISTINCT 14 ), CAST( + 79 AS SIGNED ) * - - 96 )
----
8

skipif mysql # not compatible
query I rowsort label-3402
SELECT 11 + - 42 * COUNT ( * ) / - - NULLIF ( - - SUM ( DISTINCT 14 ), CAST ( + 79 AS INTEGER ) * - - 96 )
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3403
SELECT 15 * 42 * + 36 AS col2, + CAST( COUNT( * ) AS SIGNED ) AS col1
----
22680
1

skipif mysql # not compatible
query II rowsort label-3403
SELECT 15 * 42 * + 36 AS col2, + CAST ( COUNT ( * ) AS INTEGER ) AS col1
----
22680
1

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

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

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

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

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

query II rowsort
SELECT + 54 AS col2, - 59 col0
----
54
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-3408
SELECT ALL + 95 * + CASE 1 WHEN + 4 * - COUNT( * ) / - 18 - - 83 + - 58 - 61 + + MIN( DISTINCT + 33 ) * + - 45 + + 93 * + 68 * + - 97 THEN NULL WHEN 60 + + 76 - - + ( + COUNT( * ) ) * + 89 THEN - 47 - 95 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3408
SELECT ALL + 95 * + CASE 1 WHEN + 4 * - COUNT ( * ) / - 18 - - 83 + - 58 - 61 + + MIN ( DISTINCT + 33 ) * + - 45 + + 93 * + 68 * + - 97 THEN NULL WHEN 60 + + 76 - - + ( + COUNT ( * ) ) * + 89 THEN - 47 - 95 END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3409
SELECT DISTINCT - COALESCE ( + COUNT( * ), - 91 * - 80, - + COALESCE ( - MAX( ALL + ( - + 4 ) ), NULLIF ( - + 27, + - ( 36 ) + + - 24 ) DIV - 50 - + + ( - 37 ) * + 61 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3409
SELECT DISTINCT - COALESCE ( + COUNT ( * ), - 91 * - 80, - + COALESCE ( - MAX ( ALL + ( - + 4 ) ), NULLIF ( - + 27, + - ( 36 ) + + - 24 ) / - 50 - + + ( - 37 ) * + 61 ) ) AS col1
----
-1

query I rowsort
SELECT 26 * 19 - - 96 AS col2
----
590

onlyif mysql # aggregate syntax: 
query I rowsort label-3411
SELECT DISTINCT - ( - SUM( ALL 2 ) ) + + NULLIF ( COUNT( * ), - 43 * CASE + 34 WHEN - 88 THEN NULL ELSE 82 * 34 * - 19 END ) + - + 92 AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-3411
SELECT DISTINCT - ( - SUM ( ALL 2 ) ) + + NULLIF ( COUNT ( * ), - 43 * CASE + 34 WHEN - 88 THEN NULL ELSE 82 * 34 * - 19 END ) + - + 92 AS col2
----
-89

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3413
SELECT - 22 * COUNT( * ) DIV - - 92 * 26
----
0

skipif mysql # not compatible
query I rowsort label-3413
SELECT - 22 * COUNT ( * ) / - - 92 * 26
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3414
SELECT ALL + + 24 + 6 DIV 24 AS col2
----
24

skipif mysql # not compatible
query I rowsort label-3414
SELECT ALL + + 24 + 6 / 24 AS col2
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-3415
SELECT + 88 DIV - - 25
----
3

skipif mysql # not compatible
query I rowsort label-3415
SELECT + 88 / - - 25
----
3

query I rowsort
SELECT ALL - + 12 + + + 45
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3417
SELECT DISTINCT - - MIN( DISTINCT 34 ) col2
----
34

skipif mysql # not compatible
query I rowsort label-3417
SELECT DISTINCT - - MIN ( DISTINCT 34 ) col2
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3418
SELECT ALL + 88 + + + COUNT( * )
----
89

skipif mysql # not compatible
query I rowsort label-3418
SELECT ALL + 88 + + + COUNT ( * )
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3419
SELECT - - 39 * 74 * 88 * COUNT( * ) + - - 17 - CAST( NULL AS SIGNED ) / + + 99 / + - 35, 53 AS col0
----
NULL
53

skipif mysql # not compatible
query II rowsort label-3419
SELECT - - 39 * 74 * 88 * COUNT ( * ) + - - 17 - CAST ( NULL AS INTEGER ) / + + 99 / + - 35, 53 AS col0
----
NULL
53

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

skipif mysql # not compatible
query I rowsort label-3420
SELECT ALL - 19 / - COUNT ( * ) AS col2
----
19

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3421
SELECT ALL - 1 AS col2, CAST( NULL AS DECIMAL )
----
-1
NULL

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

query I rowsort
SELECT - 38 * - 60 AS col2
----
2280

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3423
SELECT ALL + ( - 78 ) + ( - + 53 ) DIV - - CASE - 11 WHEN + CAST( NULL AS SIGNED ) * + + COUNT( * ) + - 63 THEN - - 25 ELSE + COUNT( * ) * - 68 * - 76 END AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-3423
SELECT ALL + ( - 78 ) + ( - + 53 ) / - - CASE - 11 WHEN + CAST ( NULL AS INTEGER ) * + + COUNT ( * ) + - 63 THEN - - 25 ELSE + COUNT ( * ) * - 68 * - 76 END AS col1
----
-78

query I rowsort
SELECT - 43 * 20 + 45 AS col2
----
-815

onlyif mysql # DIV for integer division: 
query II rowsort label-3425
SELECT 35 + 82 + + 59 + 54, - 61 * + + 94 + NULLIF ( - 93, - 0 ) + - 52 DIV + 43 AS col2
----
230
-5828

skipif mysql # not compatible
query II rowsort label-3425
SELECT 35 + 82 + + 59 + 54, - 61 * + + 94 + NULLIF ( - 93, - 0 ) + - 52 / + 43 AS col2
----
230
-5828

query I rowsort
SELECT 71 * - 12 AS col2
----
-852

onlyif mysql # aggregate syntax: 
query I rowsort label-3427
SELECT + 67 * 21 - + MAX( ALL + + 72 )
----
1335

skipif mysql # not compatible
query I rowsort label-3427
SELECT + 67 * 21 - + MAX ( ALL + + 72 )
----
1335

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3428
SELECT 54 + + - CAST( + CASE + 20 WHEN - CAST( - + 55 AS SIGNED ) THEN NULL WHEN COALESCE ( + 87, 5 * - 81 ) THEN + + 5 END AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3428
SELECT 54 + + - CAST ( + CASE + 20 WHEN - CAST ( - + 55 AS INTEGER ) THEN NULL WHEN COALESCE ( + 87, 5 * - 81 ) THEN + + 5 END AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3429
SELECT 70 + - 17 * - CAST( - 60 AS SIGNED )
----
-950

skipif mysql # not compatible
query I rowsort label-3429
SELECT 70 + - 17 * - CAST ( - 60 AS INTEGER )
----
-950

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-3430
SELECT SUM( - - 48 ) + - - 0 - + SUM( - CAST( NULL AS SIGNED ) ) + - 73 * - - 23 + - 88 * - NULLIF ( + + ( + + 16 ), + COUNT( * ) ) * 53 * - COUNT( * ), 79 col0, - + 61 DIV NULLIF ( 16, - COUNT( * ) ) AS col1
----
NULL
79
-3

skipif mysql # not compatible
query III rowsort label-3430
SELECT SUM ( - - 48 ) + - - 0 - + SUM ( - CAST ( NULL AS INTEGER ) ) + - 73 * - - 23 + - 88 * - NULLIF ( + + ( + + 16 ), + COUNT ( * ) ) * 53 * - COUNT ( * ), 79 col0, - + 61 / NULLIF ( 16, - COUNT ( * ) ) AS col1
----
NULL
79
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-3431
SELECT DISTINCT 40 * - COUNT( * ) * SUM( + 0 ) AS col2, CASE + 85 WHEN + COUNT( * ) * - COUNT( * ) THEN - + 88 ELSE NULL END + + ( - 11 )
----
0
NULL

skipif mysql # not compatible
query II rowsort label-3431
SELECT DISTINCT 40 * - COUNT ( * ) * SUM ( + 0 ) AS col2, CASE + 85 WHEN + COUNT ( * ) * - COUNT ( * ) THEN - + 88 ELSE NULL END + + ( - 11 )
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3432
SELECT 60 * + CASE AVG ( - 16 ) WHEN - - 12 THEN - 20 * - 62 * - COUNT( 66 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3432
SELECT 60 * + CASE AVG ( - 16 ) WHEN - - 12 THEN - 20 * - 62 * - COUNT ( 66 ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3433
SELECT 96 * - 12 * - COUNT( * )
----
1152

skipif mysql # not compatible
query I rowsort label-3433
SELECT 96 * - 12 * - COUNT ( * )
----
1152

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

skipif mysql # not compatible
query I rowsort label-3434
SELECT DISTINCT 4 * - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 15 + - 82 col1
----
-67

query I rowsort
SELECT 21 * 23 * + 48 AS col1
----
23184

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3437
SELECT DISTINCT 39 * - 55 * CAST( + - 34 AS SIGNED ) * - 20 + - 1 AS col0
----
-1458601

skipif mysql # not compatible
query I rowsort label-3437
SELECT DISTINCT 39 * - 55 * CAST ( + - 34 AS INTEGER ) * - 20 + - 1 AS col0
----
-1458601

query I rowsort
SELECT DISTINCT - 83 * 25 AS col0
----
-2075

query II rowsort
SELECT DISTINCT + 8 + 26, - 63 AS col1
----
34
-63

query I rowsort
SELECT DISTINCT - 86 + - - 78 + 5
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3441
SELECT DISTINCT - + CASE + + 99 WHEN - COUNT( * ) THEN + 74 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3441
SELECT DISTINCT - + CASE + + 99 WHEN - COUNT ( * ) THEN + 74 END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3442
SELECT DISTINCT 85 DIV + 60, - 21 AS col0
----
1
-21

skipif mysql # not compatible
query II rowsort label-3442
SELECT DISTINCT 85 / + 60, - 21 AS col0
----
1
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3443
SELECT MAX( - - 24 ) * + - COUNT( * ) / + CAST( NULL AS SIGNED ) AS col0, - 0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-3443
SELECT MAX ( - - 24 ) * + - COUNT ( * ) / + CAST ( NULL AS INTEGER ) AS col0, - 0
----
NULL
0

query I rowsort
SELECT ALL - 34 * 53 AS col0
----
-1802

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

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

query I rowsort
SELECT + 95 + + 79 AS col1
----
174

query II rowsort
SELECT DISTINCT - - 59 * - + 73 AS col2, - ( - 46 ) AS col0
----
-4307
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3448
SELECT DISTINCT - + 20 * - 85 + - - 40 - - COALESCE ( 95, + 66 ) / + 76 + + CASE - 16 WHEN + 60 + + 1 THEN + CAST( 83 AS SIGNED ) + + 52 WHEN - 27 + + - 50 * - + 13 * - 66 THEN - COALESCE ( - 42, + 42 * MIN( ALL - 96 ), + COUNT( * ) + 76, 91 * 5 ) + NULLIF ( MAX( DISTINCT 58 ), + 95 * + 93 ) ELSE NULL END / CASE + 29 WHEN 23 THEN - 47 + - 64 WHEN - 15 + COUNT( * ) * - 25 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3448
SELECT DISTINCT - + 20 * - 85 + - - 40 - - COALESCE ( 95, + 66 ) / + 76 + + CASE - 16 WHEN + 60 + + 1 THEN + CAST ( 83 AS INTEGER ) + + 52 WHEN - 27 + + - 50 * - + 13 * - 66 THEN - COALESCE ( - 42, + 42 * MIN ( ALL - 96 ), + COUNT ( * ) + 76, 91 * 5 ) + NULLIF ( MAX ( DISTINCT 58 ), + 95 * + 93 ) ELSE NULL END / CASE + 29 WHEN 23 THEN - 47 + - 64 WHEN - 15 + COUNT ( * ) * - 25 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3449
SELECT ALL + - 54 * + - ( CASE + + 45 WHEN + - ( 62 ) THEN COUNT( + 98 ) * - 53 + - 59 + - + NULLIF ( - 26, 43 * - 11 + + 23 - 70 ) + + NULLIF ( + - 20, 20 / - 53 ) - 5 WHEN 59 THEN NULL END ) * CASE WHEN 50 IS NOT NULL THEN - 97 END + ( - 39 ) + - 25 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3449
SELECT ALL + - 54 * + - ( CASE + + 45 WHEN + - ( 62 ) THEN COUNT ( + 98 ) * - 53 + - 59 + - + NULLIF ( - 26, 43 * - 11 + + 23 - 70 ) + + NULLIF ( + - 20, 20 / - 53 ) - 5 WHEN 59 THEN NULL END ) * CASE WHEN 50 IS NOT NULL THEN - 97 END + ( - 39 ) + - 25 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3450
SELECT ALL + + 55 * + - 56 - + COUNT( * ) + + + NULLIF ( + 58, 17 * + 20 + 26 / 69 + + COALESCE ( - - 47, - ( + 53 ) ) ) * - CASE + + 54 WHEN 28 * + - 73 * SUM( DISTINCT + + 15 ) THEN + 4 + + ( 20 ) * + ( CASE - CASE 2 WHEN CASE 67 WHEN + 42 * + CAST( - 85 AS SIGNED ) THEN 43 END THEN SUM( ALL + 3 ) END WHEN + 16 THEN NULL WHEN + 17 + - ( + 40 ) * - COUNT( - 7 + - 41 ) THEN - 15 + ( - 69 ) WHEN + CAST( - AVG ( 74 ) AS SIGNED ) - 88 THEN + COUNT( * ) ELSE NULL END ) WHEN 86 THEN NULL WHEN 18 THEN + ( - MIN( 44 ) ) + + 6 * 57 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3450
SELECT ALL + + 55 * + - 56 - + COUNT ( * ) + + + NULLIF ( + 58, 17 * + 20 + 26 / 69 + + COALESCE ( - - 47, - ( + 53 ) ) ) * - CASE + + 54 WHEN 28 * + - 73 * SUM ( DISTINCT + + 15 ) THEN + 4 + + ( 20 ) * + ( CASE - CASE 2 WHEN CASE 67 WHEN + 42 * + CAST ( - 85 AS INTEGER ) THEN 43 END THEN SUM ( ALL + 3 ) END WHEN + 16 THEN NULL WHEN + 17 + - ( + 40 ) * - COUNT ( - 7 + - 41 ) THEN - 15 + ( - 69 ) WHEN + CAST ( - AVG ( 74 ) AS INTEGER ) - 88 THEN + COUNT ( * ) ELSE NULL END ) WHEN 86 THEN NULL WHEN 18 THEN + ( - MIN ( 44 ) ) + + 6 * 57 END AS col1
----
NULL

query I rowsort
SELECT + + 51 * + + 14 AS col2
----
714

query I rowsort
SELECT - - 46 * + - 0
----
0

query I rowsort
SELECT - - 87 + - - 13
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-3454
SELECT + NULLIF ( - - 92, + - MIN( + 36 ) - ( + 82 ) + 68 * 23 ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-3454
SELECT + NULLIF ( - - 92, + - MIN ( + 36 ) - ( + 82 ) + 68 * 23 ) AS col2
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-3455
SELECT DISTINCT - 86 DIV + 31
----
-2

skipif mysql # not compatible
query I rowsort label-3455
SELECT DISTINCT - 86 / + 31
----
-2

query I rowsort
SELECT ALL + 31 - 91
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-3457
SELECT DISTINCT - 77 DIV + + 42
----
-1

skipif mysql # not compatible
query I rowsort label-3457
SELECT DISTINCT - 77 / + + 42
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3458
SELECT - MIN( DISTINCT 45 ) * COUNT( * )
----
-45

skipif mysql # not compatible
query I rowsort label-3458
SELECT - MIN ( DISTINCT 45 ) * COUNT ( * )
----
-45

query I rowsort
SELECT ALL + 59 * - 2
----
-118

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3460
SELECT ALL NULLIF ( + + SUM( ALL + 23 ), + ( + + 18 ) / - NULLIF ( CAST( - - MAX( ALL + 15 ) AS SIGNED ), - - 77 + - - 28 ) )
----
23

skipif mysql # not compatible
query I rowsort label-3460
SELECT ALL NULLIF ( + + SUM ( ALL + 23 ), + ( + + 18 ) / - NULLIF ( CAST ( - - MAX ( ALL + 15 ) AS INTEGER ), - - 77 + - - 28 ) )
----
23

query I rowsort
SELECT ALL - 32 - - - 22 * - - 85 AS col0
----
-1902

query I rowsort
SELECT ALL + 68 * - - 50 AS col0
----
3400

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3463
SELECT - MAX( ALL - 10 ) DIV CASE + ( 8 ) WHEN - - ( - + 50 ) THEN NULL WHEN 94 * 93 THEN NULL ELSE - 9 * + 34 END col2
----
0

skipif mysql # not compatible
query I rowsort label-3463
SELECT - MAX ( ALL - 10 ) / CASE + ( 8 ) WHEN - - ( - + 50 ) THEN NULL WHEN 94 * 93 THEN NULL ELSE - 9 * + 34 END col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3464
SELECT - ( + 95 ) DIV - COALESCE ( + COALESCE ( 82, - 99, + 32 + - - COUNT( * ) ), COUNT( * ) * - 47 * 80 ) AS col0, + MAX( ALL - 91 ) + 68 AS col1
----
1
-23

skipif mysql # not compatible
query II rowsort label-3464
SELECT - ( + 95 ) / - COALESCE ( + COALESCE ( 82, - 99, + 32 + - - COUNT ( * ) ), COUNT ( * ) * - 47 * 80 ) AS col0, + MAX ( ALL - 91 ) + 68 AS col1
----
1
-23

query I rowsort
SELECT - 34 - 26 * + CASE WHEN NOT NULL IS NULL THEN ( 34 ) ELSE NULL END AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3467
SELECT 52 AS col2, + 22 * + COUNT( * ) AS col2
----
52
22

skipif mysql # not compatible
query II rowsort label-3467
SELECT 52 AS col2, + 22 * + COUNT ( * ) AS col2
----
52
22

query I rowsort
SELECT + 34 * - COALESCE ( + 11, + 61 ) AS col0
----
-374

query I rowsort
SELECT DISTINCT + 24 + + 70 + 15 AS col0
----
109

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

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

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

query I rowsort
SELECT ALL + 42 + - 10
----
32

query II rowsort
SELECT DISTINCT 31 AS col2, - 63 + + 7 col2
----
31
-56

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

skipif mysql # not compatible
query I rowsort label-3474
SELECT DISTINCT + 37 + + COUNT ( * )
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3475
SELECT - COALESCE ( - + 30, + 46 DIV 38 * - COUNT( * ) * - 11 - + ( - - 10 ) * COALESCE ( - 89, + 40 + - NULLIF ( - 28, + SUM( ALL + + 31 ) ) * 53 ), - 80 )
----
30

skipif mysql # not compatible
query I rowsort label-3475
SELECT - COALESCE ( - + 30, + 46 / 38 * - COUNT ( * ) * - 11 - + ( - - 10 ) * COALESCE ( - 89, + 40 + - NULLIF ( - 28, + SUM ( ALL + + 31 ) ) * 53 ), - 80 )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3476
SELECT ALL + CASE - 82 WHEN MIN( ALL + + 71 ) THEN - 6 ELSE NULL END + 75 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3476
SELECT ALL + CASE - 82 WHEN MIN ( ALL + + 71 ) THEN - 6 ELSE NULL END + 75 col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3477
SELECT - + 24 + 55 * + - 37 * - + COUNT( * ) * + CASE - ( COALESCE ( CASE - ( + 89 ) WHEN - COALESCE ( + COUNT( * ), ( + - CASE - + CAST( NULL AS SIGNED ) WHEN - CASE - 54 WHEN + COALESCE ( - 80, - 47 / 15 ) + 46 THEN COUNT( * ) END THEN 60 * + 65 END ) / - 87, ( 40 ) * + 2 + - 47 / + ( 30 ) ) * ( 96 ) THEN 31 END, 22 * + 11 + - 73 / 59 ) ) WHEN CAST( NULL AS SIGNED ) THEN NULL WHEN + 89 THEN NULL ELSE 61 + 44 END AS col2
----
213651

skipif mysql # not compatible
query I rowsort label-3477
SELECT - + 24 + 55 * + - 37 * - + COUNT ( * ) * + CASE - ( COALESCE ( CASE - ( + 89 ) WHEN - COALESCE ( + COUNT ( * ), ( + - CASE - + CAST ( NULL AS INTEGER ) WHEN - CASE - 54 WHEN + COALESCE ( - 80, - 47 / 15 ) + 46 THEN COUNT ( * ) END THEN 60 * + 65 END ) / - 87, ( 40 ) * + 2 + - 47 / + ( 30 ) ) * ( 96 ) THEN 31 END, 22 * + 11 + - 73 / 59 ) ) WHEN CAST ( NULL AS INTEGER ) THEN NULL WHEN + 89 THEN NULL ELSE 61 + 44 END AS col2
----
213651

query I rowsort
SELECT - ( - 80 ) * + - ( - 13 )
----
1040

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

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

query I rowsort
SELECT DISTINCT 82 + - ( + 48 )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3481
SELECT + COUNT( * ) + - - 73 AS col1
----
74

skipif mysql # not compatible
query I rowsort label-3481
SELECT + COUNT ( * ) + - - 73 AS col1
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3482
SELECT ALL ( + 83 ) + + 28 AS col2, 3 * - 74 + NULLIF ( - - CASE 11 WHEN CASE WHEN 87 <> + + 92 * + 43 AND NOT - 72 * + 82 * COUNT( * ) * - 84 IS NULL THEN 90 WHEN NOT ( NULL ) > - 29 THEN + 68 ELSE - COALESCE ( + NULLIF ( + 7, ( 97 ) ), - CASE 93 WHEN + 3 * - 65 + - 86 THEN + 71 / - 95 WHEN 1 / 48 THEN NULL ELSE + 34 / CAST( 98 / + 45 AS SIGNED ) END ) END THEN NULL WHEN + MIN( + 77 ) THEN - MAX( 11 ) * ( + 74 ) + 32 ELSE - 73 END, - 14 + 51 ) + + 95 * 59 AS col2
----
111
5310

skipif mysql # not compatible
query II rowsort label-3482
SELECT ALL ( + 83 ) + + 28 AS col2, 3 * - 74 + NULLIF ( - - CASE 11 WHEN CASE WHEN 87 <> + + 92 * + 43 AND NOT - 72 * + 82 * COUNT ( * ) * - 84 IS NULL THEN 90 WHEN NOT ( NULL ) > - 29 THEN + 68 ELSE - COALESCE ( + NULLIF ( + 7, ( 97 ) ), - CASE 93 WHEN + 3 * - 65 + - 86 THEN + 71 / - 95 WHEN 1 / 48 THEN NULL ELSE + 34 / CAST ( 98 / + 45 AS INTEGER ) END ) END THEN NULL WHEN + MIN ( + 77 ) THEN - MAX ( 11 ) * ( + 74 ) + 32 ELSE - 73 END, - 14 + 51 ) + + 95 * 59 AS col2
----
111
5310

query I rowsort
SELECT ALL + 52 * - - 44 col0
----
2288

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3484
SELECT DISTINCT + CAST( NULL AS SIGNED ) / 39 + 39 * + 15 + - + COUNT( * ) * - + COUNT( * ) * + 28 / 7 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3484
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / 39 + 39 * + 15 + - + COUNT ( * ) * - + COUNT ( * ) * + 28 / 7 AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3486
SELECT DISTINCT 94 DIV - 39 - - COUNT( * ) AS col2, ( COUNT( * ) ) * + - COUNT( * ) - + - 3 + + 0 * + + COALESCE ( + ( + SUM( - 27 ) ), - + 55 ) * 61 + + 91 * 1 AS col1
----
-1
93

skipif mysql # not compatible
query II rowsort label-3486
SELECT DISTINCT 94 / - 39 - - COUNT ( * ) AS col2, ( COUNT ( * ) ) * + - COUNT ( * ) - + - 3 + + 0 * + + COALESCE ( + ( + SUM ( - 27 ) ), - + 55 ) * 61 + + 91 * 1 AS col1
----
-1
93

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3488
SELECT - - COUNT( * ) DIV - + 69 - + - 23 DIV - COALESCE ( - - 9, - 16 DIV 83 - + 97 + + 14 )
----
-2

skipif mysql # not compatible
query I rowsort label-3488
SELECT - - COUNT ( * ) / - + 69 - + - 23 / - COALESCE ( - - 9, - 16 / 83 - + 97 + + 14 )
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3489
SELECT + CASE 39 WHEN + 94 * + 7 THEN NULL WHEN - + 52 * - - NULLIF ( MAX( + 48 ), + CAST( NULL AS SIGNED ) * + 32 + + COUNT( * ) - - 84 ) + - 83 + - 8 * + 15 * 49 THEN + 60 - + 2 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3489
SELECT + CASE 39 WHEN + 94 * + 7 THEN NULL WHEN - + 52 * - - NULLIF ( MAX ( + 48 ), + CAST ( NULL AS INTEGER ) * + 32 + + COUNT ( * ) - - 84 ) + - 83 + - 8 * + 15 * 49 THEN + 60 - + 2 END AS col1
----
NULL

query II rowsort
SELECT + 59 - + - 47 + - 81, 0 AS col1
----
25
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3492
SELECT ALL - 36 DIV - 76 - + 17 col0
----
-17

skipif mysql # not compatible
query I rowsort label-3492
SELECT ALL - 36 / - 76 - + 17 col0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-3493
SELECT ALL 34 * - 16 * - + 80 * + 76 - 47 + + 80 + + CASE + 45 WHEN - 13 + + - 26 + COUNT( DISTINCT 13 ) THEN NULL WHEN NULLIF ( + 19, + - ( 69 ) + - - MIN( 42 ) * COUNT( * ) ) THEN - - 36 ELSE + 68 * - COUNT( + CASE 19 WHEN 42 THEN 3 ELSE NULL END ) END + 22 * - 96 * + 48 AS col1
----
3206177

skipif mysql # not compatible
query I rowsort label-3493
SELECT ALL 34 * - 16 * - + 80 * + 76 - 47 + + 80 + + CASE + 45 WHEN - 13 + + - 26 + COUNT ( DISTINCT 13 ) THEN NULL WHEN NULLIF ( + 19, + - ( 69 ) + - - MIN ( 42 ) * COUNT ( * ) ) THEN - - 36 ELSE + 68 * - COUNT ( + CASE 19 WHEN 42 THEN 3 ELSE NULL END ) END + 22 * - 96 * + 48 AS col1
----
3206177

onlyif mysql # aggregate syntax: 
query I rowsort label-3494
SELECT + ( - + CASE + SUM( DISTINCT + + 90 ) WHEN - 26 + - + 12 THEN NULL WHEN 54 * - + 99 + 81 THEN + - 84 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3494
SELECT + ( - + CASE + SUM ( DISTINCT + + 90 ) WHEN - 26 + - + 12 THEN NULL WHEN 54 * - + 99 + 81 THEN + - 84 ELSE NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3495
SELECT ALL 12 * - + COALESCE ( - 65, - - COUNT( * ), - ( + + ( 30 ) ) ) AS col2
----
780

skipif mysql # not compatible
query I rowsort label-3495
SELECT ALL 12 * - + COALESCE ( - 65, - - COUNT ( * ), - ( + + ( 30 ) ) ) AS col2
----
780

query I rowsort
SELECT + 18 * + 95 * - + 40
----
-68400

query II rowsort
SELECT ALL + 99 AS col1, 6
----
99
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3498
SELECT + 59 * + 47 - MIN( DISTINCT COALESCE ( + 80, + 48 + - 15 * 38 ) ) AS col1
----
2693

skipif mysql # not compatible
query I rowsort label-3498
SELECT + 59 * + 47 - MIN ( DISTINCT COALESCE ( + 80, + 48 + - 15 * 38 ) ) AS col1
----
2693

query I rowsort
SELECT DISTINCT + NULLIF ( + 80, + 39 * + 35 )
----
80

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3500
SELECT CASE - 20 WHEN + + 82 THEN + - 82 / + 41 * AVG ( + - 75 ) * - 27 - - 66 WHEN COUNT( * ) THEN - CAST( NULL AS DECIMAL ) * - - 72 - - MIN( DISTINCT 76 ) + + 57 + + - 97 * + + MAX( DISTINCT + 90 ) + - + MIN( + 39 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3500
SELECT CASE - 20 WHEN + + 82 THEN + - 82 / + 41 * AVG ( + - 75 ) * - 27 - - 66 WHEN COUNT ( * ) THEN - CAST ( NULL AS REAL ) * - - 72 - - MIN ( DISTINCT 76 ) + + 57 + + - 97 * + + MAX ( DISTINCT + 90 ) + - + MIN ( + 39 ) END
----
NULL

query II rowsort
SELECT + 2 AS col2, + 0 - 7 AS col1
----
2
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3502
SELECT NULLIF ( ( - 38 ), NULLIF ( - CAST( - 54 AS SIGNED ), - COUNT( * ) / + - 55 + - 43 ) ) AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-3502
SELECT NULLIF ( ( - 38 ), NULLIF ( - CAST ( - 54 AS INTEGER ), - COUNT ( * ) / + - 55 + - 43 ) ) AS col2
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-3503
SELECT + COUNT( * ) + - 6 AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-3503
SELECT + COUNT ( * ) + - 6 AS col0
----
-5

query I rowsort
SELECT + 11 + - 58 AS col2
----
-47

query I rowsort
SELECT - 17 - + 73 - 54 AS col1
----
-144

query I rowsort
SELECT + ( 38 ) + - - 85 + + 87 * + 64
----
5691

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3507
SELECT - 70 AS col1, SUM( - + CAST( NULL AS SIGNED ) ) - - 86 * + 55 * + + 66
----
-70
NULL

skipif mysql # not compatible
query II rowsort label-3507
SELECT - 70 AS col1, SUM ( - + CAST ( NULL AS INTEGER ) ) - - 86 * + 55 * + + 66
----
-70
NULL

query I rowsort
SELECT - 57 + - - 12 * 58 AS col2
----
639

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3511
SELECT - CAST( NULL AS SIGNED ) + - 24 + - - 52
----
NULL

skipif mysql # not compatible
query I rowsort label-3511
SELECT - CAST ( NULL AS INTEGER ) + - 24 + - - 52
----
NULL

query I rowsort
SELECT - 88 * 94
----
-8272

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

skipif mysql # not compatible
query I rowsort label-3513
SELECT - COUNT ( * ) * - 57 / + ( + + 18 )
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3514
SELECT - ( 37 ) + 94 + - COUNT( * ) * + - 31 * + 15, - COUNT( * ) * + 59 DIV 54 - + - ( - + 11 ) DIV - - MAX( - 79 ) - + + 5 AS col0
----
522
-6

skipif mysql # not compatible
query II rowsort label-3514
SELECT - ( 37 ) + 94 + - COUNT ( * ) * + - 31 * + 15, - COUNT ( * ) * + 59 / 54 - + - ( - + 11 ) / - - MAX ( - 79 ) - + + 5 AS col0
----
522
-6

query I rowsort
SELECT ALL - 56 * + 28 AS col1
----
-1568

onlyif mysql # aggregate syntax: 
query II rowsort label-3516
SELECT - - 27 AS col1, - 59 * 35 * 55 + - COUNT( * ) * - 75 AS col2
----
27
-113500

skipif mysql # not compatible
query II rowsort label-3516
SELECT - - 27 AS col1, - 59 * 35 * 55 + - COUNT ( * ) * - 75 AS col2
----
27
-113500

onlyif mysql # aggregate syntax: 
query I rowsort label-3517
SELECT ALL CASE CASE ( - 93 ) WHEN CASE - COUNT( * ) WHEN 25 * + + 75 + + 38 + + 99 THEN NULL WHEN - 20 THEN NULL ELSE SUM( - + 3 ) END THEN SUM( ALL - 59 ) * + ( 25 ) WHEN - 7 THEN + COUNT( * ) ELSE NULL END WHEN - - 21 THEN - 49 * - 34 WHEN 85 + + 54 * 27 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3517
SELECT ALL CASE CASE ( - 93 ) WHEN CASE - COUNT ( * ) WHEN 25 * + + 75 + + 38 + + 99 THEN NULL WHEN - 20 THEN NULL ELSE SUM ( - + 3 ) END THEN SUM ( ALL - 59 ) * + ( 25 ) WHEN - 7 THEN + COUNT ( * ) ELSE NULL END WHEN - - 21 THEN - 49 * - 34 WHEN 85 + + 54 * 27 THEN NULL END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3518
SELECT ( ( + 17 ) ) - + 75 DIV + 96
----
17

skipif mysql # not compatible
query I rowsort label-3518
SELECT ( ( + 17 ) ) - + 75 / + 96
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3519
SELECT 37 + CAST( 13 AS SIGNED ) + + - 94 AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-3519
SELECT 37 + CAST ( 13 AS INTEGER ) + + - 94 AS col2
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-3520
SELECT - - 41 * - + 46 * ( 48 ) - - 63 * - - NULLIF ( - SUM( 17 ), - 24 * 35 / + ( + 6 ) ) + - + 35
----
-91634

skipif mysql # not compatible
query I rowsort label-3520
SELECT - - 41 * - + 46 * ( 48 ) - - 63 * - - NULLIF ( - SUM ( 17 ), - 24 * 35 / + ( + 6 ) ) + - + 35
----
-91634

onlyif mysql # DIV for integer division: 
query I rowsort label-3521
SELECT 60 DIV 54 + + 27 + + 48 AS col2
----
76

skipif mysql # not compatible
query I rowsort label-3521
SELECT 60 / 54 + + 27 + + 48 AS col2
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-3522
SELECT 54 * NULLIF ( MIN( 67 ), - 66 * + 63 / + 72 ) + 19 - - 87 * + 44 - 32 AS col1
----
7433

skipif mysql # not compatible
query I rowsort label-3522
SELECT 54 * NULLIF ( MIN ( 67 ), - 66 * + 63 / + 72 ) + 19 - - 87 * + 44 - 32 AS col1
----
7433

query I rowsort
SELECT ALL - 49 - + - 85
----
36

query I rowsort
SELECT ALL 1 * + + 98
----
98

query I rowsort
SELECT 76 * + CASE 0 WHEN + 99 THEN - 29 + + 47 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3526
SELECT DISTINCT + 86 * - 57, COUNT( * ) AS col1
----
-4902
1

skipif mysql # not compatible
query II rowsort label-3526
SELECT DISTINCT + 86 * - 57, COUNT ( * ) AS col1
----
-4902
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3527
SELECT CASE - - 98 WHEN - COUNT( * ) + NULLIF ( - 24, - 71 * + 22 + - - 9 + - 77 + + - 25 * + 35 ) THEN 73 WHEN - COUNT( * ) + - 19 * 90 THEN NULL ELSE NULL END / COUNT( * ) * - 85 + + + 28 * 26 + 91
----
NULL

skipif mysql # not compatible
query I rowsort label-3527
SELECT CASE - - 98 WHEN - COUNT ( * ) + NULLIF ( - 24, - 71 * + 22 + - - 9 + - 77 + + - 25 * + 35 ) THEN 73 WHEN - COUNT ( * ) + - 19 * 90 THEN NULL ELSE NULL END / COUNT ( * ) * - 85 + + + 28 * 26 + 91
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3528
SELECT + 92 * + - 82 + + 42 * 0 * - + 3 AS col1, - COUNT( + NULLIF ( - 38, 41 ) ) AS col2
----
-7544
-1

skipif mysql # not compatible
query II rowsort label-3528
SELECT + 92 * + - 82 + + 42 * 0 * - + 3 AS col1, - COUNT ( + NULLIF ( - 38, 41 ) ) AS col2
----
-7544
-1

query I rowsort
SELECT ALL - NULLIF ( + - 98, - 14 )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3530
SELECT MIN( - - 36 ) + - - MIN( 62 )
----
98

skipif mysql # not compatible
query I rowsort label-3530
SELECT MIN ( - - 36 ) + - - MIN ( 62 )
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-3531
SELECT 70 * + 43 AS col1, 50 + - 21 + ( - 80 ) DIV - SUM( + 46 ) AS col1, - - 62 AS col0
----
3010
30
62

skipif mysql # not compatible
query III rowsort label-3531
SELECT 70 * + 43 AS col1, 50 + - 21 + ( - 80 ) / - SUM ( + 46 ) AS col1, - - 62 AS col0
----
3010
30
62

query I rowsort
SELECT 5 + 52 AS col2
----
57

query II rowsort
SELECT DISTINCT 64 + + - 58 AS col0, + 58 * - 73 - - + 86 AS col2
----
6
-4148

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

skipif mysql # not compatible
query I rowsort label-3534
SELECT 89 / + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 42 + 14 AS col2
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-3536
SELECT DISTINCT MIN( 7 ) * - + 87
----
-609

skipif mysql # not compatible
query I rowsort label-3536
SELECT DISTINCT MIN ( 7 ) * - + 87
----
-609

query I rowsort
SELECT DISTINCT 16 + + - 14 + + - 44
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-3538
SELECT ALL - SUM( 89 ) + + 23 + 39 AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-3538
SELECT ALL - SUM ( 89 ) + + 23 + 39 AS col1
----
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-3539
SELECT DISTINCT + 24 + + 65, - CASE + 84 WHEN - COALESCE ( - 57, 58 + - 77 / + 96, + 2 / + + 90 ) THEN 28 WHEN - 0 THEN 68 / - COUNT( * ) - - 91 ELSE NULL END * - COUNT( * ) + + 60 * + ( 83 ) AS col1
----
89
NULL

skipif mysql # not compatible
query II rowsort label-3539
SELECT DISTINCT + 24 + + 65, - CASE + 84 WHEN - COALESCE ( - 57, 58 + - 77 / + 96, + 2 / + + 90 ) THEN 28 WHEN - 0 THEN 68 / - COUNT ( * ) - - 91 ELSE NULL END * - COUNT ( * ) + + 60 * + ( 83 ) AS col1
----
89
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3540
SELECT DISTINCT COUNT( * ) * + 71 col2
----
71

skipif mysql # not compatible
query I rowsort label-3540
SELECT DISTINCT COUNT ( * ) * + 71 col2
----
71

query II rowsort
SELECT DISTINCT 80 + + 57 * 39 AS col0, 94
----
2303
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3542
SELECT ALL CASE + 97 WHEN - - 50 THEN + 69 * + + 41 + - 83 + - COUNT( ALL 43 ) END * + + NULLIF ( + 37, + 91 ) + - 53
----
NULL

skipif mysql # not compatible
query I rowsort label-3542
SELECT ALL CASE + 97 WHEN - - 50 THEN + 69 * + + 41 + - 83 + - COUNT ( ALL 43 ) END * + + NULLIF ( + 37, + 91 ) + - 53
----
NULL

query I rowsort
SELECT 73 - + 8 + + 56
----
121

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3544
SELECT - 16 * 14 DIV - 53 - COUNT( + 51 )
----
3

skipif mysql # not compatible
query I rowsort label-3544
SELECT - 16 * 14 / - 53 - COUNT ( + 51 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3545
SELECT - CASE + 6 WHEN 34 * ( 29 ) * - COUNT( - 80 ) THEN - - 16 WHEN - 80 THEN + 61 / + 76 * 21 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3545
SELECT - CASE + 6 WHEN 34 * ( 29 ) * - COUNT ( - 80 ) THEN - - 16 WHEN - 80 THEN + 61 / + 76 * 21 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3546
SELECT ALL COUNT( DISTINCT - 36 ), - CASE + + 53 WHEN - 7 THEN - + 90 ELSE NULL END AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-3546
SELECT ALL COUNT ( DISTINCT - 36 ), - CASE + + 53 WHEN - 7 THEN - + 90 ELSE NULL END AS col0
----
1
NULL

query I rowsort
SELECT ALL + 27 - - 78 AS col2
----
105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3548
SELECT ALL + CAST( NULL AS SIGNED ) - + - 68 / 12 + + 1 - - + 65
----
NULL

skipif mysql # not compatible
query I rowsort label-3548
SELECT ALL + CAST ( NULL AS INTEGER ) - + - 68 / 12 + + 1 - - + 65
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3549
SELECT ALL - ( - + NULLIF ( + COUNT( * ), 10 * - + 93 * + COALESCE ( - 89, COALESCE ( + 33, - COUNT( * ), - CAST( NULL AS SIGNED ) ) / - 76 + - 21 * + CAST( - - 11 AS DECIMAL ), - 66 ) - + 72 + + MAX( 19 ) - + 76 ) ) col1
----
1

skipif mysql # not compatible
query I rowsort label-3549
SELECT ALL - ( - + NULLIF ( + COUNT ( * ), 10 * - + 93 * + COALESCE ( - 89, COALESCE ( + 33, - COUNT ( * ), - CAST ( NULL AS INTEGER ) ) / - 76 + - 21 * + CAST ( - - 11 AS REAL ), - 66 ) - + 72 + + MAX ( 19 ) - + 76 ) ) col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3550
SELECT DISTINCT + 11 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3550
SELECT DISTINCT + 11 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - 32 + - 30
----
-62

query I rowsort
SELECT - NULLIF ( + + ( + - 52 ), 43 ) - + 98 * - 16 AS col2
----
1620

query II rowsort
SELECT 44 * - 42 AS col0, 18
----
-1848
18

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3556
SELECT COUNT( * ), 4 * + + MIN( DISTINCT 22 ) AS col1
----
1
88

skipif mysql # not compatible
query II rowsort label-3556
SELECT COUNT ( * ), 4 * + + MIN ( DISTINCT 22 ) AS col1
----
1
88

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3558
SELECT MIN( - ( - 14 ) ) * 7 + 85 + - 19 AS col0
----
164

skipif mysql # not compatible
query I rowsort label-3558
SELECT MIN ( - ( - 14 ) ) * 7 + 85 + - 19 AS col0
----
164

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

query I rowsort
SELECT 15 * 92 AS col1
----
1380

onlyif mysql # aggregate syntax: 
query II rowsort label-3561
SELECT ALL - 37 + + 8 * - CASE + 8 WHEN - 68 * + 25 * + 64 / - - MIN( + 92 ) - + 51 THEN 88 * - 8 + + 93 - - + 41 * + - ( 58 ) ELSE + 36 * COUNT( * ) END AS col0, - 94 * - - 45 / - SUM( - CASE - 65 WHEN - 55 + 98 * + 5 THEN 62 END )
----
-325
NULL

skipif mysql # not compatible
query II rowsort label-3561
SELECT ALL - 37 + + 8 * - CASE + 8 WHEN - 68 * + 25 * + 64 / - - MIN ( + 92 ) - + 51 THEN 88 * - 8 + + 93 - - + 41 * + - ( 58 ) ELSE + 36 * COUNT ( * ) END AS col0, - 94 * - - 45 / - SUM ( - CASE - 65 WHEN - 55 + 98 * + 5 THEN 62 END )
----
-325
NULL

query I rowsort
SELECT DISTINCT 40 + - 67 col0
----
-27

query I rowsort
SELECT ALL 75 + 45 AS col2
----
120

query I rowsort
SELECT ALL - NULLIF ( + NULLIF ( - 95, 46 ), + 12 + + 21 ) AS col0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3565
SELECT COUNT( * ) - 80 AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-3565
SELECT COUNT ( * ) - 80 AS col0
----
-79

query I rowsort
SELECT ALL - 11 + - - 5 + - 8 * + 21 AS col2
----
-174

query I rowsort
SELECT 30 * - - 87
----
2610

onlyif mysql # aggregate syntax: 
query I rowsort label-3568
SELECT ALL NULLIF ( + MIN( ALL - 57 ), + 4 ) + 85 + - 90 AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-3568
SELECT ALL NULLIF ( + MIN ( ALL - 57 ), + 4 ) + 85 + - 90 AS col2
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-3569
SELECT COUNT( * ) + - 69 + + 44 * - + 57 AS col0
----
-2576

skipif mysql # not compatible
query I rowsort label-3569
SELECT COUNT ( * ) + - 69 + + 44 * - + 57 AS col0
----
-2576

onlyif mysql # aggregate syntax: 
query I rowsort label-3570
SELECT + MIN( 10 ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-3570
SELECT + MIN ( 10 ) AS col2
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-3571
SELECT 46 AS col0, COUNT( * ) * - 0 * 2
----
46
0

skipif mysql # not compatible
query II rowsort label-3571
SELECT 46 AS col0, COUNT ( * ) * - 0 * 2
----
46
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3572
SELECT - 67 * 75 + - 74 col1, - COUNT( * )
----
-5099
-1

skipif mysql # not compatible
query II rowsort label-3572
SELECT - 67 * 75 + - 74 col1, - COUNT ( * )
----
-5099
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3573
SELECT ALL - COUNT( DISTINCT - 64 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3573
SELECT ALL - COUNT ( DISTINCT - 64 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3574
SELECT 70 * - - COUNT( * ) + - 38 AS col0, 99 + + 94 AS col0
----
32
193

skipif mysql # not compatible
query II rowsort label-3574
SELECT 70 * - - COUNT ( * ) + - 38 AS col0, 99 + + 94 AS col0
----
32
193

onlyif mysql # aggregate syntax: 
query I rowsort label-3575
SELECT + COUNT( ALL + ( + + 24 ) ) + - + 61 AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-3575
SELECT + COUNT ( ALL + ( + + 24 ) ) + - + 61 AS col2
----
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-3576
SELECT ALL + COUNT( * ) AS col0, 50 + 51 col0
----
1
101

skipif mysql # not compatible
query II rowsort label-3576
SELECT ALL + COUNT ( * ) AS col0, 50 + 51 col0
----
1
101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3577
SELECT ALL - 73 * NULLIF ( + 93, - CAST( NULL AS SIGNED ) + - 90 ) * 13 * COUNT( * ) + + ( 93 ) AS col0
----
-88164

skipif mysql # not compatible
query I rowsort label-3577
SELECT ALL - 73 * NULLIF ( + 93, - CAST ( NULL AS INTEGER ) + - 90 ) * 13 * COUNT ( * ) + + ( 93 ) AS col0
----
-88164

query I rowsort
SELECT - NULLIF ( + 18, + 28 * - - 52 ) AS col1
----
-18

query I rowsort
SELECT - + ( - - 29 ) * + 68 * - 95 - + 54 AS col1
----
187286

query I rowsort
SELECT + - 18 + 22 + + CASE - + 10 WHEN - 68 THEN 97 END AS col0
----
NULL

query I rowsort
SELECT - - 54 + + + 92 col0
----
146

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3582
SELECT - CAST( 3 AS SIGNED ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-3582
SELECT - CAST ( 3 AS INTEGER ) AS col2
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3583
SELECT DISTINCT + CAST( + 79 AS SIGNED )
----
79

skipif mysql # not compatible
query I rowsort label-3583
SELECT DISTINCT + CAST ( + 79 AS INTEGER )
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3584
SELECT ALL - CASE WHEN NOT NULL IS NOT NULL THEN + COUNT( * ) WHEN NULL IN ( - 54, - MIN( - 77 ), 35 / - - 0 + - CAST( - 30 AS SIGNED ) * 99 ) THEN + + ( + + 52 ) END + - + 91 * + ( + 38 ) * - COUNT( * )
----
3457

skipif mysql # not compatible
query I rowsort label-3584
SELECT ALL - CASE WHEN NOT NULL IS NOT NULL THEN + COUNT ( * ) WHEN NULL IN ( - 54, - MIN ( - 77 ), 35 / - - 0 + - CAST ( - 30 AS INTEGER ) * 99 ) THEN + + ( + + 52 ) END + - + 91 * + ( + 38 ) * - COUNT ( * )
----
3457

query II rowsort
SELECT - + 5 col0, - 31 * - + 76 AS col1
----
-5
2356

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3587
SELECT + 42 DIV ( + 13 )
----
3

skipif mysql # not compatible
query I rowsort label-3587
SELECT + 42 / ( + 13 )
----
3

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

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

query I rowsort
SELECT ALL 53 + - 77 + + - 22
----
-46

query II rowsort
SELECT + 59 + + - 6, + 41 AS col1
----
53
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3591
SELECT + 84 DIV COUNT( * ) + - 47 + 63
----
100

skipif mysql # not compatible
query I rowsort label-3591
SELECT + 84 / COUNT ( * ) + - 47 + 63
----
100

query I rowsort
SELECT 41 * - 34 - + 76
----
-1470

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3594
SELECT ALL + 45 * - 21 * + - 36 + - - CAST( NULL AS SIGNED ) col2, 25 AS col2
----
NULL
25

skipif mysql # not compatible
query II rowsort label-3594
SELECT ALL + 45 * - 21 * + - 36 + - - CAST ( NULL AS INTEGER ) col2, 25 AS col2
----
NULL
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3595
SELECT - 5 + - - 39 + + MIN( 34 ) AS col0, 48 DIV + 40 + 8 AS col2
----
68
9

skipif mysql # not compatible
query II rowsort label-3595
SELECT - 5 + - - 39 + + MIN ( 34 ) AS col0, 48 / + 40 + 8 AS col2
----
68
9

query I rowsort
SELECT - 34 + + 79
----
45

query I rowsort
SELECT COALESCE ( + + CASE 28 WHEN 52 THEN - 93 + + 46 + - 48 + + ( + 28 ) END, - 12 + + NULLIF ( 37, + 54 * 74 ) ) AS col1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-3598
SELECT NULLIF ( + 11, + - ( 27 ) + COUNT( * ) )
----
11

skipif mysql # not compatible
query I rowsort label-3598
SELECT NULLIF ( + 11, + - ( 27 ) + COUNT ( * ) )
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-3599
SELECT ALL - 6 * + 41, + 69 + + - MAX( + 98 ) AS col2
----
-246
-29

skipif mysql # not compatible
query II rowsort label-3599
SELECT ALL - 6 * + 41, + 69 + + - MAX ( + 98 ) AS col2
----
-246
-29

query I rowsort
SELECT COALESCE ( + NULLIF ( + 26, + + 48 ), + CASE + 50 WHEN + 7 THEN NULL ELSE - 91 END + 22 ) AS col2
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3601
SELECT DISTINCT - ( - 52 ) * COUNT( * )
----
52

skipif mysql # not compatible
query I rowsort label-3601
SELECT DISTINCT - ( - 52 ) * COUNT ( * )
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3602
SELECT NULLIF ( 38, - 44 + - 94 + CASE - CASE + 34 WHEN 63 * 75 + 48 + 32 + ( + - 36 ) * CASE - 6 WHEN MAX( DISTINCT + + 24 ) THEN NULL WHEN - MIN( + + 9 ) THEN NULL ELSE + NULLIF ( - 29, + CAST( - - NULLIF ( - 33, - 60 / - 77 ) AS SIGNED ) ) + COUNT( * ) * - 85 END THEN + 91 * 34 + 79 WHEN + 44 * 32 THEN - 66 ELSE SUM( 47 ) * 74 END WHEN + ( - 79 ) * COUNT( * ) THEN + 32 / 75 WHEN + 40 THEN NULL WHEN + 79 + 8 THEN NULL END + - 40 / 65 )
----
38

skipif mysql # not compatible
query I rowsort label-3602
SELECT NULLIF ( 38, - 44 + - 94 + CASE - CASE + 34 WHEN 63 * 75 + 48 + 32 + ( + - 36 ) * CASE - 6 WHEN MAX ( DISTINCT + + 24 ) THEN NULL WHEN - MIN ( + + 9 ) THEN NULL ELSE + NULLIF ( - 29, + CAST ( - - NULLIF ( - 33, - 60 / - 77 ) AS INTEGER ) ) + COUNT ( * ) * - 85 END THEN + 91 * 34 + 79 WHEN + 44 * 32 THEN - 66 ELSE SUM ( 47 ) * 74 END WHEN + ( - 79 ) * COUNT ( * ) THEN + 32 / 75 WHEN + 40 THEN NULL WHEN + 79 + 8 THEN NULL END + - 40 / 65 )
----
38

query I rowsort
SELECT ALL + 43 * 15 - 5 AS col2
----
640

query I rowsort
SELECT - 7 * - 26 AS col1
----
182

query I rowsort
SELECT ALL - ( - - 64 ) * + 50 AS col0
----
-3200

query II rowsort
SELECT - + 83 + - - 71 AS col1, - 52 * - - ( 0 ) col1
----
-12
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3607
SELECT - - 13 * 35 + - COUNT( * ) * + COUNT( * ) * - 46 DIV - - 93 * - - 16
----
455

skipif mysql # not compatible
query I rowsort label-3607
SELECT - - 13 * 35 + - COUNT ( * ) * + COUNT ( * ) * - 46 / - - 93 * - - 16
----
455

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

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

query I rowsort
SELECT - + NULLIF ( - 17, + 21 ) - - 2 + - - 97 * + 97 + 69 + - 80 + - + 20 * + + 55 * - 90 AS col1
----
108417

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

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

query I rowsort
SELECT - 23 * - - 77 + - + 24
----
-1795

query I rowsort
SELECT ALL - CASE - 77 WHEN ( ( 58 ) ) * - ( 84 ) THEN 77 * + 73 * 45 END + 35 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3614
SELECT ALL CASE + COUNT( * ) WHEN + 47 THEN - 75 ELSE NULL END * ( - 3 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3614
SELECT ALL CASE + COUNT ( * ) WHEN + 47 THEN - 75 ELSE NULL END * ( - 3 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3615
SELECT + - 81 + + 58 - 4 * - COUNT( * ) * + - 16 AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-3615
SELECT + - 81 + + 58 - 4 * - COUNT ( * ) * + - 16 AS col0
----
-87

query I rowsort
SELECT + 50 - + 9 + + + ( 16 ) AS col0
----
57

query I rowsort
SELECT ALL - NULLIF ( 34, - 77 ) * + - 66 * + 40 AS col0
----
89760

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3618
SELECT ALL - 68 + - + ( - + ( - - 37 ) ) * - COALESCE ( - 37, + + 32 DIV - MAX( ALL 52 ) ), 36 * 40 AS col0
----
1301
1440

skipif mysql # not compatible
query II rowsort label-3618
SELECT ALL - 68 + - + ( - + ( - - 37 ) ) * - COALESCE ( - 37, + + 32 / - MAX ( ALL 52 ) ), 36 * 40 AS col0
----
1301
1440

query I rowsort
SELECT + 36 * 11
----
396

onlyif mysql # DIV for integer division: 
query I rowsort label-3620
SELECT + 42 + - 44 + + 94 DIV 2 DIV 71 col1
----
-2

skipif mysql # not compatible
query I rowsort label-3620
SELECT + 42 + - 44 + + 94 / 2 / 71 col1
----
-2

query I rowsort
SELECT + 18 + - 71 AS col2
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-3622
SELECT - 77 - - 90 * + - COUNT( * ) - + 43 AS col2
----
-210

skipif mysql # not compatible
query I rowsort label-3622
SELECT - 77 - - 90 * + - COUNT ( * ) - + 43 AS col2
----
-210

query I rowsort
SELECT ALL 0 + - 88 + 22 * + 44 AS col1
----
880

query I rowsort
SELECT + 41 * - 28 * ( + 97 ) AS col1
----
-111356

onlyif mysql # aggregate syntax: 
query II rowsort label-3625
SELECT + ( + 28 ) * - - 63 * COUNT( * ) * - + 56 * 42 AS col0, - COUNT( DISTINCT - 32 ) AS col2
----
-4148928
-1

skipif mysql # not compatible
query II rowsort label-3625
SELECT + ( + 28 ) * - - 63 * COUNT ( * ) * - + 56 * 42 AS col0, - COUNT ( DISTINCT - 32 ) AS col2
----
-4148928
-1

query I rowsort
SELECT - 10 * + 45
----
-450

onlyif mysql # aggregate syntax: 
query I rowsort label-3627
SELECT + 22 + + COUNT( * ) + + 49 * - 65 AS col2
----
-3162

skipif mysql # not compatible
query I rowsort label-3627
SELECT + 22 + + COUNT ( * ) + + 49 * - 65 AS col2
----
-3162

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

skipif mysql # not compatible
query I rowsort label-3628
SELECT - 28 / + COUNT ( * )
----
-28

query I rowsort
SELECT ( + - 21 ) * - COALESCE ( 2, + 6, + 1 * + 64 ) + 4
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-3630
SELECT 30 DIV - 33 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3630
SELECT 30 / - 33 AS col0
----
0

query I rowsort
SELECT 48 - - 25
----
73

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

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

query I rowsort
SELECT + ( - 60 ) - - ( + + 21 )
----
-39

query I rowsort
SELECT ALL - ( 85 ) col1
----
-85

query I rowsort
SELECT 68 * + - 53 + - 41
----
-3645

query II rowsort
SELECT 71 * 59 + + + 14 AS col2, - 60
----
4203
-60

query I rowsort
SELECT + CASE 80 WHEN - - 74 THEN - 82 END * + - ( + 92 ) - - 34 + - 37 col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3638
SELECT DISTINCT - 23 * ( + COUNT( * ) ) DIV + 19
----
-1

skipif mysql # not compatible
query I rowsort label-3638
SELECT DISTINCT - 23 * ( + COUNT ( * ) ) / + 19
----
-1

query I rowsort
SELECT 19 + 5
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3640
SELECT DISTINCT SUM( DISTINCT + 75 ) AS col0
----
75

skipif mysql # not compatible
query I rowsort label-3640
SELECT DISTINCT SUM ( DISTINCT + 75 ) AS col0
----
75

query II rowsort
SELECT ALL + 53 AS col1, + 26
----
53
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3642
SELECT DISTINCT + MIN( 27 ) * - 61 + + 12 - + 71
----
-1706

skipif mysql # not compatible
query I rowsort label-3642
SELECT DISTINCT + MIN ( 27 ) * - 61 + + 12 - + 71
----
-1706

onlyif mysql # aggregate syntax: 
query I rowsort label-3643
SELECT + COUNT( * ) + + - 82 + + - 33 * + + 30 + 83 AS col2
----
-988

skipif mysql # not compatible
query I rowsort label-3643
SELECT + COUNT ( * ) + + - 82 + + - 33 * + + 30 + 83 AS col2
----
-988

query II rowsort
SELECT ALL - 29 AS col2, + 69 + + + 99 * 50
----
-29
5019

query I rowsort
SELECT - 44 * - 80
----
3520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3646
SELECT DISTINCT + 30 + - + COUNT( * ) * - 23 + CAST( NULL AS SIGNED ) + + CAST( NULL AS SIGNED ) + - + 41 * - 1 / - + 38 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3646
SELECT DISTINCT + 30 + - + COUNT ( * ) * - 23 + CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER ) + - + 41 * - 1 / - + 38 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3647
SELECT ALL - 72 + - 38 + + + COUNT( * ) AS col2
----
-109

skipif mysql # not compatible
query I rowsort label-3647
SELECT ALL - 72 + - 38 + + + COUNT ( * ) AS col2
----
-109

onlyif mysql # aggregate syntax: 
query II rowsort label-3648
SELECT - 1 * - 74 + - COUNT( * ), + 6 * + 95 * 54 * - COUNT( * ) col0
----
73
-30780

skipif mysql # not compatible
query II rowsort label-3648
SELECT - 1 * - 74 + - COUNT ( * ), + 6 * + 95 * 54 * - COUNT ( * ) col0
----
73
-30780

onlyif mysql # DIV for integer division: 
query I rowsort label-3649
SELECT - 10 + - - 69 DIV - ( - 86 )
----
-10

skipif mysql # not compatible
query I rowsort label-3649
SELECT - 10 + - - 69 / - ( - 86 )
----
-10

query I rowsort
SELECT 79 + 73 - - 83 col1
----
235

onlyif mysql # aggregate syntax: 
query I rowsort label-3651
SELECT ALL 59 + - NULLIF ( 4, + + COALESCE ( + - 40, + - MIN( - 11 ) ) * + - 41 ) + + + 53 * + - 40 AS col0
----
-2065

skipif mysql # not compatible
query I rowsort label-3651
SELECT ALL 59 + - NULLIF ( 4, + + COALESCE ( + - 40, + - MIN ( - 11 ) ) * + - 41 ) + + + 53 * + - 40 AS col0
----
-2065

query II rowsort
SELECT - 40 col1, + 29
----
-40
29

query II rowsort
SELECT ALL 41, 86 col1
----
41
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3654
SELECT DISTINCT + 96 / + CASE - 12 WHEN - - ( + COUNT( * ) ) THEN ( ( + 96 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3654
SELECT DISTINCT + 96 / + CASE - 12 WHEN - - ( + COUNT ( * ) ) THEN ( ( + 96 ) ) END
----
NULL

query I rowsort
SELECT NULLIF ( - 11, - 86 ) * 41 AS col0
----
-451

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3656
SELECT SUM( + 27 ) + 12 + - 19, 14 + - 99 + - 38 * + + CASE COALESCE ( 92, 71 * + - 58 + - MIN( DISTINCT + COALESCE ( - 74, + 80 + CAST( - 27 AS SIGNED ) ) ) - + SUM( 66 ) * - - 71 * - 95 + - + 59 + + - 48 * - 35 ) WHEN + ( - MIN( 55 ) ) * - 67 + 50 THEN NULL ELSE - 83 END col1
----
20
3069

skipif mysql # not compatible
query II rowsort label-3656
SELECT SUM ( + 27 ) + 12 + - 19, 14 + - 99 + - 38 * + + CASE COALESCE ( 92, 71 * + - 58 + - MIN ( DISTINCT + COALESCE ( - 74, + 80 + CAST ( - 27 AS INTEGER ) ) ) - + SUM ( 66 ) * - - 71 * - 95 + - + 59 + + - 48 * - 35 ) WHEN + ( - MIN ( 55 ) ) * - 67 + 50 THEN NULL ELSE - 83 END col1
----
20
3069

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3657
SELECT 95 + + ( + COUNT( * ) ) * - 89 * 26 DIV + + 52 AS col1, + 56 col0
----
51
56

skipif mysql # not compatible
query II rowsort label-3657
SELECT 95 + + ( + COUNT ( * ) ) * - 89 * 26 / + + 52 AS col1, + 56 col0
----
51
56

onlyif mysql # aggregate syntax: 
query I rowsort label-3658
SELECT COUNT( * ) * - 7 * - - 10
----
-70

skipif mysql # not compatible
query I rowsort label-3658
SELECT COUNT ( * ) * - 7 * - - 10
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-3659
SELECT DISTINCT AVG ( DISTINCT + 53 ) * - COALESCE ( - - CASE - 98 WHEN - COUNT( * ) THEN COUNT( + 2 ) ELSE NULL END, 76 * - 48 + + 85 * + 71 - + - 1 * CASE 17 WHEN - - 52 + - 24 THEN 65 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3659
SELECT DISTINCT AVG ( DISTINCT + 53 ) * - COALESCE ( - - CASE - 98 WHEN - COUNT ( * ) THEN COUNT ( + 2 ) ELSE NULL END, 76 * - 48 + + 85 * + 71 - + - 1 * CASE 17 WHEN - - 52 + - 24 THEN 65 END )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3660
SELECT 15 DIV + 60 * + 99 + + 63 AS col2
----
63

skipif mysql # not compatible
query I rowsort label-3660
SELECT 15 / + 60 * + 99 + + 63 AS col2
----
63

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

skipif mysql # not compatible
query I rowsort label-3661
SELECT 79 * - 92 - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3662
SELECT COALESCE ( + 13, - 93 - + ( + SUM( 84 ) ) ) * + 42
----
546

skipif mysql # not compatible
query I rowsort label-3662
SELECT COALESCE ( + 13, - 93 - + ( + SUM ( 84 ) ) ) * + 42
----
546

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

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

query I rowsort
SELECT - 56 * - - ( - 11 ) + - 0 * + 32 * ( - ( - 7 ) ) * - - 37 AS col2
----
616

query II rowsort
SELECT ALL - 85, + 56 AS col0
----
-85
56

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3667
SELECT 30 + + - COUNT( 60 ) DIV - COUNT( * ) AS col0
----
31

skipif mysql # not compatible
query I rowsort label-3667
SELECT 30 + + - COUNT ( 60 ) / - COUNT ( * ) AS col0
----
31

query I rowsort
SELECT - 93 * - + 66 + + 44
----
6182

onlyif mysql # DIV for integer division: 
query I rowsort label-3669
SELECT 53 DIV - + 71 * + + 5 * + 12 * - 68 + 14 AS col2
----
14

skipif mysql # not compatible
query I rowsort label-3669
SELECT 53 / - + 71 * + + 5 * + 12 * - 68 + 14 AS col2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3670
SELECT ( - 91 ) * - + COUNT( * ) + COUNT( * )
----
92

skipif mysql # not compatible
query I rowsort label-3670
SELECT ( - 91 ) * - + COUNT ( * ) + COUNT ( * )
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3671
SELECT - 16 + + - COUNT( * ) + + 15
----
-2

skipif mysql # not compatible
query I rowsort label-3671
SELECT - 16 + + - COUNT ( * ) + + 15
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3672
SELECT ALL - CAST( + 42 AS SIGNED ) * 13 - + 71 * - 84 + + 32
----
5450

skipif mysql # not compatible
query I rowsort label-3672
SELECT ALL - CAST ( + 42 AS INTEGER ) * 13 - + 71 * - 84 + + 32
----
5450

query II rowsort
SELECT DISTINCT - - 57 AS col1, - ( - 70 ) AS col1
----
57
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3674
SELECT ALL - COUNT( * ) + 96 * + 5 AS col1
----
479

skipif mysql # not compatible
query I rowsort label-3674
SELECT ALL - COUNT ( * ) + 96 * + 5 AS col1
----
479

query I rowsort
SELECT ALL + - 64 + + + 93 + 49 AS col1
----
78

query I rowsort
SELECT ALL + 45 + + 66 AS col1
----
111

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3677
SELECT 42 + - 29 + 18 DIV COUNT( ALL 5 ) * - COALESCE ( + - 57, - 82 )
----
1039

skipif mysql # not compatible
query I rowsort label-3677
SELECT 42 + - 29 + 18 / COUNT ( ALL 5 ) * - COALESCE ( + - 57, - 82 )
----
1039

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3678
SELECT + NULLIF ( + - COUNT( * ), - + 96 ) * - CAST( NULL AS SIGNED ) + - + COUNT( ALL + 89 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3678
SELECT + NULLIF ( + - COUNT ( * ), - + 96 ) * - CAST ( NULL AS INTEGER ) + - + COUNT ( ALL + 89 )
----
NULL

query I rowsort
SELECT ALL 2 + + + 22 AS col0
----
24

query II rowsort
SELECT - 6, + 65 + + 63 * 70 - + + 51 AS col0
----
-6
4424

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3681
SELECT 47, CASE + + 72 WHEN CASE - + 17 WHEN + - 11 THEN + + 1 * 95 WHEN - ( + + 92 ) - SUM( + + CASE 16 WHEN 73 THEN NULL ELSE 26 + + 77 END ) THEN + 17 ELSE - + 32 END * - + 15 + 42 + - COUNT( * ) THEN + 11 WHEN - 3 * + - 96 * - - CAST( + + COUNT( * ) AS SIGNED ) + + COUNT( * ) THEN 98 + - 27 * 60 END + - CAST( NULL AS SIGNED ) AS col2
----
47
NULL

skipif mysql # not compatible
query II rowsort label-3681
SELECT 47, CASE + + 72 WHEN CASE - + 17 WHEN + - 11 THEN + + 1 * 95 WHEN - ( + + 92 ) - SUM ( + + CASE 16 WHEN 73 THEN NULL ELSE 26 + + 77 END ) THEN + 17 ELSE - + 32 END * - + 15 + 42 + - COUNT ( * ) THEN + 11 WHEN - 3 * + - 96 * - - CAST ( + + COUNT ( * ) AS INTEGER ) + + COUNT ( * ) THEN 98 + - 27 * 60 END + - CAST ( NULL AS INTEGER ) AS col2
----
47
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3682
SELECT COALESCE ( - 61, + COUNT( * ) * 29 + - COUNT( * ) ) + + 45 * - 6 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3682
SELECT COALESCE ( - 61, + COUNT ( * ) * 29 + - COUNT ( * ) ) + + 45 * - 6 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + + 47 + 77 AS col1
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-3684
SELECT ALL + SUM( - 18 ) - COUNT( * ) + - 9 + + 12 * + 94 AS col1
----
1100

skipif mysql # not compatible
query I rowsort label-3684
SELECT ALL + SUM ( - 18 ) - COUNT ( * ) + - 9 + + 12 * + 94 AS col1
----
1100

query II rowsort
SELECT 5 + - + 80 + + 50 + - - ( - - 92 ) * 46 * - 42, 30 AS col1
----
-177769
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3686
SELECT DISTINCT + COUNT( * ) - MAX( + 48 ) AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-3686
SELECT DISTINCT + COUNT ( * ) - MAX ( + 48 ) AS col0
----
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-3687
SELECT ALL COALESCE ( + - 79, - 74 ) AS col1, 39 + - - COUNT( * )
----
-79
40

skipif mysql # not compatible
query II rowsort label-3687
SELECT ALL COALESCE ( + - 79, - 74 ) AS col1, 39 + - - COUNT ( * )
----
-79
40

onlyif mysql # DIV for integer division: 
query II rowsort label-3688
SELECT DISTINCT CASE + 6 WHEN 99 THEN + 53 * 88 ELSE + - 64 DIV 33 END AS col2, 60 - + 38 - + 92 AS col0
----
-1
-70

skipif mysql # not compatible
query II rowsort label-3688
SELECT DISTINCT CASE + 6 WHEN 99 THEN + 53 * 88 ELSE + - 64 / 33 END AS col2, 60 - + 38 - + 92 AS col0
----
-1
-70

query I rowsort
SELECT ALL + 92 * 63
----
5796

query I rowsort
SELECT 89 * 89
----
7921

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

skipif mysql # not compatible
query I rowsort label-3691
SELECT COUNT ( * ) * - COUNT ( * ) * - - CAST ( ( - 78 ) AS INTEGER )
----
78

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3693
SELECT + 5 + + 89 + 99 / 19 * - CASE - 46 WHEN + - 34 * 16 THEN - 63 - 13 + + ( + COUNT( * ) ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3693
SELECT + 5 + + 89 + 99 / 19 * - CASE - 46 WHEN + - 34 * 16 THEN - 63 - 13 + + ( + COUNT ( * ) ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3694
SELECT ALL MIN( ALL 82 ) AS col0, 92 * - - CASE + 80 WHEN + COALESCE ( 25, 25 ) THEN NULL WHEN + - 18 * - CAST( - - 11 AS SIGNED ) THEN - COUNT( * ) ELSE NULL END + + 24
----
82
NULL

skipif mysql # not compatible
query II rowsort label-3694
SELECT ALL MIN ( ALL 82 ) AS col0, 92 * - - CASE + 80 WHEN + COALESCE ( 25, 25 ) THEN NULL WHEN + - 18 * - CAST ( - - 11 AS INTEGER ) THEN - COUNT ( * ) ELSE NULL END + + 24
----
82
NULL

query I rowsort
SELECT DISTINCT 45 * 23 col2
----
1035

query I rowsort
SELECT NULLIF ( + + 69, - 14 )
----
69

query I rowsort
SELECT NULLIF ( + 18, - 68 )
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-3698
SELECT + 4 DIV + 23 - 96 col0
----
-96

skipif mysql # not compatible
query I rowsort label-3698
SELECT + 4 / + 23 - 96 col0
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-3699
SELECT + 14 * - 36 - + 33 + - 77 + 22 DIV - - 88 AS col1
----
-614

skipif mysql # not compatible
query I rowsort label-3699
SELECT + 14 * - 36 - + 33 + - 77 + 22 / - - 88 AS col1
----
-614

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

skipif mysql # not compatible
query I rowsort label-3700
SELECT ALL + 37 * - + COUNT ( * ) * 38 * - - 7 + CAST ( NULL AS INTEGER ) + - + 16 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3701
SELECT - - 51 + + - 3 AS col1, 10 DIV - - 78 + 78 + + COUNT( * ) + COUNT( * ) AS col1
----
48
80

skipif mysql # not compatible
query II rowsort label-3701
SELECT - - 51 + + - 3 AS col1, 10 / - - 78 + 78 + + COUNT ( * ) + COUNT ( * ) AS col1
----
48
80

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3703
SELECT + COALESCE ( + - 15, + COUNT( * ) * + 44 + + 6 ) * + ( + 15 ) * COUNT( * ) * - 57 + + 26 * 43 + - COUNT( * ) + + 89 + + 81 * - COALESCE ( COUNT( + 74 ), - MIN( DISTINCT + 5 ) ) + + CAST( - - 10 AS SIGNED )
----
13960

skipif mysql # not compatible
query I rowsort label-3703
SELECT + COALESCE ( + - 15, + COUNT ( * ) * + 44 + + 6 ) * + ( + 15 ) * COUNT ( * ) * - 57 + + 26 * 43 + - COUNT ( * ) + + 89 + + 81 * - COALESCE ( COUNT ( + 74 ), - MIN ( DISTINCT + 5 ) ) + + CAST ( - - 10 AS INTEGER )
----
13960

query I rowsort
SELECT ALL 12 * - 59 + + 44
----
-664

query I rowsort
SELECT ALL 37 * 7 + + 15 AS col2
----
274

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

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

query I rowsort
SELECT + 17 + - 92 AS col0
----
-75

query II rowsort
SELECT + + 24 * + 75 AS col0, - 13 * - 54 + + 55 AS col1
----
1800
757

onlyif mysql # DIV for integer division: 
query I rowsort label-3709
SELECT ALL + 13 DIV 32 + + + 5
----
5

skipif mysql # not compatible
query I rowsort label-3709
SELECT ALL + 13 / 32 + + + 5
----
5

query II rowsort
SELECT + ( 84 ), - 65 AS col0
----
84
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3711
SELECT - COUNT( * ) * - - ( COUNT( * ) ) DIV 44 - - - 99 + 39
----
-60

skipif mysql # not compatible
query I rowsort label-3711
SELECT - COUNT ( * ) * - - ( COUNT ( * ) ) / 44 - - - 99 + 39
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3712
SELECT DISTINCT CASE - 65 WHEN - MIN( DISTINCT - + 88 ) / 39 * - - CAST( NULL AS SIGNED ) + - COUNT( 35 ) + + - CAST( COUNT( * ) AS DECIMAL ) + - 24 THEN CAST( 57 AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3712
SELECT DISTINCT CASE - 65 WHEN - MIN ( DISTINCT - + 88 ) / 39 * - - CAST ( NULL AS INTEGER ) + - COUNT ( 35 ) + + - CAST ( COUNT ( * ) AS REAL ) + - 24 THEN CAST ( 57 AS INTEGER ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3713
SELECT + 19 * + CAST( NULL AS SIGNED ) * CASE 88 WHEN 76 / - 10 + 57 + 90 * + 18 + + 36 / - 80 THEN - COUNT( * ) * + 54 + - MIN( ALL 83 ) + - 1 * - + ( + - 64 ) WHEN + + 28 THEN + 24 ELSE + 38 * 59 * - 29 * ( + 71 ) END * + CAST( - - 59 AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3713
SELECT + 19 * + CAST ( NULL AS INTEGER ) * CASE 88 WHEN 76 / - 10 + 57 + 90 * + 18 + + 36 / - 80 THEN - COUNT ( * ) * + 54 + - MIN ( ALL 83 ) + - 1 * - + ( + - 64 ) WHEN + + 28 THEN + 24 ELSE + 38 * 59 * - 29 * ( + 71 ) END * + CAST ( - - 59 AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT + 41 + + 36
----
77

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3717
SELECT - COUNT( * ) * + ( - 65 ) DIV 14 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-3717
SELECT - COUNT ( * ) * + ( - 65 ) / 14 AS col0
----
4

query I rowsort
SELECT + 23 + 88 * - - ( + 77 ) AS col0
----
6799

onlyif mysql # DIV for integer division: 
query I rowsort label-3719
SELECT + 99 + + 51 + - 28 DIV 87
----
150

skipif mysql # not compatible
query I rowsort label-3719
SELECT + 99 + + 51 + - 28 / 87
----
150

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

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

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

skipif mysql # not compatible
query I rowsort label-3721
SELECT DISTINCT SUM ( 5 )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3722
SELECT DISTINCT - 43 * + + MIN( - 95 )
----
4085

skipif mysql # not compatible
query I rowsort label-3722
SELECT DISTINCT - 43 * + + MIN ( - 95 )
----
4085

query I rowsort
SELECT - 69 + + 3 AS col2
----
-66

query I rowsort
SELECT ALL - 62 * + 14 AS col2
----
-868

query I rowsort
SELECT - 45 + - + 6 + - ( - 75 ) * + 90 col1
----
6699

query I rowsort
SELECT + 57 + + + 90
----
147

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3727
SELECT - CAST( 8 AS SIGNED ) AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-3727
SELECT - CAST ( 8 AS INTEGER ) AS col1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-3728
SELECT - COUNT( * ) + - - 96 + + 18 * - + NULLIF ( - - MIN( ALL + 56 ), - 81 )
----
-913

skipif mysql # not compatible
query I rowsort label-3728
SELECT - COUNT ( * ) + - - 96 + + 18 * - + NULLIF ( - - MIN ( ALL + 56 ), - 81 )
----
-913

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

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3732
SELECT DISTINCT 47 DIV COUNT( * ) + - + 58
----
-11

skipif mysql # not compatible
query I rowsort label-3732
SELECT DISTINCT 47 / COUNT ( * ) + - + 58
----
-11

query I rowsort
SELECT DISTINCT - 3 * - + 32
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-3734
SELECT ALL 97 DIV + + ( - 79 ) + 50 AS col1
----
49

skipif mysql # not compatible
query I rowsort label-3734
SELECT ALL 97 / + + ( - 79 ) + 50 AS col1
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-3735
SELECT ALL + 75 DIV - 83 + - + ( - - ( - 78 ) ) + 32 AS col0
----
110

skipif mysql # not compatible
query I rowsort label-3735
SELECT ALL + 75 / - 83 + - + ( - - ( - 78 ) ) + 32 AS col0
----
110

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3736
SELECT + 1 DIV 34 + 81 + + 96, + COUNT( * ) * + - 52 AS col2
----
177
-52

skipif mysql # not compatible
query II rowsort label-3736
SELECT + 1 / 34 + 81 + + 96, + COUNT ( * ) * + - 52 AS col2
----
177
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-3737
SELECT - - COUNT( 77 ) * 12 + + 21 + - 45 * + 99 + - - 19 + 4, COUNT( * ) AS col0
----
-4399
1

skipif mysql # not compatible
query II rowsort label-3737
SELECT - - COUNT ( 77 ) * 12 + + 21 + - 45 * + 99 + - - 19 + 4, COUNT ( * ) AS col0
----
-4399
1

query I rowsort
SELECT + - 48 * + 95 AS col0
----
-4560

onlyif mysql # DIV for integer division: 
query I rowsort label-3739
SELECT ALL + 61 DIV - 97 + + - 22
----
-22

skipif mysql # not compatible
query I rowsort label-3739
SELECT ALL + 61 / - 97 + + - 22
----
-22

query I rowsort
SELECT - + 79 * - 47 AS col0
----
3713

onlyif mysql # aggregate syntax: 
query I rowsort label-3741
SELECT - CASE + 94 WHEN - 54 THEN + SUM( ALL + 52 ) WHEN + - 73 * 90 THEN NULL ELSE + + 97 END
----
-97

skipif mysql # not compatible
query I rowsort label-3741
SELECT - CASE + 94 WHEN - 54 THEN + SUM ( ALL + 52 ) WHEN + - 73 * 90 THEN NULL ELSE + + 97 END
----
-97

query I rowsort
SELECT DISTINCT 55 * 39 + + 51 + + 73 - - 74 - 5 * - + 54
----
2613

query I rowsort
SELECT ALL + - 7 col0
----
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-3744
SELECT + 52, - 17 * CASE + COALESCE ( 65, + COUNT( * ), - COUNT( * ) ) WHEN + + ( - COUNT( * ) ) * SUM( - 66 ) THEN + 49 + - 94 END AS col1
----
52
NULL

skipif mysql # not compatible
query II rowsort label-3744
SELECT + 52, - 17 * CASE + COALESCE ( 65, + COUNT ( * ), - COUNT ( * ) ) WHEN + + ( - COUNT ( * ) ) * SUM ( - 66 ) THEN + 49 + - 94 END AS col1
----
52
NULL

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

query I rowsort
SELECT - 90 * 70
----
-6300

onlyif mysql # DIV for integer division: 
query I rowsort label-3747
SELECT DISTINCT ( 72 ) * + - 99 + - 29 DIV 95 - + 26 DIV - - 12
----
-7130

skipif mysql # not compatible
query I rowsort label-3747
SELECT DISTINCT ( 72 ) * + - 99 + - 29 / 95 - + 26 / - - 12
----
-7130

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3748
SELECT - CAST( - + ( + COALESCE ( + 60, + CAST( NULL AS SIGNED ) + + + 51 + 64 ) ) AS SIGNED ) AS col0
----
60

skipif mysql # not compatible
query I rowsort label-3748
SELECT - CAST ( - + ( + COALESCE ( + 60, + CAST ( NULL AS INTEGER ) + + + 51 + 64 ) ) AS INTEGER ) AS col0
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3749
SELECT - CAST( + CAST( + AVG ( ( - 38 ) ) AS SIGNED ) AS SIGNED ) AS col1
----
38

skipif mysql # not compatible
query I rowsort label-3749
SELECT - CAST ( + CAST ( + AVG ( ( - 38 ) ) AS INTEGER ) AS INTEGER ) AS col1
----
38

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

skipif mysql # not compatible
query I rowsort label-3750
SELECT ALL 0 / + COUNT ( * )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3751
SELECT COUNT( * ) DIV + 76 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3751
SELECT COUNT ( * ) / + 76 AS col0
----
0

query I rowsort
SELECT 4 * + 54 AS col1
----
216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3753
SELECT COALESCE ( COUNT( * ), COUNT( - 44 ) + - + 35, - 35 ) - - 53 + - - 14 + - 60 * + CAST( NULL AS SIGNED ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3753
SELECT COALESCE ( COUNT ( * ), COUNT ( - 44 ) + - + 35, - 35 ) - - 53 + - - 14 + - 60 * + CAST ( NULL AS INTEGER ) * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3754
SELECT COUNT( * ) DIV + 57
----
0

skipif mysql # not compatible
query I rowsort label-3754
SELECT COUNT ( * ) / + 57
----
0

query I rowsort
SELECT NULLIF ( + - ( + 30 ), + + 99 + 48 * + 27 * - 51 ) - + 63 + - 69 * - + 71 * 36
----
176271

query I rowsort
SELECT DISTINCT 93 + + + 2 AS col2
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3757
SELECT COUNT( * ) * + - 60 * + - 65 AS col0
----
3900

skipif mysql # not compatible
query I rowsort label-3757
SELECT COUNT ( * ) * + - 60 * + - 65 AS col0
----
3900

query I rowsort
SELECT ALL + 85 + + 83 + + - 48 col0
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-3759
SELECT 48 * + - COALESCE ( 62, + + ( ( + - 58 ) ) ) * - + 12 + + COUNT( * )
----
35713

skipif mysql # not compatible
query I rowsort label-3759
SELECT 48 * + - COALESCE ( 62, + + ( ( + - 58 ) ) ) * - + 12 + + COUNT ( * )
----
35713

query I rowsort
SELECT ALL 92 + - - 39 AS col1
----
131

query I rowsort
SELECT + 72 * - - 61 + + 66
----
4458

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3762
SELECT + CAST( + ( + 97 ) AS SIGNED ) col0
----
97

skipif mysql # not compatible
query I rowsort label-3762
SELECT + CAST ( + ( + 97 ) AS INTEGER ) col0
----
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3763
SELECT + - MIN( - + 23 ) DIV + 43 + - 22 + + 61 * + 30 * - - 38 - - + COUNT( + - 80 ) + - - ( 73 ) + + + 57 AS col2, + 54 AS col2
----
69649
54

skipif mysql # not compatible
query II rowsort label-3763
SELECT + - MIN ( - + 23 ) / + 43 + - 22 + + 61 * + 30 * - - 38 - - + COUNT ( + - 80 ) + - - ( 73 ) + + + 57 AS col2, + 54 AS col2
----
69649
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3764
SELECT - CASE - - 38 WHEN + 19 THEN NULL WHEN 72 THEN - 47 WHEN - 47 THEN NULL WHEN CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3764
SELECT - CASE - - 38 WHEN + 19 THEN NULL WHEN 72 THEN - 47 WHEN - 47 THEN NULL WHEN CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT 40 * 68 * - 87 AS col0
----
-236640

onlyif mysql # aggregate syntax: 
query I rowsort label-3766
SELECT - MAX( ALL - 11 ) + + 67 AS col1
----
78

skipif mysql # not compatible
query I rowsort label-3766
SELECT - MAX ( ALL - 11 ) + + 67 AS col1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-3767
SELECT - COALESCE ( - COUNT( * ), + - 62 * + 3 )
----
1

skipif mysql # not compatible
query I rowsort label-3767
SELECT - COALESCE ( - COUNT ( * ), + - 62 * + 3 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3768
SELECT COUNT( * ) * - 86 + - 97 AS col1
----
-183

skipif mysql # not compatible
query I rowsort label-3768
SELECT COUNT ( * ) * - 86 + - 97 AS col1
----
-183

onlyif mysql # DIV for integer division: 
query I rowsort label-3769
SELECT - 79 + + 92 DIV COALESCE ( + - 92, + 61, 66 + - 40 ) col0
----
-80

skipif mysql # not compatible
query I rowsort label-3769
SELECT - 79 + + 92 / COALESCE ( + - 92, + 61, 66 + - 40 ) col0
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-3770
SELECT ALL + SUM( + + 63 ) * + 68 AS col2
----
4284

skipif mysql # not compatible
query I rowsort label-3770
SELECT ALL + SUM ( + + 63 ) * + 68 AS col2
----
4284

onlyif mysql # aggregate syntax: 
query I rowsort label-3771
SELECT - COUNT( * ) * + MIN( + - 0 ) - - + COALESCE ( + 48, 2, + + 25 ) * + 77
----
3696

skipif mysql # not compatible
query I rowsort label-3771
SELECT - COUNT ( * ) * + MIN ( + - 0 ) - - + COALESCE ( + 48, 2, + + 25 ) * + 77
----
3696

onlyif mysql # aggregate syntax: 
query I rowsort label-3772
SELECT 88 * - ( 76 ) / CASE 85 WHEN - COUNT( * ) THEN + 23 ELSE NULL END / 1 * COUNT( * ) + - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3772
SELECT 88 * - ( 76 ) / CASE 85 WHEN - COUNT ( * ) THEN + 23 ELSE NULL END / 1 * COUNT ( * ) + - - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3773
SELECT - ( 0 ) * 88 + + ( 86 ) * + 71 / - + CASE 69 WHEN + 81 + 61 + 94 + - + 86 + + ( - 52 ) + + + COUNT( * ) * + + 70 * - NULLIF ( - 57, CAST( + NULLIF ( - 90, + 6 ) AS SIGNED ) * CAST( + + CASE + 6 WHEN - COUNT( ALL + 6 ) THEN NULL ELSE - 75 + + 89 + + - 64 END AS SIGNED ) + - 88 ) * + 26 * - CAST( NULL AS DECIMAL ) THEN CASE 69 WHEN 46 THEN CAST( + 82 AS SIGNED ) END / - SUM( ALL 8 ) END / + 15 + 57 / + 20 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3773
SELECT - ( 0 ) * 88 + + ( 86 ) * + 71 / - + CASE 69 WHEN + 81 + 61 + 94 + - + 86 + + ( - 52 ) + + + COUNT ( * ) * + + 70 * - NULLIF ( - 57, CAST ( + NULLIF ( - 90, + 6 ) AS INTEGER ) * CAST ( + + CASE + 6 WHEN - COUNT ( ALL + 6 ) THEN NULL ELSE - 75 + + 89 + + - 64 END AS INTEGER ) + - 88 ) * + 26 * - CAST ( NULL AS REAL ) THEN CASE 69 WHEN 46 THEN CAST ( + 82 AS INTEGER ) END / - SUM ( ALL 8 ) END / + 15 + 57 / + 20 AS col2
----
NULL

query I rowsort
SELECT ALL - ( 48 ) AS col1
----
-48

query I rowsort
SELECT 98 + 48 - + 59
----
87

query I rowsort
SELECT 8 + 74
----
82

query I rowsort
SELECT 14 * - ( - ( - - 80 ) ) * 30 AS col2
----
33600

onlyif mysql # aggregate syntax: 
query I rowsort label-3778
SELECT ALL NULLIF ( COUNT( * ), + ( + 82 ) * - - 56 + - 52 + 86 ) + - 59
----
-58

skipif mysql # not compatible
query I rowsort label-3778
SELECT ALL NULLIF ( COUNT ( * ), + ( + 82 ) * - - 56 + - 52 + 86 ) + - 59
----
-58

query I rowsort
SELECT 39 * + + 86 AS col1
----
3354

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3780
SELECT 43 + - CAST( + 65 AS SIGNED ) AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-3780
SELECT 43 + - CAST ( + 65 AS INTEGER ) AS col2
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3781
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - 67 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3781
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - 67 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3782
SELECT DISTINCT 87 + + 73 DIV COUNT( DISTINCT + + 66 ) + 60 + + 18 + - COUNT( * ) DIV + 31
----
238

skipif mysql # not compatible
query I rowsort label-3782
SELECT DISTINCT 87 + + 73 / COUNT ( DISTINCT + + 66 ) + 60 + + 18 + - COUNT ( * ) / + 31
----
238

query I rowsort
SELECT DISTINCT 45 * 6 AS col0
----
270

query I rowsort
SELECT 39 + - 85 AS col2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-3785
SELECT ( + 19 ) * - 40 * - CASE 40 WHEN - + 4 + 18 THEN NULL WHEN + 13 * + 78 THEN + COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3785
SELECT ( + 19 ) * - 40 * - CASE 40 WHEN - + 4 + 18 THEN NULL WHEN + 13 * + 78 THEN + COUNT ( * ) END AS col0
----
NULL

query I rowsort
SELECT ALL 80 * - 20 * - + 55 AS col0
----
88000

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3787
SELECT ALL + CAST( NULL AS SIGNED ) + - 78 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3787
SELECT ALL + CAST ( NULL AS INTEGER ) + - 78 col2
----
NULL

query I rowsort
SELECT DISTINCT - CASE - 4 WHEN - AVG ( DISTINCT 24 ) THEN 16 WHEN - ( - COALESCE ( + 96, + 33 / 24, - - 56 ) ) THEN NULL END + + 10 + - ( 77 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3789
SELECT 64 + - SUM( ALL + 42 ) DIV + + 55 AS col1
----
64

skipif mysql # not compatible
query I rowsort label-3789
SELECT 64 + - SUM ( ALL + 42 ) / + + 55 AS col1
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3790
SELECT ALL - 8 * COUNT( * ) AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-3790
SELECT ALL - 8 * COUNT ( * ) AS col1
----
-8

query I rowsort
SELECT 85 + 15 * + + 29
----
520

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3792
SELECT DISTINCT + + CAST( + - AVG ( ALL + 92 ) AS SIGNED ) DIV 56 * + + 73
----
-73

skipif mysql # not compatible
query I rowsort label-3792
SELECT DISTINCT + + CAST ( + - AVG ( ALL + 92 ) AS INTEGER ) / 56 * + + 73
----
-73

query I rowsort
SELECT ALL 39 - + 82 AS col2
----
-43

query I rowsort
SELECT 34 * + 19
----
646

onlyif mysql # aggregate syntax: 
query II rowsort label-3795
SELECT + 81 AS col1, 74 + + + CASE - + 22 WHEN - MIN( ALL - - 45 ) / + ( - 24 ) - + 71 + - 23 THEN - 14 * - ( + 12 ) WHEN + + COUNT( * ) * + 51 + - ( - 34 ) THEN NULL ELSE NULL END / + + MAX( + 31 ) col1
----
81
NULL

skipif mysql # not compatible
query II rowsort label-3795
SELECT + 81 AS col1, 74 + + + CASE - + 22 WHEN - MIN ( ALL - - 45 ) / + ( - 24 ) - + 71 + - 23 THEN - 14 * - ( + 12 ) WHEN + + COUNT ( * ) * + 51 + - ( - 34 ) THEN NULL ELSE NULL END / + + MAX ( + 31 ) col1
----
81
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3796
SELECT 3 * - + 98 + - COUNT( * )
----
-295

skipif mysql # not compatible
query I rowsort label-3796
SELECT 3 * - + 98 + - COUNT ( * )
----
-295

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3797
SELECT ALL + + 38 * + COUNT( * ) DIV - 97 * + - 40
----
0

skipif mysql # not compatible
query I rowsort label-3797
SELECT ALL + + 38 * + COUNT ( * ) / - 97 * + - 40
----
0

query I rowsort
SELECT + ( + 68 ) * - 15 + - 1 AS col1
----
-1021

onlyif mysql # aggregate syntax: 
query I rowsort label-3799
SELECT ALL - - ( - - COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3799
SELECT ALL - - ( - - COUNT ( * ) ) AS col2
----
1

query I rowsort
SELECT ALL - ( + NULLIF ( + 35, 99 ) ) AS col1
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3801
SELECT ( - 4 ) * CASE WHEN NOT NULL NOT BETWEEN NULLIF ( ( + 3 ), + 68 ) AND + 76 + - 6 * + - 82 + - + 1 THEN NULL ELSE + + CAST( NULL AS SIGNED ) END + + 76
----
NULL

skipif mysql # not compatible
query I rowsort label-3801
SELECT ( - 4 ) * CASE WHEN NOT NULL NOT BETWEEN NULLIF ( ( + 3 ), + 68 ) AND + 76 + - 6 * + - 82 + - + 1 THEN NULL ELSE + + CAST ( NULL AS INTEGER ) END + + 76
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3802
SELECT ALL CASE + COALESCE ( - 90, CAST( 41 AS SIGNED ), - 44 * - COALESCE ( - 17, - 27 + + 56, 12 - - + 53, + 64 / - - COALESCE ( + 52, + CAST( + 76 AS SIGNED ) * - ( - 2 ) + ( - 91 ) * - + 92 ) * + 31 ) * + 49 * + + 11 + - + ( 91 ) + + 32 + + + 81 + - 95 + 53 * + 28 ) WHEN 34 + - 50 * 55 THEN 82 WHEN - COUNT( * ) + + MAX( 82 ) * 24 THEN NULL ELSE NULL END * - 67
----
NULL

skipif mysql # not compatible
query I rowsort label-3802
SELECT ALL CASE + COALESCE ( - 90, CAST ( 41 AS INTEGER ), - 44 * - COALESCE ( - 17, - 27 + + 56, 12 - - + 53, + 64 / - - COALESCE ( + 52, + CAST ( + 76 AS INTEGER ) * - ( - 2 ) + ( - 91 ) * - + 92 ) * + 31 ) * + 49 * + + 11 + - + ( 91 ) + + 32 + + + 81 + - 95 + 53 * + 28 ) WHEN 34 + - 50 * 55 THEN 82 WHEN - COUNT ( * ) + + MAX ( 82 ) * 24 THEN NULL ELSE NULL END * - 67
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3803
SELECT DISTINCT + COUNT( * ) AS col2, 11 AS col2
----
1
11

skipif mysql # not compatible
query II rowsort label-3803
SELECT DISTINCT + COUNT ( * ) AS col2, 11 AS col2
----
1
11

query I rowsort
SELECT + + NULLIF ( - 58, 88 * + 71 ) + 16 AS col0
----
-42

query I rowsort
SELECT + 83 * + 52
----
4316

onlyif mysql # DIV for integer division: 
query I rowsort label-3806
SELECT - 0 DIV + COALESCE ( - 65, + 85 ) * - 66 * + 26 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3806
SELECT - 0 / + COALESCE ( - 65, + 85 ) * - 66 * + 26 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3807
SELECT DISTINCT - 44 * + 75 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3807
SELECT DISTINCT - 44 * + 75 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3808
SELECT DISTINCT + MAX( 78 )
----
78

skipif mysql # not compatible
query I rowsort label-3808
SELECT DISTINCT + MAX ( 78 )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-3809
SELECT ALL + CASE - + 59 WHEN - 92 * COUNT( * ) * 30 / + 21 + - + ( ( COUNT( * ) ) ) + + 69 + 3 THEN 47 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3809
SELECT ALL + CASE - + 59 WHEN - 92 * COUNT ( * ) * 30 / + 21 + - + ( ( COUNT ( * ) ) ) + + 69 + 3 THEN 47 END AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 75 + + + 9 * - - 33 + + + 57 + + 62 * + 91 * 40 AS col1
----
225959

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3811
SELECT + NULLIF ( - ( 25 ), - 71 * AVG ( + 40 ) + + 72 + + 37 + - - 33 * 84 * 71 / + MAX( ALL - - CAST( NULL AS DECIMAL ) ) * NULLIF ( - 61, - 75 ) + - ( - ( - 91 ) ) ), CAST( NULL AS SIGNED ) * + 60 * 61 AS col1
----
-25
NULL

skipif mysql # not compatible
query II rowsort label-3811
SELECT + NULLIF ( - ( 25 ), - 71 * AVG ( + 40 ) + + 72 + + 37 + - - 33 * 84 * 71 / + MAX ( ALL - - CAST ( NULL AS REAL ) ) * NULLIF ( - 61, - 75 ) + - ( - ( - 91 ) ) ), CAST ( NULL AS INTEGER ) * + 60 * 61 AS col1
----
-25
NULL

query I rowsort
SELECT ALL + 3 + + 52 + - 92
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3813
SELECT - 17 * - - 73 * + CAST( NULL AS SIGNED ) * - 45 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3813
SELECT - 17 * - - 73 * + CAST ( NULL AS INTEGER ) * - 45 AS col2
----
NULL

query II rowsort
SELECT - 1 AS col1, 34 + 29 AS col0
----
-1
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3815
SELECT - 34 DIV + COUNT( * ) AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-3815
SELECT - 34 / + COUNT ( * ) AS col2
----
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-3816
SELECT - 93 - + + 53 - + + 96 DIV - CASE 16 WHEN + + 18 THEN 86 ELSE 55 + + + 26 * + 54 + + 46 END
----
-146

skipif mysql # not compatible
query I rowsort label-3816
SELECT - 93 - + + 53 - + + 96 / - CASE 16 WHEN + + 18 THEN 86 ELSE 55 + + + 26 * + 54 + + 46 END
----
-146

query I rowsort
SELECT ALL - 58 + 37 + + + 75
----
54

query II rowsort
SELECT ALL NULLIF ( + 33, 95 + + 74 ) AS col2, - 22 + - 7
----
33
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-3819
SELECT + ( 28 ) - + + COUNT( * ) + - ( - - 41 ) AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-3819
SELECT + ( 28 ) - + + COUNT ( * ) + - ( - - 41 ) AS col2
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3820
SELECT - 14, - NULLIF ( - COALESCE ( + 97, COUNT( * ), - COUNT( * ) * + - CAST( - 77 AS SIGNED ) ), 71 / - + 70 ) AS col2
----
-14
97

skipif mysql # not compatible
query II rowsort label-3820
SELECT - 14, - NULLIF ( - COALESCE ( + 97, COUNT ( * ), - COUNT ( * ) * + - CAST ( - 77 AS INTEGER ) ), 71 / - + 70 ) AS col2
----
-14
97

query I rowsort
SELECT ALL + 97 * + ( - 92 ) col0
----
-8924

query II rowsort
SELECT 84 AS col2, - COALESCE ( + - 26, - 63 ) + 48 AS col2
----
84
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3823
SELECT DISTINCT SUM( - 20 ) * - 18 AS col2
----
360

skipif mysql # not compatible
query I rowsort label-3823
SELECT DISTINCT SUM ( - 20 ) * - 18 AS col2
----
360

onlyif mysql # aggregate syntax: 
query II rowsort label-3824
SELECT DISTINCT + 3 * - - ( - MIN( - - 63 ) ), 72 * + 90 AS col0
----
-189
6480

skipif mysql # not compatible
query II rowsort label-3824
SELECT DISTINCT + 3 * - - ( - MIN ( - - 63 ) ), 72 * + 90 AS col0
----
-189
6480

onlyif mysql # aggregate syntax: 
query II rowsort label-3825
SELECT ALL + 38 AS col2, + COUNT( * ) * - + COUNT( ALL 59 ) * + + COUNT( * )
----
38
-1

skipif mysql # not compatible
query II rowsort label-3825
SELECT ALL + 38 AS col2, + COUNT ( * ) * - + COUNT ( ALL 59 ) * + + COUNT ( * )
----
38
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3826
SELECT + + 90 + - - 47 AS col1, COUNT( * )
----
137
1

skipif mysql # not compatible
query II rowsort label-3826
SELECT + + 90 + - - 47 AS col1, COUNT ( * )
----
137
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3827
SELECT + CAST( NULL AS SIGNED ) AS col1, CASE + COUNT( * ) WHEN - - 5 THEN + - 71 * + 32 / - 55 END / + 90 * - - 55 * - + NULLIF ( + - SUM( ALL + 39 ), - 42 )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3827
SELECT + CAST ( NULL AS INTEGER ) AS col1, CASE + COUNT ( * ) WHEN - - 5 THEN + - 71 * + 32 / - 55 END / + 90 * - - 55 * - + NULLIF ( + - SUM ( ALL + 39 ), - 42 )
----
NULL
NULL

query II rowsort
SELECT ALL + + 76 col1, + 66
----
76
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3829
SELECT MIN( - + 7 )
----
-7

skipif mysql # not compatible
query I rowsort label-3829
SELECT MIN ( - + 7 )
----
-7

query II rowsort
SELECT 8 AS col2, 57 AS col0
----
8
57

onlyif mysql # aggregate syntax: 
query I rowsort label-3831
SELECT - 35 * + + 93 + + COUNT( * )
----
-3254

skipif mysql # not compatible
query I rowsort label-3831
SELECT - 35 * + + 93 + + COUNT ( * )
----
-3254

onlyif mysql # aggregate syntax: 
query I rowsort label-3832
SELECT ALL + 17 * MAX( + + 54 ) + + 51
----
969

skipif mysql # not compatible
query I rowsort label-3832
SELECT ALL + 17 * MAX ( + + 54 ) + + 51
----
969

onlyif mysql # DIV for integer division: 
query I rowsort label-3833
SELECT 34 DIV 13 * + 76 + - - 49 AS col1
----
201

skipif mysql # not compatible
query I rowsort label-3833
SELECT 34 / 13 * + 76 + - - 49 AS col1
----
201

onlyif mysql # aggregate syntax: 
query I rowsort label-3834
SELECT 7 * 48 + - COUNT( * ) AS col1
----
335

skipif mysql # not compatible
query I rowsort label-3834
SELECT 7 * 48 + - COUNT ( * ) AS col1
----
335

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3835
SELECT ALL - MAX( DISTINCT - 81 ) * + MAX( - - 8 ) + - + CAST( NULL AS DECIMAL ) + + 43
----
NULL

skipif mysql # not compatible
query I rowsort label-3835
SELECT ALL - MAX ( DISTINCT - 81 ) * + MAX ( - - 8 ) + - + CAST ( NULL AS REAL ) + + 43
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3836
SELECT + SUM( DISTINCT ( + 54 ) ) + - - 58 + + 18 AS col0
----
130

skipif mysql # not compatible
query I rowsort label-3836
SELECT + SUM ( DISTINCT ( + 54 ) ) + - - 58 + + 18 AS col0
----
130

query I rowsort
SELECT - ( - NULLIF ( + 16, + - 99 * - 33 + + 53 ) ) * + 63 * - - 44 AS col1
----
44352

onlyif mysql # aggregate syntax: 
query I rowsort label-3838
SELECT + 69 + + 73 + + - COUNT( * ) * - 7 - - 96 + 46 col0
----
291

skipif mysql # not compatible
query I rowsort label-3838
SELECT + 69 + + 73 + + - COUNT ( * ) * - 7 - - 96 + 46 col0
----
291

query I rowsort
SELECT DISTINCT 34 * + 59 AS col2
----
2006

query I rowsort
SELECT DISTINCT 31 * + - 91 - - + 27 * + + 90
----
-391

onlyif mysql # aggregate syntax: 
query II rowsort label-3841
SELECT DISTINCT COUNT( + 50 ), 7 AS col1
----
1
7

skipif mysql # not compatible
query II rowsort label-3841
SELECT DISTINCT COUNT ( + 50 ), 7 AS col1
----
1
7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3842
SELECT ALL CAST( + 40 AS SIGNED ) AS col0, 84 AS col2
----
40
84

skipif mysql # not compatible
query II rowsort label-3842
SELECT ALL CAST ( + 40 AS INTEGER ) AS col0, 84 AS col2
----
40
84

query I rowsort
SELECT - 33 * + 7 col2
----
-231

query I rowsort
SELECT + + ( - - ( - 52 ) ) * + 23 AS col0
----
-1196

query I rowsort
SELECT - + 95 + 11 * + 5 col2
----
-40

query I rowsort
SELECT - 61 - 41
----
-102

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3847
SELECT - - COUNT( * ) DIV + - 81 * 7 * + 97 * + 51
----
0

skipif mysql # not compatible
query I rowsort label-3847
SELECT - - COUNT ( * ) / + - 81 * 7 * + 97 * + 51
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3848
SELECT - - 20 + + 93 + COUNT( * ) * + 23 col0
----
136

skipif mysql # not compatible
query I rowsort label-3848
SELECT - - 20 + + 93 + COUNT ( * ) * + 23 col0
----
136

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3849
SELECT ALL - COALESCE ( - ( - NULLIF ( + + 7, - + 13 * - - 97 / CAST( + + 21 AS SIGNED ) ) ), - CAST( - 9 AS SIGNED ) + - - 82 ) AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-3849
SELECT ALL - COALESCE ( - ( - NULLIF ( + + 7, - + 13 * - - 97 / CAST ( + + 21 AS INTEGER ) ) ), - CAST ( - 9 AS INTEGER ) + - - 82 ) AS col0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-3850
SELECT - 27 + + COUNT( * ) + + - ( 13 ) * + 47 + + + CASE 45 WHEN 64 THEN + - ( + 79 ) END + + 86 + + 42 * - - 40 + + COUNT( * ) + 58 + + + 96 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3850
SELECT - 27 + + COUNT ( * ) + + - ( 13 ) * + 47 + + + CASE 45 WHEN 64 THEN + - ( + 79 ) END + + 86 + + 42 * - - 40 + + COUNT ( * ) + 58 + + + 96 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + ( - 41 ) * - 86
----
3526

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3852
SELECT DISTINCT + + 4 * + - ( + CAST( - + 39 AS SIGNED ) ) col2
----
156

skipif mysql # not compatible
query I rowsort label-3852
SELECT DISTINCT + + 4 * + - ( + CAST ( - + 39 AS INTEGER ) ) col2
----
156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3853
SELECT DISTINCT + CAST( - + 97 AS SIGNED )
----
-97

skipif mysql # not compatible
query I rowsort label-3853
SELECT DISTINCT + CAST ( - + 97 AS INTEGER )
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3854
SELECT - - 79 + + CAST( + - COUNT( * ) AS SIGNED ) * - + 82 * MAX( DISTINCT + - 51 ) * - 96 + - 72 AS col2
----
401479

skipif mysql # not compatible
query I rowsort label-3854
SELECT - - 79 + + CAST ( + - COUNT ( * ) AS INTEGER ) * - + 82 * MAX ( DISTINCT + - 51 ) * - 96 + - 72 AS col2
----
401479

onlyif mysql # aggregate syntax: 
query I rowsort label-3855
SELECT - CASE + 24 WHEN SUM( + + 32 ) THEN 30 WHEN - + CASE + + 84 WHEN - 75 + - 43 THEN NULL WHEN + CASE + 15 WHEN - - 90 * 90 THEN - MIN( + 62 ) WHEN + 6 * 17 + + 10 THEN NULL END * 0 THEN - 4 ELSE NULL END - ( + COUNT( * ) ) THEN - - 31 + 32 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3855
SELECT - CASE + 24 WHEN SUM ( + + 32 ) THEN 30 WHEN - + CASE + + 84 WHEN - 75 + - 43 THEN NULL WHEN + CASE + 15 WHEN - - 90 * 90 THEN - MIN ( + 62 ) WHEN + 6 * 17 + + 10 THEN NULL END * 0 THEN - 4 ELSE NULL END - ( + COUNT ( * ) ) THEN - - 31 + 32 END
----
NULL

query I rowsort
SELECT - 90 + 71 + 89 * - + 74
----
-6605

query I rowsort
SELECT DISTINCT - 91 + 66 AS col2
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-3858
SELECT DISTINCT + 22 + MIN( ALL - + 24 ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-3858
SELECT DISTINCT + 22 + MIN ( ALL - + 24 ) AS col2
----
-2

query I rowsort
SELECT ALL - + 62 * - 80 * + 81 AS col1
----
401760

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3860
SELECT ALL + 89 + - + COUNT( * ) DIV COUNT( * )
----
88

skipif mysql # not compatible
query I rowsort label-3860
SELECT ALL + 89 + - + COUNT ( * ) / COUNT ( * )
----
88

query I rowsort
SELECT ALL 24 + + + 43 AS col1
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3862
SELECT 43 / - CASE SUM( ALL + + CAST( NULL AS SIGNED ) ) WHEN 6 THEN 5 * 47 + - 29 + - - 65 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3862
SELECT 43 / - CASE SUM ( ALL + + CAST ( NULL AS INTEGER ) ) WHEN 6 THEN 5 * 47 + - 29 + - - 65 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3863
SELECT ALL 35 + + + 32 + + + NULLIF ( + 94, - - ( - MIN( ALL - 1 ) ) ) AS col2
----
161

skipif mysql # not compatible
query I rowsort label-3863
SELECT ALL 35 + + + 32 + + + NULLIF ( + 94, - - ( - MIN ( ALL - 1 ) ) ) AS col2
----
161

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3864
SELECT 14 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3864
SELECT 14 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ( + 79 ) * + + 84 AS col2
----
6636

onlyif mysql # aggregate syntax: 
query I rowsort label-3866
SELECT COUNT( * ) - + 81
----
-80

skipif mysql # not compatible
query I rowsort label-3866
SELECT COUNT ( * ) - + 81
----
-80

query II rowsort
SELECT ALL - 7 AS col1, 79
----
-7
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3868
SELECT DISTINCT - CASE - 72 WHEN - 45 * + + CAST( - 78 AS SIGNED ) THEN COALESCE ( + 18, - - CAST( NULL AS SIGNED ) * 2 + - + 43 ) * 36 * + COUNT( * ) WHEN - 55 THEN + COUNT( * ) DIV - 88 + - - 10 ELSE + NULLIF ( + 3, + 32 ) * - ( + - 5 ) + - COUNT( * ) - ( 35 ) END AS col2
----
21

skipif mysql # not compatible
query I rowsort label-3868
SELECT DISTINCT - CASE - 72 WHEN - 45 * + + CAST ( - 78 AS INTEGER ) THEN COALESCE ( + 18, - - CAST ( NULL AS INTEGER ) * 2 + - + 43 ) * 36 * + COUNT ( * ) WHEN - 55 THEN + COUNT ( * ) / - 88 + - - 10 ELSE + NULLIF ( + 3, + 32 ) * - ( + - 5 ) + - COUNT ( * ) - ( 35 ) END AS col2
----
21

query I rowsort
SELECT ALL 57 - - 81
----
138

query I rowsort
SELECT DISTINCT 16 * + 9 AS col0
----
144

query I rowsort
SELECT 74 + - + 36 col2
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3872
SELECT DISTINCT 63 * + - 25 * + ( 51 ) AS col0, + CAST( - ( + 45 ) AS SIGNED ) + + 59
----
-80325
14

skipif mysql # not compatible
query II rowsort label-3872
SELECT DISTINCT 63 * + - 25 * + ( 51 ) AS col0, + CAST ( - ( + 45 ) AS INTEGER ) + + 59
----
-80325
14

query I rowsort
SELECT 58 * - 81
----
-4698

query I rowsort
SELECT 93 * 47 col1
----
4371

query I rowsort
SELECT ( + 27 ) + + 77 + - 83 AS col2
----
21

query II rowsort
SELECT DISTINCT NULLIF ( + 40, 23 ) AS col0, 44 AS col1
----
40
44

query I rowsort
SELECT 63 * 84 AS col0
----
5292

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3878
SELECT DISTINCT - COUNT( * ) DIV - 23 - + 82 * - 40 * ( 69 ) + + + 73 - + 37
----
226356

skipif mysql # not compatible
query I rowsort label-3878
SELECT DISTINCT - COUNT ( * ) / - 23 - + 82 * - 40 * ( 69 ) + + + 73 - + 37
----
226356

onlyif mysql # aggregate syntax: 
query I rowsort label-3879
SELECT DISTINCT + COUNT( ALL - 70 )
----
1

skipif mysql # not compatible
query I rowsort label-3879
SELECT DISTINCT + COUNT ( ALL - 70 )
----
1

query I rowsort
SELECT ALL - - 31 + - + 21 AS col0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3881
SELECT ALL + 3 + COUNT( * ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-3881
SELECT ALL + 3 + COUNT ( * ) AS col2
----
4

query II rowsort
SELECT ALL NULLIF ( 14, + 69 ), 37 * 41 + + + NULLIF ( - - 93, + 12 ) AS col0
----
14
1610

onlyif mysql # DIV for integer division: 
query II rowsort label-3883
SELECT 88 * - 64 + + + 92 AS col2, - 4 + - + 61 DIV + 86
----
-5540
-4

skipif mysql # not compatible
query II rowsort label-3883
SELECT 88 * - 64 + + + 92 AS col2, - 4 + - + 61 / + 86
----
-5540
-4

query I rowsort
SELECT 19 - 77 AS col0
----
-58

query I rowsort
SELECT + ( - - 78 ) AS col0
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3886
SELECT CAST( 35 AS SIGNED ) DIV - 97 - - - MIN( ALL + + 57 ) AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-3886
SELECT CAST ( 35 AS INTEGER ) / - 97 - - - MIN ( ALL + + 57 ) AS col0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-3887
SELECT ALL + - 39 + + COUNT( * ) + 54
----
16

skipif mysql # not compatible
query I rowsort label-3887
SELECT ALL + - 39 + + COUNT ( * ) + 54
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-3888
SELECT - 5 * + MAX( ALL - + 80 )
----
400

skipif mysql # not compatible
query I rowsort label-3888
SELECT - 5 * + MAX ( ALL - + 80 )
----
400

query I rowsort
SELECT ( - 54 ) AS col0
----
-54

query I rowsort
SELECT 11 * + 7
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3891
SELECT DISTINCT COALESCE ( - CAST( NULL AS SIGNED ), - 47, - 77 - - + 6 * + ( - 20 ) DIV + CAST( NULL AS SIGNED ) + + + COUNT( * ) )
----
-47

skipif mysql # not compatible
query I rowsort label-3891
SELECT DISTINCT COALESCE ( - CAST ( NULL AS INTEGER ), - 47, - 77 - - + 6 * + ( - 20 ) / + CAST ( NULL AS INTEGER ) + + + COUNT ( * ) )
----
-47

query I rowsort
SELECT ALL - - 60 * 6 * 20 * + 32 + - + ( 54 ) AS col2
----
230346

onlyif mysql # DIV for integer division: 
query I rowsort label-3893
SELECT DISTINCT + + 97 + + - 17 + - + 85 * 10 DIV 90 AS col0
----
71

skipif mysql # not compatible
query I rowsort label-3893
SELECT DISTINCT + + 97 + + - 17 + - + 85 * 10 / 90 AS col0
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3894
SELECT ALL - 1 * CAST( + NULLIF ( 96, + 75 ) AS SIGNED ) * 75 + 72 * 89
----
-792

skipif mysql # not compatible
query I rowsort label-3894
SELECT ALL - 1 * CAST ( + NULLIF ( 96, + 75 ) AS INTEGER ) * 75 + 72 * 89
----
-792

query I rowsort
SELECT ALL + 70 + + 63 * - - 4 * - 33 col2
----
-8246

onlyif mysql # aggregate syntax: 
query II rowsort label-3896
SELECT 17 + + + COUNT( * ) AS col2, + 73 AS col0
----
18
73

skipif mysql # not compatible
query II rowsort label-3896
SELECT 17 + + + COUNT ( * ) AS col2, + 73 AS col0
----
18
73

query I rowsort
SELECT 59 * - 41
----
-2419

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3898
SELECT ALL - CAST( + ( + + COUNT( * ) ) AS SIGNED ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3898
SELECT ALL - CAST ( + ( + + COUNT ( * ) ) AS INTEGER ) AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3899
SELECT + 30 DIV - 78 - + 4
----
-4

skipif mysql # not compatible
query I rowsort label-3899
SELECT + 30 / - 78 - + 4
----
-4

query I rowsort
SELECT 49 * - + 50
----
-2450

onlyif mysql # aggregate syntax: 
query II rowsort label-3901
SELECT ALL - COUNT( DISTINCT + 20 ), 23 AS col1
----
-1
23

skipif mysql # not compatible
query II rowsort label-3901
SELECT ALL - COUNT ( DISTINCT + 20 ), 23 AS col1
----
-1
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3902
SELECT ALL - ( - COALESCE ( - 85, - CASE 32 WHEN + COUNT( ALL - 90 ) * - - 18 + CAST( NULL AS DECIMAL ) * 83 THEN COUNT( * ) ELSE - 97 END ) ) AS col1, CAST( - COUNT( DISTINCT + 43 ) AS SIGNED ) AS col1
----
-85
-1

skipif mysql # not compatible
query II rowsort label-3902
SELECT ALL - ( - COALESCE ( - 85, - CASE 32 WHEN + COUNT ( ALL - 90 ) * - - 18 + CAST ( NULL AS REAL ) * 83 THEN COUNT ( * ) ELSE - 97 END ) ) AS col1, CAST ( - COUNT ( DISTINCT + 43 ) AS INTEGER ) AS col1
----
-85
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-3903
SELECT DISTINCT 16 * - 88 AS col2, + 73 DIV - 91
----
-1408
0

skipif mysql # not compatible
query II rowsort label-3903
SELECT DISTINCT 16 * - 88 AS col2, + 73 / - 91
----
-1408
0

query I rowsort
SELECT ALL + 81 * + 42
----
3402

query II rowsort
SELECT 68 + - - 37, ( 47 ) col2
----
105
47

query I rowsort
SELECT ALL + 72 * + 33
----
2376

onlyif mysql # aggregate syntax: 
query I rowsort label-3907
SELECT MIN( ALL 75 ) * - + 78 * + - 45 * - SUM( ALL - 54 ) AS col1
----
14215500

skipif mysql # not compatible
query I rowsort label-3907
SELECT MIN ( ALL 75 ) * - + 78 * + - 45 * - SUM ( ALL - 54 ) AS col1
----
14215500

query I rowsort
SELECT 77 + + + 42 - + 59 + ( 18 )
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3909
SELECT ALL - 8 - CAST( + 66 AS SIGNED ) + + 48 * - 89 + + - 71
----
-4417

skipif mysql # not compatible
query I rowsort label-3909
SELECT ALL - 8 - CAST ( + 66 AS INTEGER ) + + 48 * - 89 + + - 71
----
-4417

query II rowsort
SELECT DISTINCT + 54 * - - 41 AS col2, 65 * + + 30
----
2214
1950

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3911
SELECT 58 DIV + COUNT( * )
----
58

skipif mysql # not compatible
query I rowsort label-3911
SELECT 58 / + COUNT ( * )
----
58

query I rowsort
SELECT CASE + + 20 WHEN - NULLIF ( 30, + + 19 ) THEN - 50 + + 20 + 98 WHEN + - 87 THEN NULL END / + 64
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3913
SELECT MAX( + - 91 ) * + 36 AS col2
----
-3276

skipif mysql # not compatible
query I rowsort label-3913
SELECT MAX ( + - 91 ) * + 36 AS col2
----
-3276

onlyif mysql # aggregate syntax: 
query I rowsort label-3914
SELECT MIN( ALL + 1 ) * + 50
----
50

skipif mysql # not compatible
query I rowsort label-3914
SELECT MIN ( ALL + 1 ) * + 50
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3915
SELECT + NULLIF ( + COUNT( * ), + ( - 61 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3915
SELECT + NULLIF ( + COUNT ( * ), + ( - 61 ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3916
SELECT ALL + SUM( + 70 ) + + 14 * - 5 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3916
SELECT ALL + SUM ( + 70 ) + + 14 * - 5 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3917
SELECT ALL - - MIN( - 60 )
----
-60

skipif mysql # not compatible
query I rowsort label-3917
SELECT ALL - - MIN ( - 60 )
----
-60

query I rowsort
SELECT 8 - + 23 AS col2
----
-15

query I rowsort
SELECT ALL + 74 * 89 + + 99 + + NULLIF ( - 96, - 21 ) col1
----
6589

query I rowsort
SELECT DISTINCT + 16 + 69 - + - 14 AS col1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3921
SELECT ALL COALESCE ( + 93, - 34 ) + + COUNT( * ) - + 66 AS col0
----
28

skipif mysql # not compatible
query I rowsort label-3921
SELECT ALL COALESCE ( + 93, - 34 ) + + COUNT ( * ) - + 66 AS col0
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-3922
SELECT + 89 + + 26 DIV - 51 + + 26 + + 60
----
175

skipif mysql # not compatible
query I rowsort label-3922
SELECT + 89 + + 26 / - 51 + + 26 + + 60
----
175

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3923
SELECT + - 2 + CAST( NULL AS SIGNED ) + 72
----
NULL

skipif mysql # not compatible
query I rowsort label-3923
SELECT + - 2 + CAST ( NULL AS INTEGER ) + 72
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3924
SELECT DISTINCT COUNT( ALL - - 60 ) * - 69 AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-3924
SELECT DISTINCT COUNT ( ALL - - 60 ) * - 69 AS col1
----
-69

query I rowsort
SELECT DISTINCT 4 + + 6 + + 99 + - 6 * - 54
----
433

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3926
SELECT ALL 8 + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3926
SELECT ALL 8 + + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3927
SELECT ALL SUM( + NULLIF ( 28, - 97 ) ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-3927
SELECT ALL SUM ( + NULLIF ( 28, - 97 ) ) AS col2
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-3928
SELECT DISTINCT - 97 DIV 21 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-3928
SELECT DISTINCT - 97 / 21 AS col2
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-3929
SELECT + 18 DIV - 19 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3929
SELECT + 18 / - 19 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3930
SELECT - NULLIF ( COUNT( * ), 4 + 51 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3930
SELECT - NULLIF ( COUNT ( * ), 4 + 51 ) AS col1
----
-1

query I rowsort
SELECT DISTINCT - 47 * - - 17 - 18
----
-817

query I rowsort
SELECT DISTINCT - 94 * - 28 col2
----
2632

query I rowsort
SELECT DISTINCT - 85 * - 62 * - 80 * - 27
----
11383200

query I rowsort
SELECT CASE - 75 WHEN 23 THEN 16 WHEN 92 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT + 28 * - 75
----
-2100

query I rowsort
SELECT - 4 - - 46 AS col2
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-3937
SELECT NULLIF ( 46, + 87 ), + COUNT( * ) AS col0
----
46
1

skipif mysql # not compatible
query II rowsort label-3937
SELECT NULLIF ( 46, + 87 ), + COUNT ( * ) AS col0
----
46
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3938
SELECT ALL + COALESCE ( + COUNT( * ), + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-3938
SELECT ALL + COALESCE ( + COUNT ( * ), + COUNT ( * ) )
----
1

query I rowsort
SELECT DISTINCT + 23 * - 49
----
-1127

query I rowsort
SELECT ALL 68 * + 4 + - 69 AS col1
----
203

query I rowsort
SELECT COALESCE ( + 86, - + ( - 81 ), + NULLIF ( - 88, 64 ) + + 22 ) AS col0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3942
SELECT ALL + 88 * - COUNT( * ) + + + COUNT( * ) + - 26 - + 38 * - 74
----
2699

skipif mysql # not compatible
query I rowsort label-3942
SELECT ALL + 88 * - COUNT ( * ) + + + COUNT ( * ) + - 26 - + 38 * - 74
----
2699

onlyif mysql # aggregate syntax: 
query I rowsort label-3943
SELECT ALL - ( - 10 ) * + COUNT( - 30 ) + - 0 - - 46
----
56

skipif mysql # not compatible
query I rowsort label-3943
SELECT ALL - ( - 10 ) * + COUNT ( - 30 ) + - 0 - - 46
----
56

query II rowsort
SELECT ALL + - 67 AS col2, + 50 * - - 90 + 76 - + 80
----
-67
4496

onlyif mysql # aggregate syntax: 
query I rowsort label-3945
SELECT DISTINCT + 2 * 8 + - 39 * - 84 + - 84 + - COUNT( * ) * - ( - 1 ) * + - 74
----
3282

skipif mysql # not compatible
query I rowsort label-3945
SELECT DISTINCT + 2 * 8 + - 39 * - 84 + - 84 + - COUNT ( * ) * - ( - 1 ) * + - 74
----
3282

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3946
SELECT + 84 AS col2, 54 * CAST( NULL AS SIGNED ) * - + 54
----
84
NULL

skipif mysql # not compatible
query II rowsort label-3946
SELECT + 84 AS col2, 54 * CAST ( NULL AS INTEGER ) * - + 54
----
84
NULL

query I rowsort
SELECT - - 6 * + 17 * + + 93 AS col2
----
9486

onlyif mysql # aggregate syntax: 
query I rowsort label-3948
SELECT + - COUNT( * ) * - + 59
----
59

skipif mysql # not compatible
query I rowsort label-3948
SELECT + - COUNT ( * ) * - + 59
----
59

query I rowsort
SELECT ALL + + 55 + 81
----
136

onlyif mysql # aggregate syntax: 
query II rowsort label-3950
SELECT 92 AS col2, + COUNT( * ) col0
----
92
1

skipif mysql # not compatible
query II rowsort label-3950
SELECT 92 AS col2, + COUNT ( * ) col0
----
92
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3951
SELECT DISTINCT - 12 - + + COALESCE ( - - 53, + - CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) ) + 98 - 42 - COUNT( * ) * + 70 AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-3951
SELECT DISTINCT - 12 - + + COALESCE ( - - 53, + - CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) ) + 98 - 42 - COUNT ( * ) * + 70 AS col0
----
-79

onlyif mysql # aggregate syntax: 
query II rowsort label-3952
SELECT + - 7 * 77 + - + COUNT( * ) AS col2, + 27 + + 19 AS col1
----
-540
46

skipif mysql # not compatible
query II rowsort label-3952
SELECT + - 7 * 77 + - + COUNT ( * ) AS col2, + 27 + + 19 AS col1
----
-540
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3953
SELECT DISTINCT + 68 * + COUNT( * ) + + NULLIF ( + - 14, - 99 ) * - 9 + 14 * COALESCE ( ( + COALESCE ( - 49, - CAST( NULL AS SIGNED ) + + 11 ) ), - + 30 + - 79 + - CASE + COUNT( * ) WHEN + 17 * 45 THEN COUNT( * ) + + 20 WHEN 58 / 49 THEN - 61 END + + 68 - - 79 * 75 ) * + + 78 AS col1, 38 * 71 col0
----
-53314
2698

skipif mysql # not compatible
query II rowsort label-3953
SELECT DISTINCT + 68 * + COUNT ( * ) + + NULLIF ( + - 14, - 99 ) * - 9 + 14 * COALESCE ( ( + COALESCE ( - 49, - CAST ( NULL AS INTEGER ) + + 11 ) ), - + 30 + - 79 + - CASE + COUNT ( * ) WHEN + 17 * 45 THEN COUNT ( * ) + + 20 WHEN 58 / 49 THEN - 61 END + + 68 - - 79 * 75 ) * + + 78 AS col1, 38 * 71 col0
----
-53314
2698

onlyif mysql # aggregate syntax: 
query I rowsort label-3954
SELECT + - COALESCE ( + 59, + - 29 * + - 41, + COUNT( * ) * - 78 ) - - COUNT( * ) AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-3954
SELECT + - COALESCE ( + 59, + - 29 * + - 41, + COUNT ( * ) * - 78 ) - - COUNT ( * ) AS col0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3955
SELECT - COALESCE ( + + MIN( + 53 ), + 29 ) AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-3955
SELECT - COALESCE ( + + MIN ( + 53 ), + 29 ) AS col2
----
-53

query II rowsort
SELECT + + 30 - 93 + + - 24 * - + ( 6 ), + 42 AS col2
----
81
42

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3957
SELECT + NULLIF ( - 71, + CAST( NULL AS SIGNED ) ) * + + 65, - 45 AS col0
----
-4615
-45

skipif mysql # not compatible
query II rowsort label-3957
SELECT + NULLIF ( - 71, + CAST ( NULL AS INTEGER ) ) * + + 65, - 45 AS col0
----
-4615
-45

query I rowsort
SELECT ALL 6 * + + 97 col1
----
582

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3959
SELECT DISTINCT ( - + 81 ) * - + 26 + + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3959
SELECT DISTINCT ( - + 81 ) * - + 26 + + + CAST ( NULL AS REAL )
----
NULL

query II rowsort
SELECT ALL 28 AS col2, 52 * + 40 * + CASE WHEN + 96 IS NULL THEN + 48 ELSE 39 END
----
28
81120

query II rowsort
SELECT 74, 77 * + 75 + - 97 * 94 AS col0
----
74
-3343

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3962
SELECT + NULLIF ( - NULLIF ( + 62, + 76 * + 70 + - - 41 / - 84 * + - 54 + - 85 ), + MIN( 2 ) + + 54 - - 81 + - + 36 * + ( - - 5 ) * + + COUNT( * ) ) * 83 * + ( CAST( NULL AS SIGNED ) ) * - COUNT( * ) + - + 4 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3962
SELECT + NULLIF ( - NULLIF ( + 62, + 76 * + 70 + - - 41 / - 84 * + - 54 + - 85 ), + MIN ( 2 ) + + 54 - - 81 + - + 36 * + ( - - 5 ) * + + COUNT ( * ) ) * 83 * + ( CAST ( NULL AS INTEGER ) ) * - COUNT ( * ) + - + 4 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3963
SELECT ALL CAST( - + CAST( NULL AS SIGNED ) AS DECIMAL ) * 24
----
NULL

skipif mysql # not compatible
query I rowsort label-3963
SELECT ALL CAST ( - + CAST ( NULL AS INTEGER ) AS REAL ) * 24
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3964
SELECT + 40 - + - CAST( NULL AS DECIMAL ) + 76 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3964
SELECT + 40 - + - CAST ( NULL AS REAL ) + 76 AS col2
----
NULL

query I rowsort
SELECT + ( 29 ) AS col0
----
29

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3966
SELECT - CAST( NULL AS DECIMAL ) / ( + ( - 60 ) ) / + 75 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3966
SELECT - CAST ( NULL AS REAL ) / ( + ( - 60 ) ) / + 75 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3967
SELECT DISTINCT 40 DIV 89 * + 19 * COUNT( ALL + 48 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3967
SELECT DISTINCT 40 / 89 * + 19 * COUNT ( ALL + 48 ) AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3968
SELECT + 65 DIV - 49 + 89 AS col1
----
88

skipif mysql # not compatible
query I rowsort label-3968
SELECT + 65 / - 49 + 89 AS col1
----
88

query II rowsort
SELECT + 51 AS col2, 19 - 74 AS col0
----
51
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-3970
SELECT - 69 DIV - - 96 * + + 15
----
0

skipif mysql # not compatible
query I rowsort label-3970
SELECT - 69 / - - 96 * + + 15
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3971
SELECT 45 DIV - - 2 - - 29 + + - 87 - + - ( - 0 ) * + 38 * + COALESCE ( COUNT( * ), + 75 * 91 - + + 40 DIV + 96 * + 22, + - 96 )
----
-36

skipif mysql # not compatible
query I rowsort label-3971
SELECT 45 / - - 2 - - 29 + + - 87 - + - ( - 0 ) * + 38 * + COALESCE ( COUNT ( * ), + 75 * 91 - + + 40 / + 96 * + 22, + - 96 )
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-3972
SELECT ALL - COUNT( * ) * + 59
----
-59

skipif mysql # not compatible
query I rowsort label-3972
SELECT ALL - COUNT ( * ) * + 59
----
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-3973
SELECT + 98 DIV - + 89
----
-1

skipif mysql # not compatible
query I rowsort label-3973
SELECT + 98 / - + 89
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3974
SELECT DISTINCT 21 DIV + 3 + + 45
----
52

skipif mysql # not compatible
query I rowsort label-3974
SELECT DISTINCT 21 / + 3 + + 45
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3975
SELECT CAST( - CASE + 17 WHEN 98 THEN - 22 ELSE NULL END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3975
SELECT CAST ( - CASE + 17 WHEN 98 THEN - 22 ELSE NULL END AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3976
SELECT - 27 + - 79 + - - 52 DIV + 16
----
-103

skipif mysql # not compatible
query I rowsort label-3976
SELECT - 27 + - 79 + - - 52 / + 16
----
-103

query I rowsort
SELECT ALL 33 * 10
----
330

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3978
SELECT ALL - ( - CAST( - 18 AS SIGNED ) ) + - + CAST( NULL AS SIGNED ) + + 32 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3978
SELECT ALL - ( - CAST ( - 18 AS INTEGER ) ) + - + CAST ( NULL AS INTEGER ) + + 32 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3979
SELECT ALL + CAST( - COUNT( * ) AS SIGNED ) + + 82 col1
----
81

skipif mysql # not compatible
query I rowsort label-3979
SELECT ALL + CAST ( - COUNT ( * ) AS INTEGER ) + + 82 col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3980
SELECT + + 41 * - + 77 + - 64 + 18 * - 1 + NULLIF ( + 34, + - 26 ) * COUNT( * ) AS col1
----
-3205

skipif mysql # not compatible
query I rowsort label-3980
SELECT + + 41 * - + 77 + - 64 + 18 * - 1 + NULLIF ( + 34, + - 26 ) * COUNT ( * ) AS col1
----
-3205

query I rowsort
SELECT DISTINCT + + 95 + - + ( + - 38 )
----
133

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3982
SELECT ALL 41 + + 74 - + 9 * - COUNT( * ) * + CASE - 66 WHEN - 83 * + - 81 + + SUM( 83 ) THEN NULL ELSE 17 DIV + 73 END * - 61 * + 21 + + 2 AS col2
----
117

skipif mysql # not compatible
query I rowsort label-3982
SELECT ALL 41 + + 74 - + 9 * - COUNT ( * ) * + CASE - 66 WHEN - 83 * + - 81 + + SUM ( 83 ) THEN NULL ELSE 17 / + 73 END * - 61 * + 21 + + 2 AS col2
----
117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3983
SELECT ALL + + CASE - - ( + SUM( DISTINCT CAST( - - 96 AS SIGNED ) ) ) WHEN + + 80 + 90 THEN NULL ELSE 49 END + + 71 AS col0, 52 + + 43
----
120
95

skipif mysql # not compatible
query II rowsort label-3983
SELECT ALL + + CASE - - ( + SUM ( DISTINCT CAST ( - - 96 AS INTEGER ) ) ) WHEN + + 80 + 90 THEN NULL ELSE 49 END + + 71 AS col0, 52 + + 43
----
120
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3984
SELECT DISTINCT - NULLIF ( COUNT( * ), + 53 + - 73 * - 10 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3984
SELECT DISTINCT - NULLIF ( COUNT ( * ), + 53 + - 73 * - 10 ) AS col0
----
-1

query II rowsort
SELECT ALL 35 AS col1, - 15 AS col0
----
35
-15

query I rowsort
SELECT 56 * 76 AS col0
----
4256

query I rowsort
SELECT ALL - + 53 * + - NULLIF ( - - 97, + - 7 )
----
5141

onlyif mysql # aggregate syntax: 
query II rowsort label-3988
SELECT 50 AS col0, + COUNT( * ) + + ( + 25 )
----
50
26

skipif mysql # not compatible
query II rowsort label-3988
SELECT 50 AS col0, + COUNT ( * ) + + ( + 25 )
----
50
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3989
SELECT - COALESCE ( + + COUNT( * ), + 93 DIV + + ( NULLIF ( - COUNT( * ), + - 77 ) ) * + 45 * - 32 + - + 98 * - ( - 4 ) + + 84 * CAST( + + 62 AS SIGNED ) * 27 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-3989
SELECT - COALESCE ( + + COUNT ( * ), + 93 / + + ( NULLIF ( - COUNT ( * ), + - 77 ) ) * + 45 * - 32 + - + 98 * - ( - 4 ) + + 84 * CAST ( + + 62 AS INTEGER ) * 27 ) col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3990
SELECT - MAX( - + 97 ) AS col1
----
97

skipif mysql # not compatible
query I rowsort label-3990
SELECT - MAX ( - + 97 ) AS col1
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3991
SELECT + 74 + - COUNT( * ) AS col0
----
73

skipif mysql # not compatible
query I rowsort label-3991
SELECT + 74 + - COUNT ( * ) AS col0
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3992
SELECT ( + - 17 ) DIV - - ( - - MIN( DISTINCT 26 ) ) * - - 62 + + - 30
----
-30

skipif mysql # not compatible
query I rowsort label-3992
SELECT ( + - 17 ) / - - ( - - MIN ( DISTINCT 26 ) ) * - - 62 + + - 30
----
-30

query I rowsort
SELECT + 48 * + - 76
----
-3648

query I rowsort
SELECT 66 + 3 * - - 1 + - - 8
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3995
SELECT ALL + + NULLIF ( - COUNT( * ), + 66 ) * + ( - + 99 ) DIV 2 + + - 33 - - COUNT( * ) + + 97 * - 9 - - NULLIF ( + + 59, - - 45 ) * + 5 AS col2
----
-561

skipif mysql # not compatible
query I rowsort label-3995
SELECT ALL + + NULLIF ( - COUNT ( * ), + 66 ) * + ( - + 99 ) / 2 + + - 33 - - COUNT ( * ) + + 97 * - 9 - - NULLIF ( + + 59, - - 45 ) * + 5 AS col2
----
-561

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3996
SELECT 52 * 96, CAST( NULL AS SIGNED ) * + + 15 AS col0
----
4992
NULL

skipif mysql # not compatible
query II rowsort label-3996
SELECT 52 * 96, CAST ( NULL AS INTEGER ) * + + 15 AS col0
----
4992
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3997
SELECT ALL 59 DIV + 22 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-3997
SELECT ALL 59 / + 22 AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3998
SELECT DISTINCT MIN( ALL - - ( - 87 ) ) * - - COUNT( * )
----
-87

skipif mysql # not compatible
query I rowsort label-3998
SELECT DISTINCT MIN ( ALL - - ( - 87 ) ) * - - COUNT ( * )
----
-87

query I rowsort
SELECT ( - 85 ) + + 6 + 16
----
-63

query I rowsort
SELECT ALL 99 + - 52 + 25 * 33 * - 82
----
-67603

onlyif mysql # aggregate syntax: 
query I rowsort label-4001
SELECT DISTINCT 16 * SUM( DISTINCT + 81 )
----
1296

skipif mysql # not compatible
query I rowsort label-4001
SELECT DISTINCT 16 * SUM ( DISTINCT + 81 )
----
1296

onlyif mysql # DIV for integer division: 
query I rowsort label-4002
SELECT COALESCE ( + 43, + - 28 DIV + - 11 DIV - 44 ) + 97 AS col0
----
140

skipif mysql # not compatible
query I rowsort label-4002
SELECT COALESCE ( + 43, + - 28 / + - 11 / - 44 ) + 97 AS col0
----
140

query I rowsort
SELECT 77 * + ( + 82 ) AS col0
----
6314

query I rowsort
SELECT ALL - 50 + - 17 AS col2
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-4005
SELECT ALL COUNT( * ) + - 52 + - - 37 AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-4005
SELECT ALL COUNT ( * ) + - 52 + - - 37 AS col2
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4006
SELECT 2 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4006
SELECT 2 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 41 * - 26 + + 59 * + + 58 AS col0
----
2356

query I rowsort
SELECT DISTINCT 50 + - 66
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-4009
SELECT ALL COUNT( * ) + 28 + + 45 * + 63 AS col0
----
2864

skipif mysql # not compatible
query I rowsort label-4009
SELECT ALL COUNT ( * ) + 28 + + 45 * + 63 AS col0
----
2864

onlyif mysql # aggregate syntax: 
query I rowsort label-4010
SELECT ALL 72 * + + MAX( - 13 )
----
-936

skipif mysql # not compatible
query I rowsort label-4010
SELECT ALL 72 * + + MAX ( - 13 )
----
-936

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4011
SELECT - - 51 * - 56 + + 58 * + CAST( NULL AS SIGNED ) * 54 - - + 78
----
NULL

skipif mysql # not compatible
query I rowsort label-4011
SELECT - - 51 * - 56 + + 58 * + CAST ( NULL AS INTEGER ) * 54 - - + 78
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4012
SELECT ALL 29 - - 63 + COUNT( * )
----
93

skipif mysql # not compatible
query I rowsort label-4012
SELECT ALL 29 - - 63 + COUNT ( * )
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4013
SELECT 32 * - + 82 - + MAX( DISTINCT - - NULLIF ( - - 40, + 93 ) ) DIV + 53
----
-2624

skipif mysql # not compatible
query I rowsort label-4013
SELECT 32 * - + 82 - + MAX ( DISTINCT - - NULLIF ( - - 40, + 93 ) ) / + 53
----
-2624

query I rowsort
SELECT ALL + - 17 - 48 AS col2
----
-65

query I rowsort
SELECT - ( 5 ) * + + 61 * - + 69 AS col2
----
21045

query I rowsort
SELECT ALL + 34 * 49 AS col2
----
1666

query I rowsort
SELECT 65 * 47 + 79 + + 40 - + - 85 AS col1
----
3259

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4018
SELECT + - CASE 86 WHEN 7 + - COALESCE ( + 13, + - 50 / - - COUNT( * ) + CAST( NULL AS SIGNED ) ) THEN + 97 WHEN + - 35 * + 2 + 5 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4018
SELECT + - CASE 86 WHEN 7 + - COALESCE ( + 13, + - 50 / - - COUNT ( * ) + CAST ( NULL AS INTEGER ) ) THEN + 97 WHEN + - 35 * + 2 + 5 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4019
SELECT ALL - - ( MIN( 87 ) ) - 91 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-4019
SELECT ALL - - ( MIN ( 87 ) ) - 91 AS col1
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-4020
SELECT ALL - COUNT( + - 83 ) AS col0, 54 AS col2
----
-1
54

skipif mysql # not compatible
query II rowsort label-4020
SELECT ALL - COUNT ( + - 83 ) AS col0, 54 AS col2
----
-1
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4021
SELECT DISTINCT SUM( DISTINCT 30 )
----
30

skipif mysql # not compatible
query I rowsort label-4021
SELECT DISTINCT SUM ( DISTINCT 30 )
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4022
SELECT + - CAST( + 30 AS SIGNED ) * 98 + + + 27 * 84 - + 39
----
-711

skipif mysql # not compatible
query I rowsort label-4022
SELECT + - CAST ( + 30 AS INTEGER ) * 98 + + + 27 * 84 - + 39
----
-711

query I rowsort
SELECT - 46 * 71
----
-3266

onlyif mysql # aggregate syntax: 
query II rowsort label-4024
SELECT 80 * - COUNT( * ) AS col0, - 72
----
-80
-72

skipif mysql # not compatible
query II rowsort label-4024
SELECT 80 * - COUNT ( * ) AS col0, - 72
----
-80
-72

query I rowsort
SELECT ALL - 26 * + 44
----
-1144

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4026
SELECT ALL - MIN( - ( + 83 ) ) DIV COALESCE ( + 32, - COUNT( * ) )
----
2

skipif mysql # not compatible
query I rowsort label-4026
SELECT ALL - MIN ( - ( + 83 ) ) / COALESCE ( + 32, - COUNT ( * ) )
----
2

query I rowsort
SELECT ALL + 81 + - 36 AS col0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4028
SELECT ALL - 26 * - - MAX( ALL + + 12 ) AS col0
----
-312

skipif mysql # not compatible
query I rowsort label-4028
SELECT ALL - 26 * - - MAX ( ALL + + 12 ) AS col0
----
-312

query II rowsort
SELECT 58 - - CASE WHEN NOT NULL < 71 THEN 88 ELSE - 83 * + ( + 88 ) END - 8 col0, + 71 * - 67 - - 83 AS col0
----
-7254
-4674

query I rowsort
SELECT ALL + 54 + - + 17
----
37

query I rowsort
SELECT 67 + 18 AS col1
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-4032
SELECT - 93, 74 * - + 88 * 8 + - MIN( DISTINCT - - 79 ) AS col0
----
-93
-52175

skipif mysql # not compatible
query II rowsort label-4032
SELECT - 93, 74 * - + 88 * 8 + - MIN ( DISTINCT - - 79 ) AS col0
----
-93
-52175

onlyif mysql # aggregate syntax: 
query I rowsort label-4033
SELECT ALL NULLIF ( - MAX( + + 84 ), - 18 )
----
-84

skipif mysql # not compatible
query I rowsort label-4033
SELECT ALL NULLIF ( - MAX ( + + 84 ), - 18 )
----
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-4034
SELECT 77 DIV + 97
----
0

skipif mysql # not compatible
query I rowsort label-4034
SELECT 77 / + 97
----
0

query I rowsort
SELECT ALL - 18 + + ( - 21 )
----
-39

query I rowsort
SELECT 93 - - 78 * 91
----
7191

onlyif mysql # aggregate syntax: 
query I rowsort label-4037
SELECT ALL MAX( + - 24 ) AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-4037
SELECT ALL MAX ( + - 24 ) AS col1
----
-24

query II rowsort
SELECT DISTINCT - 37 + ( 98 ) AS col0, + 37 * + + 36 AS col2
----
61
1332

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4039
SELECT 55 * + 27 * - - SUM( + + 89 ) - - 5 DIV + - 44 + - + 82 AS col1
----
132083

skipif mysql # not compatible
query I rowsort label-4039
SELECT 55 * + 27 * - - SUM ( + + 89 ) - - 5 / + - 44 + - + 82 AS col1
----
132083

query I rowsort
SELECT DISTINCT + ( - 79 ) col1
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-4041
SELECT - ( + 63 ) + - + COUNT( * )
----
-64

skipif mysql # not compatible
query I rowsort label-4041
SELECT - ( + 63 ) + - + COUNT ( * )
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-4042
SELECT - 31 + - MIN( DISTINCT 76 ) AS col1
----
-107

skipif mysql # not compatible
query I rowsort label-4042
SELECT - 31 + - MIN ( DISTINCT 76 ) AS col1
----
-107

onlyif mysql # aggregate syntax: 
query I rowsort label-4043
SELECT - - CASE + 94 WHEN - 23 + 22 + + 41 + - 63 * 91 * - COUNT( * ) * NULLIF ( + 69, - 0 ) THEN - - 62 WHEN 54 THEN + 53 * 40 + - COUNT( * ) * 61 * + - 10 + 27 END * 29 + 60
----
NULL

skipif mysql # not compatible
query I rowsort label-4043
SELECT - - CASE + 94 WHEN - 23 + 22 + + 41 + - 63 * 91 * - COUNT ( * ) * NULLIF ( + 69, - 0 ) THEN - - 62 WHEN 54 THEN + 53 * 40 + - COUNT ( * ) * 61 * + - 10 + 27 END * 29 + 60
----
NULL

query I rowsort
SELECT DISTINCT - - 11 * + + ( + - 37 )
----
-407

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4045
SELECT ALL - + NULLIF ( CAST( NULL AS DECIMAL ), SUM( 28 ) ) * - ( - 32 ) - + ( + 32 ) + - 80
----
NULL

skipif mysql # not compatible
query I rowsort label-4045
SELECT ALL - + NULLIF ( CAST ( NULL AS REAL ), SUM ( 28 ) ) * - ( - 32 ) - + ( + 32 ) + - 80
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4046
SELECT + - SUM( + 27 ) * + 66 + NULLIF ( 73, SUM( DISTINCT + 84 ) + + ( + NULLIF ( 47, 77 ) ) ) * - 88 + + 51 + + 57
----
-8098

skipif mysql # not compatible
query I rowsort label-4046
SELECT + - SUM ( + 27 ) * + 66 + NULLIF ( 73, SUM ( DISTINCT + 84 ) + + ( + NULLIF ( 47, 77 ) ) ) * - 88 + + 51 + + 57
----
-8098

onlyif mysql # aggregate syntax: 
query I rowsort label-4047
SELECT ALL - SUM( ALL + 18 ) * + + ( - 17 ) AS col0
----
306

skipif mysql # not compatible
query I rowsort label-4047
SELECT ALL - SUM ( ALL + 18 ) * + + ( - 17 ) AS col0
----
306

query II rowsort
SELECT DISTINCT + 67 AS col2, 73 + 40
----
67
113

onlyif mysql # aggregate syntax: 
query I rowsort label-4049
SELECT NULLIF ( - 73, - - COUNT( * ) * + 40 ) AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-4049
SELECT NULLIF ( - 73, - - COUNT ( * ) * + 40 ) AS col2
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4050
SELECT COALESCE ( 1, CAST( 39 AS SIGNED ) * - CAST( NULL AS SIGNED ) - + ( - COUNT( * ) ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4050
SELECT COALESCE ( 1, CAST ( 39 AS INTEGER ) * - CAST ( NULL AS INTEGER ) - + ( - COUNT ( * ) ) ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4051
SELECT ALL COALESCE ( - 81, + + 9, - AVG ( - 51 ) * + 47 ) DIV + + 14 + 16 DIV + + COUNT( * ) col2
----
11

skipif mysql # not compatible
query I rowsort label-4051
SELECT ALL COALESCE ( - 81, + + 9, - AVG ( - 51 ) * + 47 ) / + + 14 + 16 / + + COUNT ( * ) col2
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4052
SELECT + + COUNT( * ) * + + 82 * COALESCE ( - - NULLIF ( - - 52, CAST( NULL AS SIGNED ) * ( + 8 ) + + COUNT( * ) * - 11 ), - - 10 DIV + + 89 * + + 17 )
----
4264

skipif mysql # not compatible
query I rowsort label-4052
SELECT + + COUNT ( * ) * + + 82 * COALESCE ( - - NULLIF ( - - 52, CAST ( NULL AS INTEGER ) * ( + 8 ) + + COUNT ( * ) * - 11 ), - - 10 / + + 89 * + + 17 )
----
4264

onlyif mysql # DIV for integer division: 
query I rowsort label-4053
SELECT DISTINCT - 31 * + 64 + - 29 DIV - 40 AS col2
----
-1984

skipif mysql # not compatible
query I rowsort label-4053
SELECT DISTINCT - 31 * + 64 + - 29 / - 40 AS col2
----
-1984

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4054
SELECT DISTINCT 48 DIV MIN( - 34 ), + 96 AS col0
----
-1
96

skipif mysql # not compatible
query II rowsort label-4054
SELECT DISTINCT 48 / MIN ( - 34 ), + 96 AS col0
----
-1
96

query I rowsort
SELECT DISTINCT - 29 + - + 26
----
-55

query I rowsort
SELECT - 17 + - 4
----
-21

query I rowsort
SELECT ALL 23 + + - 3 - + + 31
----
-11

query I rowsort
SELECT + 29 + - 5 AS col2
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4059
SELECT - CAST( NULL AS SIGNED ) - - + 96 * 46
----
NULL

skipif mysql # not compatible
query I rowsort label-4059
SELECT - CAST ( NULL AS INTEGER ) - - + 96 * 46
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4060
SELECT ALL - 22 + 74 * - 4 * - COUNT( * ), + NULLIF ( - - COALESCE ( + + 94, + - COUNT( * ), - 17 ), + 83 * + 39 * 63 * + COUNT( * ) / + COUNT( * ) + + 68 * + MIN( DISTINCT + + 18 ) ) * + 14 col1
----
274
1316

skipif mysql # not compatible
query II rowsort label-4060
SELECT ALL - 22 + 74 * - 4 * - COUNT ( * ), + NULLIF ( - - COALESCE ( + + 94, + - COUNT ( * ), - 17 ), + 83 * + 39 * 63 * + COUNT ( * ) / + COUNT ( * ) + + 68 * + MIN ( DISTINCT + + 18 ) ) * + 14 col1
----
274
1316

query I rowsort
SELECT - 87 - 0
----
-87

query I rowsort
SELECT ALL 40 + 71
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-4063
SELECT ALL - 50 + + SUM( - 26 ) AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-4063
SELECT ALL - 50 + + SUM ( - 26 ) AS col2
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-4064
SELECT - ( + MAX( 96 ) ) AS col1
----
-96

skipif mysql # not compatible
query I rowsort label-4064
SELECT - ( + MAX ( 96 ) ) AS col1
----
-96

query II rowsort
SELECT - 4 + + 22 AS col1, + 77 AS col2
----
18
77

query I rowsort
SELECT ALL + 87 - - - 36 col0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4067
SELECT - COALESCE ( 8, - ( COUNT( * ) ) ) * + - MAX( + 1 )
----
8

skipif mysql # not compatible
query I rowsort label-4067
SELECT - COALESCE ( 8, - ( COUNT ( * ) ) ) * + - MAX ( + 1 )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4068
SELECT - 80 + + - ( - + COUNT( * ) ) AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-4068
SELECT - 80 + + - ( - + COUNT ( * ) ) AS col1
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4069
SELECT DISTINCT - 6 - + + CAST( NULL AS SIGNED ) col0, + 41 AS col2
----
NULL
41

skipif mysql # not compatible
query II rowsort label-4069
SELECT DISTINCT - 6 - + + CAST ( NULL AS INTEGER ) col0, + 41 AS col2
----
NULL
41

query I rowsort
SELECT DISTINCT - 33 * + 57 AS col0
----
-1881

onlyif mysql # aggregate syntax: 
query I rowsort label-4071
SELECT - + COUNT( * ) * - 3 + - - 73 + - - 58 * 41 + - 32 * - 7 AS col2
----
2678

skipif mysql # not compatible
query I rowsort label-4071
SELECT - + COUNT ( * ) * - 3 + - - 73 + - - 58 * 41 + - 32 * - 7 AS col2
----
2678

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4072
SELECT - 51 DIV - + 74 * - 51 * - COUNT( * ) AS col0, 1
----
0
1

skipif mysql # not compatible
query II rowsort label-4072
SELECT - 51 / - + 74 * - 51 * - COUNT ( * ) AS col0, 1
----
0
1

query I rowsort
SELECT ALL 90 * - 29 AS col1
----
-2610

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4074
SELECT - COUNT( * ) * CAST( + 70 AS SIGNED ) AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-4074
SELECT - COUNT ( * ) * CAST ( + 70 AS INTEGER ) AS col0
----
-70

query I rowsort
SELECT COALESCE ( + 87, - 85 )
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4076
SELECT - 50 * 21 - - 45 + 48 - COUNT( * ) AS col2
----
-958

skipif mysql # not compatible
query I rowsort label-4076
SELECT - 50 * 21 - - 45 + 48 - COUNT ( * ) AS col2
----
-958

query I rowsort
SELECT + + 57 * - 50
----
-2850

query I rowsort
SELECT ALL + 52 * + 79
----
4108

onlyif mysql # aggregate syntax: 
query I rowsort label-4079
SELECT - + COUNT( * ) * - 78 + 71 - - 9
----
158

skipif mysql # not compatible
query I rowsort label-4079
SELECT - + COUNT ( * ) * - 78 + 71 - - 9
----
158

onlyif mysql # aggregate syntax: 
query II rowsort label-4080
SELECT DISTINCT + 24 * - 49 * - 89 * COUNT( - + 45 ) + - COUNT( * ) * + 85 AS col1, + COUNT( * )
----
104579
1

skipif mysql # not compatible
query II rowsort label-4080
SELECT DISTINCT + 24 * - 49 * - 89 * COUNT ( - + 45 ) + - COUNT ( * ) * + 85 AS col1, + COUNT ( * )
----
104579
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4081
SELECT DISTINCT + MAX( - 42 )
----
-42

skipif mysql # not compatible
query I rowsort label-4081
SELECT DISTINCT + MAX ( - 42 )
----
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4082
SELECT ALL + COUNT( DISTINCT - - 76 ) * - + 14 + + + 53 - + 36 DIV - - 41 * 47 * + 2 + - COUNT( * ) AS col1, + COUNT( * ) DIV + - 58
----
38
0

skipif mysql # not compatible
query II rowsort label-4082
SELECT ALL + COUNT ( DISTINCT - - 76 ) * - + 14 + + + 53 - + 36 / - - 41 * 47 * + 2 + - COUNT ( * ) AS col1, + COUNT ( * ) / + - 58
----
38
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4083
SELECT ALL - 12 * + 11 + 48 * MAX( DISTINCT + + 85 )
----
3948

skipif mysql # not compatible
query I rowsort label-4083
SELECT ALL - 12 * + 11 + 48 * MAX ( DISTINCT + + 85 )
----
3948

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4084
SELECT DISTINCT + 98 * + 40 - + + 38 * + - COUNT( * ) * + 28 + - 39 + - 90 + ( + 35 ) * 14 DIV - + 59
----
4847

skipif mysql # not compatible
query I rowsort label-4084
SELECT DISTINCT + 98 * + 40 - + + 38 * + - COUNT ( * ) * + 28 + - 39 + - 90 + ( + 35 ) * 14 / - + 59
----
4847

onlyif mysql # aggregate syntax: 
query I rowsort label-4085
SELECT NULLIF ( - + 23, + 18 * - 77 + - - COUNT( * ) * - CASE 34 WHEN - 8 THEN 5 ELSE NULL END + 98 ) AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-4085
SELECT NULLIF ( - + 23, + 18 * - 77 + - - COUNT ( * ) * - CASE 34 WHEN - 8 THEN 5 ELSE NULL END + 98 ) AS col0
----
-23

query I rowsort
SELECT CASE WHEN - 23 IS NULL THEN + 88 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4087
SELECT ALL 76 DIV + + 31
----
2

skipif mysql # not compatible
query I rowsort label-4087
SELECT ALL 76 / + + 31
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4088
SELECT + CASE + 29 WHEN + - 97 * - + COUNT( * ) + 12 + + 93 * - 15 / + 33 - - + 59 THEN COALESCE ( - COUNT( * ), + ( + + 99 ) ) WHEN - + CASE - 36 WHEN CAST( 10 AS SIGNED ) + - - 94 THEN ( - + MAX( ALL + 61 ) ) * + 58 WHEN - 4 THEN NULL END THEN NULL ELSE NULL END / - 86 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4088
SELECT + CASE + 29 WHEN + - 97 * - + COUNT ( * ) + 12 + + 93 * - 15 / + 33 - - + 59 THEN COALESCE ( - COUNT ( * ), + ( + + 99 ) ) WHEN - + CASE - 36 WHEN CAST ( 10 AS INTEGER ) + - - 94 THEN ( - + MAX ( ALL + 61 ) ) * + 58 WHEN - 4 THEN NULL END THEN NULL ELSE NULL END / - 86 col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4089
SELECT DISTINCT 5 DIV 98
----
0

skipif mysql # not compatible
query I rowsort label-4089
SELECT DISTINCT 5 / 98
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4090
SELECT ALL 11 * 70 * - - 10 + - 24 + 57 + + 92 * + + 16 * + 94 - + ( - 98 ) - + ( - + 43 ) + - 10 * 67 * COUNT( * )
----
145572

skipif mysql # not compatible
query I rowsort label-4090
SELECT ALL 11 * 70 * - - 10 + - 24 + 57 + + 92 * + + 16 * + 94 - + ( - 98 ) - + ( - + 43 ) + - 10 * 67 * COUNT ( * )
----
145572

onlyif mysql # aggregate syntax: 
query I rowsort label-4091
SELECT COUNT( ALL 76 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-4091
SELECT COUNT ( ALL 76 ) col0
----
1

query I rowsort
SELECT ALL 40 * - - 61
----
2440

onlyif mysql # aggregate syntax: 
query I rowsort label-4093
SELECT DISTINCT COUNT( + 29 ) * + 53 + 61
----
114

skipif mysql # not compatible
query I rowsort label-4093
SELECT DISTINCT COUNT ( + 29 ) * + 53 + 61
----
114

query I rowsort
SELECT ALL 34 - + 73
----
-39

query I rowsort
SELECT 83 - - 76 + 19
----
178

onlyif mysql # aggregate syntax: 
query I rowsort label-4096
SELECT 28 * - + SUM( ALL + - 8 ) AS col1
----
224

skipif mysql # not compatible
query I rowsort label-4096
SELECT 28 * - + SUM ( ALL + - 8 ) AS col1
----
224

onlyif mysql # aggregate syntax: 
query I rowsort label-4097
SELECT 2 + + 3 - - CASE 52 WHEN + + 36 * + COUNT( * ) THEN + - 65 + 81 * 28 ELSE NULL END * NULLIF ( + 71, - + 69 ) + - 76 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4097
SELECT 2 + + 3 - - CASE 52 WHEN + + 36 * + COUNT ( * ) THEN + - 65 + 81 * 28 ELSE NULL END * NULLIF ( + 71, - + 69 ) + - 76 AS col1
----
NULL

query I rowsort
SELECT ALL 74 - + - COALESCE ( 38, - + 36 ) * + 70
----
2734

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4099
SELECT ALL + CASE + 45 WHEN + 86 + - - 44 THEN NULL ELSE + ( - 61 ) END * - MAX( + - 96 ) AS col1, - 34 DIV + 61
----
-5856
0

skipif mysql # not compatible
query II rowsort label-4099
SELECT ALL + CASE + 45 WHEN + 86 + - - 44 THEN NULL ELSE + ( - 61 ) END * - MAX ( + - 96 ) AS col1, - 34 / + 61
----
-5856
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4100
SELECT DISTINCT + ( + - 90 ) * - NULLIF ( + + 57, - 70 + NULLIF ( - 39, + + MIN( DISTINCT - 11 ) * + CAST( NULL AS SIGNED ) ) * 75 DIV MAX( ALL - - 73 ) + - AVG ( - - 49 ) ) + 16 DIV - + NULLIF ( SUM( + 46 ), - + CASE + 27 WHEN + SUM( DISTINCT 47 ) * - + 93 * - ( 7 ) + - + 87 THEN NULL WHEN + + MAX( 69 ) * COUNT( * ) * 16 + + - CAST( NULL AS SIGNED ) + COUNT( * ) * - - MIN( DISTINCT + 9 ) * 66 + + 84 * + COUNT( * ) * - 59 * + - 34 + 26 THEN + ( CAST( 1 AS SIGNED ) ) + - 27 * - COUNT( * ) END ) + - 31 AS col1
----
5099

skipif mysql # not compatible
query I rowsort label-4100
SELECT DISTINCT + ( + - 90 ) * - NULLIF ( + + 57, - 70 + NULLIF ( - 39, + + MIN ( DISTINCT - 11 ) * + CAST ( NULL AS INTEGER ) ) * 75 / MAX ( ALL - - 73 ) + - AVG ( - - 49 ) ) + 16 / - + NULLIF ( SUM ( + 46 ), - + CASE + 27 WHEN + SUM ( DISTINCT 47 ) * - + 93 * - ( 7 ) + - + 87 THEN NULL WHEN + + MAX ( 69 ) * COUNT ( * ) * 16 + + - CAST ( NULL AS INTEGER ) + COUNT ( * ) * - - MIN ( DISTINCT + 9 ) * 66 + + 84 * + COUNT ( * ) * - 59 * + - 34 + 26 THEN + ( CAST ( 1 AS INTEGER ) ) + - 27 * - COUNT ( * ) END ) + - 31 AS col1
----
5099

onlyif mysql # aggregate syntax: 
query I rowsort label-4101
SELECT - COUNT( * ) - - 70
----
69

skipif mysql # not compatible
query I rowsort label-4101
SELECT - COUNT ( * ) - - 70
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4102
SELECT ALL + + COALESCE ( + 7, - - 36 - + 7 * - ( + CASE - 48 WHEN 27 THEN CAST( NULL AS SIGNED ) WHEN + 92 * + - 69 - - + 44 THEN NULL WHEN + 90 THEN + - 88 + - + 60 * - 99 END ) ) * - 3 + COALESCE ( + 68, + 26 ) + + 32 + - - 35
----
114

skipif mysql # not compatible
query I rowsort label-4102
SELECT ALL + + COALESCE ( + 7, - - 36 - + 7 * - ( + CASE - 48 WHEN 27 THEN CAST ( NULL AS INTEGER ) WHEN + 92 * + - 69 - - + 44 THEN NULL WHEN + 90 THEN + - 88 + - + 60 * - 99 END ) ) * - 3 + COALESCE ( + 68, + 26 ) + + 32 + - - 35
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-4103
SELECT - COUNT( * ) - + + 31 + - 63 AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-4103
SELECT - COUNT ( * ) - + + 31 + - 63 AS col0
----
-95

query I rowsort
SELECT + 58 * + 61 AS col1
----
3538

onlyif mysql # aggregate syntax: 
query I rowsort label-4105
SELECT + SUM( 36 ) AS col0
----
36

skipif mysql # not compatible
query I rowsort label-4105
SELECT + SUM ( 36 ) AS col0
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4106
SELECT ALL - + COALESCE ( - MAX( DISTINCT - CAST( NULL AS SIGNED ) ), SUM( DISTINCT + 85 ), + 5 )
----
-85

skipif mysql # not compatible
query I rowsort label-4106
SELECT ALL - + COALESCE ( - MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ), SUM ( DISTINCT + 85 ), + 5 )
----
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4107
SELECT + 23 * - + 6 - + + 23 - + 3 + MAX( DISTINCT - 28 ) DIV COALESCE ( 38, + ( + 86 ) DIV + AVG ( + 88 ) * + COALESCE ( - + 97, - 94, - - 55 ), 70 )
----
-164

skipif mysql # not compatible
query I rowsort label-4107
SELECT + 23 * - + 6 - + + 23 - + 3 + MAX ( DISTINCT - 28 ) / COALESCE ( 38, + ( + 86 ) / + AVG ( + 88 ) * + COALESCE ( - + 97, - 94, - - 55 ), 70 )
----
-164

onlyif mysql # aggregate syntax: 
query I rowsort label-4108
SELECT 86 * + MIN( ALL - 21 )
----
-1806

skipif mysql # not compatible
query I rowsort label-4108
SELECT 86 * + MIN ( ALL - 21 )
----
-1806

query I rowsort
SELECT ALL - 95 + 11 AS col2
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4110
SELECT ALL + CAST( NULL AS SIGNED ) / 24 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4110
SELECT ALL + CAST ( NULL AS INTEGER ) / 24 AS col0
----
NULL

query I rowsort
SELECT ALL - - 93 + - 60 * - NULLIF ( 19, 22 + + 83 + 88 * - COALESCE ( - - ( 36 ), - 97 ) * + 28 * - - 81 + - + ( - 96 ) ) * - - 68 AS col0
----
77613

query I rowsort
SELECT ALL - 40 + - ( - 50 )
----
10

query I rowsort
SELECT DISTINCT + + 89 + + - 76
----
13

query II rowsort
SELECT - 89 col0, 20
----
-89
20

query II rowsort
SELECT DISTINCT - - 66, 37 AS col2
----
66
37

query III rowsort
SELECT + 21 col2, - 12 AS col2, + 5 AS col0
----
21
-12
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4117
SELECT NULLIF ( + 64, ( + SUM( - - 27 ) ) ) * - SUM( DISTINCT - - 66 ) + + 47
----
-4177

skipif mysql # not compatible
query I rowsort label-4117
SELECT NULLIF ( + 64, ( + SUM ( - - 27 ) ) ) * - SUM ( DISTINCT - - 66 ) + + 47
----
-4177

query I rowsort
SELECT 71 * - 98 AS col0
----
-6958

onlyif mysql # aggregate syntax: 
query I rowsort label-4119
SELECT ALL - NULLIF ( + 94, + COUNT( * ) ) AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-4119
SELECT ALL - NULLIF ( + 94, + COUNT ( * ) ) AS col2
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-4120
SELECT ALL COUNT( + 62 ) * + - 15
----
-15

skipif mysql # not compatible
query I rowsort label-4120
SELECT ALL COUNT ( + 62 ) * + - 15
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-4121
SELECT MIN( ALL + - 42 ) + - + 14 AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-4121
SELECT MIN ( ALL + - 42 ) + - + 14 AS col1
----
-56

query I rowsort
SELECT ALL + 22 * 25 col2
----
550

query I rowsort
SELECT DISTINCT + 5 - + - 11 + + - 22
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-4124
SELECT ALL 88 AS col1, + COUNT( * )
----
88
1

skipif mysql # not compatible
query II rowsort label-4124
SELECT ALL 88 AS col1, + COUNT ( * )
----
88
1

query I rowsort
SELECT - 63 * - ( - + 92 ) + - 68 AS col0
----
-5864

onlyif mysql # aggregate syntax: 
query I rowsort label-4126
SELECT COUNT( * ) + - - ( - 11 ) AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-4126
SELECT COUNT ( * ) + - - ( - 11 ) AS col0
----
-10

query I rowsort
SELECT 83 + + 42
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-4128
SELECT SUM( - ( - 81 ) ) * + + COUNT( * ) - 26
----
55

skipif mysql # not compatible
query I rowsort label-4128
SELECT SUM ( - ( - 81 ) ) * + + COUNT ( * ) - 26
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-4129
SELECT COUNT( * ) + 34 * + 21 * - 63 * COUNT( DISTINCT 3 ) AS col1, 34 + 29 + + 89 + + 85 * - - 43
----
-44981
3807

skipif mysql # not compatible
query II rowsort label-4129
SELECT COUNT ( * ) + 34 * + 21 * - 63 * COUNT ( DISTINCT 3 ) AS col1, 34 + 29 + + 89 + + 85 * - - 43
----
-44981
3807

query I rowsort
SELECT ALL 39 * + 50 AS col0
----
1950

onlyif mysql # DIV for integer division: 
query I rowsort label-4131
SELECT ALL - 60 DIV + 28 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-4131
SELECT ALL - 60 / + 28 AS col1
----
-2

query I rowsort
SELECT ALL ( + 64 ) * - 84 * - 45
----
241920

onlyif mysql # aggregate syntax: 
query I rowsort label-4133
SELECT NULLIF ( + 54, - CASE - + COUNT( * ) WHEN 87 THEN NULL WHEN + COUNT( * ) - 3 + + - ( + + 80 ) + - 0 * + NULLIF ( + - COUNT( * ), + 71 ) THEN + 96 ELSE NULL END ) + - + 69 * - 68 + + - 92 * - COALESCE ( + + 81, - 12 * - 35 + - ( 4 ) - - COUNT( * ) + - 86 * + 42 )
----
12198

skipif mysql # not compatible
query I rowsort label-4133
SELECT NULLIF ( + 54, - CASE - + COUNT ( * ) WHEN 87 THEN NULL WHEN + COUNT ( * ) - 3 + + - ( + + 80 ) + - 0 * + NULLIF ( + - COUNT ( * ), + 71 ) THEN + 96 ELSE NULL END ) + - + 69 * - 68 + + - 92 * - COALESCE ( + + 81, - 12 * - 35 + - ( 4 ) - - COUNT ( * ) + - 86 * + 42 )
----
12198

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4134
SELECT ALL + 76 * + - COUNT( * ) * - NULLIF ( + 90, + 1 * CAST( - 37 AS SIGNED ) + + COUNT( - + 38 ) + - 12 ) - + - CAST( NULL AS DECIMAL ) + + + 0 + + 74 / 37 * - 87 + - 23 * - 54 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4134
SELECT ALL + 76 * + - COUNT ( * ) * - NULLIF ( + 90, + 1 * CAST ( - 37 AS INTEGER ) + + COUNT ( - + 38 ) + - 12 ) - + - CAST ( NULL AS REAL ) + + + 0 + + 74 / 37 * - 87 + - 23 * - 54 col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4135
SELECT + ( - MIN( DISTINCT - + 29 ) ) DIV - - 99 - - + 13
----
13

skipif mysql # not compatible
query I rowsort label-4135
SELECT + ( - MIN ( DISTINCT - + 29 ) ) / - - 99 - - + 13
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4136
SELECT COALESCE ( CAST( NULL AS SIGNED ), + 58 * 59 DIV - COUNT( * ) ) * + + 35
----
-119770

skipif mysql # not compatible
query I rowsort label-4136
SELECT COALESCE ( CAST ( NULL AS INTEGER ), + 58 * 59 / - COUNT ( * ) ) * + + 35
----
-119770

query I rowsort
SELECT + 46 + - 71 AS col2
----
-25

query II rowsort
SELECT - 38 col1, 26 * 20
----
-38
520

query I rowsort
SELECT - 13 * 84 * 20 AS col1
----
-21840

query I rowsort
SELECT DISTINCT - - COALESCE ( 99, - 1 * - 28 * - 83 ) + - 73 + + 78 col2
----
104

query II rowsort
SELECT 11 AS col2, ( + 10 )
----
11
10

query I rowsort
SELECT DISTINCT + NULLIF ( 26, + 56 * - + 29 ) * + 61 AS col1
----
1586

onlyif mysql # aggregate syntax: 
query I rowsort label-4143
SELECT - MIN( 35 )
----
-35

skipif mysql # not compatible
query I rowsort label-4143
SELECT - MIN ( 35 )
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-4144
SELECT DISTINCT 37 * - 22 * + 46 * - COUNT( * ) col0
----
37444

skipif mysql # not compatible
query I rowsort label-4144
SELECT DISTINCT 37 * - 22 * + 46 * - COUNT ( * ) col0
----
37444

query I rowsort
SELECT ALL - 8 * + 40 * 25 * - - 93 + - 89 AS col2
----
-744089

onlyif mysql # aggregate syntax: 
query I rowsort label-4146
SELECT ALL COUNT( * ) * + 59 + + 8 AS col0
----
67

skipif mysql # not compatible
query I rowsort label-4146
SELECT ALL COUNT ( * ) * + 59 + + 8 AS col0
----
67

query II rowsort
SELECT + 46, - 29 AS col2
----
46
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-4148
SELECT - COUNT( * ) / - 99 * - + 34 - + 58 - + + CASE + - COUNT( * ) WHEN - - 17 - 70 THEN + 32 END * - 37
----
NULL

skipif mysql # not compatible
query I rowsort label-4148
SELECT - COUNT ( * ) / - 99 * - + 34 - + 58 - + + CASE + - COUNT ( * ) WHEN - - 17 - 70 THEN + 32 END * - 37
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4149
SELECT ALL - - 82 col2, + 58 DIV + 54 DIV COUNT( * )
----
82
1

skipif mysql # not compatible
query II rowsort label-4149
SELECT ALL - - 82 col2, + 58 / + 54 / COUNT ( * )
----
82
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4150
SELECT DISTINCT - NULLIF ( - 71, COUNT( * ) * - + 57 ) AS col0
----
71

skipif mysql # not compatible
query I rowsort label-4150
SELECT DISTINCT - NULLIF ( - 71, COUNT ( * ) * - + 57 ) AS col0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4151
SELECT ALL 22 * 52 - - MIN( 11 )
----
1155

skipif mysql # not compatible
query I rowsort label-4151
SELECT ALL 22 * 52 - - MIN ( 11 )
----
1155

query I rowsort
SELECT ALL + ( - + 41 ) AS col2
----
-41

query I rowsort
SELECT ALL - 36 - - + NULLIF ( + 65, + + 96 * - AVG ( ALL - 8 ) ) AS col0
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4154
SELECT - COUNT( * ) DIV + MAX( ALL + 68 ) * + 91 * + 16
----
0

skipif mysql # not compatible
query I rowsort label-4154
SELECT - COUNT ( * ) / + MAX ( ALL + 68 ) * + 91 * + 16
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4155
SELECT - SUM( DISTINCT - CAST( - 62 AS SIGNED ) ) * + 68 - - 33 - ( - ( + ( + 36 ) ) ) AS col0
----
-4147

skipif mysql # not compatible
query I rowsort label-4155
SELECT - SUM ( DISTINCT - CAST ( - 62 AS INTEGER ) ) * + 68 - - 33 - ( - ( + ( + 36 ) ) ) AS col0
----
-4147

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4156
SELECT DISTINCT - 46 DIV 80 * - + MAX( DISTINCT - 51 ) * - - 92 DIV - - ( - + 34 ) - + 97 * - - 89
----
-8633

skipif mysql # not compatible
query I rowsort label-4156
SELECT DISTINCT - 46 / 80 * - + MAX ( DISTINCT - 51 ) * - - 92 / - - ( - + 34 ) - + 97 * - - 89
----
-8633

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4157
SELECT ALL + ( + 43 ), + CAST( + 9 AS SIGNED ) DIV - 6 AS col0
----
43
-1

skipif mysql # not compatible
query II rowsort label-4157
SELECT ALL + ( + 43 ), + CAST ( + 9 AS INTEGER ) / - 6 AS col0
----
43
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4158
SELECT ALL + COUNT( - COALESCE ( 97, + + 39 ) )
----
1

skipif mysql # not compatible
query I rowsort label-4158
SELECT ALL + COUNT ( - COALESCE ( 97, + + 39 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4159
SELECT DISTINCT 98 * ( + + COUNT( * ) ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-4159
SELECT DISTINCT 98 * ( + + COUNT ( * ) ) AS col1
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4160
SELECT DISTINCT - 74 * + COUNT( * )
----
-74

skipif mysql # not compatible
query I rowsort label-4160
SELECT DISTINCT - 74 * + COUNT ( * )
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4161
SELECT - 21 * - CAST( NULL AS SIGNED ) / - 24 AS col1, 21 - + - 71
----
NULL
92

skipif mysql # not compatible
query II rowsort label-4161
SELECT - 21 * - CAST ( NULL AS INTEGER ) / - 24 AS col1, 21 - + - 71
----
NULL
92

query I rowsort
SELECT ALL - 56 * + ( - 38 ) AS col1
----
2128

query I rowsort
SELECT ALL CASE + 31 WHEN + COALESCE ( - 39, + 45 * + 54 + 19 ) * + - 7 THEN + 36 END col2
----
NULL

query I rowsort
SELECT - 9 + 98 * - 89 AS col2
----
-8731

query I rowsort
SELECT - 85 * 4 * 75 AS col0
----
-25500

query I rowsort
SELECT + 91 * + 9
----
819

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4167
SELECT - 70 - + 89 + + 54 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4167
SELECT - 70 - + 89 + + 54 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 84 + + + 14 + 87 AS col0
----
17

query I rowsort
SELECT DISTINCT + - 97 + 38
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-4170
SELECT ALL - MAX( + - 1 ) * - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-4170
SELECT ALL - MAX ( + - 1 ) * - COUNT ( * )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4171
SELECT DISTINCT - CASE - 62 WHEN - 19 * + 36 + + 35 + 87 * - + 29 THEN - - 24 * + 43 + + 58 + COALESCE ( + 58, + + CAST( NULL AS SIGNED ), + SUM( + NULLIF ( - + 20, - 53 ) ) - - - 46 - - CAST( + + 75 AS SIGNED ) * - + 15 ) * - + 48 ELSE NULL END + + 94 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4171
SELECT DISTINCT - CASE - 62 WHEN - 19 * + 36 + + 35 + 87 * - + 29 THEN - - 24 * + 43 + + 58 + COALESCE ( + 58, + + CAST ( NULL AS INTEGER ), + SUM ( + NULLIF ( - + 20, - 53 ) ) - - - 46 - - CAST ( + + 75 AS INTEGER ) * - + 15 ) * - + 48 ELSE NULL END + + 94 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4172
SELECT ALL - COALESCE ( - + 57, + 54 DIV - 16 ) + CAST( + NULLIF ( + - ( - 4 ), - MIN( - 86 ) ) AS SIGNED ) + + - COUNT( * ) AS col2
----
60

skipif mysql # not compatible
query I rowsort label-4172
SELECT ALL - COALESCE ( - + 57, + 54 / - 16 ) + CAST ( + NULLIF ( + - ( - 4 ), - MIN ( - 86 ) ) AS INTEGER ) + + - COUNT ( * ) AS col2
----
60

onlyif mysql # DIV for integer division: 
query II rowsort label-4173
SELECT + - 9 - + - 61 AS col2, 65 DIV - 90 AS col2
----
52
0

skipif mysql # not compatible
query II rowsort label-4173
SELECT + - 9 - + - 61 AS col2, 65 / - 90 AS col2
----
52
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4174
SELECT + + COUNT( * ) - + - 48
----
49

skipif mysql # not compatible
query I rowsort label-4174
SELECT + + COUNT ( * ) - + - 48
----
49

query II rowsort
SELECT DISTINCT + 71 * + + 57 AS col1, 87 AS col1
----
4047
87

query I rowsort
SELECT DISTINCT 25 * 86
----
2150

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4177
SELECT ALL - MIN( - 30 ) DIV + + 5 + 81 + + 94 * - 9 * - 62 AS col1
----
52539

skipif mysql # not compatible
query I rowsort label-4177
SELECT ALL - MIN ( - 30 ) / + + 5 + 81 + + 94 * - 9 * - 62 AS col1
----
52539

onlyif mysql # aggregate syntax: 
query I rowsort label-4178
SELECT + MAX( ALL + + 2 )
----
2

skipif mysql # not compatible
query I rowsort label-4178
SELECT + MAX ( ALL + + 2 )
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4179
SELECT ALL - ( - COUNT( * ) ) DIV + + COUNT( * ) + 80
----
81

skipif mysql # not compatible
query I rowsort label-4179
SELECT ALL - ( - COUNT ( * ) ) / + + COUNT ( * ) + 80
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-4180
SELECT ALL + SUM( DISTINCT + 37 ), 2 * - 54 AS col1
----
37
-108

skipif mysql # not compatible
query II rowsort label-4180
SELECT ALL + SUM ( DISTINCT + 37 ), 2 * - 54 AS col1
----
37
-108

query I rowsort
SELECT ALL - 56 * 21 + + 94 - 82 * + 46 - - - 61
----
-4915

query I rowsort
SELECT ALL - 59 * - + 98 * 10 AS col1
----
57820

onlyif mysql # aggregate syntax: 
query II rowsort label-4183
SELECT DISTINCT - MAX( DISTINCT + 78 ) * COUNT( * ) * - 74, + 11 AS col1
----
5772
11

skipif mysql # not compatible
query II rowsort label-4183
SELECT DISTINCT - MAX ( DISTINCT + 78 ) * COUNT ( * ) * - 74, + 11 AS col1
----
5772
11

query I rowsort
SELECT - 88 + 62 + 63 AS col2
----
37

query I rowsort
SELECT + 99 * 92 AS col2
----
9108

onlyif mysql # aggregate syntax: 
query I rowsort label-4186
SELECT - 5 * - - 45 * COUNT( + + 25 ) col1
----
-225

skipif mysql # not compatible
query I rowsort label-4186
SELECT - 5 * - - 45 * COUNT ( + + 25 ) col1
----
-225

onlyif mysql # aggregate syntax: 
query I rowsort label-4187
SELECT ALL + SUM( + + 33 ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-4187
SELECT ALL + SUM ( + + 33 ) AS col2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4188
SELECT COALESCE ( - COUNT( * ), 71 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4188
SELECT COALESCE ( - COUNT ( * ), 71 ) AS col0
----
-1

query I rowsort
SELECT CASE - 38 WHEN - - ( - 98 ) * - + 80 THEN + 88 END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4190
SELECT - 57 DIV - - COUNT( * )
----
-57

skipif mysql # not compatible
query I rowsort label-4190
SELECT - 57 / - - COUNT ( * )
----
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-4191
SELECT + 69 + + - 96 * - COUNT( * ) AS col0, - 60 AS col2
----
165
-60

skipif mysql # not compatible
query II rowsort label-4191
SELECT + 69 + + - 96 * - COUNT ( * ) AS col0, - 60 AS col2
----
165
-60

query I rowsort
SELECT ALL 75 * + + 24
----
1800

query I rowsort
SELECT ALL + ( + NULLIF ( 4, 15 ) ) AS col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4194
SELECT - 45 + CASE WHEN NOT 85 BETWEEN - 53 AND + - 35 * + + 83 THEN - - ( + 93 ) WHEN NOT 7 = 36 + + 54 + - ( + COUNT( * ) ) - - 8 THEN + 20 * 38 - + 97 + CASE 25 WHEN - + COUNT( * ) THEN - 40 + - + 85 END END
----
48

skipif mysql # not compatible
query I rowsort label-4194
SELECT - 45 + CASE WHEN NOT 85 BETWEEN - 53 AND + - 35 * + + 83 THEN - - ( + 93 ) WHEN NOT 7 = 36 + + 54 + - ( + COUNT ( * ) ) - - 8 THEN + 20 * 38 - + 97 + CASE 25 WHEN - + COUNT ( * ) THEN - 40 + - + 85 END END
----
48

query I rowsort
SELECT DISTINCT 10 * 86
----
860

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4196
SELECT DISTINCT + 53 AS col2, + 62 * COALESCE ( 93, - 87 * + - COUNT( * ) * - 27, + 72 * CAST( NULL AS SIGNED ) ) AS col0
----
53
5766

skipif mysql # not compatible
query II rowsort label-4196
SELECT DISTINCT + 53 AS col2, + 62 * COALESCE ( 93, - 87 * + - COUNT ( * ) * - 27, + 72 * CAST ( NULL AS INTEGER ) ) AS col0
----
53
5766

query I rowsort
SELECT - 39 + + 4 - - ( - 95 ) AS col1
----
-130

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4198
SELECT + 9 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4198
SELECT + 9 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4199
SELECT 97 * - 40 + + + 86 + + 28 DIV - 64 * - 30 * - - 33 + - 3 + - - 31
----
-3766

skipif mysql # not compatible
query I rowsort label-4199
SELECT 97 * - 40 + + + 86 + + 28 / - 64 * - 30 * - - 33 + - 3 + - - 31
----
-3766

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4200
SELECT + 86 DIV - COUNT( * ) AS col0
----
-86

skipif mysql # not compatible
query I rowsort label-4200
SELECT + 86 / - COUNT ( * ) AS col0
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4201
SELECT - 3 + COALESCE ( + + CASE - AVG ( + 40 ) WHEN - CAST( NULL AS SIGNED ) + + - 47 + + 59 + 78 THEN - 5 * - + 57 - 10 END, + - CAST( NULL AS SIGNED ) * + 45 / + 86 * CASE + + ( + 23 ) WHEN + + 75 THEN NULL WHEN - - 10 THEN NULL WHEN ( - 33 ) THEN NULL ELSE 45 * + - 6 END - - COALESCE ( - ( + 7 ), - + 7 ) ) + + + 85 - CAST( NULL AS SIGNED ) * - COUNT( * ) + - - 88 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4201
SELECT - 3 + COALESCE ( + + CASE - AVG ( + 40 ) WHEN - CAST ( NULL AS INTEGER ) + + - 47 + + 59 + 78 THEN - 5 * - + 57 - 10 END, + - CAST ( NULL AS INTEGER ) * + 45 / + 86 * CASE + + ( + 23 ) WHEN + + 75 THEN NULL WHEN - - 10 THEN NULL WHEN ( - 33 ) THEN NULL ELSE 45 * + - 6 END - - COALESCE ( - ( + 7 ), - + 7 ) ) + + + 85 - CAST ( NULL AS INTEGER ) * - COUNT ( * ) + - - 88 AS col1
----
NULL

query I rowsort
SELECT - 68 + - 4 col0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-4203
SELECT - 79 + + - COUNT( * ) * + MAX( ALL - 83 )
----
4

skipif mysql # not compatible
query I rowsort label-4203
SELECT - 79 + + - COUNT ( * ) * + MAX ( ALL - 83 )
----
4

query I rowsort
SELECT - - 74 + 10 * 18 + 37 * 9 + - 23 AS col2
----
564

query I rowsort
SELECT DISTINCT - 68 * + 58 + + 21
----
-3923

query I rowsort
SELECT ALL - + 24 * - 74
----
1776

query I rowsort
SELECT - + 30 * 65
----
-1950

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4208
SELECT ALL - COUNT( * ) + 93 DIV + + COUNT( * ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-4208
SELECT ALL - COUNT ( * ) + 93 / + + COUNT ( * ) AS col2
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-4209
SELECT DISTINCT - ( - + 4 ) * - COUNT( * ), CAST( NULL AS SIGNED ) AS col0, - 91 AS col1
----
-4
NULL
-91

skipif mysql # not compatible
query III rowsort label-4209
SELECT DISTINCT - ( - + 4 ) * - COUNT ( * ), CAST ( NULL AS INTEGER ) AS col0, - 91 AS col1
----
-4
NULL
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4210
SELECT - ( 34 ) + CAST( 20 AS SIGNED )
----
-14

skipif mysql # not compatible
query I rowsort label-4210
SELECT - ( 34 ) + CAST ( 20 AS INTEGER )
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-4211
SELECT ALL - MAX( - + 96 ) * + 34 * - ( - 81 )
----
264384

skipif mysql # not compatible
query I rowsort label-4211
SELECT ALL - MAX ( - + 96 ) * + 34 * - ( - 81 )
----
264384

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4212
SELECT DISTINCT + ( 21 ) + + COUNT( * ) DIV + + 2 AS col0
----
21

skipif mysql # not compatible
query I rowsort label-4212
SELECT DISTINCT + ( 21 ) + + COUNT ( * ) / + + 2 AS col0
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4213
SELECT - 70 * + - 55 + - CAST( NULL AS SIGNED ) * + 67 / - 26 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4213
SELECT - 70 * + - 55 + - CAST ( NULL AS INTEGER ) * + 67 / - 26 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4214
SELECT - - 33 AS col1, SUM( ALL + CAST( - 95 AS SIGNED ) ) DIV - ( + + 44 ) + COALESCE ( COUNT( * ), 55 ) - - + 70 - + 86
----
33
-13

skipif mysql # not compatible
query II rowsort label-4214
SELECT - - 33 AS col1, SUM ( ALL + CAST ( - 95 AS INTEGER ) ) / - ( + + 44 ) + COALESCE ( COUNT ( * ), 55 ) - - + 70 - + 86
----
33
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4215
SELECT + ( + MIN( ALL - - 91 ) ) + + + COALESCE ( COALESCE ( - 65, + AVG ( + 33 ) * 42 DIV MAX( + ( - - 33 ) ), - ( + 52 ) ), + 49 * + 8, + + MIN( ALL - + 58 ) ) AS col1, 62 * 38
----
26
2356

skipif mysql # not compatible
query II rowsort label-4215
SELECT + ( + MIN ( ALL - - 91 ) ) + + + COALESCE ( COALESCE ( - 65, + AVG ( + 33 ) * 42 / MAX ( + ( - - 33 ) ), - ( + 52 ) ), + 49 * + 8, + + MIN ( ALL - + 58 ) ) AS col1, 62 * 38
----
26
2356

query I rowsort
SELECT ALL + - 20 - - 70
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-4217
SELECT + COUNT( * ), 18 * - 93 AS col0
----
1
-1674

skipif mysql # not compatible
query II rowsort label-4217
SELECT + COUNT ( * ), 18 * - 93 AS col0
----
1
-1674

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4218
SELECT - - 3 DIV 15 + + + 32 * + 5 + 8 + - ( - COUNT( ALL - ( + + 18 ) ) )
----
169

skipif mysql # not compatible
query I rowsort label-4218
SELECT - - 3 / 15 + + + 32 * + 5 + 8 + - ( - COUNT ( ALL - ( + + 18 ) ) )
----
169

query I rowsort
SELECT - + 86 + - 38 col1
----
-124

onlyif mysql # aggregate syntax: 
query I rowsort label-4220
SELECT - + MAX( - 37 )
----
37

skipif mysql # not compatible
query I rowsort label-4220
SELECT - + MAX ( - 37 )
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-4221
SELECT ALL + + 15 DIV 91
----
0

skipif mysql # not compatible
query I rowsort label-4221
SELECT ALL + + 15 / 91
----
0

query I rowsort
SELECT 79 * ( + 99 )
----
7821

query I rowsort
SELECT 70 + 34 + + + 23 col1
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-4224
SELECT - 51 * 53 + + COUNT( * )
----
-2702

skipif mysql # not compatible
query I rowsort label-4224
SELECT - 51 * 53 + + COUNT ( * )
----
-2702

query I rowsort
SELECT ALL 70 * - - 79 AS col2
----
5530

query II rowsort
SELECT 22 * - - 10, + ( + - 87 ) + - 7 * + 92 AS col0
----
220
-731

query I rowsort
SELECT 5 - + 79 AS col1
----
-74

query I rowsort
SELECT ALL 34 * + + 9 AS col2
----
306

onlyif mysql # aggregate syntax: 
query I rowsort label-4229
SELECT COUNT( * ) * - ( - 56 ) - + MAX( - 34 ) + 45
----
135

skipif mysql # not compatible
query I rowsort label-4229
SELECT COUNT ( * ) * - ( - 56 ) - + MAX ( - 34 ) + 45
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-4230
SELECT ALL 98 + + 6 * 36 + - - 67 + COUNT( * ) + 10 * MIN( DISTINCT - + 49 )
----
-108

skipif mysql # not compatible
query I rowsort label-4230
SELECT ALL 98 + + 6 * 36 + - - 67 + COUNT ( * ) + 10 * MIN ( DISTINCT - + 49 )
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-4231
SELECT 62 * - COUNT( * ) AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-4231
SELECT 62 * - COUNT ( * ) AS col0
----
-62

query I rowsort
SELECT DISTINCT ( + 39 ) * - + 80 * - 44 - 60
----
137220

query I rowsort
SELECT DISTINCT + 84 + - 62
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4234
SELECT DISTINCT - COUNT( + 2 ) * + 55
----
-55

skipif mysql # not compatible
query I rowsort label-4234
SELECT DISTINCT - COUNT ( + 2 ) * + 55
----
-55

query I rowsort
SELECT ALL + + 60 + ( 63 )
----
123

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4236
SELECT 55 + - 25 + - COALESCE ( + NULLIF ( + 85, + COUNT( * ) ), + - CASE - 96 WHEN 19 THEN + + 54 ELSE - 94 - + + 51 END * - 55 * + 53 * - + ( - 84 ), - 49 ) * - CAST( NULL AS SIGNED ) * - 88 / - + 58
----
NULL

skipif mysql # not compatible
query I rowsort label-4236
SELECT 55 + - 25 + - COALESCE ( + NULLIF ( + 85, + COUNT ( * ) ), + - CASE - 96 WHEN 19 THEN + + 54 ELSE - 94 - + + 51 END * - 55 * + 53 * - + ( - 84 ), - 49 ) * - CAST ( NULL AS INTEGER ) * - 88 / - + 58
----
NULL

query I rowsort
SELECT 86 * + + 85 * - ( - ( - 51 ) )
----
-372810

onlyif mysql # aggregate syntax: 
query I rowsort label-4238
SELECT + 68 + 95 + - MIN( DISTINCT - 38 ) + 37
----
238

skipif mysql # not compatible
query I rowsort label-4238
SELECT + 68 + 95 + - MIN ( DISTINCT - 38 ) + 37
----
238

query I rowsort
SELECT 78 + - 2 + + 24
----
100

query II rowsort
SELECT ALL - 63 * - 57, 1 - + + 47 AS col0
----
3591
-46

query I rowsort
SELECT + 9 + + 65 + 49 AS col0
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-4242
SELECT DISTINCT + COUNT( * ) * + 18
----
18

skipif mysql # not compatible
query I rowsort label-4242
SELECT DISTINCT + COUNT ( * ) * + 18
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4243
SELECT 35 * + MIN( ALL 69 ) AS col2
----
2415

skipif mysql # not compatible
query I rowsort label-4243
SELECT 35 * + MIN ( ALL 69 ) AS col2
----
2415

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4244
SELECT - 75 + + + COALESCE ( + 36, + - COUNT( * ) DIV COUNT( * ) )
----
-39

skipif mysql # not compatible
query I rowsort label-4244
SELECT - 75 + + + COALESCE ( + 36, + - COUNT ( * ) / COUNT ( * ) )
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4245
SELECT 94 + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4245
SELECT 94 + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4246
SELECT - CASE WHEN NOT 85 NOT IN ( - CAST( NULL AS SIGNED ) * + + 25 + - ( NULLIF ( - 16, 48 * - 77 + + - 35 - 77 + - + 30 ) ), 49, ( - 11 ) + 83 + + CASE + 65 WHEN + + COALESCE ( 46, + 14 ) THEN 34 END, - COUNT( * ), + 9, - 11, 67 ) THEN + 68 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4246
SELECT - CASE WHEN NOT 85 NOT IN ( - CAST ( NULL AS INTEGER ) * + + 25 + - ( NULLIF ( - 16, 48 * - 77 + + - 35 - 77 + - + 30 ) ), 49, ( - 11 ) + 83 + + CASE + 65 WHEN + + COALESCE ( 46, + 14 ) THEN 34 END, - COUNT ( * ), + 9, - 11, 67 ) THEN + 68 END
----
NULL

query I rowsort
SELECT ALL - ( - + 69 )
----
69

query I rowsort
SELECT 96 + + - 43 AS col1
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4249
SELECT DISTINCT NULLIF ( + ( - 74 ), - 50 + - NULLIF ( - + 51, - 28 ) * - COUNT( * ) * - 92 ) + - COUNT( * ) DIV - 33 AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-4249
SELECT DISTINCT NULLIF ( + ( - 74 ), - 50 + - NULLIF ( - + 51, - 28 ) * - COUNT ( * ) * - 92 ) + - COUNT ( * ) / - 33 AS col2
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4250
SELECT - 84 * - 96 + - - 61 AS col0, 51 * + CAST( NULL AS SIGNED ) AS col1
----
8125
NULL

skipif mysql # not compatible
query II rowsort label-4250
SELECT - 84 * - 96 + - - 61 AS col0, 51 * + CAST ( NULL AS INTEGER ) AS col1
----
8125
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4251
SELECT DISTINCT - 44 col1, 12 * 34 * + 32 + COALESCE ( + ( 8 ), + + 43, ( + - 88 ) - - 76 ) * - 29 DIV - COUNT( * ) - + CASE - 42 WHEN - AVG ( + 52 ) + 71 THEN CASE - COUNT( * ) WHEN + 98 THEN 98 WHEN - CAST( NULL AS SIGNED ) THEN - 64 WHEN - COUNT( * ) THEN - 77 END ELSE + COALESCE ( + COUNT( * ), + COUNT( + 61 ) * - 41 + - 47 * - 66, 85 + 14 ) + + - 35 END AS col1
----
-44
13322

skipif mysql # not compatible
query II rowsort label-4251
SELECT DISTINCT - 44 col1, 12 * 34 * + 32 + COALESCE ( + ( 8 ), + + 43, ( + - 88 ) - - 76 ) * - 29 / - COUNT ( * ) - + CASE - 42 WHEN - AVG ( + 52 ) + 71 THEN CASE - COUNT ( * ) WHEN + 98 THEN 98 WHEN - CAST ( NULL AS INTEGER ) THEN - 64 WHEN - COUNT ( * ) THEN - 77 END ELSE + COALESCE ( + COUNT ( * ), + COUNT ( + 61 ) * - 41 + - 47 * - 66, 85 + 14 ) + + - 35 END AS col1
----
-44
13322

onlyif mysql # aggregate syntax: 
query I rowsort label-4252
SELECT DISTINCT ( + COUNT( * ) ) + + CASE 60 WHEN 43 THEN - 74 END * 6
----
NULL

skipif mysql # not compatible
query I rowsort label-4252
SELECT DISTINCT ( + COUNT ( * ) ) + + CASE 60 WHEN 43 THEN - 74 END * 6
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4253
SELECT DISTINCT CAST( 9 AS SIGNED ) * - 18 * 43 AS col1
----
-6966

skipif mysql # not compatible
query I rowsort label-4253
SELECT DISTINCT CAST ( 9 AS INTEGER ) * - 18 * 43 AS col1
----
-6966

onlyif mysql # DIV for integer division: 
query I rowsort label-4254
SELECT 2 DIV 81 col0
----
0

skipif mysql # not compatible
query I rowsort label-4254
SELECT 2 / 81 col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4255
SELECT ( + 50 ) DIV + - COALESCE ( 1, - - 27 + - COUNT( * ) * COUNT( * ) * + + 63 * - - 29 * - 53 ) * - + COUNT( * )
----
50

skipif mysql # not compatible
query I rowsort label-4255
SELECT ( + 50 ) / + - COALESCE ( 1, - - 27 + - COUNT ( * ) * COUNT ( * ) * + + 63 * - - 29 * - 53 ) * - + COUNT ( * )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4256
SELECT 21 * - - ( COUNT( 67 ) ) AS col2
----
21

skipif mysql # not compatible
query I rowsort label-4256
SELECT 21 * - - ( COUNT ( 67 ) ) AS col2
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-4257
SELECT + COUNT( * ) AS col2, - 94 * - - 34 AS col2
----
1
-3196

skipif mysql # not compatible
query II rowsort label-4257
SELECT + COUNT ( * ) AS col2, - 94 * - - 34 AS col2
----
1
-3196

onlyif mysql # DIV for integer division: 
query I rowsort label-4258
SELECT 62 - - + 73 DIV + - 77 + + - 13
----
49

skipif mysql # not compatible
query I rowsort label-4258
SELECT 62 - - + 73 / + - 77 + + - 13
----
49

onlyif mysql # aggregate syntax: 
query II rowsort label-4259
SELECT COUNT( * ) + + - ( 43 ) * - ( 9 ), + 70 AS col2
----
388
70

skipif mysql # not compatible
query II rowsort label-4259
SELECT COUNT ( * ) + + - ( 43 ) * - ( 9 ), + 70 AS col2
----
388
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4260
SELECT DISTINCT + ( + 17 ) * + COUNT( * ) + 1 AS col2
----
18

skipif mysql # not compatible
query I rowsort label-4260
SELECT DISTINCT + ( + 17 ) * + COUNT ( * ) + 1 AS col2
----
18

query I rowsort
SELECT ALL 44 + - 17 AS col2
----
27

query I rowsort
SELECT + 72 + - 84 AS col1
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4263
SELECT DISTINCT MIN( DISTINCT + 95 ) - 95 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4263
SELECT DISTINCT MIN ( DISTINCT + 95 ) - 95 AS col2
----
0

query I rowsort
SELECT ALL - 16 - + 66
----
-82

query I rowsort
SELECT - - CASE - - 41 WHEN + 37 THEN + 72 ELSE NULL END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4266
SELECT ( 32 ) + COUNT( * ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-4266
SELECT ( 32 ) + COUNT ( * ) AS col2
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4267
SELECT - 22 * + CASE + COALESCE ( - COUNT( * ), + 64 + COUNT( * ) * - + COUNT( * ) * COUNT( * ) * - 0 ) WHEN + 4 THEN NULL WHEN + 57 THEN NULL WHEN + + MAX( ALL - - CASE + 61 WHEN + 23 THEN NULL WHEN - 3 / + 61 + - 4 * + 75 + + 96 THEN + 16 ELSE + - 78 END ) + + 20 THEN - - COALESCE ( + - 41, - 89 + - - 93 + + + 86 + + 31 * + 96 + + + CAST( 45 AS DECIMAL ) / ( + CAST( NULL AS SIGNED ) ) * MAX( + 2 ) * + - 87 / + 30 + + COUNT( * ) + 34 * - 71 / + + 90 ) / - 99 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4267
SELECT - 22 * + CASE + COALESCE ( - COUNT ( * ), + 64 + COUNT ( * ) * - + COUNT ( * ) * COUNT ( * ) * - 0 ) WHEN + 4 THEN NULL WHEN + 57 THEN NULL WHEN + + MAX ( ALL - - CASE + 61 WHEN + 23 THEN NULL WHEN - 3 / + 61 + - 4 * + 75 + + 96 THEN + 16 ELSE + - 78 END ) + + 20 THEN - - COALESCE ( + - 41, - 89 + - - 93 + + + 86 + + 31 * + 96 + + + CAST ( 45 AS REAL ) / ( + CAST ( NULL AS INTEGER ) ) * MAX ( + 2 ) * + - 87 / + 30 + + COUNT ( * ) + 34 * - 71 / + + 90 ) / - 99 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT 92 * 74 * - - 12 * + + 23
----
1879008

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4269
SELECT ALL - COALESCE ( - 72, - 77 * - 73 + + 70 DIV + COUNT( * ), COUNT( * ) )
----
72

skipif mysql # not compatible
query I rowsort label-4269
SELECT ALL - COALESCE ( - 72, - 77 * - 73 + + 70 / + COUNT ( * ), COUNT ( * ) )
----
72

query I rowsort
SELECT + - 70 * + 14 - + 67 + - 43 - 82 + 83 - 6
----
-1095

onlyif mysql # aggregate syntax: 
query I rowsort label-4271
SELECT ALL MAX( 8 ) AS col1
----
8

skipif mysql # not compatible
query I rowsort label-4271
SELECT ALL MAX ( 8 ) AS col1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4272
SELECT + + 95 * COUNT( * ) + + ( - 90 ) + + 43 + - 41 * 55 AS col2
----
-2207

skipif mysql # not compatible
query I rowsort label-4272
SELECT + + 95 * COUNT ( * ) + + ( - 90 ) + + 43 + - 41 * 55 AS col2
----
-2207

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4273
SELECT + 7 * - 79 * + 69 DIV COUNT( * ) + 85 * + - 21 + 97 + + 40 * + 96 * - 32 AS col2, - ( + + 18 ) + + - 88
----
-162725
-106

skipif mysql # not compatible
query II rowsort label-4273
SELECT + 7 * - 79 * + 69 / COUNT ( * ) + 85 * + - 21 + 97 + + 40 * + 96 * - 32 AS col2, - ( + + 18 ) + + - 88
----
-162725
-106

query I rowsort
SELECT - NULLIF ( + 3, + 72 )
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4275
SELECT - + 45 + 90 * + 4 * - CAST( - CAST( - 47 AS SIGNED ) AS SIGNED ) AS col2
----
-16965

skipif mysql # not compatible
query I rowsort label-4275
SELECT - + 45 + 90 * + 4 * - CAST ( - CAST ( - 47 AS INTEGER ) AS INTEGER ) AS col2
----
-16965

onlyif mysql # aggregate syntax: 
query I rowsort label-4276
SELECT DISTINCT SUM( - - 65 )
----
65

skipif mysql # not compatible
query I rowsort label-4276
SELECT DISTINCT SUM ( - - 65 )
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-4277
SELECT ALL - + 48 DIV - ( - + 63 ) * - 51
----
0

skipif mysql # not compatible
query I rowsort label-4277
SELECT ALL - + 48 / - ( - + 63 ) * - 51
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4278
SELECT ALL + COUNT( * ) + - COALESCE ( - + 11, + - COUNT( 33 ) ) - + 1 AS col1
----
11

skipif mysql # not compatible
query I rowsort label-4278
SELECT ALL + COUNT ( * ) + - COALESCE ( - + 11, + - COUNT ( 33 ) ) - + 1 AS col1
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-4279
SELECT ALL 71, MIN( ALL - 98 ) * + 47 + 60 - SUM( + 10 ) AS col2
----
71
-4556

skipif mysql # not compatible
query II rowsort label-4279
SELECT ALL 71, MIN ( ALL - 98 ) * + 47 + 60 - SUM ( + 10 ) AS col2
----
71
-4556

query I rowsort
SELECT - 70 * + 6 AS col2
----
-420

query I rowsort
SELECT DISTINCT + ( - 25 ) + + ( - 41 )
----
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4282
SELECT ALL COALESCE ( 21, - COUNT( * ) DIV 93 + - COUNT( * ) ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-4282
SELECT ALL COALESCE ( 21, - COUNT ( * ) / 93 + - COUNT ( * ) ) AS col0
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-4283
SELECT ALL - 39 * 52 + + 83 + + 59 DIV 90
----
-1945

skipif mysql # not compatible
query I rowsort label-4283
SELECT ALL - 39 * 52 + + 83 + + 59 / 90
----
-1945

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4284
SELECT ALL - 72 * + CASE - 71 WHEN - 99 * - 87 + 48 + + 45 * 4 * + 93 THEN NULL WHEN CAST( - 81 AS DECIMAL ) THEN + 14 + - 98 * - + 89 / + 26 - - + ( - - 45 ) * - - ( COUNT( * ) ) + - 1 ELSE NULL END + + 25 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4284
SELECT ALL - 72 * + CASE - 71 WHEN - 99 * - 87 + 48 + + 45 * 4 * + 93 THEN NULL WHEN CAST ( - 81 AS REAL ) THEN + 14 + - 98 * - + 89 / + 26 - - + ( - - 45 ) * - - ( COUNT ( * ) ) + - 1 ELSE NULL END + + 25 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4285
SELECT DISTINCT - 95 * + COUNT( * ) + + + 23 AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-4285
SELECT DISTINCT - 95 * + COUNT ( * ) + + + 23 AS col2
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4286
SELECT 2 * - - 7 + - + COALESCE ( - 22, - + 98 * + CAST( + 21 AS SIGNED ), - ( + 0 ) ), - 55 * 15 * 96 * - COALESCE ( + 81, - CAST( + + 92 AS SIGNED ) + - 92 + + + 1, - SUM( - 64 ) ) AS col2
----
36
6415200

skipif mysql # not compatible
query II rowsort label-4286
SELECT 2 * - - 7 + - + COALESCE ( - 22, - + 98 * + CAST ( + 21 AS INTEGER ), - ( + 0 ) ), - 55 * 15 * 96 * - COALESCE ( + 81, - CAST ( + + 92 AS INTEGER ) + - 92 + + + 1, - SUM ( - 64 ) ) AS col2
----
36
6415200

query I rowsort
SELECT DISTINCT - 45 * - - 62 + 56 - 32
----
-2766

onlyif mysql # aggregate syntax: 
query I rowsort label-4288
SELECT COALESCE ( MAX( DISTINCT 26 ), - 81 + + 52 ) col0
----
26

skipif mysql # not compatible
query I rowsort label-4288
SELECT COALESCE ( MAX ( DISTINCT 26 ), - 81 + + 52 ) col0
----
26

query I rowsort
SELECT NULLIF ( - + 33, - 92 * 66 * 22 + - + ( + 10 ) + ( 80 ) ) AS col1
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-4290
SELECT NULLIF ( 12, COUNT( * ) )
----
12

skipif mysql # not compatible
query I rowsort label-4290
SELECT NULLIF ( 12, COUNT ( * ) )
----
12

query I rowsort
SELECT 48 * 63 - + 12
----
3012

query I rowsort
SELECT - 9 * ( - 83 ) * + 17
----
12699

onlyif mysql # aggregate syntax: 
query I rowsort label-4293
SELECT DISTINCT + CASE ( + COUNT( * ) ) WHEN - 32 THEN 19 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4293
SELECT DISTINCT + CASE ( + COUNT ( * ) ) WHEN - 32 THEN 19 END
----
NULL

query I rowsort
SELECT + + ( - - 46 ) AS col1
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4295
SELECT - - 82 * CAST( NULL AS SIGNED ) * 87 + - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4295
SELECT - - 82 * CAST ( NULL AS INTEGER ) * 87 + - COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4296
SELECT + SUM( - 16 ) * 2 AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-4296
SELECT + SUM ( - 16 ) * 2 AS col0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-4297
SELECT - + COUNT( * ) * 65 + 68
----
3

skipif mysql # not compatible
query I rowsort label-4297
SELECT - + COUNT ( * ) * 65 + 68
----
3

query I rowsort
SELECT ALL 81 * - + 14 * 54 * - + 32 AS col0
----
1959552

query I rowsort
SELECT ALL + 85 * + - 5
----
-425

query II rowsort
SELECT ALL 4 AS col1, 10
----
4
10

query I rowsort
SELECT ALL COALESCE ( - + 19, - - 42 ) AS col2
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-4302
SELECT + 4 * + COUNT( * ) - NULLIF ( - 63, - 88 ) AS col2
----
67

skipif mysql # not compatible
query I rowsort label-4302
SELECT + 4 * + COUNT ( * ) - NULLIF ( - 63, - 88 ) AS col2
----
67

query II rowsort
SELECT + 65 col1, - ( NULLIF ( 57, 84 * - 95 + 4 ) ) + - 13
----
65
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-4304
SELECT - COUNT( 30 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4304
SELECT - COUNT ( 30 ) AS col1
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-4305
SELECT ALL 10, - 38 DIV - 82 AS col2
----
10
0

skipif mysql # not compatible
query II rowsort label-4305
SELECT ALL 10, - 38 / - 82 AS col2
----
10
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4306
SELECT - - MAX( ALL 42 ) + - + 34
----
8

skipif mysql # not compatible
query I rowsort label-4306
SELECT - - MAX ( ALL 42 ) + - + 34
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4307
SELECT + 66 + + COALESCE ( + 48, 35 + + CAST( - - 63 AS SIGNED ) - + + 48 * + - 68 * - COUNT( * ) * + 39 * - 88 * 51 * - 24 ) + + 13 DIV + COUNT( * ) AS col1
----
127

skipif mysql # not compatible
query I rowsort label-4307
SELECT + 66 + + COALESCE ( + 48, 35 + + CAST ( - - 63 AS INTEGER ) - + + 48 * + - 68 * - COUNT ( * ) * + 39 * - 88 * 51 * - 24 ) + + 13 / + COUNT ( * ) AS col1
----
127

onlyif mysql # DIV for integer division: 
query I rowsort label-4308
SELECT + 40 * - 71 + - - 57 DIV - 1
----
-2897

skipif mysql # not compatible
query I rowsort label-4308
SELECT + 40 * - 71 + - - 57 / - 1
----
-2897

onlyif mysql # aggregate syntax: 
query I rowsort label-4309
SELECT ALL COUNT( * ) + 87 AS col1
----
88

skipif mysql # not compatible
query I rowsort label-4309
SELECT ALL COUNT ( * ) + 87 AS col1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4310
SELECT + 80 + + COUNT( * ) + CASE + + 7 WHEN ( + 17 ) THEN + 27 END - - ( - COUNT( * ) ) / 93
----
NULL

skipif mysql # not compatible
query I rowsort label-4310
SELECT + 80 + + COUNT ( * ) + CASE + + 7 WHEN ( + 17 ) THEN + 27 END - - ( - COUNT ( * ) ) / 93
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4311
SELECT ALL CASE - 14 WHEN - - 83 THEN NULL WHEN - + 55 THEN ( - - 5 ) / ( - 88 ) END / - COUNT( * ) + 85 * ( - 35 ) * 82 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4311
SELECT ALL CASE - 14 WHEN - - 83 THEN NULL WHEN - + 55 THEN ( - - 5 ) / ( - 88 ) END / - COUNT ( * ) + 85 * ( - 35 ) * 82 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4312
SELECT ALL SUM( 78 ) col0
----
78

skipif mysql # not compatible
query I rowsort label-4312
SELECT ALL SUM ( 78 ) col0
----
78

query I rowsort
SELECT + 5 + - + 37 AS col0
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-4314
SELECT + 99 + 67 + + 69 DIV - - 91 * - + 87 + - 68
----
98

skipif mysql # not compatible
query I rowsort label-4314
SELECT + 99 + 67 + + 69 / - - 91 * - + 87 + - 68
----
98

onlyif mysql # DIV for integer division: 
query II rowsort label-4315
SELECT + 69 DIV + - 66 AS col0, 50 + + 31
----
-1
81

skipif mysql # not compatible
query II rowsort label-4315
SELECT + 69 / + - 66 AS col0, 50 + + 31
----
-1
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4316
SELECT ALL 81 + COUNT( * ) AS col2
----
82

skipif mysql # not compatible
query I rowsort label-4316
SELECT ALL 81 + COUNT ( * ) AS col2
----
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4317
SELECT ALL SUM( - - 18 ) DIV - 26
----
0

skipif mysql # not compatible
query I rowsort label-4317
SELECT ALL SUM ( - - 18 ) / - 26
----
0

query I rowsort
SELECT + 63 + + 15 col1
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4319
SELECT ALL + CASE COUNT( * ) WHEN + 89 / + + ( + COUNT( * ) ) - - - 46 THEN + + 27 ELSE CAST( - 96 AS SIGNED ) END AS col1
----
-96

skipif mysql # not compatible
query I rowsort label-4319
SELECT ALL + CASE COUNT ( * ) WHEN + 89 / + + ( + COUNT ( * ) ) - - - 46 THEN + + 27 ELSE CAST ( - 96 AS INTEGER ) END AS col1
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4320
SELECT + CAST( - 49 AS SIGNED ) AS col0, - 27 + - 42 * ( + 42 )
----
-49
-1791

skipif mysql # not compatible
query II rowsort label-4320
SELECT + CAST ( - 49 AS INTEGER ) AS col0, - 27 + - 42 * ( + 42 )
----
-49
-1791

query I rowsort
SELECT ALL - 80 * - + 59 * + - 32
----
-151040

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4322
SELECT DISTINCT - 62 * CASE - 98 WHEN 71 THEN 33 + - 8 + CAST( NULL AS SIGNED ) - - + CAST( - - 60 AS SIGNED ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4322
SELECT DISTINCT - 62 * CASE - 98 WHEN 71 THEN 33 + - 8 + CAST ( NULL AS INTEGER ) - - + CAST ( - - 60 AS INTEGER ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4323
SELECT ALL + NULLIF ( + + 51, 1 * COUNT( * ) + + - 78 )
----
51

skipif mysql # not compatible
query I rowsort label-4323
SELECT ALL + NULLIF ( + + 51, 1 * COUNT ( * ) + + - 78 )
----
51

onlyif mysql # DIV for integer division: 
query II rowsort label-4324
SELECT DISTINCT - 8 DIV - 16 - 40 col2, 84 DIV 88
----
-40
0

skipif mysql # not compatible
query II rowsort label-4324
SELECT DISTINCT - 8 / - 16 - 40 col2, 84 / 88
----
-40
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4325
SELECT + 53 * + - CAST( - 15 AS SIGNED ) + CASE - + 65 WHEN - + 9 THEN NULLIF ( + 1, + 5 ) + 24 - + + 40 + + 55 * + 48 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4325
SELECT + 53 * + - CAST ( - 15 AS INTEGER ) + CASE - + 65 WHEN - + 9 THEN NULLIF ( + 1, + 5 ) + 24 - + + 40 + + 55 * + 48 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4326
SELECT DISTINCT + CAST( 19 AS SIGNED )
----
19

skipif mysql # not compatible
query I rowsort label-4326
SELECT DISTINCT + CAST ( 19 AS INTEGER )
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4327
SELECT 30 + + - NULLIF ( + 51, NULLIF ( NULLIF ( + 35, - 42 * - 3 ), - + MAX( ALL + CAST( NULL AS SIGNED ) ) ) / - 47 + - + 58 )
----
-21

skipif mysql # not compatible
query I rowsort label-4327
SELECT 30 + + - NULLIF ( + 51, NULLIF ( NULLIF ( + 35, - 42 * - 3 ), - + MAX ( ALL + CAST ( NULL AS INTEGER ) ) ) / - 47 + - + 58 )
----
-21

query I rowsort
SELECT DISTINCT 10 * 87 AS col0
----
870

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4329
SELECT ALL 14 + + 48 DIV 70 + + 5 + 37 + COALESCE ( - 50, - 29 * + 99 * - 80 DIV - 11 DIV - 90 ) DIV - - 97 DIV COUNT( * ) - 8 * - - 95 + - 63
----
-767

skipif mysql # not compatible
query I rowsort label-4329
SELECT ALL 14 + + 48 / 70 + + 5 + 37 + COALESCE ( - 50, - 29 * + 99 * - 80 / - 11 / - 90 ) / - - 97 / COUNT ( * ) - 8 * - - 95 + - 63
----
-767

onlyif mysql # DIV for integer division: 
query I rowsort label-4330
SELECT + + ( + 27 ) * - 88 + + CASE - 21 WHEN + - 62 THEN - 66 - 35 DIV - 95 WHEN - 4 THEN 10 ELSE + 8 END
----
-2368

skipif mysql # not compatible
query I rowsort label-4330
SELECT + + ( + 27 ) * - 88 + + CASE - 21 WHEN + - 62 THEN - 66 - 35 / - 95 WHEN - 4 THEN 10 ELSE + 8 END
----
-2368

query I rowsort
SELECT ALL - - ( + 64 ) AS col0
----
64

query I rowsort
SELECT ALL - - 6 * - ( - 81 ) + - 67 AS col2
----
419

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4333
SELECT 4 * + + CAST( NULL AS SIGNED ) + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4333
SELECT 4 * + + CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT - 11 + - NULLIF ( + 1, 27 + + + 18 * - 49 ) AS col0
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4335
SELECT ALL - + 93 + - - 22, - ( 97 ) / + + CASE - NULLIF ( + 93, + - CASE 72 WHEN - 63 - - + 99 + - ( + + CASE + + 5 WHEN - 57 THEN 29 ELSE COUNT( * ) + + 28 END ) * + 32 + - 46 + 28 + COUNT( * ) * - 52 * 15 * - 10 * - 92 + + + MAX( - + 6 ) + - + 93 * - CAST( 7 AS SIGNED ) / 44 THEN 99 + + 78 - + 95 END ) WHEN + - 60 THEN + - 76 WHEN + + COALESCE ( - - 28, + + 47, + - 36 ) + - 31 + - - 37 / - COUNT( * ) * + MIN( DISTINCT + - 54 ) - + 29 THEN ( 92 ) * 74 - 73 END AS col2
----
-71
NULL

skipif mysql # not compatible
query II rowsort label-4335
SELECT ALL - + 93 + - - 22, - ( 97 ) / + + CASE - NULLIF ( + 93, + - CASE 72 WHEN - 63 - - + 99 + - ( + + CASE + + 5 WHEN - 57 THEN 29 ELSE COUNT ( * ) + + 28 END ) * + 32 + - 46 + 28 + COUNT ( * ) * - 52 * 15 * - 10 * - 92 + + + MAX ( - + 6 ) + - + 93 * - CAST ( 7 AS INTEGER ) / 44 THEN 99 + + 78 - + 95 END ) WHEN + - 60 THEN + - 76 WHEN + + COALESCE ( - - 28, + + 47, + - 36 ) + - 31 + - - 37 / - COUNT ( * ) * + MIN ( DISTINCT + - 54 ) - + 29 THEN ( 92 ) * 74 - 73 END AS col2
----
-71
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4336
SELECT ( + SUM( DISTINCT - ( - - 36 ) ) ) col0
----
-36

skipif mysql # not compatible
query I rowsort label-4336
SELECT ( + SUM ( DISTINCT - ( - - 36 ) ) ) col0
----
-36

query I rowsort
SELECT ALL 94 + - ( 64 ) AS col0
----
30

query I rowsort
SELECT 79 * - + 96
----
-7584

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4339
SELECT ALL + CASE + COUNT( * ) WHEN - 89 * COUNT( * ) THEN 32 * + 19 + + 8 * - 82 ELSE + + 52 * CAST( 98 AS SIGNED ) END
----
5096

skipif mysql # not compatible
query I rowsort label-4339
SELECT ALL + CASE + COUNT ( * ) WHEN - 89 * COUNT ( * ) THEN 32 * + 19 + + 8 * - 82 ELSE + + 52 * CAST ( 98 AS INTEGER ) END
----
5096

query I rowsort
SELECT ALL - 57 + + 48
----
-9

query I rowsort
SELECT DISTINCT 26 + 33 AS col0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4342
SELECT DISTINCT - COUNT( * ) + 8 AS col2
----
7

skipif mysql # not compatible
query I rowsort label-4342
SELECT DISTINCT - COUNT ( * ) + 8 AS col2
----
7

query II rowsort
SELECT DISTINCT 71 AS col1, + 52
----
71
52

query I rowsort
SELECT 95 * + 90
----
8550

query I rowsort
SELECT 31 * - 79 AS col1
----
-2449

query II rowsort
SELECT - 78, ( + 42 ) AS col1
----
-78
42

onlyif mysql # aggregate syntax: 
query II rowsort label-4347
SELECT 43 AS col0, COUNT( - + 91 ) AS col2
----
43
1

skipif mysql # not compatible
query II rowsort label-4347
SELECT 43 AS col0, COUNT ( - + 91 ) AS col2
----
43
1

query II rowsort
SELECT - 81, - ( 27 ) AS col2
----
-81
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-4349
SELECT ALL COUNT( + 30 ) - - 67 AS col1, 5 AS col0
----
68
5

skipif mysql # not compatible
query II rowsort label-4349
SELECT ALL COUNT ( + 30 ) - - 67 AS col1, 5 AS col0
----
68
5

query I rowsort
SELECT 21 - - 32
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4351
SELECT DISTINCT - 93 / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4351
SELECT DISTINCT - 93 / - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4352
SELECT COUNT( * ) * 27 * - 58 AS col2, CAST( 57 AS SIGNED ) AS col2
----
-1566
57

skipif mysql # not compatible
query II rowsort label-4352
SELECT COUNT ( * ) * 27 * - 58 AS col2, CAST ( 57 AS INTEGER ) AS col2
----
-1566
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4353
SELECT COUNT( * ) + 29 + - + 8
----
22

skipif mysql # not compatible
query I rowsort label-4353
SELECT COUNT ( * ) + 29 + - + 8
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-4354
SELECT CASE WHEN NOT NULL IS NOT NULL THEN 91 WHEN 39 + 65 NOT BETWEEN - 67 AND - 28 THEN NULL ELSE 46 END DIV 88 col2
----
1

skipif mysql # not compatible
query I rowsort label-4354
SELECT CASE WHEN NOT NULL IS NOT NULL THEN 91 WHEN 39 + 65 NOT BETWEEN - 67 AND - 28 THEN NULL ELSE 46 END / 88 col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4355
SELECT + 52 * MAX( ALL - 42 ) + + 59
----
-2125

skipif mysql # not compatible
query I rowsort label-4355
SELECT + 52 * MAX ( ALL - 42 ) + + 59
----
-2125

query II rowsort
SELECT 67, 83 * + 14 AS col2
----
67
1162

onlyif mysql # DIV for integer division: 
query I rowsort label-4357
SELECT ALL 44 DIV + 9 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-4357
SELECT ALL 44 / + 9 AS col0
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-4358
SELECT 66 DIV + 54
----
1

skipif mysql # not compatible
query I rowsort label-4358
SELECT 66 / + 54
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4359
SELECT + 19 * - MAX( DISTINCT - 10 ) * ( + 51 )
----
9690

skipif mysql # not compatible
query I rowsort label-4359
SELECT + 19 * - MAX ( DISTINCT - 10 ) * ( + 51 )
----
9690

onlyif mysql # aggregate syntax: 
query II rowsort label-4360
SELECT ALL - - COUNT( * ) AS col2, 19 + + 11 AS col1
----
1
30

skipif mysql # not compatible
query II rowsort label-4360
SELECT ALL - - COUNT ( * ) AS col2, 19 + + 11 AS col1
----
1
30

query I rowsort
SELECT ALL + 88 + - 66 AS col1
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4362
SELECT + 77 AS col1, + 68 - + + 51 + + NULLIF ( + COUNT( * ), - 71 * - 63 - + COALESCE ( 84, + ( COUNT( * ) ) ) ) + 41 * + - 30 * + - 70 * - 3 * - + CASE - + COALESCE ( + + CASE + 72 WHEN 92 THEN + 42 END, CASE 32 WHEN - CAST( NULL AS SIGNED ) THEN NULL ELSE - - ( - 82 ) * + 88 END, - 95 ) WHEN - - 44 * 38 THEN - ( + 80 ) ELSE - 0 END
----
77
18

skipif mysql # not compatible
query II rowsort label-4362
SELECT + 77 AS col1, + 68 - + + 51 + + NULLIF ( + COUNT ( * ), - 71 * - 63 - + COALESCE ( 84, + ( COUNT ( * ) ) ) ) + 41 * + - 30 * + - 70 * - 3 * - + CASE - + COALESCE ( + + CASE + 72 WHEN 92 THEN + 42 END, CASE 32 WHEN - CAST ( NULL AS INTEGER ) THEN NULL ELSE - - ( - 82 ) * + 88 END, - 95 ) WHEN - - 44 * 38 THEN - ( + 80 ) ELSE - 0 END
----
77
18

query II rowsort
SELECT + - 37 AS col2, 44 * - - 79
----
-37
3476

onlyif mysql # aggregate syntax: 
query I rowsort label-4364
SELECT DISTINCT - + COUNT( * ) + + 15
----
14

skipif mysql # not compatible
query I rowsort label-4364
SELECT DISTINCT - + COUNT ( * ) + + 15
----
14

query I rowsort
SELECT + 35 - - 29 AS col0
----
64

query II rowsort
SELECT + 50, 12 AS col1
----
50
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4367
SELECT SUM( ALL + 30 )
----
30

skipif mysql # not compatible
query I rowsort label-4367
SELECT SUM ( ALL + 30 )
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4368
SELECT + COUNT( DISTINCT 88 ) DIV + 35
----
0

skipif mysql # not compatible
query I rowsort label-4368
SELECT + COUNT ( DISTINCT 88 ) / + 35
----
0

query II rowsort
SELECT 0 AS col0, + ( 92 ) AS col2
----
0
92

onlyif mysql # aggregate syntax: 
query II rowsort label-4370
SELECT ALL - 12 + MAX( 13 ) + + 96 + + 78 / - COALESCE ( + + COUNT( * ), 8 ) * + 68 / - ( CASE + COUNT( * ) WHEN + - 16 / 59 * - 77 * - + COUNT( + 43 ) - + 65 THEN NULL WHEN - 96 THEN - 43 / 93 + + 86 * - 46 * + COUNT( * ) END ), + 93 AS col0
----
NULL
93

skipif mysql # not compatible
query II rowsort label-4370
SELECT ALL - 12 + MAX ( 13 ) + + 96 + + 78 / - COALESCE ( + + COUNT ( * ), 8 ) * + 68 / - ( CASE + COUNT ( * ) WHEN + - 16 / 59 * - 77 * - + COUNT ( + 43 ) - + 65 THEN NULL WHEN - 96 THEN - 43 / 93 + + 86 * - 46 * + COUNT ( * ) END ), + 93 AS col0
----
NULL
93

query I rowsort
SELECT ( - + 13 ) + + 63 + - ( - + 77 ) * + - 41 * - 75
----
236825

query I rowsort
SELECT 31 - + 92
----
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-4373
SELECT 2 * 65 AS col0, - ( 9 ) + MAX( - 47 )
----
130
-56

skipif mysql # not compatible
query II rowsort label-4373
SELECT 2 * 65 AS col0, - ( 9 ) + MAX ( - 47 )
----
130
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-4374
SELECT 5 + MAX( DISTINCT 88 ) * + 28
----
2469

skipif mysql # not compatible
query I rowsort label-4374
SELECT 5 + MAX ( DISTINCT 88 ) * + 28
----
2469

query I rowsort
SELECT 14 * 93 * + 15 AS col1
----
19530

query I rowsort
SELECT 21 + + - 6 + + 74 + + 75
----
164

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4377
SELECT DISTINCT - NULLIF ( COALESCE ( + 36, - 62 - COUNT( * ), - 61 * 41 DIV - + 4 ), + + COUNT( * ) + - 9 ) * - 33 AS col1
----
1188

skipif mysql # not compatible
query I rowsort label-4377
SELECT DISTINCT - NULLIF ( COALESCE ( + 36, - 62 - COUNT ( * ), - 61 * 41 / - + 4 ), + + COUNT ( * ) + - 9 ) * - 33 AS col1
----
1188

query I rowsort
SELECT ( - 74 ) + - - 82 AS col2
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4379
SELECT DISTINCT CASE - - 78 WHEN + ( - COUNT( * ) ) * + 46 THEN NULL WHEN SUM( DISTINCT 31 ) THEN + - 8 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4379
SELECT DISTINCT CASE - - 78 WHEN + ( - COUNT ( * ) ) * + 46 THEN NULL WHEN SUM ( DISTINCT 31 ) THEN + - 8 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4380
SELECT DISTINCT NULLIF ( + 17, - - 80 + AVG ( + 19 ) / COUNT( * ) )
----
17

skipif mysql # not compatible
query I rowsort label-4380
SELECT DISTINCT NULLIF ( + 17, - - 80 + AVG ( + 19 ) / COUNT ( * ) )
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4381
SELECT 46 * - 99 * + + 39 DIV + - COUNT( * ) col2
----
177606

skipif mysql # not compatible
query I rowsort label-4381
SELECT 46 * - 99 * + + 39 / + - COUNT ( * ) col2
----
177606

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4382
SELECT COUNT( DISTINCT - + 53 ) * 71 / - + 63 * + 42 * - ( + COALESCE ( - 73, + CAST( NULL AS SIGNED ) + 66, - 27 * 50 ) ) + - MIN( DISTINCT - CASE WHEN 62 BETWEEN 82 AND NULL THEN + - 7 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-4382
SELECT COUNT ( DISTINCT - + 53 ) * 71 / - + 63 * + 42 * - ( + COALESCE ( - 73, + CAST ( NULL AS INTEGER ) + 66, - 27 * 50 ) ) + - MIN ( DISTINCT - CASE WHEN 62 BETWEEN 82 AND NULL THEN + - 7 END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4383
SELECT NULLIF ( + + 88, - 33 + 68 * - + COUNT( * ) ) col0
----
88

skipif mysql # not compatible
query I rowsort label-4383
SELECT NULLIF ( + + 88, - 33 + 68 * - + COUNT ( * ) ) col0
----
88

query I rowsort
SELECT DISTINCT - CASE + ( + 60 ) WHEN 73 THEN NULL WHEN + 36 THEN + + 20 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4385
SELECT + 17 * - 10 * - - ( - COUNT( * ) ) + + + 0
----
170

skipif mysql # not compatible
query I rowsort label-4385
SELECT + 17 * - 10 * - - ( - COUNT ( * ) ) + + + 0
----
170

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4386
SELECT ALL CAST( - 91 AS SIGNED ) * + 29 + - + MIN( ALL + 35 ) + - NULLIF ( - 95, - 40 ) AS col1
----
-2579

skipif mysql # not compatible
query I rowsort label-4386
SELECT ALL CAST ( - 91 AS INTEGER ) * + 29 + - + MIN ( ALL + 35 ) + - NULLIF ( - 95, - 40 ) AS col1
----
-2579

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4387
SELECT DISTINCT + + CAST( - COUNT( * ) AS SIGNED ) AS col0, + 28 + - + 77 + + 87 col2
----
-1
38

skipif mysql # not compatible
query II rowsort label-4387
SELECT DISTINCT + + CAST ( - COUNT ( * ) AS INTEGER ) AS col0, + 28 + - + 77 + + 87 col2
----
-1
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4388
SELECT ALL 13 * 32 * + COUNT( * ) AS col0
----
416

skipif mysql # not compatible
query I rowsort label-4388
SELECT ALL 13 * 32 * + COUNT ( * ) AS col0
----
416

onlyif mysql # aggregate syntax: 
query I rowsort label-4389
SELECT - + COUNT( * ) + - 83 - 64
----
-148

skipif mysql # not compatible
query I rowsort label-4389
SELECT - + COUNT ( * ) + - 83 - 64
----
-148

query I rowsort
SELECT ( - 84 ) col1
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-4391
SELECT DISTINCT - 27 * 69 + 24 + + - COUNT( * ) + + 62 + + ( - 65 ) + + 1 * - 86 * 65 col1
----
-7433

skipif mysql # not compatible
query I rowsort label-4391
SELECT DISTINCT - 27 * 69 + 24 + + - COUNT ( * ) + + 62 + + ( - 65 ) + + 1 * - 86 * 65 col1
----
-7433

query I rowsort
SELECT + - 26 * - - ( - 3 ) + 26 AS col1
----
104

onlyif mysql # DIV for integer division: 
query I rowsort label-4393
SELECT DISTINCT 58 DIV + 12 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-4393
SELECT DISTINCT 58 / + 12 AS col0
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4394
SELECT ALL 76 * + 44 * - CAST( + COALESCE ( - + 59, - 26 + 14, + COUNT( * ) * 2 * + 41 * - 12 ) AS SIGNED )
----
197296

skipif mysql # not compatible
query I rowsort label-4394
SELECT ALL 76 * + 44 * - CAST ( + COALESCE ( - + 59, - 26 + 14, + COUNT ( * ) * 2 * + 41 * - 12 ) AS INTEGER )
----
197296

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4395
SELECT ALL 22 * - 82 + + + SUM( + 18 ) + - - ( + 83 ) + + COUNT( * ) DIV 77
----
-1703

skipif mysql # not compatible
query I rowsort label-4395
SELECT ALL 22 * - 82 + + + SUM ( + 18 ) + - - ( + 83 ) + + COUNT ( * ) / 77
----
-1703

onlyif mysql # aggregate syntax: 
query II rowsort label-4396
SELECT DISTINCT 60 * + COUNT( * ) - + 10 + - 47 + + NULLIF ( - MAX( - 81 ), - 56 - 67 ) + SUM( + 86 ) * ( 17 ) * + 28 * + - 26 + + 54 + - SUM( - 23 ) + + 25 AS col2, + 20 AS col2
----
-1064150
20

skipif mysql # not compatible
query II rowsort label-4396
SELECT DISTINCT 60 * + COUNT ( * ) - + 10 + - 47 + + NULLIF ( - MAX ( - 81 ), - 56 - 67 ) + SUM ( + 86 ) * ( 17 ) * + 28 * + - 26 + + 54 + - SUM ( - 23 ) + + 25 AS col2, + 20 AS col2
----
-1064150
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4397
SELECT DISTINCT + COUNT( DISTINCT - ( ( 27 ) ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4397
SELECT DISTINCT + COUNT ( DISTINCT - ( ( 27 ) ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4398
SELECT ALL - - 34 * + 77 + 10 * + + COUNT( * ) AS col2
----
2628

skipif mysql # not compatible
query I rowsort label-4398
SELECT ALL - - 34 * + 77 + 10 * + + COUNT ( * ) AS col2
----
2628

onlyif mysql # aggregate syntax: 
query I rowsort label-4399
SELECT + + 35 + COUNT( DISTINCT - + 31 ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-4399
SELECT + + 35 + COUNT ( DISTINCT - + 31 ) AS col1
----
36

query I rowsort
SELECT ( - + 65 ) * + CASE + 59 WHEN - - 96 THEN + 23 * 65 ELSE - 88 + + 17 * 65 END + - - 74 + - + 65
----
-66096

query I rowsort
SELECT + 88 * - 70
----
-6160

query I rowsort
SELECT - NULLIF ( - 91, + + 21 ) col1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4403
SELECT - 52 + 35 * COUNT( * )
----
-17

skipif mysql # not compatible
query I rowsort label-4403
SELECT - 52 + 35 * COUNT ( * )
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-4404
SELECT DISTINCT + 65 - + 70 * MIN( - 17 )
----
1255

skipif mysql # not compatible
query I rowsort label-4404
SELECT DISTINCT + 65 - + 70 * MIN ( - 17 )
----
1255

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4405
SELECT - ( - CAST( + 26 AS SIGNED ) ) AS col0, - 2 AS col2
----
26
-2

skipif mysql # not compatible
query II rowsort label-4405
SELECT - ( - CAST ( + 26 AS INTEGER ) ) AS col0, - 2 AS col2
----
26
-2

query I rowsort
SELECT DISTINCT CASE - - 63 WHEN - 39 THEN - - 81 + 79 ELSE + - COALESCE ( + 16, + 7 + - + 88 * 38, - + 31 ) + + 92 * 60 * + 60 + - 44 - + 57 END
----
331083

onlyif mysql # aggregate syntax: 
query I rowsort label-4407
SELECT DISTINCT SUM( DISTINCT + + 63 )
----
63

skipif mysql # not compatible
query I rowsort label-4407
SELECT DISTINCT SUM ( DISTINCT + + 63 )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4408
SELECT - COUNT( - 33 ) * ( - + NULLIF ( + 86, + 21 ) ) AS col1
----
86

skipif mysql # not compatible
query I rowsort label-4408
SELECT - COUNT ( - 33 ) * ( - + NULLIF ( + 86, + 21 ) ) AS col1
----
86

onlyif mysql # aggregate syntax: 
query II rowsort label-4409
SELECT - 42 AS col2, COUNT( * ) + 35 + + 66
----
-42
102

skipif mysql # not compatible
query II rowsort label-4409
SELECT - 42 AS col2, COUNT ( * ) + 35 + + 66
----
-42
102

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4410
SELECT - CAST( 37 AS SIGNED ) * - - 23 AS col0
----
-851

skipif mysql # not compatible
query I rowsort label-4410
SELECT - CAST ( 37 AS INTEGER ) * - - 23 AS col0
----
-851

onlyif mysql # aggregate syntax: 
query I rowsort label-4411
SELECT ALL + 21 * - COUNT( DISTINCT 67 ) AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-4411
SELECT ALL + 21 * - COUNT ( DISTINCT 67 ) AS col2
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-4412
SELECT - 80 DIV + 97
----
0

skipif mysql # not compatible
query I rowsort label-4412
SELECT - 80 / + 97
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4413
SELECT 43 AS col2, CAST( NULL AS SIGNED ) * 78
----
43
NULL

skipif mysql # not compatible
query II rowsort label-4413
SELECT 43 AS col2, CAST ( NULL AS INTEGER ) * 78
----
43
NULL

query I rowsort
SELECT ALL + 49 * + 35
----
1715

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4415
SELECT DISTINCT + CAST( 20 AS SIGNED ) + COALESCE ( - + ( CAST( NULL AS SIGNED ) ), - + 65 ) * - COUNT( * ) - + 22 AS col1
----
63

skipif mysql # not compatible
query I rowsort label-4415
SELECT DISTINCT + CAST ( 20 AS INTEGER ) + COALESCE ( - + ( CAST ( NULL AS INTEGER ) ), - + 65 ) * - COUNT ( * ) - + 22 AS col1
----
63

query I rowsort
SELECT DISTINCT - 77 + 96 AS col2
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4417
SELECT DISTINCT NULLIF ( - + 58, - 41 + + COUNT( * ) )
----
-58

skipif mysql # not compatible
query I rowsort label-4417
SELECT DISTINCT NULLIF ( - + 58, - 41 + + COUNT ( * ) )
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4418
SELECT ALL COUNT( * ) + + 54 AS col2
----
55

skipif mysql # not compatible
query I rowsort label-4418
SELECT ALL COUNT ( * ) + + 54 AS col2
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4419
SELECT ALL 90 + + CASE 70 WHEN 34 * 3 + MIN( + 99 ) THEN - 75 * - COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4419
SELECT ALL 90 + + CASE 70 WHEN 34 * 3 + MIN ( + 99 ) THEN - 75 * - COUNT ( * ) END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4420
SELECT DISTINCT 43 DIV 19 + - 68
----
-66

skipif mysql # not compatible
query I rowsort label-4420
SELECT DISTINCT 43 / 19 + - 68
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-4421
SELECT ALL 18 DIV - 62 + 33 AS col0
----
33

skipif mysql # not compatible
query I rowsort label-4421
SELECT ALL 18 / - 62 + 33 AS col0
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4422
SELECT + NULLIF ( - CAST( - 9 AS SIGNED ), 2 * - 13 + + 8 )
----
9

skipif mysql # not compatible
query I rowsort label-4422
SELECT + NULLIF ( - CAST ( - 9 AS INTEGER ), 2 * - 13 + + 8 )
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4423
SELECT - CAST( NULL AS SIGNED ) * + 3
----
NULL

skipif mysql # not compatible
query I rowsort label-4423
SELECT - CAST ( NULL AS INTEGER ) * + 3
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4424
SELECT ( CAST( + 52 AS SIGNED ) )
----
52

skipif mysql # not compatible
query I rowsort label-4424
SELECT ( CAST ( + 52 AS INTEGER ) )
----
52

query I rowsort
SELECT ALL COALESCE ( - 97, 67 + + 31 ) * + 25 AS col1
----
-2425

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4426
SELECT ALL 55 DIV 25 + + COUNT( * )
----
3

skipif mysql # not compatible
query I rowsort label-4426
SELECT ALL 55 / 25 + + COUNT ( * )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4427
SELECT ALL - 68 * MIN( ALL 16 ) - 81 AS col2
----
-1169

skipif mysql # not compatible
query I rowsort label-4427
SELECT ALL - 68 * MIN ( ALL 16 ) - 81 AS col2
----
-1169

onlyif mysql # DIV for integer division: 
query I rowsort label-4428
SELECT DISTINCT + COALESCE ( 34, 5 + + 1 DIV + 53, - 3 * + 80 ) col0
----
34

skipif mysql # not compatible
query I rowsort label-4428
SELECT DISTINCT + COALESCE ( 34, 5 + + 1 / + 53, - 3 * + 80 ) col0
----
34

query I rowsort
SELECT + 24 * 8 col2
----
192

onlyif mysql # aggregate syntax: 
query I rowsort label-4430
SELECT + COUNT( DISTINCT - 43 )
----
1

skipif mysql # not compatible
query I rowsort label-4430
SELECT + COUNT ( DISTINCT - 43 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4431
SELECT ( + COUNT( ALL - 98 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4431
SELECT ( + COUNT ( ALL - 98 ) ) AS col0
----
1

query I rowsort
SELECT - 71 * 56
----
-3976

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4433
SELECT 15 * NULLIF ( - 49, CAST( + ( 99 ) AS SIGNED ) ) - 30 AS col1
----
-765

skipif mysql # not compatible
query I rowsort label-4433
SELECT 15 * NULLIF ( - 49, CAST ( + ( 99 ) AS INTEGER ) ) - 30 AS col1
----
-765

query I rowsort
SELECT + 64 - 29 AS col1
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-4435
SELECT ALL 35 DIV 36 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4435
SELECT ALL 35 / 36 AS col2
----
0

query I rowsort
SELECT DISTINCT 70 * 97 AS col1
----
6790

onlyif mysql # aggregate syntax: 
query I rowsort label-4437
SELECT + COUNT( * ) * SUM( DISTINCT - 40 )
----
-40

skipif mysql # not compatible
query I rowsort label-4437
SELECT + COUNT ( * ) * SUM ( DISTINCT - 40 )
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-4438
SELECT 53 * + 88 - + COUNT( * ) col0
----
4663

skipif mysql # not compatible
query I rowsort label-4438
SELECT 53 * + 88 - + COUNT ( * ) col0
----
4663

query I rowsort
SELECT + 81 + 19
----
100

query I rowsort
SELECT DISTINCT 27 * 54 AS col1
----
1458

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4441
SELECT - CAST( NULL AS SIGNED ) * 64
----
NULL

skipif mysql # not compatible
query I rowsort label-4441
SELECT - CAST ( NULL AS INTEGER ) * 64
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4442
SELECT + CASE 65 WHEN + 13 + + 86 THEN NULL WHEN 42 THEN 45 END + COUNT( ALL + 71 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4442
SELECT + CASE 65 WHEN + 13 + + 86 THEN NULL WHEN 42 THEN 45 END + COUNT ( ALL + 71 )
----
NULL

query I rowsort
SELECT ALL + 63 + 52 AS col0
----
115

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4444
SELECT ALL 33 + 48 * + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4444
SELECT ALL 33 + 48 * + CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 45 + - 19
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4446
SELECT + 56 * CASE 33 - 83 WHEN - 97 * + ( + CASE 45 WHEN - ( - COUNT( * ) ) THEN 20 + - ( + 66 ) END ) THEN + 6 / + MIN( DISTINCT 76 ) + MAX( 1 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4446
SELECT + 56 * CASE 33 - 83 WHEN - 97 * + ( + CASE 45 WHEN - ( - COUNT ( * ) ) THEN 20 + - ( + 66 ) END ) THEN + 6 / + MIN ( DISTINCT 76 ) + MAX ( 1 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4447
SELECT - COUNT( * ) + 28 * - 74
----
-2073

skipif mysql # not compatible
query I rowsort label-4447
SELECT - COUNT ( * ) + 28 * - 74
----
-2073

query I rowsort
SELECT ALL + - 60 + 89
----
29

query I rowsort
SELECT DISTINCT - - 97 * 7 col2
----
679

onlyif mysql # aggregate syntax: 
query I rowsort label-4450
SELECT 23 * + COALESCE ( - COALESCE ( - 41, COUNT( * ), 4 * 40 ) * - MAX( 31 ), + 56, + 70 * + 97 ) AS col0
----
-29233

skipif mysql # not compatible
query I rowsort label-4450
SELECT 23 * + COALESCE ( - COALESCE ( - 41, COUNT ( * ), 4 * 40 ) * - MAX ( 31 ), + 56, + 70 * + 97 ) AS col0
----
-29233

query I rowsort
SELECT ALL - 65 * 7 AS col1
----
-455

onlyif mysql # aggregate syntax: 
query I rowsort label-4452
SELECT ALL + CASE - 86 WHEN 43 THEN NULL WHEN 95 * + 67 THEN NULL ELSE COUNT( * ) END - 63
----
-62

skipif mysql # not compatible
query I rowsort label-4452
SELECT ALL + CASE - 86 WHEN 43 THEN NULL WHEN 95 * + 67 THEN NULL ELSE COUNT ( * ) END - 63
----
-62

query I rowsort
SELECT DISTINCT + ( 15 ) * + 59 AS col0
----
885

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4454
SELECT ALL - + CASE 63 WHEN + 82 THEN NULL ELSE - COALESCE ( 57, - COUNT( * ) + 35 DIV 9 ) END AS col2
----
57

skipif mysql # not compatible
query I rowsort label-4454
SELECT ALL - + CASE 63 WHEN + 82 THEN NULL ELSE - COALESCE ( 57, - COUNT ( * ) + 35 / 9 ) END AS col2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4455
SELECT + COUNT( * ) * ( 38 ) - - ( + 27 )
----
65

skipif mysql # not compatible
query I rowsort label-4455
SELECT + COUNT ( * ) * ( 38 ) - - ( + 27 )
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-4456
SELECT - 51 DIV ( 25 ) + - 74
----
-76

skipif mysql # not compatible
query I rowsort label-4456
SELECT - 51 / ( 25 ) + - 74
----
-76

query I rowsort
SELECT ALL + 13 - + 75
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-4458
SELECT COALESCE ( + SUM( - ( - ( - 25 ) ) ), - 46 * - 50 ) AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-4458
SELECT COALESCE ( + SUM ( - ( - ( - 25 ) ) ), - 46 * - 50 ) AS col1
----
-25

query I rowsort
SELECT + 4 + - 76
----
-72

query I rowsort
SELECT 71 * ( 33 )
----
2343

query I rowsort
SELECT - 78 * + 96
----
-7488

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4462
SELECT - 59 * + COUNT( * ) + + 75 DIV + NULLIF ( 78 + + 38, + 27 )
----
-59

skipif mysql # not compatible
query I rowsort label-4462
SELECT - 59 * + COUNT ( * ) + + 75 / + NULLIF ( 78 + + 38, + 27 )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-4463
SELECT + MIN( ALL 40 ) - + CASE 31 + + ( 92 + + 46 ) / - 87 WHEN + 87 THEN - 16 + 36 ELSE 61 END AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-4463
SELECT + MIN ( ALL 40 ) - + CASE 31 + + ( 92 + + 46 ) / - 87 WHEN + 87 THEN - 16 + 36 ELSE 61 END AS col0
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-4464
SELECT 40 + + 33 + + 34 DIV 41 col2
----
73

skipif mysql # not compatible
query I rowsort label-4464
SELECT 40 + + 33 + + 34 / 41 col2
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4465
SELECT DISTINCT - COUNT( * ) * - 84
----
84

skipif mysql # not compatible
query I rowsort label-4465
SELECT DISTINCT - COUNT ( * ) * - 84
----
84

query I rowsort
SELECT ALL - ( - ( + CASE + 1 WHEN + 27 * 86 THEN NULL ELSE + COALESCE ( 91, - 7 * 82 ) END ) )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4467
SELECT CASE + - 58 WHEN MAX( NULLIF ( 47, 73 / 11 ) ) + 55 THEN 27 - 69 * 18 END + 1 * + 94 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4467
SELECT CASE + - 58 WHEN MAX ( NULLIF ( 47, 73 / 11 ) ) + 55 THEN 27 - 69 * 18 END + 1 * + 94 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4468
SELECT 30 * + COUNT( * ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-4468
SELECT 30 * + COUNT ( * ) AS col0
----
30

query I rowsort
SELECT ( 92 ) * 79 + 1 AS col0
----
7269

onlyif mysql # aggregate syntax: 
query I rowsort label-4470
SELECT MAX( 72 ) + + COUNT( ALL - 39 - - 5 )
----
73

skipif mysql # not compatible
query I rowsort label-4470
SELECT MAX ( 72 ) + + COUNT ( ALL - 39 - - 5 )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4471
SELECT 55 * + - NULLIF ( - COUNT( * ), 90 ) * 90 AS col0
----
4950

skipif mysql # not compatible
query I rowsort label-4471
SELECT 55 * + - NULLIF ( - COUNT ( * ), 90 ) * 90 AS col0
----
4950

query I rowsort
SELECT ALL 21 + + 99 col0
----
120

query I rowsort
SELECT DISTINCT 80 + - 83 + 0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4474
SELECT ALL 15 + NULLIF ( - COUNT( * ), + 27 ) * COUNT( * ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-4474
SELECT ALL 15 + NULLIF ( - COUNT ( * ), + 27 ) * COUNT ( * ) AS col1
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4475
SELECT ALL 27 DIV - - COUNT( * ) AS col1
----
27

skipif mysql # not compatible
query I rowsort label-4475
SELECT ALL 27 / - - COUNT ( * ) AS col1
----
27

query I rowsort
SELECT ALL 85 + + + 21 AS col0
----
106

query I rowsort
SELECT DISTINCT 20 + 22
----
42

query I rowsort
SELECT - + NULLIF ( + COALESCE ( + 31, 72 * - 2, 71 * 94 ), + 30 + 41 * 61 )
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-4479
SELECT 58 * MAX( - 4 ) * + NULLIF ( + 68, 22 )
----
-15776

skipif mysql # not compatible
query I rowsort label-4479
SELECT 58 * MAX ( - 4 ) * + NULLIF ( + 68, 22 )
----
-15776

query I rowsort
SELECT + 63 * - 13 AS col1
----
-819

query I rowsort
SELECT ALL - 69 * - 54 AS col0
----
3726

query I rowsort
SELECT 37 - 78 AS col0
----
-41

query I rowsort
SELECT ALL + + 32 - + - 45 * 62
----
2822

onlyif mysql # aggregate syntax: 
query I rowsort label-4484
SELECT - COUNT( * ) * - + 19 * COUNT( * )
----
19

skipif mysql # not compatible
query I rowsort label-4484
SELECT - COUNT ( * ) * - + 19 * COUNT ( * )
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4485
SELECT DISTINCT - 42 DIV MAX( 44 )
----
0

skipif mysql # not compatible
query I rowsort label-4485
SELECT DISTINCT - 42 / MAX ( 44 )
----
0

query I rowsort
SELECT NULLIF ( 53, - 62 )
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4487
SELECT + CAST( - 52 AS SIGNED ) * 71 AS col2
----
-3692

skipif mysql # not compatible
query I rowsort label-4487
SELECT + CAST ( - 52 AS INTEGER ) * 71 AS col2
----
-3692

onlyif mysql # aggregate syntax: 
query I rowsort label-4488
SELECT ALL + 93 * COUNT( * ) - CASE 84 WHEN 46 THEN - 71 WHEN COALESCE ( 41, + 67 ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4488
SELECT ALL + 93 * COUNT ( * ) - CASE 84 WHEN 46 THEN - 71 WHEN COALESCE ( 41, + 67 ) THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4489
SELECT DISTINCT - MIN( DISTINCT + + 32 )
----
-32

skipif mysql # not compatible
query I rowsort label-4489
SELECT DISTINCT - MIN ( DISTINCT + + 32 )
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4490
SELECT - 29 * - COALESCE ( 72, 39 * - CAST( NULL AS SIGNED ), + 70 )
----
2088

skipif mysql # not compatible
query I rowsort label-4490
SELECT - 29 * - COALESCE ( 72, 39 * - CAST ( NULL AS INTEGER ), + 70 )
----
2088

query II rowsort
SELECT ALL - 14 AS col1, + 79 + - 68
----
-14
11

query I rowsort
SELECT 50 * + + 20
----
1000

onlyif mysql # aggregate syntax: 
query I rowsort label-4493
SELECT DISTINCT - MIN( - 76 ) AS col0
----
76

skipif mysql # not compatible
query I rowsort label-4493
SELECT DISTINCT - MIN ( - 76 ) AS col0
----
76

query II rowsort
SELECT + 72, 20 * + 17 + 38 * - 32 AS col1
----
72
-876

onlyif mysql # aggregate syntax: 
query I rowsort label-4495
SELECT ALL - COALESCE ( - ( - - COUNT( * ) ), - 87 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4495
SELECT ALL - COALESCE ( - ( - - COUNT ( * ) ), - 87 ) AS col2
----
1

query I rowsort
SELECT 40 * + CASE + - 68 WHEN 48 + 38 THEN 57 * 67 - 6 ELSE NULL END
----
NULL

query I rowsort
SELECT 75 * + + 30
----
2250

onlyif mysql # aggregate syntax: 
query I rowsort label-4498
SELECT COUNT( + 33 ) * 90 * 84 - 60 col2
----
7500

skipif mysql # not compatible
query I rowsort label-4498
SELECT COUNT ( + 33 ) * 90 * 84 - 60 col2
----
7500

onlyif mysql # aggregate syntax: 
query I rowsort label-4499
SELECT ALL + 62 + 11 + + + SUM( ALL ( + 60 ) ) * + 52
----
3193

skipif mysql # not compatible
query I rowsort label-4499
SELECT ALL + 62 + 11 + + + SUM ( ALL ( + 60 ) ) * + 52
----
3193

query I rowsort
SELECT - 27 + - 78 * 33 * + 36 AS col1
----
-92691

query I rowsort
SELECT ALL 39 * - 8 AS col0
----
-312

query I rowsort
SELECT DISTINCT 74 * + - 72
----
-5328

query I rowsort
SELECT ALL - 99 + 23 + + 83 AS col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4504
SELECT DISTINCT - 45 + NULLIF ( + 18, 16 ) * COUNT( * )
----
-27

skipif mysql # not compatible
query I rowsort label-4504
SELECT DISTINCT - 45 + NULLIF ( + 18, 16 ) * COUNT ( * )
----
-27

onlyif mysql # DIV for integer division: 
query II rowsort label-4505
SELECT 21 AS col1, 79 DIV + 62 AS col1
----
21
1

skipif mysql # not compatible
query II rowsort label-4505
SELECT 21 AS col1, 79 / + 62 AS col1
----
21
1

query I rowsort
SELECT - 68 + - 61
----
-129

query I rowsort
SELECT + 73 - + NULLIF ( - 33, + 58 ) - 7 AS col2
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4508
SELECT ALL - 27 + 56 + + 93 * MAX( DISTINCT - 32 * 23 )
----
-68419

skipif mysql # not compatible
query I rowsort label-4508
SELECT ALL - 27 + 56 + + 93 * MAX ( DISTINCT - 32 * 23 )
----
-68419

query I rowsort
SELECT DISTINCT CASE 42 WHEN 37 * 23 THEN + 88 END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4510
SELECT - NULLIF ( + + 95, + 12 * - CAST( NULL AS SIGNED ) + + 38 ) + 89
----
-6

skipif mysql # not compatible
query I rowsort label-4510
SELECT - NULLIF ( + + 95, + 12 * - CAST ( NULL AS INTEGER ) + + 38 ) + 89
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4511
SELECT - CASE + MIN( DISTINCT + 64 ) WHEN CASE - ( + MIN( DISTINCT - 83 ) ) WHEN + NULLIF ( + 61, + 0 / - 73 ) * 53 THEN + 58 WHEN - 92 THEN NULL END * + 6 THEN CAST( NULL AS SIGNED ) ELSE - 99 END * 96
----
9504

skipif mysql # not compatible
query I rowsort label-4511
SELECT - CASE + MIN ( DISTINCT + 64 ) WHEN CASE - ( + MIN ( DISTINCT - 83 ) ) WHEN + NULLIF ( + 61, + 0 / - 73 ) * 53 THEN + 58 WHEN - 92 THEN NULL END * + 6 THEN CAST ( NULL AS INTEGER ) ELSE - 99 END * 96
----
9504

query I rowsort
SELECT + 67 * + - ( 84 )
----
-5628

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4513
SELECT ALL 14 DIV 7 + 80 + COUNT( * ) DIV - COUNT( * )
----
81

skipif mysql # not compatible
query I rowsort label-4513
SELECT ALL 14 / 7 + 80 + COUNT ( * ) / - COUNT ( * )
----
81

query I rowsort
SELECT + 83 * 36 - + + 51
----
2937

onlyif mysql # aggregate syntax: 
query I rowsort label-4515
SELECT ALL + 57 * + MAX( DISTINCT 57 ) col2
----
3249

skipif mysql # not compatible
query I rowsort label-4515
SELECT ALL + 57 * + MAX ( DISTINCT 57 ) col2
----
3249

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4516
SELECT + 10 + MIN( DISTINCT + 54 ) DIV - COUNT( * )
----
-44

skipif mysql # not compatible
query I rowsort label-4516
SELECT + 10 + MIN ( DISTINCT + 54 ) / - COUNT ( * )
----
-44

query I rowsort
SELECT - COALESCE ( + 77, - - 51, - CASE - 40 WHEN + 2 THEN - 87 - ( - 2 ) END ) AS col1
----
-77

query I rowsort
SELECT + NULLIF ( - - 71, 6 ) + 73
----
144

query I rowsort
SELECT ALL + 13 * + 6
----
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4520
SELECT + + COUNT( * ) * + MIN( + 71 ) DIV + 9 AS col0
----
7

skipif mysql # not compatible
query I rowsort label-4520
SELECT + + COUNT ( * ) * + MIN ( + 71 ) / + 9 AS col0
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4521
SELECT CAST( ( - + 93 ) AS SIGNED )
----
-93

skipif mysql # not compatible
query I rowsort label-4521
SELECT CAST ( ( - + 93 ) AS INTEGER )
----
-93

query I rowsort
SELECT + - 44 + + + 27
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-4523
SELECT - NULLIF ( + ( + + ( - ( COUNT( * ) ) ) ), 27 * + 50 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4523
SELECT - NULLIF ( + ( + + ( - ( COUNT ( * ) ) ) ), 27 * + 50 ) AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4524
SELECT + 86 + + 68 + - - COUNT( * ) + + 92 * - ( 4 DIV + 1 + - 41 * 10 )
----
37507

skipif mysql # not compatible
query I rowsort label-4524
SELECT + 86 + + 68 + - - COUNT ( * ) + + 92 * - ( 4 / + 1 + - 41 * 10 )
----
37507

query II rowsort
SELECT DISTINCT - 83 AS col0, 64 AS col0
----
-83
64

query I rowsort
SELECT ALL + ( 38 ) * + 84 AS col1
----
3192

query I rowsort
SELECT + 99 + + + 40 - + 59 * + 62 AS col2
----
-3519

query I rowsort
SELECT ALL + - COALESCE ( 7, - 69 - 56 ) AS col2
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-4529
SELECT ALL - + 87 * + + 91 + + - 85 DIV + 39 AS col1
----
-7919

skipif mysql # not compatible
query I rowsort label-4529
SELECT ALL - + 87 * + + 91 + + - 85 / + 39 AS col1
----
-7919

query I rowsort
SELECT + 92 * + 29 + - 94 AS col0
----
2574

onlyif mysql # aggregate syntax: 
query I rowsort label-4531
SELECT ( + MIN( - 90 ) ) AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-4531
SELECT ( + MIN ( - 90 ) ) AS col0
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-4532
SELECT ( COALESCE ( ( 51 ), 55 * + 73 + + 8 ) ) DIV - COALESCE ( 74, 82 * 41, + 14 DIV 38, + 7 * + 58 ) + + 93 AS col1
----
93

skipif mysql # not compatible
query I rowsort label-4532
SELECT ( COALESCE ( ( 51 ), 55 * + 73 + + 8 ) ) / - COALESCE ( 74, 82 * 41, + 14 / 38, + 7 * + 58 ) + + 93 AS col1
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4533
SELECT ALL 52 DIV SUM( COALESCE ( 38, CAST( NULL AS SIGNED ), 17 ) )
----
1

skipif mysql # not compatible
query I rowsort label-4533
SELECT ALL 52 / SUM ( COALESCE ( 38, CAST ( NULL AS INTEGER ), 17 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4534
SELECT + ( COUNT( 56 ) )
----
1

skipif mysql # not compatible
query I rowsort label-4534
SELECT + ( COUNT ( 56 ) )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4535
SELECT - COALESCE ( CASE 9 WHEN 74 * + 23 THEN + ( 9 ) ELSE NULL END, - CASE CAST( - 80 AS SIGNED ) WHEN 24 THEN 35 WHEN 11 THEN NULL ELSE 95 END ) * + 31 + COALESCE ( - 27, 64 * - 88, - 20 * 7 ) AS col0
----
2918

skipif mysql # not compatible
query I rowsort label-4535
SELECT - COALESCE ( CASE 9 WHEN 74 * + 23 THEN + ( 9 ) ELSE NULL END, - CASE CAST ( - 80 AS INTEGER ) WHEN 24 THEN 35 WHEN 11 THEN NULL ELSE 95 END ) * + 31 + COALESCE ( - 27, 64 * - 88, - 20 * 7 ) AS col0
----
2918

query I rowsort
SELECT ALL 3 * COALESCE ( COALESCE ( - + 60, + 39 + + 56, + 17, 8 ), - 88, - 19 ) + - 38 AS col0
----
-218

onlyif mysql # aggregate syntax: 
query I rowsort label-4537
SELECT ALL + 39 * + - 60 * MIN( - 39 ) + + 56
----
91316

skipif mysql # not compatible
query I rowsort label-4537
SELECT ALL + 39 * + - 60 * MIN ( - 39 ) + + 56
----
91316

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4538
SELECT ALL CAST( NULL AS SIGNED ) / + - 16 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4538
SELECT ALL CAST ( NULL AS INTEGER ) / + - 16 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4539
SELECT + NULLIF ( 53, MIN( DISTINCT - 5 ) ) + 26
----
79

skipif mysql # not compatible
query I rowsort label-4539
SELECT + NULLIF ( 53, MIN ( DISTINCT - 5 ) ) + 26
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4540
SELECT ALL 47 * 82 + + - COUNT( * ) - - 49 + 87
----
3989

skipif mysql # not compatible
query I rowsort label-4540
SELECT ALL 47 * 82 + + - COUNT ( * ) - - 49 + 87
----
3989

query I rowsort
SELECT DISTINCT 51 * + - 42
----
-2142

query I rowsort
SELECT ALL 40 * - 58 + - 84 + + 75 * + 22
----
-754

query I rowsort
SELECT NULLIF ( + + ( - 13 ), 1 / 14 )
----
-13

query I rowsort
SELECT ALL + NULLIF ( - 91, + 90 ) col1
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4545
SELECT CASE - CASE - COUNT( * ) WHEN - + CASE 78 WHEN 72 + CASE - COALESCE ( - ( - COUNT( + ( ( - 15 ) ) ) ), MIN( DISTINCT - 71 ), 16 * 96 ) + + 17 * 0 WHEN 35 - - ( 15 ) THEN - 57 + + COUNT( + 22 ) WHEN - COUNT( - 1 ) + 46 THEN 41 END THEN NULL WHEN - CAST( NULL AS SIGNED ) THEN 92 + 22 ELSE NULL END + 54 * 49 THEN NULL WHEN 69 THEN 29 WHEN 25 THEN COUNT( * ) ELSE NULL END WHEN 88 * 11 - 3 THEN 67 WHEN CASE 60 WHEN + 6 + + MIN( ALL 53 ) * - 45 THEN CASE 59 WHEN + 4 * 59 + 73 THEN NULL WHEN - CAST( NULL AS DECIMAL ) * + 13 THEN NULL ELSE 33 END END * AVG ( DISTINCT - 61 * - 29 ) THEN NULL ELSE COUNT( * ) END AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4545
SELECT CASE - CASE - COUNT ( * ) WHEN - + CASE 78 WHEN 72 + CASE - COALESCE ( - ( - COUNT ( + ( ( - 15 ) ) ) ), MIN ( DISTINCT - 71 ), 16 * 96 ) + + 17 * 0 WHEN 35 - - ( 15 ) THEN - 57 + + COUNT ( + 22 ) WHEN - COUNT ( - 1 ) + 46 THEN 41 END THEN NULL WHEN - CAST ( NULL AS INTEGER ) THEN 92 + 22 ELSE NULL END + 54 * 49 THEN NULL WHEN 69 THEN 29 WHEN 25 THEN COUNT ( * ) ELSE NULL END WHEN 88 * 11 - 3 THEN 67 WHEN CASE 60 WHEN + 6 + + MIN ( ALL 53 ) * - 45 THEN CASE 59 WHEN + 4 * 59 + 73 THEN NULL WHEN - CAST ( NULL AS REAL ) * + 13 THEN NULL ELSE 33 END END * AVG ( DISTINCT - 61 * - 29 ) THEN NULL ELSE COUNT ( * ) END AS col1
----
1

query I rowsort
SELECT 31 * + 67 + + 15 AS col2
----
2092

onlyif mysql # aggregate syntax: 
query I rowsort label-4547
SELECT CASE 67 WHEN 22 THEN + COUNT( * ) WHEN - 79 * 93 + 96 * 47 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4547
SELECT CASE 67 WHEN 22 THEN + COUNT ( * ) WHEN - 79 * 93 + 96 * 47 THEN NULL END
----
NULL

query I rowsort
SELECT - 50 + - - 38 * + 48 AS col0
----
1774

onlyif mysql # aggregate syntax: 
query II rowsort label-4549
SELECT ALL ( + 70 ) AS col0, CASE 57 WHEN - COUNT( * ) THEN NULL ELSE - 65 END AS col0
----
70
-65

skipif mysql # not compatible
query II rowsort label-4549
SELECT ALL ( + 70 ) AS col0, CASE 57 WHEN - COUNT ( * ) THEN NULL ELSE - 65 END AS col0
----
70
-65

query I rowsort
SELECT DISTINCT NULLIF ( - 69, - 99 + 62 + + 28 * 67 )
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-4551
SELECT ALL + MIN( - + NULLIF ( 26, - COALESCE ( ( - 61 ), 81 + + 3 ) * 72 ) )
----
-26

skipif mysql # not compatible
query I rowsort label-4551
SELECT ALL + MIN ( - + NULLIF ( 26, - COALESCE ( ( - 61 ), 81 + + 3 ) * 72 ) )
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-4552
SELECT - - MIN( + - 45 ) * + - 3 AS col1
----
135

skipif mysql # not compatible
query I rowsort label-4552
SELECT - - MIN ( + - 45 ) * + - 3 AS col1
----
135

query I rowsort
SELECT DISTINCT - 86 * + 66 AS col1
----
-5676

query I rowsort
SELECT - + 28 - + 29 * + 75
----
-2203

onlyif mysql # aggregate syntax: 
query I rowsort label-4555
SELECT - - CASE + 56 WHEN + - 43 THEN + COUNT( * ) + 54 * 32 WHEN + 25 / ( - 20 * COUNT( * ) ) - 48 THEN + MIN( DISTINCT 36 ) - 20 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4555
SELECT - - CASE + 56 WHEN + - 43 THEN + COUNT ( * ) + 54 * 32 WHEN + 25 / ( - 20 * COUNT ( * ) ) - 48 THEN + MIN ( DISTINCT 36 ) - 20 END
----
NULL

query II rowsort
SELECT ALL + ( + - 87 ), + 23 AS col1
----
-87
23

onlyif mysql # DIV for integer division: 
query I rowsort label-4557
SELECT - 47 DIV + 78
----
0

skipif mysql # not compatible
query I rowsort label-4557
SELECT - 47 / + 78
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4558
SELECT + COUNT( * ) + - COALESCE ( MIN( ALL - 28 ), - 26 + + CAST( - 40 + COUNT( * ) * - COUNT( * ) AS SIGNED ) * COUNT( * ) )
----
29

skipif mysql # not compatible
query I rowsort label-4558
SELECT + COUNT ( * ) + - COALESCE ( MIN ( ALL - 28 ), - 26 + + CAST ( - 40 + COUNT ( * ) * - COUNT ( * ) AS INTEGER ) * COUNT ( * ) )
----
29

query II rowsort
SELECT DISTINCT + ( - - 27 ) col2, + 46 AS col2
----
27
46

query I rowsort
SELECT + - 96 * - ( 0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4561
SELECT ALL - MIN( ALL + + 11 ) + 81
----
70

skipif mysql # not compatible
query I rowsort label-4561
SELECT ALL - MIN ( ALL + + 11 ) + 81
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4562
SELECT ALL - + 94 + COUNT( * ) + + - 15
----
-108

skipif mysql # not compatible
query I rowsort label-4562
SELECT ALL - + 94 + COUNT ( * ) + + - 15
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-4563
SELECT ALL - 10 + + - ( + 22 ) * COUNT( * ) * - 71
----
1552

skipif mysql # not compatible
query I rowsort label-4563
SELECT ALL - 10 + + - ( + 22 ) * COUNT ( * ) * - 71
----
1552

query I rowsort
SELECT + 20 + 75 - 46 + + 95 * + 74 AS col1
----
7079

onlyif mysql # aggregate syntax: 
query I rowsort label-4565
SELECT DISTINCT 89 + MIN( + - 46 ) + 55 * 24
----
1363

skipif mysql # not compatible
query I rowsort label-4565
SELECT DISTINCT 89 + MIN ( + - 46 ) + 55 * 24
----
1363

query I rowsort
SELECT - + COALESCE ( - - 34, - 15 + - - 55 ) * + 99 col0
----
-3366

onlyif mysql # aggregate syntax: 
query I rowsort label-4567
SELECT DISTINCT 11 * COUNT( * ) AS col0
----
11

skipif mysql # not compatible
query I rowsort label-4567
SELECT DISTINCT 11 * COUNT ( * ) AS col0
----
11

query I rowsort
SELECT 8 * 27 + 52 AS col2
----
268

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4569
SELECT DISTINCT CAST( COUNT( * ) AS SIGNED ) * NULLIF ( COUNT( * ), + 41 * + 85 + COUNT( * ) * 16 ) * + 25 + CASE 39 WHEN CAST( NULL AS SIGNED ) * + 88 THEN + 16 END * 81
----
NULL

skipif mysql # not compatible
query I rowsort label-4569
SELECT DISTINCT CAST ( COUNT ( * ) AS INTEGER ) * NULLIF ( COUNT ( * ), + 41 * + 85 + COUNT ( * ) * 16 ) * + 25 + CASE 39 WHEN CAST ( NULL AS INTEGER ) * + 88 THEN + 16 END * 81
----
NULL

query I rowsort
SELECT ALL 34 + + 18 * - 86 * + - 42 AS col0
----
65050

onlyif mysql # aggregate syntax: 
query II rowsort label-4571
SELECT + 80 AS col1, + 31 * - MAX( - 14 ) - - - 2 - 18 AS col0
----
80
414

skipif mysql # not compatible
query II rowsort label-4571
SELECT + 80 AS col1, + 31 * - MAX ( - 14 ) - - - 2 - 18 AS col0
----
80
414

query I rowsort
SELECT ALL 10 * + - 27 AS col2
----
-270

query I rowsort
SELECT DISTINCT 69 + + 12
----
81

query I rowsort
SELECT CASE + - 35 WHEN + - 86 THEN ( 63 ) END * - 88 + 19
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4575
SELECT 90, COUNT( * ) + 16 + - 11 AS col1
----
90
6

skipif mysql # not compatible
query II rowsort label-4575
SELECT 90, COUNT ( * ) + 16 + - 11 AS col1
----
90
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4576
SELECT CAST( + + 31 AS SIGNED ) * - 26
----
-806

skipif mysql # not compatible
query I rowsort label-4576
SELECT CAST ( + + 31 AS INTEGER ) * - 26
----
-806

onlyif mysql # aggregate syntax: 
query I rowsort label-4577
SELECT + 92 * + 67 + - SUM( - 23 ) + - + 45 + MIN( 53 ) * + CASE - 56 WHEN 5 THEN + 43 WHEN - COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4577
SELECT + 92 * + 67 + - SUM ( - 23 ) + - + 45 + MIN ( 53 ) * + CASE - 56 WHEN 5 THEN + 43 WHEN - COUNT ( * ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4578
SELECT DISTINCT MIN( DISTINCT - - 63 ) DIV - COALESCE ( + + COALESCE ( 99, + 20 ), COUNT( * ), 34 )
----
0

skipif mysql # not compatible
query I rowsort label-4578
SELECT DISTINCT MIN ( DISTINCT - - 63 ) / - COALESCE ( + + COALESCE ( 99, + 20 ), COUNT ( * ), 34 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4579
SELECT CASE - 25 WHEN - + 50 THEN + + COUNT( * ) WHEN + + NULLIF ( 51, - ( 1 ) * COUNT( * ) ) / CAST( + CASE ( 9 ) WHEN - 35 THEN - COUNT( * ) - - 49 WHEN - 71 THEN NULL ELSE + 47 END * 45 AS DECIMAL ) + + 8 THEN 35 * 57 WHEN 70 THEN + 57 * 37 + - 95 WHEN 43 + COUNT( * ) * + 14 THEN NULL END * + 59 - CASE + COUNT( * ) + 8 * + 42 WHEN + MAX( ALL 29 ) * + ( 75 ) THEN + 1 + + CAST( NULL AS SIGNED ) WHEN - 67 * MAX( 69 ) THEN - 56 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4579
SELECT CASE - 25 WHEN - + 50 THEN + + COUNT ( * ) WHEN + + NULLIF ( 51, - ( 1 ) * COUNT ( * ) ) / CAST ( + CASE ( 9 ) WHEN - 35 THEN - COUNT ( * ) - - 49 WHEN - 71 THEN NULL ELSE + 47 END * 45 AS REAL ) + + 8 THEN 35 * 57 WHEN 70 THEN + 57 * 37 + - 95 WHEN 43 + COUNT ( * ) * + 14 THEN NULL END * + 59 - CASE + COUNT ( * ) + 8 * + 42 WHEN + MAX ( ALL 29 ) * + ( 75 ) THEN + 1 + + CAST ( NULL AS INTEGER ) WHEN - 67 * MAX ( 69 ) THEN - 56 ELSE NULL END
----
NULL

query I rowsort
SELECT 84 * 37 col2
----
3108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4581
SELECT 90 + CAST( + 91 AS SIGNED ) + - 69 * + 40 + 76 * 40 AS col0
----
461

skipif mysql # not compatible
query I rowsort label-4581
SELECT 90 + CAST ( + 91 AS INTEGER ) + - 69 * + 40 + 76 * 40 AS col0
----
461

onlyif mysql # aggregate syntax: 
query I rowsort label-4582
SELECT 9 * + - CASE + ( 45 ) WHEN - + 99 THEN NULLIF ( + 82, SUM( DISTINCT + 93 ) ) END * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4582
SELECT 9 * + - CASE + ( 45 ) WHEN - + 99 THEN NULLIF ( + 82, SUM ( DISTINCT + 93 ) ) END * + COUNT ( * )
----
NULL

query I rowsort
SELECT 23 + 72 AS col2
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4584
SELECT 66 - - + 6 * - - MAX( + 40 ) * - + 72 AS col1
----
-17214

skipif mysql # not compatible
query I rowsort label-4584
SELECT 66 - - + 6 * - - MAX ( + 40 ) * - + 72 AS col1
----
-17214

query I rowsort
SELECT ALL 48 * 8 * + 41 * - 66
----
-1039104

query I rowsort
SELECT 53 * 27 * - 44
----
-62964

query I rowsort
SELECT + COALESCE ( + + 70, + - ( - + ( - 89 ) ) + 34 ) + + COALESCE ( + 83, + 87 )
----
153

onlyif mysql # DIV for integer division: 
query I rowsort label-4588
SELECT 12 - - + 93 DIV - 19 + - 99 + + 96
----
5

skipif mysql # not compatible
query I rowsort label-4588
SELECT 12 - - + 93 / - 19 + - 99 + + 96
----
5

query I rowsort
SELECT 15 * 74 AS col2
----
1110

onlyif mysql # aggregate syntax: 
query I rowsort label-4590
SELECT - 6 + + + COUNT( * ) AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-4590
SELECT - 6 + + + COUNT ( * ) AS col0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4591
SELECT MIN( - + 72 ) + - + 20 + - + 5 AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-4591
SELECT MIN ( - + 72 ) + - + 20 + - + 5 AS col0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4592
SELECT ALL COALESCE ( - ( + + 58 ), + 38 * - - 11 - - 94 * 17, COUNT( * ) + + 21 ) AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-4592
SELECT ALL COALESCE ( - ( + + 58 ), + 38 * - - 11 - - 94 * 17, COUNT ( * ) + + 21 ) AS col0
----
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4593
SELECT DISTINCT - - 71 + - COUNT( * ) DIV 16 - 62 DIV 77 * + NULLIF ( MAX( + 99 ), + 32 )
----
71

skipif mysql # not compatible
query I rowsort label-4593
SELECT DISTINCT - - 71 + - COUNT ( * ) / 16 - 62 / 77 * + NULLIF ( MAX ( + 99 ), + 32 )
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4594
SELECT DISTINCT + 14 + 11 - - + ( + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4594
SELECT DISTINCT + 14 + 11 - - + ( + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4595
SELECT DISTINCT + 3 DIV - 63
----
0

skipif mysql # not compatible
query I rowsort label-4595
SELECT DISTINCT + 3 / - 63
----
0

query I rowsort
SELECT 2 + + 85
----
87

query I rowsort
SELECT + 39 * + - NULLIF ( - 91, + 64 / + ( 52 ) ) * 98 + - 54 AS col2
----
347748

onlyif mysql # aggregate syntax: 
query I rowsort label-4598
SELECT ALL - - COALESCE ( + + 17, + 33, + COUNT( * ) ) * 41 col2
----
697

skipif mysql # not compatible
query I rowsort label-4598
SELECT ALL - - COALESCE ( + + 17, + 33, + COUNT ( * ) ) * 41 col2
----
697

query I rowsort
SELECT - 48 + + 97 col2
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-4600
SELECT 92 DIV + 23
----
4

skipif mysql # not compatible
query I rowsort label-4600
SELECT 92 / + 23
----
4

query I rowsort
SELECT - 22 + 88
----
66

query I rowsort
SELECT ALL + + 29 + 79 AS col1
----
108

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4603
SELECT ALL - + 66 + - 69 + + - 73 DIV CASE WHEN ( 14 ) IS NOT NULL THEN COUNT( * ) * + 90 END AS col2
----
-135

skipif mysql # not compatible
query I rowsort label-4603
SELECT ALL - + 66 + - 69 + + - 73 / CASE WHEN ( 14 ) IS NOT NULL THEN COUNT ( * ) * + 90 END AS col2
----
-135

query I rowsort
SELECT 49 * - 26
----
-1274

query II rowsort
SELECT DISTINCT - 97 AS col2, - 30 AS col1
----
-97
-30

query I rowsort
SELECT ALL + 31 + + - 76
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-4607
SELECT ALL - 76 + + - COUNT( * ) + 6 AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-4607
SELECT ALL - 76 + + - COUNT ( * ) + 6 AS col2
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-4608
SELECT + COUNT( * ) * 63 + + 71
----
134

skipif mysql # not compatible
query I rowsort label-4608
SELECT + COUNT ( * ) * 63 + + 71
----
134

onlyif mysql # DIV for integer division: 
query I rowsort label-4609
SELECT 94 DIV + + 19 col0
----
4

skipif mysql # not compatible
query I rowsort label-4609
SELECT 94 / + + 19 col0
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4610
SELECT ALL - 40 DIV + CAST( COUNT( * ) AS SIGNED )
----
-40

skipif mysql # not compatible
query I rowsort label-4610
SELECT ALL - 40 / + CAST ( COUNT ( * ) AS INTEGER )
----
-40

query I rowsort
SELECT 65 * - + 70 * - 89 AS col1
----
404950

onlyif mysql # aggregate syntax: 
query I rowsort label-4612
SELECT ALL SUM( ALL + 3 ) * + + COUNT( * ) * 93 col1
----
279

skipif mysql # not compatible
query I rowsort label-4612
SELECT ALL SUM ( ALL + 3 ) * + + COUNT ( * ) * 93 col1
----
279

query II rowsort
SELECT DISTINCT - 61 col0, 8 * + - 22 * - NULLIF ( - 40, + 24 + 57 ) * + 38
----
-61
-267520

query II rowsort
SELECT ALL - 64, 9 * + + 41 AS col2
----
-64
369

onlyif mysql # aggregate syntax: 
query I rowsort label-4615
SELECT 99 + - MAX( 64 )
----
35

skipif mysql # not compatible
query I rowsort label-4615
SELECT 99 + - MAX ( 64 )
----
35

query I rowsort
SELECT ALL - 69 * + 94
----
-6486

query I rowsort
SELECT DISTINCT - COALESCE ( - + 45, - 47 )
----
45

query II rowsort
SELECT 70 AS col1, + 79 * - 74 + - 0
----
70
-5846

query I rowsort
SELECT DISTINCT 55 * + 41 AS col0
----
2255

query I rowsort
SELECT - 2 * + CASE - 90 WHEN - 93 - - + 77 - 19 THEN + 10 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4621
SELECT COUNT( * ) + CASE 89 WHEN - - 44 THEN 18 WHEN + CASE 64 WHEN + 4 * - 92 THEN NULL ELSE + 2 END THEN - 27 ELSE 6 * COALESCE ( 2, 79 + + COUNT( * ), 34, 62 * - COUNT( * ) ) END AS col1
----
13

skipif mysql # not compatible
query I rowsort label-4621
SELECT COUNT ( * ) + CASE 89 WHEN - - 44 THEN 18 WHEN + CASE 64 WHEN + 4 * - 92 THEN NULL ELSE + 2 END THEN - 27 ELSE 6 * COALESCE ( 2, 79 + + COUNT ( * ), 34, 62 * - COUNT ( * ) ) END AS col1
----
13

query I rowsort
SELECT ALL ( - + 12 ) + 7
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4623
SELECT - NULLIF ( ( - - 34 ), - ( + + 62 ) + - CAST( NULL AS SIGNED ) / + 76 ) AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-4623
SELECT - NULLIF ( ( - - 34 ), - ( + + 62 ) + - CAST ( NULL AS INTEGER ) / + 76 ) AS col2
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-4624
SELECT ALL MIN( ALL - 47 )
----
-47

skipif mysql # not compatible
query I rowsort label-4624
SELECT ALL MIN ( ALL - 47 )
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4625
SELECT - CAST( - 44 AS SIGNED ) * - 34 AS col0
----
-1496

skipif mysql # not compatible
query I rowsort label-4625
SELECT - CAST ( - 44 AS INTEGER ) * - 34 AS col0
----
-1496

onlyif mysql # DIV for integer division: 
query I rowsort label-4626
SELECT DISTINCT 22 + + + 36 + - + 98 DIV - 50
----
59

skipif mysql # not compatible
query I rowsort label-4626
SELECT DISTINCT 22 + + + 36 + - + 98 / - 50
----
59

query I rowsort
SELECT ALL - 65 + + 53
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4628
SELECT + COUNT( CAST( NULL AS SIGNED ) ) * + NULLIF ( + 23, + + COUNT( * ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4628
SELECT + COUNT ( CAST ( NULL AS INTEGER ) ) * + NULLIF ( + 23, + + COUNT ( * ) ) AS col1
----
0

query I rowsort
SELECT ALL + - 6 + - 60 * - - 91 AS col0
----
-5466

query II rowsort
SELECT + 89 col2, ( - 16 ) AS col2
----
89
-16

query I rowsort
SELECT ALL 49 * + ( + 71 )
----
3479

onlyif mysql # aggregate syntax: 
query I rowsort label-4632
SELECT - 18 * + + MAX( DISTINCT + 92 ) + 14 col0
----
-1642

skipif mysql # not compatible
query I rowsort label-4632
SELECT - 18 * + + MAX ( DISTINCT + 92 ) + 14 col0
----
-1642

query I rowsort
SELECT 30 * - + 7 AS col2
----
-210

query I rowsort
SELECT + COALESCE ( + - 91, - 95 ) + - 80
----
-171

query I rowsort
SELECT DISTINCT + 82 + 28 * + 72 + - 77 col0
----
2021

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4636
SELECT ALL + + NULLIF ( + + COUNT( * ), + ( 81 ) ) + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4636
SELECT ALL + + NULLIF ( + + COUNT ( * ), + ( 81 ) ) + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4637
SELECT DISTINCT - MAX( ALL + 68 )
----
-68

skipif mysql # not compatible
query I rowsort label-4637
SELECT DISTINCT - MAX ( ALL + 68 )
----
-68

query I rowsort
SELECT DISTINCT 38 - ( + 46 ) AS col1
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-4639
SELECT DISTINCT MAX( ALL - + 77 ) AS col2, + COUNT( - 15 ) + - - 10 AS col1, - CAST( NULL AS SIGNED ) AS col1
----
-77
11
NULL

skipif mysql # not compatible
query III rowsort label-4639
SELECT DISTINCT MAX ( ALL - + 77 ) AS col2, + COUNT ( - 15 ) + - - 10 AS col1, - CAST ( NULL AS INTEGER ) AS col1
----
-77
11
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4640
SELECT ALL - COUNT( * ) - 18
----
-19

skipif mysql # not compatible
query I rowsort label-4640
SELECT ALL - COUNT ( * ) - 18
----
-19

query I rowsort
SELECT - 81 * 19 AS col2
----
-1539

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4642
SELECT ALL - 72 * ( + - COUNT( * ) ) DIV + CASE - 6 WHEN + 81 DIV + + 80 + + 76 THEN NULL WHEN - COUNT( 94 ) * 37 + 23 THEN + 70 WHEN - 37 THEN - 50 ELSE + ( 15 ) END
----
4

skipif mysql # not compatible
query I rowsort label-4642
SELECT ALL - 72 * ( + - COUNT ( * ) ) / + CASE - 6 WHEN + 81 / + + 80 + + 76 THEN NULL WHEN - COUNT ( 94 ) * 37 + 23 THEN + 70 WHEN - 37 THEN - 50 ELSE + ( 15 ) END
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4643
SELECT DISTINCT - 54 * NULLIF ( - MIN( ALL + 29 ), + 25 * NULLIF ( CASE COUNT( * ) WHEN + 99 * + COUNT( * ) THEN + 5 - + ( + 56 + 9 ) WHEN - 75 THEN NULL END, - 81 / NULLIF ( + NULLIF ( + 83, - 32 ) * 52, CAST( COUNT( * ) AS SIGNED ) ) ) ) * + 70
----
109620

skipif mysql # not compatible
query I rowsort label-4643
SELECT DISTINCT - 54 * NULLIF ( - MIN ( ALL + 29 ), + 25 * NULLIF ( CASE COUNT ( * ) WHEN + 99 * + COUNT ( * ) THEN + 5 - + ( + 56 + 9 ) WHEN - 75 THEN NULL END, - 81 / NULLIF ( + NULLIF ( + 83, - 32 ) * 52, CAST ( COUNT ( * ) AS INTEGER ) ) ) ) * + 70
----
109620

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4644
SELECT ALL + ( - + CAST( 10 AS SIGNED ) )
----
-10

skipif mysql # not compatible
query I rowsort label-4644
SELECT ALL + ( - + CAST ( 10 AS INTEGER ) )
----
-10

query I rowsort
SELECT - 45 * 94 * 23
----
-97290

query I rowsort
SELECT - 51 * + ( 64 )
----
-3264

onlyif mysql # aggregate syntax: 
query I rowsort label-4647
SELECT NULLIF ( + 32, COUNT( * ) / - + ( AVG ( DISTINCT - 69 ) ) + - - 42 + 85 * - CASE 81 * + AVG ( ALL - 74 ) - - 67 / - 81 WHEN COUNT( * ) THEN + NULLIF ( 86, COALESCE ( + COUNT( * ), - 23 + COALESCE ( CASE 37 WHEN 16 + NULLIF ( - COUNT( * ), + 82 * - CASE + 7 WHEN COUNT( * ) THEN + 91 WHEN - 10 THEN NULL END ) / 94 THEN + 28 + 63 ELSE NULL END, - 26, 42 ) ) * - 90 ) ELSE NULL END / 85 ) AS col1
----
32

skipif mysql # not compatible
query I rowsort label-4647
SELECT NULLIF ( + 32, COUNT ( * ) / - + ( AVG ( DISTINCT - 69 ) ) + - - 42 + 85 * - CASE 81 * + AVG ( ALL - 74 ) - - 67 / - 81 WHEN COUNT ( * ) THEN + NULLIF ( 86, COALESCE ( + COUNT ( * ), - 23 + COALESCE ( CASE 37 WHEN 16 + NULLIF ( - COUNT ( * ), + 82 * - CASE + 7 WHEN COUNT ( * ) THEN + 91 WHEN - 10 THEN NULL END ) / 94 THEN + 28 + 63 ELSE NULL END, - 26, 42 ) ) * - 90 ) ELSE NULL END / 85 ) AS col1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4648
SELECT DISTINCT + SUM( + - 60 )
----
-60

skipif mysql # not compatible
query I rowsort label-4648
SELECT DISTINCT + SUM ( + - 60 )
----
-60

query II rowsort
SELECT DISTINCT - 55 * - 4, 76 AS col0
----
220
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4650
SELECT - COALESCE ( CAST( NULL AS SIGNED ), - - 12 + + 60, - - 25 ) * 60 * COALESCE ( 9, 82 + - MIN( DISTINCT - ( 41 ) ) )
----
-38880

skipif mysql # not compatible
query I rowsort label-4650
SELECT - COALESCE ( CAST ( NULL AS INTEGER ), - - 12 + + 60, - - 25 ) * 60 * COALESCE ( 9, 82 + - MIN ( DISTINCT - ( 41 ) ) )
----
-38880

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4651
SELECT DISTINCT + ( - ( - - CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4651
SELECT DISTINCT + ( - ( - - CAST ( NULL AS INTEGER ) ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4652
SELECT - 67 DIV 71 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4652
SELECT - 67 / 71 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4653
SELECT ALL + COUNT( * ) DIV + 55, + 7 AS col0
----
0
7

skipif mysql # not compatible
query II rowsort label-4653
SELECT ALL + COUNT ( * ) / + 55, + 7 AS col0
----
0
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4654
SELECT + ( COUNT( * ) ) * ( 81 ) + ( + + 87 ) AS col1
----
168

skipif mysql # not compatible
query I rowsort label-4654
SELECT + ( COUNT ( * ) ) * ( 81 ) + ( + + 87 ) AS col1
----
168

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4655
SELECT + 85 * 39 AS col0, ( + - 22 ) + + 4 + + + 67 * - 70 * - 17 DIV COUNT( * ) AS col0
----
3315
79712

skipif mysql # not compatible
query II rowsort label-4655
SELECT + 85 * 39 AS col0, ( + - 22 ) + + 4 + + + 67 * - 70 * - 17 / COUNT ( * ) AS col0
----
3315
79712

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4656
SELECT NULLIF ( 14, - + CAST( - COALESCE ( CASE - SUM( ALL 1 ) WHEN - ( + COUNT( * ) ) - 11 THEN 75 * - 99 ELSE - 16 END, 7 + + SUM( 15 ), - ( 4 ) ) AS SIGNED ) ) * MIN( 39 * + 44 ) + 5 AS col1
----
24029

skipif mysql # not compatible
query I rowsort label-4656
SELECT NULLIF ( 14, - + CAST ( - COALESCE ( CASE - SUM ( ALL 1 ) WHEN - ( + COUNT ( * ) ) - 11 THEN 75 * - 99 ELSE - 16 END, 7 + + SUM ( 15 ), - ( 4 ) ) AS INTEGER ) ) * MIN ( 39 * + 44 ) + 5 AS col1
----
24029

onlyif mysql # aggregate syntax: 
query I rowsort label-4657
SELECT ALL + 0 * - COUNT( - 89 ) * CASE 89 WHEN - 85 THEN 5 ELSE NULL END + 98 + - 34 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4657
SELECT ALL + 0 * - COUNT ( - 89 ) * CASE 89 WHEN - 85 THEN 5 ELSE NULL END + 98 + - 34 AS col0
----
NULL

query I rowsort
SELECT - + 49 - - 40 + - 98 * + 86 + - + 66
----
-8503

query II rowsort
SELECT DISTINCT + - ( - 65 ), + 11 AS col0
----
65
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4660
SELECT DISTINCT + - 76 * + + COUNT( * ) + + ( - - 0 )
----
-76

skipif mysql # not compatible
query I rowsort label-4660
SELECT DISTINCT + - 76 * + + COUNT ( * ) + + ( - - 0 )
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-4661
SELECT ALL - + COUNT( * ) * + + MAX( + - 95 ) + COUNT( * ) * 29
----
124

skipif mysql # not compatible
query I rowsort label-4661
SELECT ALL - + COUNT ( * ) * + + MAX ( + - 95 ) + COUNT ( * ) * 29
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-4662
SELECT - - 20 * - COUNT( * ) + - - CASE - + 88 WHEN + 81 THEN NULL WHEN 10 / + COALESCE ( - ( - 20 ), 26 * 81 ) * - 40 + 45 THEN NULL ELSE + COUNT( * ) END AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-4662
SELECT - - 20 * - COUNT ( * ) + - - CASE - + 88 WHEN + 81 THEN NULL WHEN 10 / + COALESCE ( - ( - 20 ), 26 * 81 ) * - 40 + 45 THEN NULL ELSE + COUNT ( * ) END AS col0
----
-19

query I rowsort
SELECT DISTINCT + + 19 AS col2
----
19

query I rowsort
SELECT ALL 66 * - - 50 + 92 + 37
----
3429

onlyif mysql # aggregate syntax: 
query I rowsort label-4665
SELECT - NULLIF ( - - 48, + ( - + 63 ) * - 39 ) + COUNT( * ) + ( COUNT( * ) ) AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-4665
SELECT - NULLIF ( - - 48, + ( - + 63 ) * - 39 ) + COUNT ( * ) + ( COUNT ( * ) ) AS col0
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4666
SELECT + + CAST( NULL AS SIGNED ) - + 32 + 0 + + - 25 * - ( NULLIF ( - - 75, 7 ) ) * - 69 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4666
SELECT + + CAST ( NULL AS INTEGER ) - + 32 + 0 + + - 25 * - ( NULLIF ( - - 75, 7 ) ) * - 69 AS col2
----
NULL

query I rowsort
SELECT 64 * + - 94 + 20
----
-5996

onlyif mysql # aggregate syntax: 
query I rowsort label-4668
SELECT + - COUNT( 8 ) + + COALESCE ( + - 49, + 34, + 96 + + 27 + 17, 40 + - 96 ) AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-4668
SELECT + - COUNT ( 8 ) + + COALESCE ( + - 49, + 34, + 96 + + 27 + 17, 40 + - 96 ) AS col1
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-4669
SELECT DISTINCT COUNT( * ) - - 72 AS col0
----
73

skipif mysql # not compatible
query I rowsort label-4669
SELECT DISTINCT COUNT ( * ) - - 72 AS col0
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4670
SELECT DISTINCT - 60 * + 46 - - MIN( DISTINCT 89 ) * CAST( - + 41 AS SIGNED ) * + 62 * 12
----
-2717616

skipif mysql # not compatible
query I rowsort label-4670
SELECT DISTINCT - 60 * + 46 - - MIN ( DISTINCT 89 ) * CAST ( - + 41 AS INTEGER ) * + 62 * 12
----
-2717616

onlyif mysql # aggregate syntax: 
query I rowsort label-4671
SELECT ALL + COUNT( * ) - - 81 AS col1
----
82

skipif mysql # not compatible
query I rowsort label-4671
SELECT ALL + COUNT ( * ) - - 81 AS col1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4672
SELECT ALL 87 * - COUNT( * ) * - COUNT( * ) AS col0
----
87

skipif mysql # not compatible
query I rowsort label-4672
SELECT ALL 87 * - COUNT ( * ) * - COUNT ( * ) AS col0
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4673
SELECT + AVG ( ALL CAST( NULL AS SIGNED ) ) + - - 96
----
NULL

skipif mysql # not compatible
query I rowsort label-4673
SELECT + AVG ( ALL CAST ( NULL AS INTEGER ) ) + - - 96
----
NULL

query I rowsort
SELECT - COALESCE ( 56, + 9, + 81 + + 38 + - + 55 + + 43 ) AS col1
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4675
SELECT - 57 + + AVG ( + CAST( NULL AS SIGNED ) ), 95 + - - 88 * 72 AS col2
----
NULL
6431

skipif mysql # not compatible
query II rowsort label-4675
SELECT - 57 + + AVG ( + CAST ( NULL AS INTEGER ) ), 95 + - - 88 * 72 AS col2
----
NULL
6431

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4676
SELECT ALL COUNT( * ), + COALESCE ( + 67, - - 71 + 95 + + - 47 ) DIV + - NULLIF ( - 85, - 26 DIV 13 ) + - MIN( DISTINCT 85 + + 92 * + 86 ) AS col0
----
1
-7997

skipif mysql # not compatible
query II rowsort label-4676
SELECT ALL COUNT ( * ), + COALESCE ( + 67, - - 71 + 95 + + - 47 ) / + - NULLIF ( - 85, - 26 / 13 ) + - MIN ( DISTINCT 85 + + 92 * + 86 ) AS col0
----
1
-7997

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4677
SELECT + ( + - 43 ) DIV + 71 * + COUNT( * ) + 82 * 74 AS col1
----
6068

skipif mysql # not compatible
query I rowsort label-4677
SELECT + ( + - 43 ) / + 71 * + COUNT ( * ) + 82 * 74 AS col1
----
6068

query I rowsort
SELECT + ( + - 98 ) + + 70
----
-28

query I rowsort
SELECT + 22 * - 80 * - - 17 * 88 * - 50 AS col0
----
131648000

onlyif mysql # aggregate syntax: 
query I rowsort label-4680
SELECT + COUNT( * ) + 60 col2
----
61

skipif mysql # not compatible
query I rowsort label-4680
SELECT + COUNT ( * ) + 60 col2
----
61

query I rowsort
SELECT - 15 + - - 45
----
30

query I rowsort
SELECT ALL + ( + 67 ) AS col1
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4683
SELECT ALL COUNT( * ) DIV CAST( - + COUNT( * ) AS SIGNED ) + - 8 DIV - + 65 + 17 + CAST( - 77 AS SIGNED ) DIV CASE COALESCE ( 94, 29, NULLIF ( 86, 17 + + 83 ) * - ( + 99 - COUNT( ( 42 ) ) ) ) WHEN + 85 THEN + 96 ELSE + 43 DIV 4 + 53 * - 49 END AS col1
----
16

skipif mysql # not compatible
query I rowsort label-4683
SELECT ALL COUNT ( * ) / CAST ( - + COUNT ( * ) AS INTEGER ) + - 8 / - + 65 + 17 + CAST ( - 77 AS INTEGER ) / CASE COALESCE ( 94, 29, NULLIF ( 86, 17 + + 83 ) * - ( + 99 - COUNT ( ( 42 ) ) ) ) WHEN + 85 THEN + 96 ELSE + 43 / 4 + 53 * - 49 END AS col1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4684
SELECT 69 * - 20 + - COUNT( * ) AS col2
----
-1381

skipif mysql # not compatible
query I rowsort label-4684
SELECT 69 * - 20 + - COUNT ( * ) AS col2
----
-1381

onlyif mysql # DIV for integer division: 
query I rowsort label-4685
SELECT - 37 + + - 48 DIV - COALESCE ( - 92, + - 44 ) * 17 * - - 56
----
-37

skipif mysql # not compatible
query I rowsort label-4685
SELECT - 37 + + - 48 / - COALESCE ( - 92, + - 44 ) * 17 * - - 56
----
-37

query I rowsort
SELECT CASE + 55 WHEN - 74 / + 97 + + 39 / - 89 THEN 39 WHEN + 6 + 10 THEN 16 END * - 0 + - 89 col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4687
SELECT ALL - 31 DIV - 48 - 25 * - - 96 + + COUNT( * ) AS col2
----
-2399

skipif mysql # not compatible
query I rowsort label-4687
SELECT ALL - 31 / - 48 - 25 * - - 96 + + COUNT ( * ) AS col2
----
-2399

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4688
SELECT ALL - + 32 DIV 32 DIV NULLIF ( + COUNT( * ), - 88 ) + - 49 + + CAST( + 4 AS SIGNED ) + 44 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-4688
SELECT ALL - + 32 / 32 / NULLIF ( + COUNT ( * ), - 88 ) + - 49 + + CAST ( + 4 AS INTEGER ) + 44 AS col2
----
-2

query I rowsort
SELECT ALL + - CASE + 54 WHEN - - 84 THEN NULL WHEN - 83 * + 51 * + 26 / + + AVG ( DISTINCT + 88 ) THEN ( 84 ) ELSE - 69 END
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4690
SELECT DISTINCT + NULLIF ( + CAST( 7 AS SIGNED ), - 38 / + 6 + 69 / + 51 * + 32 - - COUNT( * ) / - ( - 57 ) )
----
7

skipif mysql # not compatible
query I rowsort label-4690
SELECT DISTINCT + NULLIF ( + CAST ( 7 AS INTEGER ), - 38 / + 6 + 69 / + 51 * + 32 - - COUNT ( * ) / - ( - 57 ) )
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4691
SELECT - - 38 + 61 - + CAST( NULL AS SIGNED ) AS col2, - 46 AS col2
----
NULL
-46

skipif mysql # not compatible
query II rowsort label-4691
SELECT - - 38 + 61 - + CAST ( NULL AS INTEGER ) AS col2, - 46 AS col2
----
NULL
-46

query II rowsort
SELECT + + 36 AS col1, + 63 AS col2
----
36
63

query I rowsort
SELECT + 75 + + - 70 * + + 60 AS col0
----
-4125

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4694
SELECT ALL + 82 - - 62 + 27 * - CAST( + 69 AS SIGNED ) AS col0
----
-1719

skipif mysql # not compatible
query I rowsort label-4694
SELECT ALL + 82 - - 62 + 27 * - CAST ( + 69 AS INTEGER ) AS col0
----
-1719

onlyif mysql # aggregate syntax: 
query I rowsort label-4695
SELECT - 84 * - NULLIF ( 10, + COUNT( * ) * COUNT( * ) + + 42 )
----
840

skipif mysql # not compatible
query I rowsort label-4695
SELECT - 84 * - NULLIF ( 10, + COUNT ( * ) * COUNT ( * ) + + 42 )
----
840

query II rowsort
SELECT - 24 AS col1, + 81 AS col1
----
-24
81

query I rowsort
SELECT DISTINCT + + 80 * - + 74 AS col0
----
-5920

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4698
SELECT DISTINCT CAST( - 66 AS SIGNED ) AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-4698
SELECT DISTINCT CAST ( - 66 AS INTEGER ) AS col0
----
-66

query I rowsort
SELECT 69 * - + 90
----
-6210

query I rowsort
SELECT ALL + 30 * + 78 AS col0
----
2340

query I rowsort
SELECT 58 + + ( + 0 )
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4702
SELECT 65 * - - 90 AS col1, + NULLIF ( + 58, + - 8 + COALESCE ( - COALESCE ( CAST( NULL AS SIGNED ), MAX( DISTINCT - 29 ) * 34 ), 47, + COUNT( * ) - - NULLIF ( 54, - 88 / 65 ) ) ) AS col2
----
5850
58

skipif mysql # not compatible
query II rowsort label-4702
SELECT 65 * - - 90 AS col1, + NULLIF ( + 58, + - 8 + COALESCE ( - COALESCE ( CAST ( NULL AS INTEGER ), MAX ( DISTINCT - 29 ) * 34 ), 47, + COUNT ( * ) - - NULLIF ( 54, - 88 / 65 ) ) ) AS col2
----
5850
58

query I rowsort
SELECT COALESCE ( - + 97, 13 ) + - ( - 45 ) * 69
----
3008

onlyif mysql # DIV for integer division: 
query I rowsort label-4704
SELECT DISTINCT 63 DIV - 70 col1
----
0

skipif mysql # not compatible
query I rowsort label-4704
SELECT DISTINCT 63 / - 70 col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4705
SELECT ALL ( CAST( NULL AS SIGNED ) ) * + 94 * 55 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4705
SELECT ALL ( CAST ( NULL AS INTEGER ) ) * + 94 * 55 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4706
SELECT ( + 83 ) DIV + + 12 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-4706
SELECT ( + 83 ) / + + 12 AS col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4707
SELECT 83 + - - COUNT( * ) AS col0
----
84

skipif mysql # not compatible
query I rowsort label-4707
SELECT 83 + - - COUNT ( * ) AS col0
----
84

query I rowsort
SELECT DISTINCT 91 + + 24 + 35 AS col0
----
150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4709
SELECT DISTINCT 55 + + - COUNT( CAST( - + 43 AS SIGNED ) ) AS col2
----
54

skipif mysql # not compatible
query I rowsort label-4709
SELECT DISTINCT 55 + + - COUNT ( CAST ( - + 43 AS INTEGER ) ) AS col2
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4710
SELECT DISTINCT + CAST( - 9 AS SIGNED ) + + + 84
----
75

skipif mysql # not compatible
query I rowsort label-4710
SELECT DISTINCT + CAST ( - 9 AS INTEGER ) + + + 84
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4711
SELECT ALL + - 74 + + 61 * - MIN( ALL 35 ) * + COALESCE ( - 92, + - 41, 50 )
----
196346

skipif mysql # not compatible
query I rowsort label-4711
SELECT ALL + - 74 + + 61 * - MIN ( ALL 35 ) * + COALESCE ( - 92, + - 41, 50 )
----
196346

onlyif mysql # aggregate syntax: 
query I rowsort label-4712
SELECT ALL + 86 - + - COUNT( + - 19 ) * - - 93 * + 21 col1
----
2039

skipif mysql # not compatible
query I rowsort label-4712
SELECT ALL + 86 - + - COUNT ( + - 19 ) * - - 93 * + 21 col1
----
2039

onlyif mysql # aggregate syntax: 
query I rowsort label-4713
SELECT ALL - MAX( + 18 )
----
-18

skipif mysql # not compatible
query I rowsort label-4713
SELECT ALL - MAX ( + 18 )
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4714
SELECT COUNT( * ) DIV 65 + + 84 + 11 AS col1
----
95

skipif mysql # not compatible
query I rowsort label-4714
SELECT COUNT ( * ) / 65 + + 84 + 11 AS col1
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4715
SELECT + + COUNT( 90 ) AS col1, + 73 DIV - NULLIF ( + 73, 80 + + 12 )
----
1
-1

skipif mysql # not compatible
query II rowsort label-4715
SELECT + + COUNT ( 90 ) AS col1, + 73 / - NULLIF ( + 73, 80 + + 12 )
----
1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4716
SELECT MAX( ALL 81 ) + + 14 AS col0
----
95

skipif mysql # not compatible
query I rowsort label-4716
SELECT MAX ( ALL 81 ) + + 14 AS col0
----
95

query II rowsort
SELECT ALL + 51 - 70 AS col2, - 43 * + ( - - 70 ) AS col1
----
-19
-3010

onlyif mysql # DIV for integer division: 
query I rowsort label-4718
SELECT DISTINCT 0 * - + 97 * + 45 DIV 41 + 30 AS col0
----
30

skipif mysql # not compatible
query I rowsort label-4718
SELECT DISTINCT 0 * - + 97 * + 45 / 41 + 30 AS col0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4719
SELECT CASE - 94 WHEN + 3 THEN - - 6 / 51 + - - 51 + 31 * - COALESCE ( - 98, 66, - 43 + COUNT( * ) ) + 73 + - MIN( DISTINCT 29 ) WHEN COUNT( * ) + + 39 THEN NULL END + 93 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4719
SELECT CASE - 94 WHEN + 3 THEN - - 6 / 51 + - - 51 + 31 * - COALESCE ( - 98, 66, - 43 + COUNT ( * ) ) + 73 + - MIN ( DISTINCT 29 ) WHEN COUNT ( * ) + + 39 THEN NULL END + 93 AS col2
----
NULL

query I rowsort
SELECT 84 * + 2
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-4721
SELECT 30 + + 6 - + - 96 + + COUNT( * ) - - 23 AS col1
----
156

skipif mysql # not compatible
query I rowsort label-4721
SELECT 30 + + 6 - + - 96 + + COUNT ( * ) - - 23 AS col1
----
156

onlyif mysql # DIV for integer division: 
query I rowsort label-4722
SELECT ALL - + 15 DIV 63 * 85
----
0

skipif mysql # not compatible
query I rowsort label-4722
SELECT ALL - + 15 / 63 * 85
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4723
SELECT - 14 DIV - 58 * 17
----
0

skipif mysql # not compatible
query I rowsort label-4723
SELECT - 14 / - 58 * 17
----
0

query I rowsort
SELECT 0 * - 10 * - - 17 * + 49 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4725
SELECT ALL MIN( ALL 42 ) AS col1
----
42

skipif mysql # not compatible
query I rowsort label-4725
SELECT ALL MIN ( ALL 42 ) AS col1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4726
SELECT 84 + CASE + SUM( + + 75 ) WHEN - + COUNT( * ) + + 71 / 14 THEN - NULLIF ( + - 38, + - 55 ) + 42 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4726
SELECT 84 + CASE + SUM ( + + 75 ) WHEN - + COUNT ( * ) + + 71 / 14 THEN - NULLIF ( + - 38, + - 55 ) + 42 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4727
SELECT ALL + NULLIF ( MAX( ALL 26 ), ( + 48 ) / + 30 * 21 + - - 52 * + 99 ) + 78 AS col1
----
104

skipif mysql # not compatible
query I rowsort label-4727
SELECT ALL + NULLIF ( MAX ( ALL 26 ), ( + 48 ) / + 30 * 21 + - - 52 * + 99 ) + 78 AS col1
----
104

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4728
SELECT ALL + 41 + - COUNT( * ) DIV 26
----
41

skipif mysql # not compatible
query I rowsort label-4728
SELECT ALL + 41 + - COUNT ( * ) / 26
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4729
SELECT ALL - CASE 29 WHEN 67 DIV + 76 + + + 37 + - - 48 DIV 9 * + - 19 * - - 3 * + 65 - - ( 23 + COALESCE ( - COUNT( * ) + + CAST( - 96 AS SIGNED ), 2, 94 * + CAST( NULL AS SIGNED ) + + 86 ) ) THEN + 69 DIV 75 - - 28 WHEN - 68 DIV 17 THEN NULL ELSE COUNT( 45 ) END + 93
----
92

skipif mysql # not compatible
query I rowsort label-4729
SELECT ALL - CASE 29 WHEN 67 / + 76 + + + 37 + - - 48 / 9 * + - 19 * - - 3 * + 65 - - ( 23 + COALESCE ( - COUNT ( * ) + + CAST ( - 96 AS INTEGER ), 2, 94 * + CAST ( NULL AS INTEGER ) + + 86 ) ) THEN + 69 / 75 - - 28 WHEN - 68 / 17 THEN NULL ELSE COUNT ( 45 ) END + 93
----
92

onlyif mysql # aggregate syntax: 
query III rowsort label-4730
SELECT 20 col2, MIN( ALL - - 60 ), + + 45 * 47 - + 97 * 68 - 47 + + 1 + - COUNT( * ) * + COUNT( * ) AS col1
----
20
60
-4528

skipif mysql # not compatible
query III rowsort label-4730
SELECT 20 col2, MIN ( ALL - - 60 ), + + 45 * 47 - + 97 * 68 - 47 + + 1 + - COUNT ( * ) * + COUNT ( * ) AS col1
----
20
60
-4528

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4731
SELECT ALL CAST( NULL AS SIGNED ) + - + 28
----
NULL

skipif mysql # not compatible
query I rowsort label-4731
SELECT ALL CAST ( NULL AS INTEGER ) + - + 28
----
NULL

query I rowsort
SELECT DISTINCT + 6 + 50 * + 93
----
4656

onlyif mysql # aggregate syntax: 
query I rowsort label-4733
SELECT ALL MIN( + 92 ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-4733
SELECT ALL MIN ( + 92 ) AS col2
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4734
SELECT COUNT( * ) + + + 6 AS col1
----
7

skipif mysql # not compatible
query I rowsort label-4734
SELECT COUNT ( * ) + + + 6 AS col1
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4735
SELECT DISTINCT - CASE CAST( NULL AS SIGNED ) WHEN + 23 THEN NULL ELSE COUNT( * ) END
----
-1

skipif mysql # not compatible
query I rowsort label-4735
SELECT DISTINCT - CASE CAST ( NULL AS INTEGER ) WHEN + 23 THEN NULL ELSE COUNT ( * ) END
----
-1

query I rowsort
SELECT ALL - + ( - + ( 10 ) ) col2
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4737
SELECT DISTINCT CAST( NULL AS SIGNED ) * - - 18
----
NULL

skipif mysql # not compatible
query I rowsort label-4737
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - - 18
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4738
SELECT + 21 * + 76 * CASE 35 WHEN CASE + ( + - 0 ) WHEN CASE - + NULLIF ( - CAST( - 15 AS SIGNED ), 38 ) WHEN - 17 THEN CAST( + 87 AS SIGNED ) / 38 END THEN NULL WHEN + CAST( NULL AS SIGNED ) * 13 THEN 76 * + 24 + - 90 END * 7 THEN + 1 / + COUNT( * ) END + 78
----
NULL

skipif mysql # not compatible
query I rowsort label-4738
SELECT + 21 * + 76 * CASE 35 WHEN CASE + ( + - 0 ) WHEN CASE - + NULLIF ( - CAST ( - 15 AS INTEGER ), 38 ) WHEN - 17 THEN CAST ( + 87 AS INTEGER ) / 38 END THEN NULL WHEN + CAST ( NULL AS INTEGER ) * 13 THEN 76 * + 24 + - 90 END * 7 THEN + 1 / + COUNT ( * ) END + 78
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4739
SELECT ALL + - 48 * ( + 94 ) * - + COUNT( - + 79 ) + - - 66 - - 1 AS col2
----
4579

skipif mysql # not compatible
query I rowsort label-4739
SELECT ALL + - 48 * ( + 94 ) * - + COUNT ( - + 79 ) + - - 66 - - 1 AS col2
----
4579

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4740
SELECT ALL ( + 71 ) * - CAST( NULL AS SIGNED ) col2, COUNT( * ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-4740
SELECT ALL ( + 71 ) * - CAST ( NULL AS INTEGER ) col2, COUNT ( * ) AS col2
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4741
SELECT + 43 + + - COUNT( * ) AS col2
----
42

skipif mysql # not compatible
query I rowsort label-4741
SELECT + 43 + + - COUNT ( * ) AS col2
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4742
SELECT + 87 * + CAST( + 76 AS SIGNED ) DIV - 19 DIV - COUNT( * ) + 32 AS col0
----
380

skipif mysql # not compatible
query I rowsort label-4742
SELECT + 87 * + CAST ( + 76 AS INTEGER ) / - 19 / - COUNT ( * ) + 32 AS col0
----
380

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4743
SELECT + MIN( DISTINCT + ( - ( + + 58 ) ) ) * + 83 * + 44 + ( - - 44 ) AS col0, + ( - - 56 ) - - 6 * + CAST( 79 AS SIGNED ) AS col2
----
-211772
530

skipif mysql # not compatible
query II rowsort label-4743
SELECT + MIN ( DISTINCT + ( - ( + + 58 ) ) ) * + 83 * + 44 + ( - - 44 ) AS col0, + ( - - 56 ) - - 6 * + CAST ( 79 AS INTEGER ) AS col2
----
-211772
530

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4744
SELECT + CASE WHEN NULL NOT BETWEEN 71 AND + 29 THEN + COUNT( * ) WHEN ( - 13 ) NOT BETWEEN NULL AND ( NULL ) AND CAST( NULL AS SIGNED ) * + 76 <= ( - 92 + + 93 ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4744
SELECT + CASE WHEN NULL NOT BETWEEN 71 AND + 29 THEN + COUNT ( * ) WHEN ( - 13 ) NOT BETWEEN NULL AND ( NULL ) AND CAST ( NULL AS INTEGER ) * + 76 <= ( - 92 + + 93 ) THEN NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4745
SELECT ALL - COUNT( DISTINCT - 39 ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4745
SELECT ALL - COUNT ( DISTINCT - 39 ) * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4746
SELECT DISTINCT + COUNT( + 98 )
----
1

skipif mysql # not compatible
query I rowsort label-4746
SELECT DISTINCT + COUNT ( + 98 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4747
SELECT DISTINCT + NULLIF ( + ( + ( - CAST( - + NULLIF ( 24, - + 87 * - 19 * 48 + - - 92 + 37 ) AS SIGNED ) ) ), - 54 ) * 17 AS col1
----
408

skipif mysql # not compatible
query I rowsort label-4747
SELECT DISTINCT + NULLIF ( + ( + ( - CAST ( - + NULLIF ( 24, - + 87 * - 19 * 48 + - - 92 + 37 ) AS INTEGER ) ) ), - 54 ) * 17 AS col1
----
408

query I rowsort
SELECT + - 36 * - + 85 AS col2
----
3060

onlyif mysql # aggregate syntax: 
query II rowsort label-4749
SELECT ALL + - COUNT( * ), + 60 AS col1
----
-1
60

skipif mysql # not compatible
query II rowsort label-4749
SELECT ALL + - COUNT ( * ), + 60 AS col1
----
-1
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4750
SELECT DISTINCT + + COALESCE ( - - 60, + 63 + + 88 * ( + COUNT( * ) ), + + 19 )
----
60

skipif mysql # not compatible
query I rowsort label-4750
SELECT DISTINCT + + COALESCE ( - - 60, + 63 + + 88 * ( + COUNT ( * ) ), + + 19 )
----
60

query I rowsort
SELECT DISTINCT 33 * - 63
----
-2079

query I rowsort
SELECT + 3 * - 81
----
-243

onlyif mysql # aggregate syntax: 
query I rowsort label-4753
SELECT - SUM( ALL + - 6 ) * 88 AS col2
----
528

skipif mysql # not compatible
query I rowsort label-4753
SELECT - SUM ( ALL + - 6 ) * 88 AS col2
----
528

onlyif mysql # aggregate syntax: 
query II rowsort label-4754
SELECT DISTINCT - 9 + + 26 col1, - COUNT( * ) + - 10 - - + 51
----
17
40

skipif mysql # not compatible
query II rowsort label-4754
SELECT DISTINCT - 9 + + 26 col1, - COUNT ( * ) + - 10 - - + 51
----
17
40

query I rowsort
SELECT ALL + 54 + 64 + - - 43 col0
----
161

query I rowsort
SELECT - ( COALESCE ( + + 58, 44 ) ) AS col2
----
-58

query I rowsort
SELECT DISTINCT 87 + - 40
----
47

query I rowsort
SELECT - 99 * + 58
----
-5742

onlyif mysql # DIV for integer division: 
query I rowsort label-4759
SELECT - 16 DIV + 61
----
0

skipif mysql # not compatible
query I rowsort label-4759
SELECT - 16 / + 61
----
0

query I rowsort
SELECT DISTINCT 22 + - 44 AS col0
----
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4761
SELECT DISTINCT - SUM( DISTINCT + 6 ) DIV - 52 * + + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-4761
SELECT DISTINCT - SUM ( DISTINCT + 6 ) / - 52 * + + COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4762
SELECT DISTINCT + 9 + - + COUNT( * ) AS col1
----
8

skipif mysql # not compatible
query I rowsort label-4762
SELECT DISTINCT + 9 + - + COUNT ( * ) AS col1
----
8

query I rowsort
SELECT + 63 + + 48
----
111

onlyif mysql # aggregate syntax: 
query II rowsort label-4764
SELECT ALL COUNT( * ) col1, 69 + 93 AS col1
----
1
162

skipif mysql # not compatible
query II rowsort label-4764
SELECT ALL COUNT ( * ) col1, 69 + 93 AS col1
----
1
162

query II rowsort
SELECT - 82, + 1 - 76 AS col0
----
-82
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4766
SELECT ALL CASE - 21 WHEN 22 THEN NULL WHEN - - ( + - 34 ) THEN NULL ELSE - + 96 - - + SUM( + - 3 ) END
----
-99

skipif mysql # not compatible
query I rowsort label-4766
SELECT ALL CASE - 21 WHEN 22 THEN NULL WHEN - - ( + - 34 ) THEN NULL ELSE - + 96 - - + SUM ( + - 3 ) END
----
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-4767
SELECT DISTINCT - 64 DIV 41 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4767
SELECT DISTINCT - 64 / 41 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4768
SELECT DISTINCT + COALESCE ( - + MIN( - 42 ), - + 32, + 99, + - COUNT( * ) ) + ( - + COUNT( * ) ) * + 25 AS col0, 72 AS col0
----
17
72

skipif mysql # not compatible
query II rowsort label-4768
SELECT DISTINCT + COALESCE ( - + MIN ( - 42 ), - + 32, + 99, + - COUNT ( * ) ) + ( - + COUNT ( * ) ) * + 25 AS col0, 72 AS col0
----
17
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4769
SELECT - 33 * - COUNT( * )
----
33

skipif mysql # not compatible
query I rowsort label-4769
SELECT - 33 * - COUNT ( * )
----
33

onlyif mysql # aggregate syntax: 
query III rowsort label-4770
SELECT - COUNT( * ), 47 AS col1, - 5 AS col1
----
-1
47
-5

skipif mysql # not compatible
query III rowsort label-4770
SELECT - COUNT ( * ), 47 AS col1, - 5 AS col1
----
-1
47
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-4771
SELECT - 50 DIV + 13
----
-3

skipif mysql # not compatible
query I rowsort label-4771
SELECT - 50 / + 13
----
-3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4772
SELECT - 85 + - + 87 DIV CAST( - - 8 AS SIGNED ) + 35 + + - 76 + + 24 AS col0
----
-112

skipif mysql # not compatible
query I rowsort label-4772
SELECT - 85 + - + 87 / CAST ( - - 8 AS INTEGER ) + 35 + + - 76 + + 24 AS col0
----
-112

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4773
SELECT ALL - CASE 30 WHEN + + 1 THEN + + 87 WHEN + 34 THEN - 76 * 24 ELSE + 83 END - + - NULLIF ( 6, 63 * - 19 ) + 7 DIV NULLIF ( + ( 39 ) * - 51 + 38 * 39, 4 - + COUNT( * ) * - 81 )
----
-77

skipif mysql # not compatible
query I rowsort label-4773
SELECT ALL - CASE 30 WHEN + + 1 THEN + + 87 WHEN + 34 THEN - 76 * 24 ELSE + 83 END - + - NULLIF ( 6, 63 * - 19 ) + 7 / NULLIF ( + ( 39 ) * - 51 + 38 * 39, 4 - + COUNT ( * ) * - 81 )
----
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-4774
SELECT 40, 14 + + CASE 25 WHEN - 16 + - + 3 + - + 41 THEN NULL WHEN + + 67 THEN NULL ELSE + - 50 + - + CASE 98 WHEN - SUM( 80 ) THEN MIN( - 89 ) / + 62 WHEN - 85 THEN NULL WHEN + 61 THEN NULL WHEN 71 * - 18 + + 26 THEN NULL END END * + CASE + 21 WHEN 69 * - 18 THEN NULL WHEN 95 THEN ( MIN( DISTINCT 3 ) ) ELSE NULL END AS col0
----
40
NULL

skipif mysql # not compatible
query II rowsort label-4774
SELECT 40, 14 + + CASE 25 WHEN - 16 + - + 3 + - + 41 THEN NULL WHEN + + 67 THEN NULL ELSE + - 50 + - + CASE 98 WHEN - SUM ( 80 ) THEN MIN ( - 89 ) / + 62 WHEN - 85 THEN NULL WHEN + 61 THEN NULL WHEN 71 * - 18 + + 26 THEN NULL END END * + CASE + 21 WHEN 69 * - 18 THEN NULL WHEN 95 THEN ( MIN ( DISTINCT 3 ) ) ELSE NULL END AS col0
----
40
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4775
SELECT DISTINCT ( + CAST( + 42 AS SIGNED ) ) AS col2
----
42

skipif mysql # not compatible
query I rowsort label-4775
SELECT DISTINCT ( + CAST ( + 42 AS INTEGER ) ) AS col2
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4776
SELECT - CAST( NULL AS SIGNED ) + - COALESCE ( + 16, + 22 + - + 97 + - 60 / + + 37 * + 19, + 21 ) + 70 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4776
SELECT - CAST ( NULL AS INTEGER ) + - COALESCE ( + 16, + 22 + - + 97 + - 60 / + + 37 * + 19, + 21 ) + 70 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4777
SELECT ALL - SUM( ALL - 29 )
----
29

skipif mysql # not compatible
query I rowsort label-4777
SELECT ALL - SUM ( ALL - 29 )
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4778
SELECT + CASE 14 WHEN - AVG ( + 54 ) + - + 47 * 90 THEN MAX( 75 ) * + - COUNT( * ) * + 11 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4778
SELECT + CASE 14 WHEN - AVG ( + 54 ) + - + 47 * 90 THEN MAX ( 75 ) * + - COUNT ( * ) * + 11 ELSE NULL END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4779
SELECT 97, + 26 DIV - - 95 * - - 92 + + + 66 + 51 col2
----
97
117

skipif mysql # not compatible
query II rowsort label-4779
SELECT 97, + 26 / - - 95 * - - 92 + + + 66 + 51 col2
----
97
117

query II rowsort
SELECT + 92 AS col0, + 90 col1
----
92
90

query I rowsort
SELECT ALL 33 * 74 AS col2
----
2442

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4782
SELECT DISTINCT - - ( + 40 ) DIV + 46 * - CAST( - 75 AS SIGNED ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4782
SELECT DISTINCT - - ( + 40 ) / + 46 * - CAST ( - 75 AS INTEGER ) AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4783
SELECT + CAST( NULL AS SIGNED ) * + 21 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4783
SELECT + CAST ( NULL AS INTEGER ) * + 21 AS col1
----
NULL

query I rowsort
SELECT - 60 + - - ( + 37 ) AS col0
----
-23

query I rowsort
SELECT + - 49 - 76 AS col0
----
-125

query I rowsort
SELECT ALL - 43 * 83
----
-3569

onlyif mysql # aggregate syntax: 
query I rowsort label-4787
SELECT ALL + - COALESCE ( + + 1, 3 * 22, - 60, + 47 * + + SUM( ALL - NULLIF ( + 18, + 30 ) ) + - 16 * 92 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4787
SELECT ALL + - COALESCE ( + + 1, 3 * 22, - 60, + 47 * + + SUM ( ALL - NULLIF ( + 18, + 30 ) ) + - 16 * 92 ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4788
SELECT + - CAST( - 6 AS SIGNED )
----
6

skipif mysql # not compatible
query I rowsort label-4788
SELECT + - CAST ( - 6 AS INTEGER )
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4789
SELECT + - ( - - 3 ) + + NULLIF ( + - ( + + 74 ), - 0 ) * + - 32 * - COALESCE ( + 27, 68 + - + 85, CAST( + 45 AS SIGNED ) ) * 69 AS col2
----
-4411587

skipif mysql # not compatible
query I rowsort label-4789
SELECT + - ( - - 3 ) + + NULLIF ( + - ( + + 74 ), - 0 ) * + - 32 * - COALESCE ( + 27, 68 + - + 85, CAST ( + 45 AS INTEGER ) ) * 69 AS col2
----
-4411587

query I rowsort
SELECT + - 99 * + 81 + 2 + - 60 + + + 22 AS col0
----
-8055

query I rowsort
SELECT + NULLIF ( - 93, - 67 ) AS col1
----
-93

query I rowsort
SELECT + + 30 * - - 56 * + + 5 AS col2
----
8400

onlyif mysql # aggregate syntax: 
query I rowsort label-4793
SELECT + + COUNT( * ) * + 87 + - 66 * - ( + - 66 )
----
-4269

skipif mysql # not compatible
query I rowsort label-4793
SELECT + + COUNT ( * ) * + 87 + - 66 * - ( + - 66 )
----
-4269

onlyif mysql # aggregate syntax: 
query I rowsort label-4794
SELECT ALL 60 * - 9 + + - COUNT( * )
----
-541

skipif mysql # not compatible
query I rowsort label-4794
SELECT ALL 60 * - 9 + + - COUNT ( * )
----
-541

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4795
SELECT + + 13 + 94, - 33 + + + 4 * 94 DIV + COUNT( * ) + - - ( + 81 ) AS col2
----
107
424

skipif mysql # not compatible
query II rowsort label-4795
SELECT + + 13 + 94, - 33 + + + 4 * 94 / + COUNT ( * ) + - - ( + 81 ) AS col2
----
107
424

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4796
SELECT ALL - CAST( NULL AS SIGNED ) * + 58 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4796
SELECT ALL - CAST ( NULL AS INTEGER ) * + 58 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4797
SELECT ALL + + 84, NULLIF ( - 1, - 29 ) * + MAX( + + 73 ) AS col0
----
84
-73

skipif mysql # not compatible
query II rowsort label-4797
SELECT ALL + + 84, NULLIF ( - 1, - 29 ) * + MAX ( + + 73 ) AS col0
----
84
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-4798
SELECT DISTINCT 45 * 51 + 92 DIV + - 80 AS col2
----
2294

skipif mysql # not compatible
query I rowsort label-4798
SELECT DISTINCT 45 * 51 + 92 / + - 80 AS col2
----
2294

query I rowsort
SELECT DISTINCT 52 * + - 61 + - - 58
----
-3114

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4800
SELECT + 39 * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4800
SELECT + 39 * - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4801
SELECT - 45 + + 59 + + + 80 + - + COUNT( * ) DIV 2 DIV + 20
----
94

skipif mysql # not compatible
query I rowsort label-4801
SELECT - 45 + + 59 + + + 80 + - + COUNT ( * ) / 2 / + 20
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4802
SELECT - ( - + 45 ), + CAST( NULL AS SIGNED ) + - + NULLIF ( - CASE - 80 WHEN 30 + + 46 - + + 59 THEN NULL WHEN + - SUM( DISTINCT + - 44 ) THEN 53 END, - COUNT( * ) ) + 53 * + CAST( ( + 74 ) AS DECIMAL ) * 93 AS col0
----
45
NULL

skipif mysql # not compatible
query II rowsort label-4802
SELECT - ( - + 45 ), + CAST ( NULL AS INTEGER ) + - + NULLIF ( - CASE - 80 WHEN 30 + + 46 - + + 59 THEN NULL WHEN + - SUM ( DISTINCT + - 44 ) THEN 53 END, - COUNT ( * ) ) + 53 * + CAST ( ( + 74 ) AS REAL ) * 93 AS col0
----
45
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4803
SELECT DISTINCT + 79 * 6 + + MAX( ( 28 ) ) * - + 67 * - + 65
----
122414

skipif mysql # not compatible
query I rowsort label-4803
SELECT DISTINCT + 79 * 6 + + MAX ( ( 28 ) ) * - + 67 * - + 65
----
122414

query I rowsort
SELECT ALL - COALESCE ( 67, - - 27 * - 44, - - 3 ) * + 9 - - 51 AS col2
----
-552

query I rowsort
SELECT + 9 + - + 94
----
-85

query I rowsort
SELECT DISTINCT 32 * - - 13
----
416

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4807
SELECT ALL ( 38 ) AS col1, + ( - - 68 ) + - - CAST( NULL AS SIGNED ) + 89
----
38
NULL

skipif mysql # not compatible
query II rowsort label-4807
SELECT ALL ( 38 ) AS col1, + ( - - 68 ) + - - CAST ( NULL AS INTEGER ) + 89
----
38
NULL

query II rowsort
SELECT + 91 + 14, - 20 * 34 col1
----
105
-680

query I rowsort
SELECT DISTINCT + 43 - - 28 * + - 41 col1
----
-1105

query I rowsort
SELECT 24 + - - 18 - - 74 * - + 44 AS col0
----
-3214

query I rowsort
SELECT + 12 * - 55 + - - 83 * + 93 AS col1
----
7059

onlyif mysql # DIV for integer division: 
query I rowsort label-4812
SELECT ALL + 99 DIV + + 48 - 74
----
-72

skipif mysql # not compatible
query I rowsort label-4812
SELECT ALL + 99 / + + 48 - 74
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-4813
SELECT ALL - - COUNT( * ) - - + 95
----
96

skipif mysql # not compatible
query I rowsort label-4813
SELECT ALL - - COUNT ( * ) - - + 95
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4814
SELECT CASE + 44 WHEN + + 22 * + 92 + 55 THEN NULL WHEN + - 96 THEN + 38 + ( - + 21 ) + - - 41 END * + 68 * COUNT( * ) + 61 * AVG ( DISTINCT 69 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4814
SELECT CASE + 44 WHEN + + 22 * + 92 + 55 THEN NULL WHEN + - 96 THEN + 38 + ( - + 21 ) + - - 41 END * + 68 * COUNT ( * ) + 61 * AVG ( DISTINCT 69 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4815
SELECT DISTINCT - 8 * - - 7 * + SUM( DISTINCT - + 34 ) + 20
----
1924

skipif mysql # not compatible
query I rowsort label-4815
SELECT DISTINCT - 8 * - - 7 * + SUM ( DISTINCT - + 34 ) + 20
----
1924

onlyif mysql # aggregate syntax: 
query I rowsort label-4816
SELECT - ( - 95 ) * + + ( + 93 ) + + 94 + NULLIF ( + - CASE WHEN ( + COUNT( * ) ) NOT BETWEEN 97 + + 47 * 33 AND - COALESCE ( 12, + 69 ) THEN + 79 ELSE NULL END, 0 * + 54 + + 18 ) + 28 * - 72 AS col2
----
6834

skipif mysql # not compatible
query I rowsort label-4816
SELECT - ( - 95 ) * + + ( + 93 ) + + 94 + NULLIF ( + - CASE WHEN ( + COUNT ( * ) ) NOT BETWEEN 97 + + 47 * 33 AND - COALESCE ( 12, + 69 ) THEN + 79 ELSE NULL END, 0 * + 54 + + 18 ) + 28 * - 72 AS col2
----
6834

query I rowsort
SELECT DISTINCT - ( + 57 ) * + ( + - 82 ) * - 43 - 8 * + 95 * - + 79 + - 1
----
-140943

onlyif mysql # aggregate syntax: 
query I rowsort label-4818
SELECT + + NULLIF ( - 37, COUNT( * ) ) col1
----
-37

skipif mysql # not compatible
query I rowsort label-4818
SELECT + + NULLIF ( - 37, COUNT ( * ) ) col1
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4819
SELECT ALL - NULLIF ( - 92, + - 0 + - 29 + - COUNT( + CAST( NULL AS SIGNED ) ) * + 36 * + NULLIF ( 40, - ( COUNT( * ) ) + + 23 ) * COUNT( * ) ) * - COUNT( * ) AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-4819
SELECT ALL - NULLIF ( - 92, + - 0 + - 29 + - COUNT ( + CAST ( NULL AS INTEGER ) ) * + 36 * + NULLIF ( 40, - ( COUNT ( * ) ) + + 23 ) * COUNT ( * ) ) * - COUNT ( * ) AS col1
----
-92

query I rowsort
SELECT + 58 * + 60
----
3480

query II rowsort
SELECT DISTINCT - - 71 + + 49 col0, + 88
----
120
88

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4822
SELECT + COALESCE ( 64, - CAST( NULL AS SIGNED ) ) AS col0, + 76 AS col0
----
64
76

skipif mysql # not compatible
query II rowsort label-4822
SELECT + COALESCE ( 64, - CAST ( NULL AS INTEGER ) ) AS col0, + 76 AS col0
----
64
76

query I rowsort
SELECT - 94 * 4 AS col1
----
-376

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4824
SELECT ALL 34 DIV NULLIF ( COALESCE ( NULLIF ( + 91, + 48 * - COUNT( * ) + + 88 * - 31 ), + 28, 78, + - 22 ), - COUNT( * ) ) DIV + 73 - + 4 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-4824
SELECT ALL 34 / NULLIF ( COALESCE ( NULLIF ( + 91, + 48 * - COUNT ( * ) + + 88 * - 31 ), + 28, 78, + - 22 ), - COUNT ( * ) ) / + 73 - + 4 AS col2
----
-4

query I rowsort
SELECT ALL 38 + - 85 + - - ( - 98 )
----
-145

onlyif mysql # aggregate syntax: 
query II rowsort label-4826
SELECT ALL - 62 + + 99, - CASE - + 82 WHEN + - COUNT( * ) THEN NULL WHEN 8 THEN NULL WHEN - + 46 * + 14 + - 3 + + 5 + - + SUM( - 64 ) - COUNT( * ) * - 21 THEN - 73 * + 7 ELSE NULL END - 55 col1
----
37
NULL

skipif mysql # not compatible
query II rowsort label-4826
SELECT ALL - 62 + + 99, - CASE - + 82 WHEN + - COUNT ( * ) THEN NULL WHEN 8 THEN NULL WHEN - + 46 * + 14 + - 3 + + 5 + - + SUM ( - 64 ) - COUNT ( * ) * - 21 THEN - 73 * + 7 ELSE NULL END - 55 col1
----
37
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4827
SELECT + COALESCE ( COUNT( * ), + SUM( DISTINCT 70 ) DIV + 7 + - 81 DIV + 94 + 52, + - NULLIF ( 83, 6 ) * 90 - - 59 + SUM( ALL + 62 + 40 ) )
----
1

skipif mysql # not compatible
query I rowsort label-4827
SELECT + COALESCE ( COUNT ( * ), + SUM ( DISTINCT 70 ) / + 7 + - 81 / + 94 + 52, + - NULLIF ( 83, 6 ) * 90 - - 59 + SUM ( ALL + 62 + 40 ) )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4828
SELECT COUNT( * ) DIV - - COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4828
SELECT COUNT ( * ) / - - COUNT ( * ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4829
SELECT ALL + MIN( DISTINCT - + 23 ) + - + 71 + - - 76
----
-18

skipif mysql # not compatible
query I rowsort label-4829
SELECT ALL + MIN ( DISTINCT - + 23 ) + - + 71 + - - 76
----
-18

query I rowsort
SELECT DISTINCT - 37 + + - 35 AS col1
----
-72

query II rowsort
SELECT + 17 col0, 81 * 32 AS col1
----
17
2592

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4832
SELECT 93 DIV 61 DIV + 48 * + ( COUNT( * ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4832
SELECT 93 / 61 / + 48 * + ( COUNT ( * ) ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4833
SELECT MIN( 1 ) * + CASE + 76 WHEN + 31 * - COUNT( * ) * - - 11 * + + CAST( - - 58 AS SIGNED ) * + 6 + - 28 / - 99 THEN 42 * 18 ELSE 79 + 95 * + CAST( 94 * - 49 AS SIGNED ) END * 21 + + 25
----
-9187286

skipif mysql # not compatible
query I rowsort label-4833
SELECT MIN ( 1 ) * + CASE + 76 WHEN + 31 * - COUNT ( * ) * - - 11 * + + CAST ( - - 58 AS INTEGER ) * + 6 + - 28 / - 99 THEN 42 * 18 ELSE 79 + 95 * + CAST ( 94 * - 49 AS INTEGER ) END * 21 + + 25
----
-9187286

query II rowsort
SELECT + 73, 70 + + + 27 AS col2
----
73
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4835
SELECT ALL 27 - - - COUNT( * )
----
26

skipif mysql # not compatible
query I rowsort label-4835
SELECT ALL 27 - - - COUNT ( * )
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4836
SELECT NULLIF ( - CASE 80 WHEN + 46 + + + 24 + + 99 + 43 THEN NULL ELSE 59 END, 8 ) DIV + 55 + + COUNT( * ) + + 62 AS col0
----
62

skipif mysql # not compatible
query I rowsort label-4836
SELECT NULLIF ( - CASE 80 WHEN + 46 + + + 24 + + 99 + 43 THEN NULL ELSE 59 END, 8 ) / + 55 + + COUNT ( * ) + + 62 AS col0
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4837
SELECT ALL CAST( NULL AS SIGNED ) / + 14 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4837
SELECT ALL CAST ( NULL AS INTEGER ) / + 14 AS col2
----
NULL

query I rowsort
SELECT NULLIF ( - 21, - NULLIF ( - + 89, + 79 * + 15 ) ) + + 18
----
-3

query II rowsort
SELECT DISTINCT 85 AS col2, 83
----
85
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4840
SELECT ALL 91 - + NULLIF ( - ( + ( - CAST( + 20 AS SIGNED ) ) ), MIN( - 66 ) * ( ( + COALESCE ( SUM( DISTINCT - - 44 ), + CASE + 13 WHEN + COUNT( * ) * - 85 + + 69 * 28 THEN + 60 * COUNT( * ) ELSE + COUNT( * ) * - ( 2 * + 14 ) END * + 95, - MAX( DISTINCT 48 ) ) ) ) ) + 73 * + CASE + 31 * 65 + - CAST( NULL AS SIGNED ) WHEN NULLIF ( 0, 30 / + ( 94 * + 31 ) ) THEN + 62 + 75 * - COUNT( ALL + 50 * 4 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4840
SELECT ALL 91 - + NULLIF ( - ( + ( - CAST ( + 20 AS INTEGER ) ) ), MIN ( - 66 ) * ( ( + COALESCE ( SUM ( DISTINCT - - 44 ), + CASE + 13 WHEN + COUNT ( * ) * - 85 + + 69 * 28 THEN + 60 * COUNT ( * ) ELSE + COUNT ( * ) * - ( 2 * + 14 ) END * + 95, - MAX ( DISTINCT 48 ) ) ) ) ) + 73 * + CASE + 31 * 65 + - CAST ( NULL AS INTEGER ) WHEN NULLIF ( 0, 30 / + ( 94 * + 31 ) ) THEN + 62 + 75 * - COUNT ( ALL + 50 * 4 ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4841
SELECT 79 AS col1, CAST( + CASE - + 29 WHEN - - 8 / + 44 THEN NULL ELSE + 28 + - 17 * - + 69 END AS SIGNED ) * - 97 AS col0
----
79
-116497

skipif mysql # not compatible
query II rowsort label-4841
SELECT 79 AS col1, CAST ( + CASE - + 29 WHEN - - 8 / + 44 THEN NULL ELSE + 28 + - 17 * - + 69 END AS INTEGER ) * - 97 AS col0
----
79
-116497

query II rowsort
SELECT ALL 94 AS col2, - 4
----
94
-4

query II rowsort
SELECT 49 AS col2, 12
----
49
12

query I rowsort
SELECT 18 + + 99 AS col1
----
117

onlyif mysql # aggregate syntax: 
query II rowsort label-4845
SELECT 69 + 26 + + MIN( - + 73 ) AS col1, + 55 * + ( + - 37 )
----
22
-2035

skipif mysql # not compatible
query II rowsort label-4845
SELECT 69 + 26 + + MIN ( - + 73 ) AS col1, + 55 * + ( + - 37 )
----
22
-2035

query I rowsort
SELECT ALL 14 * + 60
----
840

query I rowsort
SELECT - 40 * + - 70 AS col0
----
2800

onlyif mysql # aggregate syntax: 
query I rowsort label-4848
SELECT DISTINCT - NULLIF ( - 2, - MIN( 51 ) ) col1
----
2

skipif mysql # not compatible
query I rowsort label-4848
SELECT DISTINCT - NULLIF ( - 2, - MIN ( 51 ) ) col1
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4849
SELECT DISTINCT ( + ( + CAST( NULL AS SIGNED ) ) ) * + 78 / - 15
----
NULL

skipif mysql # not compatible
query I rowsort label-4849
SELECT DISTINCT ( + ( + CAST ( NULL AS INTEGER ) ) ) * + 78 / - 15
----
NULL

query II rowsort
SELECT DISTINCT - 7 AS col2, - 30
----
-7
-30

query I rowsort
SELECT - 67 + - 53 AS col1
----
-120

query I rowsort
SELECT ALL + + 48 + + + 15 * - + 33
----
-447

query II rowsort
SE